updated CodeWarrior 5.3 project with latest file changes
[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.58 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.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='wxWindows'
272 PACKAGE_TARNAME='wxwindows'
273 PACKAGE_VERSION='2.5.1'
274 PACKAGE_STRING='wxWindows 2.5.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
864    esac
865   cat <<\_ACEOF
866
867 Optional Features:
868   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
869   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
870   --enable-gui            use GUI classes
871   --disable-monolithic    don't build wxWindows as single library
872   --enable-universal      use wxWindows GUI controls instead of native ones
873   --enable-nanox          use NanoX
874   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
875   --enable-shared         create shared library code
876   --enable-optimise       create optimised code
877   --enable-debug          same as debug_flag and debug_info
878   --enable-stl            use STL for containers
879   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
880   --enable-debug_info     create code with debugging information
881   --enable-debug_gdb      create code with extra GDB debugging information
882   --enable-debug_cntxt    use wxDebugContext
883   --enable-mem_tracing    create code with memory tracing
884   --enable-profile        create code with profiling information
885   --enable-no_rtti        create code without RTTI information
886   --enable-no_exceptions  create code without C++ exceptions handling
887   --enable-permissive     compile code disregarding strict ANSI
888   --enable-no_deps        create code without dependency information
889   --enable-compat22       enable wxWindows 2.2 compatibility
890   --disable-compat24      disable wxWindows 2.4 compatibility
891   --enable-rpath=DIR      output the rpath flag from wx-config
892   --enable-intl           use internationalization system
893   --enable-config         use wxConfig (and derived) classes
894   --enable-protocols      use wxProtocol and derived classes
895   --enable-ftp            use wxFTP (requires wxProtocol
896   --enable-http           use wxHTTP (requires wxProtocol
897   --enable-fileproto      use wxFileProto class (requires wxProtocol
898   --enable-sockets        use socket/network classes
899   --enable-ole            use OLE classes (Win32 only)
900   --enable-dataobj        use data object classes
901   --enable-ipc            use interprocess communication (wxSocket etc.)
902   --enable-apple_ieee     use the Apple IEEE codec
903   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
904   --enable-cmdline        use wxCmdLineParser class
905   --enable-datetime       use wxDateTime class
906   --enable-dialupman      use dialup network classes
907   --enable-dynlib         use wxLibrary class for DLL loading
908   --enable-dynamicloader  use (new) wxDynamicLibrary class
909   --enable-exceptions     build exception-safe library
910   --enable-ffile          use wxFFile class
911   --enable-file           use wxFile class
912   --enable-filesystem     use virtual file systems classes
913   --enable-fontmap        use font encodings conversion classes
914   --enable-fs_inet        use virtual HTTP/FTP filesystems
915   --enable-fs_zip         use virtual ZIP filesystems
916   --enable-geometry       use geometry class
917   --enable-log            use logging system
918   --enable-longlong       use wxLongLong class
919   --enable-mimetype       use wxMimeTypesManager
920   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
921   --enable-snglinst       use wxSingleInstanceChecker class
922   --enable-streams        use wxStream etc classes
923   --enable-std_iostreams  use standard C++ stream classes
924   --enable-stopwatch      use wxStopWatch class
925   --enable-sysoptions     use wxSystemOptions
926   --enable-textbuf        use wxTextBuffer class
927   --enable-textfile       use wxTextFile class
928   --enable-timer          use wxTimer class
929   --enable-unicode        compile wxString with Unicode support
930   --enable-wave           use wxWave class
931   --enable-wxprintfv      use wxWindows implementation of vprintf()
932   --enable-zipstream      use wxZipInputStream
933   --enable-gzstream       use wxGzipInputStream
934   --enable-url            use wxURL class
935   --enable-protocol       use wxProtocol class
936   --enable-protocol-http  HTTP support in wxProtocol
937   --enable-protocol-ftp   FTP support in wxProtocol
938   --enable-protocol-file  FILE support in wxProtocol
939   --enable-threads        use threads
940   --enable-docview        use document view architecture
941   --enable-help           use help subsystem
942   --enable-mshtmlhelp     use MS HTML Help (win32)
943   --enable-html           use wxHTML sub-library
944   --enable-htmlhelp       use wxHTML-based help
945   --enable-constraints    use layout-constraints system
946   --enable-printarch      use printing architecture
947   --enable-mdi            use multiple document interface architecture
948   --enable-loggui         use standard GUI logger
949   --enable-logwin         use wxLogWindow
950   --enable-logdialog      use wxLogDialog
951   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
952   --enable-prologio       not available; see contrib
953   --enable-resources      not available; see contrib
954   --enable-clipboard      use wxClipboard class
955   --enable-dnd            use Drag'n'Drop classes
956   --enable-metafile       use win32 metafiles
957   --enable-controls       use all usual controls
958   --enable-accel          use accelerators
959   --enable-button         use wxButton class
960   --enable-bmpbutton      use wxBitmapButton class
961   --enable-calendar       use wxCalendarCtrl class
962   --enable-caret          use wxCaret class
963   --enable-checkbox       use wxCheckBox class
964   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
965   --enable-choice         use wxChoice class
966   --enable-combobox       use wxComboBox class
967   --enable-display        use wxDisplay class
968   --enable-gauge          use wxGauge class
969   --enable-grid           use wxGrid class
970   --enable-imaglist       use wxImageList class
971   --enable-listbook       use wxListbook class
972   --enable-listbox        use wxListBox class
973   --enable-listctrl       use wxListCtrl class
974   --enable-notebook       use wxNotebook class
975   --enable-radiobox       use wxRadioBox class
976   --enable-radiobtn       use wxRadioButton class
977   --enable-sash           use wxSashWindow class
978   --enable-scrollbar      use wxScrollBar class and scrollable windows
979   --enable-slider         use wxSlider class
980   --enable-spinbtn        use wxSpinButton class
981   --enable-spinctrl       use wxSpinCtrl class
982   --enable-splitter       use wxSplitterWindow class
983   --enable-statbmp        use wxStaticBitmap class
984   --enable-statbox        use wxStaticBox class
985   --enable-statline       use wxStaticLine class
986   --enable-stattext       use wxStaticText class
987   --enable-statusbar      use wxStatusBar class
988   --enable-tabdialog      use wxTabControl class
989   --enable-textctrl       use wxTextCtrl class
990   --enable-togglebtn      use wxToggleButton class
991   --enable-toolbar        use wxToolBar class
992   --enable-tbarnative     use native wxToolBar class
993   --enable-tbarsmpl       use wxToolBarSimple class
994   --enable-treectrl       use wxTreeCtrl class
995   --enable-tipwindow      use wxTipWindow class
996   --enable-popupwin       use wxPopUpWindow class
997   --enable-commondlg      use all common dialogs
998   --enable-choicedlg      use wxChoiceDialog
999   --enable-coldlg         use wxColourDialog
1000   --enable-filedlg        use wxFileDialog
1001   --enable-finddlg        use wxFindReplaceDialog
1002   --enable-fontdlg        use wxFontDialog
1003   --enable-dirdlg         use wxDirDialog
1004   --enable-msgdlg         use wxMessageDialog
1005   --enable-numberdlg      use wxNumberEntryDialog
1006   --enable-splash         use wxSplashScreen
1007   --enable-textdlg        use wxTextDialog
1008   --enable-tipdlg         use startup tips
1009   --enable-progressdlg    use wxProgressDialog
1010   --enable-wizarddlg      use wxWizard
1011   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1012   --enable-miniframe      use wxMiniFrame class
1013   --enable-tooltips       use wxToolTip class
1014   --enable-splines        use spline drawing code
1015   --enable-validators     use wxValidator and derived classes
1016   --enable-busyinfo       use wxBusyInfo
1017   --enable-joystick       use wxJoystick (Linux only)
1018   --enable-metafiles      use wxMetaFile (Windows only)
1019   --enable-dragimage      use wxDragImage
1020   --enable-accessibility  enable accessibility support
1021   --enable-palette        use wxPalette class
1022   --enable-image          use wxImage class
1023   --enable-gif            use gif images (GIF file format)
1024   --enable-pcx            use pcx images (PCX file format)
1025   --enable-iff            use iff images (IFF file format)
1026   --enable-pnm            use pnm images (PNM file format)
1027   --enable-xpm            use xpm images (XPM file format)
1028   --enable-icocur         use Windows ICO and CUR formats
1029   --enable-official_build official build of wxWindows (win32 DLL only)
1030   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1031   --disable-largefile     omit support for large files
1032   --disable-gtktest       do not try to compile and run a test GTK+ program
1033   --disable-gtktest       Do not try to compile and run a test GTK program
1034   --disable-precomp-headers  don't use precompiled headers even if compiler can
1035
1036 Optional Packages:
1037   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1038   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1039   --with-gtk              use GTK+
1040   --with-motif            use Motif/Lesstif
1041   --with-mac              use Mac OS X
1042   --with-cocoa            use Cocoa
1043   --with-wine             use Wine
1044   --with-msw              use MS-Windows
1045   --with-pm               use OS/2 Presentation Manager
1046   --with-mgl              use SciTech MGL
1047   --with-microwin         use MicroWindows
1048   --with-x11              use X11
1049   --with-libpng           use libpng (PNG image format)
1050   --with-libjpeg          use libjpeg (JPEG file format)
1051   --with-libtiff          use libtiff (TIFF file format)
1052   --with-libxpm           use libxpm (XPM file format)
1053   --with-libmspack        use libmspack (CHM help files loading)
1054   --with-opengl           use OpenGL (or Mesa)
1055   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1056   --with-regex            enable support for wxRegEx class
1057   --with-zlib             use zlib for LZW compression
1058   --with-odbc             use the IODBC and wxODBC classes
1059   --with-expat            enable XML support using expat parser
1060   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1061   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1062   --with-x                use the X Window System
1063   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1064
1065 Some influential environment variables:
1066   CC          C compiler command
1067   CFLAGS      C compiler flags
1068   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1069               nonstandard directory <lib dir>
1070   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071               headers in a nonstandard directory <include dir>
1072   CPP         C preprocessor
1073   CXX         C++ compiler command
1074   CXXFLAGS    C++ compiler flags
1075   CXXCPP      C++ preprocessor
1076
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1079
1080 Report bugs to <wx-dev@lists.wxwindows.org>.
1081 _ACEOF
1082 fi
1083
1084 if test "$ac_init_help" = "recursive"; then
1085   # If there are subdirs, report their specific --help.
1086   ac_popdir=`pwd`
1087   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088     test -d $ac_dir || continue
1089     ac_builddir=.
1090
1091 if test "$ac_dir" != .; then
1092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093   # A "../" for each directory in $ac_dir_suffix.
1094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 else
1096   ac_dir_suffix= ac_top_builddir=
1097 fi
1098
1099 case $srcdir in
1100   .)  # No --srcdir option.  We are building in place.
1101     ac_srcdir=.
1102     if test -z "$ac_top_builddir"; then
1103        ac_top_srcdir=.
1104     else
1105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106     fi ;;
1107   [\\/]* | ?:[\\/]* )  # Absolute path.
1108     ac_srcdir=$srcdir$ac_dir_suffix;
1109     ac_top_srcdir=$srcdir ;;
1110   *) # Relative path.
1111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 esac
1114 case "$ac_dir" in
1115 .) ac_abs_builddir=$ac_builddir;;
1116 *)
1117   case $ac_builddir in
1118   .) ac_abs_builddir="$ac_dir";;
1119   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1120   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1121   esac;;
1122 esac
1123 case "$ac_dir" in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126   case ${ac_top_builddir}. in
1127   .) ac_abs_top_builddir="$ac_dir";;
1128   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1130   esac;;
1131 esac
1132 case "$ac_dir" in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135   case $ac_srcdir in
1136   .) ac_abs_srcdir="$ac_dir";;
1137   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1139   esac;;
1140 esac
1141 case "$ac_dir" in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144   case $ac_top_srcdir in
1145   .) ac_abs_top_srcdir="$ac_dir";;
1146   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1148   esac;;
1149 esac
1150
1151     cd $ac_dir
1152     # Check for guested configure; otherwise get Cygnus style configure.
1153     if test -f $ac_srcdir/configure.gnu; then
1154       echo
1155       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156     elif test -f $ac_srcdir/configure; then
1157       echo
1158       $SHELL $ac_srcdir/configure  --help=recursive
1159     elif test -f $ac_srcdir/configure.ac ||
1160            test -f $ac_srcdir/configure.in; then
1161       echo
1162       $ac_configure --help
1163     else
1164       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165     fi
1166     cd $ac_popdir
1167   done
1168 fi
1169
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172   cat <<\_ACEOF
1173 wxWindows configure 2.5.1
1174 generated by GNU Autoconf 2.58
1175
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179 _ACEOF
1180   exit 0
1181 fi
1182 exec 5>config.log
1183 cat >&5 <<_ACEOF
1184 This file contains any messages produced by compilers while
1185 running configure, to aid debugging if configure makes a mistake.
1186
1187 It was created by wxWindows $as_me 2.5.1, which was
1188 generated by GNU Autoconf 2.58.  Invocation command line was
1189
1190   $ $0 $@
1191
1192 _ACEOF
1193 {
1194 cat <<_ASUNAME
1195 ## --------- ##
1196 ## Platform. ##
1197 ## --------- ##
1198
1199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1207
1208 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1209 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1212 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1213 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1214 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1215
1216 _ASUNAME
1217
1218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219 for as_dir in $PATH
1220 do
1221   IFS=$as_save_IFS
1222   test -z "$as_dir" && as_dir=.
1223   echo "PATH: $as_dir"
1224 done
1225
1226 } >&5
1227
1228 cat >&5 <<_ACEOF
1229
1230
1231 ## ----------- ##
1232 ## Core tests. ##
1233 ## ----------- ##
1234
1235 _ACEOF
1236
1237
1238 # Keep a trace of the command line.
1239 # Strip out --no-create and --no-recursion so they do not pile up.
1240 # Strip out --silent because we don't want to record it for future runs.
1241 # Also quote any args containing shell meta-characters.
1242 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_configure_args=
1244 ac_configure_args0=
1245 ac_configure_args1=
1246 ac_sep=
1247 ac_must_keep_next=false
1248 for ac_pass in 1 2
1249 do
1250   for ac_arg
1251   do
1252     case $ac_arg in
1253     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255     | -silent | --silent | --silen | --sile | --sil)
1256       continue ;;
1257     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259     esac
1260     case $ac_pass in
1261     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262     2)
1263       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264       if test $ac_must_keep_next = true; then
1265         ac_must_keep_next=false # Got value, back to normal.
1266       else
1267         case $ac_arg in
1268           *=* | --config-cache | -C | -disable-* | --disable-* \
1269           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271           | -with-* | --with-* | -without-* | --without-* | --x)
1272             case "$ac_configure_args0 " in
1273               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274             esac
1275             ;;
1276           -* ) ac_must_keep_next=true ;;
1277         esac
1278       fi
1279       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280       # Get rid of the leading space.
1281       ac_sep=" "
1282       ;;
1283     esac
1284   done
1285 done
1286 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
1289 # When interrupted or exit'd, cleanup temporary files, and complete
1290 # config.log.  We remove comments because anyway the quotes in there
1291 # would cause problems or look ugly.
1292 # WARNING: Be sure not to use single quotes in there, as some shells,
1293 # such as our DU 5.0 friend, will then `close' the trap.
1294 trap 'exit_status=$?
1295   # Save into config.log some information that might help in debugging.
1296   {
1297     echo
1298
1299     cat <<\_ASBOX
1300 ## ---------------- ##
1301 ## Cache variables. ##
1302 ## ---------------- ##
1303 _ASBOX
1304     echo
1305     # The following way of writing the cache mishandles newlines in values,
1306 {
1307   (set) 2>&1 |
1308     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309     *ac_space=\ *)
1310       sed -n \
1311         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313       ;;
1314     *)
1315       sed -n \
1316         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317       ;;
1318     esac;
1319 }
1320     echo
1321
1322     cat <<\_ASBOX
1323 ## ----------------- ##
1324 ## Output variables. ##
1325 ## ----------------- ##
1326 _ASBOX
1327     echo
1328     for ac_var in $ac_subst_vars
1329     do
1330       eval ac_val=$`echo $ac_var`
1331       echo "$ac_var='"'"'$ac_val'"'"'"
1332     done | sort
1333     echo
1334
1335     if test -n "$ac_subst_files"; then
1336       cat <<\_ASBOX
1337 ## ------------- ##
1338 ## Output files. ##
1339 ## ------------- ##
1340 _ASBOX
1341       echo
1342       for ac_var in $ac_subst_files
1343       do
1344         eval ac_val=$`echo $ac_var`
1345         echo "$ac_var='"'"'$ac_val'"'"'"
1346       done | sort
1347       echo
1348     fi
1349
1350     if test -s confdefs.h; then
1351       cat <<\_ASBOX
1352 ## ----------- ##
1353 ## confdefs.h. ##
1354 ## ----------- ##
1355 _ASBOX
1356       echo
1357       sed "/^$/d" confdefs.h | sort
1358       echo
1359     fi
1360     test "$ac_signal" != 0 &&
1361       echo "$as_me: caught signal $ac_signal"
1362     echo "$as_me: exit $exit_status"
1363   } >&5
1364   rm -f core *.core &&
1365   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366     exit $exit_status
1367      ' 0
1368 for ac_signal in 1 2 13 15; do
1369   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370 done
1371 ac_signal=0
1372
1373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1374 rm -rf conftest* confdefs.h
1375 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376 echo >confdefs.h
1377
1378 # Predefined preprocessor variables.
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_NAME "$PACKAGE_NAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_STRING "$PACKAGE_STRING"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402 _ACEOF
1403
1404
1405 # Let the site file select an alternate cache file if it wants to.
1406 # Prefer explicitly selected file to automatically selected ones.
1407 if test -z "$CONFIG_SITE"; then
1408   if test "x$prefix" != xNONE; then
1409     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410   else
1411     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412   fi
1413 fi
1414 for ac_site_file in $CONFIG_SITE; do
1415   if test -r "$ac_site_file"; then
1416     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417 echo "$as_me: loading site script $ac_site_file" >&6;}
1418     sed 's/^/| /' "$ac_site_file" >&5
1419     . "$ac_site_file"
1420   fi
1421 done
1422
1423 if test -r "$cache_file"; then
1424   # Some versions of bash will fail to source /dev/null (special
1425   # files actually), so we avoid doing that.
1426   if test -f "$cache_file"; then
1427     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428 echo "$as_me: loading cache $cache_file" >&6;}
1429     case $cache_file in
1430       [\\/]* | ?:[\\/]* ) . $cache_file;;
1431       *)                      . ./$cache_file;;
1432     esac
1433   fi
1434 else
1435   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436 echo "$as_me: creating cache $cache_file" >&6;}
1437   >$cache_file
1438 fi
1439
1440 # Check that the precious variables saved in the cache have kept the same
1441 # value.
1442 ac_cache_corrupted=false
1443 for ac_var in `(set) 2>&1 |
1444                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446   eval ac_new_set=\$ac_env_${ac_var}_set
1447   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448   eval ac_new_val="\$ac_env_${ac_var}_value"
1449   case $ac_old_set,$ac_new_set in
1450     set,)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,set)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,);;
1459     *)
1460       if test "x$ac_old_val" != "x$ac_new_val"; then
1461         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1464 echo "$as_me:   former value:  $ac_old_val" >&2;}
1465         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1466 echo "$as_me:   current value: $ac_new_val" >&2;}
1467         ac_cache_corrupted=:
1468       fi;;
1469   esac
1470   # Pass precious variables to config.status.
1471   if test "$ac_new_set" = set; then
1472     case $ac_new_val in
1473     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475     *) ac_arg=$ac_var=$ac_new_val ;;
1476     esac
1477     case " $ac_configure_args " in
1478       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1479       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480     esac
1481   fi
1482 done
1483 if $ac_cache_corrupted; then
1484   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488    { (exit 1); exit 1; }; }
1489 fi
1490
1491 ac_ext=c
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526 ac_aux_dir=
1527 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1528   if test -f $ac_dir/install-sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install-sh -c"
1531     break
1532   elif test -f $ac_dir/install.sh; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/install.sh -c"
1535     break
1536   elif test -f $ac_dir/shtool; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/shtool install -c"
1539     break
1540   fi
1541 done
1542 if test -z "$ac_aux_dir"; then
1543   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1544 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1545    { (exit 1); exit 1; }; }
1546 fi
1547 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551 # Make sure we can run config.sub.
1552 $ac_config_sub sun4 >/dev/null 2>&1 ||
1553   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1554 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1555    { (exit 1); exit 1; }; }
1556
1557 echo "$as_me:$LINENO: checking build system type" >&5
1558 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1559 if test "${ac_cv_build+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   ac_cv_build_alias=$build_alias
1563 test -z "$ac_cv_build_alias" &&
1564   ac_cv_build_alias=`$ac_config_guess`
1565 test -z "$ac_cv_build_alias" &&
1566   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1567 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1568    { (exit 1); exit 1; }; }
1569 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1570   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1571 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1572    { (exit 1); exit 1; }; }
1573
1574 fi
1575 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1576 echo "${ECHO_T}$ac_cv_build" >&6
1577 build=$ac_cv_build
1578 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
1582
1583 echo "$as_me:$LINENO: checking host system type" >&5
1584 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1585 if test "${ac_cv_host+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588   ac_cv_host_alias=$host_alias
1589 test -z "$ac_cv_host_alias" &&
1590   ac_cv_host_alias=$ac_cv_build_alias
1591 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1592   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1593 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1594    { (exit 1); exit 1; }; }
1595
1596 fi
1597 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1598 echo "${ECHO_T}$ac_cv_host" >&6
1599 host=$ac_cv_host
1600 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605 echo "$as_me:$LINENO: checking target system type" >&5
1606 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1607 if test "${ac_cv_target+set}" = set; then
1608   echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610   ac_cv_target_alias=$target_alias
1611 test "x$ac_cv_target_alias" = "x" &&
1612   ac_cv_target_alias=$ac_cv_host_alias
1613 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1614   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1615 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1616    { (exit 1); exit 1; }; }
1617
1618 fi
1619 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1620 echo "${ECHO_T}$ac_cv_target" >&6
1621 target=$ac_cv_target
1622 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627 # The aliases save the names the user supplied, while $host etc.
1628 # will get canonicalized.
1629 test -n "$target_alias" &&
1630   test "$program_prefix$program_suffix$program_transform_name" = \
1631     NONENONEs,x,x, &&
1632   program_prefix=${target_alias}-
1633
1634
1635
1636 WX_MAJOR_VERSION_NUMBER=2
1637 WX_MINOR_VERSION_NUMBER=5
1638 WX_RELEASE_NUMBER=1
1639
1640 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1641 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1642
1643 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1644
1645 WX_CURRENT=1
1646 WX_REVISION=0
1647 WX_AGE=0
1648
1649
1650
1651 USE_UNIX=1
1652 USE_OS2=0
1653 USE_WIN32=0
1654 USE_DOS=0
1655 USE_BEOS=0
1656 USE_MAC=0
1657
1658 USE_AIX=
1659 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1660 USE_GNU=                            USE_HPUX=
1661 USE_LINUX=
1662 USE_NETBSD=
1663 USE_OPENBSD=
1664 USE_OSF=                            USE_SGI=
1665 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1666 USE_ULTRIX=
1667 USE_UNIXWARE=
1668
1669 USE_ALPHA=
1670
1671 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1672
1673 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1674
1675 DEFAULT_wxUSE_COCOA=0
1676 DEFAULT_wxUSE_GTK=0
1677 DEFAULT_wxUSE_MAC=0
1678 DEFAULT_wxUSE_MGL=0
1679 DEFAULT_wxUSE_MICROWIN=0
1680 DEFAULT_wxUSE_MOTIF=0
1681 DEFAULT_wxUSE_MSW=0
1682 DEFAULT_wxUSE_PM=0
1683 DEFAULT_wxUSE_X11=0
1684
1685 DEFAULT_DEFAULT_wxUSE_COCOA=0
1686 DEFAULT_DEFAULT_wxUSE_GTK=0
1687 DEFAULT_DEFAULT_wxUSE_MAC=0
1688 DEFAULT_DEFAULT_wxUSE_MGL=0
1689 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1690 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1691 DEFAULT_DEFAULT_wxUSE_MSW=0
1692 DEFAULT_DEFAULT_wxUSE_PM=0
1693 DEFAULT_DEFAULT_wxUSE_X11=0
1694
1695 PROGRAM_EXT=
1696 SO_SUFFIX=so
1697 SAMPLES_RPATH_FLAG=
1698 SAMPLES_RPATH_POSTLINK=
1699
1700 case "${host}" in
1701   *-hp-hpux* )
1702     USE_HPUX=1
1703     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1704     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1705     SO_SUFFIX=sl
1706     cat >>confdefs.h <<\_ACEOF
1707 #define __HPUX__ 1
1708 _ACEOF
1709
1710   ;;
1711   *-*-linux* )
1712     USE_LINUX=1
1713     cat >>confdefs.h <<\_ACEOF
1714 #define __LINUX__ 1
1715 _ACEOF
1716
1717     TMP=`uname -m`
1718     if test "x$TMP" = "xalpha"; then
1719       USE_ALPHA=1
1720       cat >>confdefs.h <<\_ACEOF
1721 #define __ALPHA__ 1
1722 _ACEOF
1723
1724     fi
1725     DEFAULT_DEFAULT_wxUSE_GTK=1
1726   ;;
1727   *-*-gnu* )
1728     USE_GNU=1
1729     cat >>confdefs.h <<\_ACEOF
1730 #define __GNU__ 1
1731 _ACEOF
1732
1733     TMP=`uname -m`
1734     if test "x$TMP" = "xalpha"; then
1735       USE_ALPHA=1
1736       cat >>confdefs.h <<\_ACEOF
1737 #define __ALPHA__ 1
1738 _ACEOF
1739
1740     fi
1741     DEFAULT_DEFAULT_wxUSE_GTK=1
1742   ;;
1743   *-*-irix5* | *-*-irix6* )
1744     USE_SGI=1
1745     USE_SVR4=1
1746     cat >>confdefs.h <<\_ACEOF
1747 #define __SGI__ 1
1748 _ACEOF
1749
1750     cat >>confdefs.h <<\_ACEOF
1751 #define __SVR4__ 1
1752 _ACEOF
1753
1754     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1755   ;;
1756   *-*-solaris2* )
1757     USE_SUN=1
1758     USE_SOLARIS=1
1759     USE_SVR4=1
1760     cat >>confdefs.h <<\_ACEOF
1761 #define __SUN__ 1
1762 _ACEOF
1763
1764     cat >>confdefs.h <<\_ACEOF
1765 #define __SOLARIS__ 1
1766 _ACEOF
1767
1768     cat >>confdefs.h <<\_ACEOF
1769 #define __SVR4__ 1
1770 _ACEOF
1771
1772     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1774   ;;
1775   *-*-sunos4* )
1776     USE_SUN=1
1777     USE_SUNOS=1
1778     USE_BSD=1
1779     cat >>confdefs.h <<\_ACEOF
1780 #define __SUN__ 1
1781 _ACEOF
1782
1783     cat >>confdefs.h <<\_ACEOF
1784 #define __SUNOS__ 1
1785 _ACEOF
1786
1787     cat >>confdefs.h <<\_ACEOF
1788 #define __BSD__ 1
1789 _ACEOF
1790
1791     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792   ;;
1793   *-*-freebsd*)
1794     USE_BSD=1
1795     USE_FREEBSD=1
1796     cat >>confdefs.h <<\_ACEOF
1797 #define __FREEBSD__ 1
1798 _ACEOF
1799
1800     cat >>confdefs.h <<\_ACEOF
1801 #define __BSD__ 1
1802 _ACEOF
1803
1804     DEFAULT_DEFAULT_wxUSE_GTK=1
1805   ;;
1806   *-*-openbsd*)
1807     USE_BSD=1
1808     USE_OPENBSD=1
1809     cat >>confdefs.h <<\_ACEOF
1810 #define __OPENBSD__ 1
1811 _ACEOF
1812
1813     cat >>confdefs.h <<\_ACEOF
1814 #define __BSD__ 1
1815 _ACEOF
1816
1817     DEFAULT_DEFAULT_wxUSE_GTK=1
1818   ;;
1819   *-*-netbsd*)
1820     USE_BSD=1
1821     USE_NETBSD=1
1822     cat >>confdefs.h <<\_ACEOF
1823 #define __NETBSD__ 1
1824 _ACEOF
1825
1826     cat >>confdefs.h <<\_ACEOF
1827 #define __BSD__ 1
1828 _ACEOF
1829
1830     DEFAULT_DEFAULT_wxUSE_GTK=1
1831   ;;
1832   *-*-osf* )
1833     USE_ALPHA=1
1834     USE_OSF=1
1835     cat >>confdefs.h <<\_ACEOF
1836 #define __ALPHA__ 1
1837 _ACEOF
1838
1839     cat >>confdefs.h <<\_ACEOF
1840 #define __OSF__ 1
1841 _ACEOF
1842
1843     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1844     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1845   ;;
1846   *-*-dgux5* )
1847     USE_ALPHA=1
1848     USE_SVR4=1
1849     cat >>confdefs.h <<\_ACEOF
1850 #define __ALPHA__ 1
1851 _ACEOF
1852
1853     cat >>confdefs.h <<\_ACEOF
1854 #define __SVR4__ 1
1855 _ACEOF
1856
1857     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858   ;;
1859   *-*-sysv5* )
1860     USE_SYSV=1
1861     USE_SVR4=1
1862     cat >>confdefs.h <<\_ACEOF
1863 #define __SYSV__ 1
1864 _ACEOF
1865
1866     cat >>confdefs.h <<\_ACEOF
1867 #define __SVR4__ 1
1868 _ACEOF
1869
1870     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871   ;;
1872   *-*-aix* )
1873     USE_AIX=1
1874     USE_SYSV=1
1875     USE_SVR4=1
1876                         SO_SUFFIX=a
1877     cat >>confdefs.h <<\_ACEOF
1878 #define __AIX__ 1
1879 _ACEOF
1880
1881     cat >>confdefs.h <<\_ACEOF
1882 #define __SYSV__ 1
1883 _ACEOF
1884
1885     cat >>confdefs.h <<\_ACEOF
1886 #define __SVR4__ 1
1887 _ACEOF
1888
1889     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890   ;;
1891
1892   *-*-*UnixWare*)
1893     USE_SYSV=1
1894     USE_SVR4=1
1895     USE_UNIXWARE=1
1896     cat >>confdefs.h <<\_ACEOF
1897 #define __UNIXWARE__ 1
1898 _ACEOF
1899
1900   ;;
1901
1902   *-*-cygwin* | *-*-mingw32* )
1903                 SO_SUFFIX=dll
1904     PROGRAM_EXT=".exe"
1905     RESCOMP=windres
1906     DEFAULT_DEFAULT_wxUSE_MSW=1
1907   ;;
1908
1909   *-pc-msdosdjgpp )
1910     USE_UNIX=0
1911     USE_DOS=1
1912     cat >>confdefs.h <<\_ACEOF
1913 #define __DOS__ 1
1914 _ACEOF
1915
1916     PROGRAM_EXT=".exe"
1917     DEFAULT_DEFAULT_wxUSE_MGL=1
1918         LIBS="$LIBS -lstdc++"
1919   ;;
1920
1921   *-pc-os2_emx | *-pc-os2-emx )
1922     cat >>confdefs.h <<\_ACEOF
1923 #define __EMX__ 1
1924 _ACEOF
1925
1926     USE_OS2=1
1927     cat >>confdefs.h <<\_ACEOF
1928 #define __OS2__ 1
1929 _ACEOF
1930
1931     PROGRAM_EXT=".exe"
1932     DEFAULT_DEFAULT_wxUSE_PM=1
1933         CXX=gcc
1934     LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
1935                         ac_executable_extensions=".exe"
1936     export ac_executable_extensions
1937             ac_save_IFS="$IFS"
1938     IFS='\\'
1939     ac_TEMP_PATH=
1940     for ac_dir in $PATH; do
1941       IFS=$ac_save_IFS
1942       if test -z "$ac_TEMP_PATH"; then
1943         ac_TEMP_PATH="$ac_dir"
1944       else
1945         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1946       fi
1947     done
1948     export PATH="$ac_TEMP_PATH"
1949     unset ac_TEMP_PATH
1950   ;;
1951
1952   powerpc-*-darwin* )
1953         USE_BSD=1
1954     USE_DARWIN=1
1955     SO_SUFFIX=dylib
1956     cat >>confdefs.h <<\_ACEOF
1957 #define __BSD__ 1
1958 _ACEOF
1959
1960     cat >>confdefs.h <<\_ACEOF
1961 #define __DARWIN__ 1
1962 _ACEOF
1963
1964     cat >>confdefs.h <<\_ACEOF
1965 #define __POWERPC__ 1
1966 _ACEOF
1967
1968     cat >>confdefs.h <<\_ACEOF
1969 #define TARGET_CARBON 1
1970 _ACEOF
1971
1972     DEFAULT_DEFAULT_wxUSE_MAC=1
1973   ;;
1974
1975   *-*-beos* )
1976         USE_BEOS=1
1977     cat >>confdefs.h <<\_ACEOF
1978 #define __BEOS__ 1
1979 _ACEOF
1980
1981   ;;
1982
1983   *)
1984     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1985 echo "$as_me: error: unknown system type ${host}." >&2;}
1986    { (exit 1); exit 1; }; }
1987 esac
1988
1989
1990
1991
1992           wx_arg_cache_file="configarg.cache"
1993           echo "loading argument cache $wx_arg_cache_file"
1994           rm -f ${wx_arg_cache_file}.tmp
1995           touch ${wx_arg_cache_file}.tmp
1996           touch ${wx_arg_cache_file}
1997
1998
1999 DEBUG_CONFIGURE=0
2000 if test $DEBUG_CONFIGURE = 1; then
2001   DEFAULT_wxUSE_UNIVERSAL=no
2002   DEFAULT_wxUSE_STL=no
2003
2004   DEFAULT_wxUSE_NANOX=no
2005
2006   DEFAULT_wxUSE_THREADS=yes
2007
2008   DEFAULT_wxUSE_SHARED=yes
2009   DEFAULT_wxUSE_OPTIMISE=no
2010   DEFAULT_wxUSE_PROFILE=no
2011   DEFAULT_wxUSE_NO_DEPS=no
2012   DEFAULT_wxUSE_NO_RTTI=no
2013   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2014   DEFAULT_wxUSE_PERMISSIVE=no
2015   DEFAULT_wxUSE_DEBUG_FLAG=yes
2016   DEFAULT_wxUSE_DEBUG_INFO=yes
2017   DEFAULT_wxUSE_DEBUG_GDB=yes
2018   DEFAULT_wxUSE_MEM_TRACING=no
2019   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2020   DEFAULT_wxUSE_DMALLOC=no
2021   DEFAULT_wxUSE_APPLE_IEEE=no
2022
2023   DEFAULT_wxUSE_EXCEPTIONS=no
2024   DEFAULT_wxUSE_LOG=yes
2025   DEFAULT_wxUSE_LOGWINDOW=no
2026   DEFAULT_wxUSE_LOGGUI=no
2027   DEFAULT_wxUSE_LOGDIALOG=no
2028
2029   DEFAULT_wxUSE_GUI=yes
2030   DEFAULT_wxUSE_CONTROLS=no
2031
2032   DEFAULT_wxUSE_REGEX=no
2033   DEFAULT_wxUSE_XML=no
2034   DEFAULT_wxUSE_EXPAT=no
2035   DEFAULT_wxUSE_ZLIB=no
2036   DEFAULT_wxUSE_LIBPNG=no
2037   DEFAULT_wxUSE_LIBJPEG=no
2038   DEFAULT_wxUSE_LIBTIFF=no
2039   DEFAULT_wxUSE_LIBXPM=no
2040   DEFAULT_wxUSE_ODBC=no
2041   DEFAULT_wxUSE_OPENGL=no
2042
2043   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2044   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2045   DEFAULT_wxUSE_STD_IOSTREAM=no
2046   DEFAULT_wxUSE_CMDLINE_PARSER=no
2047   DEFAULT_wxUSE_DATETIME=no
2048   DEFAULT_wxUSE_TIMER=no
2049   DEFAULT_wxUSE_STOPWATCH=no
2050   DEFAULT_wxUSE_FILE=no
2051   DEFAULT_wxUSE_FFILE=no
2052   DEFAULT_wxUSE_TEXTBUFFER=no
2053   DEFAULT_wxUSE_TEXTFILE=no
2054   DEFAULT_wxUSE_WAVE=no
2055   DEFAULT_wxUSE_INTL=no
2056   DEFAULT_wxUSE_CONFIG=no
2057   DEFAULT_wxUSE_FONTMAP=no
2058   DEFAULT_wxUSE_STREAMS=no
2059   DEFAULT_wxUSE_SOCKETS=no
2060   DEFAULT_wxUSE_OLE=no
2061   DEFAULT_wxUSE_DATAOBJ=no
2062   DEFAULT_wxUSE_DIALUP_MANAGER=no
2063   DEFAULT_wxUSE_JOYSTICK=no
2064   DEFAULT_wxUSE_DYNLIB_CLASS=no
2065   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2066   DEFAULT_wxUSE_LONGLONG=no
2067   DEFAULT_wxUSE_GEOMETRY=no
2068
2069   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2070   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2071   DEFAULT_wxUSE_POSTSCRIPT=no
2072
2073   DEFAULT_wxUSE_CLIPBOARD=no
2074   DEFAULT_wxUSE_TOOLTIPS=no
2075   DEFAULT_wxUSE_DRAG_AND_DROP=no
2076   DEFAULT_wxUSE_DRAGIMAGE=no
2077   DEFAULT_wxUSE_SPLINES=no
2078
2079   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2080   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2081   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2082
2083   DEFAULT_wxUSE_RESOURCES=no
2084   DEFAULT_wxUSE_CONSTRAINTS=no
2085   DEFAULT_wxUSE_IPC=no
2086   DEFAULT_wxUSE_HELP=no
2087   DEFAULT_wxUSE_MS_HTML_HELP=no
2088   DEFAULT_wxUSE_WXHTML_HELP=no
2089   DEFAULT_wxUSE_TREELAYOUT=no
2090   DEFAULT_wxUSE_METAFILE=no
2091   DEFAULT_wxUSE_MIMETYPE=no
2092   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2093   DEFAULT_wxUSE_PROTOCOL=no
2094   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2095   DEFAULT_wxUSE_PROTOCOL_FTP=no
2096   DEFAULT_wxUSE_PROTOCOL_FILE=no
2097   DEFAULT_wxUSE_URL=no
2098
2099   DEFAULT_wxUSE_COMMONDLGS=no
2100   DEFAULT_wxUSE_CHOICEDLG=no
2101   DEFAULT_wxUSE_COLOURDLG=no
2102   DEFAULT_wxUSE_DIRDLG=no
2103   DEFAULT_wxUSE_FILEDLG=no
2104   DEFAULT_wxUSE_FINDREPLDLG=no
2105   DEFAULT_wxUSE_FONTDLG=no
2106   DEFAULT_wxUSE_MSGDLG=no
2107   DEFAULT_wxUSE_NUMBERDLG=no
2108   DEFAULT_wxUSE_TEXTDLG=no
2109   DEFAULT_wxUSE_SPLASH=no
2110   DEFAULT_wxUSE_STARTUP_TIPS=no
2111   DEFAULT_wxUSE_PROGRESSDLG=no
2112   DEFAULT_wxUSE_WIZARDDLG=no
2113
2114   DEFAULT_wxUSE_MENUS=no
2115   DEFAULT_wxUSE_MINIFRAME=no
2116   DEFAULT_wxUSE_HTML=no
2117   DEFAULT_wxUSE_FILESYSTEM=no
2118   DEFAULT_wxUSE_FS_INET=no
2119   DEFAULT_wxUSE_FS_ZIP=no
2120   DEFAULT_wxUSE_BUSYINFO=no
2121   DEFAULT_wxUSE_ZIPSTREAM=no
2122   DEFAULT_wxUSE_GZSTREAM=no
2123   DEFAULT_wxUSE_VALIDATORS=no
2124
2125   DEFAULT_wxUSE_ACCEL=no
2126   DEFAULT_wxUSE_BUTTON=no
2127   DEFAULT_wxUSE_BMPBUTTON=no
2128   DEFAULT_wxUSE_CALCTRL=no
2129   DEFAULT_wxUSE_CARET=no
2130   DEFAULT_wxUSE_CHECKBOX=no
2131   DEFAULT_wxUSE_CHECKLST=no
2132   DEFAULT_wxUSE_CHOICE=no
2133   DEFAULT_wxUSE_COMBOBOX=no
2134   DEFAULT_wxUSE_DISPLAY=no
2135   DEFAULT_wxUSE_GAUGE=no
2136   DEFAULT_wxUSE_GRID=no
2137   DEFAULT_wxUSE_IMAGLIST=no
2138   DEFAULT_wxUSE_LISTBOOK=no
2139   DEFAULT_wxUSE_LISTBOX=no
2140   DEFAULT_wxUSE_LISTCTRL=no
2141   DEFAULT_wxUSE_NOTEBOOK=no
2142   DEFAULT_wxUSE_RADIOBOX=no
2143   DEFAULT_wxUSE_RADIOBTN=no
2144   DEFAULT_wxUSE_SASH=no
2145   DEFAULT_wxUSE_SCROLLBAR=no
2146   DEFAULT_wxUSE_SLIDER=no
2147   DEFAULT_wxUSE_SPINBTN=no
2148   DEFAULT_wxUSE_SPINCTRL=no
2149   DEFAULT_wxUSE_SPLITTER=no
2150   DEFAULT_wxUSE_STATBMP=no
2151   DEFAULT_wxUSE_STATBOX=no
2152   DEFAULT_wxUSE_STATLINE=no
2153   DEFAULT_wxUSE_STATTEXT=no
2154   DEFAULT_wxUSE_STATUSBAR=yes
2155   DEFAULT_wxUSE_TABDIALOG=no
2156   DEFAULT_wxUSE_TEXTCTRL=no
2157   DEFAULT_wxUSE_TOGGLEBTN=no
2158   DEFAULT_wxUSE_TOOLBAR=no
2159   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2160   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2161   DEFAULT_wxUSE_TREECTRL=no
2162   DEFAULT_wxUSE_POPUPWIN=no
2163   DEFAULT_wxUSE_TIPWINDOW=no
2164
2165   DEFAULT_wxUSE_UNICODE=no
2166   DEFAULT_wxUSE_UNICODE_MSLU=no
2167   DEFAULT_wxUSE_WCSRTOMBS=no
2168
2169   DEFAULT_wxUSE_PALETTE=no
2170   DEFAULT_wxUSE_IMAGE=no
2171   DEFAULT_wxUSE_GIF=no
2172   DEFAULT_wxUSE_PCX=no
2173   DEFAULT_wxUSE_PNM=no
2174   DEFAULT_wxUSE_IFF=no
2175   DEFAULT_wxUSE_XPM=no
2176   DEFAULT_wxUSE_ICO_CUR=no
2177   DEFAULT_wxUSE_ACCESSIBILITY=no
2178
2179   DEFAULT_wxUSE_MONOLITHIC=no
2180   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2181 else
2182   DEFAULT_wxUSE_UNIVERSAL=no
2183   DEFAULT_wxUSE_STL=no
2184
2185   DEFAULT_wxUSE_NANOX=no
2186
2187   DEFAULT_wxUSE_THREADS=yes
2188
2189   DEFAULT_wxUSE_SHARED=yes
2190   DEFAULT_wxUSE_OPTIMISE=yes
2191   DEFAULT_wxUSE_PROFILE=no
2192   DEFAULT_wxUSE_NO_DEPS=no
2193   DEFAULT_wxUSE_NO_RTTI=no
2194   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2195   DEFAULT_wxUSE_PERMISSIVE=no
2196   DEFAULT_wxUSE_DEBUG_FLAG=no
2197   DEFAULT_wxUSE_DEBUG_INFO=no
2198   DEFAULT_wxUSE_DEBUG_GDB=no
2199   DEFAULT_wxUSE_MEM_TRACING=no
2200   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2201   DEFAULT_wxUSE_DMALLOC=no
2202   DEFAULT_wxUSE_APPLE_IEEE=yes
2203
2204   DEFAULT_wxUSE_EXCEPTIONS=yes
2205   DEFAULT_wxUSE_LOG=yes
2206   DEFAULT_wxUSE_LOGWINDOW=yes
2207   DEFAULT_wxUSE_LOGGUI=yes
2208   DEFAULT_wxUSE_LOGDIALOG=yes
2209
2210   DEFAULT_wxUSE_GUI=yes
2211
2212   DEFAULT_wxUSE_REGEX=yes
2213   DEFAULT_wxUSE_XML=yes
2214   DEFAULT_wxUSE_EXPAT=yes
2215   DEFAULT_wxUSE_ZLIB=yes
2216   DEFAULT_wxUSE_LIBPNG=yes
2217   DEFAULT_wxUSE_LIBJPEG=yes
2218   DEFAULT_wxUSE_LIBTIFF=yes
2219   DEFAULT_wxUSE_LIBXPM=yes
2220   DEFAULT_wxUSE_LIBMSPACK=yes
2221   DEFAULT_wxUSE_ODBC=no
2222   DEFAULT_wxUSE_OPENGL=no
2223
2224   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2225   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2226   DEFAULT_wxUSE_STD_IOSTREAM=no
2227   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2228   DEFAULT_wxUSE_DATETIME=yes
2229   DEFAULT_wxUSE_TIMER=yes
2230   DEFAULT_wxUSE_STOPWATCH=yes
2231   DEFAULT_wxUSE_FILE=yes
2232   DEFAULT_wxUSE_FFILE=yes
2233   DEFAULT_wxUSE_TEXTBUFFER=yes
2234   DEFAULT_wxUSE_TEXTFILE=yes
2235   DEFAULT_wxUSE_WAVE=no
2236   DEFAULT_wxUSE_INTL=yes
2237   DEFAULT_wxUSE_CONFIG=yes
2238   DEFAULT_wxUSE_FONTMAP=yes
2239   DEFAULT_wxUSE_STREAMS=yes
2240   DEFAULT_wxUSE_SOCKETS=yes
2241   DEFAULT_wxUSE_OLE=yes
2242   DEFAULT_wxUSE_DATAOBJ=yes
2243   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2244   DEFAULT_wxUSE_JOYSTICK=yes
2245   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2246   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2247   DEFAULT_wxUSE_LONGLONG=yes
2248   DEFAULT_wxUSE_GEOMETRY=yes
2249
2250   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2251   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2252   DEFAULT_wxUSE_POSTSCRIPT=yes
2253
2254   DEFAULT_wxUSE_CLIPBOARD=yes
2255   DEFAULT_wxUSE_TOOLTIPS=yes
2256   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2257   DEFAULT_wxUSE_DRAGIMAGE=yes
2258   DEFAULT_wxUSE_SPLINES=yes
2259
2260   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2261   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2262   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2263
2264   DEFAULT_wxUSE_RESOURCES=no
2265   DEFAULT_wxUSE_CONSTRAINTS=yes
2266   DEFAULT_wxUSE_IPC=yes
2267   DEFAULT_wxUSE_HELP=yes
2268   DEFAULT_wxUSE_MS_HTML_HELP=yes
2269   DEFAULT_wxUSE_WXHTML_HELP=yes
2270   DEFAULT_wxUSE_TREELAYOUT=yes
2271   DEFAULT_wxUSE_METAFILE=yes
2272   DEFAULT_wxUSE_MIMETYPE=yes
2273   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2274   DEFAULT_wxUSE_PROTOCOL=yes
2275   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2276   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2277   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2278   DEFAULT_wxUSE_URL=yes
2279
2280   DEFAULT_wxUSE_COMMONDLGS=yes
2281   DEFAULT_wxUSE_CHOICEDLG=yes
2282   DEFAULT_wxUSE_COLOURDLG=yes
2283   DEFAULT_wxUSE_DIRDLG=yes
2284   DEFAULT_wxUSE_FILEDLG=yes
2285   DEFAULT_wxUSE_FINDREPLDLG=yes
2286   DEFAULT_wxUSE_FONTDLG=yes
2287   DEFAULT_wxUSE_MSGDLG=yes
2288   DEFAULT_wxUSE_NUMBERDLG=yes
2289   DEFAULT_wxUSE_TEXTDLG=yes
2290   DEFAULT_wxUSE_SPLASH=yes
2291   DEFAULT_wxUSE_STARTUP_TIPS=yes
2292   DEFAULT_wxUSE_PROGRESSDLG=yes
2293   DEFAULT_wxUSE_WIZARDDLG=yes
2294
2295   DEFAULT_wxUSE_MENUS=yes
2296   DEFAULT_wxUSE_MINIFRAME=yes
2297   DEFAULT_wxUSE_HTML=yes
2298   DEFAULT_wxUSE_FILESYSTEM=yes
2299   DEFAULT_wxUSE_FS_INET=yes
2300   DEFAULT_wxUSE_FS_ZIP=yes
2301   DEFAULT_wxUSE_BUSYINFO=yes
2302   DEFAULT_wxUSE_ZIPSTREAM=yes
2303   DEFAULT_wxUSE_GZSTREAM=yes
2304   DEFAULT_wxUSE_VALIDATORS=yes
2305
2306   DEFAULT_wxUSE_ACCEL=yes
2307   DEFAULT_wxUSE_BUTTON=yes
2308   DEFAULT_wxUSE_BMPBUTTON=yes
2309   DEFAULT_wxUSE_CALCTRL=yes
2310   DEFAULT_wxUSE_CARET=yes
2311   DEFAULT_wxUSE_CHECKBOX=yes
2312   DEFAULT_wxUSE_CHECKLST=yes
2313   DEFAULT_wxUSE_CHOICE=yes
2314   DEFAULT_wxUSE_COMBOBOX=yes
2315   DEFAULT_wxUSE_DISPLAY=no
2316   DEFAULT_wxUSE_GAUGE=yes
2317   DEFAULT_wxUSE_GRID=yes
2318   DEFAULT_wxUSE_IMAGLIST=yes
2319   DEFAULT_wxUSE_LISTBOOK=yes
2320   DEFAULT_wxUSE_LISTBOX=yes
2321   DEFAULT_wxUSE_LISTCTRL=yes
2322   DEFAULT_wxUSE_NOTEBOOK=yes
2323   DEFAULT_wxUSE_RADIOBOX=yes
2324   DEFAULT_wxUSE_RADIOBTN=yes
2325   DEFAULT_wxUSE_SASH=yes
2326   DEFAULT_wxUSE_SCROLLBAR=yes
2327   DEFAULT_wxUSE_SLIDER=yes
2328   DEFAULT_wxUSE_SPINBTN=yes
2329   DEFAULT_wxUSE_SPINCTRL=yes
2330   DEFAULT_wxUSE_SPLITTER=yes
2331   DEFAULT_wxUSE_STATBMP=yes
2332   DEFAULT_wxUSE_STATBOX=yes
2333   DEFAULT_wxUSE_STATLINE=yes
2334   DEFAULT_wxUSE_STATTEXT=yes
2335   DEFAULT_wxUSE_STATUSBAR=yes
2336   DEFAULT_wxUSE_TABDIALOG=no
2337   DEFAULT_wxUSE_TEXTCTRL=yes
2338   DEFAULT_wxUSE_TOGGLEBTN=yes
2339   DEFAULT_wxUSE_TOOLBAR=yes
2340   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2341   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2342   DEFAULT_wxUSE_TREECTRL=yes
2343   DEFAULT_wxUSE_POPUPWIN=yes
2344   DEFAULT_wxUSE_TIPWINDOW=yes
2345
2346   DEFAULT_wxUSE_UNICODE=no
2347   DEFAULT_wxUSE_UNICODE_MSLU=yes
2348   DEFAULT_wxUSE_WCSRTOMBS=no
2349
2350   DEFAULT_wxUSE_PALETTE=yes
2351   DEFAULT_wxUSE_IMAGE=yes
2352   DEFAULT_wxUSE_GIF=yes
2353   DEFAULT_wxUSE_PCX=yes
2354   DEFAULT_wxUSE_IFF=no
2355   DEFAULT_wxUSE_PNM=yes
2356   DEFAULT_wxUSE_XPM=yes
2357   DEFAULT_wxUSE_ICO_CUR=yes
2358   DEFAULT_wxUSE_ACCESSIBILITY=no
2359
2360   DEFAULT_wxUSE_MONOLITHIC=no
2361   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2362 fi
2363
2364
2365
2366 for toolkit in `echo $ALL_TOOLKITS`; do
2367   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2368   if test "x$LINE" != "x" ; then
2369     has_toolkit_in_cache=1
2370     eval "DEFAULT_$LINE"
2371     eval "CACHE_$toolkit=1"
2372   fi
2373 done
2374
2375
2376
2377           enablestring=
2378           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2379 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2380           no_cache=0
2381           # Check whether --enable-gui or --disable-gui was given.
2382 if test "${enable_gui+set}" = set; then
2383   enableval="$enable_gui"
2384
2385                           if test "$enableval" = yes; then
2386                             ac_cv_use_gui='wxUSE_GUI=yes'
2387                           else
2388                             ac_cv_use_gui='wxUSE_GUI=no'
2389                           fi
2390
2391 else
2392
2393                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2394                           if test "x$LINE" != x ; then
2395                             eval "DEFAULT_$LINE"
2396                           else
2397                             no_cache=1
2398                           fi
2399
2400                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2401
2402 fi;
2403
2404           eval "$ac_cv_use_gui"
2405           if test "$no_cache" != 1; then
2406             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2407           fi
2408
2409           if test "$wxUSE_GUI" = yes; then
2410             echo "$as_me:$LINENO: result: yes" >&5
2411 echo "${ECHO_T}yes" >&6
2412           else
2413             echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2415           fi
2416
2417
2418           enablestring=
2419           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2420 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2421           no_cache=0
2422           # Check whether --enable-monolithic or --disable-monolithic was given.
2423 if test "${enable_monolithic+set}" = set; then
2424   enableval="$enable_monolithic"
2425
2426                           if test "$enableval" = yes; then
2427                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2428                           else
2429                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2430                           fi
2431
2432 else
2433
2434                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2435                           if test "x$LINE" != x ; then
2436                             eval "DEFAULT_$LINE"
2437                           else
2438                             no_cache=1
2439                           fi
2440
2441                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2442
2443 fi;
2444
2445           eval "$ac_cv_use_monolithic"
2446           if test "$no_cache" != 1; then
2447             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2448           fi
2449
2450           if test "$wxUSE_MONOLITHIC" = yes; then
2451             echo "$as_me:$LINENO: result: yes" >&5
2452 echo "${ECHO_T}yes" >&6
2453           else
2454             echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6
2456           fi
2457
2458
2459 if test "$wxUSE_GUI" = "yes"; then
2460
2461
2462           enablestring=
2463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2464 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2465           no_cache=0
2466           # Check whether --enable-universal or --disable-universal was given.
2467 if test "${enable_universal+set}" = set; then
2468   enableval="$enable_universal"
2469
2470                           if test "$enableval" = yes; then
2471                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2472                           else
2473                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2474                           fi
2475
2476 else
2477
2478                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2479                           if test "x$LINE" != x ; then
2480                             eval "DEFAULT_$LINE"
2481                           else
2482                             no_cache=1
2483                           fi
2484
2485                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2486
2487 fi;
2488
2489           eval "$ac_cv_use_universal"
2490           if test "$no_cache" != 1; then
2491             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2492           fi
2493
2494           if test "$wxUSE_UNIVERSAL" = yes; then
2495             echo "$as_me:$LINENO: result: yes" >&5
2496 echo "${ECHO_T}yes" >&6
2497           else
2498             echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2500           fi
2501
2502
2503 # Check whether --with-gtk or --without-gtk was given.
2504 if test "${with_gtk+set}" = set; then
2505   withval="$with_gtk"
2506   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2507 fi;
2508
2509 # Check whether --with-motif or --without-motif was given.
2510 if test "${with_motif+set}" = set; then
2511   withval="$with_motif"
2512   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2513 fi;
2514
2515 # Check whether --with-mac or --without-mac was given.
2516 if test "${with_mac+set}" = set; then
2517   withval="$with_mac"
2518   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2519 fi;
2520
2521 # Check whether --with-cocoa or --without-cocoa was given.
2522 if test "${with_cocoa+set}" = set; then
2523   withval="$with_cocoa"
2524   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2525 fi;
2526
2527 # Check whether --with-wine or --without-wine was given.
2528 if test "${with_wine+set}" = set; then
2529   withval="$with_wine"
2530   wxUSE_WINE="$withval" CACHE_WINE=1
2531 fi;
2532
2533 # Check whether --with-msw or --without-msw was given.
2534 if test "${with_msw+set}" = set; then
2535   withval="$with_msw"
2536   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2537 fi;
2538
2539 # Check whether --with-pm or --without-pm was given.
2540 if test "${with_pm+set}" = set; then
2541   withval="$with_pm"
2542   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2543 fi;
2544
2545 # Check whether --with-mgl or --without-mgl was given.
2546 if test "${with_mgl+set}" = set; then
2547   withval="$with_mgl"
2548   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2549 fi;
2550
2551 # Check whether --with-microwin or --without-microwin was given.
2552 if test "${with_microwin+set}" = set; then
2553   withval="$with_microwin"
2554   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2555 fi;
2556
2557 # Check whether --with-x11 or --without-x11 was given.
2558 if test "${with_x11+set}" = set; then
2559   withval="$with_x11"
2560   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2561 fi;
2562
2563           enablestring=
2564           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2565 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2566           no_cache=0
2567           # Check whether --enable-nanox or --disable-nanox was given.
2568 if test "${enable_nanox+set}" = set; then
2569   enableval="$enable_nanox"
2570
2571                           if test "$enableval" = yes; then
2572                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2573                           else
2574                             ac_cv_use_nanox='wxUSE_NANOX=no'
2575                           fi
2576
2577 else
2578
2579                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2580                           if test "x$LINE" != x ; then
2581                             eval "DEFAULT_$LINE"
2582                           else
2583                             no_cache=1
2584                           fi
2585
2586                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2587
2588 fi;
2589
2590           eval "$ac_cv_use_nanox"
2591           if test "$no_cache" != 1; then
2592             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2593           fi
2594
2595           if test "$wxUSE_NANOX" = yes; then
2596             echo "$as_me:$LINENO: result: yes" >&5
2597 echo "${ECHO_T}yes" >&6
2598           else
2599             echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601           fi
2602
2603
2604
2605           enablestring=
2606           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2607 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2608           no_cache=0
2609           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2610 if test "${enable_gtk2+set}" = set; then
2611   enableval="$enable_gtk2"
2612
2613                           if test "$enableval" = yes; then
2614                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2615                           else
2616                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2617                           fi
2618
2619 else
2620
2621                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2622                           if test "x$LINE" != x ; then
2623                             eval "DEFAULT_$LINE"
2624                           else
2625                             no_cache=1
2626                           fi
2627
2628                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2629
2630 fi;
2631
2632           eval "$ac_cv_use_gtk2"
2633           if test "$no_cache" != 1; then
2634             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2635           fi
2636
2637           if test "$wxUSE_GTK2" = yes; then
2638             echo "$as_me:$LINENO: result: yes" >&5
2639 echo "${ECHO_T}yes" >&6
2640           else
2641             echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2643           fi
2644
2645
2646
2647           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2648 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2649           no_cache=0
2650
2651 # Check whether --with-libpng or --without-libpng was given.
2652 if test "${with_libpng+set}" = set; then
2653   withval="$with_libpng"
2654
2655                         if test "$withval" = yes; then
2656                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2657                         elif test "$withval" = no; then
2658                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2659                         elif test "$withval" = sys; then
2660                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2661                         elif test "$withval" = builtin; then
2662                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2663                         else
2664                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2665 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2666    { (exit 1); exit 1; }; }
2667                         fi
2668
2669 else
2670
2671                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2672                         if test "x$LINE" != x ; then
2673                           eval "DEFAULT_$LINE"
2674                         else
2675                           no_cache=1
2676                         fi
2677
2678                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2679
2680 fi;
2681
2682           eval "$ac_cv_use_libpng"
2683           if test "$no_cache" != 1; then
2684             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2685           fi
2686
2687           if test "$wxUSE_LIBPNG" = yes; then
2688             echo "$as_me:$LINENO: result: yes" >&5
2689 echo "${ECHO_T}yes" >&6
2690           elif test "$wxUSE_LIBPNG" = no; then
2691             echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6
2693           elif test "$wxUSE_LIBPNG" = sys; then
2694             echo "$as_me:$LINENO: result: system version" >&5
2695 echo "${ECHO_T}system version" >&6
2696           elif test "$wxUSE_LIBPNG" = builtin; then
2697             echo "$as_me:$LINENO: result: builtin version" >&5
2698 echo "${ECHO_T}builtin version" >&6
2699           else
2700             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2701 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2702    { (exit 1); exit 1; }; }
2703           fi
2704
2705
2706           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2707 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2708           no_cache=0
2709
2710 # Check whether --with-libjpeg or --without-libjpeg was given.
2711 if test "${with_libjpeg+set}" = set; then
2712   withval="$with_libjpeg"
2713
2714                         if test "$withval" = yes; then
2715                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2716                         elif test "$withval" = no; then
2717                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2718                         elif test "$withval" = sys; then
2719                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2720                         elif test "$withval" = builtin; then
2721                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2722                         else
2723                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2724 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2725    { (exit 1); exit 1; }; }
2726                         fi
2727
2728 else
2729
2730                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2731                         if test "x$LINE" != x ; then
2732                           eval "DEFAULT_$LINE"
2733                         else
2734                           no_cache=1
2735                         fi
2736
2737                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2738
2739 fi;
2740
2741           eval "$ac_cv_use_libjpeg"
2742           if test "$no_cache" != 1; then
2743             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2744           fi
2745
2746           if test "$wxUSE_LIBJPEG" = yes; then
2747             echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2749           elif test "$wxUSE_LIBJPEG" = no; then
2750             echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752           elif test "$wxUSE_LIBJPEG" = sys; then
2753             echo "$as_me:$LINENO: result: system version" >&5
2754 echo "${ECHO_T}system version" >&6
2755           elif test "$wxUSE_LIBJPEG" = builtin; then
2756             echo "$as_me:$LINENO: result: builtin version" >&5
2757 echo "${ECHO_T}builtin version" >&6
2758           else
2759             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2760 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2761    { (exit 1); exit 1; }; }
2762           fi
2763
2764
2765           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2766 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2767           no_cache=0
2768
2769 # Check whether --with-libtiff or --without-libtiff was given.
2770 if test "${with_libtiff+set}" = set; then
2771   withval="$with_libtiff"
2772
2773                         if test "$withval" = yes; then
2774                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2775                         elif test "$withval" = no; then
2776                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2777                         elif test "$withval" = sys; then
2778                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2779                         elif test "$withval" = builtin; then
2780                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2781                         else
2782                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2783 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2784    { (exit 1); exit 1; }; }
2785                         fi
2786
2787 else
2788
2789                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2790                         if test "x$LINE" != x ; then
2791                           eval "DEFAULT_$LINE"
2792                         else
2793                           no_cache=1
2794                         fi
2795
2796                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2797
2798 fi;
2799
2800           eval "$ac_cv_use_libtiff"
2801           if test "$no_cache" != 1; then
2802             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2803           fi
2804
2805           if test "$wxUSE_LIBTIFF" = yes; then
2806             echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808           elif test "$wxUSE_LIBTIFF" = no; then
2809             echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6
2811           elif test "$wxUSE_LIBTIFF" = sys; then
2812             echo "$as_me:$LINENO: result: system version" >&5
2813 echo "${ECHO_T}system version" >&6
2814           elif test "$wxUSE_LIBTIFF" = builtin; then
2815             echo "$as_me:$LINENO: result: builtin version" >&5
2816 echo "${ECHO_T}builtin version" >&6
2817           else
2818             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2819 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2820    { (exit 1); exit 1; }; }
2821           fi
2822
2823
2824           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2825 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2826           no_cache=0
2827
2828 # Check whether --with-libxpm or --without-libxpm was given.
2829 if test "${with_libxpm+set}" = set; then
2830   withval="$with_libxpm"
2831
2832                         if test "$withval" = yes; then
2833                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2834                         elif test "$withval" = no; then
2835                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2836                         elif test "$withval" = sys; then
2837                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2838                         elif test "$withval" = builtin; then
2839                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2840                         else
2841                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2842 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2843    { (exit 1); exit 1; }; }
2844                         fi
2845
2846 else
2847
2848                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2849                         if test "x$LINE" != x ; then
2850                           eval "DEFAULT_$LINE"
2851                         else
2852                           no_cache=1
2853                         fi
2854
2855                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2856
2857 fi;
2858
2859           eval "$ac_cv_use_libxpm"
2860           if test "$no_cache" != 1; then
2861             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2862           fi
2863
2864           if test "$wxUSE_LIBXPM" = yes; then
2865             echo "$as_me:$LINENO: result: yes" >&5
2866 echo "${ECHO_T}yes" >&6
2867           elif test "$wxUSE_LIBXPM" = no; then
2868             echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870           elif test "$wxUSE_LIBXPM" = sys; then
2871             echo "$as_me:$LINENO: result: system version" >&5
2872 echo "${ECHO_T}system version" >&6
2873           elif test "$wxUSE_LIBXPM" = builtin; then
2874             echo "$as_me:$LINENO: result: builtin version" >&5
2875 echo "${ECHO_T}builtin version" >&6
2876           else
2877             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2878 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2879    { (exit 1); exit 1; }; }
2880           fi
2881
2882
2883           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2884 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2885           no_cache=0
2886
2887 # Check whether --with-libmspack or --without-libmspack was given.
2888 if test "${with_libmspack+set}" = set; then
2889   withval="$with_libmspack"
2890
2891                         if test "$withval" = yes; then
2892                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2893                         else
2894                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2895                         fi
2896
2897 else
2898
2899                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2900                         if test "x$LINE" != x ; then
2901                           eval "DEFAULT_$LINE"
2902                         else
2903                           no_cache=1
2904                         fi
2905
2906                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2907
2908 fi;
2909
2910           eval "$ac_cv_use_libmspack"
2911           if test "$no_cache" != 1; then
2912             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2913           fi
2914
2915           if test "$wxUSE_LIBMSPACK" = yes; then
2916             echo "$as_me:$LINENO: result: yes" >&5
2917 echo "${ECHO_T}yes" >&6
2918           else
2919             echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2921           fi
2922
2923
2924           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2925 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2926           no_cache=0
2927
2928 # Check whether --with-opengl or --without-opengl was given.
2929 if test "${with_opengl+set}" = set; then
2930   withval="$with_opengl"
2931
2932                         if test "$withval" = yes; then
2933                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2934                         else
2935                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2936                         fi
2937
2938 else
2939
2940                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2941                         if test "x$LINE" != x ; then
2942                           eval "DEFAULT_$LINE"
2943                         else
2944                           no_cache=1
2945                         fi
2946
2947                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2948
2949 fi;
2950
2951           eval "$ac_cv_use_opengl"
2952           if test "$no_cache" != 1; then
2953             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2954           fi
2955
2956           if test "$wxUSE_OPENGL" = yes; then
2957             echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6
2959           else
2960             echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6
2962           fi
2963
2964
2965 fi
2966
2967
2968           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2969 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2970           no_cache=0
2971
2972 # Check whether --with-dmalloc or --without-dmalloc was given.
2973 if test "${with_dmalloc+set}" = set; then
2974   withval="$with_dmalloc"
2975
2976                         if test "$withval" = yes; then
2977                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2978                         else
2979                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2980                         fi
2981
2982 else
2983
2984                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2985                         if test "x$LINE" != x ; then
2986                           eval "DEFAULT_$LINE"
2987                         else
2988                           no_cache=1
2989                         fi
2990
2991                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2992
2993 fi;
2994
2995           eval "$ac_cv_use_dmalloc"
2996           if test "$no_cache" != 1; then
2997             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2998           fi
2999
3000           if test "$wxUSE_DMALLOC" = yes; then
3001             echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6
3003           else
3004             echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3006           fi
3007
3008
3009           echo "$as_me:$LINENO: checking for --with-regex" >&5
3010 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3011           no_cache=0
3012
3013 # Check whether --with-regex or --without-regex was given.
3014 if test "${with_regex+set}" = set; then
3015   withval="$with_regex"
3016
3017                         if test "$withval" = yes; then
3018                           ac_cv_use_regex='wxUSE_REGEX=yes'
3019                         elif test "$withval" = no; then
3020                           ac_cv_use_regex='wxUSE_REGEX=no'
3021                         elif test "$withval" = sys; then
3022                           ac_cv_use_regex='wxUSE_REGEX=sys'
3023                         elif test "$withval" = builtin; then
3024                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3025                         else
3026                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3027 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3028    { (exit 1); exit 1; }; }
3029                         fi
3030
3031 else
3032
3033                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3034                         if test "x$LINE" != x ; then
3035                           eval "DEFAULT_$LINE"
3036                         else
3037                           no_cache=1
3038                         fi
3039
3040                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3041
3042 fi;
3043
3044           eval "$ac_cv_use_regex"
3045           if test "$no_cache" != 1; then
3046             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3047           fi
3048
3049           if test "$wxUSE_REGEX" = yes; then
3050             echo "$as_me:$LINENO: result: yes" >&5
3051 echo "${ECHO_T}yes" >&6
3052           elif test "$wxUSE_REGEX" = no; then
3053             echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3055           elif test "$wxUSE_REGEX" = sys; then
3056             echo "$as_me:$LINENO: result: system version" >&5
3057 echo "${ECHO_T}system version" >&6
3058           elif test "$wxUSE_REGEX" = builtin; then
3059             echo "$as_me:$LINENO: result: builtin version" >&5
3060 echo "${ECHO_T}builtin version" >&6
3061           else
3062             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3063 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3064    { (exit 1); exit 1; }; }
3065           fi
3066
3067
3068           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3069 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3070           no_cache=0
3071
3072 # Check whether --with-zlib or --without-zlib was given.
3073 if test "${with_zlib+set}" = set; then
3074   withval="$with_zlib"
3075
3076                         if test "$withval" = yes; then
3077                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3078                         elif test "$withval" = no; then
3079                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3080                         elif test "$withval" = sys; then
3081                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3082                         elif test "$withval" = builtin; then
3083                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3084                         else
3085                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3086 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3087    { (exit 1); exit 1; }; }
3088                         fi
3089
3090 else
3091
3092                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3093                         if test "x$LINE" != x ; then
3094                           eval "DEFAULT_$LINE"
3095                         else
3096                           no_cache=1
3097                         fi
3098
3099                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3100
3101 fi;
3102
3103           eval "$ac_cv_use_zlib"
3104           if test "$no_cache" != 1; then
3105             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3106           fi
3107
3108           if test "$wxUSE_ZLIB" = yes; then
3109             echo "$as_me:$LINENO: result: yes" >&5
3110 echo "${ECHO_T}yes" >&6
3111           elif test "$wxUSE_ZLIB" = no; then
3112             echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3114           elif test "$wxUSE_ZLIB" = sys; then
3115             echo "$as_me:$LINENO: result: system version" >&5
3116 echo "${ECHO_T}system version" >&6
3117           elif test "$wxUSE_ZLIB" = builtin; then
3118             echo "$as_me:$LINENO: result: builtin version" >&5
3119 echo "${ECHO_T}builtin version" >&6
3120           else
3121             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3122 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3123    { (exit 1); exit 1; }; }
3124           fi
3125
3126
3127           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3128 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3129           no_cache=0
3130
3131 # Check whether --with-odbc or --without-odbc was given.
3132 if test "${with_odbc+set}" = set; then
3133   withval="$with_odbc"
3134
3135                         if test "$withval" = yes; then
3136                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3137                         elif test "$withval" = no; then
3138                           ac_cv_use_odbc='wxUSE_ODBC=no'
3139                         elif test "$withval" = sys; then
3140                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3141                         elif test "$withval" = builtin; then
3142                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3143                         else
3144                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3145 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3146    { (exit 1); exit 1; }; }
3147                         fi
3148
3149 else
3150
3151                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3152                         if test "x$LINE" != x ; then
3153                           eval "DEFAULT_$LINE"
3154                         else
3155                           no_cache=1
3156                         fi
3157
3158                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3159
3160 fi;
3161
3162           eval "$ac_cv_use_odbc"
3163           if test "$no_cache" != 1; then
3164             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3165           fi
3166
3167           if test "$wxUSE_ODBC" = yes; then
3168             echo "$as_me:$LINENO: result: yes" >&5
3169 echo "${ECHO_T}yes" >&6
3170           elif test "$wxUSE_ODBC" = no; then
3171             echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3173           elif test "$wxUSE_ODBC" = sys; then
3174             echo "$as_me:$LINENO: result: system version" >&5
3175 echo "${ECHO_T}system version" >&6
3176           elif test "$wxUSE_ODBC" = builtin; then
3177             echo "$as_me:$LINENO: result: builtin version" >&5
3178 echo "${ECHO_T}builtin version" >&6
3179           else
3180             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3181 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3182    { (exit 1); exit 1; }; }
3183           fi
3184
3185
3186           echo "$as_me:$LINENO: checking for --with-expat" >&5
3187 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3188           no_cache=0
3189
3190 # Check whether --with-expat or --without-expat was given.
3191 if test "${with_expat+set}" = set; then
3192   withval="$with_expat"
3193
3194                         if test "$withval" = yes; then
3195                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3196                         elif test "$withval" = no; then
3197                           ac_cv_use_expat='wxUSE_EXPAT=no'
3198                         elif test "$withval" = sys; then
3199                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3200                         elif test "$withval" = builtin; then
3201                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3202                         else
3203                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3204 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3205    { (exit 1); exit 1; }; }
3206                         fi
3207
3208 else
3209
3210                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3211                         if test "x$LINE" != x ; then
3212                           eval "DEFAULT_$LINE"
3213                         else
3214                           no_cache=1
3215                         fi
3216
3217                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3218
3219 fi;
3220
3221           eval "$ac_cv_use_expat"
3222           if test "$no_cache" != 1; then
3223             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3224           fi
3225
3226           if test "$wxUSE_EXPAT" = yes; then
3227             echo "$as_me:$LINENO: result: yes" >&5
3228 echo "${ECHO_T}yes" >&6
3229           elif test "$wxUSE_EXPAT" = no; then
3230             echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232           elif test "$wxUSE_EXPAT" = sys; then
3233             echo "$as_me:$LINENO: result: system version" >&5
3234 echo "${ECHO_T}system version" >&6
3235           elif test "$wxUSE_EXPAT" = builtin; then
3236             echo "$as_me:$LINENO: result: builtin version" >&5
3237 echo "${ECHO_T}builtin version" >&6
3238           else
3239             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3240 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3241    { (exit 1); exit 1; }; }
3242           fi
3243
3244
3245
3246
3247           enablestring=
3248           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3249 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3250           no_cache=0
3251           # Check whether --enable-shared or --disable-shared was given.
3252 if test "${enable_shared+set}" = set; then
3253   enableval="$enable_shared"
3254
3255                           if test "$enableval" = yes; then
3256                             ac_cv_use_shared='wxUSE_SHARED=yes'
3257                           else
3258                             ac_cv_use_shared='wxUSE_SHARED=no'
3259                           fi
3260
3261 else
3262
3263                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3264                           if test "x$LINE" != x ; then
3265                             eval "DEFAULT_$LINE"
3266                           else
3267                             no_cache=1
3268                           fi
3269
3270                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3271
3272 fi;
3273
3274           eval "$ac_cv_use_shared"
3275           if test "$no_cache" != 1; then
3276             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3277           fi
3278
3279           if test "$wxUSE_SHARED" = yes; then
3280             echo "$as_me:$LINENO: result: yes" >&5
3281 echo "${ECHO_T}yes" >&6
3282           else
3283             echo "$as_me:$LINENO: result: no" >&5
3284 echo "${ECHO_T}no" >&6
3285           fi
3286
3287
3288           enablestring=
3289           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3290 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3291           no_cache=0
3292           # Check whether --enable-optimise or --disable-optimise was given.
3293 if test "${enable_optimise+set}" = set; then
3294   enableval="$enable_optimise"
3295
3296                           if test "$enableval" = yes; then
3297                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3298                           else
3299                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3300                           fi
3301
3302 else
3303
3304                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3305                           if test "x$LINE" != x ; then
3306                             eval "DEFAULT_$LINE"
3307                           else
3308                             no_cache=1
3309                           fi
3310
3311                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3312
3313 fi;
3314
3315           eval "$ac_cv_use_optimise"
3316           if test "$no_cache" != 1; then
3317             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3318           fi
3319
3320           if test "$wxUSE_OPTIMISE" = yes; then
3321             echo "$as_me:$LINENO: result: yes" >&5
3322 echo "${ECHO_T}yes" >&6
3323           else
3324             echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3326           fi
3327
3328
3329           enablestring=
3330           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3331 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3332           no_cache=0
3333           # Check whether --enable-debug or --disable-debug was given.
3334 if test "${enable_debug+set}" = set; then
3335   enableval="$enable_debug"
3336
3337                           if test "$enableval" = yes; then
3338                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3339                           else
3340                             ac_cv_use_debug='wxUSE_DEBUG=no'
3341                           fi
3342
3343 else
3344
3345                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3346                           if test "x$LINE" != x ; then
3347                             eval "DEFAULT_$LINE"
3348                           else
3349                             no_cache=1
3350                           fi
3351
3352                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3353
3354 fi;
3355
3356           eval "$ac_cv_use_debug"
3357           if test "$no_cache" != 1; then
3358             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3359           fi
3360
3361           if test "$wxUSE_DEBUG" = yes; then
3362             echo "$as_me:$LINENO: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6
3364           else
3365             echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3367           fi
3368
3369
3370           enablestring=
3371           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3372 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3373           no_cache=0
3374           # Check whether --enable-stl or --disable-stl was given.
3375 if test "${enable_stl+set}" = set; then
3376   enableval="$enable_stl"
3377
3378                           if test "$enableval" = yes; then
3379                             ac_cv_use_stl='wxUSE_STL=yes'
3380                           else
3381                             ac_cv_use_stl='wxUSE_STL=no'
3382                           fi
3383
3384 else
3385
3386                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3387                           if test "x$LINE" != x ; then
3388                             eval "DEFAULT_$LINE"
3389                           else
3390                             no_cache=1
3391                           fi
3392
3393                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3394
3395 fi;
3396
3397           eval "$ac_cv_use_stl"
3398           if test "$no_cache" != 1; then
3399             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3400           fi
3401
3402           if test "$wxUSE_STL" = yes; then
3403             echo "$as_me:$LINENO: result: yes" >&5
3404 echo "${ECHO_T}yes" >&6
3405           else
3406             echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3408           fi
3409
3410
3411 if test "$wxUSE_DEBUG" = "yes"; then
3412   DEFAULT_wxUSE_DEBUG_FLAG=yes
3413   DEFAULT_wxUSE_DEBUG_INFO=yes
3414   BUILD=debug
3415 elif test "$wxUSE_DEBUG" = "no"; then
3416   DEFAULT_wxUSE_DEBUG_FLAG=no
3417   DEFAULT_wxUSE_DEBUG_INFO=no
3418   BUILD=release
3419 fi
3420
3421
3422           enablestring=
3423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3424 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3425           no_cache=0
3426           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3427 if test "${enable_debug_flag+set}" = set; then
3428   enableval="$enable_debug_flag"
3429
3430                           if test "$enableval" = yes; then
3431                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3432                           else
3433                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3434                           fi
3435
3436 else
3437
3438                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3439                           if test "x$LINE" != x ; then
3440                             eval "DEFAULT_$LINE"
3441                           else
3442                             no_cache=1
3443                           fi
3444
3445                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3446
3447 fi;
3448
3449           eval "$ac_cv_use_debug_flag"
3450           if test "$no_cache" != 1; then
3451             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3452           fi
3453
3454           if test "$wxUSE_DEBUG_FLAG" = yes; then
3455             echo "$as_me:$LINENO: result: yes" >&5
3456 echo "${ECHO_T}yes" >&6
3457           else
3458             echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3460           fi
3461
3462
3463           enablestring=
3464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3465 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3466           no_cache=0
3467           # Check whether --enable-debug_info or --disable-debug_info was given.
3468 if test "${enable_debug_info+set}" = set; then
3469   enableval="$enable_debug_info"
3470
3471                           if test "$enableval" = yes; then
3472                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3473                           else
3474                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3475                           fi
3476
3477 else
3478
3479                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3480                           if test "x$LINE" != x ; then
3481                             eval "DEFAULT_$LINE"
3482                           else
3483                             no_cache=1
3484                           fi
3485
3486                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3487
3488 fi;
3489
3490           eval "$ac_cv_use_debug_info"
3491           if test "$no_cache" != 1; then
3492             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3493           fi
3494
3495           if test "$wxUSE_DEBUG_INFO" = yes; then
3496             echo "$as_me:$LINENO: result: yes" >&5
3497 echo "${ECHO_T}yes" >&6
3498           else
3499             echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501           fi
3502
3503
3504           enablestring=
3505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3506 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3507           no_cache=0
3508           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3509 if test "${enable_debug_gdb+set}" = set; then
3510   enableval="$enable_debug_gdb"
3511
3512                           if test "$enableval" = yes; then
3513                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3514                           else
3515                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3516                           fi
3517
3518 else
3519
3520                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3521                           if test "x$LINE" != x ; then
3522                             eval "DEFAULT_$LINE"
3523                           else
3524                             no_cache=1
3525                           fi
3526
3527                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3528
3529 fi;
3530
3531           eval "$ac_cv_use_debug_gdb"
3532           if test "$no_cache" != 1; then
3533             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3534           fi
3535
3536           if test "$wxUSE_DEBUG_GDB" = yes; then
3537             echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6
3539           else
3540             echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542           fi
3543
3544
3545           enablestring=
3546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3547 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3548           no_cache=0
3549           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3550 if test "${enable_debug_cntxt+set}" = set; then
3551   enableval="$enable_debug_cntxt"
3552
3553                           if test "$enableval" = yes; then
3554                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3555                           else
3556                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3557                           fi
3558
3559 else
3560
3561                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3562                           if test "x$LINE" != x ; then
3563                             eval "DEFAULT_$LINE"
3564                           else
3565                             no_cache=1
3566                           fi
3567
3568                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3569
3570 fi;
3571
3572           eval "$ac_cv_use_debug_cntxt"
3573           if test "$no_cache" != 1; then
3574             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3575           fi
3576
3577           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3578             echo "$as_me:$LINENO: result: yes" >&5
3579 echo "${ECHO_T}yes" >&6
3580           else
3581             echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583           fi
3584
3585
3586           enablestring=
3587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3588 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3589           no_cache=0
3590           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3591 if test "${enable_mem_tracing+set}" = set; then
3592   enableval="$enable_mem_tracing"
3593
3594                           if test "$enableval" = yes; then
3595                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3596                           else
3597                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3598                           fi
3599
3600 else
3601
3602                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3603                           if test "x$LINE" != x ; then
3604                             eval "DEFAULT_$LINE"
3605                           else
3606                             no_cache=1
3607                           fi
3608
3609                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3610
3611 fi;
3612
3613           eval "$ac_cv_use_mem_tracing"
3614           if test "$no_cache" != 1; then
3615             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3616           fi
3617
3618           if test "$wxUSE_MEM_TRACING" = yes; then
3619             echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3621           else
3622             echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3624           fi
3625
3626
3627           enablestring=
3628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3629 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3630           no_cache=0
3631           # Check whether --enable-profile or --disable-profile was given.
3632 if test "${enable_profile+set}" = set; then
3633   enableval="$enable_profile"
3634
3635                           if test "$enableval" = yes; then
3636                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3637                           else
3638                             ac_cv_use_profile='wxUSE_PROFILE=no'
3639                           fi
3640
3641 else
3642
3643                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3644                           if test "x$LINE" != x ; then
3645                             eval "DEFAULT_$LINE"
3646                           else
3647                             no_cache=1
3648                           fi
3649
3650                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3651
3652 fi;
3653
3654           eval "$ac_cv_use_profile"
3655           if test "$no_cache" != 1; then
3656             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3657           fi
3658
3659           if test "$wxUSE_PROFILE" = yes; then
3660             echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3662           else
3663             echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3665           fi
3666
3667
3668           enablestring=
3669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3670 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3671           no_cache=0
3672           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3673 if test "${enable_no_rtti+set}" = set; then
3674   enableval="$enable_no_rtti"
3675
3676                           if test "$enableval" = yes; then
3677                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3678                           else
3679                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3680                           fi
3681
3682 else
3683
3684                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3685                           if test "x$LINE" != x ; then
3686                             eval "DEFAULT_$LINE"
3687                           else
3688                             no_cache=1
3689                           fi
3690
3691                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3692
3693 fi;
3694
3695           eval "$ac_cv_use_no_rtti"
3696           if test "$no_cache" != 1; then
3697             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3698           fi
3699
3700           if test "$wxUSE_NO_RTTI" = yes; then
3701             echo "$as_me:$LINENO: result: yes" >&5
3702 echo "${ECHO_T}yes" >&6
3703           else
3704             echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3706           fi
3707
3708
3709           enablestring=
3710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3711 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3712           no_cache=0
3713           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3714 if test "${enable_no_exceptions+set}" = set; then
3715   enableval="$enable_no_exceptions"
3716
3717                           if test "$enableval" = yes; then
3718                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3719                           else
3720                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3721                           fi
3722
3723 else
3724
3725                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3726                           if test "x$LINE" != x ; then
3727                             eval "DEFAULT_$LINE"
3728                           else
3729                             no_cache=1
3730                           fi
3731
3732                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3733
3734 fi;
3735
3736           eval "$ac_cv_use_no_exceptions"
3737           if test "$no_cache" != 1; then
3738             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3739           fi
3740
3741           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3742             echo "$as_me:$LINENO: result: yes" >&5
3743 echo "${ECHO_T}yes" >&6
3744           else
3745             echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747           fi
3748
3749
3750           enablestring=
3751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3752 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3753           no_cache=0
3754           # Check whether --enable-permissive or --disable-permissive was given.
3755 if test "${enable_permissive+set}" = set; then
3756   enableval="$enable_permissive"
3757
3758                           if test "$enableval" = yes; then
3759                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3760                           else
3761                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3762                           fi
3763
3764 else
3765
3766                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3767                           if test "x$LINE" != x ; then
3768                             eval "DEFAULT_$LINE"
3769                           else
3770                             no_cache=1
3771                           fi
3772
3773                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3774
3775 fi;
3776
3777           eval "$ac_cv_use_permissive"
3778           if test "$no_cache" != 1; then
3779             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3780           fi
3781
3782           if test "$wxUSE_PERMISSIVE" = yes; then
3783             echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6
3785           else
3786             echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788           fi
3789
3790
3791           enablestring=
3792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3793 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3794           no_cache=0
3795           # Check whether --enable-no_deps or --disable-no_deps was given.
3796 if test "${enable_no_deps+set}" = set; then
3797   enableval="$enable_no_deps"
3798
3799                           if test "$enableval" = yes; then
3800                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3801                           else
3802                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3803                           fi
3804
3805 else
3806
3807                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3808                           if test "x$LINE" != x ; then
3809                             eval "DEFAULT_$LINE"
3810                           else
3811                             no_cache=1
3812                           fi
3813
3814                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3815
3816 fi;
3817
3818           eval "$ac_cv_use_no_deps"
3819           if test "$no_cache" != 1; then
3820             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3821           fi
3822
3823           if test "$wxUSE_NO_DEPS" = yes; then
3824             echo "$as_me:$LINENO: result: yes" >&5
3825 echo "${ECHO_T}yes" >&6
3826           else
3827             echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3829           fi
3830
3831
3832
3833           enablestring=
3834           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3835 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3836           no_cache=0
3837           # Check whether --enable-compat22 or --disable-compat22 was given.
3838 if test "${enable_compat22+set}" = set; then
3839   enableval="$enable_compat22"
3840
3841                           if test "$enableval" = yes; then
3842                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3843                           else
3844                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3845                           fi
3846
3847 else
3848
3849                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3850                           if test "x$LINE" != x ; then
3851                             eval "DEFAULT_$LINE"
3852                           else
3853                             no_cache=1
3854                           fi
3855
3856                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3857
3858 fi;
3859
3860           eval "$ac_cv_use_compat22"
3861           if test "$no_cache" != 1; then
3862             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3863           fi
3864
3865           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3866             echo "$as_me:$LINENO: result: yes" >&5
3867 echo "${ECHO_T}yes" >&6
3868           else
3869             echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871           fi
3872
3873
3874           enablestring=disable
3875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3876 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3877           no_cache=0
3878           # Check whether --enable-compat24 or --disable-compat24 was given.
3879 if test "${enable_compat24+set}" = set; then
3880   enableval="$enable_compat24"
3881
3882                           if test "$enableval" = yes; then
3883                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3884                           else
3885                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3886                           fi
3887
3888 else
3889
3890                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3891                           if test "x$LINE" != x ; then
3892                             eval "DEFAULT_$LINE"
3893                           else
3894                             no_cache=1
3895                           fi
3896
3897                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3898
3899 fi;
3900
3901           eval "$ac_cv_use_compat24"
3902           if test "$no_cache" != 1; then
3903             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3904           fi
3905
3906           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3907             echo "$as_me:$LINENO: result: yes" >&5
3908 echo "${ECHO_T}yes" >&6
3909           else
3910             echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912           fi
3913
3914
3915 # Check whether --enable-rpath or --disable-rpath was given.
3916 if test "${enable_rpath+set}" = set; then
3917   enableval="$enable_rpath"
3918   wxRPATH_DIR="$enableval"
3919 fi;
3920
3921 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3922    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3923 fi
3924
3925
3926
3927
3928           enablestring=
3929           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3930 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3931           no_cache=0
3932           # Check whether --enable-intl or --disable-intl was given.
3933 if test "${enable_intl+set}" = set; then
3934   enableval="$enable_intl"
3935
3936                           if test "$enableval" = yes; then
3937                             ac_cv_use_intl='wxUSE_INTL=yes'
3938                           else
3939                             ac_cv_use_intl='wxUSE_INTL=no'
3940                           fi
3941
3942 else
3943
3944                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3945                           if test "x$LINE" != x ; then
3946                             eval "DEFAULT_$LINE"
3947                           else
3948                             no_cache=1
3949                           fi
3950
3951                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3952
3953 fi;
3954
3955           eval "$ac_cv_use_intl"
3956           if test "$no_cache" != 1; then
3957             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3958           fi
3959
3960           if test "$wxUSE_INTL" = yes; then
3961             echo "$as_me:$LINENO: result: yes" >&5
3962 echo "${ECHO_T}yes" >&6
3963           else
3964             echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3966           fi
3967
3968
3969           enablestring=
3970           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3971 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3972           no_cache=0
3973           # Check whether --enable-config or --disable-config was given.
3974 if test "${enable_config+set}" = set; then
3975   enableval="$enable_config"
3976
3977                           if test "$enableval" = yes; then
3978                             ac_cv_use_config='wxUSE_CONFIG=yes'
3979                           else
3980                             ac_cv_use_config='wxUSE_CONFIG=no'
3981                           fi
3982
3983 else
3984
3985                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3986                           if test "x$LINE" != x ; then
3987                             eval "DEFAULT_$LINE"
3988                           else
3989                             no_cache=1
3990                           fi
3991
3992                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3993
3994 fi;
3995
3996           eval "$ac_cv_use_config"
3997           if test "$no_cache" != 1; then
3998             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3999           fi
4000
4001           if test "$wxUSE_CONFIG" = yes; then
4002             echo "$as_me:$LINENO: result: yes" >&5
4003 echo "${ECHO_T}yes" >&6
4004           else
4005             echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007           fi
4008
4009
4010
4011           enablestring=
4012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4013 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4014           no_cache=0
4015           # Check whether --enable-protocols or --disable-protocols was given.
4016 if test "${enable_protocols+set}" = set; then
4017   enableval="$enable_protocols"
4018
4019                           if test "$enableval" = yes; then
4020                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4021                           else
4022                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4023                           fi
4024
4025 else
4026
4027                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4028                           if test "x$LINE" != x ; then
4029                             eval "DEFAULT_$LINE"
4030                           else
4031                             no_cache=1
4032                           fi
4033
4034                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4035
4036 fi;
4037
4038           eval "$ac_cv_use_protocols"
4039           if test "$no_cache" != 1; then
4040             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4041           fi
4042
4043           if test "$wxUSE_PROTOCOL" = yes; then
4044             echo "$as_me:$LINENO: result: yes" >&5
4045 echo "${ECHO_T}yes" >&6
4046           else
4047             echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049           fi
4050
4051
4052           enablestring=
4053           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4054 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4055           no_cache=0
4056           # Check whether --enable-ftp or --disable-ftp was given.
4057 if test "${enable_ftp+set}" = set; then
4058   enableval="$enable_ftp"
4059
4060                           if test "$enableval" = yes; then
4061                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4062                           else
4063                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4064                           fi
4065
4066 else
4067
4068                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4069                           if test "x$LINE" != x ; then
4070                             eval "DEFAULT_$LINE"
4071                           else
4072                             no_cache=1
4073                           fi
4074
4075                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4076
4077 fi;
4078
4079           eval "$ac_cv_use_ftp"
4080           if test "$no_cache" != 1; then
4081             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4082           fi
4083
4084           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4085             echo "$as_me:$LINENO: result: yes" >&5
4086 echo "${ECHO_T}yes" >&6
4087           else
4088             echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4090           fi
4091
4092
4093           enablestring=
4094           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4095 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4096           no_cache=0
4097           # Check whether --enable-http or --disable-http was given.
4098 if test "${enable_http+set}" = set; then
4099   enableval="$enable_http"
4100
4101                           if test "$enableval" = yes; then
4102                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4103                           else
4104                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4105                           fi
4106
4107 else
4108
4109                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4110                           if test "x$LINE" != x ; then
4111                             eval "DEFAULT_$LINE"
4112                           else
4113                             no_cache=1
4114                           fi
4115
4116                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4117
4118 fi;
4119
4120           eval "$ac_cv_use_http"
4121           if test "$no_cache" != 1; then
4122             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4123           fi
4124
4125           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4126             echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4128           else
4129             echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4131           fi
4132
4133
4134           enablestring=
4135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4136 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4137           no_cache=0
4138           # Check whether --enable-fileproto or --disable-fileproto was given.
4139 if test "${enable_fileproto+set}" = set; then
4140   enableval="$enable_fileproto"
4141
4142                           if test "$enableval" = yes; then
4143                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4144                           else
4145                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4146                           fi
4147
4148 else
4149
4150                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4151                           if test "x$LINE" != x ; then
4152                             eval "DEFAULT_$LINE"
4153                           else
4154                             no_cache=1
4155                           fi
4156
4157                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4158
4159 fi;
4160
4161           eval "$ac_cv_use_fileproto"
4162           if test "$no_cache" != 1; then
4163             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4164           fi
4165
4166           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4167             echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6
4169           else
4170             echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172           fi
4173
4174
4175           enablestring=
4176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4177 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4178           no_cache=0
4179           # Check whether --enable-sockets or --disable-sockets was given.
4180 if test "${enable_sockets+set}" = set; then
4181   enableval="$enable_sockets"
4182
4183                           if test "$enableval" = yes; then
4184                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4185                           else
4186                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4187                           fi
4188
4189 else
4190
4191                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4192                           if test "x$LINE" != x ; then
4193                             eval "DEFAULT_$LINE"
4194                           else
4195                             no_cache=1
4196                           fi
4197
4198                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4199
4200 fi;
4201
4202           eval "$ac_cv_use_sockets"
4203           if test "$no_cache" != 1; then
4204             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4205           fi
4206
4207           if test "$wxUSE_SOCKETS" = yes; then
4208             echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6
4210           else
4211             echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213           fi
4214
4215
4216           enablestring=
4217           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4218 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4219           no_cache=0
4220           # Check whether --enable-ole or --disable-ole was given.
4221 if test "${enable_ole+set}" = set; then
4222   enableval="$enable_ole"
4223
4224                           if test "$enableval" = yes; then
4225                             ac_cv_use_ole='wxUSE_OLE=yes'
4226                           else
4227                             ac_cv_use_ole='wxUSE_OLE=no'
4228                           fi
4229
4230 else
4231
4232                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4233                           if test "x$LINE" != x ; then
4234                             eval "DEFAULT_$LINE"
4235                           else
4236                             no_cache=1
4237                           fi
4238
4239                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4240
4241 fi;
4242
4243           eval "$ac_cv_use_ole"
4244           if test "$no_cache" != 1; then
4245             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4246           fi
4247
4248           if test "$wxUSE_OLE" = yes; then
4249             echo "$as_me:$LINENO: result: yes" >&5
4250 echo "${ECHO_T}yes" >&6
4251           else
4252             echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4254           fi
4255
4256
4257           enablestring=
4258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4259 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4260           no_cache=0
4261           # Check whether --enable-dataobj or --disable-dataobj was given.
4262 if test "${enable_dataobj+set}" = set; then
4263   enableval="$enable_dataobj"
4264
4265                           if test "$enableval" = yes; then
4266                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4267                           else
4268                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4269                           fi
4270
4271 else
4272
4273                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4274                           if test "x$LINE" != x ; then
4275                             eval "DEFAULT_$LINE"
4276                           else
4277                             no_cache=1
4278                           fi
4279
4280                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4281
4282 fi;
4283
4284           eval "$ac_cv_use_dataobj"
4285           if test "$no_cache" != 1; then
4286             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4287           fi
4288
4289           if test "$wxUSE_DATAOBJ" = yes; then
4290             echo "$as_me:$LINENO: result: yes" >&5
4291 echo "${ECHO_T}yes" >&6
4292           else
4293             echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295           fi
4296
4297
4298
4299           enablestring=
4300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4301 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4302           no_cache=0
4303           # Check whether --enable-ipc or --disable-ipc was given.
4304 if test "${enable_ipc+set}" = set; then
4305   enableval="$enable_ipc"
4306
4307                           if test "$enableval" = yes; then
4308                             ac_cv_use_ipc='wxUSE_IPC=yes'
4309                           else
4310                             ac_cv_use_ipc='wxUSE_IPC=no'
4311                           fi
4312
4313 else
4314
4315                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4316                           if test "x$LINE" != x ; then
4317                             eval "DEFAULT_$LINE"
4318                           else
4319                             no_cache=1
4320                           fi
4321
4322                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4323
4324 fi;
4325
4326           eval "$ac_cv_use_ipc"
4327           if test "$no_cache" != 1; then
4328             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4329           fi
4330
4331           if test "$wxUSE_IPC" = yes; then
4332             echo "$as_me:$LINENO: result: yes" >&5
4333 echo "${ECHO_T}yes" >&6
4334           else
4335             echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4337           fi
4338
4339
4340
4341           enablestring=
4342           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4343 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4344           no_cache=0
4345           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4346 if test "${enable_apple_ieee+set}" = set; then
4347   enableval="$enable_apple_ieee"
4348
4349                           if test "$enableval" = yes; then
4350                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4351                           else
4352                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4353                           fi
4354
4355 else
4356
4357                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4358                           if test "x$LINE" != x ; then
4359                             eval "DEFAULT_$LINE"
4360                           else
4361                             no_cache=1
4362                           fi
4363
4364                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4365
4366 fi;
4367
4368           eval "$ac_cv_use_apple_ieee"
4369           if test "$no_cache" != 1; then
4370             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4371           fi
4372
4373           if test "$wxUSE_APPLE_IEEE" = yes; then
4374             echo "$as_me:$LINENO: result: yes" >&5
4375 echo "${ECHO_T}yes" >&6
4376           else
4377             echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6
4379           fi
4380
4381
4382           enablestring=
4383           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4384 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4385           no_cache=0
4386           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4387 if test "${enable_catch_segvs+set}" = set; then
4388   enableval="$enable_catch_segvs"
4389
4390                           if test "$enableval" = yes; then
4391                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4392                           else
4393                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4394                           fi
4395
4396 else
4397
4398                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4399                           if test "x$LINE" != x ; then
4400                             eval "DEFAULT_$LINE"
4401                           else
4402                             no_cache=1
4403                           fi
4404
4405                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4406
4407 fi;
4408
4409           eval "$ac_cv_use_catch_segvs"
4410           if test "$no_cache" != 1; then
4411             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4412           fi
4413
4414           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4415             echo "$as_me:$LINENO: result: yes" >&5
4416 echo "${ECHO_T}yes" >&6
4417           else
4418             echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4420           fi
4421
4422
4423           enablestring=
4424           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4425 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4426           no_cache=0
4427           # Check whether --enable-cmdline or --disable-cmdline was given.
4428 if test "${enable_cmdline+set}" = set; then
4429   enableval="$enable_cmdline"
4430
4431                           if test "$enableval" = yes; then
4432                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4433                           else
4434                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4435                           fi
4436
4437 else
4438
4439                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4440                           if test "x$LINE" != x ; then
4441                             eval "DEFAULT_$LINE"
4442                           else
4443                             no_cache=1
4444                           fi
4445
4446                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4447
4448 fi;
4449
4450           eval "$ac_cv_use_cmdline"
4451           if test "$no_cache" != 1; then
4452             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4453           fi
4454
4455           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4456             echo "$as_me:$LINENO: result: yes" >&5
4457 echo "${ECHO_T}yes" >&6
4458           else
4459             echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4461           fi
4462
4463
4464           enablestring=
4465           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4466 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4467           no_cache=0
4468           # Check whether --enable-datetime or --disable-datetime was given.
4469 if test "${enable_datetime+set}" = set; then
4470   enableval="$enable_datetime"
4471
4472                           if test "$enableval" = yes; then
4473                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4474                           else
4475                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4476                           fi
4477
4478 else
4479
4480                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4481                           if test "x$LINE" != x ; then
4482                             eval "DEFAULT_$LINE"
4483                           else
4484                             no_cache=1
4485                           fi
4486
4487                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4488
4489 fi;
4490
4491           eval "$ac_cv_use_datetime"
4492           if test "$no_cache" != 1; then
4493             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4494           fi
4495
4496           if test "$wxUSE_DATETIME" = yes; then
4497             echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6
4499           else
4500             echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4502           fi
4503
4504
4505           enablestring=
4506           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4507 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4508           no_cache=0
4509           # Check whether --enable-dialupman or --disable-dialupman was given.
4510 if test "${enable_dialupman+set}" = set; then
4511   enableval="$enable_dialupman"
4512
4513                           if test "$enableval" = yes; then
4514                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4515                           else
4516                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4517                           fi
4518
4519 else
4520
4521                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4522                           if test "x$LINE" != x ; then
4523                             eval "DEFAULT_$LINE"
4524                           else
4525                             no_cache=1
4526                           fi
4527
4528                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4529
4530 fi;
4531
4532           eval "$ac_cv_use_dialupman"
4533           if test "$no_cache" != 1; then
4534             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4535           fi
4536
4537           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4538             echo "$as_me:$LINENO: result: yes" >&5
4539 echo "${ECHO_T}yes" >&6
4540           else
4541             echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6
4543           fi
4544
4545
4546           enablestring=
4547           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4548 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4549           no_cache=0
4550           # Check whether --enable-dynlib or --disable-dynlib was given.
4551 if test "${enable_dynlib+set}" = set; then
4552   enableval="$enable_dynlib"
4553
4554                           if test "$enableval" = yes; then
4555                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4556                           else
4557                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4558                           fi
4559
4560 else
4561
4562                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4563                           if test "x$LINE" != x ; then
4564                             eval "DEFAULT_$LINE"
4565                           else
4566                             no_cache=1
4567                           fi
4568
4569                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4570
4571 fi;
4572
4573           eval "$ac_cv_use_dynlib"
4574           if test "$no_cache" != 1; then
4575             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4576           fi
4577
4578           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4579             echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4581           else
4582             echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4584           fi
4585
4586
4587           enablestring=
4588           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4589 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4590           no_cache=0
4591           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4592 if test "${enable_dynamicloader+set}" = set; then
4593   enableval="$enable_dynamicloader"
4594
4595                           if test "$enableval" = yes; then
4596                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4597                           else
4598                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4599                           fi
4600
4601 else
4602
4603                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4604                           if test "x$LINE" != x ; then
4605                             eval "DEFAULT_$LINE"
4606                           else
4607                             no_cache=1
4608                           fi
4609
4610                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4611
4612 fi;
4613
4614           eval "$ac_cv_use_dynamicloader"
4615           if test "$no_cache" != 1; then
4616             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4617           fi
4618
4619           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4620             echo "$as_me:$LINENO: result: yes" >&5
4621 echo "${ECHO_T}yes" >&6
4622           else
4623             echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625           fi
4626
4627
4628           enablestring=
4629           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4630 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4631           no_cache=0
4632           # Check whether --enable-exceptions or --disable-exceptions was given.
4633 if test "${enable_exceptions+set}" = set; then
4634   enableval="$enable_exceptions"
4635
4636                           if test "$enableval" = yes; then
4637                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4638                           else
4639                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4640                           fi
4641
4642 else
4643
4644                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4645                           if test "x$LINE" != x ; then
4646                             eval "DEFAULT_$LINE"
4647                           else
4648                             no_cache=1
4649                           fi
4650
4651                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4652
4653 fi;
4654
4655           eval "$ac_cv_use_exceptions"
4656           if test "$no_cache" != 1; then
4657             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4658           fi
4659
4660           if test "$wxUSE_EXCEPTIONS" = yes; then
4661             echo "$as_me:$LINENO: result: yes" >&5
4662 echo "${ECHO_T}yes" >&6
4663           else
4664             echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6
4666           fi
4667
4668
4669           enablestring=
4670           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4671 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4672           no_cache=0
4673           # Check whether --enable-ffile or --disable-ffile was given.
4674 if test "${enable_ffile+set}" = set; then
4675   enableval="$enable_ffile"
4676
4677                           if test "$enableval" = yes; then
4678                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4679                           else
4680                             ac_cv_use_ffile='wxUSE_FFILE=no'
4681                           fi
4682
4683 else
4684
4685                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4686                           if test "x$LINE" != x ; then
4687                             eval "DEFAULT_$LINE"
4688                           else
4689                             no_cache=1
4690                           fi
4691
4692                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4693
4694 fi;
4695
4696           eval "$ac_cv_use_ffile"
4697           if test "$no_cache" != 1; then
4698             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4699           fi
4700
4701           if test "$wxUSE_FFILE" = yes; then
4702             echo "$as_me:$LINENO: result: yes" >&5
4703 echo "${ECHO_T}yes" >&6
4704           else
4705             echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4707           fi
4708
4709
4710           enablestring=
4711           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4712 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4713           no_cache=0
4714           # Check whether --enable-file or --disable-file was given.
4715 if test "${enable_file+set}" = set; then
4716   enableval="$enable_file"
4717
4718                           if test "$enableval" = yes; then
4719                             ac_cv_use_file='wxUSE_FILE=yes'
4720                           else
4721                             ac_cv_use_file='wxUSE_FILE=no'
4722                           fi
4723
4724 else
4725
4726                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4727                           if test "x$LINE" != x ; then
4728                             eval "DEFAULT_$LINE"
4729                           else
4730                             no_cache=1
4731                           fi
4732
4733                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4734
4735 fi;
4736
4737           eval "$ac_cv_use_file"
4738           if test "$no_cache" != 1; then
4739             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4740           fi
4741
4742           if test "$wxUSE_FILE" = yes; then
4743             echo "$as_me:$LINENO: result: yes" >&5
4744 echo "${ECHO_T}yes" >&6
4745           else
4746             echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6
4748           fi
4749
4750
4751           enablestring=
4752           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4753 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4754           no_cache=0
4755           # Check whether --enable-filesystem or --disable-filesystem was given.
4756 if test "${enable_filesystem+set}" = set; then
4757   enableval="$enable_filesystem"
4758
4759                           if test "$enableval" = yes; then
4760                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4761                           else
4762                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4763                           fi
4764
4765 else
4766
4767                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4768                           if test "x$LINE" != x ; then
4769                             eval "DEFAULT_$LINE"
4770                           else
4771                             no_cache=1
4772                           fi
4773
4774                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4775
4776 fi;
4777
4778           eval "$ac_cv_use_filesystem"
4779           if test "$no_cache" != 1; then
4780             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4781           fi
4782
4783           if test "$wxUSE_FILESYSTEM" = yes; then
4784             echo "$as_me:$LINENO: result: yes" >&5
4785 echo "${ECHO_T}yes" >&6
4786           else
4787             echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789           fi
4790
4791
4792           enablestring=
4793           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4794 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4795           no_cache=0
4796           # Check whether --enable-fontmap or --disable-fontmap was given.
4797 if test "${enable_fontmap+set}" = set; then
4798   enableval="$enable_fontmap"
4799
4800                           if test "$enableval" = yes; then
4801                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4802                           else
4803                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4804                           fi
4805
4806 else
4807
4808                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4809                           if test "x$LINE" != x ; then
4810                             eval "DEFAULT_$LINE"
4811                           else
4812                             no_cache=1
4813                           fi
4814
4815                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4816
4817 fi;
4818
4819           eval "$ac_cv_use_fontmap"
4820           if test "$no_cache" != 1; then
4821             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4822           fi
4823
4824           if test "$wxUSE_FONTMAP" = yes; then
4825             echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6
4827           else
4828             echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4830           fi
4831
4832
4833           enablestring=
4834           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4835 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4836           no_cache=0
4837           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4838 if test "${enable_fs_inet+set}" = set; then
4839   enableval="$enable_fs_inet"
4840
4841                           if test "$enableval" = yes; then
4842                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4843                           else
4844                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4845                           fi
4846
4847 else
4848
4849                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4850                           if test "x$LINE" != x ; then
4851                             eval "DEFAULT_$LINE"
4852                           else
4853                             no_cache=1
4854                           fi
4855
4856                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4857
4858 fi;
4859
4860           eval "$ac_cv_use_fs_inet"
4861           if test "$no_cache" != 1; then
4862             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4863           fi
4864
4865           if test "$wxUSE_FS_INET" = yes; then
4866             echo "$as_me:$LINENO: result: yes" >&5
4867 echo "${ECHO_T}yes" >&6
4868           else
4869             echo "$as_me:$LINENO: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4871           fi
4872
4873
4874           enablestring=
4875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4876 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
4877           no_cache=0
4878           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4879 if test "${enable_fs_zip+set}" = set; then
4880   enableval="$enable_fs_zip"
4881
4882                           if test "$enableval" = yes; then
4883                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4884                           else
4885                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4886                           fi
4887
4888 else
4889
4890                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4891                           if test "x$LINE" != x ; then
4892                             eval "DEFAULT_$LINE"
4893                           else
4894                             no_cache=1
4895                           fi
4896
4897                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4898
4899 fi;
4900
4901           eval "$ac_cv_use_fs_zip"
4902           if test "$no_cache" != 1; then
4903             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4904           fi
4905
4906           if test "$wxUSE_FS_ZIP" = yes; then
4907             echo "$as_me:$LINENO: result: yes" >&5
4908 echo "${ECHO_T}yes" >&6
4909           else
4910             echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4912           fi
4913
4914
4915           enablestring=
4916           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4917 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4918           no_cache=0
4919           # Check whether --enable-geometry or --disable-geometry was given.
4920 if test "${enable_geometry+set}" = set; then
4921   enableval="$enable_geometry"
4922
4923                           if test "$enableval" = yes; then
4924                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4925                           else
4926                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4927                           fi
4928
4929 else
4930
4931                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4932                           if test "x$LINE" != x ; then
4933                             eval "DEFAULT_$LINE"
4934                           else
4935                             no_cache=1
4936                           fi
4937
4938                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4939
4940 fi;
4941
4942           eval "$ac_cv_use_geometry"
4943           if test "$no_cache" != 1; then
4944             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4945           fi
4946
4947           if test "$wxUSE_GEOMETRY" = yes; then
4948             echo "$as_me:$LINENO: result: yes" >&5
4949 echo "${ECHO_T}yes" >&6
4950           else
4951             echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953           fi
4954
4955
4956           enablestring=
4957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4958 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4959           no_cache=0
4960           # Check whether --enable-log or --disable-log was given.
4961 if test "${enable_log+set}" = set; then
4962   enableval="$enable_log"
4963
4964                           if test "$enableval" = yes; then
4965                             ac_cv_use_log='wxUSE_LOG=yes'
4966                           else
4967                             ac_cv_use_log='wxUSE_LOG=no'
4968                           fi
4969
4970 else
4971
4972                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4973                           if test "x$LINE" != x ; then
4974                             eval "DEFAULT_$LINE"
4975                           else
4976                             no_cache=1
4977                           fi
4978
4979                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4980
4981 fi;
4982
4983           eval "$ac_cv_use_log"
4984           if test "$no_cache" != 1; then
4985             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4986           fi
4987
4988           if test "$wxUSE_LOG" = yes; then
4989             echo "$as_me:$LINENO: result: yes" >&5
4990 echo "${ECHO_T}yes" >&6
4991           else
4992             echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4994           fi
4995
4996
4997           enablestring=
4998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4999 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5000           no_cache=0
5001           # Check whether --enable-longlong or --disable-longlong was given.
5002 if test "${enable_longlong+set}" = set; then
5003   enableval="$enable_longlong"
5004
5005                           if test "$enableval" = yes; then
5006                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5007                           else
5008                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5009                           fi
5010
5011 else
5012
5013                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5014                           if test "x$LINE" != x ; then
5015                             eval "DEFAULT_$LINE"
5016                           else
5017                             no_cache=1
5018                           fi
5019
5020                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5021
5022 fi;
5023
5024           eval "$ac_cv_use_longlong"
5025           if test "$no_cache" != 1; then
5026             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5027           fi
5028
5029           if test "$wxUSE_LONGLONG" = yes; then
5030             echo "$as_me:$LINENO: result: yes" >&5
5031 echo "${ECHO_T}yes" >&6
5032           else
5033             echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6
5035           fi
5036
5037
5038           enablestring=
5039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5040 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5041           no_cache=0
5042           # Check whether --enable-mimetype or --disable-mimetype was given.
5043 if test "${enable_mimetype+set}" = set; then
5044   enableval="$enable_mimetype"
5045
5046                           if test "$enableval" = yes; then
5047                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5048                           else
5049                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5050                           fi
5051
5052 else
5053
5054                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5055                           if test "x$LINE" != x ; then
5056                             eval "DEFAULT_$LINE"
5057                           else
5058                             no_cache=1
5059                           fi
5060
5061                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5062
5063 fi;
5064
5065           eval "$ac_cv_use_mimetype"
5066           if test "$no_cache" != 1; then
5067             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5068           fi
5069
5070           if test "$wxUSE_MIMETYPE" = yes; then
5071             echo "$as_me:$LINENO: result: yes" >&5
5072 echo "${ECHO_T}yes" >&6
5073           else
5074             echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5076           fi
5077
5078
5079           enablestring=
5080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5081 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5082           no_cache=0
5083           # Check whether --enable-mslu or --disable-mslu was given.
5084 if test "${enable_mslu+set}" = set; then
5085   enableval="$enable_mslu"
5086
5087                           if test "$enableval" = yes; then
5088                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5089                           else
5090                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5091                           fi
5092
5093 else
5094
5095                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5096                           if test "x$LINE" != x ; then
5097                             eval "DEFAULT_$LINE"
5098                           else
5099                             no_cache=1
5100                           fi
5101
5102                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5103
5104 fi;
5105
5106           eval "$ac_cv_use_mslu"
5107           if test "$no_cache" != 1; then
5108             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5109           fi
5110
5111           if test "$wxUSE_UNICODE_MSLU" = yes; then
5112             echo "$as_me:$LINENO: result: yes" >&5
5113 echo "${ECHO_T}yes" >&6
5114           else
5115             echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5117           fi
5118
5119
5120           enablestring=
5121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5122 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5123           no_cache=0
5124           # Check whether --enable-snglinst or --disable-snglinst was given.
5125 if test "${enable_snglinst+set}" = set; then
5126   enableval="$enable_snglinst"
5127
5128                           if test "$enableval" = yes; then
5129                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5130                           else
5131                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5132                           fi
5133
5134 else
5135
5136                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5137                           if test "x$LINE" != x ; then
5138                             eval "DEFAULT_$LINE"
5139                           else
5140                             no_cache=1
5141                           fi
5142
5143                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5144
5145 fi;
5146
5147           eval "$ac_cv_use_snglinst"
5148           if test "$no_cache" != 1; then
5149             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5150           fi
5151
5152           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5153             echo "$as_me:$LINENO: result: yes" >&5
5154 echo "${ECHO_T}yes" >&6
5155           else
5156             echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5158           fi
5159
5160
5161           enablestring=
5162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5163 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5164           no_cache=0
5165           # Check whether --enable-streams or --disable-streams was given.
5166 if test "${enable_streams+set}" = set; then
5167   enableval="$enable_streams"
5168
5169                           if test "$enableval" = yes; then
5170                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5171                           else
5172                             ac_cv_use_streams='wxUSE_STREAMS=no'
5173                           fi
5174
5175 else
5176
5177                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5178                           if test "x$LINE" != x ; then
5179                             eval "DEFAULT_$LINE"
5180                           else
5181                             no_cache=1
5182                           fi
5183
5184                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5185
5186 fi;
5187
5188           eval "$ac_cv_use_streams"
5189           if test "$no_cache" != 1; then
5190             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5191           fi
5192
5193           if test "$wxUSE_STREAMS" = yes; then
5194             echo "$as_me:$LINENO: result: yes" >&5
5195 echo "${ECHO_T}yes" >&6
5196           else
5197             echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199           fi
5200
5201
5202           enablestring=
5203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5204 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5205           no_cache=0
5206           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5207 if test "${enable_std_iostreams+set}" = set; then
5208   enableval="$enable_std_iostreams"
5209
5210                           if test "$enableval" = yes; then
5211                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5212                           else
5213                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5214                           fi
5215
5216 else
5217
5218                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5219                           if test "x$LINE" != x ; then
5220                             eval "DEFAULT_$LINE"
5221                           else
5222                             no_cache=1
5223                           fi
5224
5225                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5226
5227 fi;
5228
5229           eval "$ac_cv_use_std_iostreams"
5230           if test "$no_cache" != 1; then
5231             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5232           fi
5233
5234           if test "$wxUSE_STD_IOSTREAM" = yes; then
5235             echo "$as_me:$LINENO: result: yes" >&5
5236 echo "${ECHO_T}yes" >&6
5237           else
5238             echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240           fi
5241
5242
5243           enablestring=
5244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5245 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5246           no_cache=0
5247           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5248 if test "${enable_stopwatch+set}" = set; then
5249   enableval="$enable_stopwatch"
5250
5251                           if test "$enableval" = yes; then
5252                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5253                           else
5254                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5255                           fi
5256
5257 else
5258
5259                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5260                           if test "x$LINE" != x ; then
5261                             eval "DEFAULT_$LINE"
5262                           else
5263                             no_cache=1
5264                           fi
5265
5266                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5267
5268 fi;
5269
5270           eval "$ac_cv_use_stopwatch"
5271           if test "$no_cache" != 1; then
5272             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5273           fi
5274
5275           if test "$wxUSE_STOPWATCH" = yes; then
5276             echo "$as_me:$LINENO: result: yes" >&5
5277 echo "${ECHO_T}yes" >&6
5278           else
5279             echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6
5281           fi
5282
5283
5284           enablestring=
5285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5286 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5287           no_cache=0
5288           # Check whether --enable-system_options or --disable-system_options was given.
5289 if test "${enable_system_options+set}" = set; then
5290   enableval="$enable_system_options"
5291
5292                           if test "$enableval" = yes; then
5293                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5294                           else
5295                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5296                           fi
5297
5298 else
5299
5300                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5301                           if test "x$LINE" != x ; then
5302                             eval "DEFAULT_$LINE"
5303                           else
5304                             no_cache=1
5305                           fi
5306
5307                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5308
5309 fi;
5310
5311           eval "$ac_cv_use_system_options"
5312           if test "$no_cache" != 1; then
5313             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5314           fi
5315
5316           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5317             echo "$as_me:$LINENO: result: yes" >&5
5318 echo "${ECHO_T}yes" >&6
5319           else
5320             echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5322           fi
5323
5324
5325           enablestring=
5326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5327 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5328           no_cache=0
5329           # Check whether --enable-textbuf or --disable-textbuf was given.
5330 if test "${enable_textbuf+set}" = set; then
5331   enableval="$enable_textbuf"
5332
5333                           if test "$enableval" = yes; then
5334                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5335                           else
5336                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5337                           fi
5338
5339 else
5340
5341                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5342                           if test "x$LINE" != x ; then
5343                             eval "DEFAULT_$LINE"
5344                           else
5345                             no_cache=1
5346                           fi
5347
5348                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5349
5350 fi;
5351
5352           eval "$ac_cv_use_textbuf"
5353           if test "$no_cache" != 1; then
5354             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5355           fi
5356
5357           if test "$wxUSE_TEXTBUFFER" = yes; then
5358             echo "$as_me:$LINENO: result: yes" >&5
5359 echo "${ECHO_T}yes" >&6
5360           else
5361             echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6
5363           fi
5364
5365
5366           enablestring=
5367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5368 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5369           no_cache=0
5370           # Check whether --enable-textfile or --disable-textfile was given.
5371 if test "${enable_textfile+set}" = set; then
5372   enableval="$enable_textfile"
5373
5374                           if test "$enableval" = yes; then
5375                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5376                           else
5377                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5378                           fi
5379
5380 else
5381
5382                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5383                           if test "x$LINE" != x ; then
5384                             eval "DEFAULT_$LINE"
5385                           else
5386                             no_cache=1
5387                           fi
5388
5389                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5390
5391 fi;
5392
5393           eval "$ac_cv_use_textfile"
5394           if test "$no_cache" != 1; then
5395             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5396           fi
5397
5398           if test "$wxUSE_TEXTFILE" = yes; then
5399             echo "$as_me:$LINENO: result: yes" >&5
5400 echo "${ECHO_T}yes" >&6
5401           else
5402             echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5404           fi
5405
5406
5407           enablestring=
5408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5409 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5410           no_cache=0
5411           # Check whether --enable-timer or --disable-timer was given.
5412 if test "${enable_timer+set}" = set; then
5413   enableval="$enable_timer"
5414
5415                           if test "$enableval" = yes; then
5416                             ac_cv_use_timer='wxUSE_TIMER=yes'
5417                           else
5418                             ac_cv_use_timer='wxUSE_TIMER=no'
5419                           fi
5420
5421 else
5422
5423                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5424                           if test "x$LINE" != x ; then
5425                             eval "DEFAULT_$LINE"
5426                           else
5427                             no_cache=1
5428                           fi
5429
5430                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5431
5432 fi;
5433
5434           eval "$ac_cv_use_timer"
5435           if test "$no_cache" != 1; then
5436             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5437           fi
5438
5439           if test "$wxUSE_TIMER" = yes; then
5440             echo "$as_me:$LINENO: result: yes" >&5
5441 echo "${ECHO_T}yes" >&6
5442           else
5443             echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6
5445           fi
5446
5447
5448           enablestring=
5449           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5450 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5451           no_cache=0
5452           # Check whether --enable-unicode or --disable-unicode was given.
5453 if test "${enable_unicode+set}" = set; then
5454   enableval="$enable_unicode"
5455
5456                           if test "$enableval" = yes; then
5457                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5458                           else
5459                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5460                           fi
5461
5462 else
5463
5464                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5465                           if test "x$LINE" != x ; then
5466                             eval "DEFAULT_$LINE"
5467                           else
5468                             no_cache=1
5469                           fi
5470
5471                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5472
5473 fi;
5474
5475           eval "$ac_cv_use_unicode"
5476           if test "$no_cache" != 1; then
5477             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5478           fi
5479
5480           if test "$wxUSE_UNICODE" = yes; then
5481             echo "$as_me:$LINENO: result: yes" >&5
5482 echo "${ECHO_T}yes" >&6
5483           else
5484             echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5486           fi
5487
5488
5489           enablestring=
5490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5491 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5492           no_cache=0
5493           # Check whether --enable-wave or --disable-wave was given.
5494 if test "${enable_wave+set}" = set; then
5495   enableval="$enable_wave"
5496
5497                           if test "$enableval" = yes; then
5498                             ac_cv_use_wave='wxUSE_WAVE=yes'
5499                           else
5500                             ac_cv_use_wave='wxUSE_WAVE=no'
5501                           fi
5502
5503 else
5504
5505                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5506                           if test "x$LINE" != x ; then
5507                             eval "DEFAULT_$LINE"
5508                           else
5509                             no_cache=1
5510                           fi
5511
5512                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5513
5514 fi;
5515
5516           eval "$ac_cv_use_wave"
5517           if test "$no_cache" != 1; then
5518             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5519           fi
5520
5521           if test "$wxUSE_WAVE" = yes; then
5522             echo "$as_me:$LINENO: result: yes" >&5
5523 echo "${ECHO_T}yes" >&6
5524           else
5525             echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5527           fi
5528
5529
5530           enablestring=
5531           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5532 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5533           no_cache=0
5534           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5535 if test "${enable_wxprintfv+set}" = set; then
5536   enableval="$enable_wxprintfv"
5537
5538                           if test "$enableval" = yes; then
5539                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5540                           else
5541                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5542                           fi
5543
5544 else
5545
5546                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5547                           if test "x$LINE" != x ; then
5548                             eval "DEFAULT_$LINE"
5549                           else
5550                             no_cache=1
5551                           fi
5552
5553                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5554
5555 fi;
5556
5557           eval "$ac_cv_use_wxprintfv"
5558           if test "$no_cache" != 1; then
5559             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5560           fi
5561
5562           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5563             echo "$as_me:$LINENO: result: yes" >&5
5564 echo "${ECHO_T}yes" >&6
5565           else
5566             echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568           fi
5569
5570
5571           enablestring=
5572           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5573 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5574           no_cache=0
5575           # Check whether --enable-zipstream or --disable-zipstream was given.
5576 if test "${enable_zipstream+set}" = set; then
5577   enableval="$enable_zipstream"
5578
5579                           if test "$enableval" = yes; then
5580                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5581                           else
5582                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5583                           fi
5584
5585 else
5586
5587                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5588                           if test "x$LINE" != x ; then
5589                             eval "DEFAULT_$LINE"
5590                           else
5591                             no_cache=1
5592                           fi
5593
5594                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5595
5596 fi;
5597
5598           eval "$ac_cv_use_zipstream"
5599           if test "$no_cache" != 1; then
5600             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5601           fi
5602
5603           if test "$wxUSE_ZIPSTREAM" = yes; then
5604             echo "$as_me:$LINENO: result: yes" >&5
5605 echo "${ECHO_T}yes" >&6
5606           else
5607             echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5609           fi
5610
5611
5612           enablestring=
5613           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5614 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5615           no_cache=0
5616           # Check whether --enable-gzstream or --disable-gzstream was given.
5617 if test "${enable_gzstream+set}" = set; then
5618   enableval="$enable_gzstream"
5619
5620                           if test "$enableval" = yes; then
5621                             ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5622                           else
5623                             ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5624                           fi
5625
5626 else
5627
5628                           LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5629                           if test "x$LINE" != x ; then
5630                             eval "DEFAULT_$LINE"
5631                           else
5632                             no_cache=1
5633                           fi
5634
5635                           ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5636
5637 fi;
5638
5639           eval "$ac_cv_use_gzstream"
5640           if test "$no_cache" != 1; then
5641             echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5642           fi
5643
5644           if test "$wxUSE_GZSTREAM" = yes; then
5645             echo "$as_me:$LINENO: result: yes" >&5
5646 echo "${ECHO_T}yes" >&6
5647           else
5648             echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6
5650           fi
5651
5652
5653
5654           enablestring=
5655           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5656 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5657           no_cache=0
5658           # Check whether --enable-url or --disable-url was given.
5659 if test "${enable_url+set}" = set; then
5660   enableval="$enable_url"
5661
5662                           if test "$enableval" = yes; then
5663                             ac_cv_use_url='wxUSE_URL=yes'
5664                           else
5665                             ac_cv_use_url='wxUSE_URL=no'
5666                           fi
5667
5668 else
5669
5670                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5671                           if test "x$LINE" != x ; then
5672                             eval "DEFAULT_$LINE"
5673                           else
5674                             no_cache=1
5675                           fi
5676
5677                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5678
5679 fi;
5680
5681           eval "$ac_cv_use_url"
5682           if test "$no_cache" != 1; then
5683             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5684           fi
5685
5686           if test "$wxUSE_URL" = yes; then
5687             echo "$as_me:$LINENO: result: yes" >&5
5688 echo "${ECHO_T}yes" >&6
5689           else
5690             echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5692           fi
5693
5694
5695           enablestring=
5696           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5697 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5698           no_cache=0
5699           # Check whether --enable-protocol or --disable-protocol was given.
5700 if test "${enable_protocol+set}" = set; then
5701   enableval="$enable_protocol"
5702
5703                           if test "$enableval" = yes; then
5704                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5705                           else
5706                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5707                           fi
5708
5709 else
5710
5711                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5712                           if test "x$LINE" != x ; then
5713                             eval "DEFAULT_$LINE"
5714                           else
5715                             no_cache=1
5716                           fi
5717
5718                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5719
5720 fi;
5721
5722           eval "$ac_cv_use_protocol"
5723           if test "$no_cache" != 1; then
5724             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5725           fi
5726
5727           if test "$wxUSE_PROTOCOL" = yes; then
5728             echo "$as_me:$LINENO: result: yes" >&5
5729 echo "${ECHO_T}yes" >&6
5730           else
5731             echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5733           fi
5734
5735
5736           enablestring=
5737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5738 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5739           no_cache=0
5740           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5741 if test "${enable_protocol_http+set}" = set; then
5742   enableval="$enable_protocol_http"
5743
5744                           if test "$enableval" = yes; then
5745                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5746                           else
5747                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5748                           fi
5749
5750 else
5751
5752                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5753                           if test "x$LINE" != x ; then
5754                             eval "DEFAULT_$LINE"
5755                           else
5756                             no_cache=1
5757                           fi
5758
5759                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5760
5761 fi;
5762
5763           eval "$ac_cv_use_protocol_http"
5764           if test "$no_cache" != 1; then
5765             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5766           fi
5767
5768           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5769             echo "$as_me:$LINENO: result: yes" >&5
5770 echo "${ECHO_T}yes" >&6
5771           else
5772             echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774           fi
5775
5776
5777           enablestring=
5778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5779 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5780           no_cache=0
5781           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5782 if test "${enable_protocol_ftp+set}" = set; then
5783   enableval="$enable_protocol_ftp"
5784
5785                           if test "$enableval" = yes; then
5786                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5787                           else
5788                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5789                           fi
5790
5791 else
5792
5793                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5794                           if test "x$LINE" != x ; then
5795                             eval "DEFAULT_$LINE"
5796                           else
5797                             no_cache=1
5798                           fi
5799
5800                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5801
5802 fi;
5803
5804           eval "$ac_cv_use_protocol_ftp"
5805           if test "$no_cache" != 1; then
5806             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5807           fi
5808
5809           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5810             echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6
5812           else
5813             echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5815           fi
5816
5817
5818           enablestring=
5819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5820 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5821           no_cache=0
5822           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5823 if test "${enable_protocol_file+set}" = set; then
5824   enableval="$enable_protocol_file"
5825
5826                           if test "$enableval" = yes; then
5827                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5828                           else
5829                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5830                           fi
5831
5832 else
5833
5834                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5835                           if test "x$LINE" != x ; then
5836                             eval "DEFAULT_$LINE"
5837                           else
5838                             no_cache=1
5839                           fi
5840
5841                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5842
5843 fi;
5844
5845           eval "$ac_cv_use_protocol_file"
5846           if test "$no_cache" != 1; then
5847             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5848           fi
5849
5850           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5851             echo "$as_me:$LINENO: result: yes" >&5
5852 echo "${ECHO_T}yes" >&6
5853           else
5854             echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5856           fi
5857
5858
5859
5860
5861
5862           enablestring=
5863           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5864 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5865           no_cache=0
5866           # Check whether --enable-threads or --disable-threads was given.
5867 if test "${enable_threads+set}" = set; then
5868   enableval="$enable_threads"
5869
5870                           if test "$enableval" = yes; then
5871                             ac_cv_use_threads='wxUSE_THREADS=yes'
5872                           else
5873                             ac_cv_use_threads='wxUSE_THREADS=no'
5874                           fi
5875
5876 else
5877
5878                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5879                           if test "x$LINE" != x ; then
5880                             eval "DEFAULT_$LINE"
5881                           else
5882                             no_cache=1
5883                           fi
5884
5885                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5886
5887 fi;
5888
5889           eval "$ac_cv_use_threads"
5890           if test "$no_cache" != 1; then
5891             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5892           fi
5893
5894           if test "$wxUSE_THREADS" = yes; then
5895             echo "$as_me:$LINENO: result: yes" >&5
5896 echo "${ECHO_T}yes" >&6
5897           else
5898             echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900           fi
5901
5902
5903 if test "$wxUSE_GUI" = "yes"; then
5904
5905
5906
5907           enablestring=
5908           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5909 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5910           no_cache=0
5911           # Check whether --enable-docview or --disable-docview was given.
5912 if test "${enable_docview+set}" = set; then
5913   enableval="$enable_docview"
5914
5915                           if test "$enableval" = yes; then
5916                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5917                           else
5918                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5919                           fi
5920
5921 else
5922
5923                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5924                           if test "x$LINE" != x ; then
5925                             eval "DEFAULT_$LINE"
5926                           else
5927                             no_cache=1
5928                           fi
5929
5930                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5931
5932 fi;
5933
5934           eval "$ac_cv_use_docview"
5935           if test "$no_cache" != 1; then
5936             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5937           fi
5938
5939           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5940             echo "$as_me:$LINENO: result: yes" >&5
5941 echo "${ECHO_T}yes" >&6
5942           else
5943             echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945           fi
5946
5947
5948           enablestring=
5949           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5950 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5951           no_cache=0
5952           # Check whether --enable-help or --disable-help was given.
5953 if test "${enable_help+set}" = set; then
5954   enableval="$enable_help"
5955
5956                           if test "$enableval" = yes; then
5957                             ac_cv_use_help='wxUSE_HELP=yes'
5958                           else
5959                             ac_cv_use_help='wxUSE_HELP=no'
5960                           fi
5961
5962 else
5963
5964                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5965                           if test "x$LINE" != x ; then
5966                             eval "DEFAULT_$LINE"
5967                           else
5968                             no_cache=1
5969                           fi
5970
5971                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5972
5973 fi;
5974
5975           eval "$ac_cv_use_help"
5976           if test "$no_cache" != 1; then
5977             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5978           fi
5979
5980           if test "$wxUSE_HELP" = yes; then
5981             echo "$as_me:$LINENO: result: yes" >&5
5982 echo "${ECHO_T}yes" >&6
5983           else
5984             echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986           fi
5987
5988
5989           enablestring=
5990           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5991 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5992           no_cache=0
5993           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5994 if test "${enable_mshtmlhelp+set}" = set; then
5995   enableval="$enable_mshtmlhelp"
5996
5997                           if test "$enableval" = yes; then
5998                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5999                           else
6000                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6001                           fi
6002
6003 else
6004
6005                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6006                           if test "x$LINE" != x ; then
6007                             eval "DEFAULT_$LINE"
6008                           else
6009                             no_cache=1
6010                           fi
6011
6012                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6013
6014 fi;
6015
6016           eval "$ac_cv_use_mshtmlhelp"
6017           if test "$no_cache" != 1; then
6018             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6019           fi
6020
6021           if test "$wxUSE_MS_HTML_HELP" = yes; then
6022             echo "$as_me:$LINENO: result: yes" >&5
6023 echo "${ECHO_T}yes" >&6
6024           else
6025             echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027           fi
6028
6029
6030           enablestring=
6031           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6032 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6033           no_cache=0
6034           # Check whether --enable-html or --disable-html was given.
6035 if test "${enable_html+set}" = set; then
6036   enableval="$enable_html"
6037
6038                           if test "$enableval" = yes; then
6039                             ac_cv_use_html='wxUSE_HTML=yes'
6040                           else
6041                             ac_cv_use_html='wxUSE_HTML=no'
6042                           fi
6043
6044 else
6045
6046                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6047                           if test "x$LINE" != x ; then
6048                             eval "DEFAULT_$LINE"
6049                           else
6050                             no_cache=1
6051                           fi
6052
6053                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6054
6055 fi;
6056
6057           eval "$ac_cv_use_html"
6058           if test "$no_cache" != 1; then
6059             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6060           fi
6061
6062           if test "$wxUSE_HTML" = yes; then
6063             echo "$as_me:$LINENO: result: yes" >&5
6064 echo "${ECHO_T}yes" >&6
6065           else
6066             echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6
6068           fi
6069
6070
6071           enablestring=
6072           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6073 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6074           no_cache=0
6075           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6076 if test "${enable_htmlhelp+set}" = set; then
6077   enableval="$enable_htmlhelp"
6078
6079                           if test "$enableval" = yes; then
6080                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6081                           else
6082                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6083                           fi
6084
6085 else
6086
6087                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6088                           if test "x$LINE" != x ; then
6089                             eval "DEFAULT_$LINE"
6090                           else
6091                             no_cache=1
6092                           fi
6093
6094                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6095
6096 fi;
6097
6098           eval "$ac_cv_use_htmlhelp"
6099           if test "$no_cache" != 1; then
6100             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6101           fi
6102
6103           if test "$wxUSE_WXHTML_HELP" = yes; then
6104             echo "$as_me:$LINENO: result: yes" >&5
6105 echo "${ECHO_T}yes" >&6
6106           else
6107             echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6
6109           fi
6110
6111
6112           enablestring=
6113           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6114 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6115           no_cache=0
6116           # Check whether --enable-constraints or --disable-constraints was given.
6117 if test "${enable_constraints+set}" = set; then
6118   enableval="$enable_constraints"
6119
6120                           if test "$enableval" = yes; then
6121                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6122                           else
6123                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6124                           fi
6125
6126 else
6127
6128                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6129                           if test "x$LINE" != x ; then
6130                             eval "DEFAULT_$LINE"
6131                           else
6132                             no_cache=1
6133                           fi
6134
6135                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6136
6137 fi;
6138
6139           eval "$ac_cv_use_constraints"
6140           if test "$no_cache" != 1; then
6141             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6142           fi
6143
6144           if test "$wxUSE_CONSTRAINTS" = yes; then
6145             echo "$as_me:$LINENO: result: yes" >&5
6146 echo "${ECHO_T}yes" >&6
6147           else
6148             echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6150           fi
6151
6152
6153           enablestring=
6154           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6155 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6156           no_cache=0
6157           # Check whether --enable-printarch or --disable-printarch was given.
6158 if test "${enable_printarch+set}" = set; then
6159   enableval="$enable_printarch"
6160
6161                           if test "$enableval" = yes; then
6162                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6163                           else
6164                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6165                           fi
6166
6167 else
6168
6169                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6170                           if test "x$LINE" != x ; then
6171                             eval "DEFAULT_$LINE"
6172                           else
6173                             no_cache=1
6174                           fi
6175
6176                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6177
6178 fi;
6179
6180           eval "$ac_cv_use_printarch"
6181           if test "$no_cache" != 1; then
6182             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6183           fi
6184
6185           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6186             echo "$as_me:$LINENO: result: yes" >&5
6187 echo "${ECHO_T}yes" >&6
6188           else
6189             echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6
6191           fi
6192
6193
6194           enablestring=
6195           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6196 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6197           no_cache=0
6198           # Check whether --enable-mdi or --disable-mdi was given.
6199 if test "${enable_mdi+set}" = set; then
6200   enableval="$enable_mdi"
6201
6202                           if test "$enableval" = yes; then
6203                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6204                           else
6205                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6206                           fi
6207
6208 else
6209
6210                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6211                           if test "x$LINE" != x ; then
6212                             eval "DEFAULT_$LINE"
6213                           else
6214                             no_cache=1
6215                           fi
6216
6217                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6218
6219 fi;
6220
6221           eval "$ac_cv_use_mdi"
6222           if test "$no_cache" != 1; then
6223             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6224           fi
6225
6226           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6227             echo "$as_me:$LINENO: result: yes" >&5
6228 echo "${ECHO_T}yes" >&6
6229           else
6230             echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6
6232           fi
6233
6234
6235           enablestring=
6236           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6237 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6238           no_cache=0
6239           # Check whether --enable-loggui or --disable-loggui was given.
6240 if test "${enable_loggui+set}" = set; then
6241   enableval="$enable_loggui"
6242
6243                           if test "$enableval" = yes; then
6244                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6245                           else
6246                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6247                           fi
6248
6249 else
6250
6251                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6252                           if test "x$LINE" != x ; then
6253                             eval "DEFAULT_$LINE"
6254                           else
6255                             no_cache=1
6256                           fi
6257
6258                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6259
6260 fi;
6261
6262           eval "$ac_cv_use_loggui"
6263           if test "$no_cache" != 1; then
6264             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6265           fi
6266
6267           if test "$wxUSE_LOGGUI" = yes; then
6268             echo "$as_me:$LINENO: result: yes" >&5
6269 echo "${ECHO_T}yes" >&6
6270           else
6271             echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6
6273           fi
6274
6275
6276           enablestring=
6277           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6278 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6279           no_cache=0
6280           # Check whether --enable-logwin or --disable-logwin was given.
6281 if test "${enable_logwin+set}" = set; then
6282   enableval="$enable_logwin"
6283
6284                           if test "$enableval" = yes; then
6285                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6286                           else
6287                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6288                           fi
6289
6290 else
6291
6292                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6293                           if test "x$LINE" != x ; then
6294                             eval "DEFAULT_$LINE"
6295                           else
6296                             no_cache=1
6297                           fi
6298
6299                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6300
6301 fi;
6302
6303           eval "$ac_cv_use_logwin"
6304           if test "$no_cache" != 1; then
6305             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6306           fi
6307
6308           if test "$wxUSE_LOGWINDOW" = yes; then
6309             echo "$as_me:$LINENO: result: yes" >&5
6310 echo "${ECHO_T}yes" >&6
6311           else
6312             echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6
6314           fi
6315
6316
6317           enablestring=
6318           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6319 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6320           no_cache=0
6321           # Check whether --enable-logdialog or --disable-logdialog was given.
6322 if test "${enable_logdialog+set}" = set; then
6323   enableval="$enable_logdialog"
6324
6325                           if test "$enableval" = yes; then
6326                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6327                           else
6328                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6329                           fi
6330
6331 else
6332
6333                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6334                           if test "x$LINE" != x ; then
6335                             eval "DEFAULT_$LINE"
6336                           else
6337                             no_cache=1
6338                           fi
6339
6340                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6341
6342 fi;
6343
6344           eval "$ac_cv_use_logdialog"
6345           if test "$no_cache" != 1; then
6346             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6347           fi
6348
6349           if test "$wxUSE_LOGDIALOG" = yes; then
6350             echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6
6352           else
6353             echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6
6355           fi
6356
6357
6358
6359           enablestring=
6360           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6361 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6362           no_cache=0
6363           # Check whether --enable-postscript or --disable-postscript was given.
6364 if test "${enable_postscript+set}" = set; then
6365   enableval="$enable_postscript"
6366
6367                           if test "$enableval" = yes; then
6368                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6369                           else
6370                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6371                           fi
6372
6373 else
6374
6375                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6376                           if test "x$LINE" != x ; then
6377                             eval "DEFAULT_$LINE"
6378                           else
6379                             no_cache=1
6380                           fi
6381
6382                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6383
6384 fi;
6385
6386           eval "$ac_cv_use_postscript"
6387           if test "$no_cache" != 1; then
6388             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6389           fi
6390
6391           if test "$wxUSE_POSTSCRIPT" = yes; then
6392             echo "$as_me:$LINENO: result: yes" >&5
6393 echo "${ECHO_T}yes" >&6
6394           else
6395             echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6397           fi
6398
6399
6400
6401
6402
6403           enablestring=
6404           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6405 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6406           no_cache=0
6407           # Check whether --enable-prologio or --disable-prologio was given.
6408 if test "${enable_prologio+set}" = set; then
6409   enableval="$enable_prologio"
6410
6411                           if test "$enableval" = yes; then
6412                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6413                           else
6414                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6415                           fi
6416
6417 else
6418
6419                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6420                           if test "x$LINE" != x ; then
6421                             eval "DEFAULT_$LINE"
6422                           else
6423                             no_cache=1
6424                           fi
6425
6426                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6427
6428 fi;
6429
6430           eval "$ac_cv_use_prologio"
6431           if test "$no_cache" != 1; then
6432             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6433           fi
6434
6435           if test "$wxUSE_PROLOGIO" = yes; then
6436             echo "$as_me:$LINENO: result: yes" >&5
6437 echo "${ECHO_T}yes" >&6
6438           else
6439             echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6
6441           fi
6442
6443
6444           enablestring=
6445           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6446 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6447           no_cache=0
6448           # Check whether --enable-resources or --disable-resources was given.
6449 if test "${enable_resources+set}" = set; then
6450   enableval="$enable_resources"
6451
6452                           if test "$enableval" = yes; then
6453                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6454                           else
6455                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6456                           fi
6457
6458 else
6459
6460                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6461                           if test "x$LINE" != x ; then
6462                             eval "DEFAULT_$LINE"
6463                           else
6464                             no_cache=1
6465                           fi
6466
6467                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6468
6469 fi;
6470
6471           eval "$ac_cv_use_resources"
6472           if test "$no_cache" != 1; then
6473             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6474           fi
6475
6476           if test "$wxUSE_RESOURCES" = yes; then
6477             echo "$as_me:$LINENO: result: yes" >&5
6478 echo "${ECHO_T}yes" >&6
6479           else
6480             echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6
6482           fi
6483
6484
6485
6486
6487           enablestring=
6488           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6489 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6490           no_cache=0
6491           # Check whether --enable-clipboard or --disable-clipboard was given.
6492 if test "${enable_clipboard+set}" = set; then
6493   enableval="$enable_clipboard"
6494
6495                           if test "$enableval" = yes; then
6496                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6497                           else
6498                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6499                           fi
6500
6501 else
6502
6503                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6504                           if test "x$LINE" != x ; then
6505                             eval "DEFAULT_$LINE"
6506                           else
6507                             no_cache=1
6508                           fi
6509
6510                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6511
6512 fi;
6513
6514           eval "$ac_cv_use_clipboard"
6515           if test "$no_cache" != 1; then
6516             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6517           fi
6518
6519           if test "$wxUSE_CLIPBOARD" = yes; then
6520             echo "$as_me:$LINENO: result: yes" >&5
6521 echo "${ECHO_T}yes" >&6
6522           else
6523             echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6
6525           fi
6526
6527
6528           enablestring=
6529           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6530 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6531           no_cache=0
6532           # Check whether --enable-dnd or --disable-dnd was given.
6533 if test "${enable_dnd+set}" = set; then
6534   enableval="$enable_dnd"
6535
6536                           if test "$enableval" = yes; then
6537                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6538                           else
6539                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6540                           fi
6541
6542 else
6543
6544                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6545                           if test "x$LINE" != x ; then
6546                             eval "DEFAULT_$LINE"
6547                           else
6548                             no_cache=1
6549                           fi
6550
6551                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6552
6553 fi;
6554
6555           eval "$ac_cv_use_dnd"
6556           if test "$no_cache" != 1; then
6557             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6558           fi
6559
6560           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6561             echo "$as_me:$LINENO: result: yes" >&5
6562 echo "${ECHO_T}yes" >&6
6563           else
6564             echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6566           fi
6567
6568
6569           enablestring=
6570           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6571 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6572           no_cache=0
6573           # Check whether --enable-metafile or --disable-metafile was given.
6574 if test "${enable_metafile+set}" = set; then
6575   enableval="$enable_metafile"
6576
6577                           if test "$enableval" = yes; then
6578                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6579                           else
6580                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6581                           fi
6582
6583 else
6584
6585                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6586                           if test "x$LINE" != x ; then
6587                             eval "DEFAULT_$LINE"
6588                           else
6589                             no_cache=1
6590                           fi
6591
6592                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6593
6594 fi;
6595
6596           eval "$ac_cv_use_metafile"
6597           if test "$no_cache" != 1; then
6598             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6599           fi
6600
6601           if test "$wxUSE_METAFILE" = yes; then
6602             echo "$as_me:$LINENO: result: yes" >&5
6603 echo "${ECHO_T}yes" >&6
6604           else
6605             echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6
6607           fi
6608
6609
6610
6611
6612
6613           enablestring=
6614           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6615 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6616           no_cache=0
6617           # Check whether --enable-controls or --disable-controls was given.
6618 if test "${enable_controls+set}" = set; then
6619   enableval="$enable_controls"
6620
6621                           if test "$enableval" = yes; then
6622                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6623                           else
6624                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6625                           fi
6626
6627 else
6628
6629                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6630                           if test "x$LINE" != x ; then
6631                             eval "DEFAULT_$LINE"
6632                           else
6633                             no_cache=1
6634                           fi
6635
6636                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6637
6638 fi;
6639
6640           eval "$ac_cv_use_controls"
6641           if test "$no_cache" != 1; then
6642             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6643           fi
6644
6645           if test "$wxUSE_CONTROLS" = yes; then
6646             echo "$as_me:$LINENO: result: yes" >&5
6647 echo "${ECHO_T}yes" >&6
6648           else
6649             echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6
6651           fi
6652
6653
6654 if test "$wxUSE_CONTROLS" = "yes"; then
6655   DEFAULT_wxUSE_ACCEL=yes
6656   DEFAULT_wxUSE_BMPBUTTON=yes
6657   DEFAULT_wxUSE_BUTTON=yes
6658   DEFAULT_wxUSE_CALCTRL=no
6659   DEFAULT_wxUSE_CARET=yes
6660   DEFAULT_wxUSE_COMBOBOX=yes
6661   DEFAULT_wxUSE_CHECKBOX=yes
6662   DEFAULT_wxUSE_CHECKLISTBOX=yes
6663   DEFAULT_wxUSE_CHOICE=yes
6664   DEFAULT_wxUSE_GAUGE=yes
6665   DEFAULT_wxUSE_GRID=yes
6666   DEFAULT_wxUSE_IMAGLIST=yes
6667   DEFAULT_wxUSE_LISTBOOK=yes
6668   DEFAULT_wxUSE_LISTBOX=yes
6669   DEFAULT_wxUSE_LISTCTRL=yes
6670   DEFAULT_wxUSE_NOTEBOOK=yes
6671   DEFAULT_wxUSE_RADIOBOX=yes
6672   DEFAULT_wxUSE_RADIOBTN=yes
6673   DEFAULT_wxUSE_SASH=yes
6674   DEFAULT_wxUSE_SCROLLBAR=yes
6675   DEFAULT_wxUSE_SLIDER=yes
6676   DEFAULT_wxUSE_SPINBTN=yes
6677   DEFAULT_wxUSE_SPINCTRL=yes
6678   DEFAULT_wxUSE_SPLITTER=yes
6679   DEFAULT_wxUSE_STATBMP=yes
6680   DEFAULT_wxUSE_STATBOX=yes
6681   DEFAULT_wxUSE_STATLINE=yes
6682   DEFAULT_wxUSE_STATUSBAR=yes
6683   DEFAULT_wxUSE_TAB_DIALOG=yes
6684   DEFAULT_wxUSE_TOGGLEBTN=yes
6685   DEFAULT_wxUSE_TOOLBAR=yes
6686   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6687   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6688   DEFAULT_wxUSE_TOOLTIPS=yes
6689   DEFAULT_wxUSE_TREECTRL=yes
6690   DEFAULT_wxUSE_POPUPWIN=yes
6691   DEFAULT_wxUSE_TIPWINDOW=yes
6692 elif test "$wxUSE_CONTROLS" = "no"; then
6693   DEFAULT_wxUSE_ACCEL=no
6694   DEFAULT_wxUSE_BMPBUTTON=no
6695   DEFAULT_wxUSE_BUTTON=no
6696   DEFAULT_wxUSE_CALCTRL=no
6697   DEFAULT_wxUSE_CARET=no
6698   DEFAULT_wxUSE_COMBOBOX=no
6699   DEFAULT_wxUSE_CHECKBOX=no
6700   DEFAULT_wxUSE_CHECKLISTBOX=no
6701   DEFAULT_wxUSE_CHOICE=no
6702   DEFAULT_wxUSE_GAUGE=no
6703   DEFAULT_wxUSE_GRID=no
6704   DEFAULT_wxUSE_IMAGLIST=no
6705   DEFAULT_wxUSE_LISTBOOK=no
6706   DEFAULT_wxUSE_LISTBOX=no
6707   DEFAULT_wxUSE_LISTCTRL=no
6708   DEFAULT_wxUSE_NOTEBOOK=no
6709   DEFAULT_wxUSE_RADIOBOX=no
6710   DEFAULT_wxUSE_RADIOBTN=no
6711   DEFAULT_wxUSE_SASH=no
6712   DEFAULT_wxUSE_SCROLLBAR=no
6713   DEFAULT_wxUSE_SLIDER=no
6714   DEFAULT_wxUSE_SPINBTN=no
6715   DEFAULT_wxUSE_SPINCTRL=no
6716   DEFAULT_wxUSE_SPLITTER=no
6717   DEFAULT_wxUSE_STATBMP=no
6718   DEFAULT_wxUSE_STATBOX=no
6719   DEFAULT_wxUSE_STATLINE=no
6720   DEFAULT_wxUSE_STATUSBAR=no
6721   DEFAULT_wxUSE_TAB_DIALOG=no
6722   DEFAULT_wxUSE_TOGGLEBTN=no
6723   DEFAULT_wxUSE_TOOLBAR=no
6724   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6725   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6726   DEFAULT_wxUSE_TOOLTIPS=no
6727   DEFAULT_wxUSE_TREECTRL=no
6728   DEFAULT_wxUSE_POPUPWIN=no
6729   DEFAULT_wxUSE_TIPWINDOW=no
6730 fi
6731
6732 ## FIXME: This is a blatant hack
6733 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6734   wxUSE_PRINTING_ARCHITECTURE=no
6735   wxUSE_DRAG_AND_DROP=no
6736   # Generic notebook requires tab dialog
6737   DEFAULT_wxUSE_TABDIALOG=yes
6738   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6739   DEFAULT_wxUSE_SCROLLBAR=no
6740   DEFAULT_wxUSE_TOOLTIPS=no
6741   DEFAULT_wxUSE_DRAGIMAGE=no
6742 fi
6743
6744
6745           enablestring=
6746           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6747 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6748           no_cache=0
6749           # Check whether --enable-accel or --disable-accel was given.
6750 if test "${enable_accel+set}" = set; then
6751   enableval="$enable_accel"
6752
6753                           if test "$enableval" = yes; then
6754                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6755                           else
6756                             ac_cv_use_accel='wxUSE_ACCEL=no'
6757                           fi
6758
6759 else
6760
6761                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6762                           if test "x$LINE" != x ; then
6763                             eval "DEFAULT_$LINE"
6764                           else
6765                             no_cache=1
6766                           fi
6767
6768                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6769
6770 fi;
6771
6772           eval "$ac_cv_use_accel"
6773           if test "$no_cache" != 1; then
6774             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6775           fi
6776
6777           if test "$wxUSE_ACCEL" = yes; then
6778             echo "$as_me:$LINENO: result: yes" >&5
6779 echo "${ECHO_T}yes" >&6
6780           else
6781             echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6
6783           fi
6784
6785
6786           enablestring=
6787           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6788 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6789           no_cache=0
6790           # Check whether --enable-button or --disable-button was given.
6791 if test "${enable_button+set}" = set; then
6792   enableval="$enable_button"
6793
6794                           if test "$enableval" = yes; then
6795                             ac_cv_use_button='wxUSE_BUTTON=yes'
6796                           else
6797                             ac_cv_use_button='wxUSE_BUTTON=no'
6798                           fi
6799
6800 else
6801
6802                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6803                           if test "x$LINE" != x ; then
6804                             eval "DEFAULT_$LINE"
6805                           else
6806                             no_cache=1
6807                           fi
6808
6809                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6810
6811 fi;
6812
6813           eval "$ac_cv_use_button"
6814           if test "$no_cache" != 1; then
6815             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6816           fi
6817
6818           if test "$wxUSE_BUTTON" = yes; then
6819             echo "$as_me:$LINENO: result: yes" >&5
6820 echo "${ECHO_T}yes" >&6
6821           else
6822             echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6
6824           fi
6825
6826
6827           enablestring=
6828           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6829 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6830           no_cache=0
6831           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6832 if test "${enable_bmpbutton+set}" = set; then
6833   enableval="$enable_bmpbutton"
6834
6835                           if test "$enableval" = yes; then
6836                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6837                           else
6838                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6839                           fi
6840
6841 else
6842
6843                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6844                           if test "x$LINE" != x ; then
6845                             eval "DEFAULT_$LINE"
6846                           else
6847                             no_cache=1
6848                           fi
6849
6850                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6851
6852 fi;
6853
6854           eval "$ac_cv_use_bmpbutton"
6855           if test "$no_cache" != 1; then
6856             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6857           fi
6858
6859           if test "$wxUSE_BMPBUTTON" = yes; then
6860             echo "$as_me:$LINENO: result: yes" >&5
6861 echo "${ECHO_T}yes" >&6
6862           else
6863             echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6
6865           fi
6866
6867
6868           enablestring=
6869           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6870 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6871           no_cache=0
6872           # Check whether --enable-calendar or --disable-calendar was given.
6873 if test "${enable_calendar+set}" = set; then
6874   enableval="$enable_calendar"
6875
6876                           if test "$enableval" = yes; then
6877                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6878                           else
6879                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6880                           fi
6881
6882 else
6883
6884                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6885                           if test "x$LINE" != x ; then
6886                             eval "DEFAULT_$LINE"
6887                           else
6888                             no_cache=1
6889                           fi
6890
6891                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6892
6893 fi;
6894
6895           eval "$ac_cv_use_calendar"
6896           if test "$no_cache" != 1; then
6897             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6898           fi
6899
6900           if test "$wxUSE_CALCTRL" = yes; then
6901             echo "$as_me:$LINENO: result: yes" >&5
6902 echo "${ECHO_T}yes" >&6
6903           else
6904             echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6
6906           fi
6907
6908
6909           enablestring=
6910           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6911 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6912           no_cache=0
6913           # Check whether --enable-caret or --disable-caret was given.
6914 if test "${enable_caret+set}" = set; then
6915   enableval="$enable_caret"
6916
6917                           if test "$enableval" = yes; then
6918                             ac_cv_use_caret='wxUSE_CARET=yes'
6919                           else
6920                             ac_cv_use_caret='wxUSE_CARET=no'
6921                           fi
6922
6923 else
6924
6925                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6926                           if test "x$LINE" != x ; then
6927                             eval "DEFAULT_$LINE"
6928                           else
6929                             no_cache=1
6930                           fi
6931
6932                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6933
6934 fi;
6935
6936           eval "$ac_cv_use_caret"
6937           if test "$no_cache" != 1; then
6938             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6939           fi
6940
6941           if test "$wxUSE_CARET" = yes; then
6942             echo "$as_me:$LINENO: result: yes" >&5
6943 echo "${ECHO_T}yes" >&6
6944           else
6945             echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6
6947           fi
6948
6949
6950           enablestring=
6951           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6952 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6953           no_cache=0
6954           # Check whether --enable-checkbox or --disable-checkbox was given.
6955 if test "${enable_checkbox+set}" = set; then
6956   enableval="$enable_checkbox"
6957
6958                           if test "$enableval" = yes; then
6959                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6960                           else
6961                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6962                           fi
6963
6964 else
6965
6966                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6967                           if test "x$LINE" != x ; then
6968                             eval "DEFAULT_$LINE"
6969                           else
6970                             no_cache=1
6971                           fi
6972
6973                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6974
6975 fi;
6976
6977           eval "$ac_cv_use_checkbox"
6978           if test "$no_cache" != 1; then
6979             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6980           fi
6981
6982           if test "$wxUSE_CHECKBOX" = yes; then
6983             echo "$as_me:$LINENO: result: yes" >&5
6984 echo "${ECHO_T}yes" >&6
6985           else
6986             echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6
6988           fi
6989
6990
6991           enablestring=
6992           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6993 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6994           no_cache=0
6995           # Check whether --enable-checklst or --disable-checklst was given.
6996 if test "${enable_checklst+set}" = set; then
6997   enableval="$enable_checklst"
6998
6999                           if test "$enableval" = yes; then
7000                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7001                           else
7002                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7003                           fi
7004
7005 else
7006
7007                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7008                           if test "x$LINE" != x ; then
7009                             eval "DEFAULT_$LINE"
7010                           else
7011                             no_cache=1
7012                           fi
7013
7014                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7015
7016 fi;
7017
7018           eval "$ac_cv_use_checklst"
7019           if test "$no_cache" != 1; then
7020             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7021           fi
7022
7023           if test "$wxUSE_CHECKLST" = yes; then
7024             echo "$as_me:$LINENO: result: yes" >&5
7025 echo "${ECHO_T}yes" >&6
7026           else
7027             echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6
7029           fi
7030
7031
7032           enablestring=
7033           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7034 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7035           no_cache=0
7036           # Check whether --enable-choice or --disable-choice was given.
7037 if test "${enable_choice+set}" = set; then
7038   enableval="$enable_choice"
7039
7040                           if test "$enableval" = yes; then
7041                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7042                           else
7043                             ac_cv_use_choice='wxUSE_CHOICE=no'
7044                           fi
7045
7046 else
7047
7048                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7049                           if test "x$LINE" != x ; then
7050                             eval "DEFAULT_$LINE"
7051                           else
7052                             no_cache=1
7053                           fi
7054
7055                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7056
7057 fi;
7058
7059           eval "$ac_cv_use_choice"
7060           if test "$no_cache" != 1; then
7061             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7062           fi
7063
7064           if test "$wxUSE_CHOICE" = yes; then
7065             echo "$as_me:$LINENO: result: yes" >&5
7066 echo "${ECHO_T}yes" >&6
7067           else
7068             echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6
7070           fi
7071
7072
7073           enablestring=
7074           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7075 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7076           no_cache=0
7077           # Check whether --enable-combobox or --disable-combobox was given.
7078 if test "${enable_combobox+set}" = set; then
7079   enableval="$enable_combobox"
7080
7081                           if test "$enableval" = yes; then
7082                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7083                           else
7084                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7085                           fi
7086
7087 else
7088
7089                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7090                           if test "x$LINE" != x ; then
7091                             eval "DEFAULT_$LINE"
7092                           else
7093                             no_cache=1
7094                           fi
7095
7096                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7097
7098 fi;
7099
7100           eval "$ac_cv_use_combobox"
7101           if test "$no_cache" != 1; then
7102             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7103           fi
7104
7105           if test "$wxUSE_COMBOBOX" = yes; then
7106             echo "$as_me:$LINENO: result: yes" >&5
7107 echo "${ECHO_T}yes" >&6
7108           else
7109             echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7111           fi
7112
7113
7114           enablestring=
7115           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7116 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7117           no_cache=0
7118           # Check whether --enable-display or --disable-display was given.
7119 if test "${enable_display+set}" = set; then
7120   enableval="$enable_display"
7121
7122                           if test "$enableval" = yes; then
7123                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7124                           else
7125                             ac_cv_use_display='wxUSE_DISPLAY=no'
7126                           fi
7127
7128 else
7129
7130                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7131                           if test "x$LINE" != x ; then
7132                             eval "DEFAULT_$LINE"
7133                           else
7134                             no_cache=1
7135                           fi
7136
7137                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7138
7139 fi;
7140
7141           eval "$ac_cv_use_display"
7142           if test "$no_cache" != 1; then
7143             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7144           fi
7145
7146           if test "$wxUSE_DISPLAY" = yes; then
7147             echo "$as_me:$LINENO: result: yes" >&5
7148 echo "${ECHO_T}yes" >&6
7149           else
7150             echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152           fi
7153
7154
7155           enablestring=
7156           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7157 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7158           no_cache=0
7159           # Check whether --enable-gauge or --disable-gauge was given.
7160 if test "${enable_gauge+set}" = set; then
7161   enableval="$enable_gauge"
7162
7163                           if test "$enableval" = yes; then
7164                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7165                           else
7166                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7167                           fi
7168
7169 else
7170
7171                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7172                           if test "x$LINE" != x ; then
7173                             eval "DEFAULT_$LINE"
7174                           else
7175                             no_cache=1
7176                           fi
7177
7178                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7179
7180 fi;
7181
7182           eval "$ac_cv_use_gauge"
7183           if test "$no_cache" != 1; then
7184             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7185           fi
7186
7187           if test "$wxUSE_GAUGE" = yes; then
7188             echo "$as_me:$LINENO: result: yes" >&5
7189 echo "${ECHO_T}yes" >&6
7190           else
7191             echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193           fi
7194
7195
7196           enablestring=
7197           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7198 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7199           no_cache=0
7200           # Check whether --enable-grid or --disable-grid was given.
7201 if test "${enable_grid+set}" = set; then
7202   enableval="$enable_grid"
7203
7204                           if test "$enableval" = yes; then
7205                             ac_cv_use_grid='wxUSE_GRID=yes'
7206                           else
7207                             ac_cv_use_grid='wxUSE_GRID=no'
7208                           fi
7209
7210 else
7211
7212                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7213                           if test "x$LINE" != x ; then
7214                             eval "DEFAULT_$LINE"
7215                           else
7216                             no_cache=1
7217                           fi
7218
7219                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7220
7221 fi;
7222
7223           eval "$ac_cv_use_grid"
7224           if test "$no_cache" != 1; then
7225             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7226           fi
7227
7228           if test "$wxUSE_GRID" = yes; then
7229             echo "$as_me:$LINENO: result: yes" >&5
7230 echo "${ECHO_T}yes" >&6
7231           else
7232             echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7234           fi
7235
7236
7237           enablestring=
7238           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7239 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7240           no_cache=0
7241           # Check whether --enable-imaglist or --disable-imaglist was given.
7242 if test "${enable_imaglist+set}" = set; then
7243   enableval="$enable_imaglist"
7244
7245                           if test "$enableval" = yes; then
7246                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7247                           else
7248                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7249                           fi
7250
7251 else
7252
7253                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7254                           if test "x$LINE" != x ; then
7255                             eval "DEFAULT_$LINE"
7256                           else
7257                             no_cache=1
7258                           fi
7259
7260                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7261
7262 fi;
7263
7264           eval "$ac_cv_use_imaglist"
7265           if test "$no_cache" != 1; then
7266             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7267           fi
7268
7269           if test "$wxUSE_IMAGLIST" = yes; then
7270             echo "$as_me:$LINENO: result: yes" >&5
7271 echo "${ECHO_T}yes" >&6
7272           else
7273             echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7275           fi
7276
7277
7278           enablestring=
7279           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7280 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7281           no_cache=0
7282           # Check whether --enable-listbook or --disable-listbook was given.
7283 if test "${enable_listbook+set}" = set; then
7284   enableval="$enable_listbook"
7285
7286                           if test "$enableval" = yes; then
7287                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7288                           else
7289                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7290                           fi
7291
7292 else
7293
7294                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7295                           if test "x$LINE" != x ; then
7296                             eval "DEFAULT_$LINE"
7297                           else
7298                             no_cache=1
7299                           fi
7300
7301                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7302
7303 fi;
7304
7305           eval "$ac_cv_use_listbook"
7306           if test "$no_cache" != 1; then
7307             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7308           fi
7309
7310           if test "$wxUSE_LISTBOOK" = yes; then
7311             echo "$as_me:$LINENO: result: yes" >&5
7312 echo "${ECHO_T}yes" >&6
7313           else
7314             echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7316           fi
7317
7318
7319           enablestring=
7320           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7321 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7322           no_cache=0
7323           # Check whether --enable-listbox or --disable-listbox was given.
7324 if test "${enable_listbox+set}" = set; then
7325   enableval="$enable_listbox"
7326
7327                           if test "$enableval" = yes; then
7328                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7329                           else
7330                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7331                           fi
7332
7333 else
7334
7335                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7336                           if test "x$LINE" != x ; then
7337                             eval "DEFAULT_$LINE"
7338                           else
7339                             no_cache=1
7340                           fi
7341
7342                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7343
7344 fi;
7345
7346           eval "$ac_cv_use_listbox"
7347           if test "$no_cache" != 1; then
7348             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7349           fi
7350
7351           if test "$wxUSE_LISTBOX" = yes; then
7352             echo "$as_me:$LINENO: result: yes" >&5
7353 echo "${ECHO_T}yes" >&6
7354           else
7355             echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6
7357           fi
7358
7359
7360           enablestring=
7361           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7362 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7363           no_cache=0
7364           # Check whether --enable-listctrl or --disable-listctrl was given.
7365 if test "${enable_listctrl+set}" = set; then
7366   enableval="$enable_listctrl"
7367
7368                           if test "$enableval" = yes; then
7369                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7370                           else
7371                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7372                           fi
7373
7374 else
7375
7376                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7377                           if test "x$LINE" != x ; then
7378                             eval "DEFAULT_$LINE"
7379                           else
7380                             no_cache=1
7381                           fi
7382
7383                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7384
7385 fi;
7386
7387           eval "$ac_cv_use_listctrl"
7388           if test "$no_cache" != 1; then
7389             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7390           fi
7391
7392           if test "$wxUSE_LISTCTRL" = yes; then
7393             echo "$as_me:$LINENO: result: yes" >&5
7394 echo "${ECHO_T}yes" >&6
7395           else
7396             echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7398           fi
7399
7400
7401           enablestring=
7402           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7403 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7404           no_cache=0
7405           # Check whether --enable-notebook or --disable-notebook was given.
7406 if test "${enable_notebook+set}" = set; then
7407   enableval="$enable_notebook"
7408
7409                           if test "$enableval" = yes; then
7410                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7411                           else
7412                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7413                           fi
7414
7415 else
7416
7417                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7418                           if test "x$LINE" != x ; then
7419                             eval "DEFAULT_$LINE"
7420                           else
7421                             no_cache=1
7422                           fi
7423
7424                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7425
7426 fi;
7427
7428           eval "$ac_cv_use_notebook"
7429           if test "$no_cache" != 1; then
7430             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7431           fi
7432
7433           if test "$wxUSE_NOTEBOOK" = yes; then
7434             echo "$as_me:$LINENO: result: yes" >&5
7435 echo "${ECHO_T}yes" >&6
7436           else
7437             echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439           fi
7440
7441
7442           enablestring=
7443           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7444 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7445           no_cache=0
7446           # Check whether --enable-radiobox or --disable-radiobox was given.
7447 if test "${enable_radiobox+set}" = set; then
7448   enableval="$enable_radiobox"
7449
7450                           if test "$enableval" = yes; then
7451                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7452                           else
7453                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7454                           fi
7455
7456 else
7457
7458                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7459                           if test "x$LINE" != x ; then
7460                             eval "DEFAULT_$LINE"
7461                           else
7462                             no_cache=1
7463                           fi
7464
7465                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7466
7467 fi;
7468
7469           eval "$ac_cv_use_radiobox"
7470           if test "$no_cache" != 1; then
7471             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7472           fi
7473
7474           if test "$wxUSE_RADIOBOX" = yes; then
7475             echo "$as_me:$LINENO: result: yes" >&5
7476 echo "${ECHO_T}yes" >&6
7477           else
7478             echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480           fi
7481
7482
7483           enablestring=
7484           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7485 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7486           no_cache=0
7487           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7488 if test "${enable_radiobtn+set}" = set; then
7489   enableval="$enable_radiobtn"
7490
7491                           if test "$enableval" = yes; then
7492                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7493                           else
7494                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7495                           fi
7496
7497 else
7498
7499                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7500                           if test "x$LINE" != x ; then
7501                             eval "DEFAULT_$LINE"
7502                           else
7503                             no_cache=1
7504                           fi
7505
7506                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7507
7508 fi;
7509
7510           eval "$ac_cv_use_radiobtn"
7511           if test "$no_cache" != 1; then
7512             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7513           fi
7514
7515           if test "$wxUSE_RADIOBTN" = yes; then
7516             echo "$as_me:$LINENO: result: yes" >&5
7517 echo "${ECHO_T}yes" >&6
7518           else
7519             echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7521           fi
7522
7523
7524           enablestring=
7525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7526 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7527           no_cache=0
7528           # Check whether --enable-sash or --disable-sash was given.
7529 if test "${enable_sash+set}" = set; then
7530   enableval="$enable_sash"
7531
7532                           if test "$enableval" = yes; then
7533                             ac_cv_use_sash='wxUSE_SASH=yes'
7534                           else
7535                             ac_cv_use_sash='wxUSE_SASH=no'
7536                           fi
7537
7538 else
7539
7540                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7541                           if test "x$LINE" != x ; then
7542                             eval "DEFAULT_$LINE"
7543                           else
7544                             no_cache=1
7545                           fi
7546
7547                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7548
7549 fi;
7550
7551           eval "$ac_cv_use_sash"
7552           if test "$no_cache" != 1; then
7553             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7554           fi
7555
7556           if test "$wxUSE_SASH" = yes; then
7557             echo "$as_me:$LINENO: result: yes" >&5
7558 echo "${ECHO_T}yes" >&6
7559           else
7560             echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7562           fi
7563
7564
7565           enablestring=
7566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7567 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7568           no_cache=0
7569           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7570 if test "${enable_scrollbar+set}" = set; then
7571   enableval="$enable_scrollbar"
7572
7573                           if test "$enableval" = yes; then
7574                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7575                           else
7576                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7577                           fi
7578
7579 else
7580
7581                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7582                           if test "x$LINE" != x ; then
7583                             eval "DEFAULT_$LINE"
7584                           else
7585                             no_cache=1
7586                           fi
7587
7588                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7589
7590 fi;
7591
7592           eval "$ac_cv_use_scrollbar"
7593           if test "$no_cache" != 1; then
7594             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7595           fi
7596
7597           if test "$wxUSE_SCROLLBAR" = yes; then
7598             echo "$as_me:$LINENO: result: yes" >&5
7599 echo "${ECHO_T}yes" >&6
7600           else
7601             echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7603           fi
7604
7605
7606           enablestring=
7607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7608 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7609           no_cache=0
7610           # Check whether --enable-slider or --disable-slider was given.
7611 if test "${enable_slider+set}" = set; then
7612   enableval="$enable_slider"
7613
7614                           if test "$enableval" = yes; then
7615                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7616                           else
7617                             ac_cv_use_slider='wxUSE_SLIDER=no'
7618                           fi
7619
7620 else
7621
7622                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7623                           if test "x$LINE" != x ; then
7624                             eval "DEFAULT_$LINE"
7625                           else
7626                             no_cache=1
7627                           fi
7628
7629                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7630
7631 fi;
7632
7633           eval "$ac_cv_use_slider"
7634           if test "$no_cache" != 1; then
7635             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7636           fi
7637
7638           if test "$wxUSE_SLIDER" = yes; then
7639             echo "$as_me:$LINENO: result: yes" >&5
7640 echo "${ECHO_T}yes" >&6
7641           else
7642             echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7644           fi
7645
7646
7647           enablestring=
7648           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7649 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7650           no_cache=0
7651           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7652 if test "${enable_spinbtn+set}" = set; then
7653   enableval="$enable_spinbtn"
7654
7655                           if test "$enableval" = yes; then
7656                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7657                           else
7658                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7659                           fi
7660
7661 else
7662
7663                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7664                           if test "x$LINE" != x ; then
7665                             eval "DEFAULT_$LINE"
7666                           else
7667                             no_cache=1
7668                           fi
7669
7670                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7671
7672 fi;
7673
7674           eval "$ac_cv_use_spinbtn"
7675           if test "$no_cache" != 1; then
7676             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7677           fi
7678
7679           if test "$wxUSE_SPINBTN" = yes; then
7680             echo "$as_me:$LINENO: result: yes" >&5
7681 echo "${ECHO_T}yes" >&6
7682           else
7683             echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6
7685           fi
7686
7687
7688           enablestring=
7689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7690 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7691           no_cache=0
7692           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7693 if test "${enable_spinctrl+set}" = set; then
7694   enableval="$enable_spinctrl"
7695
7696                           if test "$enableval" = yes; then
7697                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7698                           else
7699                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7700                           fi
7701
7702 else
7703
7704                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7705                           if test "x$LINE" != x ; then
7706                             eval "DEFAULT_$LINE"
7707                           else
7708                             no_cache=1
7709                           fi
7710
7711                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7712
7713 fi;
7714
7715           eval "$ac_cv_use_spinctrl"
7716           if test "$no_cache" != 1; then
7717             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7718           fi
7719
7720           if test "$wxUSE_SPINCTRL" = yes; then
7721             echo "$as_me:$LINENO: result: yes" >&5
7722 echo "${ECHO_T}yes" >&6
7723           else
7724             echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6
7726           fi
7727
7728
7729           enablestring=
7730           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7731 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7732           no_cache=0
7733           # Check whether --enable-splitter or --disable-splitter was given.
7734 if test "${enable_splitter+set}" = set; then
7735   enableval="$enable_splitter"
7736
7737                           if test "$enableval" = yes; then
7738                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7739                           else
7740                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7741                           fi
7742
7743 else
7744
7745                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7746                           if test "x$LINE" != x ; then
7747                             eval "DEFAULT_$LINE"
7748                           else
7749                             no_cache=1
7750                           fi
7751
7752                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7753
7754 fi;
7755
7756           eval "$ac_cv_use_splitter"
7757           if test "$no_cache" != 1; then
7758             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7759           fi
7760
7761           if test "$wxUSE_SPLITTER" = yes; then
7762             echo "$as_me:$LINENO: result: yes" >&5
7763 echo "${ECHO_T}yes" >&6
7764           else
7765             echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7767           fi
7768
7769
7770           enablestring=
7771           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7772 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7773           no_cache=0
7774           # Check whether --enable-statbmp or --disable-statbmp was given.
7775 if test "${enable_statbmp+set}" = set; then
7776   enableval="$enable_statbmp"
7777
7778                           if test "$enableval" = yes; then
7779                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7780                           else
7781                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7782                           fi
7783
7784 else
7785
7786                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7787                           if test "x$LINE" != x ; then
7788                             eval "DEFAULT_$LINE"
7789                           else
7790                             no_cache=1
7791                           fi
7792
7793                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7794
7795 fi;
7796
7797           eval "$ac_cv_use_statbmp"
7798           if test "$no_cache" != 1; then
7799             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7800           fi
7801
7802           if test "$wxUSE_STATBMP" = yes; then
7803             echo "$as_me:$LINENO: result: yes" >&5
7804 echo "${ECHO_T}yes" >&6
7805           else
7806             echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808           fi
7809
7810
7811           enablestring=
7812           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7813 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7814           no_cache=0
7815           # Check whether --enable-statbox or --disable-statbox was given.
7816 if test "${enable_statbox+set}" = set; then
7817   enableval="$enable_statbox"
7818
7819                           if test "$enableval" = yes; then
7820                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7821                           else
7822                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7823                           fi
7824
7825 else
7826
7827                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7828                           if test "x$LINE" != x ; then
7829                             eval "DEFAULT_$LINE"
7830                           else
7831                             no_cache=1
7832                           fi
7833
7834                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7835
7836 fi;
7837
7838           eval "$ac_cv_use_statbox"
7839           if test "$no_cache" != 1; then
7840             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7841           fi
7842
7843           if test "$wxUSE_STATBOX" = yes; then
7844             echo "$as_me:$LINENO: result: yes" >&5
7845 echo "${ECHO_T}yes" >&6
7846           else
7847             echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6
7849           fi
7850
7851
7852           enablestring=
7853           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7854 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7855           no_cache=0
7856           # Check whether --enable-statline or --disable-statline was given.
7857 if test "${enable_statline+set}" = set; then
7858   enableval="$enable_statline"
7859
7860                           if test "$enableval" = yes; then
7861                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7862                           else
7863                             ac_cv_use_statline='wxUSE_STATLINE=no'
7864                           fi
7865
7866 else
7867
7868                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7869                           if test "x$LINE" != x ; then
7870                             eval "DEFAULT_$LINE"
7871                           else
7872                             no_cache=1
7873                           fi
7874
7875                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7876
7877 fi;
7878
7879           eval "$ac_cv_use_statline"
7880           if test "$no_cache" != 1; then
7881             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7882           fi
7883
7884           if test "$wxUSE_STATLINE" = yes; then
7885             echo "$as_me:$LINENO: result: yes" >&5
7886 echo "${ECHO_T}yes" >&6
7887           else
7888             echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7890           fi
7891
7892
7893           enablestring=
7894           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7895 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7896           no_cache=0
7897           # Check whether --enable-stattext or --disable-stattext was given.
7898 if test "${enable_stattext+set}" = set; then
7899   enableval="$enable_stattext"
7900
7901                           if test "$enableval" = yes; then
7902                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7903                           else
7904                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7905                           fi
7906
7907 else
7908
7909                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7910                           if test "x$LINE" != x ; then
7911                             eval "DEFAULT_$LINE"
7912                           else
7913                             no_cache=1
7914                           fi
7915
7916                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7917
7918 fi;
7919
7920           eval "$ac_cv_use_stattext"
7921           if test "$no_cache" != 1; then
7922             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7923           fi
7924
7925           if test "$wxUSE_STATTEXT" = yes; then
7926             echo "$as_me:$LINENO: result: yes" >&5
7927 echo "${ECHO_T}yes" >&6
7928           else
7929             echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7931           fi
7932
7933
7934           enablestring=
7935           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7936 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7937           no_cache=0
7938           # Check whether --enable-statusbar or --disable-statusbar was given.
7939 if test "${enable_statusbar+set}" = set; then
7940   enableval="$enable_statusbar"
7941
7942                           if test "$enableval" = yes; then
7943                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7944                           else
7945                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7946                           fi
7947
7948 else
7949
7950                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7951                           if test "x$LINE" != x ; then
7952                             eval "DEFAULT_$LINE"
7953                           else
7954                             no_cache=1
7955                           fi
7956
7957                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7958
7959 fi;
7960
7961           eval "$ac_cv_use_statusbar"
7962           if test "$no_cache" != 1; then
7963             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7964           fi
7965
7966           if test "$wxUSE_STATUSBAR" = yes; then
7967             echo "$as_me:$LINENO: result: yes" >&5
7968 echo "${ECHO_T}yes" >&6
7969           else
7970             echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6
7972           fi
7973
7974
7975           enablestring=
7976           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7977 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7978           no_cache=0
7979           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7980 if test "${enable_tabdialog+set}" = set; then
7981   enableval="$enable_tabdialog"
7982
7983                           if test "$enableval" = yes; then
7984                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7985                           else
7986                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7987                           fi
7988
7989 else
7990
7991                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7992                           if test "x$LINE" != x ; then
7993                             eval "DEFAULT_$LINE"
7994                           else
7995                             no_cache=1
7996                           fi
7997
7998                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7999
8000 fi;
8001
8002           eval "$ac_cv_use_tabdialog"
8003           if test "$no_cache" != 1; then
8004             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8005           fi
8006
8007           if test "$wxUSE_TABDIALOG" = yes; then
8008             echo "$as_me:$LINENO: result: yes" >&5
8009 echo "${ECHO_T}yes" >&6
8010           else
8011             echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6
8013           fi
8014
8015
8016           enablestring=
8017           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8018 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8019           no_cache=0
8020           # Check whether --enable-textctrl or --disable-textctrl was given.
8021 if test "${enable_textctrl+set}" = set; then
8022   enableval="$enable_textctrl"
8023
8024                           if test "$enableval" = yes; then
8025                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8026                           else
8027                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8028                           fi
8029
8030 else
8031
8032                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8033                           if test "x$LINE" != x ; then
8034                             eval "DEFAULT_$LINE"
8035                           else
8036                             no_cache=1
8037                           fi
8038
8039                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8040
8041 fi;
8042
8043           eval "$ac_cv_use_textctrl"
8044           if test "$no_cache" != 1; then
8045             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8046           fi
8047
8048           if test "$wxUSE_TEXTCTRL" = yes; then
8049             echo "$as_me:$LINENO: result: yes" >&5
8050 echo "${ECHO_T}yes" >&6
8051           else
8052             echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8054           fi
8055
8056
8057           enablestring=
8058           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8059 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8060           no_cache=0
8061           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8062 if test "${enable_togglebtn+set}" = set; then
8063   enableval="$enable_togglebtn"
8064
8065                           if test "$enableval" = yes; then
8066                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8067                           else
8068                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8069                           fi
8070
8071 else
8072
8073                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8074                           if test "x$LINE" != x ; then
8075                             eval "DEFAULT_$LINE"
8076                           else
8077                             no_cache=1
8078                           fi
8079
8080                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8081
8082 fi;
8083
8084           eval "$ac_cv_use_togglebtn"
8085           if test "$no_cache" != 1; then
8086             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8087           fi
8088
8089           if test "$wxUSE_TOGGLEBTN" = yes; then
8090             echo "$as_me:$LINENO: result: yes" >&5
8091 echo "${ECHO_T}yes" >&6
8092           else
8093             echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6
8095           fi
8096
8097
8098           enablestring=
8099           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8100 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8101           no_cache=0
8102           # Check whether --enable-toolbar or --disable-toolbar was given.
8103 if test "${enable_toolbar+set}" = set; then
8104   enableval="$enable_toolbar"
8105
8106                           if test "$enableval" = yes; then
8107                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8108                           else
8109                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8110                           fi
8111
8112 else
8113
8114                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8115                           if test "x$LINE" != x ; then
8116                             eval "DEFAULT_$LINE"
8117                           else
8118                             no_cache=1
8119                           fi
8120
8121                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8122
8123 fi;
8124
8125           eval "$ac_cv_use_toolbar"
8126           if test "$no_cache" != 1; then
8127             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8128           fi
8129
8130           if test "$wxUSE_TOOLBAR" = yes; then
8131             echo "$as_me:$LINENO: result: yes" >&5
8132 echo "${ECHO_T}yes" >&6
8133           else
8134             echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6
8136           fi
8137
8138
8139           enablestring=
8140           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8141 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8142           no_cache=0
8143           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8144 if test "${enable_tbarnative+set}" = set; then
8145   enableval="$enable_tbarnative"
8146
8147                           if test "$enableval" = yes; then
8148                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8149                           else
8150                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8151                           fi
8152
8153 else
8154
8155                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8156                           if test "x$LINE" != x ; then
8157                             eval "DEFAULT_$LINE"
8158                           else
8159                             no_cache=1
8160                           fi
8161
8162                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8163
8164 fi;
8165
8166           eval "$ac_cv_use_tbarnative"
8167           if test "$no_cache" != 1; then
8168             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8169           fi
8170
8171           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8172             echo "$as_me:$LINENO: result: yes" >&5
8173 echo "${ECHO_T}yes" >&6
8174           else
8175             echo "$as_me:$LINENO: result: no" >&5
8176 echo "${ECHO_T}no" >&6
8177           fi
8178
8179
8180           enablestring=
8181           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8182 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8183           no_cache=0
8184           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8185 if test "${enable_tbarsmpl+set}" = set; then
8186   enableval="$enable_tbarsmpl"
8187
8188                           if test "$enableval" = yes; then
8189                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8190                           else
8191                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8192                           fi
8193
8194 else
8195
8196                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8197                           if test "x$LINE" != x ; then
8198                             eval "DEFAULT_$LINE"
8199                           else
8200                             no_cache=1
8201                           fi
8202
8203                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8204
8205 fi;
8206
8207           eval "$ac_cv_use_tbarsmpl"
8208           if test "$no_cache" != 1; then
8209             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8210           fi
8211
8212           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8213             echo "$as_me:$LINENO: result: yes" >&5
8214 echo "${ECHO_T}yes" >&6
8215           else
8216             echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8218           fi
8219
8220
8221           enablestring=
8222           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8223 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8224           no_cache=0
8225           # Check whether --enable-treectrl or --disable-treectrl was given.
8226 if test "${enable_treectrl+set}" = set; then
8227   enableval="$enable_treectrl"
8228
8229                           if test "$enableval" = yes; then
8230                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8231                           else
8232                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8233                           fi
8234
8235 else
8236
8237                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8238                           if test "x$LINE" != x ; then
8239                             eval "DEFAULT_$LINE"
8240                           else
8241                             no_cache=1
8242                           fi
8243
8244                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8245
8246 fi;
8247
8248           eval "$ac_cv_use_treectrl"
8249           if test "$no_cache" != 1; then
8250             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8251           fi
8252
8253           if test "$wxUSE_TREECTRL" = yes; then
8254             echo "$as_me:$LINENO: result: yes" >&5
8255 echo "${ECHO_T}yes" >&6
8256           else
8257             echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6
8259           fi
8260
8261
8262           enablestring=
8263           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8264 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8265           no_cache=0
8266           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8267 if test "${enable_tipwindow+set}" = set; then
8268   enableval="$enable_tipwindow"
8269
8270                           if test "$enableval" = yes; then
8271                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8272                           else
8273                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8274                           fi
8275
8276 else
8277
8278                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8279                           if test "x$LINE" != x ; then
8280                             eval "DEFAULT_$LINE"
8281                           else
8282                             no_cache=1
8283                           fi
8284
8285                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8286
8287 fi;
8288
8289           eval "$ac_cv_use_tipwindow"
8290           if test "$no_cache" != 1; then
8291             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8292           fi
8293
8294           if test "$wxUSE_TIPWINDOW" = yes; then
8295             echo "$as_me:$LINENO: result: yes" >&5
8296 echo "${ECHO_T}yes" >&6
8297           else
8298             echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6
8300           fi
8301
8302
8303           enablestring=
8304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8305 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8306           no_cache=0
8307           # Check whether --enable-popupwin or --disable-popupwin was given.
8308 if test "${enable_popupwin+set}" = set; then
8309   enableval="$enable_popupwin"
8310
8311                           if test "$enableval" = yes; then
8312                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8313                           else
8314                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8315                           fi
8316
8317 else
8318
8319                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8320                           if test "x$LINE" != x ; then
8321                             eval "DEFAULT_$LINE"
8322                           else
8323                             no_cache=1
8324                           fi
8325
8326                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8327
8328 fi;
8329
8330           eval "$ac_cv_use_popupwin"
8331           if test "$no_cache" != 1; then
8332             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8333           fi
8334
8335           if test "$wxUSE_POPUPWIN" = yes; then
8336             echo "$as_me:$LINENO: result: yes" >&5
8337 echo "${ECHO_T}yes" >&6
8338           else
8339             echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6
8341           fi
8342
8343
8344
8345
8346           enablestring=
8347           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8348 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8349           no_cache=0
8350           # Check whether --enable-commondlg or --disable-commondlg was given.
8351 if test "${enable_commondlg+set}" = set; then
8352   enableval="$enable_commondlg"
8353
8354                           if test "$enableval" = yes; then
8355                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8356                           else
8357                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8358                           fi
8359
8360 else
8361
8362                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8363                           if test "x$LINE" != x ; then
8364                             eval "DEFAULT_$LINE"
8365                           else
8366                             no_cache=1
8367                           fi
8368
8369                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8370
8371 fi;
8372
8373           eval "$ac_cv_use_commondlg"
8374           if test "$no_cache" != 1; then
8375             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8376           fi
8377
8378           if test "$wxUSE_COMMONDLGS" = yes; then
8379             echo "$as_me:$LINENO: result: yes" >&5
8380 echo "${ECHO_T}yes" >&6
8381           else
8382             echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6
8384           fi
8385
8386
8387           enablestring=
8388           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8389 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8390           no_cache=0
8391           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8392 if test "${enable_choicedlg+set}" = set; then
8393   enableval="$enable_choicedlg"
8394
8395                           if test "$enableval" = yes; then
8396                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8397                           else
8398                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8399                           fi
8400
8401 else
8402
8403                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8404                           if test "x$LINE" != x ; then
8405                             eval "DEFAULT_$LINE"
8406                           else
8407                             no_cache=1
8408                           fi
8409
8410                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8411
8412 fi;
8413
8414           eval "$ac_cv_use_choicedlg"
8415           if test "$no_cache" != 1; then
8416             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8417           fi
8418
8419           if test "$wxUSE_CHOICEDLG" = yes; then
8420             echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8422           else
8423             echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6
8425           fi
8426
8427
8428           enablestring=
8429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8430 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8431           no_cache=0
8432           # Check whether --enable-coldlg or --disable-coldlg was given.
8433 if test "${enable_coldlg+set}" = set; then
8434   enableval="$enable_coldlg"
8435
8436                           if test "$enableval" = yes; then
8437                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8438                           else
8439                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8440                           fi
8441
8442 else
8443
8444                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8445                           if test "x$LINE" != x ; then
8446                             eval "DEFAULT_$LINE"
8447                           else
8448                             no_cache=1
8449                           fi
8450
8451                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8452
8453 fi;
8454
8455           eval "$ac_cv_use_coldlg"
8456           if test "$no_cache" != 1; then
8457             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8458           fi
8459
8460           if test "$wxUSE_COLOURDLG" = yes; then
8461             echo "$as_me:$LINENO: result: yes" >&5
8462 echo "${ECHO_T}yes" >&6
8463           else
8464             echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6
8466           fi
8467
8468
8469           enablestring=
8470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8471 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8472           no_cache=0
8473           # Check whether --enable-filedlg or --disable-filedlg was given.
8474 if test "${enable_filedlg+set}" = set; then
8475   enableval="$enable_filedlg"
8476
8477                           if test "$enableval" = yes; then
8478                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8479                           else
8480                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8481                           fi
8482
8483 else
8484
8485                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8486                           if test "x$LINE" != x ; then
8487                             eval "DEFAULT_$LINE"
8488                           else
8489                             no_cache=1
8490                           fi
8491
8492                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8493
8494 fi;
8495
8496           eval "$ac_cv_use_filedlg"
8497           if test "$no_cache" != 1; then
8498             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8499           fi
8500
8501           if test "$wxUSE_FILEDLG" = yes; then
8502             echo "$as_me:$LINENO: result: yes" >&5
8503 echo "${ECHO_T}yes" >&6
8504           else
8505             echo "$as_me:$LINENO: result: no" >&5
8506 echo "${ECHO_T}no" >&6
8507           fi
8508
8509
8510           enablestring=
8511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8512 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8513           no_cache=0
8514           # Check whether --enable-finddlg or --disable-finddlg was given.
8515 if test "${enable_finddlg+set}" = set; then
8516   enableval="$enable_finddlg"
8517
8518                           if test "$enableval" = yes; then
8519                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8520                           else
8521                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8522                           fi
8523
8524 else
8525
8526                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8527                           if test "x$LINE" != x ; then
8528                             eval "DEFAULT_$LINE"
8529                           else
8530                             no_cache=1
8531                           fi
8532
8533                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8534
8535 fi;
8536
8537           eval "$ac_cv_use_finddlg"
8538           if test "$no_cache" != 1; then
8539             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8540           fi
8541
8542           if test "$wxUSE_FINDREPLDLG" = yes; then
8543             echo "$as_me:$LINENO: result: yes" >&5
8544 echo "${ECHO_T}yes" >&6
8545           else
8546             echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6
8548           fi
8549
8550
8551           enablestring=
8552           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8553 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8554           no_cache=0
8555           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8556 if test "${enable_fontdlg+set}" = set; then
8557   enableval="$enable_fontdlg"
8558
8559                           if test "$enableval" = yes; then
8560                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8561                           else
8562                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8563                           fi
8564
8565 else
8566
8567                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8568                           if test "x$LINE" != x ; then
8569                             eval "DEFAULT_$LINE"
8570                           else
8571                             no_cache=1
8572                           fi
8573
8574                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8575
8576 fi;
8577
8578           eval "$ac_cv_use_fontdlg"
8579           if test "$no_cache" != 1; then
8580             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8581           fi
8582
8583           if test "$wxUSE_FONTDLG" = yes; then
8584             echo "$as_me:$LINENO: result: yes" >&5
8585 echo "${ECHO_T}yes" >&6
8586           else
8587             echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6
8589           fi
8590
8591
8592           enablestring=
8593           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8594 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8595           no_cache=0
8596           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8597 if test "${enable_dirdlg+set}" = set; then
8598   enableval="$enable_dirdlg"
8599
8600                           if test "$enableval" = yes; then
8601                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8602                           else
8603                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8604                           fi
8605
8606 else
8607
8608                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8609                           if test "x$LINE" != x ; then
8610                             eval "DEFAULT_$LINE"
8611                           else
8612                             no_cache=1
8613                           fi
8614
8615                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8616
8617 fi;
8618
8619           eval "$ac_cv_use_dirdlg"
8620           if test "$no_cache" != 1; then
8621             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8622           fi
8623
8624           if test "$wxUSE_DIRDLG" = yes; then
8625             echo "$as_me:$LINENO: result: yes" >&5
8626 echo "${ECHO_T}yes" >&6
8627           else
8628             echo "$as_me:$LINENO: result: no" >&5
8629 echo "${ECHO_T}no" >&6
8630           fi
8631
8632
8633           enablestring=
8634           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8635 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8636           no_cache=0
8637           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8638 if test "${enable_msgdlg+set}" = set; then
8639   enableval="$enable_msgdlg"
8640
8641                           if test "$enableval" = yes; then
8642                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8643                           else
8644                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8645                           fi
8646
8647 else
8648
8649                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8650                           if test "x$LINE" != x ; then
8651                             eval "DEFAULT_$LINE"
8652                           else
8653                             no_cache=1
8654                           fi
8655
8656                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8657
8658 fi;
8659
8660           eval "$ac_cv_use_msgdlg"
8661           if test "$no_cache" != 1; then
8662             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8663           fi
8664
8665           if test "$wxUSE_MSGDLG" = yes; then
8666             echo "$as_me:$LINENO: result: yes" >&5
8667 echo "${ECHO_T}yes" >&6
8668           else
8669             echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6
8671           fi
8672
8673
8674           enablestring=
8675           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8676 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8677           no_cache=0
8678           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8679 if test "${enable_numberdlg+set}" = set; then
8680   enableval="$enable_numberdlg"
8681
8682                           if test "$enableval" = yes; then
8683                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8684                           else
8685                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8686                           fi
8687
8688 else
8689
8690                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8691                           if test "x$LINE" != x ; then
8692                             eval "DEFAULT_$LINE"
8693                           else
8694                             no_cache=1
8695                           fi
8696
8697                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8698
8699 fi;
8700
8701           eval "$ac_cv_use_numberdlg"
8702           if test "$no_cache" != 1; then
8703             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8704           fi
8705
8706           if test "$wxUSE_NUMBERDLG" = yes; then
8707             echo "$as_me:$LINENO: result: yes" >&5
8708 echo "${ECHO_T}yes" >&6
8709           else
8710             echo "$as_me:$LINENO: result: no" >&5
8711 echo "${ECHO_T}no" >&6
8712           fi
8713
8714
8715           enablestring=
8716           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8717 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8718           no_cache=0
8719           # Check whether --enable-splash or --disable-splash was given.
8720 if test "${enable_splash+set}" = set; then
8721   enableval="$enable_splash"
8722
8723                           if test "$enableval" = yes; then
8724                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8725                           else
8726                             ac_cv_use_splash='wxUSE_SPLASH=no'
8727                           fi
8728
8729 else
8730
8731                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8732                           if test "x$LINE" != x ; then
8733                             eval "DEFAULT_$LINE"
8734                           else
8735                             no_cache=1
8736                           fi
8737
8738                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8739
8740 fi;
8741
8742           eval "$ac_cv_use_splash"
8743           if test "$no_cache" != 1; then
8744             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8745           fi
8746
8747           if test "$wxUSE_SPLASH" = yes; then
8748             echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6
8750           else
8751             echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6
8753           fi
8754
8755
8756           enablestring=
8757           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8758 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8759           no_cache=0
8760           # Check whether --enable-textdlg or --disable-textdlg was given.
8761 if test "${enable_textdlg+set}" = set; then
8762   enableval="$enable_textdlg"
8763
8764                           if test "$enableval" = yes; then
8765                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8766                           else
8767                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8768                           fi
8769
8770 else
8771
8772                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8773                           if test "x$LINE" != x ; then
8774                             eval "DEFAULT_$LINE"
8775                           else
8776                             no_cache=1
8777                           fi
8778
8779                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8780
8781 fi;
8782
8783           eval "$ac_cv_use_textdlg"
8784           if test "$no_cache" != 1; then
8785             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8786           fi
8787
8788           if test "$wxUSE_TEXTDLG" = yes; then
8789             echo "$as_me:$LINENO: result: yes" >&5
8790 echo "${ECHO_T}yes" >&6
8791           else
8792             echo "$as_me:$LINENO: result: no" >&5
8793 echo "${ECHO_T}no" >&6
8794           fi
8795
8796
8797           enablestring=
8798           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8799 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8800           no_cache=0
8801           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8802 if test "${enable_tipdlg+set}" = set; then
8803   enableval="$enable_tipdlg"
8804
8805                           if test "$enableval" = yes; then
8806                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8807                           else
8808                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8809                           fi
8810
8811 else
8812
8813                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8814                           if test "x$LINE" != x ; then
8815                             eval "DEFAULT_$LINE"
8816                           else
8817                             no_cache=1
8818                           fi
8819
8820                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8821
8822 fi;
8823
8824           eval "$ac_cv_use_tipdlg"
8825           if test "$no_cache" != 1; then
8826             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8827           fi
8828
8829           if test "$wxUSE_STARTUP_TIPS" = yes; then
8830             echo "$as_me:$LINENO: result: yes" >&5
8831 echo "${ECHO_T}yes" >&6
8832           else
8833             echo "$as_me:$LINENO: result: no" >&5
8834 echo "${ECHO_T}no" >&6
8835           fi
8836
8837
8838           enablestring=
8839           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8840 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8841           no_cache=0
8842           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8843 if test "${enable_progressdlg+set}" = set; then
8844   enableval="$enable_progressdlg"
8845
8846                           if test "$enableval" = yes; then
8847                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8848                           else
8849                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8850                           fi
8851
8852 else
8853
8854                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8855                           if test "x$LINE" != x ; then
8856                             eval "DEFAULT_$LINE"
8857                           else
8858                             no_cache=1
8859                           fi
8860
8861                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8862
8863 fi;
8864
8865           eval "$ac_cv_use_progressdlg"
8866           if test "$no_cache" != 1; then
8867             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8868           fi
8869
8870           if test "$wxUSE_PROGRESSDLG" = yes; then
8871             echo "$as_me:$LINENO: result: yes" >&5
8872 echo "${ECHO_T}yes" >&6
8873           else
8874             echo "$as_me:$LINENO: result: no" >&5
8875 echo "${ECHO_T}no" >&6
8876           fi
8877
8878
8879           enablestring=
8880           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8881 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8882           no_cache=0
8883           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8884 if test "${enable_wizarddlg+set}" = set; then
8885   enableval="$enable_wizarddlg"
8886
8887                           if test "$enableval" = yes; then
8888                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8889                           else
8890                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8891                           fi
8892
8893 else
8894
8895                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8896                           if test "x$LINE" != x ; then
8897                             eval "DEFAULT_$LINE"
8898                           else
8899                             no_cache=1
8900                           fi
8901
8902                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8903
8904 fi;
8905
8906           eval "$ac_cv_use_wizarddlg"
8907           if test "$no_cache" != 1; then
8908             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8909           fi
8910
8911           if test "$wxUSE_WIZARDDLG" = yes; then
8912             echo "$as_me:$LINENO: result: yes" >&5
8913 echo "${ECHO_T}yes" >&6
8914           else
8915             echo "$as_me:$LINENO: result: no" >&5
8916 echo "${ECHO_T}no" >&6
8917           fi
8918
8919
8920
8921
8922           enablestring=
8923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8924 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8925           no_cache=0
8926           # Check whether --enable-menus or --disable-menus was given.
8927 if test "${enable_menus+set}" = set; then
8928   enableval="$enable_menus"
8929
8930                           if test "$enableval" = yes; then
8931                             ac_cv_use_menus='wxUSE_MENUS=yes'
8932                           else
8933                             ac_cv_use_menus='wxUSE_MENUS=no'
8934                           fi
8935
8936 else
8937
8938                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8939                           if test "x$LINE" != x ; then
8940                             eval "DEFAULT_$LINE"
8941                           else
8942                             no_cache=1
8943                           fi
8944
8945                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8946
8947 fi;
8948
8949           eval "$ac_cv_use_menus"
8950           if test "$no_cache" != 1; then
8951             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8952           fi
8953
8954           if test "$wxUSE_MENUS" = yes; then
8955             echo "$as_me:$LINENO: result: yes" >&5
8956 echo "${ECHO_T}yes" >&6
8957           else
8958             echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6
8960           fi
8961
8962
8963           enablestring=
8964           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8965 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8966           no_cache=0
8967           # Check whether --enable-miniframe or --disable-miniframe was given.
8968 if test "${enable_miniframe+set}" = set; then
8969   enableval="$enable_miniframe"
8970
8971                           if test "$enableval" = yes; then
8972                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8973                           else
8974                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8975                           fi
8976
8977 else
8978
8979                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8980                           if test "x$LINE" != x ; then
8981                             eval "DEFAULT_$LINE"
8982                           else
8983                             no_cache=1
8984                           fi
8985
8986                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8987
8988 fi;
8989
8990           eval "$ac_cv_use_miniframe"
8991           if test "$no_cache" != 1; then
8992             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8993           fi
8994
8995           if test "$wxUSE_MINIFRAME" = yes; then
8996             echo "$as_me:$LINENO: result: yes" >&5
8997 echo "${ECHO_T}yes" >&6
8998           else
8999             echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9001           fi
9002
9003
9004           enablestring=
9005           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9006 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9007           no_cache=0
9008           # Check whether --enable-tooltips or --disable-tooltips was given.
9009 if test "${enable_tooltips+set}" = set; then
9010   enableval="$enable_tooltips"
9011
9012                           if test "$enableval" = yes; then
9013                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9014                           else
9015                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9016                           fi
9017
9018 else
9019
9020                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9021                           if test "x$LINE" != x ; then
9022                             eval "DEFAULT_$LINE"
9023                           else
9024                             no_cache=1
9025                           fi
9026
9027                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9028
9029 fi;
9030
9031           eval "$ac_cv_use_tooltips"
9032           if test "$no_cache" != 1; then
9033             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9034           fi
9035
9036           if test "$wxUSE_TOOLTIPS" = yes; then
9037             echo "$as_me:$LINENO: result: yes" >&5
9038 echo "${ECHO_T}yes" >&6
9039           else
9040             echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6
9042           fi
9043
9044
9045           enablestring=
9046           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9047 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9048           no_cache=0
9049           # Check whether --enable-splines or --disable-splines was given.
9050 if test "${enable_splines+set}" = set; then
9051   enableval="$enable_splines"
9052
9053                           if test "$enableval" = yes; then
9054                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9055                           else
9056                             ac_cv_use_splines='wxUSE_SPLINES=no'
9057                           fi
9058
9059 else
9060
9061                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9062                           if test "x$LINE" != x ; then
9063                             eval "DEFAULT_$LINE"
9064                           else
9065                             no_cache=1
9066                           fi
9067
9068                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9069
9070 fi;
9071
9072           eval "$ac_cv_use_splines"
9073           if test "$no_cache" != 1; then
9074             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9075           fi
9076
9077           if test "$wxUSE_SPLINES" = yes; then
9078             echo "$as_me:$LINENO: result: yes" >&5
9079 echo "${ECHO_T}yes" >&6
9080           else
9081             echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6
9083           fi
9084
9085
9086           enablestring=
9087           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9088 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9089           no_cache=0
9090           # Check whether --enable-validators or --disable-validators was given.
9091 if test "${enable_validators+set}" = set; then
9092   enableval="$enable_validators"
9093
9094                           if test "$enableval" = yes; then
9095                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9096                           else
9097                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9098                           fi
9099
9100 else
9101
9102                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9103                           if test "x$LINE" != x ; then
9104                             eval "DEFAULT_$LINE"
9105                           else
9106                             no_cache=1
9107                           fi
9108
9109                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9110
9111 fi;
9112
9113           eval "$ac_cv_use_validators"
9114           if test "$no_cache" != 1; then
9115             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9116           fi
9117
9118           if test "$wxUSE_VALIDATORS" = yes; then
9119             echo "$as_me:$LINENO: result: yes" >&5
9120 echo "${ECHO_T}yes" >&6
9121           else
9122             echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6
9124           fi
9125
9126
9127           enablestring=
9128           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9129 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9130           no_cache=0
9131           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9132 if test "${enable_busyinfo+set}" = set; then
9133   enableval="$enable_busyinfo"
9134
9135                           if test "$enableval" = yes; then
9136                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9137                           else
9138                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9139                           fi
9140
9141 else
9142
9143                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9144                           if test "x$LINE" != x ; then
9145                             eval "DEFAULT_$LINE"
9146                           else
9147                             no_cache=1
9148                           fi
9149
9150                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9151
9152 fi;
9153
9154           eval "$ac_cv_use_busyinfo"
9155           if test "$no_cache" != 1; then
9156             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9157           fi
9158
9159           if test "$wxUSE_BUSYINFO" = yes; then
9160             echo "$as_me:$LINENO: result: yes" >&5
9161 echo "${ECHO_T}yes" >&6
9162           else
9163             echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9165           fi
9166
9167
9168           enablestring=
9169           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9170 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9171           no_cache=0
9172           # Check whether --enable-joystick or --disable-joystick was given.
9173 if test "${enable_joystick+set}" = set; then
9174   enableval="$enable_joystick"
9175
9176                           if test "$enableval" = yes; then
9177                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9178                           else
9179                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9180                           fi
9181
9182 else
9183
9184                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9185                           if test "x$LINE" != x ; then
9186                             eval "DEFAULT_$LINE"
9187                           else
9188                             no_cache=1
9189                           fi
9190
9191                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9192
9193 fi;
9194
9195           eval "$ac_cv_use_joystick"
9196           if test "$no_cache" != 1; then
9197             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9198           fi
9199
9200           if test "$wxUSE_JOYSTICK" = yes; then
9201             echo "$as_me:$LINENO: result: yes" >&5
9202 echo "${ECHO_T}yes" >&6
9203           else
9204             echo "$as_me:$LINENO: result: no" >&5
9205 echo "${ECHO_T}no" >&6
9206           fi
9207
9208
9209           enablestring=
9210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9211 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9212           no_cache=0
9213           # Check whether --enable-metafile or --disable-metafile was given.
9214 if test "${enable_metafile+set}" = set; then
9215   enableval="$enable_metafile"
9216
9217                           if test "$enableval" = yes; then
9218                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9219                           else
9220                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9221                           fi
9222
9223 else
9224
9225                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9226                           if test "x$LINE" != x ; then
9227                             eval "DEFAULT_$LINE"
9228                           else
9229                             no_cache=1
9230                           fi
9231
9232                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9233
9234 fi;
9235
9236           eval "$ac_cv_use_metafile"
9237           if test "$no_cache" != 1; then
9238             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9239           fi
9240
9241           if test "$wxUSE_METAFILE" = yes; then
9242             echo "$as_me:$LINENO: result: yes" >&5
9243 echo "${ECHO_T}yes" >&6
9244           else
9245             echo "$as_me:$LINENO: result: no" >&5
9246 echo "${ECHO_T}no" >&6
9247           fi
9248
9249
9250           enablestring=
9251           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9252 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9253           no_cache=0
9254           # Check whether --enable-dragimage or --disable-dragimage was given.
9255 if test "${enable_dragimage+set}" = set; then
9256   enableval="$enable_dragimage"
9257
9258                           if test "$enableval" = yes; then
9259                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9260                           else
9261                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9262                           fi
9263
9264 else
9265
9266                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9267                           if test "x$LINE" != x ; then
9268                             eval "DEFAULT_$LINE"
9269                           else
9270                             no_cache=1
9271                           fi
9272
9273                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9274
9275 fi;
9276
9277           eval "$ac_cv_use_dragimage"
9278           if test "$no_cache" != 1; then
9279             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9280           fi
9281
9282           if test "$wxUSE_DRAGIMAGE" = yes; then
9283             echo "$as_me:$LINENO: result: yes" >&5
9284 echo "${ECHO_T}yes" >&6
9285           else
9286             echo "$as_me:$LINENO: result: no" >&5
9287 echo "${ECHO_T}no" >&6
9288           fi
9289
9290
9291           enablestring=
9292           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9293 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9294           no_cache=0
9295           # Check whether --enable-accessibility or --disable-accessibility was given.
9296 if test "${enable_accessibility+set}" = set; then
9297   enableval="$enable_accessibility"
9298
9299                           if test "$enableval" = yes; then
9300                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9301                           else
9302                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9303                           fi
9304
9305 else
9306
9307                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9308                           if test "x$LINE" != x ; then
9309                             eval "DEFAULT_$LINE"
9310                           else
9311                             no_cache=1
9312                           fi
9313
9314                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9315
9316 fi;
9317
9318           eval "$ac_cv_use_accessibility"
9319           if test "$no_cache" != 1; then
9320             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9321           fi
9322
9323           if test "$wxUSE_ACCESSIBILITY" = yes; then
9324             echo "$as_me:$LINENO: result: yes" >&5
9325 echo "${ECHO_T}yes" >&6
9326           else
9327             echo "$as_me:$LINENO: result: no" >&5
9328 echo "${ECHO_T}no" >&6
9329           fi
9330
9331
9332
9333
9334           enablestring=
9335           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9336 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9337           no_cache=0
9338           # Check whether --enable-palette or --disable-palette was given.
9339 if test "${enable_palette+set}" = set; then
9340   enableval="$enable_palette"
9341
9342                           if test "$enableval" = yes; then
9343                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9344                           else
9345                             ac_cv_use_palette='wxUSE_PALETTE=no'
9346                           fi
9347
9348 else
9349
9350                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9351                           if test "x$LINE" != x ; then
9352                             eval "DEFAULT_$LINE"
9353                           else
9354                             no_cache=1
9355                           fi
9356
9357                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9358
9359 fi;
9360
9361           eval "$ac_cv_use_palette"
9362           if test "$no_cache" != 1; then
9363             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9364           fi
9365
9366           if test "$wxUSE_PALETTE" = yes; then
9367             echo "$as_me:$LINENO: result: yes" >&5
9368 echo "${ECHO_T}yes" >&6
9369           else
9370             echo "$as_me:$LINENO: result: no" >&5
9371 echo "${ECHO_T}no" >&6
9372           fi
9373
9374
9375           enablestring=
9376           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9377 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9378           no_cache=0
9379           # Check whether --enable-image or --disable-image was given.
9380 if test "${enable_image+set}" = set; then
9381   enableval="$enable_image"
9382
9383                           if test "$enableval" = yes; then
9384                             ac_cv_use_image='wxUSE_IMAGE=yes'
9385                           else
9386                             ac_cv_use_image='wxUSE_IMAGE=no'
9387                           fi
9388
9389 else
9390
9391                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9392                           if test "x$LINE" != x ; then
9393                             eval "DEFAULT_$LINE"
9394                           else
9395                             no_cache=1
9396                           fi
9397
9398                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9399
9400 fi;
9401
9402           eval "$ac_cv_use_image"
9403           if test "$no_cache" != 1; then
9404             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9405           fi
9406
9407           if test "$wxUSE_IMAGE" = yes; then
9408             echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9410           else
9411             echo "$as_me:$LINENO: result: no" >&5
9412 echo "${ECHO_T}no" >&6
9413           fi
9414
9415
9416           enablestring=
9417           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9418 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9419           no_cache=0
9420           # Check whether --enable-gif or --disable-gif was given.
9421 if test "${enable_gif+set}" = set; then
9422   enableval="$enable_gif"
9423
9424                           if test "$enableval" = yes; then
9425                             ac_cv_use_gif='wxUSE_GIF=yes'
9426                           else
9427                             ac_cv_use_gif='wxUSE_GIF=no'
9428                           fi
9429
9430 else
9431
9432                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9433                           if test "x$LINE" != x ; then
9434                             eval "DEFAULT_$LINE"
9435                           else
9436                             no_cache=1
9437                           fi
9438
9439                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9440
9441 fi;
9442
9443           eval "$ac_cv_use_gif"
9444           if test "$no_cache" != 1; then
9445             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9446           fi
9447
9448           if test "$wxUSE_GIF" = yes; then
9449             echo "$as_me:$LINENO: result: yes" >&5
9450 echo "${ECHO_T}yes" >&6
9451           else
9452             echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6
9454           fi
9455
9456
9457           enablestring=
9458           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9459 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9460           no_cache=0
9461           # Check whether --enable-pcx or --disable-pcx was given.
9462 if test "${enable_pcx+set}" = set; then
9463   enableval="$enable_pcx"
9464
9465                           if test "$enableval" = yes; then
9466                             ac_cv_use_pcx='wxUSE_PCX=yes'
9467                           else
9468                             ac_cv_use_pcx='wxUSE_PCX=no'
9469                           fi
9470
9471 else
9472
9473                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9474                           if test "x$LINE" != x ; then
9475                             eval "DEFAULT_$LINE"
9476                           else
9477                             no_cache=1
9478                           fi
9479
9480                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9481
9482 fi;
9483
9484           eval "$ac_cv_use_pcx"
9485           if test "$no_cache" != 1; then
9486             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9487           fi
9488
9489           if test "$wxUSE_PCX" = yes; then
9490             echo "$as_me:$LINENO: result: yes" >&5
9491 echo "${ECHO_T}yes" >&6
9492           else
9493             echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6
9495           fi
9496
9497
9498           enablestring=
9499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9500 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9501           no_cache=0
9502           # Check whether --enable-iff or --disable-iff was given.
9503 if test "${enable_iff+set}" = set; then
9504   enableval="$enable_iff"
9505
9506                           if test "$enableval" = yes; then
9507                             ac_cv_use_iff='wxUSE_IFF=yes'
9508                           else
9509                             ac_cv_use_iff='wxUSE_IFF=no'
9510                           fi
9511
9512 else
9513
9514                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9515                           if test "x$LINE" != x ; then
9516                             eval "DEFAULT_$LINE"
9517                           else
9518                             no_cache=1
9519                           fi
9520
9521                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9522
9523 fi;
9524
9525           eval "$ac_cv_use_iff"
9526           if test "$no_cache" != 1; then
9527             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9528           fi
9529
9530           if test "$wxUSE_IFF" = yes; then
9531             echo "$as_me:$LINENO: result: yes" >&5
9532 echo "${ECHO_T}yes" >&6
9533           else
9534             echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6
9536           fi
9537
9538
9539           enablestring=
9540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9541 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9542           no_cache=0
9543           # Check whether --enable-pnm or --disable-pnm was given.
9544 if test "${enable_pnm+set}" = set; then
9545   enableval="$enable_pnm"
9546
9547                           if test "$enableval" = yes; then
9548                             ac_cv_use_pnm='wxUSE_PNM=yes'
9549                           else
9550                             ac_cv_use_pnm='wxUSE_PNM=no'
9551                           fi
9552
9553 else
9554
9555                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9556                           if test "x$LINE" != x ; then
9557                             eval "DEFAULT_$LINE"
9558                           else
9559                             no_cache=1
9560                           fi
9561
9562                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9563
9564 fi;
9565
9566           eval "$ac_cv_use_pnm"
9567           if test "$no_cache" != 1; then
9568             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9569           fi
9570
9571           if test "$wxUSE_PNM" = yes; then
9572             echo "$as_me:$LINENO: result: yes" >&5
9573 echo "${ECHO_T}yes" >&6
9574           else
9575             echo "$as_me:$LINENO: result: no" >&5
9576 echo "${ECHO_T}no" >&6
9577           fi
9578
9579
9580           enablestring=
9581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9582 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9583           no_cache=0
9584           # Check whether --enable-xpm or --disable-xpm was given.
9585 if test "${enable_xpm+set}" = set; then
9586   enableval="$enable_xpm"
9587
9588                           if test "$enableval" = yes; then
9589                             ac_cv_use_xpm='wxUSE_XPM=yes'
9590                           else
9591                             ac_cv_use_xpm='wxUSE_XPM=no'
9592                           fi
9593
9594 else
9595
9596                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9597                           if test "x$LINE" != x ; then
9598                             eval "DEFAULT_$LINE"
9599                           else
9600                             no_cache=1
9601                           fi
9602
9603                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9604
9605 fi;
9606
9607           eval "$ac_cv_use_xpm"
9608           if test "$no_cache" != 1; then
9609             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9610           fi
9611
9612           if test "$wxUSE_XPM" = yes; then
9613             echo "$as_me:$LINENO: result: yes" >&5
9614 echo "${ECHO_T}yes" >&6
9615           else
9616             echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9618           fi
9619
9620
9621           enablestring=
9622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9623 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9624           no_cache=0
9625           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9626 if test "${enable_ico_cur+set}" = set; then
9627   enableval="$enable_ico_cur"
9628
9629                           if test "$enableval" = yes; then
9630                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9631                           else
9632                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9633                           fi
9634
9635 else
9636
9637                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9638                           if test "x$LINE" != x ; then
9639                             eval "DEFAULT_$LINE"
9640                           else
9641                             no_cache=1
9642                           fi
9643
9644                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9645
9646 fi;
9647
9648           eval "$ac_cv_use_ico_cur"
9649           if test "$no_cache" != 1; then
9650             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9651           fi
9652
9653           if test "$wxUSE_ICO_CUR" = yes; then
9654             echo "$as_me:$LINENO: result: yes" >&5
9655 echo "${ECHO_T}yes" >&6
9656           else
9657             echo "$as_me:$LINENO: result: no" >&5
9658 echo "${ECHO_T}no" >&6
9659           fi
9660
9661
9662 fi
9663
9664
9665
9666           enablestring=
9667           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9668 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9669           no_cache=0
9670           # Check whether --enable-official_build or --disable-official_build was given.
9671 if test "${enable_official_build+set}" = set; then
9672   enableval="$enable_official_build"
9673
9674                           if test "$enableval" = yes; then
9675                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9676                           else
9677                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9678                           fi
9679
9680 else
9681
9682                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9683                           if test "x$LINE" != x ; then
9684                             eval "DEFAULT_$LINE"
9685                           else
9686                             no_cache=1
9687                           fi
9688
9689                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9690
9691 fi;
9692
9693           eval "$ac_cv_use_official_build"
9694           if test "$no_cache" != 1; then
9695             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9696           fi
9697
9698           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9699             echo "$as_me:$LINENO: result: yes" >&5
9700 echo "${ECHO_T}yes" >&6
9701           else
9702             echo "$as_me:$LINENO: result: no" >&5
9703 echo "${ECHO_T}no" >&6
9704           fi
9705
9706 # Check whether --enable-vendor or --disable-vendor was given.
9707 if test "${enable_vendor+set}" = set; then
9708   enableval="$enable_vendor"
9709   VENDOR="$enableval"
9710 fi;
9711 if test "x$VENDOR" = "x"; then
9712     VENDOR="custom"
9713 fi
9714
9715 case "${host}" in
9716   *-pc-os2_emx | *-pc-os2-emx )
9717     PATH_IFS=';'
9718   ;;
9719   *)
9720     PATH_IFS=':'
9721   ;;
9722 esac
9723
9724
9725
9726           echo "saving argument cache $wx_arg_cache_file"
9727           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9728
9729
9730
9731 echo "$as_me:$LINENO: checking for toolkit" >&5
9732 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9733
9734 # In Wine, we need to default to MSW, not GTK or MOTIF
9735 if test "$wxUSE_WINE" = "yes"; then
9736     DEFAULT_DEFAULT_wxUSE_GTK=0
9737     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9738     DEFAULT_DEFAULT_wxUSE_MSW=1
9739 fi
9740
9741 if test "$wxUSE_GUI" = "yes"; then
9742
9743     if test "$USE_BEOS" = 1; then
9744         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9745 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9746    { (exit 1); exit 1; }; }
9747     fi
9748
9749     if test "$TOOLKIT_GIVEN" = 1; then
9750             for toolkit in `echo $ALL_TOOLKITS`; do
9751         var=wxUSE_$toolkit
9752         eval "value=\$${var}"
9753         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9754       done
9755     else
9756             for toolkit in `echo $ALL_TOOLKITS`; do
9757         if test "$has_toolkit_in_cache" != 1; then
9758           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9759         else
9760           var=DEFAULT_wxUSE_$toolkit
9761         fi
9762         eval "wxUSE_$toolkit=\$${var}"
9763       done
9764     fi
9765
9766             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9767                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9768                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9769
9770         case "${host}" in
9771       *-pc-os2_emx | *-pc-os2-emx )
9772         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9773     esac
9774
9775     case "$NUM_TOOLKITS" in
9776       1)
9777       ;;
9778       0)
9779         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9780 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9781    { (exit 1); exit 1; }; }
9782       ;;
9783       *)
9784         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9785 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9786    { (exit 1); exit 1; }; }
9787     esac
9788
9789         for toolkit in `echo $ALL_TOOLKITS`; do
9790       var=wxUSE_$toolkit
9791       eval "value=\$${var}"
9792       if test "x$value" != x; then
9793         cache_var=CACHE_$toolkit
9794         eval "cache=\$${cache_var}"
9795         if test "$cache" = 1; then
9796           echo "$var=$value" >> ${wx_arg_cache_file}
9797         fi
9798         if test "$value" = 1; then
9799           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9800           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9801 echo "${ECHO_T}$toolkit_echo" >&6
9802         fi
9803       fi
9804     done
9805 else
9806     if test "x$host_alias" != "x"; then
9807         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9808 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9809     else
9810         echo "$as_me:$LINENO: result: base only" >&5
9811 echo "${ECHO_T}base only" >&6
9812     fi
9813 fi
9814
9815 wants_win32=0
9816 doesnt_want_win32=0
9817 case "${host}" in
9818   *-*-cygwin*)
9819       if test "$wxUSE_MSW" = 1 ; then
9820         wants_win32=1
9821       else
9822         doesnt_want_win32=1
9823       fi
9824   ;;
9825   *-*-mingw*)
9826       wants_win32=1
9827   ;;
9828 esac
9829
9830 if test "$wxUSE_WINE" = "yes"; then
9831     wants_win32=1
9832         CC=winegcc
9833     CXX=wineg++
9834     RESCOMP=wrc
9835 fi
9836
9837 if test "$wants_win32" = 1 ; then
9838     USE_UNIX=0
9839     USE_WIN32=1
9840     cat >>confdefs.h <<\_ACEOF
9841 #define __WIN32__ 1
9842 _ACEOF
9843
9844     cat >>confdefs.h <<\_ACEOF
9845 #define __WIN95__ 1
9846 _ACEOF
9847
9848     cat >>confdefs.h <<\_ACEOF
9849 #define __WINDOWS__ 1
9850 _ACEOF
9851
9852     cat >>confdefs.h <<\_ACEOF
9853 #define __GNUWIN32__ 1
9854 _ACEOF
9855
9856     cat >>confdefs.h <<\_ACEOF
9857 #define STRICT 1
9858 _ACEOF
9859
9860     cat >>confdefs.h <<\_ACEOF
9861 #define WINVER 0x0400
9862 _ACEOF
9863
9864 fi
9865 if test "$doesnt_want_win32" = 1 ; then
9866     USE_UNIX=1
9867     USE_WIN32=0
9868 fi
9869
9870 if test "$USE_UNIX" = 1 ; then
9871     wxUSE_UNIX=yes
9872     cat >>confdefs.h <<\_ACEOF
9873 #define __UNIX__ 1
9874 _ACEOF
9875
9876 fi
9877
9878
9879 cat >confcache <<\_ACEOF
9880 # This file is a shell script that caches the results of configure
9881 # tests run on this system so they can be shared between configure
9882 # scripts and configure runs, see configure's option --config-cache.
9883 # It is not useful on other systems.  If it contains results you don't
9884 # want to keep, you may remove or edit it.
9885 #
9886 # config.status only pays attention to the cache file if you give it
9887 # the --recheck option to rerun configure.
9888 #
9889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9891 # following values.
9892
9893 _ACEOF
9894
9895 # The following way of writing the cache mishandles newlines in values,
9896 # but we know of no workaround that is simple, portable, and efficient.
9897 # So, don't put newlines in cache variables' values.
9898 # Ultrix sh set writes to stderr and can't be redirected directly,
9899 # and sets the high bit in the cache file unless we assign to the vars.
9900 {
9901   (set) 2>&1 |
9902     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9903     *ac_space=\ *)
9904       # `set' does not quote correctly, so add quotes (double-quote
9905       # substitution turns \\\\ into \\, and sed turns \\ into \).
9906       sed -n \
9907         "s/'/'\\\\''/g;
9908           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9909       ;;
9910     *)
9911       # `set' quotes correctly as required by POSIX, so do not add quotes.
9912       sed -n \
9913         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9914       ;;
9915     esac;
9916 } |
9917   sed '
9918      t clear
9919      : clear
9920      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9921      t end
9922      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9923      : end' >>confcache
9924 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9925   if test -w $cache_file; then
9926     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9927     cat confcache >$cache_file
9928   else
9929     echo "not updating unwritable cache $cache_file"
9930   fi
9931 fi
9932 rm -f confcache
9933
9934 if test "$build" != "$host" ; then
9935     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9936         CC=$host_alias-gcc
9937         CXX=$host_alias-c++
9938         AR=$host_alias-ar
9939         RANLIB=$host_alias-ranlib
9940         DLLTOOL=$host_alias-dlltool
9941         RESCOMP=$host_alias-windres
9942         LD=$host_alias-ld
9943         NM=$host_alias-nm
9944         STRIP=$host_alias-strip
9945     else
9946         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9947 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9948    { (exit 1); exit 1; }; }
9949     fi
9950 fi
9951
9952 CFLAGS=${CFLAGS:=}
9953 ac_ext=c
9954 ac_cpp='$CPP $CPPFLAGS'
9955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9958 if test -n "$ac_tool_prefix"; then
9959   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9960 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9961 echo "$as_me:$LINENO: checking for $ac_word" >&5
9962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9963 if test "${ac_cv_prog_CC+set}" = set; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   if test -n "$CC"; then
9967   ac_cv_prog_CC="$CC" # Let the user override the test.
9968 else
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9971 do
9972   IFS=$as_save_IFS
9973   test -z "$as_dir" && as_dir=.
9974   for ac_exec_ext in '' $ac_executable_extensions; do
9975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9978     break 2
9979   fi
9980 done
9981 done
9982
9983 fi
9984 fi
9985 CC=$ac_cv_prog_CC
9986 if test -n "$CC"; then
9987   echo "$as_me:$LINENO: result: $CC" >&5
9988 echo "${ECHO_T}$CC" >&6
9989 else
9990   echo "$as_me:$LINENO: result: no" >&5
9991 echo "${ECHO_T}no" >&6
9992 fi
9993
9994 fi
9995 if test -z "$ac_cv_prog_CC"; then
9996   ac_ct_CC=$CC
9997   # Extract the first word of "gcc", so it can be a program name with args.
9998 set dummy gcc; ac_word=$2
9999 echo "$as_me:$LINENO: checking for $ac_word" >&5
10000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10002   echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004   if test -n "$ac_ct_CC"; then
10005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10006 else
10007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008 for as_dir in $PATH
10009 do
10010   IFS=$as_save_IFS
10011   test -z "$as_dir" && as_dir=.
10012   for ac_exec_ext in '' $ac_executable_extensions; do
10013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014     ac_cv_prog_ac_ct_CC="gcc"
10015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10016     break 2
10017   fi
10018 done
10019 done
10020
10021 fi
10022 fi
10023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10024 if test -n "$ac_ct_CC"; then
10025   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10026 echo "${ECHO_T}$ac_ct_CC" >&6
10027 else
10028   echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6
10030 fi
10031
10032   CC=$ac_ct_CC
10033 else
10034   CC="$ac_cv_prog_CC"
10035 fi
10036
10037 if test -z "$CC"; then
10038   if test -n "$ac_tool_prefix"; then
10039   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10040 set dummy ${ac_tool_prefix}cc; ac_word=$2
10041 echo "$as_me:$LINENO: checking for $ac_word" >&5
10042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10043 if test "${ac_cv_prog_CC+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   if test -n "$CC"; then
10047   ac_cv_prog_CC="$CC" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052   IFS=$as_save_IFS
10053   test -z "$as_dir" && as_dir=.
10054   for ac_exec_ext in '' $ac_executable_extensions; do
10055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056     ac_cv_prog_CC="${ac_tool_prefix}cc"
10057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10058     break 2
10059   fi
10060 done
10061 done
10062
10063 fi
10064 fi
10065 CC=$ac_cv_prog_CC
10066 if test -n "$CC"; then
10067   echo "$as_me:$LINENO: result: $CC" >&5
10068 echo "${ECHO_T}$CC" >&6
10069 else
10070   echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6
10072 fi
10073
10074 fi
10075 if test -z "$ac_cv_prog_CC"; then
10076   ac_ct_CC=$CC
10077   # Extract the first word of "cc", so it can be a program name with args.
10078 set dummy cc; ac_word=$2
10079 echo "$as_me:$LINENO: checking for $ac_word" >&5
10080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   if test -n "$ac_ct_CC"; then
10085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10086 else
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10089 do
10090   IFS=$as_save_IFS
10091   test -z "$as_dir" && as_dir=.
10092   for ac_exec_ext in '' $ac_executable_extensions; do
10093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094     ac_cv_prog_ac_ct_CC="cc"
10095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096     break 2
10097   fi
10098 done
10099 done
10100
10101 fi
10102 fi
10103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10104 if test -n "$ac_ct_CC"; then
10105   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10106 echo "${ECHO_T}$ac_ct_CC" >&6
10107 else
10108   echo "$as_me:$LINENO: result: no" >&5
10109 echo "${ECHO_T}no" >&6
10110 fi
10111
10112   CC=$ac_ct_CC
10113 else
10114   CC="$ac_cv_prog_CC"
10115 fi
10116
10117 fi
10118 if test -z "$CC"; then
10119   # Extract the first word of "cc", so it can be a program name with args.
10120 set dummy cc; ac_word=$2
10121 echo "$as_me:$LINENO: checking for $ac_word" >&5
10122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10123 if test "${ac_cv_prog_CC+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   if test -n "$CC"; then
10127   ac_cv_prog_CC="$CC" # Let the user override the test.
10128 else
10129   ac_prog_rejected=no
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10132 do
10133   IFS=$as_save_IFS
10134   test -z "$as_dir" && as_dir=.
10135   for ac_exec_ext in '' $ac_executable_extensions; do
10136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10137     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10138        ac_prog_rejected=yes
10139        continue
10140      fi
10141     ac_cv_prog_CC="cc"
10142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10143     break 2
10144   fi
10145 done
10146 done
10147
10148 if test $ac_prog_rejected = yes; then
10149   # We found a bogon in the path, so make sure we never use it.
10150   set dummy $ac_cv_prog_CC
10151   shift
10152   if test $# != 0; then
10153     # We chose a different compiler from the bogus one.
10154     # However, it has the same basename, so the bogon will be chosen
10155     # first if we set CC to just the basename; use the full file name.
10156     shift
10157     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10158   fi
10159 fi
10160 fi
10161 fi
10162 CC=$ac_cv_prog_CC
10163 if test -n "$CC"; then
10164   echo "$as_me:$LINENO: result: $CC" >&5
10165 echo "${ECHO_T}$CC" >&6
10166 else
10167   echo "$as_me:$LINENO: result: no" >&5
10168 echo "${ECHO_T}no" >&6
10169 fi
10170
10171 fi
10172 if test -z "$CC"; then
10173   if test -n "$ac_tool_prefix"; then
10174   for ac_prog in cl
10175   do
10176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10178 echo "$as_me:$LINENO: checking for $ac_word" >&5
10179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10180 if test "${ac_cv_prog_CC+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   if test -n "$CC"; then
10184   ac_cv_prog_CC="$CC" # Let the user override the test.
10185 else
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10188 do
10189   IFS=$as_save_IFS
10190   test -z "$as_dir" && as_dir=.
10191   for ac_exec_ext in '' $ac_executable_extensions; do
10192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195     break 2
10196   fi
10197 done
10198 done
10199
10200 fi
10201 fi
10202 CC=$ac_cv_prog_CC
10203 if test -n "$CC"; then
10204   echo "$as_me:$LINENO: result: $CC" >&5
10205 echo "${ECHO_T}$CC" >&6
10206 else
10207   echo "$as_me:$LINENO: result: no" >&5
10208 echo "${ECHO_T}no" >&6
10209 fi
10210
10211     test -n "$CC" && break
10212   done
10213 fi
10214 if test -z "$CC"; then
10215   ac_ct_CC=$CC
10216   for ac_prog in cl
10217 do
10218   # Extract the first word of "$ac_prog", so it can be a program name with args.
10219 set dummy $ac_prog; ac_word=$2
10220 echo "$as_me:$LINENO: checking for $ac_word" >&5
10221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   if test -n "$ac_ct_CC"; then
10226   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10227 else
10228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229 for as_dir in $PATH
10230 do
10231   IFS=$as_save_IFS
10232   test -z "$as_dir" && as_dir=.
10233   for ac_exec_ext in '' $ac_executable_extensions; do
10234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10235     ac_cv_prog_ac_ct_CC="$ac_prog"
10236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10237     break 2
10238   fi
10239 done
10240 done
10241
10242 fi
10243 fi
10244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10245 if test -n "$ac_ct_CC"; then
10246   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10247 echo "${ECHO_T}$ac_ct_CC" >&6
10248 else
10249   echo "$as_me:$LINENO: result: no" >&5
10250 echo "${ECHO_T}no" >&6
10251 fi
10252
10253   test -n "$ac_ct_CC" && break
10254 done
10255
10256   CC=$ac_ct_CC
10257 fi
10258
10259 fi
10260
10261
10262 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10263 See \`config.log' for more details." >&5
10264 echo "$as_me: error: no acceptable C compiler found in \$PATH
10265 See \`config.log' for more details." >&2;}
10266    { (exit 1); exit 1; }; }
10267
10268 # Provide some information about the compiler.
10269 echo "$as_me:$LINENO:" \
10270      "checking for C compiler version" >&5
10271 ac_compiler=`set X $ac_compile; echo $2`
10272 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10273   (eval $ac_compiler --version </dev/null >&5) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }
10277 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10278   (eval $ac_compiler -v </dev/null >&5) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }
10282 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10283   (eval $ac_compiler -V </dev/null >&5) 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); }
10287
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h.  */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h.  */
10294
10295 int
10296 main ()
10297 {
10298
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 ac_clean_files_save=$ac_clean_files
10304 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10305 # Try to create an executable without -o first, disregard a.out.
10306 # It will help us diagnose broken compilers, and finding out an intuition
10307 # of exeext.
10308 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10309 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10310 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10312   (eval $ac_link_default) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; then
10316   # Find the output, starting from the most likely.  This scheme is
10317 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10318 # resort.
10319
10320 # Be careful to initialize this variable, since it used to be cached.
10321 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10322 ac_cv_exeext=
10323 # b.out is created by i960 compilers.
10324 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10325 do
10326   test -f "$ac_file" || continue
10327   case $ac_file in
10328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10329         ;;
10330     conftest.$ac_ext )
10331         # This is the source file.
10332         ;;
10333     [ab].out )
10334         # We found the default executable, but exeext='' is most
10335         # certainly right.
10336         break;;
10337     *.* )
10338         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10339         # FIXME: I believe we export ac_cv_exeext for Libtool,
10340         # but it would be cool to find out if it's true.  Does anybody
10341         # maintain Libtool? --akim.
10342         export ac_cv_exeext
10343         break;;
10344     * )
10345         break;;
10346   esac
10347 done
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10353 See \`config.log' for more details." >&5
10354 echo "$as_me: error: C compiler cannot create executables
10355 See \`config.log' for more details." >&2;}
10356    { (exit 77); exit 77; }; }
10357 fi
10358
10359 ac_exeext=$ac_cv_exeext
10360 echo "$as_me:$LINENO: result: $ac_file" >&5
10361 echo "${ECHO_T}$ac_file" >&6
10362
10363 # Check the compiler produces executables we can run.  If not, either
10364 # the compiler is broken, or we cross compile.
10365 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10366 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10367 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10368 # If not cross compiling, check that we can run a simple program.
10369 if test "$cross_compiling" != yes; then
10370   if { ac_try='./$ac_file'
10371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372   (eval $ac_try) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); }; }; then
10376     cross_compiling=no
10377   else
10378     if test "$cross_compiling" = maybe; then
10379         cross_compiling=yes
10380     else
10381         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10382 If you meant to cross compile, use \`--host'.
10383 See \`config.log' for more details." >&5
10384 echo "$as_me: error: cannot run C compiled programs.
10385 If you meant to cross compile, use \`--host'.
10386 See \`config.log' for more details." >&2;}
10387    { (exit 1); exit 1; }; }
10388     fi
10389   fi
10390 fi
10391 echo "$as_me:$LINENO: result: yes" >&5
10392 echo "${ECHO_T}yes" >&6
10393
10394 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10395 ac_clean_files=$ac_clean_files_save
10396 # Check the compiler produces executables we can run.  If not, either
10397 # the compiler is broken, or we cross compile.
10398 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10399 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10400 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10401 echo "${ECHO_T}$cross_compiling" >&6
10402
10403 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10404 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406   (eval $ac_link) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; then
10410   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10411 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10412 # work properly (i.e., refer to `conftest.exe'), while it won't with
10413 # `rm'.
10414 for ac_file in conftest.exe conftest conftest.*; do
10415   test -f "$ac_file" || continue
10416   case $ac_file in
10417     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10418     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10419           export ac_cv_exeext
10420           break;;
10421     * ) break;;
10422   esac
10423 done
10424 else
10425   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10426 See \`config.log' for more details." >&5
10427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10428 See \`config.log' for more details." >&2;}
10429    { (exit 1); exit 1; }; }
10430 fi
10431
10432 rm -f conftest$ac_cv_exeext
10433 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10434 echo "${ECHO_T}$ac_cv_exeext" >&6
10435
10436 rm -f conftest.$ac_ext
10437 EXEEXT=$ac_cv_exeext
10438 ac_exeext=$EXEEXT
10439 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10441 if test "${ac_cv_objext+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450
10451 int
10452 main ()
10453 {
10454
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.o conftest.obj
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461   (eval $ac_compile) 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; then
10465   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10466   case $ac_file in
10467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10468     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10469        break;;
10470   esac
10471 done
10472 else
10473   echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10477 See \`config.log' for more details." >&5
10478 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10479 See \`config.log' for more details." >&2;}
10480    { (exit 1); exit 1; }; }
10481 fi
10482
10483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10484 fi
10485 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10486 echo "${ECHO_T}$ac_cv_objext" >&6
10487 OBJEXT=$ac_cv_objext
10488 ac_objext=$OBJEXT
10489 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10491 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500
10501 int
10502 main ()
10503 {
10504 #ifndef __GNUC__
10505        choke me
10506 #endif
10507
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514   (eval $ac_compile) 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -z "$ac_c_werror_flag"
10522                          || test ! -s conftest.err'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest.$ac_objext'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; }; then
10534   ac_compiler_gnu=yes
10535 else
10536   echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 ac_compiler_gnu=no
10540 fi
10541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10543
10544 fi
10545 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10547 GCC=`test $ac_compiler_gnu = yes && echo yes`
10548 ac_test_CFLAGS=${CFLAGS+set}
10549 ac_save_CFLAGS=$CFLAGS
10550 CFLAGS="-g"
10551 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10552 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10553 if test "${ac_cv_prog_cc_g+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562
10563 int
10564 main ()
10565 {
10566
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573   (eval $ac_compile) 2>conftest.er1
10574   ac_status=$?
10575   grep -v '^ *+' conftest.er1 >conftest.err
10576   rm -f conftest.er1
10577   cat conftest.err >&5
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } &&
10580          { ac_try='test -z "$ac_c_werror_flag"
10581                          || test ! -s conftest.err'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; } &&
10587          { ac_try='test -s conftest.$ac_objext'
10588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589   (eval $ac_try) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); }; }; then
10593   ac_cv_prog_cc_g=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 ac_cv_prog_cc_g=no
10599 fi
10600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10601 fi
10602 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10603 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10604 if test "$ac_test_CFLAGS" = set; then
10605   CFLAGS=$ac_save_CFLAGS
10606 elif test $ac_cv_prog_cc_g = yes; then
10607   if test "$GCC" = yes; then
10608     CFLAGS="-g -O2"
10609   else
10610     CFLAGS="-g"
10611   fi
10612 else
10613   if test "$GCC" = yes; then
10614     CFLAGS="-O2"
10615   else
10616     CFLAGS=
10617   fi
10618 fi
10619 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10620 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10621 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   ac_cv_prog_cc_stdc=no
10625 ac_save_CC=$CC
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632 #include <stdarg.h>
10633 #include <stdio.h>
10634 #include <sys/types.h>
10635 #include <sys/stat.h>
10636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10637 struct buf { int x; };
10638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10639 static char *e (p, i)
10640      char **p;
10641      int i;
10642 {
10643   return p[i];
10644 }
10645 static char *f (char * (*g) (char **, int), char **p, ...)
10646 {
10647   char *s;
10648   va_list v;
10649   va_start (v,p);
10650   s = g (p, va_arg (v,int));
10651   va_end (v);
10652   return s;
10653 }
10654
10655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10656    function prototypes and stuff, but not '\xHH' hex character constants.
10657    These don't provoke an error unfortunately, instead are silently treated
10658    as 'x'.  The following induces an error, until -std1 is added to get
10659    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10660    array size at least.  It's necessary to write '\x00'==0 to get something
10661    that's true only with -std1.  */
10662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10663
10664 int test (int i, double x);
10665 struct s1 {int (*f) (int a);};
10666 struct s2 {int (*f) (double a);};
10667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10668 int argc;
10669 char **argv;
10670 int
10671 main ()
10672 {
10673 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 # Don't try gcc -ansi; that turns off useful extensions and
10679 # breaks some systems' header files.
10680 # AIX                   -qlanglvl=ansi
10681 # Ultrix and OSF/1      -std1
10682 # HP-UX 10.20 and later -Ae
10683 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10684 # SVR4                  -Xc -D__EXTENSIONS__
10685 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10686 do
10687   CC="$ac_save_CC $ac_arg"
10688   rm -f conftest.$ac_objext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690   (eval $ac_compile) 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } &&
10697          { ac_try='test -z "$ac_c_werror_flag"
10698                          || test ! -s conftest.err'
10699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700   (eval $ac_try) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; } &&
10704          { ac_try='test -s conftest.$ac_objext'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }; then
10710   ac_cv_prog_cc_stdc=$ac_arg
10711 break
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 fi
10717 rm -f conftest.err conftest.$ac_objext
10718 done
10719 rm -f conftest.$ac_ext conftest.$ac_objext
10720 CC=$ac_save_CC
10721
10722 fi
10723
10724 case "x$ac_cv_prog_cc_stdc" in
10725   x|xno)
10726     echo "$as_me:$LINENO: result: none needed" >&5
10727 echo "${ECHO_T}none needed" >&6 ;;
10728   *)
10729     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10730 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10731     CC="$CC $ac_cv_prog_cc_stdc" ;;
10732 esac
10733
10734 # Some people use a C++ compiler to compile C.  Since we use `exit',
10735 # in C++ we need to declare it.  In case someone uses the same compiler
10736 # for both compiling C and C++ we need to have the C++ compiler decide
10737 # the declaration of exit, since it's the most demanding environment.
10738 cat >conftest.$ac_ext <<_ACEOF
10739 #ifndef __cplusplus
10740   choke me
10741 #endif
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745   (eval $ac_compile) 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -z "$ac_c_werror_flag"
10753                          || test ! -s conftest.err'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; } &&
10759          { ac_try='test -s conftest.$ac_objext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   for ac_declaration in \
10766    '' \
10767    'extern "C" void std::exit (int) throw (); using std::exit;' \
10768    'extern "C" void std::exit (int); using std::exit;' \
10769    'extern "C" void exit (int) throw ();' \
10770    'extern "C" void exit (int);' \
10771    'void exit (int);'
10772 do
10773   cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 $ac_declaration
10780 #include <stdlib.h>
10781 int
10782 main ()
10783 {
10784 exit (42);
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10791   (eval $ac_compile) 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } &&
10798          { ac_try='test -z "$ac_c_werror_flag"
10799                          || test ! -s conftest.err'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; } &&
10805          { ac_try='test -s conftest.$ac_objext'
10806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807   (eval $ac_try) 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; }; then
10811   :
10812 else
10813   echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816 continue
10817 fi
10818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10819   cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 $ac_declaration
10826 int
10827 main ()
10828 {
10829 exit (42);
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10836   (eval $ac_compile) 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } &&
10843          { ac_try='test -z "$ac_c_werror_flag"
10844                          || test ! -s conftest.err'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; } &&
10850          { ac_try='test -s conftest.$ac_objext'
10851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852   (eval $ac_try) 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); }; }; then
10856   break
10857 else
10858   echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 fi
10862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10863 done
10864 rm -f conftest*
10865 if test -n "$ac_declaration"; then
10866   echo '#ifdef __cplusplus' >>confdefs.h
10867   echo $ac_declaration      >>confdefs.h
10868   echo '#endif'             >>confdefs.h
10869 fi
10870
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 fi
10876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10877 ac_ext=c
10878 ac_cpp='$CPP $CPPFLAGS'
10879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10882
10883
10884
10885 ac_ext=c
10886 ac_cpp='$CPP $CPPFLAGS'
10887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10892 # On Suns, sometimes $CPP names a directory.
10893 if test -n "$CPP" && test -d "$CPP"; then
10894   CPP=
10895 fi
10896 if test -z "$CPP"; then
10897   if test "${ac_cv_prog_CPP+set}" = set; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900       # Double quotes because CPP needs to be expanded
10901     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10902     do
10903       ac_preproc_ok=false
10904 for ac_c_preproc_warn_flag in '' yes
10905 do
10906   # Use a header file that comes with gcc, so configuring glibc
10907   # with a fresh cross-compiler works.
10908   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909   # <limits.h> exists even on freestanding compilers.
10910   # On the NeXT, cc -E runs the code through the compiler's parser,
10911   # not just through cpp. "Syntax error" is here to catch this case.
10912   cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918 #ifdef __STDC__
10919 # include <limits.h>
10920 #else
10921 # include <assert.h>
10922 #endif
10923                      Syntax error
10924 _ACEOF
10925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } >/dev/null; then
10933   if test -s conftest.err; then
10934     ac_cpp_err=$ac_c_preproc_warn_flag
10935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10936   else
10937     ac_cpp_err=
10938   fi
10939 else
10940   ac_cpp_err=yes
10941 fi
10942 if test -z "$ac_cpp_err"; then
10943   :
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948   # Broken: fails on valid input.
10949 continue
10950 fi
10951 rm -f conftest.err conftest.$ac_ext
10952
10953   # OK, works on sane cases.  Now check whether non-existent headers
10954   # can be detected and how.
10955   cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961 #include <ac_nonexistent.h>
10962 _ACEOF
10963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10965   ac_status=$?
10966   grep -v '^ *+' conftest.er1 >conftest.err
10967   rm -f conftest.er1
10968   cat conftest.err >&5
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } >/dev/null; then
10971   if test -s conftest.err; then
10972     ac_cpp_err=$ac_c_preproc_warn_flag
10973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10974   else
10975     ac_cpp_err=
10976   fi
10977 else
10978   ac_cpp_err=yes
10979 fi
10980 if test -z "$ac_cpp_err"; then
10981   # Broken: success on invalid input.
10982 continue
10983 else
10984   echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987   # Passes both tests.
10988 ac_preproc_ok=:
10989 break
10990 fi
10991 rm -f conftest.err conftest.$ac_ext
10992
10993 done
10994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10995 rm -f conftest.err conftest.$ac_ext
10996 if $ac_preproc_ok; then
10997   break
10998 fi
10999
11000     done
11001     ac_cv_prog_CPP=$CPP
11002
11003 fi
11004   CPP=$ac_cv_prog_CPP
11005 else
11006   ac_cv_prog_CPP=$CPP
11007 fi
11008 echo "$as_me:$LINENO: result: $CPP" >&5
11009 echo "${ECHO_T}$CPP" >&6
11010 ac_preproc_ok=false
11011 for ac_c_preproc_warn_flag in '' yes
11012 do
11013   # Use a header file that comes with gcc, so configuring glibc
11014   # with a fresh cross-compiler works.
11015   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016   # <limits.h> exists even on freestanding compilers.
11017   # On the NeXT, cc -E runs the code through the compiler's parser,
11018   # not just through cpp. "Syntax error" is here to catch this case.
11019   cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 #ifdef __STDC__
11026 # include <limits.h>
11027 #else
11028 # include <assert.h>
11029 #endif
11030                      Syntax error
11031 _ACEOF
11032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } >/dev/null; then
11040   if test -s conftest.err; then
11041     ac_cpp_err=$ac_c_preproc_warn_flag
11042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11043   else
11044     ac_cpp_err=
11045   fi
11046 else
11047   ac_cpp_err=yes
11048 fi
11049 if test -z "$ac_cpp_err"; then
11050   :
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055   # Broken: fails on valid input.
11056 continue
11057 fi
11058 rm -f conftest.err conftest.$ac_ext
11059
11060   # OK, works on sane cases.  Now check whether non-existent headers
11061   # can be detected and how.
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 #include <ac_nonexistent.h>
11069 _ACEOF
11070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } >/dev/null; then
11078   if test -s conftest.err; then
11079     ac_cpp_err=$ac_c_preproc_warn_flag
11080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11081   else
11082     ac_cpp_err=
11083   fi
11084 else
11085   ac_cpp_err=yes
11086 fi
11087 if test -z "$ac_cpp_err"; then
11088   # Broken: success on invalid input.
11089 continue
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094   # Passes both tests.
11095 ac_preproc_ok=:
11096 break
11097 fi
11098 rm -f conftest.err conftest.$ac_ext
11099
11100 done
11101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11102 rm -f conftest.err conftest.$ac_ext
11103 if $ac_preproc_ok; then
11104   :
11105 else
11106   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11107 See \`config.log' for more details." >&5
11108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11109 See \`config.log' for more details." >&2;}
11110    { (exit 1); exit 1; }; }
11111 fi
11112
11113 ac_ext=c
11114 ac_cpp='$CPP $CPPFLAGS'
11115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118
11119
11120 echo "$as_me:$LINENO: checking for egrep" >&5
11121 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11122 if test "${ac_cv_prog_egrep+set}" = set; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11126     then ac_cv_prog_egrep='grep -E'
11127     else ac_cv_prog_egrep='egrep'
11128     fi
11129 fi
11130 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11131 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11132  EGREP=$ac_cv_prog_egrep
11133
11134
11135 if test $ac_cv_c_compiler_gnu = yes; then
11136     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141     ac_pattern="Autoconf.*'x'"
11142   cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148 #include <sgtty.h>
11149 Autoconf TIOCGETP
11150 _ACEOF
11151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11153   ac_cv_prog_gcc_traditional=yes
11154 else
11155   ac_cv_prog_gcc_traditional=no
11156 fi
11157 rm -f conftest*
11158
11159
11160   if test $ac_cv_prog_gcc_traditional = no; then
11161     cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h.  */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h.  */
11167 #include <termio.h>
11168 Autoconf TCGETA
11169 _ACEOF
11170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11171   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11172   ac_cv_prog_gcc_traditional=yes
11173 fi
11174 rm -f conftest*
11175
11176   fi
11177 fi
11178 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11180   if test $ac_cv_prog_gcc_traditional = yes; then
11181     CC="$CC -traditional"
11182   fi
11183 fi
11184
11185
11186
11187
11188 ac_ext=cc
11189 ac_cpp='$CXXCPP $CPPFLAGS'
11190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11193
11194
11195 CXXFLAGS=${CXXFLAGS:=}
11196 ac_ext=cc
11197 ac_cpp='$CXXCPP $CPPFLAGS'
11198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11201 if test -n "$ac_tool_prefix"; then
11202   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11203   do
11204     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11206 echo "$as_me:$LINENO: checking for $ac_word" >&5
11207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208 if test "${ac_cv_prog_CXX+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   if test -n "$CXX"; then
11212   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11216 do
11217   IFS=$as_save_IFS
11218   test -z "$as_dir" && as_dir=.
11219   for ac_exec_ext in '' $ac_executable_extensions; do
11220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223     break 2
11224   fi
11225 done
11226 done
11227
11228 fi
11229 fi
11230 CXX=$ac_cv_prog_CXX
11231 if test -n "$CXX"; then
11232   echo "$as_me:$LINENO: result: $CXX" >&5
11233 echo "${ECHO_T}$CXX" >&6
11234 else
11235   echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6
11237 fi
11238
11239     test -n "$CXX" && break
11240   done
11241 fi
11242 if test -z "$CXX"; then
11243   ac_ct_CXX=$CXX
11244   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11245 do
11246   # Extract the first word of "$ac_prog", so it can be a program name with args.
11247 set dummy $ac_prog; ac_word=$2
11248 echo "$as_me:$LINENO: checking for $ac_word" >&5
11249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11250 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   if test -n "$ac_ct_CXX"; then
11254   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11255 else
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11258 do
11259   IFS=$as_save_IFS
11260   test -z "$as_dir" && as_dir=.
11261   for ac_exec_ext in '' $ac_executable_extensions; do
11262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263     ac_cv_prog_ac_ct_CXX="$ac_prog"
11264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265     break 2
11266   fi
11267 done
11268 done
11269
11270 fi
11271 fi
11272 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11273 if test -n "$ac_ct_CXX"; then
11274   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11275 echo "${ECHO_T}$ac_ct_CXX" >&6
11276 else
11277   echo "$as_me:$LINENO: result: no" >&5
11278 echo "${ECHO_T}no" >&6
11279 fi
11280
11281   test -n "$ac_ct_CXX" && break
11282 done
11283 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11284
11285   CXX=$ac_ct_CXX
11286 fi
11287
11288
11289 # Provide some information about the compiler.
11290 echo "$as_me:$LINENO:" \
11291      "checking for C++ compiler version" >&5
11292 ac_compiler=`set X $ac_compile; echo $2`
11293 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11294   (eval $ac_compiler --version </dev/null >&5) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }
11298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11299   (eval $ac_compiler -v </dev/null >&5) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }
11303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11304   (eval $ac_compiler -V </dev/null >&5) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }
11308
11309 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11310 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11311 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320
11321 int
11322 main ()
11323 {
11324 #ifndef __GNUC__
11325        choke me
11326 #endif
11327
11328   ;
11329   return 0;
11330 }
11331 _ACEOF
11332 rm -f conftest.$ac_objext
11333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334   (eval $ac_compile) 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -z "$ac_cxx_werror_flag"
11342                          || test ! -s conftest.err'
11343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344   (eval $ac_try) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; } &&
11348          { ac_try='test -s conftest.$ac_objext'
11349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350   (eval $ac_try) 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; }; then
11354   ac_compiler_gnu=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 ac_compiler_gnu=no
11360 fi
11361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11363
11364 fi
11365 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11366 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11367 GXX=`test $ac_compiler_gnu = yes && echo yes`
11368 ac_test_CXXFLAGS=${CXXFLAGS+set}
11369 ac_save_CXXFLAGS=$CXXFLAGS
11370 CXXFLAGS="-g"
11371 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11372 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11373 if test "${ac_cv_prog_cxx_g+set}" = set; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382
11383 int
11384 main ()
11385 {
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393   (eval $ac_compile) 2>conftest.er1
11394   ac_status=$?
11395   grep -v '^ *+' conftest.er1 >conftest.err
11396   rm -f conftest.er1
11397   cat conftest.err >&5
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } &&
11400          { ac_try='test -z "$ac_cxx_werror_flag"
11401                          || test ! -s conftest.err'
11402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403   (eval $ac_try) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_cv_prog_cxx_g=yes
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ac_cv_prog_cxx_g=no
11419 fi
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11423 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11424 if test "$ac_test_CXXFLAGS" = set; then
11425   CXXFLAGS=$ac_save_CXXFLAGS
11426 elif test $ac_cv_prog_cxx_g = yes; then
11427   if test "$GXX" = yes; then
11428     CXXFLAGS="-g -O2"
11429   else
11430     CXXFLAGS="-g"
11431   fi
11432 else
11433   if test "$GXX" = yes; then
11434     CXXFLAGS="-O2"
11435   else
11436     CXXFLAGS=
11437   fi
11438 fi
11439 for ac_declaration in \
11440    '' \
11441    'extern "C" void std::exit (int) throw (); using std::exit;' \
11442    'extern "C" void std::exit (int); using std::exit;' \
11443    'extern "C" void exit (int) throw ();' \
11444    'extern "C" void exit (int);' \
11445    'void exit (int);'
11446 do
11447   cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 $ac_declaration
11454 #include <stdlib.h>
11455 int
11456 main ()
11457 {
11458 exit (42);
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465   (eval $ac_compile) 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -z "$ac_cxx_werror_flag"
11473                          || test ! -s conftest.err'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; } &&
11479          { ac_try='test -s conftest.$ac_objext'
11480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481   (eval $ac_try) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; }; then
11485   :
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490 continue
11491 fi
11492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11493   cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h.  */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h.  */
11499 $ac_declaration
11500 int
11501 main ()
11502 {
11503 exit (42);
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510   (eval $ac_compile) 2>conftest.er1
11511   ac_status=$?
11512   grep -v '^ *+' conftest.er1 >conftest.err
11513   rm -f conftest.er1
11514   cat conftest.err >&5
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -z "$ac_cxx_werror_flag"
11518                          || test ! -s conftest.err'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; } &&
11524          { ac_try='test -s conftest.$ac_objext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   break
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 fi
11536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11537 done
11538 rm -f conftest*
11539 if test -n "$ac_declaration"; then
11540   echo '#ifdef __cplusplus' >>confdefs.h
11541   echo $ac_declaration      >>confdefs.h
11542   echo '#endif'             >>confdefs.h
11543 fi
11544
11545 ac_ext=cc
11546 ac_cpp='$CXXCPP $CPPFLAGS'
11547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11550
11551
11552 ac_ext=c
11553 ac_cpp='$CPP $CPPFLAGS'
11554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11557
11558
11559 if test -n "$ac_tool_prefix"; then
11560   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11561 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11562 echo "$as_me:$LINENO: checking for $ac_word" >&5
11563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11564 if test "${ac_cv_prog_RANLIB+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   if test -n "$RANLIB"; then
11568   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11569 else
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 do
11573   IFS=$as_save_IFS
11574   test -z "$as_dir" && as_dir=.
11575   for ac_exec_ext in '' $ac_executable_extensions; do
11576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11577     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579     break 2
11580   fi
11581 done
11582 done
11583
11584 fi
11585 fi
11586 RANLIB=$ac_cv_prog_RANLIB
11587 if test -n "$RANLIB"; then
11588   echo "$as_me:$LINENO: result: $RANLIB" >&5
11589 echo "${ECHO_T}$RANLIB" >&6
11590 else
11591   echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6
11593 fi
11594
11595 fi
11596 if test -z "$ac_cv_prog_RANLIB"; then
11597   ac_ct_RANLIB=$RANLIB
11598   # Extract the first word of "ranlib", so it can be a program name with args.
11599 set dummy ranlib; ac_word=$2
11600 echo "$as_me:$LINENO: checking for $ac_word" >&5
11601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   if test -n "$ac_ct_RANLIB"; then
11606   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611   IFS=$as_save_IFS
11612   test -z "$as_dir" && as_dir=.
11613   for ac_exec_ext in '' $ac_executable_extensions; do
11614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615     ac_cv_prog_ac_ct_RANLIB="ranlib"
11616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11617     break 2
11618   fi
11619 done
11620 done
11621
11622   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11623 fi
11624 fi
11625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11626 if test -n "$ac_ct_RANLIB"; then
11627   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11628 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11629 else
11630   echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6
11632 fi
11633
11634   RANLIB=$ac_ct_RANLIB
11635 else
11636   RANLIB="$ac_cv_prog_RANLIB"
11637 fi
11638
11639
11640 # Extract the first word of "ar", so it can be a program name with args.
11641 set dummy ar; ac_word=$2
11642 echo "$as_me:$LINENO: checking for $ac_word" >&5
11643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11644 if test "${ac_cv_prog_AR+set}" = set; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   if test -n "$AR"; then
11648   ac_cv_prog_AR="$AR" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653   IFS=$as_save_IFS
11654   test -z "$as_dir" && as_dir=.
11655   for ac_exec_ext in '' $ac_executable_extensions; do
11656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657     ac_cv_prog_AR="ar"
11658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11659     break 2
11660   fi
11661 done
11662 done
11663
11664 fi
11665 fi
11666 AR=$ac_cv_prog_AR
11667 if test -n "$AR"; then
11668   echo "$as_me:$LINENO: result: $AR" >&5
11669 echo "${ECHO_T}$AR" >&6
11670 else
11671   echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6
11673 fi
11674
11675 if test "x$AR" = "x" ; then
11676     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11677 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11678    { (exit 1); exit 1; }; }
11679 fi
11680
11681 # Find a good install program.  We prefer a C program (faster),
11682 # so one script is as good as another.  But avoid the broken or
11683 # incompatible versions:
11684 # SysV /etc/install, /usr/sbin/install
11685 # SunOS /usr/etc/install
11686 # IRIX /sbin/install
11687 # AIX /bin/install
11688 # AmigaOS /C/install, which installs bootblocks on floppy discs
11689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11692 # OS/2's system install, which has a completely different semantic
11693 # ./install, which can be erroneously created by make from ./install.sh.
11694 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11696 if test -z "$INSTALL"; then
11697 if test "${ac_cv_path_install+set}" = set; then
11698   echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11702 do
11703   IFS=$as_save_IFS
11704   test -z "$as_dir" && as_dir=.
11705   # Account for people who put trailing slashes in PATH elements.
11706 case $as_dir/ in
11707   ./ | .// | /cC/* | \
11708   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11709   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11710   /usr/ucb/* ) ;;
11711   *)
11712     # OSF1 and SCO ODT 3.0 have their own names for install.
11713     # Don't use installbsd from OSF since it installs stuff as root
11714     # by default.
11715     for ac_prog in ginstall scoinst install; do
11716       for ac_exec_ext in '' $ac_executable_extensions; do
11717         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11718           if test $ac_prog = install &&
11719             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11720             # AIX install.  It has an incompatible calling convention.
11721             :
11722           elif test $ac_prog = install &&
11723             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11724             # program-specific install script used by HP pwplus--don't use.
11725             :
11726           else
11727             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11728             break 3
11729           fi
11730         fi
11731       done
11732     done
11733     ;;
11734 esac
11735 done
11736
11737
11738 fi
11739   if test "${ac_cv_path_install+set}" = set; then
11740     INSTALL=$ac_cv_path_install
11741   else
11742     # As a last resort, use the slow shell script.  We don't cache a
11743     # path for INSTALL within a source directory, because that will
11744     # break other packages using the cache if that directory is
11745     # removed, or if the path is relative.
11746     INSTALL=$ac_install_sh
11747   fi
11748 fi
11749 echo "$as_me:$LINENO: result: $INSTALL" >&5
11750 echo "${ECHO_T}$INSTALL" >&6
11751
11752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753 # It thinks the first close brace ends the variable substitution.
11754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11755
11756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11757
11758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11759
11760
11761 case ${INSTALL} in
11762   /* ) # Absolute
11763      ;;
11764   ?:* ) # Drive letter, considered as absolute.
11765      ;;
11766   *)
11767      INSTALL=`pwd`/${INSTALL} ;;
11768 esac
11769
11770 case ${host} in
11771     *-hp-hpux* )
11772         INSTALL_DIR="mkdir"
11773         ;;
11774
11775     *)  INSTALL_DIR="$INSTALL -d"
11776         ;;
11777 esac
11778
11779
11780 case "${host}" in
11781
11782                 powerpc-*-darwin* )
11783         INSTALL_PROGRAM="cp -fp"
11784         INSTALL_DATA="cp -fp"
11785         ;;
11786     *)
11787         ;;
11788 esac
11789
11790 # Extract the first word of "strip", so it can be a program name with args.
11791 set dummy strip; ac_word=$2
11792 echo "$as_me:$LINENO: checking for $ac_word" >&5
11793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11794 if test "${ac_cv_prog_STRIP+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   if test -n "$STRIP"; then
11798   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803   IFS=$as_save_IFS
11804   test -z "$as_dir" && as_dir=.
11805   for ac_exec_ext in '' $ac_executable_extensions; do
11806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807     ac_cv_prog_STRIP="strip"
11808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11809     break 2
11810   fi
11811 done
11812 done
11813
11814   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11815 fi
11816 fi
11817 STRIP=$ac_cv_prog_STRIP
11818 if test -n "$STRIP"; then
11819   echo "$as_me:$LINENO: result: $STRIP" >&5
11820 echo "${ECHO_T}$STRIP" >&6
11821 else
11822   echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11824 fi
11825
11826
11827 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11828 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11829 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832
11833     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11834             egrep -s GNU > /dev/null); then
11835         wx_cv_prog_makeisgnu="yes"
11836     else
11837         wx_cv_prog_makeisgnu="no"
11838     fi
11839
11840 fi
11841 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11842 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11843
11844 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11845     IF_GNU_MAKE=""
11846 else
11847     IF_GNU_MAKE="#"
11848 fi
11849
11850
11851
11852 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11853 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11854 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11855 if test "${wx_cv_prog_makevpath+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858
11859 cat - << EOF > confMake
11860 check : file
11861         cp \$? \$@
11862         cp \$? final_file
11863 EOF
11864
11865 if test ! -d sub ; then
11866   mkdir sub
11867 fi
11868 echo dummy > sub/file
11869 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11870 RESULT=$?
11871 rm -f sub/file check final_file confMake
11872 rmdir sub
11873 if test "$RESULT" = 0; then
11874   wx_cv_prog_makevpath="yes"
11875 else
11876   wx_cv_prog_makevpath="no"
11877 fi
11878
11879 fi
11880 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11881 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11882
11883 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11884 { { echo "$as_me:$LINENO: error:
11885 You need a make-utility that is able to use the variable
11886 VPATH correctly.
11887 If your version of make does not support VPATH correctly,
11888 please install GNU-make (possibly as gmake), and start
11889 configure with the following command:
11890 export MAKE=gmake; ./configure  for sh-type shells
11891 setenv MAKE gmake; ./configure  for csh-type shells
11892 Also please do remember to use gmake in this case every time
11893 you are trying to compile.
11894 " >&5
11895 echo "$as_me: error:
11896 You need a make-utility that is able to use the variable
11897 VPATH correctly.
11898 If your version of make does not support VPATH correctly,
11899 please install GNU-make (possibly as gmake), and start
11900 configure with the following command:
11901 export MAKE=gmake; ./configure  for sh-type shells
11902 setenv MAKE gmake; ./configure  for csh-type shells
11903 Also please do remember to use gmake in this case every time
11904 you are trying to compile.
11905 " >&2;}
11906    { (exit 1); exit 1; }; }
11907 fi fi
11908 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11910 LN_S=$as_ln_s
11911 if test "$LN_S" = "ln -s"; then
11912   echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6
11914 else
11915   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11916 echo "${ECHO_T}no, using $LN_S" >&6
11917 fi
11918
11919
11920 case "${host}" in
11921   *-pc-os2_emx | *-pc-os2-emx )
11922       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11923                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11924 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11925 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11926   echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928   ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-lcExt  $LIBS"
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936
11937 /* Override any gcc2 internal prototype to avoid an error.  */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 /* We use char because int might match the return type of a gcc2
11942    builtin and then its argument prototype would still apply.  */
11943 char drand48 ();
11944 int
11945 main ()
11946 {
11947 drand48 ();
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954   (eval $ac_link) 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } &&
11961          { ac_try='test -z "$ac_c_werror_flag"
11962                          || test ! -s conftest.err'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; } &&
11968          { ac_try='test -s conftest$ac_exeext'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974   ac_cv_lib_cExt_drand48=yes
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 ac_cv_lib_cExt_drand48=no
11980 fi
11981 rm -f conftest.err conftest.$ac_objext \
11982       conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11984 fi
11985 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11986 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11987 if test $ac_cv_lib_cExt_drand48 = yes; then
11988   LIBS="$LIBS -lcExt"
11989 fi
11990
11991       else
11992                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11993       fi
11994       echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11995 echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11996 if test "${wx_cv_gcc3+set}" = set; then
11997   echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999
12000           cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006
12007 int
12008 main ()
12009 {
12010
12011                   #if (__GNUC__ < 3)
12012                       #error old gcc
12013                   #endif
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021   (eval $ac_compile) 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag"
12029                          || test ! -s conftest.err'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest.$ac_objext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041
12042                   wx_cv_gcc3=yes
12043
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048
12049                   wx_cv_gcc3=no
12050
12051
12052 fi
12053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12054
12055 fi
12056 echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12057 echo "${ECHO_T}$wx_cv_gcc3" >&6
12058       if test "$wx_cv_gcc3" = "no"; then
12059           LIBS="$LIBS -lstdcpp"
12060       else
12061           LIBS="$LIBS -lstdcxx"
12062       fi
12063   ;;
12064 esac
12065
12066
12067 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12068     echo "$as_me:$LINENO: checking for strings.h" >&5
12069 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12070 if test "${ac_cv_header_strings_h+set}" = set; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   ac_cv_header_strings_h=no
12074 fi
12075 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12076 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12077     if test "$ac_cv_header_strings_h" = "no"; then
12078         echo "$as_me:$LINENO: result: forced no into cache" >&5
12079 echo "${ECHO_T}forced no into cache" >&6
12080     else
12081         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12082 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12083     fi
12084 fi
12085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12087 if test "${ac_cv_header_stdc+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096 #include <stdlib.h>
12097 #include <stdarg.h>
12098 #include <string.h>
12099 #include <float.h>
12100
12101 int
12102 main ()
12103 {
12104
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111   (eval $ac_compile) 2>conftest.er1
12112   ac_status=$?
12113   grep -v '^ *+' conftest.er1 >conftest.err
12114   rm -f conftest.er1
12115   cat conftest.err >&5
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -z "$ac_c_werror_flag"
12119                          || test ! -s conftest.err'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; } &&
12125          { ac_try='test -s conftest.$ac_objext'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   ac_cv_header_stdc=yes
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ac_cv_header_stdc=no
12137 fi
12138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12139
12140 if test $ac_cv_header_stdc = yes; then
12141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12142   cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148 #include <string.h>
12149
12150 _ACEOF
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152   $EGREP "memchr" >/dev/null 2>&1; then
12153   :
12154 else
12155   ac_cv_header_stdc=no
12156 fi
12157 rm -f conftest*
12158
12159 fi
12160
12161 if test $ac_cv_header_stdc = yes; then
12162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12163   cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h.  */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h.  */
12169 #include <stdlib.h>
12170
12171 _ACEOF
12172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173   $EGREP "free" >/dev/null 2>&1; then
12174   :
12175 else
12176   ac_cv_header_stdc=no
12177 fi
12178 rm -f conftest*
12179
12180 fi
12181
12182 if test $ac_cv_header_stdc = yes; then
12183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12184   if test "$cross_compiling" = yes; then
12185   :
12186 else
12187   cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193 #include <ctype.h>
12194 #if ((' ' & 0x0FF) == 0x020)
12195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12197 #else
12198 # define ISLOWER(c) \
12199                    (('a' <= (c) && (c) <= 'i') \
12200                      || ('j' <= (c) && (c) <= 'r') \
12201                      || ('s' <= (c) && (c) <= 'z'))
12202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12203 #endif
12204
12205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12206 int
12207 main ()
12208 {
12209   int i;
12210   for (i = 0; i < 256; i++)
12211     if (XOR (islower (i), ISLOWER (i))
12212         || toupper (i) != TOUPPER (i))
12213       exit(2);
12214   exit (0);
12215 }
12216 _ACEOF
12217 rm -f conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   :
12229 else
12230   echo "$as_me: program exited with status $ac_status" >&5
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ( exit $ac_status )
12235 ac_cv_header_stdc=no
12236 fi
12237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12238 fi
12239 fi
12240 fi
12241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12243 if test $ac_cv_header_stdc = yes; then
12244
12245 cat >>confdefs.h <<\_ACEOF
12246 #define STDC_HEADERS 1
12247 _ACEOF
12248
12249 fi
12250
12251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12262                   inttypes.h stdint.h unistd.h
12263 do
12264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12265 echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 $ac_includes_default
12277
12278 #include <$ac_header>
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12282   (eval $ac_compile) 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } &&
12289          { ac_try='test -z "$ac_c_werror_flag"
12290                          || test ! -s conftest.err'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; } &&
12296          { ac_try='test -s conftest.$ac_objext'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302   eval "$as_ac_Header=yes"
12303 else
12304   echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307 eval "$as_ac_Header=no"
12308 fi
12309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12314   cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 fi
12319
12320 done
12321
12322
12323
12324 for ac_header in strings.h
12325 do
12326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12328   echo "$as_me:$LINENO: checking for $ac_header" >&5
12329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 fi
12333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12335 else
12336   # Is the header compilable?
12337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h.  */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h.  */
12345 $ac_includes_default
12346 #include <$ac_header>
12347 _ACEOF
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350   (eval $ac_compile) 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag"
12358                          || test ! -s conftest.err'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ac_header_compiler=yes
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_header_compiler=no
12376 fi
12377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12379 echo "${ECHO_T}$ac_header_compiler" >&6
12380
12381 # Is the header present?
12382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390 #include <$ac_header>
12391 _ACEOF
12392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } >/dev/null; then
12400   if test -s conftest.err; then
12401     ac_cpp_err=$ac_c_preproc_warn_flag
12402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12403   else
12404     ac_cpp_err=
12405   fi
12406 else
12407   ac_cpp_err=yes
12408 fi
12409 if test -z "$ac_cpp_err"; then
12410   ac_header_preproc=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415   ac_header_preproc=no
12416 fi
12417 rm -f conftest.err conftest.$ac_ext
12418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12419 echo "${ECHO_T}$ac_header_preproc" >&6
12420
12421 # So?  What about this header?
12422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12423   yes:no: )
12424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12428     ac_header_preproc=yes
12429     ;;
12430   no:yes:* )
12431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12443     (
12444       cat <<\_ASBOX
12445 ## ----------------------------------------- ##
12446 ## Report this to wx-dev@lists.wxwindows.org ##
12447 ## ----------------------------------------- ##
12448 _ASBOX
12449     ) |
12450       sed "s/^/$as_me: WARNING:     /" >&2
12451     ;;
12452 esac
12453 echo "$as_me:$LINENO: checking for $ac_header" >&5
12454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   eval "$as_ac_Header=\$ac_header_preproc"
12459 fi
12460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12462
12463 fi
12464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12465   cat >>confdefs.h <<_ACEOF
12466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12467 _ACEOF
12468
12469 fi
12470
12471 done
12472
12473
12474
12475 for ac_header in stdlib.h
12476 do
12477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12479   echo "$as_me:$LINENO: checking for $ac_header" >&5
12480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
12483 fi
12484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12486 else
12487   # Is the header compilable?
12488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496 $ac_includes_default
12497 #include <$ac_header>
12498 _ACEOF
12499 rm -f conftest.$ac_objext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501   (eval $ac_compile) 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -z "$ac_c_werror_flag"
12509                          || test ! -s conftest.err'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; } &&
12515          { ac_try='test -s conftest.$ac_objext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   ac_header_compiler=yes
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_header_compiler=no
12527 fi
12528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12530 echo "${ECHO_T}$ac_header_compiler" >&6
12531
12532 # Is the header present?
12533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12535 cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h.  */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h.  */
12541 #include <$ac_header>
12542 _ACEOF
12543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12545   ac_status=$?
12546   grep -v '^ *+' conftest.er1 >conftest.err
12547   rm -f conftest.er1
12548   cat conftest.err >&5
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } >/dev/null; then
12551   if test -s conftest.err; then
12552     ac_cpp_err=$ac_c_preproc_warn_flag
12553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12554   else
12555     ac_cpp_err=
12556   fi
12557 else
12558   ac_cpp_err=yes
12559 fi
12560 if test -z "$ac_cpp_err"; then
12561   ac_header_preproc=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566   ac_header_preproc=no
12567 fi
12568 rm -f conftest.err conftest.$ac_ext
12569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12570 echo "${ECHO_T}$ac_header_preproc" >&6
12571
12572 # So?  What about this header?
12573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12574   yes:no: )
12575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12579     ac_header_preproc=yes
12580     ;;
12581   no:yes:* )
12582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12594     (
12595       cat <<\_ASBOX
12596 ## ----------------------------------------- ##
12597 ## Report this to wx-dev@lists.wxwindows.org ##
12598 ## ----------------------------------------- ##
12599 _ASBOX
12600     ) |
12601       sed "s/^/$as_me: WARNING:     /" >&2
12602     ;;
12603 esac
12604 echo "$as_me:$LINENO: checking for $ac_header" >&5
12605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12607   echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609   eval "$as_ac_Header=\$ac_header_preproc"
12610 fi
12611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12613
12614 fi
12615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12616   cat >>confdefs.h <<_ACEOF
12617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12618 _ACEOF
12619
12620 fi
12621
12622 done
12623
12624
12625 for ac_header in malloc.h
12626 do
12627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12629   echo "$as_me:$LINENO: checking for $ac_header" >&5
12630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 fi
12634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12636 else
12637   # Is the header compilable?
12638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h.  */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h.  */
12646 $ac_includes_default
12647 #include <$ac_header>
12648 _ACEOF
12649 rm -f conftest.$ac_objext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651   (eval $ac_compile) 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } &&
12658          { ac_try='test -z "$ac_c_werror_flag"
12659                          || test ! -s conftest.err'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; } &&
12665          { ac_try='test -s conftest.$ac_objext'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   ac_header_compiler=yes
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 ac_header_compiler=no
12677 fi
12678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12680 echo "${ECHO_T}$ac_header_compiler" >&6
12681
12682 # Is the header present?
12683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691 #include <$ac_header>
12692 _ACEOF
12693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } >/dev/null; then
12701   if test -s conftest.err; then
12702     ac_cpp_err=$ac_c_preproc_warn_flag
12703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12704   else
12705     ac_cpp_err=
12706   fi
12707 else
12708   ac_cpp_err=yes
12709 fi
12710 if test -z "$ac_cpp_err"; then
12711   ac_header_preproc=yes
12712 else
12713   echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12715
12716   ac_header_preproc=no
12717 fi
12718 rm -f conftest.err conftest.$ac_ext
12719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12720 echo "${ECHO_T}$ac_header_preproc" >&6
12721
12722 # So?  What about this header?
12723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12724   yes:no: )
12725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12729     ac_header_preproc=yes
12730     ;;
12731   no:yes:* )
12732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12744     (
12745       cat <<\_ASBOX
12746 ## ----------------------------------------- ##
12747 ## Report this to wx-dev@lists.wxwindows.org ##
12748 ## ----------------------------------------- ##
12749 _ASBOX
12750     ) |
12751       sed "s/^/$as_me: WARNING:     /" >&2
12752     ;;
12753 esac
12754 echo "$as_me:$LINENO: checking for $ac_header" >&5
12755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   eval "$as_ac_Header=\$ac_header_preproc"
12760 fi
12761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12763
12764 fi
12765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12766   cat >>confdefs.h <<_ACEOF
12767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12768 _ACEOF
12769
12770 fi
12771
12772 done
12773
12774
12775 for ac_header in unistd.h
12776 do
12777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12779   echo "$as_me:$LINENO: checking for $ac_header" >&5
12780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 fi
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12786 else
12787   # Is the header compilable?
12788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796 $ac_includes_default
12797 #include <$ac_header>
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801   (eval $ac_compile) 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_c_werror_flag"
12809                          || test ! -s conftest.err'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest.$ac_objext'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; }; then
12821   ac_header_compiler=yes
12822 else
12823   echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_header_compiler=no
12827 fi
12828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6
12831
12832 # Is the header present?
12833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h.  */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h.  */
12841 #include <$ac_header>
12842 _ACEOF
12843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12845   ac_status=$?
12846   grep -v '^ *+' conftest.er1 >conftest.err
12847   rm -f conftest.er1
12848   cat conftest.err >&5
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } >/dev/null; then
12851   if test -s conftest.err; then
12852     ac_cpp_err=$ac_c_preproc_warn_flag
12853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12854   else
12855     ac_cpp_err=
12856   fi
12857 else
12858   ac_cpp_err=yes
12859 fi
12860 if test -z "$ac_cpp_err"; then
12861   ac_header_preproc=yes
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866   ac_header_preproc=no
12867 fi
12868 rm -f conftest.err conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12870 echo "${ECHO_T}$ac_header_preproc" >&6
12871
12872 # So?  What about this header?
12873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12874   yes:no: )
12875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12879     ac_header_preproc=yes
12880     ;;
12881   no:yes:* )
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12894     (
12895       cat <<\_ASBOX
12896 ## ----------------------------------------- ##
12897 ## Report this to wx-dev@lists.wxwindows.org ##
12898 ## ----------------------------------------- ##
12899 _ASBOX
12900     ) |
12901       sed "s/^/$as_me: WARNING:     /" >&2
12902     ;;
12903 esac
12904 echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12907   echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909   eval "$as_ac_Header=\$ac_header_preproc"
12910 fi
12911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12913
12914 fi
12915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916   cat >>confdefs.h <<_ACEOF
12917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12918 _ACEOF
12919
12920 fi
12921
12922 done
12923
12924
12925 for ac_header in wchar.h
12926 do
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929   echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 fi
12934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936 else
12937   # Is the header compilable?
12938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 $ac_includes_default
12947 #include <$ac_header>
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951   (eval $ac_compile) 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -z "$ac_c_werror_flag"
12959                          || test ! -s conftest.err'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; } &&
12965          { ac_try='test -s conftest.$ac_objext'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; }; then
12971   ac_header_compiler=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 ac_header_compiler=no
12977 fi
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12981
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 #include <$ac_header>
12992 _ACEOF
12993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } >/dev/null; then
13001   if test -s conftest.err; then
13002     ac_cpp_err=$ac_c_preproc_warn_flag
13003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13004   else
13005     ac_cpp_err=
13006   fi
13007 else
13008   ac_cpp_err=yes
13009 fi
13010 if test -z "$ac_cpp_err"; then
13011   ac_header_preproc=yes
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016   ac_header_preproc=no
13017 fi
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13021
13022 # So?  What about this header?
13023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13024   yes:no: )
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13029     ac_header_preproc=yes
13030     ;;
13031   no:yes:* )
13032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13044     (
13045       cat <<\_ASBOX
13046 ## ----------------------------------------- ##
13047 ## Report this to wx-dev@lists.wxwindows.org ##
13048 ## ----------------------------------------- ##
13049 _ASBOX
13050     ) |
13051       sed "s/^/$as_me: WARNING:     /" >&2
13052     ;;
13053 esac
13054 echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   eval "$as_ac_Header=\$ac_header_preproc"
13060 fi
13061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13063
13064 fi
13065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13066   cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13068 _ACEOF
13069
13070 fi
13071
13072 done
13073
13074
13075 if test "$ac_cv_header_wchar_h" != "yes"; then
13076
13077 for ac_header in wcstr.h
13078 do
13079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081   echo "$as_me:$LINENO: checking for $ac_header" >&5
13082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 fi
13086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13088 else
13089   # Is the header compilable?
13090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 $ac_includes_default
13099 #include <$ac_header>
13100 _ACEOF
13101 rm -f conftest.$ac_objext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103   (eval $ac_compile) 2>conftest.er1
13104   ac_status=$?
13105   grep -v '^ *+' conftest.er1 >conftest.err
13106   rm -f conftest.er1
13107   cat conftest.err >&5
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } &&
13110          { ac_try='test -z "$ac_c_werror_flag"
13111                          || test ! -s conftest.err'
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); }; } &&
13117          { ac_try='test -s conftest.$ac_objext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_header_compiler=yes
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_header_compiler=no
13129 fi
13130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13132 echo "${ECHO_T}$ac_header_compiler" >&6
13133
13134 # Is the header present?
13135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h.  */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h.  */
13143 #include <$ac_header>
13144 _ACEOF
13145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13147   ac_status=$?
13148   grep -v '^ *+' conftest.er1 >conftest.err
13149   rm -f conftest.er1
13150   cat conftest.err >&5
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } >/dev/null; then
13153   if test -s conftest.err; then
13154     ac_cpp_err=$ac_c_preproc_warn_flag
13155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13156   else
13157     ac_cpp_err=
13158   fi
13159 else
13160   ac_cpp_err=yes
13161 fi
13162 if test -z "$ac_cpp_err"; then
13163   ac_header_preproc=yes
13164 else
13165   echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13167
13168   ac_header_preproc=no
13169 fi
13170 rm -f conftest.err conftest.$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13172 echo "${ECHO_T}$ac_header_preproc" >&6
13173
13174 # So?  What about this header?
13175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13176   yes:no: )
13177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13181     ac_header_preproc=yes
13182     ;;
13183   no:yes:* )
13184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13196     (
13197       cat <<\_ASBOX
13198 ## ----------------------------------------- ##
13199 ## Report this to wx-dev@lists.wxwindows.org ##
13200 ## ----------------------------------------- ##
13201 _ASBOX
13202     ) |
13203       sed "s/^/$as_me: WARNING:     /" >&2
13204     ;;
13205 esac
13206 echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   eval "$as_ac_Header=\$ac_header_preproc"
13212 fi
13213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13215
13216 fi
13217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13218   cat >>confdefs.h <<_ACEOF
13219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13220 _ACEOF
13221
13222 fi
13223
13224 done
13225
13226 fi
13227
13228
13229 for ac_header in fnmatch.h
13230 do
13231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13233   echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 fi
13238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13240 else
13241   # Is the header compilable?
13242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250 $ac_includes_default
13251 #include <$ac_header>
13252 _ACEOF
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255   (eval $ac_compile) 2>conftest.er1
13256   ac_status=$?
13257   grep -v '^ *+' conftest.er1 >conftest.err
13258   rm -f conftest.er1
13259   cat conftest.err >&5
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); } &&
13262          { ac_try='test -z "$ac_c_werror_flag"
13263                          || test ! -s conftest.err'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_header_compiler=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_header_compiler=no
13281 fi
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284 echo "${ECHO_T}$ac_header_compiler" >&6
13285
13286 # Is the header present?
13287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 #include <$ac_header>
13296 _ACEOF
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } >/dev/null; then
13305   if test -s conftest.err; then
13306     ac_cpp_err=$ac_c_preproc_warn_flag
13307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13308   else
13309     ac_cpp_err=
13310   fi
13311 else
13312   ac_cpp_err=yes
13313 fi
13314 if test -z "$ac_cpp_err"; then
13315   ac_header_preproc=yes
13316 else
13317   echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320   ac_header_preproc=no
13321 fi
13322 rm -f conftest.err conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6
13325
13326 # So?  What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328   yes:no: )
13329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333     ac_header_preproc=yes
13334     ;;
13335   no:yes:* )
13336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348     (
13349       cat <<\_ASBOX
13350 ## ----------------------------------------- ##
13351 ## Report this to wx-dev@lists.wxwindows.org ##
13352 ## ----------------------------------------- ##
13353 _ASBOX
13354     ) |
13355       sed "s/^/$as_me: WARNING:     /" >&2
13356     ;;
13357 esac
13358 echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   eval "$as_ac_Header=\$ac_header_preproc"
13364 fi
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13367
13368 fi
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370   cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 _ACEOF
13373
13374 fi
13375
13376 done
13377
13378
13379 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13380
13381 for ac_func in fnmatch
13382 do
13383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13384 echo "$as_me:$LINENO: checking for $ac_func" >&5
13385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13386 if eval "test \"\${$as_ac_var+set}\" = set"; then
13387   echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389   cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13397 #define $ac_func innocuous_$ac_func
13398
13399 /* System header to define __stub macros and hopefully few prototypes,
13400     which can conflict with char $ac_func (); below.
13401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402     <limits.h> exists even on freestanding compilers.  */
13403
13404 #ifdef __STDC__
13405 # include <limits.h>
13406 #else
13407 # include <assert.h>
13408 #endif
13409
13410 #undef $ac_func
13411
13412 /* Override any gcc2 internal prototype to avoid an error.  */
13413 #ifdef __cplusplus
13414 extern "C"
13415 {
13416 #endif
13417 /* We use char because int might match the return type of a gcc2
13418    builtin and then its argument prototype would still apply.  */
13419 char $ac_func ();
13420 /* The GNU C library defines this for functions which it implements
13421     to always fail with ENOSYS.  Some functions are actually named
13422     something starting with __ and the normal name is an alias.  */
13423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13424 choke me
13425 #else
13426 char (*f) () = $ac_func;
13427 #endif
13428 #ifdef __cplusplus
13429 }
13430 #endif
13431
13432 int
13433 main ()
13434 {
13435 return f != $ac_func;
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442   (eval $ac_link) 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -z "$ac_c_werror_flag"
13450                          || test ! -s conftest.err'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; } &&
13456          { ac_try='test -s conftest$ac_exeext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   eval "$as_ac_var=yes"
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 eval "$as_ac_var=no"
13468 fi
13469 rm -f conftest.err conftest.$ac_objext \
13470       conftest$ac_exeext conftest.$ac_ext
13471 fi
13472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13474 if test `eval echo '${'$as_ac_var'}'` = yes; then
13475   cat >>confdefs.h <<_ACEOF
13476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477 _ACEOF
13478
13479 fi
13480 done
13481
13482 fi
13483
13484
13485 for ac_header in langinfo.h
13486 do
13487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489   echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 fi
13494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13496 else
13497   # Is the header compilable?
13498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506 $ac_includes_default
13507 #include <$ac_header>
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511   (eval $ac_compile) 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag"
13519                          || test ! -s conftest.err'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_header_compiler=yes
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_header_compiler=no
13537 fi
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540 echo "${ECHO_T}$ac_header_compiler" >&6
13541
13542 # Is the header present?
13543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13545 cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 #include <$ac_header>
13552 _ACEOF
13553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } >/dev/null; then
13561   if test -s conftest.err; then
13562     ac_cpp_err=$ac_c_preproc_warn_flag
13563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13564   else
13565     ac_cpp_err=
13566   fi
13567 else
13568   ac_cpp_err=yes
13569 fi
13570 if test -z "$ac_cpp_err"; then
13571   ac_header_preproc=yes
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576   ac_header_preproc=no
13577 fi
13578 rm -f conftest.err conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 echo "${ECHO_T}$ac_header_preproc" >&6
13581
13582 # So?  What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584   yes:no: )
13585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589     ac_header_preproc=yes
13590     ;;
13591   no:yes:* )
13592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13604     (
13605       cat <<\_ASBOX
13606 ## ----------------------------------------- ##
13607 ## Report this to wx-dev@lists.wxwindows.org ##
13608 ## ----------------------------------------- ##
13609 _ASBOX
13610     ) |
13611       sed "s/^/$as_me: WARNING:     /" >&2
13612     ;;
13613 esac
13614 echo "$as_me:$LINENO: checking for $ac_header" >&5
13615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   eval "$as_ac_Header=\$ac_header_preproc"
13620 fi
13621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13623
13624 fi
13625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626   cat >>confdefs.h <<_ACEOF
13627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628 _ACEOF
13629
13630 fi
13631
13632 done
13633
13634
13635 case "${host}" in
13636   *-pc-os2_emx | *-pc-os2-emx )
13637             if test $ac_cv_header_langinfo_h = "yes"; then
13638           LIBS="$LIBS -lintl"
13639       fi
13640   ;;
13641 esac
13642
13643 if test "$wxUSE_GUI" = "yes"; then
13644     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13645
13646 for ac_header in X11/Xlib.h
13647 do
13648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650   echo "$as_me:$LINENO: checking for $ac_header" >&5
13651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 fi
13655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13657 else
13658   # Is the header compilable?
13659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 $ac_includes_default
13668 #include <$ac_header>
13669 _ACEOF
13670 rm -f conftest.$ac_objext
13671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13672   (eval $ac_compile) 2>conftest.er1
13673   ac_status=$?
13674   grep -v '^ *+' conftest.er1 >conftest.err
13675   rm -f conftest.er1
13676   cat conftest.err >&5
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } &&
13679          { ac_try='test -z "$ac_c_werror_flag"
13680                          || test ! -s conftest.err'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; } &&
13686          { ac_try='test -s conftest.$ac_objext'
13687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688   (eval $ac_try) 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); }; }; then
13692   ac_header_compiler=yes
13693 else
13694   echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_header_compiler=no
13698 fi
13699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13701 echo "${ECHO_T}$ac_header_compiler" >&6
13702
13703 # Is the header present?
13704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712 #include <$ac_header>
13713 _ACEOF
13714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13716   ac_status=$?
13717   grep -v '^ *+' conftest.er1 >conftest.err
13718   rm -f conftest.er1
13719   cat conftest.err >&5
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } >/dev/null; then
13722   if test -s conftest.err; then
13723     ac_cpp_err=$ac_c_preproc_warn_flag
13724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13725   else
13726     ac_cpp_err=
13727   fi
13728 else
13729   ac_cpp_err=yes
13730 fi
13731 if test -z "$ac_cpp_err"; then
13732   ac_header_preproc=yes
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737   ac_header_preproc=no
13738 fi
13739 rm -f conftest.err conftest.$ac_ext
13740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6
13742
13743 # So?  What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745   yes:no: )
13746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13750     ac_header_preproc=yes
13751     ;;
13752   no:yes:* )
13753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13765     (
13766       cat <<\_ASBOX
13767 ## ----------------------------------------- ##
13768 ## Report this to wx-dev@lists.wxwindows.org ##
13769 ## ----------------------------------------- ##
13770 _ASBOX
13771     ) |
13772       sed "s/^/$as_me: WARNING:     /" >&2
13773     ;;
13774 esac
13775 echo "$as_me:$LINENO: checking for $ac_header" >&5
13776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   eval "$as_ac_Header=\$ac_header_preproc"
13781 fi
13782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13784
13785 fi
13786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13787   cat >>confdefs.h <<_ACEOF
13788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 _ACEOF
13790
13791 fi
13792
13793 done
13794
13795
13796 for ac_header in X11/XKBlib.h
13797 do
13798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13799 echo "$as_me:$LINENO: checking for $ac_header" >&5
13800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13802   echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804   cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h.  */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h.  */
13810
13811                           #if HAVE_X11_XLIB_H
13812                             #include <X11/Xlib.h>
13813                           #endif
13814
13815
13816 #include <$ac_header>
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820   (eval $ac_compile) 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } &&
13827          { ac_try='test -z "$ac_c_werror_flag"
13828                          || test ! -s conftest.err'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; } &&
13834          { ac_try='test -s conftest.$ac_objext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   eval "$as_ac_Header=yes"
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 eval "$as_ac_Header=no"
13846 fi
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13852   cat >>confdefs.h <<_ACEOF
13853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13854 _ACEOF
13855
13856 fi
13857
13858 done
13859
13860     fi
13861 fi
13862
13863
13864 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13865 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13866 if test "${ac_cv_c_const+set}" = set; then
13867   echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869   cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875
13876 int
13877 main ()
13878 {
13879 /* FIXME: Include the comments suggested by Paul. */
13880 #ifndef __cplusplus
13881   /* Ultrix mips cc rejects this.  */
13882   typedef int charset[2];
13883   const charset x;
13884   /* SunOS 4.1.1 cc rejects this.  */
13885   char const *const *ccp;
13886   char **p;
13887   /* NEC SVR4.0.2 mips cc rejects this.  */
13888   struct point {int x, y;};
13889   static struct point const zero = {0,0};
13890   /* AIX XL C 1.02.0.0 rejects this.
13891      It does not let you subtract one const X* pointer from another in
13892      an arm of an if-expression whose if-part is not a constant
13893      expression */
13894   const char *g = "string";
13895   ccp = &g + (g ? g-g : 0);
13896   /* HPUX 7.0 cc rejects these. */
13897   ++ccp;
13898   p = (char**) ccp;
13899   ccp = (char const *const *) p;
13900   { /* SCO 3.2v4 cc rejects this.  */
13901     char *t;
13902     char const *s = 0 ? (char *) 0 : (char const *) 0;
13903
13904     *t++ = 0;
13905   }
13906   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13907     int x[] = {25, 17};
13908     const int *foo = &x[0];
13909     ++foo;
13910   }
13911   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13912     typedef const int *iptr;
13913     iptr p = 0;
13914     ++p;
13915   }
13916   { /* AIX XL C 1.02.0.0 rejects this saying
13917        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13918     struct s { int j; const int *ap[3]; };
13919     struct s *b; b->j = 5;
13920   }
13921   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13922     const int foo = 10;
13923   }
13924 #endif
13925
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932   (eval $ac_compile) 2>conftest.er1
13933   ac_status=$?
13934   grep -v '^ *+' conftest.er1 >conftest.err
13935   rm -f conftest.er1
13936   cat conftest.err >&5
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -z "$ac_c_werror_flag"
13940                          || test ! -s conftest.err'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; } &&
13946          { ac_try='test -s conftest.$ac_objext'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_cv_c_const=yes
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 ac_cv_c_const=no
13958 fi
13959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13960 fi
13961 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13962 echo "${ECHO_T}$ac_cv_c_const" >&6
13963 if test $ac_cv_c_const = no; then
13964
13965 cat >>confdefs.h <<\_ACEOF
13966 #define const
13967 _ACEOF
13968
13969 fi
13970
13971 echo "$as_me:$LINENO: checking for inline" >&5
13972 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13973 if test "${ac_cv_c_inline+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   ac_cv_c_inline=no
13977 for ac_kw in inline __inline__ __inline; do
13978   cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #ifndef __cplusplus
13985 typedef int foo_t;
13986 static $ac_kw foo_t static_foo () {return 0; }
13987 $ac_kw foo_t foo () {return 0; }
13988 #endif
13989
13990 _ACEOF
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993   (eval $ac_compile) 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } &&
14000          { ac_try='test -z "$ac_c_werror_flag"
14001                          || test ! -s conftest.err'
14002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003   (eval $ac_try) 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); }; } &&
14007          { ac_try='test -s conftest.$ac_objext'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   ac_cv_c_inline=$ac_kw; break
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018 fi
14019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14020 done
14021
14022 fi
14023 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14024 echo "${ECHO_T}$ac_cv_c_inline" >&6
14025
14026
14027 case $ac_cv_c_inline in
14028   inline | yes) ;;
14029   *)
14030     case $ac_cv_c_inline in
14031       no) ac_val=;;
14032       *) ac_val=$ac_cv_c_inline;;
14033     esac
14034     cat >>confdefs.h <<_ACEOF
14035 #ifndef __cplusplus
14036 #define inline $ac_val
14037 #endif
14038 _ACEOF
14039     ;;
14040 esac
14041
14042
14043 echo "$as_me:$LINENO: checking for char" >&5
14044 echo $ECHO_N "checking for char... $ECHO_C" >&6
14045 if test "${ac_cv_type_char+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054 $ac_includes_default
14055 int
14056 main ()
14057 {
14058 if ((char *) 0)
14059   return 0;
14060 if (sizeof (char))
14061   return 0;
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068   (eval $ac_compile) 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } &&
14075          { ac_try='test -z "$ac_c_werror_flag"
14076                          || test ! -s conftest.err'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest.$ac_objext'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; }; then
14088   ac_cv_type_char=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 ac_cv_type_char=no
14094 fi
14095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096 fi
14097 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14098 echo "${ECHO_T}$ac_cv_type_char" >&6
14099
14100 echo "$as_me:$LINENO: checking size of char" >&5
14101 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14102 if test "${ac_cv_sizeof_char+set}" = set; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105   if test "$ac_cv_type_char" = yes; then
14106   # The cast to unsigned long works around a bug in the HP C Compiler
14107   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14108   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14109   # This bug is HP SR number 8606223364.
14110   if test "$cross_compiling" = yes; then
14111   # Depending upon the size, compute the lo and hi bounds.
14112 cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118 $ac_includes_default
14119 int
14120 main ()
14121 {
14122 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14123 test_array [0] = 0
14124
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 rm -f conftest.$ac_objext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14131   (eval $ac_compile) 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag"
14139                          || test ! -s conftest.err'
14140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141   (eval $ac_try) 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; } &&
14145          { ac_try='test -s conftest.$ac_objext'
14146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147   (eval $ac_try) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; }; then
14151   ac_lo=0 ac_mid=0
14152   while :; do
14153     cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 $ac_includes_default
14160 int
14161 main ()
14162 {
14163 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14164 test_array [0] = 0
14165
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_c_werror_flag"
14180                          || test ! -s conftest.err'
14181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182   (eval $ac_try) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; } &&
14186          { ac_try='test -s conftest.$ac_objext'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   ac_hi=$ac_mid; break
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197 ac_lo=`expr $ac_mid + 1`
14198                     if test $ac_lo -le $ac_mid; then
14199                       ac_lo= ac_hi=
14200                       break
14201                     fi
14202                     ac_mid=`expr 2 '*' $ac_mid + 1`
14203 fi
14204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14205   done
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 $ac_includes_default
14217 int
14218 main ()
14219 {
14220 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14221 test_array [0] = 0
14222
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 rm -f conftest.$ac_objext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229   (eval $ac_compile) 2>conftest.er1
14230   ac_status=$?
14231   grep -v '^ *+' conftest.er1 >conftest.err
14232   rm -f conftest.er1
14233   cat conftest.err >&5
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); } &&
14236          { ac_try='test -z "$ac_c_werror_flag"
14237                          || test ! -s conftest.err'
14238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239   (eval $ac_try) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; } &&
14243          { ac_try='test -s conftest.$ac_objext'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249   ac_hi=-1 ac_mid=-1
14250   while :; do
14251     cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 $ac_includes_default
14258 int
14259 main ()
14260 {
14261 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14262 test_array [0] = 0
14263
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270   (eval $ac_compile) 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } &&
14277          { ac_try='test -z "$ac_c_werror_flag"
14278                          || test ! -s conftest.err'
14279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280   (eval $ac_try) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; } &&
14284          { ac_try='test -s conftest.$ac_objext'
14285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286   (eval $ac_try) 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_lo=$ac_mid; break
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 ac_hi=`expr '(' $ac_mid ')' - 1`
14296                        if test $ac_mid -le $ac_hi; then
14297                          ac_lo= ac_hi=
14298                          break
14299                        fi
14300                        ac_mid=`expr 2 '*' $ac_mid`
14301 fi
14302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303   done
14304 else
14305   echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308 ac_lo= ac_hi=
14309 fi
14310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14311 fi
14312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313 # Binary search between lo and hi bounds.
14314 while test "x$ac_lo" != "x$ac_hi"; do
14315   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14316   cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 $ac_includes_default
14323 int
14324 main ()
14325 {
14326 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14327 test_array [0] = 0
14328
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335   (eval $ac_compile) 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -z "$ac_c_werror_flag"
14343                          || test ! -s conftest.err'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; } &&
14349          { ac_try='test -s conftest.$ac_objext'
14350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351   (eval $ac_try) 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   ac_hi=$ac_mid
14356 else
14357   echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360 ac_lo=`expr '(' $ac_mid ')' + 1`
14361 fi
14362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14363 done
14364 case $ac_lo in
14365 ?*) ac_cv_sizeof_char=$ac_lo;;
14366 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14367 See \`config.log' for more details." >&5
14368 echo "$as_me: error: cannot compute sizeof (char), 77
14369 See \`config.log' for more details." >&2;}
14370    { (exit 1); exit 1; }; } ;;
14371 esac
14372 else
14373   if test "$cross_compiling" = yes; then
14374   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14375 See \`config.log' for more details." >&5
14376 echo "$as_me: error: cannot run test program while cross compiling
14377 See \`config.log' for more details." >&2;}
14378    { (exit 1); exit 1; }; }
14379 else
14380   cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 $ac_includes_default
14387 long longval () { return (long) (sizeof (char)); }
14388 unsigned long ulongval () { return (long) (sizeof (char)); }
14389 #include <stdio.h>
14390 #include <stdlib.h>
14391 int
14392 main ()
14393 {
14394
14395   FILE *f = fopen ("conftest.val", "w");
14396   if (! f)
14397     exit (1);
14398   if (((long) (sizeof (char))) < 0)
14399     {
14400       long i = longval ();
14401       if (i != ((long) (sizeof (char))))
14402         exit (1);
14403       fprintf (f, "%ld\n", i);
14404     }
14405   else
14406     {
14407       unsigned long i = ulongval ();
14408       if (i != ((long) (sizeof (char))))
14409         exit (1);
14410       fprintf (f, "%lu\n", i);
14411     }
14412   exit (ferror (f) || fclose (f) != 0);
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 rm -f conftest$ac_exeext
14419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14420   (eval $ac_link) 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425   (eval $ac_try) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; }; then
14429   ac_cv_sizeof_char=`cat conftest.val`
14430 else
14431   echo "$as_me: program exited with status $ac_status" >&5
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 ( exit $ac_status )
14436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14437 See \`config.log' for more details." >&5
14438 echo "$as_me: error: cannot compute sizeof (char), 77
14439 See \`config.log' for more details." >&2;}
14440    { (exit 1); exit 1; }; }
14441 fi
14442 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14443 fi
14444 fi
14445 rm -f conftest.val
14446 else
14447   ac_cv_sizeof_char=0
14448 fi
14449 fi
14450 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14451 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14452 cat >>confdefs.h <<_ACEOF
14453 #define SIZEOF_CHAR $ac_cv_sizeof_char
14454 _ACEOF
14455
14456
14457 echo "$as_me:$LINENO: checking for short" >&5
14458 echo $ECHO_N "checking for short... $ECHO_C" >&6
14459 if test "${ac_cv_type_short+set}" = set; then
14460   echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462   cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 $ac_includes_default
14469 int
14470 main ()
14471 {
14472 if ((short *) 0)
14473   return 0;
14474 if (sizeof (short))
14475   return 0;
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482   (eval $ac_compile) 2>conftest.er1
14483   ac_status=$?
14484   grep -v '^ *+' conftest.er1 >conftest.err
14485   rm -f conftest.er1
14486   cat conftest.err >&5
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } &&
14489          { ac_try='test -z "$ac_c_werror_flag"
14490                          || test ! -s conftest.err'
14491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492   (eval $ac_try) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; } &&
14496          { ac_try='test -s conftest.$ac_objext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   ac_cv_type_short=yes
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_cv_type_short=no
14508 fi
14509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14512 echo "${ECHO_T}$ac_cv_type_short" >&6
14513
14514 echo "$as_me:$LINENO: checking size of short" >&5
14515 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14516 if test "${ac_cv_sizeof_short+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   if test "$ac_cv_type_short" = yes; then
14520   # The cast to unsigned long works around a bug in the HP C Compiler
14521   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14522   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14523   # This bug is HP SR number 8606223364.
14524   if test "$cross_compiling" = yes; then
14525   # Depending upon the size, compute the lo and hi bounds.
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 $ac_includes_default
14533 int
14534 main ()
14535 {
14536 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14537 test_array [0] = 0
14538
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545   (eval $ac_compile) 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_c_werror_flag"
14553                          || test ! -s conftest.err'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; } &&
14559          { ac_try='test -s conftest.$ac_objext'
14560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561   (eval $ac_try) 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); }; }; then
14565   ac_lo=0 ac_mid=0
14566   while :; do
14567     cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h.  */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h.  */
14573 $ac_includes_default
14574 int
14575 main ()
14576 {
14577 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14578 test_array [0] = 0
14579
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586   (eval $ac_compile) 2>conftest.er1
14587   ac_status=$?
14588   grep -v '^ *+' conftest.er1 >conftest.err
14589   rm -f conftest.er1
14590   cat conftest.err >&5
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } &&
14593          { ac_try='test -z "$ac_c_werror_flag"
14594                          || test ! -s conftest.err'
14595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596   (eval $ac_try) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; } &&
14600          { ac_try='test -s conftest.$ac_objext'
14601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602   (eval $ac_try) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; }; then
14606   ac_hi=$ac_mid; break
14607 else
14608   echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14610
14611 ac_lo=`expr $ac_mid + 1`
14612                     if test $ac_lo -le $ac_mid; then
14613                       ac_lo= ac_hi=
14614                       break
14615                     fi
14616                     ac_mid=`expr 2 '*' $ac_mid + 1`
14617 fi
14618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14619   done
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630 $ac_includes_default
14631 int
14632 main ()
14633 {
14634 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14635 test_array [0] = 0
14636
14637   ;
14638   return 0;
14639 }
14640 _ACEOF
14641 rm -f conftest.$ac_objext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643   (eval $ac_compile) 2>conftest.er1
14644   ac_status=$?
14645   grep -v '^ *+' conftest.er1 >conftest.err
14646   rm -f conftest.er1
14647   cat conftest.err >&5
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } &&
14650          { ac_try='test -z "$ac_c_werror_flag"
14651                          || test ! -s conftest.err'
14652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653   (eval $ac_try) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; } &&
14657          { ac_try='test -s conftest.$ac_objext'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; }; then
14663   ac_hi=-1 ac_mid=-1
14664   while :; do
14665     cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 $ac_includes_default
14672 int
14673 main ()
14674 {
14675 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14676 test_array [0] = 0
14677
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684   (eval $ac_compile) 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -z "$ac_c_werror_flag"
14692                          || 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   ac_lo=$ac_mid; break
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_hi=`expr '(' $ac_mid ')' - 1`
14710                        if test $ac_mid -le $ac_hi; then
14711                          ac_lo= ac_hi=
14712                          break
14713                        fi
14714                        ac_mid=`expr 2 '*' $ac_mid`
14715 fi
14716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14717   done
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722 ac_lo= ac_hi=
14723 fi
14724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14725 fi
14726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14727 # Binary search between lo and hi bounds.
14728 while test "x$ac_lo" != "x$ac_hi"; do
14729   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14730   cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h.  */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h.  */
14736 $ac_includes_default
14737 int
14738 main ()
14739 {
14740 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14741 test_array [0] = 0
14742
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749   (eval $ac_compile) 2>conftest.er1
14750   ac_status=$?
14751   grep -v '^ *+' conftest.er1 >conftest.err
14752   rm -f conftest.er1
14753   cat conftest.err >&5
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -z "$ac_c_werror_flag"
14757                          || test ! -s conftest.err'
14758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759   (eval $ac_try) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); }; } &&
14763          { ac_try='test -s conftest.$ac_objext'
14764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765   (eval $ac_try) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; }; then
14769   ac_hi=$ac_mid
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ac_lo=`expr '(' $ac_mid ')' + 1`
14775 fi
14776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 done
14778 case $ac_lo in
14779 ?*) ac_cv_sizeof_short=$ac_lo;;
14780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14781 See \`config.log' for more details." >&5
14782 echo "$as_me: error: cannot compute sizeof (short), 77
14783 See \`config.log' for more details." >&2;}
14784    { (exit 1); exit 1; }; } ;;
14785 esac
14786 else
14787   if test "$cross_compiling" = yes; then
14788   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14789 See \`config.log' for more details." >&5
14790 echo "$as_me: error: cannot run test program while cross compiling
14791 See \`config.log' for more details." >&2;}
14792    { (exit 1); exit 1; }; }
14793 else
14794   cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800 $ac_includes_default
14801 long longval () { return (long) (sizeof (short)); }
14802 unsigned long ulongval () { return (long) (sizeof (short)); }
14803 #include <stdio.h>
14804 #include <stdlib.h>
14805 int
14806 main ()
14807 {
14808
14809   FILE *f = fopen ("conftest.val", "w");
14810   if (! f)
14811     exit (1);
14812   if (((long) (sizeof (short))) < 0)
14813     {
14814       long i = longval ();
14815       if (i != ((long) (sizeof (short))))
14816         exit (1);
14817       fprintf (f, "%ld\n", i);
14818     }
14819   else
14820     {
14821       unsigned long i = ulongval ();
14822       if (i != ((long) (sizeof (short))))
14823         exit (1);
14824       fprintf (f, "%lu\n", i);
14825     }
14826   exit (ferror (f) || fclose (f) != 0);
14827
14828   ;
14829   return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834   (eval $ac_link) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   ac_cv_sizeof_short=`cat conftest.val`
14844 else
14845   echo "$as_me: program exited with status $ac_status" >&5
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ( exit $ac_status )
14850 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14851 See \`config.log' for more details." >&5
14852 echo "$as_me: error: cannot compute sizeof (short), 77
14853 See \`config.log' for more details." >&2;}
14854    { (exit 1); exit 1; }; }
14855 fi
14856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14857 fi
14858 fi
14859 rm -f conftest.val
14860 else
14861   ac_cv_sizeof_short=0
14862 fi
14863 fi
14864 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14865 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14866 cat >>confdefs.h <<_ACEOF
14867 #define SIZEOF_SHORT $ac_cv_sizeof_short
14868 _ACEOF
14869
14870
14871 echo "$as_me:$LINENO: checking for void *" >&5
14872 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14873 if test "${ac_cv_type_void_p+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 $ac_includes_default
14883 int
14884 main ()
14885 {
14886 if ((void * *) 0)
14887   return 0;
14888 if (sizeof (void *))
14889   return 0;
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896   (eval $ac_compile) 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag"
14904                          || test ! -s conftest.err'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest.$ac_objext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_cv_type_void_p=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_cv_type_void_p=no
14922 fi
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14924 fi
14925 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14926 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14927
14928 echo "$as_me:$LINENO: checking size of void *" >&5
14929 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14930 if test "${ac_cv_sizeof_void_p+set}" = set; then
14931   echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933   if test "$ac_cv_type_void_p" = yes; then
14934   # The cast to unsigned long works around a bug in the HP C Compiler
14935   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14936   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14937   # This bug is HP SR number 8606223364.
14938   if test "$cross_compiling" = yes; then
14939   # Depending upon the size, compute the lo and hi bounds.
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h.  */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h.  */
14946 $ac_includes_default
14947 int
14948 main ()
14949 {
14950 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14951 test_array [0] = 0
14952
14953   ;
14954   return 0;
14955 }
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14959   (eval $ac_compile) 2>conftest.er1
14960   ac_status=$?
14961   grep -v '^ *+' conftest.er1 >conftest.err
14962   rm -f conftest.er1
14963   cat conftest.err >&5
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } &&
14966          { ac_try='test -z "$ac_c_werror_flag"
14967                          || test ! -s conftest.err'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; } &&
14973          { ac_try='test -s conftest.$ac_objext'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; }; then
14979   ac_lo=0 ac_mid=0
14980   while :; do
14981     cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987 $ac_includes_default
14988 int
14989 main ()
14990 {
14991 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14992 test_array [0] = 0
14993
14994   ;
14995   return 0;
14996 }
14997 _ACEOF
14998 rm -f conftest.$ac_objext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15000   (eval $ac_compile) 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } &&
15007          { ac_try='test -z "$ac_c_werror_flag"
15008                          || test ! -s conftest.err'
15009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010   (eval $ac_try) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); }; } &&
15014          { ac_try='test -s conftest.$ac_objext'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; }; then
15020   ac_hi=$ac_mid; break
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_lo=`expr $ac_mid + 1`
15026                     if test $ac_lo -le $ac_mid; then
15027                       ac_lo= ac_hi=
15028                       break
15029                     fi
15030                     ac_mid=`expr 2 '*' $ac_mid + 1`
15031 fi
15032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15033   done
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044 $ac_includes_default
15045 int
15046 main ()
15047 {
15048 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15049 test_array [0] = 0
15050
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057   (eval $ac_compile) 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag"
15065                          || test ! -s conftest.err'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest.$ac_objext'
15072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073   (eval $ac_try) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; }; then
15077   ac_hi=-1 ac_mid=-1
15078   while :; do
15079     cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 $ac_includes_default
15086 int
15087 main ()
15088 {
15089 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15090 test_array [0] = 0
15091
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098   (eval $ac_compile) 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } &&
15105          { ac_try='test -z "$ac_c_werror_flag"
15106                          || test ! -s conftest.err'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; } &&
15112          { ac_try='test -s conftest.$ac_objext'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; }; then
15118   ac_lo=$ac_mid; break
15119 else
15120   echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123 ac_hi=`expr '(' $ac_mid ')' - 1`
15124                        if test $ac_mid -le $ac_hi; then
15125                          ac_lo= ac_hi=
15126                          break
15127                        fi
15128                        ac_mid=`expr 2 '*' $ac_mid`
15129 fi
15130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15131   done
15132 else
15133   echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136 ac_lo= ac_hi=
15137 fi
15138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15139 fi
15140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15141 # Binary search between lo and hi bounds.
15142 while test "x$ac_lo" != "x$ac_hi"; do
15143   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15144   cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 int
15152 main ()
15153 {
15154 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15155 test_array [0] = 0
15156
15157   ;
15158   return 0;
15159 }
15160 _ACEOF
15161 rm -f conftest.$ac_objext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163   (eval $ac_compile) 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -z "$ac_c_werror_flag"
15171                          || test ! -s conftest.err'
15172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173   (eval $ac_try) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; } &&
15177          { ac_try='test -s conftest.$ac_objext'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }; then
15183   ac_hi=$ac_mid
15184 else
15185   echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188 ac_lo=`expr '(' $ac_mid ')' + 1`
15189 fi
15190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15191 done
15192 case $ac_lo in
15193 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15195 See \`config.log' for more details." >&5
15196 echo "$as_me: error: cannot compute sizeof (void *), 77
15197 See \`config.log' for more details." >&2;}
15198    { (exit 1); exit 1; }; } ;;
15199 esac
15200 else
15201   if test "$cross_compiling" = yes; then
15202   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15203 See \`config.log' for more details." >&5
15204 echo "$as_me: error: cannot run test program while cross compiling
15205 See \`config.log' for more details." >&2;}
15206    { (exit 1); exit 1; }; }
15207 else
15208   cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 $ac_includes_default
15215 long longval () { return (long) (sizeof (void *)); }
15216 unsigned long ulongval () { return (long) (sizeof (void *)); }
15217 #include <stdio.h>
15218 #include <stdlib.h>
15219 int
15220 main ()
15221 {
15222
15223   FILE *f = fopen ("conftest.val", "w");
15224   if (! f)
15225     exit (1);
15226   if (((long) (sizeof (void *))) < 0)
15227     {
15228       long i = longval ();
15229       if (i != ((long) (sizeof (void *))))
15230         exit (1);
15231       fprintf (f, "%ld\n", i);
15232     }
15233   else
15234     {
15235       unsigned long i = ulongval ();
15236       if (i != ((long) (sizeof (void *))))
15237         exit (1);
15238       fprintf (f, "%lu\n", i);
15239     }
15240   exit (ferror (f) || fclose (f) != 0);
15241
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248   (eval $ac_link) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   ac_cv_sizeof_void_p=`cat conftest.val`
15258 else
15259   echo "$as_me: program exited with status $ac_status" >&5
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ( exit $ac_status )
15264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15265 See \`config.log' for more details." >&5
15266 echo "$as_me: error: cannot compute sizeof (void *), 77
15267 See \`config.log' for more details." >&2;}
15268    { (exit 1); exit 1; }; }
15269 fi
15270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15271 fi
15272 fi
15273 rm -f conftest.val
15274 else
15275   ac_cv_sizeof_void_p=0
15276 fi
15277 fi
15278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15279 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15280 cat >>confdefs.h <<_ACEOF
15281 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15282 _ACEOF
15283
15284
15285 echo "$as_me:$LINENO: checking for int" >&5
15286 echo $ECHO_N "checking for int... $ECHO_C" >&6
15287 if test "${ac_cv_type_int+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 $ac_includes_default
15297 int
15298 main ()
15299 {
15300 if ((int *) 0)
15301   return 0;
15302 if (sizeof (int))
15303   return 0;
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310   (eval $ac_compile) 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag"
15318                          || test ! -s conftest.err'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; } &&
15324          { ac_try='test -s conftest.$ac_objext'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; }; then
15330   ac_cv_type_int=yes
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_cv_type_int=no
15336 fi
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 fi
15339 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15340 echo "${ECHO_T}$ac_cv_type_int" >&6
15341
15342 echo "$as_me:$LINENO: checking size of int" >&5
15343 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15344 if test "${ac_cv_sizeof_int+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347   if test "$ac_cv_type_int" = yes; then
15348   # The cast to unsigned long works around a bug in the HP C Compiler
15349   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15350   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15351   # This bug is HP SR number 8606223364.
15352   if test "$cross_compiling" = yes; then
15353   # Depending upon the size, compute the lo and hi bounds.
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 $ac_includes_default
15361 int
15362 main ()
15363 {
15364 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15365 test_array [0] = 0
15366
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373   (eval $ac_compile) 2>conftest.er1
15374   ac_status=$?
15375   grep -v '^ *+' conftest.er1 >conftest.err
15376   rm -f conftest.er1
15377   cat conftest.err >&5
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -z "$ac_c_werror_flag"
15381                          || test ! -s conftest.err'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; } &&
15387          { ac_try='test -s conftest.$ac_objext'
15388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389   (eval $ac_try) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; }; then
15393   ac_lo=0 ac_mid=0
15394   while :; do
15395     cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 $ac_includes_default
15402 int
15403 main ()
15404 {
15405 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15406 test_array [0] = 0
15407
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414   (eval $ac_compile) 2>conftest.er1
15415   ac_status=$?
15416   grep -v '^ *+' conftest.er1 >conftest.err
15417   rm -f conftest.er1
15418   cat conftest.err >&5
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } &&
15421          { ac_try='test -z "$ac_c_werror_flag"
15422                          || test ! -s conftest.err'
15423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424   (eval $ac_try) 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; } &&
15428          { ac_try='test -s conftest.$ac_objext'
15429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430   (eval $ac_try) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; }; then
15434   ac_hi=$ac_mid; break
15435 else
15436   echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439 ac_lo=`expr $ac_mid + 1`
15440                     if test $ac_lo -le $ac_mid; then
15441                       ac_lo= ac_hi=
15442                       break
15443                     fi
15444                     ac_mid=`expr 2 '*' $ac_mid + 1`
15445 fi
15446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15447   done
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h.  */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h.  */
15458 $ac_includes_default
15459 int
15460 main ()
15461 {
15462 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15463 test_array [0] = 0
15464
15465   ;
15466   return 0;
15467 }
15468 _ACEOF
15469 rm -f conftest.$ac_objext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15471   (eval $ac_compile) 2>conftest.er1
15472   ac_status=$?
15473   grep -v '^ *+' conftest.er1 >conftest.err
15474   rm -f conftest.er1
15475   cat conftest.err >&5
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } &&
15478          { ac_try='test -z "$ac_c_werror_flag"
15479                          || test ! -s conftest.err'
15480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481   (eval $ac_try) 2>&5
15482   ac_status=$?
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); }; } &&
15485          { ac_try='test -s conftest.$ac_objext'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; }; then
15491   ac_hi=-1 ac_mid=-1
15492   while :; do
15493     cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 $ac_includes_default
15500 int
15501 main ()
15502 {
15503 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15504 test_array [0] = 0
15505
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512   (eval $ac_compile) 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -z "$ac_c_werror_flag"
15520                          || test ! -s conftest.err'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; } &&
15526          { ac_try='test -s conftest.$ac_objext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   ac_lo=$ac_mid; break
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ac_hi=`expr '(' $ac_mid ')' - 1`
15538                        if test $ac_mid -le $ac_hi; then
15539                          ac_lo= ac_hi=
15540                          break
15541                        fi
15542                        ac_mid=`expr 2 '*' $ac_mid`
15543 fi
15544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15545   done
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550 ac_lo= ac_hi=
15551 fi
15552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15553 fi
15554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15555 # Binary search between lo and hi bounds.
15556 while test "x$ac_lo" != "x$ac_hi"; do
15557   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15558   cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 $ac_includes_default
15565 int
15566 main ()
15567 {
15568 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15569 test_array [0] = 0
15570
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_hi=$ac_mid
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 ac_lo=`expr '(' $ac_mid ')' + 1`
15603 fi
15604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15605 done
15606 case $ac_lo in
15607 ?*) ac_cv_sizeof_int=$ac_lo;;
15608 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15609 See \`config.log' for more details." >&5
15610 echo "$as_me: error: cannot compute sizeof (int), 77
15611 See \`config.log' for more details." >&2;}
15612    { (exit 1); exit 1; }; } ;;
15613 esac
15614 else
15615   if test "$cross_compiling" = yes; then
15616   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15617 See \`config.log' for more details." >&5
15618 echo "$as_me: error: cannot run test program while cross compiling
15619 See \`config.log' for more details." >&2;}
15620    { (exit 1); exit 1; }; }
15621 else
15622   cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628 $ac_includes_default
15629 long longval () { return (long) (sizeof (int)); }
15630 unsigned long ulongval () { return (long) (sizeof (int)); }
15631 #include <stdio.h>
15632 #include <stdlib.h>
15633 int
15634 main ()
15635 {
15636
15637   FILE *f = fopen ("conftest.val", "w");
15638   if (! f)
15639     exit (1);
15640   if (((long) (sizeof (int))) < 0)
15641     {
15642       long i = longval ();
15643       if (i != ((long) (sizeof (int))))
15644         exit (1);
15645       fprintf (f, "%ld\n", i);
15646     }
15647   else
15648     {
15649       unsigned long i = ulongval ();
15650       if (i != ((long) (sizeof (int))))
15651         exit (1);
15652       fprintf (f, "%lu\n", i);
15653     }
15654   exit (ferror (f) || fclose (f) != 0);
15655
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 rm -f conftest$ac_exeext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662   (eval $ac_link) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   ac_cv_sizeof_int=`cat conftest.val`
15672 else
15673   echo "$as_me: program exited with status $ac_status" >&5
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ( exit $ac_status )
15678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15679 See \`config.log' for more details." >&5
15680 echo "$as_me: error: cannot compute sizeof (int), 77
15681 See \`config.log' for more details." >&2;}
15682    { (exit 1); exit 1; }; }
15683 fi
15684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15685 fi
15686 fi
15687 rm -f conftest.val
15688 else
15689   ac_cv_sizeof_int=0
15690 fi
15691 fi
15692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15693 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15694 cat >>confdefs.h <<_ACEOF
15695 #define SIZEOF_INT $ac_cv_sizeof_int
15696 _ACEOF
15697
15698
15699 echo "$as_me:$LINENO: checking for long" >&5
15700 echo $ECHO_N "checking for long... $ECHO_C" >&6
15701 if test "${ac_cv_type_long+set}" = set; then
15702   echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704   cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710 $ac_includes_default
15711 int
15712 main ()
15713 {
15714 if ((long *) 0)
15715   return 0;
15716 if (sizeof (long))
15717   return 0;
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 rm -f conftest.$ac_objext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15724   (eval $ac_compile) 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -z "$ac_c_werror_flag"
15732                          || test ! -s conftest.err'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_type_long=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_cv_type_long=no
15750 fi
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15752 fi
15753 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15754 echo "${ECHO_T}$ac_cv_type_long" >&6
15755
15756 echo "$as_me:$LINENO: checking size of long" >&5
15757 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15758 if test "${ac_cv_sizeof_long+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   if test "$ac_cv_type_long" = yes; then
15762   # The cast to unsigned long works around a bug in the HP C Compiler
15763   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15764   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15765   # This bug is HP SR number 8606223364.
15766   if test "$cross_compiling" = yes; then
15767   # Depending upon the size, compute the lo and hi bounds.
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774 $ac_includes_default
15775 int
15776 main ()
15777 {
15778 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15779 test_array [0] = 0
15780
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 rm -f conftest.$ac_objext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15787   (eval $ac_compile) 2>conftest.er1
15788   ac_status=$?
15789   grep -v '^ *+' conftest.er1 >conftest.err
15790   rm -f conftest.er1
15791   cat conftest.err >&5
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } &&
15794          { ac_try='test -z "$ac_c_werror_flag"
15795                          || test ! -s conftest.err'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; } &&
15801          { ac_try='test -s conftest.$ac_objext'
15802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803   (eval $ac_try) 2>&5
15804   ac_status=$?
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); }; }; then
15807   ac_lo=0 ac_mid=0
15808   while :; do
15809     cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815 $ac_includes_default
15816 int
15817 main ()
15818 {
15819 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15820 test_array [0] = 0
15821
15822   ;
15823   return 0;
15824 }
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828   (eval $ac_compile) 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -z "$ac_c_werror_flag"
15836                          || test ! -s conftest.err'
15837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838   (eval $ac_try) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; } &&
15842          { ac_try='test -s conftest.$ac_objext'
15843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844   (eval $ac_try) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; }; then
15848   ac_hi=$ac_mid; break
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 ac_lo=`expr $ac_mid + 1`
15854                     if test $ac_lo -le $ac_mid; then
15855                       ac_lo= ac_hi=
15856                       break
15857                     fi
15858                     ac_mid=`expr 2 '*' $ac_mid + 1`
15859 fi
15860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861   done
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h.  */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h.  */
15872 $ac_includes_default
15873 int
15874 main ()
15875 {
15876 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15877 test_array [0] = 0
15878
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885   (eval $ac_compile) 2>conftest.er1
15886   ac_status=$?
15887   grep -v '^ *+' conftest.er1 >conftest.err
15888   rm -f conftest.er1
15889   cat conftest.err >&5
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); } &&
15892          { ac_try='test -z "$ac_c_werror_flag"
15893                          || test ! -s conftest.err'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; } &&
15899          { ac_try='test -s conftest.$ac_objext'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; }; then
15905   ac_hi=-1 ac_mid=-1
15906   while :; do
15907     cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913 $ac_includes_default
15914 int
15915 main ()
15916 {
15917 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15918 test_array [0] = 0
15919
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926   (eval $ac_compile) 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -z "$ac_c_werror_flag"
15934                          || test ! -s conftest.err'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; } &&
15940          { ac_try='test -s conftest.$ac_objext'
15941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942   (eval $ac_try) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; }; then
15946   ac_lo=$ac_mid; break
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ac_hi=`expr '(' $ac_mid ')' - 1`
15952                        if test $ac_mid -le $ac_hi; then
15953                          ac_lo= ac_hi=
15954                          break
15955                        fi
15956                        ac_mid=`expr 2 '*' $ac_mid`
15957 fi
15958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15959   done
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964 ac_lo= ac_hi=
15965 fi
15966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15967 fi
15968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15969 # Binary search between lo and hi bounds.
15970 while test "x$ac_lo" != "x$ac_hi"; do
15971   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15972   cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 $ac_includes_default
15979 int
15980 main ()
15981 {
15982 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15983 test_array [0] = 0
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991   (eval $ac_compile) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag"
15999                          || test ! -s conftest.err'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; } &&
16005          { ac_try='test -s conftest.$ac_objext'
16006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007   (eval $ac_try) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   ac_hi=$ac_mid
16012 else
16013   echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 ac_lo=`expr '(' $ac_mid ')' + 1`
16017 fi
16018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16019 done
16020 case $ac_lo in
16021 ?*) ac_cv_sizeof_long=$ac_lo;;
16022 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16023 See \`config.log' for more details." >&5
16024 echo "$as_me: error: cannot compute sizeof (long), 77
16025 See \`config.log' for more details." >&2;}
16026    { (exit 1); exit 1; }; } ;;
16027 esac
16028 else
16029   if test "$cross_compiling" = yes; then
16030   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16031 See \`config.log' for more details." >&5
16032 echo "$as_me: error: cannot run test program while cross compiling
16033 See \`config.log' for more details." >&2;}
16034    { (exit 1); exit 1; }; }
16035 else
16036   cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 $ac_includes_default
16043 long longval () { return (long) (sizeof (long)); }
16044 unsigned long ulongval () { return (long) (sizeof (long)); }
16045 #include <stdio.h>
16046 #include <stdlib.h>
16047 int
16048 main ()
16049 {
16050
16051   FILE *f = fopen ("conftest.val", "w");
16052   if (! f)
16053     exit (1);
16054   if (((long) (sizeof (long))) < 0)
16055     {
16056       long i = longval ();
16057       if (i != ((long) (sizeof (long))))
16058         exit (1);
16059       fprintf (f, "%ld\n", i);
16060     }
16061   else
16062     {
16063       unsigned long i = ulongval ();
16064       if (i != ((long) (sizeof (long))))
16065         exit (1);
16066       fprintf (f, "%lu\n", i);
16067     }
16068   exit (ferror (f) || fclose (f) != 0);
16069
16070   ;
16071   return 0;
16072 }
16073 _ACEOF
16074 rm -f conftest$ac_exeext
16075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16076   (eval $ac_link) 2>&5
16077   ac_status=$?
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081   (eval $ac_try) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }; then
16085   ac_cv_sizeof_long=`cat conftest.val`
16086 else
16087   echo "$as_me: program exited with status $ac_status" >&5
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ( exit $ac_status )
16092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16093 See \`config.log' for more details." >&5
16094 echo "$as_me: error: cannot compute sizeof (long), 77
16095 See \`config.log' for more details." >&2;}
16096    { (exit 1); exit 1; }; }
16097 fi
16098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16099 fi
16100 fi
16101 rm -f conftest.val
16102 else
16103   ac_cv_sizeof_long=0
16104 fi
16105 fi
16106 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16107 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16108 cat >>confdefs.h <<_ACEOF
16109 #define SIZEOF_LONG $ac_cv_sizeof_long
16110 _ACEOF
16111
16112
16113
16114 case "${host}" in
16115     arm-*-linux* )
16116         echo "$as_me:$LINENO: checking for long long" >&5
16117 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16118 if test "${ac_cv_type_long_long+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   cat >conftest.$ac_ext <<_ACEOF
16122 /* confdefs.h.  */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h.  */
16127 $ac_includes_default
16128 int
16129 main ()
16130 {
16131 if ((long long *) 0)
16132   return 0;
16133 if (sizeof (long long))
16134   return 0;
16135   ;
16136   return 0;
16137 }
16138 _ACEOF
16139 rm -f conftest.$ac_objext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16141   (eval $ac_compile) 2>conftest.er1
16142   ac_status=$?
16143   grep -v '^ *+' conftest.er1 >conftest.err
16144   rm -f conftest.er1
16145   cat conftest.err >&5
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); } &&
16148          { ac_try='test -z "$ac_c_werror_flag"
16149                          || test ! -s conftest.err'
16150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151   (eval $ac_try) 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); }; } &&
16155          { ac_try='test -s conftest.$ac_objext'
16156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157   (eval $ac_try) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_cv_type_long_long=yes
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 ac_cv_type_long_long=no
16167 fi
16168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16169 fi
16170 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16171 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16172
16173 echo "$as_me:$LINENO: checking size of long long" >&5
16174 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16175 if test "${ac_cv_sizeof_long_long+set}" = set; then
16176   echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178   if test "$ac_cv_type_long_long" = yes; then
16179   # The cast to unsigned long works around a bug in the HP C Compiler
16180   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16181   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16182   # This bug is HP SR number 8606223364.
16183   if test "$cross_compiling" = yes; then
16184   # Depending upon the size, compute the lo and hi bounds.
16185 cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 $ac_includes_default
16192 int
16193 main ()
16194 {
16195 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16196 test_array [0] = 0
16197
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -z "$ac_c_werror_flag"
16212                          || test ! -s conftest.err'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; } &&
16218          { ac_try='test -s conftest.$ac_objext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   ac_lo=0 ac_mid=0
16225   while :; do
16226     cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 $ac_includes_default
16233 int
16234 main ()
16235 {
16236 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16237 test_array [0] = 0
16238
16239   ;
16240   return 0;
16241 }
16242 _ACEOF
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245   (eval $ac_compile) 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } &&
16252          { ac_try='test -z "$ac_c_werror_flag"
16253                          || test ! -s conftest.err'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; } &&
16259          { ac_try='test -s conftest.$ac_objext'
16260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261   (eval $ac_try) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; }; then
16265   ac_hi=$ac_mid; break
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 ac_lo=`expr $ac_mid + 1`
16271                     if test $ac_lo -le $ac_mid; then
16272                       ac_lo= ac_hi=
16273                       break
16274                     fi
16275                     ac_mid=`expr 2 '*' $ac_mid + 1`
16276 fi
16277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16278   done
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h.  */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h.  */
16289 $ac_includes_default
16290 int
16291 main ()
16292 {
16293 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16294 test_array [0] = 0
16295
16296   ;
16297   return 0;
16298 }
16299 _ACEOF
16300 rm -f conftest.$ac_objext
16301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16302   (eval $ac_compile) 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -z "$ac_c_werror_flag"
16310                          || test ! -s conftest.err'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; } &&
16316          { ac_try='test -s conftest.$ac_objext'
16317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318   (eval $ac_try) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; }; then
16322   ac_hi=-1 ac_mid=-1
16323   while :; do
16324     cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h.  */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h.  */
16330 $ac_includes_default
16331 int
16332 main ()
16333 {
16334 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16335 test_array [0] = 0
16336
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16343   (eval $ac_compile) 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -z "$ac_c_werror_flag"
16351                          || test ! -s conftest.err'
16352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353   (eval $ac_try) 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; } &&
16357          { ac_try='test -s conftest.$ac_objext'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; }; then
16363   ac_lo=$ac_mid; break
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 ac_hi=`expr '(' $ac_mid ')' - 1`
16369                        if test $ac_mid -le $ac_hi; then
16370                          ac_lo= ac_hi=
16371                          break
16372                        fi
16373                        ac_mid=`expr 2 '*' $ac_mid`
16374 fi
16375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16376   done
16377 else
16378   echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16380
16381 ac_lo= ac_hi=
16382 fi
16383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16386 # Binary search between lo and hi bounds.
16387 while test "x$ac_lo" != "x$ac_hi"; do
16388   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16389   cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395 $ac_includes_default
16396 int
16397 main ()
16398 {
16399 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16400 test_array [0] = 0
16401
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408   (eval $ac_compile) 2>conftest.er1
16409   ac_status=$?
16410   grep -v '^ *+' conftest.er1 >conftest.err
16411   rm -f conftest.er1
16412   cat conftest.err >&5
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } &&
16415          { ac_try='test -z "$ac_c_werror_flag"
16416                          || test ! -s conftest.err'
16417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418   (eval $ac_try) 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; } &&
16422          { ac_try='test -s conftest.$ac_objext'
16423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424   (eval $ac_try) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; }; then
16428   ac_hi=$ac_mid
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 ac_lo=`expr '(' $ac_mid ')' + 1`
16434 fi
16435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16436 done
16437 case $ac_lo in
16438 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16439 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16440 See \`config.log' for more details." >&5
16441 echo "$as_me: error: cannot compute sizeof (long long), 77
16442 See \`config.log' for more details." >&2;}
16443    { (exit 1); exit 1; }; } ;;
16444 esac
16445 else
16446   if test "$cross_compiling" = yes; then
16447   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16448 See \`config.log' for more details." >&5
16449 echo "$as_me: error: cannot run test program while cross compiling
16450 See \`config.log' for more details." >&2;}
16451    { (exit 1); exit 1; }; }
16452 else
16453   cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 $ac_includes_default
16460 long longval () { return (long) (sizeof (long long)); }
16461 unsigned long ulongval () { return (long) (sizeof (long long)); }
16462 #include <stdio.h>
16463 #include <stdlib.h>
16464 int
16465 main ()
16466 {
16467
16468   FILE *f = fopen ("conftest.val", "w");
16469   if (! f)
16470     exit (1);
16471   if (((long) (sizeof (long long))) < 0)
16472     {
16473       long i = longval ();
16474       if (i != ((long) (sizeof (long long))))
16475         exit (1);
16476       fprintf (f, "%ld\n", i);
16477     }
16478   else
16479     {
16480       unsigned long i = ulongval ();
16481       if (i != ((long) (sizeof (long long))))
16482         exit (1);
16483       fprintf (f, "%lu\n", i);
16484     }
16485   exit (ferror (f) || fclose (f) != 0);
16486
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest$ac_exeext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493   (eval $ac_link) 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502   ac_cv_sizeof_long_long=`cat conftest.val`
16503 else
16504   echo "$as_me: program exited with status $ac_status" >&5
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ( exit $ac_status )
16509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16510 See \`config.log' for more details." >&5
16511 echo "$as_me: error: cannot compute sizeof (long long), 77
16512 See \`config.log' for more details." >&2;}
16513    { (exit 1); exit 1; }; }
16514 fi
16515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16516 fi
16517 fi
16518 rm -f conftest.val
16519 else
16520   ac_cv_sizeof_long_long=0
16521 fi
16522 fi
16523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16524 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16525 cat >>confdefs.h <<_ACEOF
16526 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16527 _ACEOF
16528
16529
16530     ;;
16531     *-hp-hpux* )
16532         echo "$as_me:$LINENO: checking for long long" >&5
16533 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16534 if test "${ac_cv_type_long_long+set}" = set; then
16535   echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537   cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h.  */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h.  */
16543 $ac_includes_default
16544 int
16545 main ()
16546 {
16547 if ((long long *) 0)
16548   return 0;
16549 if (sizeof (long long))
16550   return 0;
16551   ;
16552   return 0;
16553 }
16554 _ACEOF
16555 rm -f conftest.$ac_objext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16557   (eval $ac_compile) 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } &&
16564          { ac_try='test -z "$ac_c_werror_flag"
16565                          || test ! -s conftest.err'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; } &&
16571          { ac_try='test -s conftest.$ac_objext'
16572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573   (eval $ac_try) 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); }; }; then
16577   ac_cv_type_long_long=yes
16578 else
16579   echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582 ac_cv_type_long_long=no
16583 fi
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16587 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16588
16589 echo "$as_me:$LINENO: checking size of long long" >&5
16590 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16591 if test "${ac_cv_sizeof_long_long+set}" = set; then
16592   echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594   if test "$ac_cv_type_long_long" = yes; then
16595   # The cast to unsigned long works around a bug in the HP C Compiler
16596   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16597   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16598   # This bug is HP SR number 8606223364.
16599   if test "$cross_compiling" = yes; then
16600   # Depending upon the size, compute the lo and hi bounds.
16601 cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 $ac_includes_default
16608 int
16609 main ()
16610 {
16611 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16612 test_array [0] = 0
16613
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620   (eval $ac_compile) 2>conftest.er1
16621   ac_status=$?
16622   grep -v '^ *+' conftest.er1 >conftest.err
16623   rm -f conftest.er1
16624   cat conftest.err >&5
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); } &&
16627          { ac_try='test -z "$ac_c_werror_flag"
16628                          || test ! -s conftest.err'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; } &&
16634          { ac_try='test -s conftest.$ac_objext'
16635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636   (eval $ac_try) 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; }; then
16640   ac_lo=0 ac_mid=0
16641   while :; do
16642     cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 $ac_includes_default
16649 int
16650 main ()
16651 {
16652 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16653 test_array [0] = 0
16654
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661   (eval $ac_compile) 2>conftest.er1
16662   ac_status=$?
16663   grep -v '^ *+' conftest.er1 >conftest.err
16664   rm -f conftest.er1
16665   cat conftest.err >&5
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } &&
16668          { ac_try='test -z "$ac_c_werror_flag"
16669                          || test ! -s conftest.err'
16670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671   (eval $ac_try) 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; } &&
16675          { ac_try='test -s conftest.$ac_objext'
16676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677   (eval $ac_try) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; }; then
16681   ac_hi=$ac_mid; break
16682 else
16683   echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 ac_lo=`expr $ac_mid + 1`
16687                     if test $ac_lo -le $ac_mid; then
16688                       ac_lo= ac_hi=
16689                       break
16690                     fi
16691                     ac_mid=`expr 2 '*' $ac_mid + 1`
16692 fi
16693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16694   done
16695 else
16696   echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705 $ac_includes_default
16706 int
16707 main ()
16708 {
16709 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16710 test_array [0] = 0
16711
16712   ;
16713   return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718   (eval $ac_compile) 2>conftest.er1
16719   ac_status=$?
16720   grep -v '^ *+' conftest.er1 >conftest.err
16721   rm -f conftest.er1
16722   cat conftest.err >&5
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); } &&
16725          { ac_try='test -z "$ac_c_werror_flag"
16726                          || test ! -s conftest.err'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; } &&
16732          { ac_try='test -s conftest.$ac_objext'
16733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734   (eval $ac_try) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; }; then
16738   ac_hi=-1 ac_mid=-1
16739   while :; do
16740     cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 $ac_includes_default
16747 int
16748 main ()
16749 {
16750 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16751 test_array [0] = 0
16752
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759   (eval $ac_compile) 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } &&
16766          { ac_try='test -z "$ac_c_werror_flag"
16767                          || test ! -s conftest.err'
16768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769   (eval $ac_try) 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; } &&
16773          { ac_try='test -s conftest.$ac_objext'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; }; then
16779   ac_lo=$ac_mid; break
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 ac_hi=`expr '(' $ac_mid ')' - 1`
16785                        if test $ac_mid -le $ac_hi; then
16786                          ac_lo= ac_hi=
16787                          break
16788                        fi
16789                        ac_mid=`expr 2 '*' $ac_mid`
16790 fi
16791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16792   done
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797 ac_lo= ac_hi=
16798 fi
16799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16800 fi
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 # Binary search between lo and hi bounds.
16803 while test "x$ac_lo" != "x$ac_hi"; do
16804   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16805   cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811 $ac_includes_default
16812 int
16813 main ()
16814 {
16815 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16816 test_array [0] = 0
16817
16818   ;
16819   return 0;
16820 }
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824   (eval $ac_compile) 2>conftest.er1
16825   ac_status=$?
16826   grep -v '^ *+' conftest.er1 >conftest.err
16827   rm -f conftest.er1
16828   cat conftest.err >&5
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); } &&
16831          { ac_try='test -z "$ac_c_werror_flag"
16832                          || test ! -s conftest.err'
16833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834   (eval $ac_try) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; } &&
16838          { ac_try='test -s conftest.$ac_objext'
16839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840   (eval $ac_try) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_hi=$ac_mid
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 ac_lo=`expr '(' $ac_mid ')' + 1`
16850 fi
16851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16852 done
16853 case $ac_lo in
16854 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16856 See \`config.log' for more details." >&5
16857 echo "$as_me: error: cannot compute sizeof (long long), 77
16858 See \`config.log' for more details." >&2;}
16859    { (exit 1); exit 1; }; } ;;
16860 esac
16861 else
16862   if test "$cross_compiling" = yes; then
16863   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16864 See \`config.log' for more details." >&5
16865 echo "$as_me: error: cannot run test program while cross compiling
16866 See \`config.log' for more details." >&2;}
16867    { (exit 1); exit 1; }; }
16868 else
16869   cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 $ac_includes_default
16876 long longval () { return (long) (sizeof (long long)); }
16877 unsigned long ulongval () { return (long) (sizeof (long long)); }
16878 #include <stdio.h>
16879 #include <stdlib.h>
16880 int
16881 main ()
16882 {
16883
16884   FILE *f = fopen ("conftest.val", "w");
16885   if (! f)
16886     exit (1);
16887   if (((long) (sizeof (long long))) < 0)
16888     {
16889       long i = longval ();
16890       if (i != ((long) (sizeof (long long))))
16891         exit (1);
16892       fprintf (f, "%ld\n", i);
16893     }
16894   else
16895     {
16896       unsigned long i = ulongval ();
16897       if (i != ((long) (sizeof (long long))))
16898         exit (1);
16899       fprintf (f, "%lu\n", i);
16900     }
16901   exit (ferror (f) || fclose (f) != 0);
16902
16903   ;
16904   return 0;
16905 }
16906 _ACEOF
16907 rm -f conftest$ac_exeext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909   (eval $ac_link) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918   ac_cv_sizeof_long_long=`cat conftest.val`
16919 else
16920   echo "$as_me: program exited with status $ac_status" >&5
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924 ( exit $ac_status )
16925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16926 See \`config.log' for more details." >&5
16927 echo "$as_me: error: cannot compute sizeof (long long), 77
16928 See \`config.log' for more details." >&2;}
16929    { (exit 1); exit 1; }; }
16930 fi
16931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16932 fi
16933 fi
16934 rm -f conftest.val
16935 else
16936   ac_cv_sizeof_long_long=0
16937 fi
16938 fi
16939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16940 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16941 cat >>confdefs.h <<_ACEOF
16942 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16943 _ACEOF
16944
16945
16946         if test "$ac_cv_sizeof_long_long" != "0"; then
16947                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16948         fi
16949     ;;
16950     * )
16951         echo "$as_me:$LINENO: checking for long long" >&5
16952 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16953 if test "${ac_cv_type_long_long+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956   cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962 $ac_includes_default
16963 int
16964 main ()
16965 {
16966 if ((long long *) 0)
16967   return 0;
16968 if (sizeof (long long))
16969   return 0;
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976   (eval $ac_compile) 2>conftest.er1
16977   ac_status=$?
16978   grep -v '^ *+' conftest.er1 >conftest.err
16979   rm -f conftest.er1
16980   cat conftest.err >&5
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -z "$ac_c_werror_flag"
16984                          || test ! -s conftest.err'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; } &&
16990          { ac_try='test -s conftest.$ac_objext'
16991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_cv_type_long_long=yes
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_cv_type_long_long=no
17002 fi
17003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17004 fi
17005 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17006 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17007
17008 echo "$as_me:$LINENO: checking size of long long" >&5
17009 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17010 if test "${ac_cv_sizeof_long_long+set}" = set; then
17011   echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013   if test "$ac_cv_type_long_long" = yes; then
17014   # The cast to unsigned long works around a bug in the HP C Compiler
17015   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17016   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17017   # This bug is HP SR number 8606223364.
17018   if test "$cross_compiling" = yes; then
17019   # Depending upon the size, compute the lo and hi bounds.
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h.  */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h.  */
17026 $ac_includes_default
17027 int
17028 main ()
17029 {
17030 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17031 test_array [0] = 0
17032
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039   (eval $ac_compile) 2>conftest.er1
17040   ac_status=$?
17041   grep -v '^ *+' conftest.er1 >conftest.err
17042   rm -f conftest.er1
17043   cat conftest.err >&5
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } &&
17046          { ac_try='test -z "$ac_c_werror_flag"
17047                          || test ! -s conftest.err'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; } &&
17053          { ac_try='test -s conftest.$ac_objext'
17054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055   (eval $ac_try) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; }; then
17059   ac_lo=0 ac_mid=0
17060   while :; do
17061     cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 $ac_includes_default
17068 int
17069 main ()
17070 {
17071 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17072 test_array [0] = 0
17073
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17080   (eval $ac_compile) 2>conftest.er1
17081   ac_status=$?
17082   grep -v '^ *+' conftest.er1 >conftest.err
17083   rm -f conftest.er1
17084   cat conftest.err >&5
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); } &&
17087          { ac_try='test -z "$ac_c_werror_flag"
17088                          || test ! -s conftest.err'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; } &&
17094          { ac_try='test -s conftest.$ac_objext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   ac_hi=$ac_mid; break
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 ac_lo=`expr $ac_mid + 1`
17106                     if test $ac_lo -le $ac_mid; then
17107                       ac_lo= ac_hi=
17108                       break
17109                     fi
17110                     ac_mid=`expr 2 '*' $ac_mid + 1`
17111 fi
17112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17113   done
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124 $ac_includes_default
17125 int
17126 main ()
17127 {
17128 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17129 test_array [0] = 0
17130
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137   (eval $ac_compile) 2>conftest.er1
17138   ac_status=$?
17139   grep -v '^ *+' conftest.er1 >conftest.err
17140   rm -f conftest.er1
17141   cat conftest.err >&5
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } &&
17144          { ac_try='test -z "$ac_c_werror_flag"
17145                          || test ! -s conftest.err'
17146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147   (eval $ac_try) 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); }; } &&
17151          { ac_try='test -s conftest.$ac_objext'
17152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153   (eval $ac_try) 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   ac_hi=-1 ac_mid=-1
17158   while :; do
17159     cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 $ac_includes_default
17166 int
17167 main ()
17168 {
17169 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17170 test_array [0] = 0
17171
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178   (eval $ac_compile) 2>conftest.er1
17179   ac_status=$?
17180   grep -v '^ *+' conftest.er1 >conftest.err
17181   rm -f conftest.er1
17182   cat conftest.err >&5
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); } &&
17185          { ac_try='test -z "$ac_c_werror_flag"
17186                          || test ! -s conftest.err'
17187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188   (eval $ac_try) 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; } &&
17192          { ac_try='test -s conftest.$ac_objext'
17193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194   (eval $ac_try) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; }; then
17198   ac_lo=$ac_mid; break
17199 else
17200   echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 ac_hi=`expr '(' $ac_mid ')' - 1`
17204                        if test $ac_mid -le $ac_hi; then
17205                          ac_lo= ac_hi=
17206                          break
17207                        fi
17208                        ac_mid=`expr 2 '*' $ac_mid`
17209 fi
17210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17211   done
17212 else
17213   echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216 ac_lo= ac_hi=
17217 fi
17218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17219 fi
17220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17221 # Binary search between lo and hi bounds.
17222 while test "x$ac_lo" != "x$ac_hi"; do
17223   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17224   cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h.  */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h.  */
17230 $ac_includes_default
17231 int
17232 main ()
17233 {
17234 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17235 test_array [0] = 0
17236
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243   (eval $ac_compile) 2>conftest.er1
17244   ac_status=$?
17245   grep -v '^ *+' conftest.er1 >conftest.err
17246   rm -f conftest.er1
17247   cat conftest.err >&5
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); } &&
17250          { ac_try='test -z "$ac_c_werror_flag"
17251                          || test ! -s conftest.err'
17252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253   (eval $ac_try) 2>&5
17254   ac_status=$?
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); }; } &&
17257          { ac_try='test -s conftest.$ac_objext'
17258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259   (eval $ac_try) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   ac_hi=$ac_mid
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 ac_lo=`expr '(' $ac_mid ')' + 1`
17269 fi
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 done
17272 case $ac_lo in
17273 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17274 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17275 See \`config.log' for more details." >&5
17276 echo "$as_me: error: cannot compute sizeof (long long), 77
17277 See \`config.log' for more details." >&2;}
17278    { (exit 1); exit 1; }; } ;;
17279 esac
17280 else
17281   if test "$cross_compiling" = yes; then
17282   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17283 See \`config.log' for more details." >&5
17284 echo "$as_me: error: cannot run test program while cross compiling
17285 See \`config.log' for more details." >&2;}
17286    { (exit 1); exit 1; }; }
17287 else
17288   cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294 $ac_includes_default
17295 long longval () { return (long) (sizeof (long long)); }
17296 unsigned long ulongval () { return (long) (sizeof (long long)); }
17297 #include <stdio.h>
17298 #include <stdlib.h>
17299 int
17300 main ()
17301 {
17302
17303   FILE *f = fopen ("conftest.val", "w");
17304   if (! f)
17305     exit (1);
17306   if (((long) (sizeof (long long))) < 0)
17307     {
17308       long i = longval ();
17309       if (i != ((long) (sizeof (long long))))
17310         exit (1);
17311       fprintf (f, "%ld\n", i);
17312     }
17313   else
17314     {
17315       unsigned long i = ulongval ();
17316       if (i != ((long) (sizeof (long long))))
17317         exit (1);
17318       fprintf (f, "%lu\n", i);
17319     }
17320   exit (ferror (f) || fclose (f) != 0);
17321
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest$ac_exeext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328   (eval $ac_link) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333   (eval $ac_try) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_cv_sizeof_long_long=`cat conftest.val`
17338 else
17339   echo "$as_me: program exited with status $ac_status" >&5
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ( exit $ac_status )
17344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17345 See \`config.log' for more details." >&5
17346 echo "$as_me: error: cannot compute sizeof (long long), 77
17347 See \`config.log' for more details." >&2;}
17348    { (exit 1); exit 1; }; }
17349 fi
17350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17351 fi
17352 fi
17353 rm -f conftest.val
17354 else
17355   ac_cv_sizeof_long_long=0
17356 fi
17357 fi
17358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17359 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17360 cat >>confdefs.h <<_ACEOF
17361 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17362 _ACEOF
17363
17364
17365 esac
17366
17367 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17368 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17369 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17370   echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372
17373     if test "$cross_compiling" = yes; then
17374
17375             case "${host}" in
17376               *-pc-msdosdjgpp )
17377                 wx_cv_sizeof_wchar_t=0
17378                 ;;
17379               * )
17380                 wx_cv_sizeof_wchar_t=4
17381                 ;;
17382             esac
17383
17384
17385 else
17386   cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392
17393             /* DJGPP only has fake wchar_t: */
17394             #ifdef __DJGPP__
17395             #  error "fake wchar_t"
17396             #endif
17397             #ifdef HAVE_WCHAR_H
17398             #  ifdef __CYGWIN__
17399             #    include <stddef.h>
17400             #  endif
17401             #  include <wchar.h>
17402             #endif
17403             #ifdef HAVE_STDLIB_H
17404             #  include <stdlib.h>
17405             #endif
17406             #include <stdio.h>
17407             int main()
17408             {
17409                 FILE *f=fopen("conftestval", "w");
17410                 if (!f) exit(1);
17411                 fprintf(f, "%i", sizeof(wchar_t));
17412                 exit(0);
17413             }
17414
17415 _ACEOF
17416 rm -f conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418   (eval $ac_link) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423   (eval $ac_try) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; }; then
17427   wx_cv_sizeof_wchar_t=`cat conftestval`
17428 else
17429   echo "$as_me: program exited with status $ac_status" >&5
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 ( exit $ac_status )
17434 wx_cv_sizeof_wchar_t=0
17435 fi
17436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17437 fi
17438
17439 fi
17440 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17441 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17442
17443 cat >>confdefs.h <<_ACEOF
17444 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17445 _ACEOF
17446
17447
17448 # Check whether --enable-largefile or --disable-largefile was given.
17449 if test "${enable_largefile+set}" = set; then
17450   enableval="$enable_largefile"
17451
17452 fi;
17453 if test "$enable_largefile" != no; then
17454             wx_largefile=no
17455
17456     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17457 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17458 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461
17462           cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468 #define _FILE_OFFSET_BITS 64
17469                           #include <sys/types.h>
17470 int
17471 main ()
17472 {
17473 typedef struct {
17474     unsigned int field: sizeof(off_t) == 8;
17475 } wxlf;
17476
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483   (eval $ac_compile) 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } &&
17490          { ac_try='test -z "$ac_c_werror_flag"
17491                          || test ! -s conftest.err'
17492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493   (eval $ac_try) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; } &&
17497          { ac_try='test -s conftest.$ac_objext'
17498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499   (eval $ac_try) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; }; then
17503   ac_cv_sys_file_offset_bits=64
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ac_cv_sys_file_offset_bits=no
17509 fi
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511
17512
17513 fi
17514 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17515 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17516
17517     if test "$ac_cv_sys_file_offset_bits" != no; then
17518         wx_largefile=yes
17519         cat >>confdefs.h <<_ACEOF
17520 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17521 _ACEOF
17522
17523     fi
17524
17525     if test "x$wx_largefile" != "xyes"; then
17526
17527     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17528 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17529 if test "${ac_cv_sys_large_files+set}" = set; then
17530   echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532
17533           cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 #define _LARGE_FILES 1
17540                           #include <sys/types.h>
17541 int
17542 main ()
17543 {
17544 typedef struct {
17545     unsigned int field: sizeof(off_t) == 8;
17546 } wxlf;
17547
17548   ;
17549   return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17554   (eval $ac_compile) 2>conftest.er1
17555   ac_status=$?
17556   grep -v '^ *+' conftest.er1 >conftest.err
17557   rm -f conftest.er1
17558   cat conftest.err >&5
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); } &&
17561          { ac_try='test -z "$ac_c_werror_flag"
17562                          || test ! -s conftest.err'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; } &&
17568          { ac_try='test -s conftest.$ac_objext'
17569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570   (eval $ac_try) 2>&5
17571   ac_status=$?
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; }; then
17574   ac_cv_sys_large_files=1
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_cv_sys_large_files=no
17580 fi
17581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17582
17583
17584 fi
17585 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17586 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17587
17588     if test "$ac_cv_sys_large_files" != no; then
17589         wx_largefile=yes
17590         cat >>confdefs.h <<_ACEOF
17591 #define _LARGE_FILES $ac_cv_sys_large_files
17592 _ACEOF
17593
17594     fi
17595
17596     fi
17597
17598     echo "$as_me:$LINENO: checking if large file support is available" >&5
17599 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
17600     if test "x$wx_largefile" = "xyes"; then
17601         cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_LARGEFILE_SUPPORT 1
17603 _ACEOF
17604
17605     fi
17606     echo "$as_me:$LINENO: result: $wx_largefile" >&5
17607 echo "${ECHO_T}$wx_largefile" >&6
17608 fi
17609
17610
17611 if test "x$wx_largefile" = "xyes"; then
17612     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17613         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
17614     else
17615         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
17616     fi
17617     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
17618 fi
17619
17620 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17621 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17622 if test "${ac_cv_c_bigendian+set}" = set; then
17623   echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625   ac_cv_c_bigendian=unknown
17626 # See if sys/param.h defines the BYTE_ORDER macro.
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h.  */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h.  */
17633 #include <sys/types.h>
17634 #include <sys/param.h>
17635 int
17636 main ()
17637 {
17638
17639 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17640  bogus endian macros
17641 #endif
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17648   (eval $ac_compile) 2>conftest.er1
17649   ac_status=$?
17650   grep -v '^ *+' conftest.er1 >conftest.err
17651   rm -f conftest.er1
17652   cat conftest.err >&5
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); } &&
17655          { ac_try='test -z "$ac_c_werror_flag"
17656                          || test ! -s conftest.err'
17657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658   (eval $ac_try) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); }; } &&
17662          { ac_try='test -s conftest.$ac_objext'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; }; then
17668   # It does; now see whether it defined to BIG_ENDIAN or not.
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 #include <sys/types.h>
17676 #include <sys/param.h>
17677 int
17678 main ()
17679 {
17680
17681 #if BYTE_ORDER != BIG_ENDIAN
17682  not big endian
17683 #endif
17684   ;
17685   return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690   (eval $ac_compile) 2>conftest.er1
17691   ac_status=$?
17692   grep -v '^ *+' conftest.er1 >conftest.err
17693   rm -f conftest.er1
17694   cat conftest.err >&5
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); } &&
17697          { ac_try='test -z "$ac_c_werror_flag"
17698                          || test ! -s conftest.err'
17699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700   (eval $ac_try) 2>&5
17701   ac_status=$?
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); }; } &&
17704          { ac_try='test -s conftest.$ac_objext'
17705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706   (eval $ac_try) 2>&5
17707   ac_status=$?
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); }; }; then
17710   ac_cv_c_bigendian=yes
17711 else
17712   echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715 ac_cv_c_bigendian=no
17716 fi
17717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17718 else
17719   echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722 fi
17723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17724 if test $ac_cv_c_bigendian = unknown; then
17725 if test "$cross_compiling" = yes; then
17726   ac_cv_c_bigendian=unknown
17727 else
17728   cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h.  */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h.  */
17734 main () {
17735   /* Are we little or big endian?  From Harbison&Steele.  */
17736   union
17737   {
17738     long l;
17739     char c[sizeof (long)];
17740   } u;
17741   u.l = 1;
17742   exit (u.c[sizeof (long) - 1] == 1);
17743 }
17744 _ACEOF
17745 rm -f conftest$ac_exeext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747   (eval $ac_link) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752   (eval $ac_try) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_c_bigendian=no
17757 else
17758   echo "$as_me: program exited with status $ac_status" >&5
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762 ( exit $ac_status )
17763 ac_cv_c_bigendian=yes
17764 fi
17765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17766 fi
17767 fi
17768 fi
17769 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17770 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17771 if test $ac_cv_c_bigendian = unknown; then
17772   { 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
17773 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;}
17774 fi
17775 if test $ac_cv_c_bigendian = yes; then
17776   cat >>confdefs.h <<\_ACEOF
17777 #define WORDS_BIGENDIAN 1
17778 _ACEOF
17779
17780 fi
17781
17782
17783
17784 ac_ext=cc
17785 ac_cpp='$CXXCPP $CPPFLAGS'
17786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17790 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17791 if test -z "$CXXCPP"; then
17792   if test "${ac_cv_prog_CXXCPP+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795       # Double quotes because CXXCPP needs to be expanded
17796     for CXXCPP in "$CXX -E" "/lib/cpp"
17797     do
17798       ac_preproc_ok=false
17799 for ac_cxx_preproc_warn_flag in '' yes
17800 do
17801   # Use a header file that comes with gcc, so configuring glibc
17802   # with a fresh cross-compiler works.
17803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804   # <limits.h> exists even on freestanding compilers.
17805   # On the NeXT, cc -E runs the code through the compiler's parser,
17806   # not just through cpp. "Syntax error" is here to catch this case.
17807   cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h.  */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h.  */
17813 #ifdef __STDC__
17814 # include <limits.h>
17815 #else
17816 # include <assert.h>
17817 #endif
17818                      Syntax error
17819 _ACEOF
17820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } >/dev/null; then
17828   if test -s conftest.err; then
17829     ac_cpp_err=$ac_cxx_preproc_warn_flag
17830     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17831   else
17832     ac_cpp_err=
17833   fi
17834 else
17835   ac_cpp_err=yes
17836 fi
17837 if test -z "$ac_cpp_err"; then
17838   :
17839 else
17840   echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17842
17843   # Broken: fails on valid input.
17844 continue
17845 fi
17846 rm -f conftest.err conftest.$ac_ext
17847
17848   # OK, works on sane cases.  Now check whether non-existent headers
17849   # can be detected and how.
17850   cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 #include <ac_nonexistent.h>
17857 _ACEOF
17858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17860   ac_status=$?
17861   grep -v '^ *+' conftest.er1 >conftest.err
17862   rm -f conftest.er1
17863   cat conftest.err >&5
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } >/dev/null; then
17866   if test -s conftest.err; then
17867     ac_cpp_err=$ac_cxx_preproc_warn_flag
17868     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17869   else
17870     ac_cpp_err=
17871   fi
17872 else
17873   ac_cpp_err=yes
17874 fi
17875 if test -z "$ac_cpp_err"; then
17876   # Broken: success on invalid input.
17877 continue
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882   # Passes both tests.
17883 ac_preproc_ok=:
17884 break
17885 fi
17886 rm -f conftest.err conftest.$ac_ext
17887
17888 done
17889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17890 rm -f conftest.err conftest.$ac_ext
17891 if $ac_preproc_ok; then
17892   break
17893 fi
17894
17895     done
17896     ac_cv_prog_CXXCPP=$CXXCPP
17897
17898 fi
17899   CXXCPP=$ac_cv_prog_CXXCPP
17900 else
17901   ac_cv_prog_CXXCPP=$CXXCPP
17902 fi
17903 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17904 echo "${ECHO_T}$CXXCPP" >&6
17905 ac_preproc_ok=false
17906 for ac_cxx_preproc_warn_flag in '' yes
17907 do
17908   # Use a header file that comes with gcc, so configuring glibc
17909   # with a fresh cross-compiler works.
17910   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911   # <limits.h> exists even on freestanding compilers.
17912   # On the NeXT, cc -E runs the code through the compiler's parser,
17913   # not just through cpp. "Syntax error" is here to catch this case.
17914   cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h.  */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h.  */
17920 #ifdef __STDC__
17921 # include <limits.h>
17922 #else
17923 # include <assert.h>
17924 #endif
17925                      Syntax error
17926 _ACEOF
17927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17929   ac_status=$?
17930   grep -v '^ *+' conftest.er1 >conftest.err
17931   rm -f conftest.er1
17932   cat conftest.err >&5
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } >/dev/null; then
17935   if test -s conftest.err; then
17936     ac_cpp_err=$ac_cxx_preproc_warn_flag
17937     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17938   else
17939     ac_cpp_err=
17940   fi
17941 else
17942   ac_cpp_err=yes
17943 fi
17944 if test -z "$ac_cpp_err"; then
17945   :
17946 else
17947   echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17949
17950   # Broken: fails on valid input.
17951 continue
17952 fi
17953 rm -f conftest.err conftest.$ac_ext
17954
17955   # OK, works on sane cases.  Now check whether non-existent headers
17956   # can be detected and how.
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 #include <ac_nonexistent.h>
17964 _ACEOF
17965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17967   ac_status=$?
17968   grep -v '^ *+' conftest.er1 >conftest.err
17969   rm -f conftest.er1
17970   cat conftest.err >&5
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } >/dev/null; then
17973   if test -s conftest.err; then
17974     ac_cpp_err=$ac_cxx_preproc_warn_flag
17975     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17976   else
17977     ac_cpp_err=
17978   fi
17979 else
17980   ac_cpp_err=yes
17981 fi
17982 if test -z "$ac_cpp_err"; then
17983   # Broken: success on invalid input.
17984 continue
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989   # Passes both tests.
17990 ac_preproc_ok=:
17991 break
17992 fi
17993 rm -f conftest.err conftest.$ac_ext
17994
17995 done
17996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17997 rm -f conftest.err conftest.$ac_ext
17998 if $ac_preproc_ok; then
17999   :
18000 else
18001   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18002 See \`config.log' for more details." >&5
18003 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18004 See \`config.log' for more details." >&2;}
18005    { (exit 1); exit 1; }; }
18006 fi
18007
18008 ac_ext=cc
18009 ac_cpp='$CXXCPP $CPPFLAGS'
18010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18013
18014
18015
18016   if test "$cross_compiling" = "yes"; then
18017     cat >>confdefs.h <<\_ACEOF
18018 #define wxUSE_IOSTREAMH 1
18019 _ACEOF
18020
18021   else
18022
18023
18024     ac_ext=cc
18025 ac_cpp='$CXXCPP $CPPFLAGS'
18026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18029
18030
18031
18032 for ac_header in iostream
18033 do
18034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18036   echo "$as_me:$LINENO: checking for $ac_header" >&5
18037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 fi
18041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18043 else
18044   # Is the header compilable?
18045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h.  */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h.  */
18053 $ac_includes_default
18054 #include <$ac_header>
18055 _ACEOF
18056 rm -f conftest.$ac_objext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058   (eval $ac_compile) 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -z "$ac_cxx_werror_flag"
18066                          || test ! -s conftest.err'
18067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068   (eval $ac_try) 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); }; } &&
18072          { ac_try='test -s conftest.$ac_objext'
18073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074   (eval $ac_try) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; }; then
18078   ac_header_compiler=yes
18079 else
18080   echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 ac_header_compiler=no
18084 fi
18085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18087 echo "${ECHO_T}$ac_header_compiler" >&6
18088
18089 # Is the header present?
18090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18092 cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h.  */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h.  */
18098 #include <$ac_header>
18099 _ACEOF
18100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } >/dev/null; then
18108   if test -s conftest.err; then
18109     ac_cpp_err=$ac_cxx_preproc_warn_flag
18110     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18111   else
18112     ac_cpp_err=
18113   fi
18114 else
18115   ac_cpp_err=yes
18116 fi
18117 if test -z "$ac_cpp_err"; then
18118   ac_header_preproc=yes
18119 else
18120   echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123   ac_header_preproc=no
18124 fi
18125 rm -f conftest.err conftest.$ac_ext
18126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18127 echo "${ECHO_T}$ac_header_preproc" >&6
18128
18129 # So?  What about this header?
18130 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18131   yes:no: )
18132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18136     ac_header_preproc=yes
18137     ;;
18138   no:yes:* )
18139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18151     (
18152       cat <<\_ASBOX
18153 ## ----------------------------------------- ##
18154 ## Report this to wx-dev@lists.wxwindows.org ##
18155 ## ----------------------------------------- ##
18156 _ASBOX
18157     ) |
18158       sed "s/^/$as_me: WARNING:     /" >&2
18159     ;;
18160 esac
18161 echo "$as_me:$LINENO: checking for $ac_header" >&5
18162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166   eval "$as_ac_Header=\$ac_header_preproc"
18167 fi
18168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18170
18171 fi
18172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18173   cat >>confdefs.h <<_ACEOF
18174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18175 _ACEOF
18176
18177 fi
18178
18179 done
18180
18181
18182     if test "$ac_cv_header_iostream" = "yes" ; then
18183       :
18184     else
18185       cat >>confdefs.h <<\_ACEOF
18186 #define wxUSE_IOSTREAMH 1
18187 _ACEOF
18188
18189     fi
18190
18191     ac_ext=c
18192 ac_cpp='$CPP $CPPFLAGS'
18193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196
18197   fi
18198
18199
18200
18201   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18202 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18203 if test "${wx_cv_cpp_bool+set}" = set; then
18204   echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206
18207
18208
18209     ac_ext=cc
18210 ac_cpp='$CXXCPP $CPPFLAGS'
18211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18214
18215
18216     cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222
18223
18224 int
18225 main ()
18226 {
18227
18228         bool b = true;
18229
18230         return 0;
18231
18232   ;
18233   return 0;
18234 }
18235 _ACEOF
18236 rm -f conftest.$ac_objext
18237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18238   (eval $ac_compile) 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } &&
18245          { ac_try='test -z "$ac_cxx_werror_flag"
18246                          || test ! -s conftest.err'
18247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248   (eval $ac_try) 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); }; } &&
18252          { ac_try='test -s conftest.$ac_objext'
18253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254   (eval $ac_try) 2>&5
18255   ac_status=$?
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); }; }; then
18258
18259         wx_cv_cpp_bool=yes
18260
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265
18266         wx_cv_cpp_bool=no
18267
18268
18269 fi
18270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18271
18272     ac_ext=c
18273 ac_cpp='$CPP $CPPFLAGS'
18274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18277
18278
18279 fi
18280 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18281 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18282
18283   if test "$wx_cv_cpp_bool" = "yes"; then
18284     cat >>confdefs.h <<\_ACEOF
18285 #define HAVE_BOOL 1
18286 _ACEOF
18287
18288   fi
18289
18290
18291
18292   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18293 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18294 if test "${wx_cv_explicit+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297
18298
18299
18300     ac_ext=cc
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18305
18306
18307             cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313
18314         class Foo { public: explicit Foo(int) {} };
18315
18316 int
18317 main ()
18318 {
18319
18320         return 0;
18321
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 rm -f conftest.$ac_objext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18328   (eval $ac_compile) 2>conftest.er1
18329   ac_status=$?
18330   grep -v '^ *+' conftest.er1 >conftest.err
18331   rm -f conftest.er1
18332   cat conftest.err >&5
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); } &&
18335          { ac_try='test -z "$ac_cxx_werror_flag"
18336                          || test ! -s conftest.err'
18337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338   (eval $ac_try) 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); }; } &&
18342          { ac_try='test -s conftest.$ac_objext'
18343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344   (eval $ac_try) 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); }; }; then
18348
18349         cat >conftest.$ac_ext <<_ACEOF
18350 /* confdefs.h.  */
18351 _ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h.  */
18355
18356                 class Foo { public: explicit Foo(int) {} };
18357                 static void TakeFoo(const Foo& foo) { }
18358
18359 int
18360 main ()
18361 {
18362
18363                 TakeFoo(17);
18364                 return 0;
18365
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372   (eval $ac_compile) 2>conftest.er1
18373   ac_status=$?
18374   grep -v '^ *+' conftest.er1 >conftest.err
18375   rm -f conftest.er1
18376   cat conftest.err >&5
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } &&
18379          { ac_try='test -z "$ac_cxx_werror_flag"
18380                          || test ! -s conftest.err'
18381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382   (eval $ac_try) 2>&5
18383   ac_status=$?
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); }; } &&
18386          { ac_try='test -s conftest.$ac_objext'
18387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388   (eval $ac_try) 2>&5
18389   ac_status=$?
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; }; then
18392   wx_cv_explicit=no
18393 else
18394   echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 wx_cv_explicit=yes
18398
18399 fi
18400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18401
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 wx_cv_explicit=no
18407
18408 fi
18409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18410
18411     ac_ext=c
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416
18417
18418 fi
18419 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18420 echo "${ECHO_T}$wx_cv_explicit" >&6
18421
18422   if test "$wx_cv_explicit" = "yes"; then
18423     cat >>confdefs.h <<\_ACEOF
18424 #define HAVE_EXPLICIT 1
18425 _ACEOF
18426
18427   fi
18428
18429
18430 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18431 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18432 if test "${ac_cv_cxx_const_cast+set}" = set; then
18433   echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435
18436
18437  ac_ext=cc
18438 ac_cpp='$CXXCPP $CPPFLAGS'
18439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18442
18443  cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h.  */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h.  */
18449
18450 int
18451 main ()
18452 {
18453 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18454   ;
18455   return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest.$ac_objext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18460   (eval $ac_compile) 2>conftest.er1
18461   ac_status=$?
18462   grep -v '^ *+' conftest.er1 >conftest.err
18463   rm -f conftest.er1
18464   cat conftest.err >&5
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); } &&
18467          { ac_try='test -z "$ac_cxx_werror_flag"
18468                          || test ! -s conftest.err'
18469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470   (eval $ac_try) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; } &&
18474          { ac_try='test -s conftest.$ac_objext'
18475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476   (eval $ac_try) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; }; then
18480   ac_cv_cxx_const_cast=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_cv_cxx_const_cast=no
18486 fi
18487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18488  ac_ext=c
18489 ac_cpp='$CPP $CPPFLAGS'
18490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18493
18494
18495 fi
18496 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18497 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18498 if test "$ac_cv_cxx_const_cast" = yes; then
18499
18500 cat >>confdefs.h <<\_ACEOF
18501 #define HAVE_CONST_CAST
18502 _ACEOF
18503
18504 fi
18505
18506
18507 if test "$wxUSE_STL" = "yes"; then
18508     ac_ext=cc
18509 ac_cpp='$CXXCPP $CPPFLAGS'
18510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514
18515         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18516 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18517     cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 #include <string>
18524                     #include <functional>
18525                     #include <algorithm>
18526                     #include <vector>
18527                     #include <list>
18528 int
18529 main ()
18530 {
18531 std::vector<int> moo;
18532                      std::list<int> foo;
18533                      std::vector<int>::iterator it =
18534                          std::find_if(moo.begin(), moo.end(),
18535                                       std::bind2nd(std::less<int>(), 3));
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext
18541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18542   (eval $ac_compile) 2>conftest.er1
18543   ac_status=$?
18544   grep -v '^ *+' conftest.er1 >conftest.err
18545   rm -f conftest.er1
18546   cat conftest.err >&5
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); } &&
18549          { ac_try='test -z "$ac_cxx_werror_flag"
18550                          || test ! -s conftest.err'
18551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552   (eval $ac_try) 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; } &&
18556          { ac_try='test -s conftest.$ac_objext'
18557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558   (eval $ac_try) 2>&5
18559   ac_status=$?
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); }; }; then
18562   echo "$as_me:$LINENO: result: yes" >&5
18563 echo "${ECHO_T}yes" >&6
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 echo "$as_me:$LINENO: result: no" >&5
18569 echo "${ECHO_T}no" >&6
18570                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18571 echo "$as_me: error: Basic STL functionality missing" >&2;}
18572    { (exit 1); exit 1; }; }
18573 fi
18574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18575
18576         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18577 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18578     cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584 #include <string>
18585 int
18586 main ()
18587 {
18588 std::wstring foo;
18589   ;
18590   return 0;
18591 }
18592 _ACEOF
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595   (eval $ac_compile) 2>conftest.er1
18596   ac_status=$?
18597   grep -v '^ *+' conftest.er1 >conftest.err
18598   rm -f conftest.er1
18599   cat conftest.err >&5
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); } &&
18602          { ac_try='test -z "$ac_cxx_werror_flag"
18603                          || test ! -s conftest.err'
18604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605   (eval $ac_try) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); }; } &&
18609          { ac_try='test -s conftest.$ac_objext'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; }; then
18615   echo "$as_me:$LINENO: result: yes" >&5
18616 echo "${ECHO_T}yes" >&6
18617                     cat >>confdefs.h <<\_ACEOF
18618 #define HAVE_STD_WSTRING 1
18619 _ACEOF
18620
18621 else
18622   echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18624
18625 echo "$as_me:$LINENO: result: no" >&5
18626 echo "${ECHO_T}no" >&6
18627 fi
18628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18629
18630         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18631 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18632     cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638 #include <string>
18639 int
18640 main ()
18641 {
18642 std::string foo, bar;
18643                     foo.compare(bar);
18644                     foo.compare(1, 1, bar);
18645                     foo.compare(1, 1, bar, 1, 1);
18646                     foo.compare("");
18647                     foo.compare(1, 1, "");
18648                     foo.compare(1, 1, "", 2);
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext
18654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18655   (eval $ac_compile) 2>conftest.er1
18656   ac_status=$?
18657   grep -v '^ *+' conftest.er1 >conftest.err
18658   rm -f conftest.er1
18659   cat conftest.err >&5
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } &&
18662          { ac_try='test -z "$ac_cxx_werror_flag"
18663                          || test ! -s conftest.err'
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); }; } &&
18669          { ac_try='test -s conftest.$ac_objext'
18670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671   (eval $ac_try) 2>&5
18672   ac_status=$?
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); }; }; then
18675   echo "$as_me:$LINENO: result: yes" >&5
18676 echo "${ECHO_T}yes" >&6
18677                     cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_STD_STRING_COMPARE 1
18679 _ACEOF
18680
18681 else
18682   echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685 echo "$as_me:$LINENO: result: no" >&5
18686 echo "${ECHO_T}no" >&6
18687 fi
18688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18689
18690     ac_ext=c
18691 ac_cpp='$CPP $CPPFLAGS'
18692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18695
18696 fi
18697
18698
18699 SEARCH_INCLUDE="\
18700     /usr/local/include        \
18701                               \
18702     /usr/Motif-1.2/include    \
18703     /usr/Motif-2.1/include    \
18704                               \
18705     /usr/include/Motif1.2     \
18706     /opt/xpm/include/X11      \
18707     /opt/GBxpm/include/       \
18708     /opt/GBxpm/X11/include/   \
18709                               \
18710     /usr/Motif1.2/include     \
18711     /usr/dt/include           \
18712     /usr/openwin/include      \
18713                               \
18714     /usr/include/Xm           \
18715                               \
18716     /usr/X11R6/include        \
18717     /usr/X11R6.4/include      \
18718     /usr/X11R5/include        \
18719     /usr/X11R4/include        \
18720                               \
18721     /usr/include/X11R6        \
18722     /usr/include/X11R5        \
18723     /usr/include/X11R4        \
18724                               \
18725     /usr/local/X11R6/include  \
18726     /usr/local/X11R5/include  \
18727     /usr/local/X11R4/include  \
18728                               \
18729     /usr/local/include/X11R6  \
18730     /usr/local/include/X11R5  \
18731     /usr/local/include/X11R4  \
18732                               \
18733     /usr/X11/include          \
18734     /usr/include/X11          \
18735     /usr/local/X11/include    \
18736     /usr/local/include/X11    \
18737                               \
18738     /usr/X386/include         \
18739     /usr/x386/include         \
18740     /usr/XFree86/include/X11  \
18741                               \
18742     X:/XFree86/include        \
18743     X:/XFree86/include/X11    \
18744                               \
18745     /usr/include/gtk          \
18746     /usr/local/include/gtk    \
18747     /usr/include/glib         \
18748     /usr/local/include/glib   \
18749                               \
18750     /usr/include/qt           \
18751     /usr/local/include/qt     \
18752                               \
18753     /usr/include/windows      \
18754     /usr/include/wine         \
18755     /usr/local/include/wine   \
18756                               \
18757     /usr/unsupported/include  \
18758     /usr/athena/include       \
18759     /usr/local/x11r5/include  \
18760     /usr/lpp/Xamples/include  \
18761                               \
18762     /usr/openwin/share/include"
18763
18764 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18765
18766
18767 cat >confcache <<\_ACEOF
18768 # This file is a shell script that caches the results of configure
18769 # tests run on this system so they can be shared between configure
18770 # scripts and configure runs, see configure's option --config-cache.
18771 # It is not useful on other systems.  If it contains results you don't
18772 # want to keep, you may remove or edit it.
18773 #
18774 # config.status only pays attention to the cache file if you give it
18775 # the --recheck option to rerun configure.
18776 #
18777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18779 # following values.
18780
18781 _ACEOF
18782
18783 # The following way of writing the cache mishandles newlines in values,
18784 # but we know of no workaround that is simple, portable, and efficient.
18785 # So, don't put newlines in cache variables' values.
18786 # Ultrix sh set writes to stderr and can't be redirected directly,
18787 # and sets the high bit in the cache file unless we assign to the vars.
18788 {
18789   (set) 2>&1 |
18790     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18791     *ac_space=\ *)
18792       # `set' does not quote correctly, so add quotes (double-quote
18793       # substitution turns \\\\ into \\, and sed turns \\ into \).
18794       sed -n \
18795         "s/'/'\\\\''/g;
18796           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18797       ;;
18798     *)
18799       # `set' quotes correctly as required by POSIX, so do not add quotes.
18800       sed -n \
18801         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18802       ;;
18803     esac;
18804 } |
18805   sed '
18806      t clear
18807      : clear
18808      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18809      t end
18810      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18811      : end' >>confcache
18812 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18813   if test -w $cache_file; then
18814     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18815     cat confcache >$cache_file
18816   else
18817     echo "not updating unwritable cache $cache_file"
18818   fi
18819 fi
18820 rm -f confcache
18821
18822 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18823     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18824 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18825 if test "${wx_cv_lib_glibc21+set}" = set; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828
18829         cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835 #include <features.h>
18836 int
18837 main ()
18838 {
18839
18840                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18841                     #error not glibc2.1
18842                 #endif
18843
18844   ;
18845   return 0;
18846 }
18847 _ACEOF
18848 rm -f conftest.$ac_objext
18849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18850   (eval $ac_compile) 2>conftest.er1
18851   ac_status=$?
18852   grep -v '^ *+' conftest.er1 >conftest.err
18853   rm -f conftest.er1
18854   cat conftest.err >&5
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); } &&
18857          { ac_try='test -z "$ac_c_werror_flag"
18858                          || test ! -s conftest.err'
18859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860   (eval $ac_try) 2>&5
18861   ac_status=$?
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); }; } &&
18864          { ac_try='test -s conftest.$ac_objext'
18865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866   (eval $ac_try) 2>&5
18867   ac_status=$?
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); }; }; then
18870
18871                 wx_cv_lib_glibc21=yes
18872
18873 else
18874   echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877
18878                 wx_cv_lib_glibc21=no
18879
18880
18881 fi
18882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18883
18884 fi
18885 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18886 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18887     if test "$wx_cv_lib_glibc21" = "yes"; then
18888         cat >>confdefs.h <<\_ACEOF
18889 #define wxHAVE_GLIBC2 1
18890 _ACEOF
18891
18892     fi
18893 fi
18894
18895 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18896     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18897         cat >>confdefs.h <<\_ACEOF
18898 #define _GNU_SOURCE 1
18899 _ACEOF
18900
18901     fi
18902 fi
18903
18904
18905
18906 if test "$wxUSE_REGEX" != "no"; then
18907     cat >>confdefs.h <<\_ACEOF
18908 #define wxUSE_REGEX 1
18909 _ACEOF
18910
18911
18912     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18913                         if test "${ac_cv_header_regex_h+set}" = set; then
18914   echo "$as_me:$LINENO: checking for regex.h" >&5
18915 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18916 if test "${ac_cv_header_regex_h+set}" = set; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 fi
18919 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18920 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18921 else
18922   # Is the header compilable?
18923 echo "$as_me:$LINENO: checking regex.h usability" >&5
18924 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931 $ac_includes_default
18932 #include <regex.h>
18933 _ACEOF
18934 rm -f conftest.$ac_objext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936   (eval $ac_compile) 2>conftest.er1
18937   ac_status=$?
18938   grep -v '^ *+' conftest.er1 >conftest.err
18939   rm -f conftest.er1
18940   cat conftest.err >&5
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); } &&
18943          { ac_try='test -z "$ac_c_werror_flag"
18944                          || test ! -s conftest.err'
18945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946   (eval $ac_try) 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; } &&
18950          { ac_try='test -s conftest.$ac_objext'
18951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952   (eval $ac_try) 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; }; then
18956   ac_header_compiler=yes
18957 else
18958   echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18960
18961 ac_header_compiler=no
18962 fi
18963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18965 echo "${ECHO_T}$ac_header_compiler" >&6
18966
18967 # Is the header present?
18968 echo "$as_me:$LINENO: checking regex.h presence" >&5
18969 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976 #include <regex.h>
18977 _ACEOF
18978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } >/dev/null; then
18986   if test -s conftest.err; then
18987     ac_cpp_err=$ac_c_preproc_warn_flag
18988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18989   else
18990     ac_cpp_err=
18991   fi
18992 else
18993   ac_cpp_err=yes
18994 fi
18995 if test -z "$ac_cpp_err"; then
18996   ac_header_preproc=yes
18997 else
18998   echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19000
19001   ac_header_preproc=no
19002 fi
19003 rm -f conftest.err conftest.$ac_ext
19004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6
19006
19007 # So?  What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19009   yes:no: )
19010     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19011 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19012     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19013 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19014     ac_header_preproc=yes
19015     ;;
19016   no:yes:* )
19017     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19018 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19019     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
19020 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
19021     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19022 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
19024 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19025     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19026 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19027     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19028 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19029     (
19030       cat <<\_ASBOX
19031 ## ----------------------------------------- ##
19032 ## Report this to wx-dev@lists.wxwindows.org ##
19033 ## ----------------------------------------- ##
19034 _ASBOX
19035     ) |
19036       sed "s/^/$as_me: WARNING:     /" >&2
19037     ;;
19038 esac
19039 echo "$as_me:$LINENO: checking for regex.h" >&5
19040 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19041 if test "${ac_cv_header_regex_h+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   ac_cv_header_regex_h=$ac_header_preproc
19045 fi
19046 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19047 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19048
19049 fi
19050 if test $ac_cv_header_regex_h = yes; then
19051
19052 for ac_func in regcomp
19053 do
19054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19055 echo "$as_me:$LINENO: checking for $ac_func" >&5
19056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19057 if eval "test \"\${$as_ac_var+set}\" = set"; then
19058   echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060   cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19068 #define $ac_func innocuous_$ac_func
19069
19070 /* System header to define __stub macros and hopefully few prototypes,
19071     which can conflict with char $ac_func (); below.
19072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19073     <limits.h> exists even on freestanding compilers.  */
19074
19075 #ifdef __STDC__
19076 # include <limits.h>
19077 #else
19078 # include <assert.h>
19079 #endif
19080
19081 #undef $ac_func
19082
19083 /* Override any gcc2 internal prototype to avoid an error.  */
19084 #ifdef __cplusplus
19085 extern "C"
19086 {
19087 #endif
19088 /* We use char because int might match the return type of a gcc2
19089    builtin and then its argument prototype would still apply.  */
19090 char $ac_func ();
19091 /* The GNU C library defines this for functions which it implements
19092     to always fail with ENOSYS.  Some functions are actually named
19093     something starting with __ and the normal name is an alias.  */
19094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19095 choke me
19096 #else
19097 char (*f) () = $ac_func;
19098 #endif
19099 #ifdef __cplusplus
19100 }
19101 #endif
19102
19103 int
19104 main ()
19105 {
19106 return f != $ac_func;
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext conftest$ac_exeext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19113   (eval $ac_link) 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } &&
19120          { ac_try='test -z "$ac_c_werror_flag"
19121                          || test ! -s conftest.err'
19122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123   (eval $ac_try) 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; } &&
19127          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19133   eval "$as_ac_var=yes"
19134 else
19135   echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19137
19138 eval "$as_ac_var=no"
19139 fi
19140 rm -f conftest.err conftest.$ac_objext \
19141       conftest$ac_exeext conftest.$ac_ext
19142 fi
19143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19145 if test `eval echo '${'$as_ac_var'}'` = yes; then
19146   cat >>confdefs.h <<_ACEOF
19147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19148 _ACEOF
19149
19150 fi
19151 done
19152
19153 fi
19154
19155
19156
19157         if test "x$ac_cv_func_regcomp" != "xyes"; then
19158             if test "$wxUSE_REGEX" = "sys" ; then
19159                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19160 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19161    { (exit 1); exit 1; }; }
19162             else
19163                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19164 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19165                 wxUSE_REGEX=builtin
19166             fi
19167         else
19168                         wxUSE_REGEX=sys
19169         fi
19170     fi
19171 fi
19172
19173
19174 ZLIB_LINK=
19175 if test "$wxUSE_ZLIB" != "no" ; then
19176     cat >>confdefs.h <<\_ACEOF
19177 #define wxUSE_ZLIB 1
19178 _ACEOF
19179
19180
19181     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19182                                                 if test "$USE_DARWIN" = 1; then
19183             system_zlib_h_ok="yes"
19184         else
19185                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19186 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19187 if test "${ac_cv_header_zlib_h+set}" = set; then
19188   echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190   if test "$cross_compiling" = yes; then
19191                       unset ac_cv_header_zlib_h
19192
19193 else
19194   cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h.  */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h.  */
19200
19201                         #include <zlib.h>
19202                         #include <stdio.h>
19203
19204                         int main()
19205                         {
19206                             FILE *f=fopen("conftestval", "w");
19207                             if (!f) exit(1);
19208                             fprintf(f, "%s",
19209                                     ZLIB_VERSION[0] == '1' &&
19210                                     (ZLIB_VERSION[2] > '1' ||
19211                                     (ZLIB_VERSION[2] == '1' &&
19212                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19213                             exit(0);
19214                         }
19215
19216 _ACEOF
19217 rm -f conftest$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219   (eval $ac_link) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224   (eval $ac_try) 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; }; then
19228   ac_cv_header_zlib_h=`cat conftestval`
19229 else
19230   echo "$as_me: program exited with status $ac_status" >&5
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 ( exit $ac_status )
19235 ac_cv_header_zlib_h=no
19236 fi
19237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19238 fi
19239
19240 fi
19241 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19242 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19243                                     if test "${ac_cv_header_zlib_h+set}" = set; then
19244   echo "$as_me:$LINENO: checking for zlib.h" >&5
19245 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19246 if test "${ac_cv_header_zlib_h+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 fi
19249 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19250 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19251 else
19252   # Is the header compilable?
19253 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19254 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19255 cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 $ac_includes_default
19262 #include <zlib.h>
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19266   (eval $ac_compile) 2>conftest.er1
19267   ac_status=$?
19268   grep -v '^ *+' conftest.er1 >conftest.err
19269   rm -f conftest.er1
19270   cat conftest.err >&5
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); } &&
19273          { ac_try='test -z "$ac_c_werror_flag"
19274                          || test ! -s conftest.err'
19275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276   (eval $ac_try) 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; } &&
19280          { ac_try='test -s conftest.$ac_objext'
19281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282   (eval $ac_try) 2>&5
19283   ac_status=$?
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); }; }; then
19286   ac_header_compiler=yes
19287 else
19288   echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19290
19291 ac_header_compiler=no
19292 fi
19293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19295 echo "${ECHO_T}$ac_header_compiler" >&6
19296
19297 # Is the header present?
19298 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19299 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306 #include <zlib.h>
19307 _ACEOF
19308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19310   ac_status=$?
19311   grep -v '^ *+' conftest.er1 >conftest.err
19312   rm -f conftest.er1
19313   cat conftest.err >&5
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); } >/dev/null; then
19316   if test -s conftest.err; then
19317     ac_cpp_err=$ac_c_preproc_warn_flag
19318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19319   else
19320     ac_cpp_err=
19321   fi
19322 else
19323   ac_cpp_err=yes
19324 fi
19325 if test -z "$ac_cpp_err"; then
19326   ac_header_preproc=yes
19327 else
19328   echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19330
19331   ac_header_preproc=no
19332 fi
19333 rm -f conftest.err conftest.$ac_ext
19334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19335 echo "${ECHO_T}$ac_header_preproc" >&6
19336
19337 # So?  What about this header?
19338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19339   yes:no: )
19340     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19341 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19342     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19343 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19344     ac_header_preproc=yes
19345     ;;
19346   no:yes:* )
19347     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19348 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19349     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
19350 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
19351     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19352 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19353     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
19354 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19355     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19356 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19357     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19358 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19359     (
19360       cat <<\_ASBOX
19361 ## ----------------------------------------- ##
19362 ## Report this to wx-dev@lists.wxwindows.org ##
19363 ## ----------------------------------------- ##
19364 _ASBOX
19365     ) |
19366       sed "s/^/$as_me: WARNING:     /" >&2
19367     ;;
19368 esac
19369 echo "$as_me:$LINENO: checking for zlib.h" >&5
19370 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19371 if test "${ac_cv_header_zlib_h+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   ac_cv_header_zlib_h=$ac_header_preproc
19375 fi
19376 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19377 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19378
19379 fi
19380
19381
19382
19383             system_zlib_h_ok=$ac_cv_header_zlib_h
19384         fi
19385
19386         if test "$system_zlib_h_ok" = "yes"; then
19387             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19388 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19389 if test "${ac_cv_lib_z_deflate+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lz  $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 /* Override any gcc2 internal prototype to avoid an error.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 /* We use char because int might match the return type of a gcc2
19406    builtin and then its argument prototype would still apply.  */
19407 char deflate ();
19408 int
19409 main ()
19410 {
19411 deflate ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   ac_cv_lib_z_deflate=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 ac_cv_lib_z_deflate=no
19444 fi
19445 rm -f conftest.err conftest.$ac_objext \
19446       conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19448 fi
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19450 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19451 if test $ac_cv_lib_z_deflate = yes; then
19452   ZLIB_LINK=" -lz"
19453 fi
19454
19455         fi
19456
19457         if test "x$ZLIB_LINK" = "x" ; then
19458             if test "$wxUSE_ZLIB" = "sys" ; then
19459                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19460 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19461    { (exit 1); exit 1; }; }
19462             else
19463                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19464 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
19465                 wxUSE_ZLIB=builtin
19466             fi
19467         else
19468                         wxUSE_ZLIB=sys
19469         fi
19470     fi
19471 fi
19472
19473
19474 PNG_LINK=
19475 if test "$wxUSE_LIBPNG" != "no" ; then
19476     cat >>confdefs.h <<\_ACEOF
19477 #define wxUSE_LIBPNG 1
19478 _ACEOF
19479
19480
19481     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
19482         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19483 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
19484         wxUSE_LIBPNG=sys
19485     fi
19486
19487                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
19488         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19489 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
19490         wxUSE_LIBPNG=builtin
19491     fi
19492
19493     if test "$wxUSE_MGL" != 1 ; then
19494                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
19495                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19496 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19497 if test "${ac_cv_header_png_h+set}" = set; then
19498   echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500   if test "$cross_compiling" = yes; then
19501                       unset ac_cv_header_png_h
19502
19503 else
19504   cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510
19511                         #include <png.h>
19512                         #include <stdio.h>
19513
19514                         int main()
19515                         {
19516                             FILE *f=fopen("conftestval", "w");
19517                             if (!f) exit(1);
19518                             fprintf(f, "%s",
19519                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
19520                             exit(0);
19521                         }
19522
19523 _ACEOF
19524 rm -f conftest$ac_exeext
19525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526   (eval $ac_link) 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531   (eval $ac_try) 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; }; then
19535   ac_cv_header_png_h=`cat conftestval`
19536 else
19537   echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541 ( exit $ac_status )
19542 ac_cv_header_png_h=no
19543 fi
19544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19545 fi
19546
19547 fi
19548 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19549 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19550             if test "${ac_cv_header_png_h+set}" = set; then
19551   echo "$as_me:$LINENO: checking for png.h" >&5
19552 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19553 if test "${ac_cv_header_png_h+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 fi
19556 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19557 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19558 else
19559   # Is the header compilable?
19560 echo "$as_me:$LINENO: checking png.h usability" >&5
19561 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 $ac_includes_default
19569 #include <png.h>
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573   (eval $ac_compile) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_c_werror_flag"
19581                          || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest.$ac_objext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593   ac_header_compiler=yes
19594 else
19595   echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 ac_header_compiler=no
19599 fi
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19602 echo "${ECHO_T}$ac_header_compiler" >&6
19603
19604 # Is the header present?
19605 echo "$as_me:$LINENO: checking png.h presence" >&5
19606 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #include <png.h>
19614 _ACEOF
19615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19617   ac_status=$?
19618   grep -v '^ *+' conftest.er1 >conftest.err
19619   rm -f conftest.er1
19620   cat conftest.err >&5
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); } >/dev/null; then
19623   if test -s conftest.err; then
19624     ac_cpp_err=$ac_c_preproc_warn_flag
19625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19626   else
19627     ac_cpp_err=
19628   fi
19629 else
19630   ac_cpp_err=yes
19631 fi
19632 if test -z "$ac_cpp_err"; then
19633   ac_header_preproc=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638   ac_header_preproc=no
19639 fi
19640 rm -f conftest.err conftest.$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19642 echo "${ECHO_T}$ac_header_preproc" >&6
19643
19644 # So?  What about this header?
19645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19646   yes:no: )
19647     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19648 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19649     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19650 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19651     ac_header_preproc=yes
19652     ;;
19653   no:yes:* )
19654     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19655 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
19657 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
19658     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19659 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19660     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
19661 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19662     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19663 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19664     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19665 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19666     (
19667       cat <<\_ASBOX
19668 ## ----------------------------------------- ##
19669 ## Report this to wx-dev@lists.wxwindows.org ##
19670 ## ----------------------------------------- ##
19671 _ASBOX
19672     ) |
19673       sed "s/^/$as_me: WARNING:     /" >&2
19674     ;;
19675 esac
19676 echo "$as_me:$LINENO: checking for png.h" >&5
19677 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19678 if test "${ac_cv_header_png_h+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   ac_cv_header_png_h=$ac_header_preproc
19682 fi
19683 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19684 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19685
19686 fi
19687
19688
19689
19690             if test "$ac_cv_header_png_h" = "yes"; then
19691                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19692 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19693 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19694   echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696   ac_check_lib_save_LIBS=$LIBS
19697 LIBS="-lpng -lz -lm $LIBS"
19698 cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704
19705 /* Override any gcc2 internal prototype to avoid an error.  */
19706 #ifdef __cplusplus
19707 extern "C"
19708 #endif
19709 /* We use char because int might match the return type of a gcc2
19710    builtin and then its argument prototype would still apply.  */
19711 char png_check_sig ();
19712 int
19713 main ()
19714 {
19715 png_check_sig ();
19716   ;
19717   return 0;
19718 }
19719 _ACEOF
19720 rm -f conftest.$ac_objext conftest$ac_exeext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19722   (eval $ac_link) 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } &&
19729          { ac_try='test -z "$ac_c_werror_flag"
19730                          || test ! -s conftest.err'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; } &&
19736          { ac_try='test -s conftest$ac_exeext'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_cv_lib_png_png_check_sig=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_lib_png_png_check_sig=no
19748 fi
19749 rm -f conftest.err conftest.$ac_objext \
19750       conftest$ac_exeext conftest.$ac_ext
19751 LIBS=$ac_check_lib_save_LIBS
19752 fi
19753 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19754 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19755 if test $ac_cv_lib_png_png_check_sig = yes; then
19756   PNG_LINK=" -lpng"
19757 fi
19758
19759             fi
19760
19761             if test "x$PNG_LINK" = "x" ; then
19762                 if test "$wxUSE_LIBPNG" = "sys" ; then
19763                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19764 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19765    { (exit 1); exit 1; }; }
19766                 else
19767                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19768 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
19769                     wxUSE_LIBPNG=builtin
19770                 fi
19771             else
19772                                 wxUSE_LIBPNG=sys
19773             fi
19774         fi
19775     fi
19776
19777     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
19778 fi
19779
19780
19781 JPEG_LINK=
19782 if test "$wxUSE_LIBJPEG" != "no" ; then
19783     cat >>confdefs.h <<\_ACEOF
19784 #define wxUSE_LIBJPEG 1
19785 _ACEOF
19786
19787
19788     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
19789         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19790 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
19791         wxUSE_LIBJPEG=sys
19792     fi
19793
19794     if test "$wxUSE_MGL" != 1 ; then
19795                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
19796                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19797 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19798             if test "${ac_cv_header_jpeglib_h+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807
19808                         #undef HAVE_STDLIB_H
19809                         #include <stdio.h>
19810                         #include <jpeglib.h>
19811
19812 int
19813 main ()
19814 {
19815
19816
19817   ;
19818   return 0;
19819 }
19820 _ACEOF
19821 rm -f conftest.$ac_objext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19823   (eval $ac_compile) 2>conftest.er1
19824   ac_status=$?
19825   grep -v '^ *+' conftest.er1 >conftest.err
19826   rm -f conftest.er1
19827   cat conftest.err >&5
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } &&
19830          { ac_try='test -z "$ac_c_werror_flag"
19831                          || test ! -s conftest.err'
19832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833   (eval $ac_try) 2>&5
19834   ac_status=$?
19835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); }; } &&
19837          { ac_try='test -s conftest.$ac_objext'
19838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839   (eval $ac_try) 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; }; then
19843   ac_cv_header_jpeglib_h=yes
19844 else
19845   echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19847
19848 ac_cv_header_jpeglib_h=no
19849
19850 fi
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852
19853 fi
19854
19855             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19856 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19857
19858             if test "$ac_cv_header_jpeglib_h" = "yes"; then
19859                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19860 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19861 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19864   ac_check_lib_save_LIBS=$LIBS
19865 LIBS="-ljpeg  $LIBS"
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872
19873 /* Override any gcc2 internal prototype to avoid an error.  */
19874 #ifdef __cplusplus
19875 extern "C"
19876 #endif
19877 /* We use char because int might match the return type of a gcc2
19878    builtin and then its argument prototype would still apply.  */
19879 char jpeg_read_header ();
19880 int
19881 main ()
19882 {
19883 jpeg_read_header ();
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19890   (eval $ac_link) 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } &&
19897          { ac_try='test -z "$ac_c_werror_flag"
19898                          || test ! -s conftest.err'
19899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900   (eval $ac_try) 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; } &&
19904          { ac_try='test -s conftest$ac_exeext'
19905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906   (eval $ac_try) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; }; then
19910   ac_cv_lib_jpeg_jpeg_read_header=yes
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915 ac_cv_lib_jpeg_jpeg_read_header=no
19916 fi
19917 rm -f conftest.err conftest.$ac_objext \
19918       conftest$ac_exeext conftest.$ac_ext
19919 LIBS=$ac_check_lib_save_LIBS
19920 fi
19921 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19922 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19923 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19924   JPEG_LINK=" -ljpeg"
19925 fi
19926
19927             fi
19928
19929             if test "x$JPEG_LINK" = "x" ; then
19930                 if test "$wxUSE_LIBJPEG" = "sys" ; then
19931                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19932 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19933    { (exit 1); exit 1; }; }
19934                 else
19935                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19936 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19937                     wxUSE_LIBJPEG=builtin
19938                 fi
19939             else
19940                                 wxUSE_LIBJPEG=sys
19941             fi
19942         fi
19943     fi
19944 fi
19945
19946
19947 TIFF_LINK=
19948 TIFF_PREREQ_LINKS=-lm
19949 if test "$wxUSE_LIBTIFF" != "no" ; then
19950     cat >>confdefs.h <<\_ACEOF
19951 #define wxUSE_LIBTIFF 1
19952 _ACEOF
19953
19954
19955     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19956                         if test "$wxUSE_LIBJPEG" = "sys"; then
19957             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19958         fi
19959         if test "$wxUSE_ZLIB" = "sys"; then
19960             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19961         fi
19962         if test "${ac_cv_header_tiffio_h+set}" = set; then
19963   echo "$as_me:$LINENO: checking for tiffio.h" >&5
19964 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19965 if test "${ac_cv_header_tiffio_h+set}" = set; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 fi
19968 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19969 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19970 else
19971   # Is the header compilable?
19972 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19973 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
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 #include <tiffio.h>
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985   (eval $ac_compile) 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } &&
19992          { ac_try='test -z "$ac_c_werror_flag"
19993                          || test ! -s conftest.err'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; } &&
19999          { ac_try='test -s conftest.$ac_objext'
20000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001   (eval $ac_try) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   ac_header_compiler=yes
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ac_header_compiler=no
20011 fi
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20014 echo "${ECHO_T}$ac_header_compiler" >&6
20015
20016 # Is the header present?
20017 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20018 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h.  */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h.  */
20025 #include <tiffio.h>
20026 _ACEOF
20027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20029   ac_status=$?
20030   grep -v '^ *+' conftest.er1 >conftest.err
20031   rm -f conftest.er1
20032   cat conftest.err >&5
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); } >/dev/null; then
20035   if test -s conftest.err; then
20036     ac_cpp_err=$ac_c_preproc_warn_flag
20037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20038   else
20039     ac_cpp_err=
20040   fi
20041 else
20042   ac_cpp_err=yes
20043 fi
20044 if test -z "$ac_cpp_err"; then
20045   ac_header_preproc=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050   ac_header_preproc=no
20051 fi
20052 rm -f conftest.err conftest.$ac_ext
20053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20054 echo "${ECHO_T}$ac_header_preproc" >&6
20055
20056 # So?  What about this header?
20057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20058   yes:no: )
20059     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20060 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20061     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20062 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20063     ac_header_preproc=yes
20064     ;;
20065   no:yes:* )
20066     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20067 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
20069 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20071 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
20073 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20074     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20075 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20076     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20077 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20078     (
20079       cat <<\_ASBOX
20080 ## ----------------------------------------- ##
20081 ## Report this to wx-dev@lists.wxwindows.org ##
20082 ## ----------------------------------------- ##
20083 _ASBOX
20084     ) |
20085       sed "s/^/$as_me: WARNING:     /" >&2
20086     ;;
20087 esac
20088 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20089 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20090 if test "${ac_cv_header_tiffio_h+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   ac_cv_header_tiffio_h=$ac_header_preproc
20094 fi
20095 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20096 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20097
20098 fi
20099 if test $ac_cv_header_tiffio_h = yes; then
20100
20101                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20102 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20103 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106   ac_check_lib_save_LIBS=$LIBS
20107 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114
20115 /* Override any gcc2 internal prototype to avoid an error.  */
20116 #ifdef __cplusplus
20117 extern "C"
20118 #endif
20119 /* We use char because int might match the return type of a gcc2
20120    builtin and then its argument prototype would still apply.  */
20121 char TIFFError ();
20122 int
20123 main ()
20124 {
20125 TIFFError ();
20126   ;
20127   return 0;
20128 }
20129 _ACEOF
20130 rm -f conftest.$ac_objext conftest$ac_exeext
20131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20132   (eval $ac_link) 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -z "$ac_c_werror_flag"
20140                          || test ! -s conftest.err'
20141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142   (eval $ac_try) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; } &&
20146          { ac_try='test -s conftest$ac_exeext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   ac_cv_lib_tiff_TIFFError=yes
20153 else
20154   echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 ac_cv_lib_tiff_TIFFError=no
20158 fi
20159 rm -f conftest.err conftest.$ac_objext \
20160       conftest$ac_exeext conftest.$ac_ext
20161 LIBS=$ac_check_lib_save_LIBS
20162 fi
20163 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20164 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20165 if test $ac_cv_lib_tiff_TIFFError = yes; then
20166   TIFF_LINK=" -ltiff"
20167 fi
20168
20169
20170
20171 fi
20172
20173
20174
20175         if test "x$TIFF_LINK" = "x" ; then
20176             if test "$wxUSE_LIBTIFF" = "sys" ; then
20177                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20178 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20179    { (exit 1); exit 1; }; }
20180             else
20181                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20182 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20183                 wxUSE_LIBTIFF=builtin
20184             fi
20185         else
20186                         wxUSE_LIBTIFF=sys
20187         fi
20188     fi
20189 fi
20190
20191
20192 if test "$wxUSE_EXPAT" != "no"; then
20193     wxUSE_XML=yes
20194     cat >>confdefs.h <<\_ACEOF
20195 #define wxUSE_EXPAT 1
20196 _ACEOF
20197
20198     cat >>confdefs.h <<\_ACEOF
20199 #define wxUSE_XML 1
20200 _ACEOF
20201
20202
20203     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20204         if test "${ac_cv_header_expat_h+set}" = set; then
20205   echo "$as_me:$LINENO: checking for expat.h" >&5
20206 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20207 if test "${ac_cv_header_expat_h+set}" = set; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 fi
20210 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20211 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20212 else
20213   # Is the header compilable?
20214 echo "$as_me:$LINENO: checking expat.h usability" >&5
20215 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 $ac_includes_default
20223 #include <expat.h>
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227   (eval $ac_compile) 2>conftest.er1
20228   ac_status=$?
20229   grep -v '^ *+' conftest.er1 >conftest.err
20230   rm -f conftest.er1
20231   cat conftest.err >&5
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } &&
20234          { ac_try='test -z "$ac_c_werror_flag"
20235                          || test ! -s conftest.err'
20236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; } &&
20241          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20247   ac_header_compiler=yes
20248 else
20249   echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ac_header_compiler=no
20253 fi
20254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20256 echo "${ECHO_T}$ac_header_compiler" >&6
20257
20258 # Is the header present?
20259 echo "$as_me:$LINENO: checking expat.h presence" >&5
20260 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20261 cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267 #include <expat.h>
20268 _ACEOF
20269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20271   ac_status=$?
20272   grep -v '^ *+' conftest.er1 >conftest.err
20273   rm -f conftest.er1
20274   cat conftest.err >&5
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } >/dev/null; then
20277   if test -s conftest.err; then
20278     ac_cpp_err=$ac_c_preproc_warn_flag
20279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20280   else
20281     ac_cpp_err=
20282   fi
20283 else
20284   ac_cpp_err=yes
20285 fi
20286 if test -z "$ac_cpp_err"; then
20287   ac_header_preproc=yes
20288 else
20289   echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292   ac_header_preproc=no
20293 fi
20294 rm -f conftest.err conftest.$ac_ext
20295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20296 echo "${ECHO_T}$ac_header_preproc" >&6
20297
20298 # So?  What about this header?
20299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20300   yes:no: )
20301     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20302 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20303     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20304 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20305     ac_header_preproc=yes
20306     ;;
20307   no:yes:* )
20308     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20309 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20310     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
20311 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
20312     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20313 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20314     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
20315 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20316     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20317 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20318     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20319 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20320     (
20321       cat <<\_ASBOX
20322 ## ----------------------------------------- ##
20323 ## Report this to wx-dev@lists.wxwindows.org ##
20324 ## ----------------------------------------- ##
20325 _ASBOX
20326     ) |
20327       sed "s/^/$as_me: WARNING:     /" >&2
20328     ;;
20329 esac
20330 echo "$as_me:$LINENO: checking for expat.h" >&5
20331 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20332 if test "${ac_cv_header_expat_h+set}" = set; then
20333   echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335   ac_cv_header_expat_h=$ac_header_preproc
20336 fi
20337 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20338 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20339
20340 fi
20341 if test $ac_cv_header_expat_h = yes; then
20342   found_expat_h=1
20343 fi
20344
20345
20346         if test "x$found_expat_h" = "x1"; then
20347                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20348 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20349 if test "${wx_cv_expat_is_not_broken+set}" = set; then
20350   echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352
20353
20354
20355                 ac_ext=cc
20356 ac_cpp='$CXXCPP $CPPFLAGS'
20357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20360
20361                 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h.  */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h.  */
20367 #include <expat.h>
20368 int
20369 main ()
20370 {
20371
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378   (eval $ac_compile) 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } &&
20385          { ac_try='test -z "$ac_cxx_werror_flag"
20386                          || test ! -s conftest.err'
20387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388   (eval $ac_try) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; } &&
20392          { ac_try='test -s conftest.$ac_objext'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; }; then
20398   wx_cv_expat_is_not_broken=yes
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 wx_cv_expat_is_not_broken=no
20404
20405 fi
20406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20407                 ac_ext=c
20408 ac_cpp='$CPP $CPPFLAGS'
20409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20412
20413
20414
20415 fi
20416 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20417 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20418             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20419                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20420 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20421 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424   ac_check_lib_save_LIBS=$LIBS
20425 LIBS="-lexpat  $LIBS"
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432
20433 /* Override any gcc2 internal prototype to avoid an error.  */
20434 #ifdef __cplusplus
20435 extern "C"
20436 #endif
20437 /* We use char because int might match the return type of a gcc2
20438    builtin and then its argument prototype would still apply.  */
20439 char XML_ParserCreate ();
20440 int
20441 main ()
20442 {
20443 XML_ParserCreate ();
20444   ;
20445   return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450   (eval $ac_link) 2>conftest.er1
20451   ac_status=$?
20452   grep -v '^ *+' conftest.er1 >conftest.err
20453   rm -f conftest.er1
20454   cat conftest.err >&5
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); } &&
20457          { ac_try='test -z "$ac_c_werror_flag"
20458                          || test ! -s conftest.err'
20459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460   (eval $ac_try) 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; } &&
20464          { ac_try='test -s conftest$ac_exeext'
20465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466   (eval $ac_try) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }; }; then
20470   ac_cv_lib_expat_XML_ParserCreate=yes
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475 ac_cv_lib_expat_XML_ParserCreate=no
20476 fi
20477 rm -f conftest.err conftest.$ac_objext \
20478       conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20480 fi
20481 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20482 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20483 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20484   EXPAT_LINK=" -lexpat"
20485 fi
20486
20487             fi
20488         fi
20489         if test "x$EXPAT_LINK" = "x" ; then
20490             if test "$wxUSE_EXPAT" = "sys" ; then
20491                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20492 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20493    { (exit 1); exit 1; }; }
20494             else
20495                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20496 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20497                 wxUSE_EXPAT=builtin
20498             fi
20499         else
20500                         wxUSE_EXPAT=sys
20501         fi
20502     fi
20503     if test "$wxUSE_EXPAT" = "builtin" ; then
20504
20505
20506 subdirs="$subdirs src/expat"
20507
20508     fi
20509 fi
20510
20511
20512
20513 if test "$wxUSE_LIBMSPACK" != "no"; then
20514
20515     if test "${ac_cv_header_mspack_h+set}" = set; then
20516   echo "$as_me:$LINENO: checking for mspack.h" >&5
20517 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20518 if test "${ac_cv_header_mspack_h+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 fi
20521 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20522 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20523 else
20524   # Is the header compilable?
20525 echo "$as_me:$LINENO: checking mspack.h usability" >&5
20526 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h.  */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h.  */
20533 $ac_includes_default
20534 #include <mspack.h>
20535 _ACEOF
20536 rm -f conftest.$ac_objext
20537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20538   (eval $ac_compile) 2>conftest.er1
20539   ac_status=$?
20540   grep -v '^ *+' conftest.er1 >conftest.err
20541   rm -f conftest.er1
20542   cat conftest.err >&5
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } &&
20545          { ac_try='test -z "$ac_c_werror_flag"
20546                          || test ! -s conftest.err'
20547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548   (eval $ac_try) 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); }; } &&
20552          { ac_try='test -s conftest.$ac_objext'
20553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554   (eval $ac_try) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; }; then
20558   ac_header_compiler=yes
20559 else
20560   echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 ac_header_compiler=no
20564 fi
20565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20567 echo "${ECHO_T}$ac_header_compiler" >&6
20568
20569 # Is the header present?
20570 echo "$as_me:$LINENO: checking mspack.h presence" >&5
20571 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578 #include <mspack.h>
20579 _ACEOF
20580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20582   ac_status=$?
20583   grep -v '^ *+' conftest.er1 >conftest.err
20584   rm -f conftest.er1
20585   cat conftest.err >&5
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); } >/dev/null; then
20588   if test -s conftest.err; then
20589     ac_cpp_err=$ac_c_preproc_warn_flag
20590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20591   else
20592     ac_cpp_err=
20593   fi
20594 else
20595   ac_cpp_err=yes
20596 fi
20597 if test -z "$ac_cpp_err"; then
20598   ac_header_preproc=yes
20599 else
20600   echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603   ac_header_preproc=no
20604 fi
20605 rm -f conftest.err conftest.$ac_ext
20606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20607 echo "${ECHO_T}$ac_header_preproc" >&6
20608
20609 # So?  What about this header?
20610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20611   yes:no: )
20612     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20613 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20614     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20615 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20616     ac_header_preproc=yes
20617     ;;
20618   no:yes:* )
20619     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20620 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
20621     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
20622 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
20623     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20624 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20625     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
20626 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20627     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20628 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20629     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20630 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
20631     (
20632       cat <<\_ASBOX
20633 ## ----------------------------------------- ##
20634 ## Report this to wx-dev@lists.wxwindows.org ##
20635 ## ----------------------------------------- ##
20636 _ASBOX
20637     ) |
20638       sed "s/^/$as_me: WARNING:     /" >&2
20639     ;;
20640 esac
20641 echo "$as_me:$LINENO: checking for mspack.h" >&5
20642 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20643 if test "${ac_cv_header_mspack_h+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   ac_cv_header_mspack_h=$ac_header_preproc
20647 fi
20648 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20649 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20650
20651 fi
20652 if test $ac_cv_header_mspack_h = yes; then
20653   found_mspack_h=1
20654 fi
20655
20656
20657     if test "x$found_mspack_h" = "x1"; then
20658         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20659 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20660 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   ac_check_lib_save_LIBS=$LIBS
20664 LIBS="-lmspack  $LIBS"
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h.  */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h.  */
20671
20672 /* Override any gcc2 internal prototype to avoid an error.  */
20673 #ifdef __cplusplus
20674 extern "C"
20675 #endif
20676 /* We use char because int might match the return type of a gcc2
20677    builtin and then its argument prototype would still apply.  */
20678 char mspack_create_chm_decompressor ();
20679 int
20680 main ()
20681 {
20682 mspack_create_chm_decompressor ();
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext conftest$ac_exeext
20688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20689   (eval $ac_link) 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } &&
20696          { ac_try='test -z "$ac_c_werror_flag"
20697                          || test ! -s conftest.err'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; } &&
20703          { ac_try='test -s conftest$ac_exeext'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; }; then
20709   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20710 else
20711   echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20715 fi
20716 rm -f conftest.err conftest.$ac_objext \
20717       conftest$ac_exeext conftest.$ac_ext
20718 LIBS=$ac_check_lib_save_LIBS
20719 fi
20720 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20721 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20722 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20723   MSPACK_LINK=" -lmspack"
20724 fi
20725
20726     fi
20727     if test "x$MSPACK_LINK" = "x" ; then
20728         wxUSE_LIBMSPACK=no
20729     else
20730         cat >>confdefs.h <<\_ACEOF
20731 #define wxUSE_LIBMSPACK 1
20732 _ACEOF
20733
20734     fi
20735 fi
20736
20737
20738
20739 AFMINSTALL=
20740 WIN32INSTALL=
20741
20742 TOOLKIT=
20743 TOOLKIT_INCLUDE=
20744 WIDGET_SET=
20745
20746 if test "$USE_WIN32" = 1 ; then
20747
20748 for ac_header in w32api.h
20749 do
20750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20752   echo "$as_me:$LINENO: checking for $ac_header" >&5
20753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20755   echo $ECHO_N "(cached) $ECHO_C" >&6
20756 fi
20757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20759 else
20760   # Is the header compilable?
20761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770 #include <$ac_header>
20771 _ACEOF
20772 rm -f conftest.$ac_objext
20773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774   (eval $ac_compile) 2>conftest.er1
20775   ac_status=$?
20776   grep -v '^ *+' conftest.er1 >conftest.err
20777   rm -f conftest.er1
20778   cat conftest.err >&5
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); } &&
20781          { ac_try='test -z "$ac_c_werror_flag"
20782                          || test ! -s conftest.err'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; } &&
20788          { ac_try='test -s conftest.$ac_objext'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794   ac_header_compiler=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_header_compiler=no
20800 fi
20801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20803 echo "${ECHO_T}$ac_header_compiler" >&6
20804
20805 # Is the header present?
20806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814 #include <$ac_header>
20815 _ACEOF
20816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } >/dev/null; then
20824   if test -s conftest.err; then
20825     ac_cpp_err=$ac_c_preproc_warn_flag
20826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20827   else
20828     ac_cpp_err=
20829   fi
20830 else
20831   ac_cpp_err=yes
20832 fi
20833 if test -z "$ac_cpp_err"; then
20834   ac_header_preproc=yes
20835 else
20836   echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839   ac_header_preproc=no
20840 fi
20841 rm -f conftest.err conftest.$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20843 echo "${ECHO_T}$ac_header_preproc" >&6
20844
20845 # So?  What about this header?
20846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20847   yes:no: )
20848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20852     ac_header_preproc=yes
20853     ;;
20854   no:yes:* )
20855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20867     (
20868       cat <<\_ASBOX
20869 ## ----------------------------------------- ##
20870 ## Report this to wx-dev@lists.wxwindows.org ##
20871 ## ----------------------------------------- ##
20872 _ASBOX
20873     ) |
20874       sed "s/^/$as_me: WARNING:     /" >&2
20875     ;;
20876 esac
20877 echo "$as_me:$LINENO: checking for $ac_header" >&5
20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20880   echo $ECHO_N "(cached) $ECHO_C" >&6
20881 else
20882   eval "$as_ac_Header=\$ac_header_preproc"
20883 fi
20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20886
20887 fi
20888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20889   cat >>confdefs.h <<_ACEOF
20890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20891 _ACEOF
20892
20893 fi
20894
20895 done
20896
20897     if test "${ac_cv_header_windows_h+set}" = set; then
20898   echo "$as_me:$LINENO: checking for windows.h" >&5
20899 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20900 if test "${ac_cv_header_windows_h+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 fi
20903 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20904 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20905 else
20906   # Is the header compilable?
20907 echo "$as_me:$LINENO: checking windows.h usability" >&5
20908 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916 #include <windows.h>
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20920   (eval $ac_compile) 2>conftest.er1
20921   ac_status=$?
20922   grep -v '^ *+' conftest.er1 >conftest.err
20923   rm -f conftest.er1
20924   cat conftest.err >&5
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); } &&
20927          { ac_try='test -z "$ac_c_werror_flag"
20928                          || test ! -s conftest.err'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; } &&
20934          { ac_try='test -s conftest.$ac_objext'
20935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936   (eval $ac_try) 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); }; }; then
20940   ac_header_compiler=yes
20941 else
20942   echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945 ac_header_compiler=no
20946 fi
20947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20949 echo "${ECHO_T}$ac_header_compiler" >&6
20950
20951 # Is the header present?
20952 echo "$as_me:$LINENO: checking windows.h presence" >&5
20953 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 #include <windows.h>
20961 _ACEOF
20962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20964   ac_status=$?
20965   grep -v '^ *+' conftest.er1 >conftest.err
20966   rm -f conftest.er1
20967   cat conftest.err >&5
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } >/dev/null; then
20970   if test -s conftest.err; then
20971     ac_cpp_err=$ac_c_preproc_warn_flag
20972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20973   else
20974     ac_cpp_err=
20975   fi
20976 else
20977   ac_cpp_err=yes
20978 fi
20979 if test -z "$ac_cpp_err"; then
20980   ac_header_preproc=yes
20981 else
20982   echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20984
20985   ac_header_preproc=no
20986 fi
20987 rm -f conftest.err conftest.$ac_ext
20988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20989 echo "${ECHO_T}$ac_header_preproc" >&6
20990
20991 # So?  What about this header?
20992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20993   yes:no: )
20994     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20995 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20996     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
20997 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
20998     ac_header_preproc=yes
20999     ;;
21000   no:yes:* )
21001     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21002 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21003     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
21004 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
21005     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21006 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21007     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
21008 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21009     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21010 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21011     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21012 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21013     (
21014       cat <<\_ASBOX
21015 ## ----------------------------------------- ##
21016 ## Report this to wx-dev@lists.wxwindows.org ##
21017 ## ----------------------------------------- ##
21018 _ASBOX
21019     ) |
21020       sed "s/^/$as_me: WARNING:     /" >&2
21021     ;;
21022 esac
21023 echo "$as_me:$LINENO: checking for windows.h" >&5
21024 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21025 if test "${ac_cv_header_windows_h+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028   ac_cv_header_windows_h=$ac_header_preproc
21029 fi
21030 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21031 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21032
21033 fi
21034 if test $ac_cv_header_windows_h = yes; then
21035   :
21036 else
21037
21038         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21039 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21040    { (exit 1); exit 1; }; }
21041
21042 fi
21043
21044
21045
21046             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21047
21048     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21049         LIBS="$LIBS -loleacc"
21050     fi
21051
21052     case "${host}" in
21053         *-*-cygwin* )
21054                         LIBS="$LIBS -lkernel32 -luser32"
21055             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21056     esac
21057
21058         if test "$wxUSE_ODBC" = "sys" ; then
21059         wxUSE_ODBC = "yes"
21060     fi
21061     if test "$wxUSE_ODBC" = "yes" ; then
21062         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21063         cat >>confdefs.h <<\_ACEOF
21064 #define wxUSE_ODBC 1
21065 _ACEOF
21066
21067     fi
21068
21069     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21070     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21071
21072         WIN32INSTALL=win32install
21073 fi
21074
21075 if test "$wxUSE_GUI" = "yes"; then
21076     USE_GUI=1
21077
21078     GUI_TK_LIBRARY=
21079
21080     WXGTK12=
21081     WXGTK127=
21082     WXGTK20=
21083
21084     if test "$wxUSE_MSW" = 1 ; then
21085         TOOLKIT=MSW
21086         GUIDIST=MSW_DIST
21087
21088                                 case "${host}" in
21089             *-*-mingw32* )
21090                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21091         esac
21092     fi
21093
21094     if test "$wxUSE_GTK" = 1; then
21095         echo "$as_me:$LINENO: checking for GTK+ version" >&5
21096 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21097
21098         gtk_version_cached=1
21099         if test "${wx_cv_lib_gtk+set}" = set; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102
21103                                                 gtk_version_cached=0
21104                 echo "$as_me:$LINENO: result: " >&5
21105 echo "${ECHO_T}" >&6
21106
21107                                                 GTK_MODULES=
21108                 if test "$wxUSE_THREADS" = "yes"; then
21109                     GTK_MODULES=gthread
21110                 fi
21111
21112                                                 wx_cv_lib_gtk=
21113                 if test "x$wxUSE_GTK2" = "xyes"; then
21114                     # Check whether --enable-gtktest or --disable-gtktest was given.
21115 if test "${enable_gtktest+set}" = set; then
21116   enableval="$enable_gtktest"
21117
21118 else
21119   enable_gtktest=yes
21120 fi;
21121
21122   pkg_config_args=gtk+-2.0
21123   for module in . $GTK_MODULES
21124   do
21125       case "$module" in
21126          gthread)
21127              pkg_config_args="$pkg_config_args gthread-2.0"
21128          ;;
21129       esac
21130   done
21131
21132   no_gtk=""
21133
21134   # Extract the first word of "pkg-config", so it can be a program name with args.
21135 set dummy pkg-config; ac_word=$2
21136 echo "$as_me:$LINENO: checking for $ac_word" >&5
21137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21138 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141   case $PKG_CONFIG in
21142   [\\/]* | ?:[\\/]*)
21143   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21144   ;;
21145   *)
21146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21147 for as_dir in $PATH
21148 do
21149   IFS=$as_save_IFS
21150   test -z "$as_dir" && as_dir=.
21151   for ac_exec_ext in '' $ac_executable_extensions; do
21152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21153     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21155     break 2
21156   fi
21157 done
21158 done
21159
21160   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21161   ;;
21162 esac
21163 fi
21164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21165
21166 if test -n "$PKG_CONFIG"; then
21167   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21168 echo "${ECHO_T}$PKG_CONFIG" >&6
21169 else
21170   echo "$as_me:$LINENO: result: no" >&5
21171 echo "${ECHO_T}no" >&6
21172 fi
21173
21174
21175   if test x$PKG_CONFIG != xno ; then
21176     if pkg-config --atleast-pkgconfig-version 0.7 ; then
21177       :
21178     else
21179       echo *** pkg-config too old; version 0.7 or better required.
21180       no_gtk=yes
21181       PKG_CONFIG=no
21182     fi
21183   else
21184     no_gtk=yes
21185   fi
21186
21187   min_gtk_version=2.0.0
21188   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21189 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21190
21191   if test x$PKG_CONFIG != xno ; then
21192     ## don't try to run the test against uninstalled libtool libs
21193     if $PKG_CONFIG --uninstalled $pkg_config_args; then
21194           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21195           enable_gtktest=no
21196     fi
21197
21198     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21199           :
21200     else
21201           no_gtk=yes
21202     fi
21203   fi
21204
21205   if test x"$no_gtk" = x ; then
21206     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21207     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21208     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21209            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21210     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21211            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21212     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21213            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21214     if test "x$enable_gtktest" = "xyes" ; then
21215       ac_save_CFLAGS="$CFLAGS"
21216       ac_save_LIBS="$LIBS"
21217       CFLAGS="$CFLAGS $GTK_CFLAGS"
21218       LIBS="$GTK_LIBS $LIBS"
21219       rm -f conf.gtktest
21220       if test "$cross_compiling" = yes; then
21221   echo $ac_n "cross compiling; assumed OK... $ac_c"
21222 else
21223   cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229
21230 #include <gtk/gtk.h>
21231 #include <stdio.h>
21232 #include <stdlib.h>
21233
21234 int
21235 main ()
21236 {
21237   int major, minor, micro;
21238   char *tmp_version;
21239
21240   system ("touch conf.gtktest");
21241
21242   /* HP/UX 9 (%@#!) writes to sscanf strings */
21243   tmp_version = g_strdup("$min_gtk_version");
21244   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21245      printf("%s, bad version string\n", "$min_gtk_version");
21246      exit(1);
21247    }
21248
21249   if ((gtk_major_version != $gtk_config_major_version) ||
21250       (gtk_minor_version != $gtk_config_minor_version) ||
21251       (gtk_micro_version != $gtk_config_micro_version))
21252     {
21253       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21254              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21255              gtk_major_version, gtk_minor_version, gtk_micro_version);
21256       printf ("*** was found! If pkg-config was correct, then it is best\n");
21257       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21258       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21259       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21260       printf("*** required on your system.\n");
21261       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21262       printf("*** to point to the correct configuration files\n");
21263     }
21264   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21265            (gtk_minor_version != GTK_MINOR_VERSION) ||
21266            (gtk_micro_version != GTK_MICRO_VERSION))
21267     {
21268       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21269              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21270       printf("*** library (version %d.%d.%d)\n",
21271              gtk_major_version, gtk_minor_version, gtk_micro_version);
21272     }
21273   else
21274     {
21275       if ((gtk_major_version > major) ||
21276         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21277         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21278       {
21279         return 0;
21280        }
21281      else
21282       {
21283         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21284                gtk_major_version, gtk_minor_version, gtk_micro_version);
21285         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21286                major, minor, micro);
21287         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21288         printf("***\n");
21289         printf("*** If you have already installed a sufficiently new version, this error\n");
21290         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21291         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21292         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21293         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21294         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21295         printf("*** so that the correct libraries are found at run-time))\n");
21296       }
21297     }
21298   return 1;
21299 }
21300
21301 _ACEOF
21302 rm -f conftest$ac_exeext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304   (eval $ac_link) 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; }; then
21313   :
21314 else
21315   echo "$as_me: program exited with status $ac_status" >&5
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319 ( exit $ac_status )
21320 no_gtk=yes
21321 fi
21322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21323 fi
21324        CFLAGS="$ac_save_CFLAGS"
21325        LIBS="$ac_save_LIBS"
21326      fi
21327   fi
21328   if test "x$no_gtk" = x ; then
21329      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21330 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21331      wx_cv_lib_gtk=2.0
21332   else
21333      echo "$as_me:$LINENO: result: no" >&5
21334 echo "${ECHO_T}no" >&6
21335      if test "$PKG_CONFIG" = "no" ; then
21336        echo "*** A new enough version of pkg-config was not found."
21337        echo "*** See http://pkgconfig.sourceforge.net"
21338      else
21339        if test -f conf.gtktest ; then
21340         :
21341        else
21342           echo "*** Could not run GTK+ test program, checking why..."
21343           ac_save_CFLAGS="$CFLAGS"
21344           ac_save_LIBS="$LIBS"
21345           CFLAGS="$CFLAGS $GTK_CFLAGS"
21346           LIBS="$LIBS $GTK_LIBS"
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
21354 #include <gtk/gtk.h>
21355 #include <stdio.h>
21356
21357 int
21358 main ()
21359 {
21360  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21361   ;
21362   return 0;
21363 }
21364 _ACEOF
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367   (eval $ac_link) 2>conftest.er1
21368   ac_status=$?
21369   grep -v '^ *+' conftest.er1 >conftest.err
21370   rm -f conftest.er1
21371   cat conftest.err >&5
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); } &&
21374          { ac_try='test -z "$ac_c_werror_flag"
21375                          || test ! -s conftest.err'
21376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377   (eval $ac_try) 2>&5
21378   ac_status=$?
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); }; } &&
21381          { ac_try='test -s conftest$ac_exeext'
21382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383   (eval $ac_try) 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; }; then
21387    echo "*** The test program compiled, but did not run. This usually means"
21388           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21389           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21390           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21391           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21392           echo "*** is required on your system"
21393           echo "***"
21394           echo "*** If you have an old version installed, it is best to remove it, although"
21395           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21396 else
21397   echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400  echo "*** The test program failed to compile or link. See the file config.log for the"
21401           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21402 fi
21403 rm -f conftest.err conftest.$ac_objext \
21404       conftest$ac_exeext conftest.$ac_ext
21405           CFLAGS="$ac_save_CFLAGS"
21406           LIBS="$ac_save_LIBS"
21407        fi
21408      fi
21409      GTK_CFLAGS=""
21410      GTK_LIBS=""
21411      :
21412   fi
21413
21414
21415   rm -f conf.gtktest
21416
21417                 else
21418
21419 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21420 if test "${with_gtk_prefix+set}" = set; then
21421   withval="$with_gtk_prefix"
21422   gtk_config_prefix="$withval"
21423 else
21424   gtk_config_prefix=""
21425 fi;
21426
21427 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21428 if test "${with_gtk_exec_prefix+set}" = set; then
21429   withval="$with_gtk_exec_prefix"
21430   gtk_config_exec_prefix="$withval"
21431 else
21432   gtk_config_exec_prefix=""
21433 fi;
21434 # Check whether --enable-gtktest or --disable-gtktest was given.
21435 if test "${enable_gtktest+set}" = set; then
21436   enableval="$enable_gtktest"
21437
21438 else
21439   enable_gtktest=yes
21440 fi;
21441
21442   for module in . $GTK_MODULES
21443   do
21444       case "$module" in
21445          gthread)
21446              gtk_config_args="$gtk_config_args gthread"
21447          ;;
21448       esac
21449   done
21450
21451   if test x$gtk_config_exec_prefix != x ; then
21452      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21453      if test x${GTK_CONFIG+set} != xset ; then
21454         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21455      fi
21456   fi
21457   if test x$gtk_config_prefix != x ; then
21458      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21459      if test x${GTK_CONFIG+set} != xset ; then
21460         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21461      fi
21462   fi
21463
21464   # Extract the first word of "gtk-config", so it can be a program name with args.
21465 set dummy gtk-config; ac_word=$2
21466 echo "$as_me:$LINENO: checking for $ac_word" >&5
21467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21468 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21469   echo $ECHO_N "(cached) $ECHO_C" >&6
21470 else
21471   case $GTK_CONFIG in
21472   [\\/]* | ?:[\\/]*)
21473   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21474   ;;
21475   *)
21476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21477 for as_dir in $PATH
21478 do
21479   IFS=$as_save_IFS
21480   test -z "$as_dir" && as_dir=.
21481   for ac_exec_ext in '' $ac_executable_extensions; do
21482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21483     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21485     break 2
21486   fi
21487 done
21488 done
21489
21490   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21491   ;;
21492 esac
21493 fi
21494 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21495
21496 if test -n "$GTK_CONFIG"; then
21497   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21498 echo "${ECHO_T}$GTK_CONFIG" >&6
21499 else
21500   echo "$as_me:$LINENO: result: no" >&5
21501 echo "${ECHO_T}no" >&6
21502 fi
21503
21504   min_gtk_version=1.2.7
21505   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21506 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21507   no_gtk=""
21508   if test "$GTK_CONFIG" = "no" ; then
21509     no_gtk=yes
21510   else
21511     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21512     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21513     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21514            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21515     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21516            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21517     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21518            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21519     if test "x$enable_gtktest" = "xyes" ; then
21520       ac_save_CFLAGS="$CFLAGS"
21521       ac_save_LIBS="$LIBS"
21522       CFLAGS="$CFLAGS $GTK_CFLAGS"
21523       LIBS="$GTK_LIBS $LIBS"
21524       rm -f conf.gtktest
21525       if test "$cross_compiling" = yes; then
21526   echo $ac_n "cross compiling; assumed OK... $ac_c"
21527 else
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534
21535 #include <gtk/gtk.h>
21536 #include <stdio.h>
21537 #include <stdlib.h>
21538
21539 int
21540 main ()
21541 {
21542   int major, minor, micro;
21543   char *tmp_version;
21544
21545   system ("touch conf.gtktest");
21546
21547   /* HP/UX 9 (%@#!) writes to sscanf strings */
21548   tmp_version = g_strdup("$min_gtk_version");
21549   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21550      printf("%s, bad version string\n", "$min_gtk_version");
21551      exit(1);
21552    }
21553
21554   if ((gtk_major_version != $gtk_config_major_version) ||
21555       (gtk_minor_version != $gtk_config_minor_version) ||
21556       (gtk_micro_version != $gtk_config_micro_version))
21557     {
21558       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21559              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21560              gtk_major_version, gtk_minor_version, gtk_micro_version);
21561       printf ("*** was found! If gtk-config was correct, then it is best\n");
21562       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21563       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21564       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21565       printf("*** required on your system.\n");
21566       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21567       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21568       printf("*** before re-running configure\n");
21569     }
21570 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21571   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21572            (gtk_minor_version != GTK_MINOR_VERSION) ||
21573            (gtk_micro_version != GTK_MICRO_VERSION))
21574     {
21575       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21576              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21577       printf("*** library (version %d.%d.%d)\n",
21578              gtk_major_version, gtk_minor_version, gtk_micro_version);
21579     }
21580 #endif /* defined (GTK_MAJOR_VERSION) ... */
21581   else
21582     {
21583       if ((gtk_major_version > major) ||
21584         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21585         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21586       {
21587         return 0;
21588        }
21589      else
21590       {
21591         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21592                gtk_major_version, gtk_minor_version, gtk_micro_version);
21593         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21594                major, minor, micro);
21595         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21596         printf("***\n");
21597         printf("*** If you have already installed a sufficiently new version, this error\n");
21598         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21599         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21600         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21601         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21602         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21603         printf("*** so that the correct libraries are found at run-time))\n");
21604       }
21605     }
21606   return 1;
21607 }
21608
21609 _ACEOF
21610 rm -f conftest$ac_exeext
21611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21612   (eval $ac_link) 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617   (eval $ac_try) 2>&5
21618   ac_status=$?
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); }; }; then
21621   :
21622 else
21623   echo "$as_me: program exited with status $ac_status" >&5
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627 ( exit $ac_status )
21628 no_gtk=yes
21629 fi
21630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631 fi
21632        CFLAGS="$ac_save_CFLAGS"
21633        LIBS="$ac_save_LIBS"
21634      fi
21635   fi
21636   if test "x$no_gtk" = x ; then
21637      echo "$as_me:$LINENO: result: yes" >&5
21638 echo "${ECHO_T}yes" >&6
21639      wx_cv_lib_gtk=1.2.7
21640   else
21641      echo "$as_me:$LINENO: result: no" >&5
21642 echo "${ECHO_T}no" >&6
21643      if test "$GTK_CONFIG" = "no" ; then
21644        echo "*** The gtk-config script installed by GTK could not be found"
21645        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21646        echo "*** your path, or set the GTK_CONFIG environment variable to the"
21647        echo "*** full path to gtk-config."
21648      else
21649        if test -f conf.gtktest ; then
21650         :
21651        else
21652           echo "*** Could not run GTK test program, checking why..."
21653           CFLAGS="$CFLAGS $GTK_CFLAGS"
21654           LIBS="$LIBS $GTK_LIBS"
21655           cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661
21662 #include <gtk/gtk.h>
21663 #include <stdio.h>
21664
21665 int
21666 main ()
21667 {
21668  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21669   ;
21670   return 0;
21671 }
21672 _ACEOF
21673 rm -f conftest.$ac_objext conftest$ac_exeext
21674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21675   (eval $ac_link) 2>conftest.er1
21676   ac_status=$?
21677   grep -v '^ *+' conftest.er1 >conftest.err
21678   rm -f conftest.er1
21679   cat conftest.err >&5
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); } &&
21682          { ac_try='test -z "$ac_c_werror_flag"
21683                          || test ! -s conftest.err'
21684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685   (eval $ac_try) 2>&5
21686   ac_status=$?
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); }; } &&
21689          { ac_try='test -s conftest$ac_exeext'
21690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691   (eval $ac_try) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); }; }; then
21695    echo "*** The test program compiled, but did not run. This usually means"
21696           echo "*** that the run-time linker is not finding GTK or finding the wrong"
21697           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21698           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21699           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21700           echo "*** is required on your system"
21701           echo "***"
21702           echo "*** If you have an old version installed, it is best to remove it, although"
21703           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21704           echo "***"
21705           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21706           echo "*** came with the system with the command"
21707           echo "***"
21708           echo "***    rpm --erase --nodeps gtk gtk-devel"
21709 else
21710   echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713  echo "*** The test program failed to compile or link. See the file config.log for the"
21714           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21715           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21716           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21717 fi
21718 rm -f conftest.err conftest.$ac_objext \
21719       conftest$ac_exeext conftest.$ac_ext
21720           CFLAGS="$ac_save_CFLAGS"
21721           LIBS="$ac_save_LIBS"
21722        fi
21723      fi
21724      GTK_CFLAGS=""
21725      GTK_LIBS=""
21726      :
21727   fi
21728
21729
21730   rm -f conf.gtktest
21731
21732
21733                     if test -z "$wx_cv_lib_gtk"; then
21734
21735 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21736 if test "${with_gtk_prefix+set}" = set; then
21737   withval="$with_gtk_prefix"
21738   gtk_config_prefix="$withval"
21739 else
21740   gtk_config_prefix=""
21741 fi;
21742
21743 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21744 if test "${with_gtk_exec_prefix+set}" = set; then
21745   withval="$with_gtk_exec_prefix"
21746   gtk_config_exec_prefix="$withval"
21747 else
21748   gtk_config_exec_prefix=""
21749 fi;
21750 # Check whether --enable-gtktest or --disable-gtktest was given.
21751 if test "${enable_gtktest+set}" = set; then
21752   enableval="$enable_gtktest"
21753
21754 else
21755   enable_gtktest=yes
21756 fi;
21757
21758   for module in . $GTK_MODULES
21759   do
21760       case "$module" in
21761          gthread)
21762              gtk_config_args="$gtk_config_args gthread"
21763          ;;
21764       esac
21765   done
21766
21767   if test x$gtk_config_exec_prefix != x ; then
21768      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21769      if test x${GTK_CONFIG+set} != xset ; then
21770         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21771      fi
21772   fi
21773   if test x$gtk_config_prefix != x ; then
21774      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21775      if test x${GTK_CONFIG+set} != xset ; then
21776         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21777      fi
21778   fi
21779
21780   # Extract the first word of "gtk-config", so it can be a program name with args.
21781 set dummy gtk-config; ac_word=$2
21782 echo "$as_me:$LINENO: checking for $ac_word" >&5
21783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21784 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   case $GTK_CONFIG in
21788   [\\/]* | ?:[\\/]*)
21789   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21790   ;;
21791   *)
21792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21793 for as_dir in $PATH
21794 do
21795   IFS=$as_save_IFS
21796   test -z "$as_dir" && as_dir=.
21797   for ac_exec_ext in '' $ac_executable_extensions; do
21798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21799     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21801     break 2
21802   fi
21803 done
21804 done
21805
21806   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21807   ;;
21808 esac
21809 fi
21810 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21811
21812 if test -n "$GTK_CONFIG"; then
21813   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21814 echo "${ECHO_T}$GTK_CONFIG" >&6
21815 else
21816   echo "$as_me:$LINENO: result: no" >&5
21817 echo "${ECHO_T}no" >&6
21818 fi
21819
21820   min_gtk_version=1.2.3
21821   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21822 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21823   no_gtk=""
21824   if test "$GTK_CONFIG" = "no" ; then
21825     no_gtk=yes
21826   else
21827     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21828     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21829     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21830            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21831     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21832            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21833     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21834            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21835     if test "x$enable_gtktest" = "xyes" ; then
21836       ac_save_CFLAGS="$CFLAGS"
21837       ac_save_LIBS="$LIBS"
21838       CFLAGS="$CFLAGS $GTK_CFLAGS"
21839       LIBS="$GTK_LIBS $LIBS"
21840       rm -f conf.gtktest
21841       if test "$cross_compiling" = yes; then
21842   echo $ac_n "cross compiling; assumed OK... $ac_c"
21843 else
21844   cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h.  */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h.  */
21850
21851 #include <gtk/gtk.h>
21852 #include <stdio.h>
21853 #include <stdlib.h>
21854
21855 int
21856 main ()
21857 {
21858   int major, minor, micro;
21859   char *tmp_version;
21860
21861   system ("touch conf.gtktest");
21862
21863   /* HP/UX 9 (%@#!) writes to sscanf strings */
21864   tmp_version = g_strdup("$min_gtk_version");
21865   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21866      printf("%s, bad version string\n", "$min_gtk_version");
21867      exit(1);
21868    }
21869
21870   if ((gtk_major_version != $gtk_config_major_version) ||
21871       (gtk_minor_version != $gtk_config_minor_version) ||
21872       (gtk_micro_version != $gtk_config_micro_version))
21873     {
21874       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21875              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21876              gtk_major_version, gtk_minor_version, gtk_micro_version);
21877       printf ("*** was found! If gtk-config was correct, then it is best\n");
21878       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21879       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21880       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21881       printf("*** required on your system.\n");
21882       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21883       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21884       printf("*** before re-running configure\n");
21885     }
21886 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21887   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21888            (gtk_minor_version != GTK_MINOR_VERSION) ||
21889            (gtk_micro_version != GTK_MICRO_VERSION))
21890     {
21891       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21892              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21893       printf("*** library (version %d.%d.%d)\n",
21894              gtk_major_version, gtk_minor_version, gtk_micro_version);
21895     }
21896 #endif /* defined (GTK_MAJOR_VERSION) ... */
21897   else
21898     {
21899       if ((gtk_major_version > major) ||
21900         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21901         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21902       {
21903         return 0;
21904        }
21905      else
21906       {
21907         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21908                gtk_major_version, gtk_minor_version, gtk_micro_version);
21909         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21910                major, minor, micro);
21911         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21912         printf("***\n");
21913         printf("*** If you have already installed a sufficiently new version, this error\n");
21914         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21915         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21916         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21917         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21918         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21919         printf("*** so that the correct libraries are found at run-time))\n");
21920       }
21921     }
21922   return 1;
21923 }
21924
21925 _ACEOF
21926 rm -f conftest$ac_exeext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21928   (eval $ac_link) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933   (eval $ac_try) 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }; then
21937   :
21938 else
21939   echo "$as_me: program exited with status $ac_status" >&5
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ( exit $ac_status )
21944 no_gtk=yes
21945 fi
21946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21947 fi
21948        CFLAGS="$ac_save_CFLAGS"
21949        LIBS="$ac_save_LIBS"
21950      fi
21951   fi
21952   if test "x$no_gtk" = x ; then
21953      echo "$as_me:$LINENO: result: yes" >&5
21954 echo "${ECHO_T}yes" >&6
21955      wx_cv_lib_gtk=1.2.3
21956   else
21957      echo "$as_me:$LINENO: result: no" >&5
21958 echo "${ECHO_T}no" >&6
21959      if test "$GTK_CONFIG" = "no" ; then
21960        echo "*** The gtk-config script installed by GTK could not be found"
21961        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21962        echo "*** your path, or set the GTK_CONFIG environment variable to the"
21963        echo "*** full path to gtk-config."
21964      else
21965        if test -f conf.gtktest ; then
21966         :
21967        else
21968           echo "*** Could not run GTK test program, checking why..."
21969           CFLAGS="$CFLAGS $GTK_CFLAGS"
21970           LIBS="$LIBS $GTK_LIBS"
21971           cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h.  */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h.  */
21977
21978 #include <gtk/gtk.h>
21979 #include <stdio.h>
21980
21981 int
21982 main ()
21983 {
21984  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21985   ;
21986   return 0;
21987 }
21988 _ACEOF
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21991   (eval $ac_link) 2>conftest.er1
21992   ac_status=$?
21993   grep -v '^ *+' conftest.er1 >conftest.err
21994   rm -f conftest.er1
21995   cat conftest.err >&5
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } &&
21998          { ac_try='test -z "$ac_c_werror_flag"
21999                          || test ! -s conftest.err'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; } &&
22005          { ac_try='test -s conftest$ac_exeext'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011    echo "*** The test program compiled, but did not run. This usually means"
22012           echo "*** that the run-time linker is not finding GTK or finding the wrong"
22013           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22014           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22015           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22016           echo "*** is required on your system"
22017           echo "***"
22018           echo "*** If you have an old version installed, it is best to remove it, although"
22019           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22020           echo "***"
22021           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22022           echo "*** came with the system with the command"
22023           echo "***"
22024           echo "***    rpm --erase --nodeps gtk gtk-devel"
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029  echo "*** The test program failed to compile or link. See the file config.log for the"
22030           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22031           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22032           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22033 fi
22034 rm -f conftest.err conftest.$ac_objext \
22035       conftest$ac_exeext conftest.$ac_ext
22036           CFLAGS="$ac_save_CFLAGS"
22037           LIBS="$ac_save_LIBS"
22038        fi
22039      fi
22040      GTK_CFLAGS=""
22041      GTK_LIBS=""
22042      :
22043   fi
22044
22045
22046   rm -f conf.gtktest
22047
22048                     fi
22049                 fi
22050
22051                 if test -z "$wx_cv_lib_gtk"; then
22052                                         wx_cv_lib_gtk=none
22053                 else
22054                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
22055                     wx_cv_libs_gtk=$GTK_LIBS
22056                 fi
22057
22058
22059 fi
22060
22061
22062                         if test "$gtk_version_cached" = 1; then
22063             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22064 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22065         fi
22066
22067         case "$wx_cv_lib_gtk" in
22068             2.0)    WXGTK20=1
22069                     TOOLKIT_VERSION=2
22070                     ;;
22071             1.2.7)  WXGTK127=1
22072                     WXGTK12=1
22073                     ;;
22074             1.2.3)  WXGTK12=1
22075                     ;;
22076             *)      { { echo "$as_me:$LINENO: error:
22077 Please check that gtk-config is in path, the directory
22078 where GTK+ libraries are installed (returned by
22079 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22080 equivalent variable and GTK+ is version 1.2.3 or above.
22081                             " >&5
22082 echo "$as_me: error:
22083 Please check that gtk-config is in path, the directory
22084 where GTK+ libraries are installed (returned by
22085 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22086 equivalent variable and GTK+ is version 1.2.3 or above.
22087                             " >&2;}
22088    { (exit 1); exit 1; }; }
22089                     ;;
22090         esac
22091
22092         if test "$WXGTK20" = 1; then
22093             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22094
22095   succeeded=no
22096
22097   if test -z "$PKG_CONFIG"; then
22098     # Extract the first word of "pkg-config", so it can be a program name with args.
22099 set dummy pkg-config; ac_word=$2
22100 echo "$as_me:$LINENO: checking for $ac_word" >&5
22101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   case $PKG_CONFIG in
22106   [\\/]* | ?:[\\/]*)
22107   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22108   ;;
22109   *)
22110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22111 for as_dir in $PATH
22112 do
22113   IFS=$as_save_IFS
22114   test -z "$as_dir" && as_dir=.
22115   for ac_exec_ext in '' $ac_executable_extensions; do
22116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22117     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22119     break 2
22120   fi
22121 done
22122 done
22123
22124   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22125   ;;
22126 esac
22127 fi
22128 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22129
22130 if test -n "$PKG_CONFIG"; then
22131   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22132 echo "${ECHO_T}$PKG_CONFIG" >&6
22133 else
22134   echo "$as_me:$LINENO: result: no" >&5
22135 echo "${ECHO_T}no" >&6
22136 fi
22137
22138   fi
22139
22140   if test "$PKG_CONFIG" = "no" ; then
22141      echo "*** The pkg-config script could not be found. Make sure it is"
22142      echo "*** in your path, or set the PKG_CONFIG environment variable"
22143      echo "*** to the full path to pkg-config."
22144      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22145   else
22146      PKG_CONFIG_MIN_VERSION=0.9.0
22147      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22148         echo "$as_me:$LINENO: checking for pangoft2" >&5
22149 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22150
22151         if $PKG_CONFIG --exists "pangoft2" ; then
22152             echo "$as_me:$LINENO: result: yes" >&5
22153 echo "${ECHO_T}yes" >&6
22154             succeeded=yes
22155
22156             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22157 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22158             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22159             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22160 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22161
22162             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22163 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22164             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22165             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22166 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22167         else
22168             PANGOFT2_CFLAGS=""
22169             PANGOFT2_LIBS=""
22170             ## If we have a custom action on failure, don't print errors, but
22171             ## do set a variable so people can do so.
22172             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22173
22174         fi
22175
22176
22177
22178      else
22179         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22180         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22181      fi
22182   fi
22183
22184   if test $succeeded = yes; then
22185
22186                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22187                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22188
22189   else
22190
22191                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22192 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22193                         wxUSE_PRINTING_ARCHITECTURE="no"
22194
22195
22196   fi
22197
22198             fi
22199         else
22200             if test "$wxUSE_UNICODE" = "yes"; then
22201                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22202 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22203                 wxUSE_UNICODE=no
22204             fi
22205         fi
22206
22207                         if test "$USE_DARWIN" != 1; then
22208
22209 for ac_func in poll
22210 do
22211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22212 echo "$as_me:$LINENO: checking for $ac_func" >&5
22213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22214 if eval "test \"\${$as_ac_var+set}\" = set"; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h.  */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h.  */
22223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22225 #define $ac_func innocuous_$ac_func
22226
22227 /* System header to define __stub macros and hopefully few prototypes,
22228     which can conflict with char $ac_func (); below.
22229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22230     <limits.h> exists even on freestanding compilers.  */
22231
22232 #ifdef __STDC__
22233 # include <limits.h>
22234 #else
22235 # include <assert.h>
22236 #endif
22237
22238 #undef $ac_func
22239
22240 /* Override any gcc2 internal prototype to avoid an error.  */
22241 #ifdef __cplusplus
22242 extern "C"
22243 {
22244 #endif
22245 /* We use char because int might match the return type of a gcc2
22246    builtin and then its argument prototype would still apply.  */
22247 char $ac_func ();
22248 /* The GNU C library defines this for functions which it implements
22249     to always fail with ENOSYS.  Some functions are actually named
22250     something starting with __ and the normal name is an alias.  */
22251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252 choke me
22253 #else
22254 char (*f) () = $ac_func;
22255 #endif
22256 #ifdef __cplusplus
22257 }
22258 #endif
22259
22260 int
22261 main ()
22262 {
22263 return f != $ac_func;
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270   (eval $ac_link) 2>conftest.er1
22271   ac_status=$?
22272   grep -v '^ *+' conftest.er1 >conftest.err
22273   rm -f conftest.er1
22274   cat conftest.err >&5
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } &&
22277          { ac_try='test -z "$ac_c_werror_flag"
22278                          || test ! -s conftest.err'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; } &&
22284          { ac_try='test -s conftest$ac_exeext'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; }; then
22290   eval "$as_ac_var=yes"
22291 else
22292   echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295 eval "$as_ac_var=no"
22296 fi
22297 rm -f conftest.err conftest.$ac_objext \
22298       conftest$ac_exeext conftest.$ac_ext
22299 fi
22300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 fi
22308 done
22309
22310         fi
22311
22312         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
22313         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
22314
22315         AFMINSTALL=afminstall
22316         TOOLKIT=GTK
22317         GUIDIST=GTK_DIST
22318
22319                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22320 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22321 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324   ac_check_lib_save_LIBS=$LIBS
22325 LIBS="-lgdk  $LIBS"
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332
22333 /* Override any gcc2 internal prototype to avoid an error.  */
22334 #ifdef __cplusplus
22335 extern "C"
22336 #endif
22337 /* We use char because int might match the return type of a gcc2
22338    builtin and then its argument prototype would still apply.  */
22339 char gdk_im_open ();
22340 int
22341 main ()
22342 {
22343 gdk_im_open ();
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest.$ac_objext conftest$ac_exeext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22350   (eval $ac_link) 2>conftest.er1
22351   ac_status=$?
22352   grep -v '^ *+' conftest.er1 >conftest.err
22353   rm -f conftest.er1
22354   cat conftest.err >&5
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); } &&
22357          { ac_try='test -z "$ac_c_werror_flag"
22358                          || test ! -s conftest.err'
22359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360   (eval $ac_try) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); }; } &&
22364          { ac_try='test -s conftest$ac_exeext'
22365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366   (eval $ac_try) 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); }; }; then
22370   ac_cv_lib_gdk_gdk_im_open=yes
22371 else
22372   echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22374
22375 ac_cv_lib_gdk_gdk_im_open=no
22376 fi
22377 rm -f conftest.err conftest.$ac_objext \
22378       conftest$ac_exeext conftest.$ac_ext
22379 LIBS=$ac_check_lib_save_LIBS
22380 fi
22381 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22382 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22383 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22384   cat >>confdefs.h <<\_ACEOF
22385 #define HAVE_XIM 1
22386 _ACEOF
22387
22388 fi
22389
22390     fi
22391
22392     if test "$wxUSE_MGL" = 1; then
22393        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22394 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
22395         if test "x$MGL_ROOT" = x ; then
22396             echo "$as_me:$LINENO: result: not found" >&5
22397 echo "${ECHO_T}not found" >&6
22398             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22399 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22400    { (exit 1); exit 1; }; }
22401         else
22402             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22403 echo "${ECHO_T}$MGL_ROOT" >&6
22404         fi
22405
22406         echo "$as_me:$LINENO: checking for libmgl location" >&5
22407 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
22408                                 case "${host}" in
22409             *-*-linux* )
22410                                           if test "x$wxUSE_SHARED" = xyes ; then
22411                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
22412               else
22413                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
22414               fi
22415               ;;
22416             *-pc-msdosdjgpp )
22417               mgl_os_candidates="dos32/dj2"
22418               ;;
22419             *)
22420               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22421 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22422    { (exit 1); exit 1; }; }
22423         esac
22424
22425         mgl_lib_type=""
22426         mgl_os=""
22427
22428         for mgl_os_i in $mgl_os_candidates ; do
22429             if test "x$mgl_os" = x ; then
22430                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22431                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22432                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22433                         mgl_lib_type=debug
22434                         mgl_os=$mgl_os_i
22435                     fi
22436                 fi
22437                 if test "x$mgl_lib_type" = x ; then
22438                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22439                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22440                         mgl_lib_type=release
22441                         mgl_os=$mgl_os_i
22442                     fi
22443                 fi
22444             fi
22445         done
22446
22447         if test "x$mgl_os" = x ; then
22448             echo "$as_me:$LINENO: result: not found" >&5
22449 echo "${ECHO_T}not found" >&6
22450             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22451 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22452    { (exit 1); exit 1; }; }
22453         fi
22454         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22455 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
22456
22457         wxUSE_UNIVERSAL="yes"
22458
22459         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22460         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22461
22462         AFMINSTALL=afminstall
22463         TOOLKIT=MGL
22464         GUIDIST=MGL_DIST
22465     fi
22466
22467     if test "$wxUSE_MICROWIN" = 1; then
22468         echo "$as_me:$LINENO: checking for MicroWindows" >&5
22469 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
22470         if test "x$MICROWINDOWS" = x ; then
22471             echo "$as_me:$LINENO: result: not found" >&5
22472 echo "${ECHO_T}not found" >&6
22473             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22474 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22475    { (exit 1); exit 1; }; }
22476         else
22477             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22478 echo "${ECHO_T}$MICROWINDOWS" >&6
22479         fi
22480
22481         if test -f $MICROWINDOWS/lib/libmwin.a; then
22482             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22483 echo "${ECHO_T}MicroWindows' libraries found." >&6
22484         else
22485             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22486 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22487    { (exit 1); exit 1; }; }
22488         fi
22489
22490         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22491         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22492
22493         wxUSE_UNIVERSAL="yes"
22494
22495         AFMINSTALL=afminstall
22496         TOOLKIT=MICROWIN
22497         GUIDIST=MICROWIN_DIST
22498
22499         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
22500     fi
22501
22502     if test "$wxUSE_X11" = 1; then
22503                         echo "$as_me:$LINENO: checking for X" >&5
22504 echo $ECHO_N "checking for X... $ECHO_C" >&6
22505
22506
22507 # Check whether --with-x or --without-x was given.
22508 if test "${with_x+set}" = set; then
22509   withval="$with_x"
22510
22511 fi;
22512 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22513 if test "x$with_x" = xno; then
22514   # The user explicitly disabled X.
22515   have_x=disabled
22516 else
22517   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22518     # Both variables are already set.
22519     have_x=yes
22520   else
22521     if test "${ac_cv_have_x+set}" = set; then
22522   echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
22524   # One or both of the vars are not set, and there is no cached value.
22525 ac_x_includes=no ac_x_libraries=no
22526 rm -fr conftest.dir
22527 if mkdir conftest.dir; then
22528   cd conftest.dir
22529   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22530   cat >Imakefile <<'_ACEOF'
22531 acfindx:
22532         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22533 _ACEOF
22534   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22535     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22536     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22537     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22538     for ac_extension in a so sl; do
22539       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22540          test -f $ac_im_libdir/libX11.$ac_extension; then
22541         ac_im_usrlibdir=$ac_im_libdir; break
22542       fi
22543     done
22544     # Screen out bogus values from the imake configuration.  They are
22545     # bogus both because they are the default anyway, and because
22546     # using them would break gcc on systems where it needs fixed includes.
22547     case $ac_im_incroot in
22548         /usr/include) ;;
22549         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22550     esac
22551     case $ac_im_usrlibdir in
22552         /usr/lib | /lib) ;;
22553         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22554     esac
22555   fi
22556   cd ..
22557   rm -fr conftest.dir
22558 fi
22559
22560 # Standard set of common directories for X headers.
22561 # Check X11 before X11Rn because it is often a symlink to the current release.
22562 ac_x_header_dirs='
22563 /usr/X11/include
22564 /usr/X11R6/include
22565 /usr/X11R5/include
22566 /usr/X11R4/include
22567
22568 /usr/include/X11
22569 /usr/include/X11R6
22570 /usr/include/X11R5
22571 /usr/include/X11R4
22572
22573 /usr/local/X11/include
22574 /usr/local/X11R6/include
22575 /usr/local/X11R5/include
22576 /usr/local/X11R4/include
22577
22578 /usr/local/include/X11
22579 /usr/local/include/X11R6
22580 /usr/local/include/X11R5
22581 /usr/local/include/X11R4
22582
22583 /usr/X386/include
22584 /usr/x386/include
22585 /usr/XFree86/include/X11
22586
22587 /usr/include
22588 /usr/local/include
22589 /usr/unsupported/include
22590 /usr/athena/include
22591 /usr/local/x11r5/include
22592 /usr/lpp/Xamples/include
22593
22594 /usr/openwin/include
22595 /usr/openwin/share/include'
22596
22597 if test "$ac_x_includes" = no; then
22598   # Guess where to find include files, by looking for Intrinsic.h.
22599   # First, try using that file with no special directory specified.
22600   cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 #include <X11/Intrinsic.h>
22607 _ACEOF
22608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } >/dev/null; then
22616   if test -s conftest.err; then
22617     ac_cpp_err=$ac_c_preproc_warn_flag
22618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22619   else
22620     ac_cpp_err=
22621   fi
22622 else
22623   ac_cpp_err=yes
22624 fi
22625 if test -z "$ac_cpp_err"; then
22626   # We can compile using X headers with no special include directory.
22627 ac_x_includes=
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632   for ac_dir in $ac_x_header_dirs; do
22633   if test -r "$ac_dir/X11/Intrinsic.h"; then
22634     ac_x_includes=$ac_dir
22635     break
22636   fi
22637 done
22638 fi
22639 rm -f conftest.err conftest.$ac_ext
22640 fi # $ac_x_includes = no
22641
22642 if test "$ac_x_libraries" = no; then
22643   # Check for the libraries.
22644   # See if we find them without any special options.
22645   # Don't add to $LIBS permanently.
22646   ac_save_LIBS=$LIBS
22647   LIBS="-lXt $LIBS"
22648   cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654 #include <X11/Intrinsic.h>
22655 int
22656 main ()
22657 {
22658 XtMalloc (0)
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22665   (eval $ac_link) 2>conftest.er1
22666   ac_status=$?
22667   grep -v '^ *+' conftest.er1 >conftest.err
22668   rm -f conftest.er1
22669   cat conftest.err >&5
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -z "$ac_c_werror_flag"
22673                          || test ! -s conftest.err'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; } &&
22679          { ac_try='test -s conftest$ac_exeext'
22680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681   (eval $ac_try) 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   LIBS=$ac_save_LIBS
22686 # We can link X programs with no special library path.
22687 ac_x_libraries=
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 LIBS=$ac_save_LIBS
22693 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22694 do
22695   # Don't even attempt the hair of trying to link an X program!
22696   for ac_extension in a so sl; do
22697     if test -r $ac_dir/libXt.$ac_extension; then
22698       ac_x_libraries=$ac_dir
22699       break 2
22700     fi
22701   done
22702 done
22703 fi
22704 rm -f conftest.err conftest.$ac_objext \
22705       conftest$ac_exeext conftest.$ac_ext
22706 fi # $ac_x_libraries = no
22707
22708 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22709   # Didn't find X anywhere.  Cache the known absence of X.
22710   ac_cv_have_x="have_x=no"
22711 else
22712   # Record where we found X for the cache.
22713   ac_cv_have_x="have_x=yes \
22714                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22715 fi
22716 fi
22717
22718   fi
22719   eval "$ac_cv_have_x"
22720 fi # $with_x != no
22721
22722 if test "$have_x" != yes; then
22723   echo "$as_me:$LINENO: result: $have_x" >&5
22724 echo "${ECHO_T}$have_x" >&6
22725   no_x=yes
22726 else
22727   # If each of the values was on the command line, it overrides each guess.
22728   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22729   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22730   # Update the cache value to reflect the command line values.
22731   ac_cv_have_x="have_x=yes \
22732                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22733   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22734 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22735 fi
22736
22737 if test "$no_x" = yes; then
22738   # Not all programs may use this symbol, but it does not hurt to define it.
22739
22740 cat >>confdefs.h <<\_ACEOF
22741 #define X_DISPLAY_MISSING 1
22742 _ACEOF
22743
22744   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22745 else
22746   if test -n "$x_includes"; then
22747     X_CFLAGS="$X_CFLAGS -I$x_includes"
22748   fi
22749
22750   # It would also be nice to do this for all -L options, not just this one.
22751   if test -n "$x_libraries"; then
22752     X_LIBS="$X_LIBS -L$x_libraries"
22753     # For Solaris; some versions of Sun CC require a space after -R and
22754     # others require no space.  Words are not sufficient . . . .
22755     case `(uname -sr) 2>/dev/null` in
22756     "SunOS 5"*)
22757       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22758 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22759       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22760       cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h.  */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h.  */
22766
22767 int
22768 main ()
22769 {
22770
22771   ;
22772   return 0;
22773 }
22774 _ACEOF
22775 rm -f conftest.$ac_objext conftest$ac_exeext
22776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777   (eval $ac_link) 2>conftest.er1
22778   ac_status=$?
22779   grep -v '^ *+' conftest.er1 >conftest.err
22780   rm -f conftest.er1
22781   cat conftest.err >&5
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); } &&
22784          { ac_try='test -z "$ac_c_werror_flag"
22785                          || test ! -s conftest.err'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; } &&
22791          { ac_try='test -s conftest$ac_exeext'
22792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793   (eval $ac_try) 2>&5
22794   ac_status=$?
22795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796   (exit $ac_status); }; }; then
22797   ac_R_nospace=yes
22798 else
22799   echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22801
22802 ac_R_nospace=no
22803 fi
22804 rm -f conftest.err conftest.$ac_objext \
22805       conftest$ac_exeext conftest.$ac_ext
22806       if test $ac_R_nospace = yes; then
22807         echo "$as_me:$LINENO: result: no" >&5
22808 echo "${ECHO_T}no" >&6
22809         X_LIBS="$X_LIBS -R$x_libraries"
22810       else
22811         LIBS="$ac_xsave_LIBS -R $x_libraries"
22812         cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h.  */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h.  */
22818
22819 int
22820 main ()
22821 {
22822
22823   ;
22824   return 0;
22825 }
22826 _ACEOF
22827 rm -f conftest.$ac_objext conftest$ac_exeext
22828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22829   (eval $ac_link) 2>conftest.er1
22830   ac_status=$?
22831   grep -v '^ *+' conftest.er1 >conftest.err
22832   rm -f conftest.er1
22833   cat conftest.err >&5
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); } &&
22836          { ac_try='test -z "$ac_c_werror_flag"
22837                          || test ! -s conftest.err'
22838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); }; } &&
22843          { ac_try='test -s conftest$ac_exeext'
22844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845   (eval $ac_try) 2>&5
22846   ac_status=$?
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); }; }; then
22849   ac_R_space=yes
22850 else
22851   echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22853
22854 ac_R_space=no
22855 fi
22856 rm -f conftest.err conftest.$ac_objext \
22857       conftest$ac_exeext conftest.$ac_ext
22858         if test $ac_R_space = yes; then
22859           echo "$as_me:$LINENO: result: yes" >&5
22860 echo "${ECHO_T}yes" >&6
22861           X_LIBS="$X_LIBS -R $x_libraries"
22862         else
22863           echo "$as_me:$LINENO: result: neither works" >&5
22864 echo "${ECHO_T}neither works" >&6
22865         fi
22866       fi
22867       LIBS=$ac_xsave_LIBS
22868     esac
22869   fi
22870
22871   # Check for system-dependent libraries X programs must link with.
22872   # Do this before checking for the system-independent R6 libraries
22873   # (-lICE), since we may need -lsocket or whatever for X linking.
22874
22875   if test "$ISC" = yes; then
22876     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22877   else
22878     # Martyn Johnson says this is needed for Ultrix, if the X
22879     # libraries were built with DECnet support.  And Karl Berry says
22880     # the Alpha needs dnet_stub (dnet does not exist).
22881     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22882     cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888
22889 /* Override any gcc2 internal prototype to avoid an error.  */
22890 #ifdef __cplusplus
22891 extern "C"
22892 #endif
22893 /* We use char because int might match the return type of a gcc2
22894    builtin and then its argument prototype would still apply.  */
22895 char XOpenDisplay ();
22896 int
22897 main ()
22898 {
22899 XOpenDisplay ();
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext conftest$ac_exeext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22906   (eval $ac_link) 2>conftest.er1
22907   ac_status=$?
22908   grep -v '^ *+' conftest.er1 >conftest.err
22909   rm -f conftest.er1
22910   cat conftest.err >&5
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); } &&
22913          { ac_try='test -z "$ac_c_werror_flag"
22914                          || test ! -s conftest.err'
22915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); }; } &&
22920          { ac_try='test -s conftest$ac_exeext'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; }; then
22926   :
22927 else
22928   echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22932 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22933 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22934   echo $ECHO_N "(cached) $ECHO_C" >&6
22935 else
22936   ac_check_lib_save_LIBS=$LIBS
22937 LIBS="-ldnet  $LIBS"
22938 cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944
22945 /* Override any gcc2 internal prototype to avoid an error.  */
22946 #ifdef __cplusplus
22947 extern "C"
22948 #endif
22949 /* We use char because int might match the return type of a gcc2
22950    builtin and then its argument prototype would still apply.  */
22951 char dnet_ntoa ();
22952 int
22953 main ()
22954 {
22955 dnet_ntoa ();
22956   ;
22957   return 0;
22958 }
22959 _ACEOF
22960 rm -f conftest.$ac_objext conftest$ac_exeext
22961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22962   (eval $ac_link) 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } &&
22969          { ac_try='test -z "$ac_c_werror_flag"
22970                          || test ! -s conftest.err'
22971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972   (eval $ac_try) 2>&5
22973   ac_status=$?
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); }; } &&
22976          { ac_try='test -s conftest$ac_exeext'
22977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978   (eval $ac_try) 2>&5
22979   ac_status=$?
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); }; }; then
22982   ac_cv_lib_dnet_dnet_ntoa=yes
22983 else
22984   echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987 ac_cv_lib_dnet_dnet_ntoa=no
22988 fi
22989 rm -f conftest.err conftest.$ac_objext \
22990       conftest$ac_exeext conftest.$ac_ext
22991 LIBS=$ac_check_lib_save_LIBS
22992 fi
22993 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22994 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22995 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22996   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22997 fi
22998
22999     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23000       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23001 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23002 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23003   echo $ECHO_N "(cached) $ECHO_C" >&6
23004 else
23005   ac_check_lib_save_LIBS=$LIBS
23006 LIBS="-ldnet_stub  $LIBS"
23007 cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013
23014 /* Override any gcc2 internal prototype to avoid an error.  */
23015 #ifdef __cplusplus
23016 extern "C"
23017 #endif
23018 /* We use char because int might match the return type of a gcc2
23019    builtin and then its argument prototype would still apply.  */
23020 char dnet_ntoa ();
23021 int
23022 main ()
23023 {
23024 dnet_ntoa ();
23025   ;
23026   return 0;
23027 }
23028 _ACEOF
23029 rm -f conftest.$ac_objext conftest$ac_exeext
23030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23031   (eval $ac_link) 2>conftest.er1
23032   ac_status=$?
23033   grep -v '^ *+' conftest.er1 >conftest.err
23034   rm -f conftest.er1
23035   cat conftest.err >&5
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); } &&
23038          { ac_try='test -z "$ac_c_werror_flag"
23039                          || test ! -s conftest.err'
23040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041   (eval $ac_try) 2>&5
23042   ac_status=$?
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); }; } &&
23045          { ac_try='test -s conftest$ac_exeext'
23046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047   (eval $ac_try) 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; }; then
23051   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23052 else
23053   echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 ac_cv_lib_dnet_stub_dnet_ntoa=no
23057 fi
23058 rm -f conftest.err conftest.$ac_objext \
23059       conftest$ac_exeext conftest.$ac_ext
23060 LIBS=$ac_check_lib_save_LIBS
23061 fi
23062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23063 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23064 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23065   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23066 fi
23067
23068     fi
23069 fi
23070 rm -f conftest.err conftest.$ac_objext \
23071       conftest$ac_exeext conftest.$ac_ext
23072     LIBS="$ac_xsave_LIBS"
23073
23074     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23075     # to get the SysV transport functions.
23076     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23077     # needs -lnsl.
23078     # The nsl library prevents programs from opening the X display
23079     # on Irix 5.2, according to T.E. Dickey.
23080     # The functions gethostbyname, getservbyname, and inet_addr are
23081     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23082     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23083 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23084 if test "${ac_cv_func_gethostbyname+set}" = set; then
23085   echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087   cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23095 #define gethostbyname innocuous_gethostbyname
23096
23097 /* System header to define __stub macros and hopefully few prototypes,
23098     which can conflict with char gethostbyname (); below.
23099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23100     <limits.h> exists even on freestanding compilers.  */
23101
23102 #ifdef __STDC__
23103 # include <limits.h>
23104 #else
23105 # include <assert.h>
23106 #endif
23107
23108 #undef gethostbyname
23109
23110 /* Override any gcc2 internal prototype to avoid an error.  */
23111 #ifdef __cplusplus
23112 extern "C"
23113 {
23114 #endif
23115 /* We use char because int might match the return type of a gcc2
23116    builtin and then its argument prototype would still apply.  */
23117 char gethostbyname ();
23118 /* The GNU C library defines this for functions which it implements
23119     to always fail with ENOSYS.  Some functions are actually named
23120     something starting with __ and the normal name is an alias.  */
23121 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23122 choke me
23123 #else
23124 char (*f) () = gethostbyname;
23125 #endif
23126 #ifdef __cplusplus
23127 }
23128 #endif
23129
23130 int
23131 main ()
23132 {
23133 return f != gethostbyname;
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23140   (eval $ac_link) 2>conftest.er1
23141   ac_status=$?
23142   grep -v '^ *+' conftest.er1 >conftest.err
23143   rm -f conftest.er1
23144   cat conftest.err >&5
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); } &&
23147          { ac_try='test -z "$ac_c_werror_flag"
23148                          || test ! -s conftest.err'
23149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150   (eval $ac_try) 2>&5
23151   ac_status=$?
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); }; } &&
23154          { ac_try='test -s conftest$ac_exeext'
23155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156   (eval $ac_try) 2>&5
23157   ac_status=$?
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); }; }; then
23160   ac_cv_func_gethostbyname=yes
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165 ac_cv_func_gethostbyname=no
23166 fi
23167 rm -f conftest.err conftest.$ac_objext \
23168       conftest$ac_exeext conftest.$ac_ext
23169 fi
23170 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23171 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23172
23173     if test $ac_cv_func_gethostbyname = no; then
23174       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23175 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23176 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23177   echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179   ac_check_lib_save_LIBS=$LIBS
23180 LIBS="-lnsl  $LIBS"
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h.  */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h.  */
23187
23188 /* Override any gcc2 internal prototype to avoid an error.  */
23189 #ifdef __cplusplus
23190 extern "C"
23191 #endif
23192 /* We use char because int might match the return type of a gcc2
23193    builtin and then its argument prototype would still apply.  */
23194 char gethostbyname ();
23195 int
23196 main ()
23197 {
23198 gethostbyname ();
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23205   (eval $ac_link) 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_c_werror_flag"
23213                          || test ! -s conftest.err'
23214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215   (eval $ac_try) 2>&5
23216   ac_status=$?
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); }; } &&
23219          { ac_try='test -s conftest$ac_exeext'
23220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221   (eval $ac_try) 2>&5
23222   ac_status=$?
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); }; }; then
23225   ac_cv_lib_nsl_gethostbyname=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_cv_lib_nsl_gethostbyname=no
23231 fi
23232 rm -f conftest.err conftest.$ac_objext \
23233       conftest$ac_exeext conftest.$ac_ext
23234 LIBS=$ac_check_lib_save_LIBS
23235 fi
23236 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23237 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23238 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23239   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23240 fi
23241
23242       if test $ac_cv_lib_nsl_gethostbyname = no; then
23243         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23244 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23245 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23246   echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248   ac_check_lib_save_LIBS=$LIBS
23249 LIBS="-lbsd  $LIBS"
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256
23257 /* Override any gcc2 internal prototype to avoid an error.  */
23258 #ifdef __cplusplus
23259 extern "C"
23260 #endif
23261 /* We use char because int might match the return type of a gcc2
23262    builtin and then its argument prototype would still apply.  */
23263 char gethostbyname ();
23264 int
23265 main ()
23266 {
23267 gethostbyname ();
23268   ;
23269   return 0;
23270 }
23271 _ACEOF
23272 rm -f conftest.$ac_objext conftest$ac_exeext
23273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23274   (eval $ac_link) 2>conftest.er1
23275   ac_status=$?
23276   grep -v '^ *+' conftest.er1 >conftest.err
23277   rm -f conftest.er1
23278   cat conftest.err >&5
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); } &&
23281          { ac_try='test -z "$ac_c_werror_flag"
23282                          || test ! -s conftest.err'
23283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284   (eval $ac_try) 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; } &&
23288          { ac_try='test -s conftest$ac_exeext'
23289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290   (eval $ac_try) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); }; }; then
23294   ac_cv_lib_bsd_gethostbyname=yes
23295 else
23296   echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23298
23299 ac_cv_lib_bsd_gethostbyname=no
23300 fi
23301 rm -f conftest.err conftest.$ac_objext \
23302       conftest$ac_exeext conftest.$ac_ext
23303 LIBS=$ac_check_lib_save_LIBS
23304 fi
23305 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23306 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23307 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23308   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23309 fi
23310
23311       fi
23312     fi
23313
23314     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23315     # socket/setsockopt and other routines are undefined under SCO ODT
23316     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23317     # on later versions), says Simon Leinen: it contains gethostby*
23318     # variants that don't use the name server (or something).  -lsocket
23319     # must be given before -lnsl if both are needed.  We assume that
23320     # if connect needs -lnsl, so does gethostbyname.
23321     echo "$as_me:$LINENO: checking for connect" >&5
23322 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23323 if test "${ac_cv_func_connect+set}" = set; then
23324   echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326   cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h.  */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h.  */
23332 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23334 #define connect innocuous_connect
23335
23336 /* System header to define __stub macros and hopefully few prototypes,
23337     which can conflict with char connect (); below.
23338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23339     <limits.h> exists even on freestanding compilers.  */
23340
23341 #ifdef __STDC__
23342 # include <limits.h>
23343 #else
23344 # include <assert.h>
23345 #endif
23346
23347 #undef connect
23348
23349 /* Override any gcc2 internal prototype to avoid an error.  */
23350 #ifdef __cplusplus
23351 extern "C"
23352 {
23353 #endif
23354 /* We use char because int might match the return type of a gcc2
23355    builtin and then its argument prototype would still apply.  */
23356 char connect ();
23357 /* The GNU C library defines this for functions which it implements
23358     to always fail with ENOSYS.  Some functions are actually named
23359     something starting with __ and the normal name is an alias.  */
23360 #if defined (__stub_connect) || defined (__stub___connect)
23361 choke me
23362 #else
23363 char (*f) () = connect;
23364 #endif
23365 #ifdef __cplusplus
23366 }
23367 #endif
23368
23369 int
23370 main ()
23371 {
23372 return f != connect;
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23379   (eval $ac_link) 2>conftest.er1
23380   ac_status=$?
23381   grep -v '^ *+' conftest.er1 >conftest.err
23382   rm -f conftest.er1
23383   cat conftest.err >&5
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); } &&
23386          { ac_try='test -z "$ac_c_werror_flag"
23387                          || test ! -s conftest.err'
23388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389   (eval $ac_try) 2>&5
23390   ac_status=$?
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); }; } &&
23393          { ac_try='test -s conftest$ac_exeext'
23394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395   (eval $ac_try) 2>&5
23396   ac_status=$?
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); }; }; then
23399   ac_cv_func_connect=yes
23400 else
23401   echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23403
23404 ac_cv_func_connect=no
23405 fi
23406 rm -f conftest.err conftest.$ac_objext \
23407       conftest$ac_exeext conftest.$ac_ext
23408 fi
23409 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23410 echo "${ECHO_T}$ac_cv_func_connect" >&6
23411
23412     if test $ac_cv_func_connect = no; then
23413       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23414 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23415 if test "${ac_cv_lib_socket_connect+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418   ac_check_lib_save_LIBS=$LIBS
23419 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h.  */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h.  */
23426
23427 /* Override any gcc2 internal prototype to avoid an error.  */
23428 #ifdef __cplusplus
23429 extern "C"
23430 #endif
23431 /* We use char because int might match the return type of a gcc2
23432    builtin and then its argument prototype would still apply.  */
23433 char connect ();
23434 int
23435 main ()
23436 {
23437 connect ();
23438   ;
23439   return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444   (eval $ac_link) 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } &&
23451          { ac_try='test -z "$ac_c_werror_flag"
23452                          || test ! -s conftest.err'
23453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454   (eval $ac_try) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); }; } &&
23458          { ac_try='test -s conftest$ac_exeext'
23459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460   (eval $ac_try) 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); }; }; then
23464   ac_cv_lib_socket_connect=yes
23465 else
23466   echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469 ac_cv_lib_socket_connect=no
23470 fi
23471 rm -f conftest.err conftest.$ac_objext \
23472       conftest$ac_exeext conftest.$ac_ext
23473 LIBS=$ac_check_lib_save_LIBS
23474 fi
23475 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23476 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23477 if test $ac_cv_lib_socket_connect = yes; then
23478   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23479 fi
23480
23481     fi
23482
23483     # Guillermo Gomez says -lposix is necessary on A/UX.
23484     echo "$as_me:$LINENO: checking for remove" >&5
23485 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23486 if test "${ac_cv_func_remove+set}" = set; then
23487   echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489   cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h.  */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h.  */
23495 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23497 #define remove innocuous_remove
23498
23499 /* System header to define __stub macros and hopefully few prototypes,
23500     which can conflict with char remove (); below.
23501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23502     <limits.h> exists even on freestanding compilers.  */
23503
23504 #ifdef __STDC__
23505 # include <limits.h>
23506 #else
23507 # include <assert.h>
23508 #endif
23509
23510 #undef remove
23511
23512 /* Override any gcc2 internal prototype to avoid an error.  */
23513 #ifdef __cplusplus
23514 extern "C"
23515 {
23516 #endif
23517 /* We use char because int might match the return type of a gcc2
23518    builtin and then its argument prototype would still apply.  */
23519 char remove ();
23520 /* The GNU C library defines this for functions which it implements
23521     to always fail with ENOSYS.  Some functions are actually named
23522     something starting with __ and the normal name is an alias.  */
23523 #if defined (__stub_remove) || defined (__stub___remove)
23524 choke me
23525 #else
23526 char (*f) () = remove;
23527 #endif
23528 #ifdef __cplusplus
23529 }
23530 #endif
23531
23532 int
23533 main ()
23534 {
23535 return f != remove;
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 rm -f conftest.$ac_objext conftest$ac_exeext
23541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23542   (eval $ac_link) 2>conftest.er1
23543   ac_status=$?
23544   grep -v '^ *+' conftest.er1 >conftest.err
23545   rm -f conftest.er1
23546   cat conftest.err >&5
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); } &&
23549          { ac_try='test -z "$ac_c_werror_flag"
23550                          || test ! -s conftest.err'
23551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552   (eval $ac_try) 2>&5
23553   ac_status=$?
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); }; } &&
23556          { ac_try='test -s conftest$ac_exeext'
23557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558   (eval $ac_try) 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); }; }; then
23562   ac_cv_func_remove=yes
23563 else
23564   echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567 ac_cv_func_remove=no
23568 fi
23569 rm -f conftest.err conftest.$ac_objext \
23570       conftest$ac_exeext conftest.$ac_ext
23571 fi
23572 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23573 echo "${ECHO_T}$ac_cv_func_remove" >&6
23574
23575     if test $ac_cv_func_remove = no; then
23576       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23577 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23578 if test "${ac_cv_lib_posix_remove+set}" = set; then
23579   echo $ECHO_N "(cached) $ECHO_C" >&6
23580 else
23581   ac_check_lib_save_LIBS=$LIBS
23582 LIBS="-lposix  $LIBS"
23583 cat >conftest.$ac_ext <<_ACEOF
23584 /* confdefs.h.  */
23585 _ACEOF
23586 cat confdefs.h >>conftest.$ac_ext
23587 cat >>conftest.$ac_ext <<_ACEOF
23588 /* end confdefs.h.  */
23589
23590 /* Override any gcc2 internal prototype to avoid an error.  */
23591 #ifdef __cplusplus
23592 extern "C"
23593 #endif
23594 /* We use char because int might match the return type of a gcc2
23595    builtin and then its argument prototype would still apply.  */
23596 char remove ();
23597 int
23598 main ()
23599 {
23600 remove ();
23601   ;
23602   return 0;
23603 }
23604 _ACEOF
23605 rm -f conftest.$ac_objext conftest$ac_exeext
23606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607   (eval $ac_link) 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } &&
23614          { ac_try='test -z "$ac_c_werror_flag"
23615                          || test ! -s conftest.err'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; } &&
23621          { ac_try='test -s conftest$ac_exeext'
23622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); }; }; then
23627   ac_cv_lib_posix_remove=yes
23628 else
23629   echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631
23632 ac_cv_lib_posix_remove=no
23633 fi
23634 rm -f conftest.err conftest.$ac_objext \
23635       conftest$ac_exeext conftest.$ac_ext
23636 LIBS=$ac_check_lib_save_LIBS
23637 fi
23638 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23639 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23640 if test $ac_cv_lib_posix_remove = yes; then
23641   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23642 fi
23643
23644     fi
23645
23646     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23647     echo "$as_me:$LINENO: checking for shmat" >&5
23648 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23649 if test "${ac_cv_func_shmat+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23660 #define shmat innocuous_shmat
23661
23662 /* System header to define __stub macros and hopefully few prototypes,
23663     which can conflict with char shmat (); below.
23664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23665     <limits.h> exists even on freestanding compilers.  */
23666
23667 #ifdef __STDC__
23668 # include <limits.h>
23669 #else
23670 # include <assert.h>
23671 #endif
23672
23673 #undef shmat
23674
23675 /* Override any gcc2 internal prototype to avoid an error.  */
23676 #ifdef __cplusplus
23677 extern "C"
23678 {
23679 #endif
23680 /* We use char because int might match the return type of a gcc2
23681    builtin and then its argument prototype would still apply.  */
23682 char shmat ();
23683 /* The GNU C library defines this for functions which it implements
23684     to always fail with ENOSYS.  Some functions are actually named
23685     something starting with __ and the normal name is an alias.  */
23686 #if defined (__stub_shmat) || defined (__stub___shmat)
23687 choke me
23688 #else
23689 char (*f) () = shmat;
23690 #endif
23691 #ifdef __cplusplus
23692 }
23693 #endif
23694
23695 int
23696 main ()
23697 {
23698 return f != shmat;
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest.$ac_objext conftest$ac_exeext
23704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23705   (eval $ac_link) 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } &&
23712          { ac_try='test -z "$ac_c_werror_flag"
23713                          || test ! -s conftest.err'
23714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715   (eval $ac_try) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); }; } &&
23719          { ac_try='test -s conftest$ac_exeext'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; }; then
23725   ac_cv_func_shmat=yes
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ac_cv_func_shmat=no
23731 fi
23732 rm -f conftest.err conftest.$ac_objext \
23733       conftest$ac_exeext conftest.$ac_ext
23734 fi
23735 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23736 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23737
23738     if test $ac_cv_func_shmat = no; then
23739       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23740 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23741 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23742   echo $ECHO_N "(cached) $ECHO_C" >&6
23743 else
23744   ac_check_lib_save_LIBS=$LIBS
23745 LIBS="-lipc  $LIBS"
23746 cat >conftest.$ac_ext <<_ACEOF
23747 /* confdefs.h.  */
23748 _ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h.  */
23752
23753 /* Override any gcc2 internal prototype to avoid an error.  */
23754 #ifdef __cplusplus
23755 extern "C"
23756 #endif
23757 /* We use char because int might match the return type of a gcc2
23758    builtin and then its argument prototype would still apply.  */
23759 char shmat ();
23760 int
23761 main ()
23762 {
23763 shmat ();
23764   ;
23765   return 0;
23766 }
23767 _ACEOF
23768 rm -f conftest.$ac_objext conftest$ac_exeext
23769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23770   (eval $ac_link) 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } &&
23777          { ac_try='test -z "$ac_c_werror_flag"
23778                          || test ! -s conftest.err'
23779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780   (eval $ac_try) 2>&5
23781   ac_status=$?
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); }; } &&
23784          { ac_try='test -s conftest$ac_exeext'
23785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786   (eval $ac_try) 2>&5
23787   ac_status=$?
23788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); }; }; then
23790   ac_cv_lib_ipc_shmat=yes
23791 else
23792   echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23794
23795 ac_cv_lib_ipc_shmat=no
23796 fi
23797 rm -f conftest.err conftest.$ac_objext \
23798       conftest$ac_exeext conftest.$ac_ext
23799 LIBS=$ac_check_lib_save_LIBS
23800 fi
23801 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23802 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23803 if test $ac_cv_lib_ipc_shmat = yes; then
23804   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23805 fi
23806
23807     fi
23808   fi
23809
23810   # Check for libraries that X11R6 Xt/Xaw programs need.
23811   ac_save_LDFLAGS=$LDFLAGS
23812   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23813   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23814   # check for ICE first), but we must link in the order -lSM -lICE or
23815   # we get undefined symbols.  So assume we have SM if we have ICE.
23816   # These have to be linked with before -lX11, unlike the other
23817   # libraries we check for below, so use a different variable.
23818   # John Interrante, Karl Berry
23819   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23820 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23821 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23822   echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824   ac_check_lib_save_LIBS=$LIBS
23825 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h.  */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h.  */
23832
23833 /* Override any gcc2 internal prototype to avoid an error.  */
23834 #ifdef __cplusplus
23835 extern "C"
23836 #endif
23837 /* We use char because int might match the return type of a gcc2
23838    builtin and then its argument prototype would still apply.  */
23839 char IceConnectionNumber ();
23840 int
23841 main ()
23842 {
23843 IceConnectionNumber ();
23844   ;
23845   return 0;
23846 }
23847 _ACEOF
23848 rm -f conftest.$ac_objext conftest$ac_exeext
23849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23850   (eval $ac_link) 2>conftest.er1
23851   ac_status=$?
23852   grep -v '^ *+' conftest.er1 >conftest.err
23853   rm -f conftest.er1
23854   cat conftest.err >&5
23855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856   (exit $ac_status); } &&
23857          { ac_try='test -z "$ac_c_werror_flag"
23858                          || test ! -s conftest.err'
23859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860   (eval $ac_try) 2>&5
23861   ac_status=$?
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); }; } &&
23864          { ac_try='test -s conftest$ac_exeext'
23865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866   (eval $ac_try) 2>&5
23867   ac_status=$?
23868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869   (exit $ac_status); }; }; then
23870   ac_cv_lib_ICE_IceConnectionNumber=yes
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_lib_ICE_IceConnectionNumber=no
23876 fi
23877 rm -f conftest.err conftest.$ac_objext \
23878       conftest$ac_exeext conftest.$ac_ext
23879 LIBS=$ac_check_lib_save_LIBS
23880 fi
23881 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23882 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23883 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23884   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23885 fi
23886
23887   LDFLAGS=$ac_save_LDFLAGS
23888
23889 fi
23890
23891
23892         if test "$no_x" = "yes"; then
23893           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23894 echo "$as_me: error: X11 not found" >&2;}
23895    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23896         fi
23897
23898         GUI_TK_LIBRARY="$X_LIBS"
23899         TOOLKIT_INCLUDE="$X_CFLAGS"
23900         AFMINSTALL=afminstall
23901         COMPILED_X_PROGRAM=0
23902
23903         if test "$wxUSE_NANOX" = "yes"; then
23904             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23905 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
23906             if test "x$MICROWIN" = x ; then
23907                 echo "$as_me:$LINENO: result: not found" >&5
23908 echo "${ECHO_T}not found" >&6
23909                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23910 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23911    { (exit 1); exit 1; }; }
23912             else
23913                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23914 echo "${ECHO_T}$MICROWIN" >&6
23915                 cat >>confdefs.h <<\_ACEOF
23916 #define wxUSE_NANOX 1
23917 _ACEOF
23918
23919             fi
23920         fi
23921
23922         if test "$wxUSE_UNICODE" = "yes"; then
23923
23924   succeeded=no
23925
23926   if test -z "$PKG_CONFIG"; then
23927     # Extract the first word of "pkg-config", so it can be a program name with args.
23928 set dummy pkg-config; ac_word=$2
23929 echo "$as_me:$LINENO: checking for $ac_word" >&5
23930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934   case $PKG_CONFIG in
23935   [\\/]* | ?:[\\/]*)
23936   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23937   ;;
23938   *)
23939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23940 for as_dir in $PATH
23941 do
23942   IFS=$as_save_IFS
23943   test -z "$as_dir" && as_dir=.
23944   for ac_exec_ext in '' $ac_executable_extensions; do
23945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23946     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23948     break 2
23949   fi
23950 done
23951 done
23952
23953   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23954   ;;
23955 esac
23956 fi
23957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23958
23959 if test -n "$PKG_CONFIG"; then
23960   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23961 echo "${ECHO_T}$PKG_CONFIG" >&6
23962 else
23963   echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6
23965 fi
23966
23967   fi
23968
23969   if test "$PKG_CONFIG" = "no" ; then
23970      echo "*** The pkg-config script could not be found. Make sure it is"
23971      echo "*** in your path, or set the PKG_CONFIG environment variable"
23972      echo "*** to the full path to pkg-config."
23973      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23974   else
23975      PKG_CONFIG_MIN_VERSION=0.9.0
23976      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23977         echo "$as_me:$LINENO: checking for pangox" >&5
23978 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
23979
23980         if $PKG_CONFIG --exists "pangox" ; then
23981             echo "$as_me:$LINENO: result: yes" >&5
23982 echo "${ECHO_T}yes" >&6
23983             succeeded=yes
23984
23985             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23986 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
23987             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
23988             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23989 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
23990
23991             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23992 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
23993             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
23994             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23995 echo "${ECHO_T}$PANGOX_LIBS" >&6
23996         else
23997             PANGOX_CFLAGS=""
23998             PANGOX_LIBS=""
23999             ## If we have a custom action on failure, don't print errors, but
24000             ## do set a variable so people can do so.
24001             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24002
24003         fi
24004
24005
24006
24007      else
24008         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24009         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24010      fi
24011   fi
24012
24013   if test $succeeded = yes; then
24014
24015                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24016                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24017
24018   else
24019
24020                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24021 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24022    { (exit 1); exit 1; }; }
24023
24024
24025   fi
24026
24027
24028   succeeded=no
24029
24030   if test -z "$PKG_CONFIG"; then
24031     # Extract the first word of "pkg-config", so it can be a program name with args.
24032 set dummy pkg-config; ac_word=$2
24033 echo "$as_me:$LINENO: checking for $ac_word" >&5
24034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24036   echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038   case $PKG_CONFIG in
24039   [\\/]* | ?:[\\/]*)
24040   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24041   ;;
24042   *)
24043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24044 for as_dir in $PATH
24045 do
24046   IFS=$as_save_IFS
24047   test -z "$as_dir" && as_dir=.
24048   for ac_exec_ext in '' $ac_executable_extensions; do
24049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24050     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24052     break 2
24053   fi
24054 done
24055 done
24056
24057   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24058   ;;
24059 esac
24060 fi
24061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24062
24063 if test -n "$PKG_CONFIG"; then
24064   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24065 echo "${ECHO_T}$PKG_CONFIG" >&6
24066 else
24067   echo "$as_me:$LINENO: result: no" >&5
24068 echo "${ECHO_T}no" >&6
24069 fi
24070
24071   fi
24072
24073   if test "$PKG_CONFIG" = "no" ; then
24074      echo "*** The pkg-config script could not be found. Make sure it is"
24075      echo "*** in your path, or set the PKG_CONFIG environment variable"
24076      echo "*** to the full path to pkg-config."
24077      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24078   else
24079      PKG_CONFIG_MIN_VERSION=0.9.0
24080      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24081         echo "$as_me:$LINENO: checking for pangoft2" >&5
24082 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24083
24084         if $PKG_CONFIG --exists "pangoft2" ; then
24085             echo "$as_me:$LINENO: result: yes" >&5
24086 echo "${ECHO_T}yes" >&6
24087             succeeded=yes
24088
24089             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24090 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24091             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24092             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24093 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24094
24095             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24096 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24097             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24098             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24099 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24100         else
24101             PANGOFT2_CFLAGS=""
24102             PANGOFT2_LIBS=""
24103             ## If we have a custom action on failure, don't print errors, but
24104             ## do set a variable so people can do so.
24105             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24106
24107         fi
24108
24109
24110
24111      else
24112         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24113         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24114      fi
24115   fi
24116
24117   if test $succeeded = yes; then
24118
24119                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24120                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24121
24122   else
24123
24124                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24125 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24126                         wxUSE_PRINTING_ARCHITECTURE="no"
24127
24128
24129   fi
24130
24131
24132   succeeded=no
24133
24134   if test -z "$PKG_CONFIG"; then
24135     # Extract the first word of "pkg-config", so it can be a program name with args.
24136 set dummy pkg-config; ac_word=$2
24137 echo "$as_me:$LINENO: checking for $ac_word" >&5
24138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24139 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24140   echo $ECHO_N "(cached) $ECHO_C" >&6
24141 else
24142   case $PKG_CONFIG in
24143   [\\/]* | ?:[\\/]*)
24144   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24145   ;;
24146   *)
24147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24148 for as_dir in $PATH
24149 do
24150   IFS=$as_save_IFS
24151   test -z "$as_dir" && as_dir=.
24152   for ac_exec_ext in '' $ac_executable_extensions; do
24153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24154     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24156     break 2
24157   fi
24158 done
24159 done
24160
24161   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24162   ;;
24163 esac
24164 fi
24165 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24166
24167 if test -n "$PKG_CONFIG"; then
24168   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24169 echo "${ECHO_T}$PKG_CONFIG" >&6
24170 else
24171   echo "$as_me:$LINENO: result: no" >&5
24172 echo "${ECHO_T}no" >&6
24173 fi
24174
24175   fi
24176
24177   if test "$PKG_CONFIG" = "no" ; then
24178      echo "*** The pkg-config script could not be found. Make sure it is"
24179      echo "*** in your path, or set the PKG_CONFIG environment variable"
24180      echo "*** to the full path to pkg-config."
24181      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24182   else
24183      PKG_CONFIG_MIN_VERSION=0.9.0
24184      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24185         echo "$as_me:$LINENO: checking for pangoxft" >&5
24186 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24187
24188         if $PKG_CONFIG --exists "pangoxft" ; then
24189             echo "$as_me:$LINENO: result: yes" >&5
24190 echo "${ECHO_T}yes" >&6
24191             succeeded=yes
24192
24193             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24194 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24195             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24196             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24197 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24198
24199             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24200 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24201             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24202             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24203 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24204         else
24205             PANGOXFT_CFLAGS=""
24206             PANGOXFT_LIBS=""
24207             ## If we have a custom action on failure, don't print errors, but
24208             ## do set a variable so people can do so.
24209             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24210
24211         fi
24212
24213
24214
24215      else
24216         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24217         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24218      fi
24219   fi
24220
24221   if test $succeeded = yes; then
24222
24223                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24224                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24225
24226   else
24227
24228                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24229 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24230
24231
24232   fi
24233
24234         fi
24235
24236         wxUSE_UNIVERSAL="yes"
24237
24238         if test "$wxUSE_NANOX" = "yes"; then
24239             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24240             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"
24241             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24242         else
24243             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24244         fi
24245
24246         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24247         TOOLKIT=X11
24248         GUIDIST=X11_DIST
24249     fi
24250
24251     if test "$wxUSE_MOTIF" = 1; then
24252                         if test "$no_x" = yes; then
24253   # Not all programs may use this symbol, but it does not hurt to define it.
24254
24255 cat >>confdefs.h <<\_ACEOF
24256 #define X_DISPLAY_MISSING 1
24257 _ACEOF
24258
24259   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24260 else
24261   if test -n "$x_includes"; then
24262     X_CFLAGS="$X_CFLAGS -I$x_includes"
24263   fi
24264
24265   # It would also be nice to do this for all -L options, not just this one.
24266   if test -n "$x_libraries"; then
24267     X_LIBS="$X_LIBS -L$x_libraries"
24268     # For Solaris; some versions of Sun CC require a space after -R and
24269     # others require no space.  Words are not sufficient . . . .
24270     case `(uname -sr) 2>/dev/null` in
24271     "SunOS 5"*)
24272       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24273 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24274       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24275       cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h.  */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h.  */
24281
24282 int
24283 main ()
24284 {
24285
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24292   (eval $ac_link) 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } &&
24299          { ac_try='test -z "$ac_c_werror_flag"
24300                          || test ! -s conftest.err'
24301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302   (eval $ac_try) 2>&5
24303   ac_status=$?
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); }; } &&
24306          { ac_try='test -s conftest$ac_exeext'
24307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308   (eval $ac_try) 2>&5
24309   ac_status=$?
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; }; then
24312   ac_R_nospace=yes
24313 else
24314   echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317 ac_R_nospace=no
24318 fi
24319 rm -f conftest.err conftest.$ac_objext \
24320       conftest$ac_exeext conftest.$ac_ext
24321       if test $ac_R_nospace = yes; then
24322         echo "$as_me:$LINENO: result: no" >&5
24323 echo "${ECHO_T}no" >&6
24324         X_LIBS="$X_LIBS -R$x_libraries"
24325       else
24326         LIBS="$ac_xsave_LIBS -R $x_libraries"
24327         cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h.  */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h.  */
24333
24334 int
24335 main ()
24336 {
24337
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext conftest$ac_exeext
24343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24344   (eval $ac_link) 2>conftest.er1
24345   ac_status=$?
24346   grep -v '^ *+' conftest.er1 >conftest.err
24347   rm -f conftest.er1
24348   cat conftest.err >&5
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); } &&
24351          { ac_try='test -z "$ac_c_werror_flag"
24352                          || test ! -s conftest.err'
24353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); }; } &&
24358          { ac_try='test -s conftest$ac_exeext'
24359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360   (eval $ac_try) 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); }; }; then
24364   ac_R_space=yes
24365 else
24366   echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24368
24369 ac_R_space=no
24370 fi
24371 rm -f conftest.err conftest.$ac_objext \
24372       conftest$ac_exeext conftest.$ac_ext
24373         if test $ac_R_space = yes; then
24374           echo "$as_me:$LINENO: result: yes" >&5
24375 echo "${ECHO_T}yes" >&6
24376           X_LIBS="$X_LIBS -R $x_libraries"
24377         else
24378           echo "$as_me:$LINENO: result: neither works" >&5
24379 echo "${ECHO_T}neither works" >&6
24380         fi
24381       fi
24382       LIBS=$ac_xsave_LIBS
24383     esac
24384   fi
24385
24386   # Check for system-dependent libraries X programs must link with.
24387   # Do this before checking for the system-independent R6 libraries
24388   # (-lICE), since we may need -lsocket or whatever for X linking.
24389
24390   if test "$ISC" = yes; then
24391     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24392   else
24393     # Martyn Johnson says this is needed for Ultrix, if the X
24394     # libraries were built with DECnet support.  And Karl Berry says
24395     # the Alpha needs dnet_stub (dnet does not exist).
24396     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24397     cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403
24404 /* Override any gcc2 internal prototype to avoid an error.  */
24405 #ifdef __cplusplus
24406 extern "C"
24407 #endif
24408 /* We use char because int might match the return type of a gcc2
24409    builtin and then its argument prototype would still apply.  */
24410 char XOpenDisplay ();
24411 int
24412 main ()
24413 {
24414 XOpenDisplay ();
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 rm -f conftest.$ac_objext conftest$ac_exeext
24420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24421   (eval $ac_link) 2>conftest.er1
24422   ac_status=$?
24423   grep -v '^ *+' conftest.er1 >conftest.err
24424   rm -f conftest.er1
24425   cat conftest.err >&5
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); } &&
24428          { ac_try='test -z "$ac_c_werror_flag"
24429                          || test ! -s conftest.err'
24430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431   (eval $ac_try) 2>&5
24432   ac_status=$?
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); }; } &&
24435          { ac_try='test -s conftest$ac_exeext'
24436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437   (eval $ac_try) 2>&5
24438   ac_status=$?
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); }; }; then
24441   :
24442 else
24443   echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24447 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24448 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24449   echo $ECHO_N "(cached) $ECHO_C" >&6
24450 else
24451   ac_check_lib_save_LIBS=$LIBS
24452 LIBS="-ldnet  $LIBS"
24453 cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459
24460 /* Override any gcc2 internal prototype to avoid an error.  */
24461 #ifdef __cplusplus
24462 extern "C"
24463 #endif
24464 /* We use char because int might match the return type of a gcc2
24465    builtin and then its argument prototype would still apply.  */
24466 char dnet_ntoa ();
24467 int
24468 main ()
24469 {
24470 dnet_ntoa ();
24471   ;
24472   return 0;
24473 }
24474 _ACEOF
24475 rm -f conftest.$ac_objext conftest$ac_exeext
24476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24477   (eval $ac_link) 2>conftest.er1
24478   ac_status=$?
24479   grep -v '^ *+' conftest.er1 >conftest.err
24480   rm -f conftest.er1
24481   cat conftest.err >&5
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); } &&
24484          { ac_try='test -z "$ac_c_werror_flag"
24485                          || test ! -s conftest.err'
24486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487   (eval $ac_try) 2>&5
24488   ac_status=$?
24489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490   (exit $ac_status); }; } &&
24491          { ac_try='test -s conftest$ac_exeext'
24492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493   (eval $ac_try) 2>&5
24494   ac_status=$?
24495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496   (exit $ac_status); }; }; then
24497   ac_cv_lib_dnet_dnet_ntoa=yes
24498 else
24499   echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502 ac_cv_lib_dnet_dnet_ntoa=no
24503 fi
24504 rm -f conftest.err conftest.$ac_objext \
24505       conftest$ac_exeext conftest.$ac_ext
24506 LIBS=$ac_check_lib_save_LIBS
24507 fi
24508 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24509 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24510 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24511   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24512 fi
24513
24514     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24515       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24516 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24517 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520   ac_check_lib_save_LIBS=$LIBS
24521 LIBS="-ldnet_stub  $LIBS"
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528
24529 /* Override any gcc2 internal prototype to avoid an error.  */
24530 #ifdef __cplusplus
24531 extern "C"
24532 #endif
24533 /* We use char because int might match the return type of a gcc2
24534    builtin and then its argument prototype would still apply.  */
24535 char dnet_ntoa ();
24536 int
24537 main ()
24538 {
24539 dnet_ntoa ();
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24546   (eval $ac_link) 2>conftest.er1
24547   ac_status=$?
24548   grep -v '^ *+' conftest.er1 >conftest.err
24549   rm -f conftest.er1
24550   cat conftest.err >&5
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); } &&
24553          { ac_try='test -z "$ac_c_werror_flag"
24554                          || test ! -s conftest.err'
24555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556   (eval $ac_try) 2>&5
24557   ac_status=$?
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); }; } &&
24560          { ac_try='test -s conftest$ac_exeext'
24561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562   (eval $ac_try) 2>&5
24563   ac_status=$?
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); }; }; then
24566   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24567 else
24568   echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24570
24571 ac_cv_lib_dnet_stub_dnet_ntoa=no
24572 fi
24573 rm -f conftest.err conftest.$ac_objext \
24574       conftest$ac_exeext conftest.$ac_ext
24575 LIBS=$ac_check_lib_save_LIBS
24576 fi
24577 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24578 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24579 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24580   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24581 fi
24582
24583     fi
24584 fi
24585 rm -f conftest.err conftest.$ac_objext \
24586       conftest$ac_exeext conftest.$ac_ext
24587     LIBS="$ac_xsave_LIBS"
24588
24589     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24590     # to get the SysV transport functions.
24591     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24592     # needs -lnsl.
24593     # The nsl library prevents programs from opening the X display
24594     # on Irix 5.2, according to T.E. Dickey.
24595     # The functions gethostbyname, getservbyname, and inet_addr are
24596     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24597     echo "$as_me:$LINENO: checking for gethostbyname" >&5
24598 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24599 if test "${ac_cv_func_gethostbyname+set}" = set; then
24600   echo $ECHO_N "(cached) $ECHO_C" >&6
24601 else
24602   cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h.  */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h.  */
24608 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24610 #define gethostbyname innocuous_gethostbyname
24611
24612 /* System header to define __stub macros and hopefully few prototypes,
24613     which can conflict with char gethostbyname (); below.
24614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24615     <limits.h> exists even on freestanding compilers.  */
24616
24617 #ifdef __STDC__
24618 # include <limits.h>
24619 #else
24620 # include <assert.h>
24621 #endif
24622
24623 #undef gethostbyname
24624
24625 /* Override any gcc2 internal prototype to avoid an error.  */
24626 #ifdef __cplusplus
24627 extern "C"
24628 {
24629 #endif
24630 /* We use char because int might match the return type of a gcc2
24631    builtin and then its argument prototype would still apply.  */
24632 char gethostbyname ();
24633 /* The GNU C library defines this for functions which it implements
24634     to always fail with ENOSYS.  Some functions are actually named
24635     something starting with __ and the normal name is an alias.  */
24636 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24637 choke me
24638 #else
24639 char (*f) () = gethostbyname;
24640 #endif
24641 #ifdef __cplusplus
24642 }
24643 #endif
24644
24645 int
24646 main ()
24647 {
24648 return f != gethostbyname;
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655   (eval $ac_link) 2>conftest.er1
24656   ac_status=$?
24657   grep -v '^ *+' conftest.er1 >conftest.err
24658   rm -f conftest.er1
24659   cat conftest.err >&5
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); } &&
24662          { ac_try='test -z "$ac_c_werror_flag"
24663                          || test ! -s conftest.err'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; } &&
24669          { ac_try='test -s conftest$ac_exeext'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; }; then
24675   ac_cv_func_gethostbyname=yes
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 ac_cv_func_gethostbyname=no
24681 fi
24682 rm -f conftest.err conftest.$ac_objext \
24683       conftest$ac_exeext conftest.$ac_ext
24684 fi
24685 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24686 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24687
24688     if test $ac_cv_func_gethostbyname = no; then
24689       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24690 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24691 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24692   echo $ECHO_N "(cached) $ECHO_C" >&6
24693 else
24694   ac_check_lib_save_LIBS=$LIBS
24695 LIBS="-lnsl  $LIBS"
24696 cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h.  */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h.  */
24702
24703 /* Override any gcc2 internal prototype to avoid an error.  */
24704 #ifdef __cplusplus
24705 extern "C"
24706 #endif
24707 /* We use char because int might match the return type of a gcc2
24708    builtin and then its argument prototype would still apply.  */
24709 char gethostbyname ();
24710 int
24711 main ()
24712 {
24713 gethostbyname ();
24714   ;
24715   return 0;
24716 }
24717 _ACEOF
24718 rm -f conftest.$ac_objext conftest$ac_exeext
24719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24720   (eval $ac_link) 2>conftest.er1
24721   ac_status=$?
24722   grep -v '^ *+' conftest.er1 >conftest.err
24723   rm -f conftest.er1
24724   cat conftest.err >&5
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); } &&
24727          { ac_try='test -z "$ac_c_werror_flag"
24728                          || test ! -s conftest.err'
24729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730   (eval $ac_try) 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; } &&
24734          { ac_try='test -s conftest$ac_exeext'
24735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736   (eval $ac_try) 2>&5
24737   ac_status=$?
24738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); }; }; then
24740   ac_cv_lib_nsl_gethostbyname=yes
24741 else
24742   echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745 ac_cv_lib_nsl_gethostbyname=no
24746 fi
24747 rm -f conftest.err conftest.$ac_objext \
24748       conftest$ac_exeext conftest.$ac_ext
24749 LIBS=$ac_check_lib_save_LIBS
24750 fi
24751 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24752 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24753 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24754   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24755 fi
24756
24757       if test $ac_cv_lib_nsl_gethostbyname = no; then
24758         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24759 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24760 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24761   echo $ECHO_N "(cached) $ECHO_C" >&6
24762 else
24763   ac_check_lib_save_LIBS=$LIBS
24764 LIBS="-lbsd  $LIBS"
24765 cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771
24772 /* Override any gcc2 internal prototype to avoid an error.  */
24773 #ifdef __cplusplus
24774 extern "C"
24775 #endif
24776 /* We use char because int might match the return type of a gcc2
24777    builtin and then its argument prototype would still apply.  */
24778 char gethostbyname ();
24779 int
24780 main ()
24781 {
24782 gethostbyname ();
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24789   (eval $ac_link) 2>conftest.er1
24790   ac_status=$?
24791   grep -v '^ *+' conftest.er1 >conftest.err
24792   rm -f conftest.er1
24793   cat conftest.err >&5
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); } &&
24796          { ac_try='test -z "$ac_c_werror_flag"
24797                          || test ! -s conftest.err'
24798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; } &&
24803          { ac_try='test -s conftest$ac_exeext'
24804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805   (eval $ac_try) 2>&5
24806   ac_status=$?
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); }; }; then
24809   ac_cv_lib_bsd_gethostbyname=yes
24810 else
24811   echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24813
24814 ac_cv_lib_bsd_gethostbyname=no
24815 fi
24816 rm -f conftest.err conftest.$ac_objext \
24817       conftest$ac_exeext conftest.$ac_ext
24818 LIBS=$ac_check_lib_save_LIBS
24819 fi
24820 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24821 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24822 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24823   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24824 fi
24825
24826       fi
24827     fi
24828
24829     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24830     # socket/setsockopt and other routines are undefined under SCO ODT
24831     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24832     # on later versions), says Simon Leinen: it contains gethostby*
24833     # variants that don't use the name server (or something).  -lsocket
24834     # must be given before -lnsl if both are needed.  We assume that
24835     # if connect needs -lnsl, so does gethostbyname.
24836     echo "$as_me:$LINENO: checking for connect" >&5
24837 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24838 if test "${ac_cv_func_connect+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24849 #define connect innocuous_connect
24850
24851 /* System header to define __stub macros and hopefully few prototypes,
24852     which can conflict with char connect (); below.
24853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24854     <limits.h> exists even on freestanding compilers.  */
24855
24856 #ifdef __STDC__
24857 # include <limits.h>
24858 #else
24859 # include <assert.h>
24860 #endif
24861
24862 #undef connect
24863
24864 /* Override any gcc2 internal prototype to avoid an error.  */
24865 #ifdef __cplusplus
24866 extern "C"
24867 {
24868 #endif
24869 /* We use char because int might match the return type of a gcc2
24870    builtin and then its argument prototype would still apply.  */
24871 char connect ();
24872 /* The GNU C library defines this for functions which it implements
24873     to always fail with ENOSYS.  Some functions are actually named
24874     something starting with __ and the normal name is an alias.  */
24875 #if defined (__stub_connect) || defined (__stub___connect)
24876 choke me
24877 #else
24878 char (*f) () = connect;
24879 #endif
24880 #ifdef __cplusplus
24881 }
24882 #endif
24883
24884 int
24885 main ()
24886 {
24887 return f != connect;
24888   ;
24889   return 0;
24890 }
24891 _ACEOF
24892 rm -f conftest.$ac_objext conftest$ac_exeext
24893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24894   (eval $ac_link) 2>conftest.er1
24895   ac_status=$?
24896   grep -v '^ *+' conftest.er1 >conftest.err
24897   rm -f conftest.er1
24898   cat conftest.err >&5
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } &&
24901          { ac_try='test -z "$ac_c_werror_flag"
24902                          || test ! -s conftest.err'
24903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904   (eval $ac_try) 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); }; } &&
24908          { ac_try='test -s conftest$ac_exeext'
24909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910   (eval $ac_try) 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); }; }; then
24914   ac_cv_func_connect=yes
24915 else
24916   echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.$ac_ext >&5
24918
24919 ac_cv_func_connect=no
24920 fi
24921 rm -f conftest.err conftest.$ac_objext \
24922       conftest$ac_exeext conftest.$ac_ext
24923 fi
24924 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24925 echo "${ECHO_T}$ac_cv_func_connect" >&6
24926
24927     if test $ac_cv_func_connect = no; then
24928       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24929 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24930 if test "${ac_cv_lib_socket_connect+set}" = set; then
24931   echo $ECHO_N "(cached) $ECHO_C" >&6
24932 else
24933   ac_check_lib_save_LIBS=$LIBS
24934 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24935 cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941
24942 /* Override any gcc2 internal prototype to avoid an error.  */
24943 #ifdef __cplusplus
24944 extern "C"
24945 #endif
24946 /* We use char because int might match the return type of a gcc2
24947    builtin and then its argument prototype would still apply.  */
24948 char connect ();
24949 int
24950 main ()
24951 {
24952 connect ();
24953   ;
24954   return 0;
24955 }
24956 _ACEOF
24957 rm -f conftest.$ac_objext conftest$ac_exeext
24958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24959   (eval $ac_link) 2>conftest.er1
24960   ac_status=$?
24961   grep -v '^ *+' conftest.er1 >conftest.err
24962   rm -f conftest.er1
24963   cat conftest.err >&5
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); } &&
24966          { ac_try='test -z "$ac_c_werror_flag"
24967                          || test ! -s conftest.err'
24968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969   (eval $ac_try) 2>&5
24970   ac_status=$?
24971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972   (exit $ac_status); }; } &&
24973          { ac_try='test -s conftest$ac_exeext'
24974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24975   (eval $ac_try) 2>&5
24976   ac_status=$?
24977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); }; }; then
24979   ac_cv_lib_socket_connect=yes
24980 else
24981   echo "$as_me: failed program was:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24983
24984 ac_cv_lib_socket_connect=no
24985 fi
24986 rm -f conftest.err conftest.$ac_objext \
24987       conftest$ac_exeext conftest.$ac_ext
24988 LIBS=$ac_check_lib_save_LIBS
24989 fi
24990 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24991 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24992 if test $ac_cv_lib_socket_connect = yes; then
24993   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24994 fi
24995
24996     fi
24997
24998     # Guillermo Gomez says -lposix is necessary on A/UX.
24999     echo "$as_me:$LINENO: checking for remove" >&5
25000 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25001 if test "${ac_cv_func_remove+set}" = set; then
25002   echo $ECHO_N "(cached) $ECHO_C" >&6
25003 else
25004   cat >conftest.$ac_ext <<_ACEOF
25005 /* confdefs.h.  */
25006 _ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h.  */
25010 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25012 #define remove innocuous_remove
25013
25014 /* System header to define __stub macros and hopefully few prototypes,
25015     which can conflict with char remove (); below.
25016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25017     <limits.h> exists even on freestanding compilers.  */
25018
25019 #ifdef __STDC__
25020 # include <limits.h>
25021 #else
25022 # include <assert.h>
25023 #endif
25024
25025 #undef remove
25026
25027 /* Override any gcc2 internal prototype to avoid an error.  */
25028 #ifdef __cplusplus
25029 extern "C"
25030 {
25031 #endif
25032 /* We use char because int might match the return type of a gcc2
25033    builtin and then its argument prototype would still apply.  */
25034 char remove ();
25035 /* The GNU C library defines this for functions which it implements
25036     to always fail with ENOSYS.  Some functions are actually named
25037     something starting with __ and the normal name is an alias.  */
25038 #if defined (__stub_remove) || defined (__stub___remove)
25039 choke me
25040 #else
25041 char (*f) () = remove;
25042 #endif
25043 #ifdef __cplusplus
25044 }
25045 #endif
25046
25047 int
25048 main ()
25049 {
25050 return f != remove;
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25057   (eval $ac_link) 2>conftest.er1
25058   ac_status=$?
25059   grep -v '^ *+' conftest.er1 >conftest.err
25060   rm -f conftest.er1
25061   cat conftest.err >&5
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); } &&
25064          { ac_try='test -z "$ac_c_werror_flag"
25065                          || test ! -s conftest.err'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; } &&
25071          { ac_try='test -s conftest$ac_exeext'
25072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073   (eval $ac_try) 2>&5
25074   ac_status=$?
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); }; }; then
25077   ac_cv_func_remove=yes
25078 else
25079   echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25081
25082 ac_cv_func_remove=no
25083 fi
25084 rm -f conftest.err conftest.$ac_objext \
25085       conftest$ac_exeext conftest.$ac_ext
25086 fi
25087 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25088 echo "${ECHO_T}$ac_cv_func_remove" >&6
25089
25090     if test $ac_cv_func_remove = no; then
25091       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25092 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25093 if test "${ac_cv_lib_posix_remove+set}" = set; then
25094   echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096   ac_check_lib_save_LIBS=$LIBS
25097 LIBS="-lposix  $LIBS"
25098 cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h.  */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h.  */
25104
25105 /* Override any gcc2 internal prototype to avoid an error.  */
25106 #ifdef __cplusplus
25107 extern "C"
25108 #endif
25109 /* We use char because int might match the return type of a gcc2
25110    builtin and then its argument prototype would still apply.  */
25111 char remove ();
25112 int
25113 main ()
25114 {
25115 remove ();
25116   ;
25117   return 0;
25118 }
25119 _ACEOF
25120 rm -f conftest.$ac_objext conftest$ac_exeext
25121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25122   (eval $ac_link) 2>conftest.er1
25123   ac_status=$?
25124   grep -v '^ *+' conftest.er1 >conftest.err
25125   rm -f conftest.er1
25126   cat conftest.err >&5
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); } &&
25129          { ac_try='test -z "$ac_c_werror_flag"
25130                          || test ! -s conftest.err'
25131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132   (eval $ac_try) 2>&5
25133   ac_status=$?
25134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); }; } &&
25136          { ac_try='test -s conftest$ac_exeext'
25137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138   (eval $ac_try) 2>&5
25139   ac_status=$?
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); }; }; then
25142   ac_cv_lib_posix_remove=yes
25143 else
25144   echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25146
25147 ac_cv_lib_posix_remove=no
25148 fi
25149 rm -f conftest.err conftest.$ac_objext \
25150       conftest$ac_exeext conftest.$ac_ext
25151 LIBS=$ac_check_lib_save_LIBS
25152 fi
25153 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25154 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25155 if test $ac_cv_lib_posix_remove = yes; then
25156   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25157 fi
25158
25159     fi
25160
25161     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25162     echo "$as_me:$LINENO: checking for shmat" >&5
25163 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25164 if test "${ac_cv_func_shmat+set}" = set; then
25165   echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167   cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h.  */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h.  */
25173 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25175 #define shmat innocuous_shmat
25176
25177 /* System header to define __stub macros and hopefully few prototypes,
25178     which can conflict with char shmat (); below.
25179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25180     <limits.h> exists even on freestanding compilers.  */
25181
25182 #ifdef __STDC__
25183 # include <limits.h>
25184 #else
25185 # include <assert.h>
25186 #endif
25187
25188 #undef shmat
25189
25190 /* Override any gcc2 internal prototype to avoid an error.  */
25191 #ifdef __cplusplus
25192 extern "C"
25193 {
25194 #endif
25195 /* We use char because int might match the return type of a gcc2
25196    builtin and then its argument prototype would still apply.  */
25197 char shmat ();
25198 /* The GNU C library defines this for functions which it implements
25199     to always fail with ENOSYS.  Some functions are actually named
25200     something starting with __ and the normal name is an alias.  */
25201 #if defined (__stub_shmat) || defined (__stub___shmat)
25202 choke me
25203 #else
25204 char (*f) () = shmat;
25205 #endif
25206 #ifdef __cplusplus
25207 }
25208 #endif
25209
25210 int
25211 main ()
25212 {
25213 return f != shmat;
25214   ;
25215   return 0;
25216 }
25217 _ACEOF
25218 rm -f conftest.$ac_objext conftest$ac_exeext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25220   (eval $ac_link) 2>conftest.er1
25221   ac_status=$?
25222   grep -v '^ *+' conftest.er1 >conftest.err
25223   rm -f conftest.er1
25224   cat conftest.err >&5
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } &&
25227          { ac_try='test -z "$ac_c_werror_flag"
25228                          || test ! -s conftest.err'
25229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230   (eval $ac_try) 2>&5
25231   ac_status=$?
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); }; } &&
25234          { ac_try='test -s conftest$ac_exeext'
25235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236   (eval $ac_try) 2>&5
25237   ac_status=$?
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); }; }; then
25240   ac_cv_func_shmat=yes
25241 else
25242   echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25244
25245 ac_cv_func_shmat=no
25246 fi
25247 rm -f conftest.err conftest.$ac_objext \
25248       conftest$ac_exeext conftest.$ac_ext
25249 fi
25250 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25251 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25252
25253     if test $ac_cv_func_shmat = no; then
25254       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25255 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25256 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25257   echo $ECHO_N "(cached) $ECHO_C" >&6
25258 else
25259   ac_check_lib_save_LIBS=$LIBS
25260 LIBS="-lipc  $LIBS"
25261 cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267
25268 /* Override any gcc2 internal prototype to avoid an error.  */
25269 #ifdef __cplusplus
25270 extern "C"
25271 #endif
25272 /* We use char because int might match the return type of a gcc2
25273    builtin and then its argument prototype would still apply.  */
25274 char shmat ();
25275 int
25276 main ()
25277 {
25278 shmat ();
25279   ;
25280   return 0;
25281 }
25282 _ACEOF
25283 rm -f conftest.$ac_objext conftest$ac_exeext
25284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25285   (eval $ac_link) 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); } &&
25292          { ac_try='test -z "$ac_c_werror_flag"
25293                          || test ! -s conftest.err'
25294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295   (eval $ac_try) 2>&5
25296   ac_status=$?
25297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298   (exit $ac_status); }; } &&
25299          { ac_try='test -s conftest$ac_exeext'
25300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301   (eval $ac_try) 2>&5
25302   ac_status=$?
25303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304   (exit $ac_status); }; }; then
25305   ac_cv_lib_ipc_shmat=yes
25306 else
25307   echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25309
25310 ac_cv_lib_ipc_shmat=no
25311 fi
25312 rm -f conftest.err conftest.$ac_objext \
25313       conftest$ac_exeext conftest.$ac_ext
25314 LIBS=$ac_check_lib_save_LIBS
25315 fi
25316 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25317 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25318 if test $ac_cv_lib_ipc_shmat = yes; then
25319   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25320 fi
25321
25322     fi
25323   fi
25324
25325   # Check for libraries that X11R6 Xt/Xaw programs need.
25326   ac_save_LDFLAGS=$LDFLAGS
25327   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25328   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25329   # check for ICE first), but we must link in the order -lSM -lICE or
25330   # we get undefined symbols.  So assume we have SM if we have ICE.
25331   # These have to be linked with before -lX11, unlike the other
25332   # libraries we check for below, so use a different variable.
25333   # John Interrante, Karl Berry
25334   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25335 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25336 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25337   echo $ECHO_N "(cached) $ECHO_C" >&6
25338 else
25339   ac_check_lib_save_LIBS=$LIBS
25340 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25341 cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h.  */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h.  */
25347
25348 /* Override any gcc2 internal prototype to avoid an error.  */
25349 #ifdef __cplusplus
25350 extern "C"
25351 #endif
25352 /* We use char because int might match the return type of a gcc2
25353    builtin and then its argument prototype would still apply.  */
25354 char IceConnectionNumber ();
25355 int
25356 main ()
25357 {
25358 IceConnectionNumber ();
25359   ;
25360   return 0;
25361 }
25362 _ACEOF
25363 rm -f conftest.$ac_objext conftest$ac_exeext
25364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25365   (eval $ac_link) 2>conftest.er1
25366   ac_status=$?
25367   grep -v '^ *+' conftest.er1 >conftest.err
25368   rm -f conftest.er1
25369   cat conftest.err >&5
25370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371   (exit $ac_status); } &&
25372          { ac_try='test -z "$ac_c_werror_flag"
25373                          || test ! -s conftest.err'
25374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375   (eval $ac_try) 2>&5
25376   ac_status=$?
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); }; } &&
25379          { ac_try='test -s conftest$ac_exeext'
25380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381   (eval $ac_try) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); }; }; then
25385   ac_cv_lib_ICE_IceConnectionNumber=yes
25386 else
25387   echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25389
25390 ac_cv_lib_ICE_IceConnectionNumber=no
25391 fi
25392 rm -f conftest.err conftest.$ac_objext \
25393       conftest$ac_exeext conftest.$ac_ext
25394 LIBS=$ac_check_lib_save_LIBS
25395 fi
25396 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25397 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25398 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25399   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25400 fi
25401
25402   LDFLAGS=$ac_save_LDFLAGS
25403
25404 fi
25405
25406
25407         if test "$no_x" = "yes"; then
25408           { { echo "$as_me:$LINENO: error: X11 not found" >&5
25409 echo "$as_me: error: X11 not found" >&2;}
25410    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25411         fi
25412
25413                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25414         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
25415         AFMINSTALL=afminstall
25416         COMPILED_X_PROGRAM=0
25417
25418         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25419 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25420
25421 ac_find_includes=
25422 for ac_dir in $SEARCH_INCLUDE /usr/include;
25423   do
25424     if test -f "$ac_dir/Xm/Xm.h"; then
25425       ac_find_includes=$ac_dir
25426       break
25427     fi
25428   done
25429
25430         if test "$ac_find_includes" != "" ; then
25431             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25432 echo "${ECHO_T}found in $ac_find_includes" >&6
25433
25434     if test "x$ac_find_includes" = "x/usr/include"; then
25435     ac_path_to_include=""
25436   else
25437     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25438     result=$?
25439     if test $result = 0; then
25440       ac_path_to_include=""
25441     else
25442       ac_path_to_include=" -I$ac_find_includes"
25443     fi
25444   fi
25445
25446             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25447         else
25448             cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454
25455                     #include <Xm/Xm.h>
25456
25457 int
25458 main ()
25459 {
25460
25461                     int version;
25462                     version = xmUseVersion;
25463
25464   ;
25465   return 0;
25466 }
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470   (eval $ac_compile) 2>conftest.er1
25471   ac_status=$?
25472   grep -v '^ *+' conftest.er1 >conftest.err
25473   rm -f conftest.er1
25474   cat conftest.err >&5
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } &&
25477          { ac_try='test -z "$ac_c_werror_flag"
25478                          || test ! -s conftest.err'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; } &&
25484          { ac_try='test -s conftest.$ac_objext'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; }; then
25490
25491                     echo "$as_me:$LINENO: result: found in default search path" >&5
25492 echo "${ECHO_T}found in default search path" >&6
25493                     COMPILED_X_PROGRAM=1
25494
25495 else
25496   echo "$as_me: failed program was:" >&5
25497 sed 's/^/| /' conftest.$ac_ext >&5
25498
25499
25500                     echo "$as_me:$LINENO: result: no" >&5
25501 echo "${ECHO_T}no" >&6
25502                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25503 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25504    { (exit 1); exit 1; }; }
25505
25506
25507 fi
25508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25509         fi
25510
25511         if test "$COMPILED_X_PROGRAM" = 0; then
25512             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25513 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25514
25515 ac_find_libraries=
25516 for ac_dir in $SEARCH_LIB /usr/lib;
25517   do
25518     for ac_extension in a so sl dylib; do
25519       if test -f "$ac_dir/libXm.$ac_extension"; then
25520         ac_find_libraries=$ac_dir
25521         break 2
25522       fi
25523     done
25524   done
25525
25526             if test "$ac_find_libraries" != "" ; then
25527                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25528 echo "${ECHO_T}found at $ac_find_libraries" >&6
25529
25530
25531   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25532   result=$?
25533   if test $result = 0; then
25534     ac_path_to_link=""
25535   else
25536     ac_path_to_link=" -L$ac_find_libraries"
25537   fi
25538
25539                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25540             else
25541                                                                 save_CFLAGS=$CFLAGS
25542                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25543
25544                 cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550
25551                         #include <Xm/Xm.h>
25552
25553 int
25554 main ()
25555 {
25556
25557                         int version;
25558                         version = xmUseVersion;
25559
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 rm -f conftest.$ac_objext
25565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25566   (eval $ac_compile) 2>conftest.er1
25567   ac_status=$?
25568   grep -v '^ *+' conftest.er1 >conftest.err
25569   rm -f conftest.er1
25570   cat conftest.err >&5
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } &&
25573          { ac_try='test -z "$ac_c_werror_flag"
25574                          || test ! -s conftest.err'
25575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576   (eval $ac_try) 2>&5
25577   ac_status=$?
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); }; } &&
25580          { ac_try='test -s conftest.$ac_objext'
25581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582   (eval $ac_try) 2>&5
25583   ac_status=$?
25584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); }; }; then
25586
25587                         echo "$as_me:$LINENO: result: found in default search path" >&5
25588 echo "${ECHO_T}found in default search path" >&6
25589                         COMPILED_X_PROGRAM=1
25590
25591 else
25592   echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25594
25595
25596                         echo "$as_me:$LINENO: result: no" >&5
25597 echo "${ECHO_T}no" >&6
25598                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25599 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25600    { (exit 1); exit 1; }; }
25601
25602
25603 fi
25604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25605
25606                 CFLAGS=$save_CFLAGS
25607             fi
25608         fi
25609
25610         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25611 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25612         libp_link=""
25613         libsm_ice_link=""
25614         libs_found=0
25615         for libp in "" " -lXp"; do
25616             if test "$libs_found" = "0"; then
25617                 for libsm_ice in "" " -lSM -lICE"; do
25618                     if test "$libs_found" = "0"; then
25619                         save_LIBS="$LIBS"
25620                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25621                         save_CFLAGS=$CFLAGS
25622                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25623
25624                         cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630
25631                                 #include <Xm/Xm.h>
25632                                 #include <Xm/List.h>
25633
25634 int
25635 main ()
25636 {
25637
25638                                 XmString string = NULL;
25639                                 Widget w = NULL;
25640                                 int position = 0;
25641                                 XmListAddItem(w, string, position);
25642
25643   ;
25644   return 0;
25645 }
25646 _ACEOF
25647 rm -f conftest.$ac_objext conftest$ac_exeext
25648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25649   (eval $ac_link) 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } &&
25656          { ac_try='test -z "$ac_c_werror_flag"
25657                          || test ! -s conftest.err'
25658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659   (eval $ac_try) 2>&5
25660   ac_status=$?
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); }; } &&
25663          { ac_try='test -s conftest$ac_exeext'
25664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665   (eval $ac_try) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; }; then
25669
25670                                 libp_link="$libp"
25671                                 libsm_ice_link="$libsm_ice"
25672                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25673 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25674                                 libs_found=1
25675
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680
25681
25682 fi
25683 rm -f conftest.err conftest.$ac_objext \
25684       conftest$ac_exeext conftest.$ac_ext
25685
25686                         LIBS="$save_LIBS"
25687                         CFLAGS=$save_CFLAGS
25688                     fi
25689                 done
25690             fi
25691         done
25692
25693         if test "$libs_found" = "0"; then
25694             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25695 echo "${ECHO_T}can't find the right libraries" >&6
25696             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25697 echo "$as_me: error: can't link a simple motif program" >&2;}
25698    { (exit 1); exit 1; }; }
25699         fi
25700
25701         save_CFLAGS=$CFLAGS
25702         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25703         echo "$as_me:$LINENO: checking for Motif 2" >&5
25704 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25705         cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711
25712                         #include <Xm/Xm.h>
25713
25714 int
25715 main ()
25716 {
25717
25718                         #if XmVersion < 2000
25719                         #error "Not Motif 2"
25720                         #endif
25721
25722   ;
25723   return 0;
25724 }
25725 _ACEOF
25726 rm -f conftest.$ac_objext
25727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25728   (eval $ac_compile) 2>conftest.er1
25729   ac_status=$?
25730   grep -v '^ *+' conftest.er1 >conftest.err
25731   rm -f conftest.er1
25732   cat conftest.err >&5
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); } &&
25735          { ac_try='test -z "$ac_c_werror_flag"
25736                          || test ! -s conftest.err'
25737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738   (eval $ac_try) 2>&5
25739   ac_status=$?
25740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741   (exit $ac_status); }; } &&
25742          { ac_try='test -s conftest.$ac_objext'
25743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744   (eval $ac_try) 2>&5
25745   ac_status=$?
25746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747   (exit $ac_status); }; }; then
25748
25749                         cat >>confdefs.h <<\_ACEOF
25750 #define __WXMOTIF20__ 1
25751 _ACEOF
25752
25753                         echo "$as_me:$LINENO: result: found" >&5
25754 echo "${ECHO_T}found" >&6
25755
25756 else
25757   echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760
25761                         cat >>confdefs.h <<\_ACEOF
25762 #define __WXMOTIF20__ 0
25763 _ACEOF
25764
25765                         echo "$as_me:$LINENO: result: not found" >&5
25766 echo "${ECHO_T}not found" >&6
25767
25768 fi
25769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25770         CFLAGS=$save_CFLAGS
25771
25772         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25773         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25774         TOOLKIT=MOTIF
25775         GUIDIST=MOTIF_DIST
25776     fi
25777
25778     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25779                 if test "$wxUSE_LIBXPM" = "sys"; then
25780             echo "$as_me:$LINENO: checking for Xpm library" >&5
25781 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25782
25783 ac_find_libraries=
25784 for ac_dir in $SEARCH_LIB /usr/lib;
25785   do
25786     for ac_extension in a so sl dylib; do
25787       if test -f "$ac_dir/libXpm.$ac_extension"; then
25788         ac_find_libraries=$ac_dir
25789         break 2
25790       fi
25791     done
25792   done
25793
25794             if test "$ac_find_libraries" != "" ; then
25795
25796   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25797   result=$?
25798   if test $result = 0; then
25799     ac_path_to_link=""
25800   else
25801     ac_path_to_link=" -L$ac_find_libraries"
25802   fi
25803
25804                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25805                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25806 echo "${ECHO_T}found at $ac_find_libraries" >&6
25807
25808                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25809 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25810 if test "${wx_cv_x11_xpm_h+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813
25814                         save_CFLAGS=$CFLAGS
25815                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25816
25817                         cat >conftest.$ac_ext <<_ACEOF
25818 /* confdefs.h.  */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h.  */
25823
25824                                 #include <X11/xpm.h>
25825
25826 int
25827 main ()
25828 {
25829
25830                                 int version;
25831                                 version = XpmLibraryVersion();
25832
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839   (eval $ac_compile) 2>conftest.er1
25840   ac_status=$?
25841   grep -v '^ *+' conftest.er1 >conftest.err
25842   rm -f conftest.er1
25843   cat conftest.err >&5
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } &&
25846          { ac_try='test -z "$ac_c_werror_flag"
25847                          || test ! -s conftest.err'
25848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849   (eval $ac_try) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; } &&
25853          { ac_try='test -s conftest.$ac_objext'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; }; then
25859   wx_cv_x11_xpm_h=yes
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864 wx_cv_x11_xpm_h=no
25865
25866 fi
25867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25868
25869                         CFLAGS=$save_CFLAGS
25870
25871
25872 fi
25873 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25874 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25875
25876                 if test $wx_cv_x11_xpm_h = "yes"; then
25877                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25878                     cat >>confdefs.h <<\_ACEOF
25879 #define wxHAVE_LIB_XPM 1
25880 _ACEOF
25881
25882                 else
25883                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25884 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25885                 fi
25886             fi
25887
25888         fi
25889
25890                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25891 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25892 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25893   echo $ECHO_N "(cached) $ECHO_C" >&6
25894 else
25895   ac_check_lib_save_LIBS=$LIBS
25896 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25897 cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h.  */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h.  */
25903
25904 /* Override any gcc2 internal prototype to avoid an error.  */
25905 #ifdef __cplusplus
25906 extern "C"
25907 #endif
25908 /* We use char because int might match the return type of a gcc2
25909    builtin and then its argument prototype would still apply.  */
25910 char XShapeQueryExtension ();
25911 int
25912 main ()
25913 {
25914 XShapeQueryExtension ();
25915   ;
25916   return 0;
25917 }
25918 _ACEOF
25919 rm -f conftest.$ac_objext conftest$ac_exeext
25920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25921   (eval $ac_link) 2>conftest.er1
25922   ac_status=$?
25923   grep -v '^ *+' conftest.er1 >conftest.err
25924   rm -f conftest.er1
25925   cat conftest.err >&5
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); } &&
25928          { ac_try='test -z "$ac_c_werror_flag"
25929                          || test ! -s conftest.err'
25930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931   (eval $ac_try) 2>&5
25932   ac_status=$?
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); }; } &&
25935          { ac_try='test -s conftest$ac_exeext'
25936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937   (eval $ac_try) 2>&5
25938   ac_status=$?
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); }; }; then
25941   ac_cv_lib_Xext_XShapeQueryExtension=yes
25942 else
25943   echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 ac_cv_lib_Xext_XShapeQueryExtension=no
25947 fi
25948 rm -f conftest.err conftest.$ac_objext \
25949       conftest$ac_exeext conftest.$ac_ext
25950 LIBS=$ac_check_lib_save_LIBS
25951 fi
25952 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25953 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25954 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25955
25956                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25957                       wxHAVE_XEXT_LIB=1
25958
25959 fi
25960
25961
25962         if test "$wxHAVE_XEXT_LIB" = 1; then
25963             save_CFLAGS="$CFLAGS"
25964             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25965
25966             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
25967 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
25968             cat >conftest.$ac_ext <<_ACEOF
25969 /* confdefs.h.  */
25970 _ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h.  */
25974
25975                             #include <X11/Xlib.h>
25976                             #include <X11/extensions/shape.h>
25977
25978 int
25979 main ()
25980 {
25981
25982                             int dummy1, dummy2;
25983                             XShapeQueryExtension((Display*)NULL,
25984                                                  (int*)NULL, (int*)NULL);
25985
25986   ;
25987   return 0;
25988 }
25989 _ACEOF
25990 rm -f conftest.$ac_objext
25991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25992   (eval $ac_compile) 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } &&
25999          { ac_try='test -z "$ac_c_werror_flag"
26000                          || test ! -s conftest.err'
26001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002   (eval $ac_try) 2>&5
26003   ac_status=$?
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); }; } &&
26006          { ac_try='test -s conftest.$ac_objext'
26007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008   (eval $ac_try) 2>&5
26009   ac_status=$?
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); }; }; then
26012
26013                             cat >>confdefs.h <<\_ACEOF
26014 #define HAVE_XSHAPE 1
26015 _ACEOF
26016
26017                             echo "$as_me:$LINENO: result: found" >&5
26018 echo "${ECHO_T}found" >&6
26019
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024
26025                             echo "$as_me:$LINENO: result: not found" >&5
26026 echo "${ECHO_T}not found" >&6
26027
26028 fi
26029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26030             CFLAGS="$save_CFLAGS"
26031
26032         fi
26033     fi
26034
26035     if test "$wxUSE_MAC" = 1; then
26036         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26037 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26038         if test "$GCC" = yes; then
26039             echo "$as_me:$LINENO: result: gcc" >&5
26040 echo "${ECHO_T}gcc" >&6
26041             CPPFLAGS_PASCAL="-fpascal-strings"
26042         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26043             echo "$as_me:$LINENO: result: xlc" >&5
26044 echo "${ECHO_T}xlc" >&6
26045             CPPFLAGS_PASCAL="-qmacpstr"
26046         else
26047             echo "$as_me:$LINENO: result: none" >&5
26048 echo "${ECHO_T}none" >&6
26049         fi
26050
26051         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
26052
26053         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
26054         TOOLKIT=MAC
26055                 GUIDIST=MACX_DIST
26056                         WXBASEPORT="_carbon"
26057     fi
26058
26059     if test "$wxUSE_COCOA" = 1; then
26060         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26061         TOOLKIT=COCOA
26062         GUIDIST=COCOA_DIST
26063     fi
26064
26065     if test "$wxUSE_PM" = 1; then
26066         TOOLKIT=PM
26067         GUIDIST=GTK_DIST
26068     fi
26069
26070         if test "$TOOLKIT" = "PM" ; then
26071         TOOLKIT_DIR="os2"
26072     else
26073         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26074     fi
26075
26076         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26077
26078     if test "$wxUSE_UNIVERSAL" = "yes"; then
26079         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26080
26081                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26082         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26083
26084         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26085         if test "$wxUSE_X11" = 1; then
26086             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26087         else
26088             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26089         fi
26090         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26091         WIDGET_SET=univ
26092     else
26093         ALL_OBJECTS="\$(GUIOBJS)"
26094         ALL_SOURCES="\$(ALL_SOURCES)"
26095         ALL_HEADERS="\$(ALL_HEADERS)"
26096     fi
26097
26098     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26099
26100     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26101         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26102     fi
26103
26104     if test "$wxUSE_HTML" = "yes"; then
26105         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26106     fi
26107
26108     if test "$wxUSE_LIBJPEG" = "builtin" ; then
26109         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26110     fi
26111     if test "$wxUSE_LIBTIFF" = "builtin" ; then
26112         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26113     fi
26114     if test "$wxUSE_LIBPNG" = "builtin" ; then
26115         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26116     fi
26117
26118         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26119     DISTDIR="wx\$(TOOLKIT)"
26120 else
26121     USE_GUI=0
26122
26123             TOOLKIT_DIR="base"
26124
26125         if test "$USE_WIN32" = 1 ; then
26126         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26127         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26128
26129                         TOOLKIT="MSW"
26130     else
26131         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26132         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26133     fi
26134
26135     ALL_SOURCES="\$(ALL_SOURCES)"
26136     ALL_HEADERS="\$(ALL_HEADERS)"
26137
26138     PORT_FILES="\${top_srcdir}/src/files.lst"
26139
26140         GUIDIST="BASE_DIST"
26141     DISTDIR="wxBase"
26142 fi
26143
26144
26145
26146
26147 IODBC_C_SRC=""
26148
26149
26150 if test "$TOOLKIT" != "MSW" ; then
26151
26152     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26153
26154         if test "${ac_cv_header_sql_h+set}" = set; then
26155   echo "$as_me:$LINENO: checking for sql.h" >&5
26156 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26157 if test "${ac_cv_header_sql_h+set}" = set; then
26158   echo $ECHO_N "(cached) $ECHO_C" >&6
26159 fi
26160 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26161 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26162 else
26163   # Is the header compilable?
26164 echo "$as_me:$LINENO: checking sql.h usability" >&5
26165 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172 $ac_includes_default
26173 #include <sql.h>
26174 _ACEOF
26175 rm -f conftest.$ac_objext
26176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26177   (eval $ac_compile) 2>conftest.er1
26178   ac_status=$?
26179   grep -v '^ *+' conftest.er1 >conftest.err
26180   rm -f conftest.er1
26181   cat conftest.err >&5
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); } &&
26184          { ac_try='test -z "$ac_c_werror_flag"
26185                          || test ! -s conftest.err'
26186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187   (eval $ac_try) 2>&5
26188   ac_status=$?
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); }; } &&
26191          { ac_try='test -s conftest.$ac_objext'
26192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193   (eval $ac_try) 2>&5
26194   ac_status=$?
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); }; }; then
26197   ac_header_compiler=yes
26198 else
26199   echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 ac_header_compiler=no
26203 fi
26204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26206 echo "${ECHO_T}$ac_header_compiler" >&6
26207
26208 # Is the header present?
26209 echo "$as_me:$LINENO: checking sql.h presence" >&5
26210 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26211 cat >conftest.$ac_ext <<_ACEOF
26212 /* confdefs.h.  */
26213 _ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h.  */
26217 #include <sql.h>
26218 _ACEOF
26219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } >/dev/null; then
26227   if test -s conftest.err; then
26228     ac_cpp_err=$ac_c_preproc_warn_flag
26229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26230   else
26231     ac_cpp_err=
26232   fi
26233 else
26234   ac_cpp_err=yes
26235 fi
26236 if test -z "$ac_cpp_err"; then
26237   ac_header_preproc=yes
26238 else
26239   echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26241
26242   ac_header_preproc=no
26243 fi
26244 rm -f conftest.err conftest.$ac_ext
26245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26246 echo "${ECHO_T}$ac_header_preproc" >&6
26247
26248 # So?  What about this header?
26249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26250   yes:no: )
26251     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26252 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26253     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26254 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26255     ac_header_preproc=yes
26256     ;;
26257   no:yes:* )
26258     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26259 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26260     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
26261 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
26262     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26263 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26264     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
26265 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26266     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26267 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26268     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26269 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26270     (
26271       cat <<\_ASBOX
26272 ## ----------------------------------------- ##
26273 ## Report this to wx-dev@lists.wxwindows.org ##
26274 ## ----------------------------------------- ##
26275 _ASBOX
26276     ) |
26277       sed "s/^/$as_me: WARNING:     /" >&2
26278     ;;
26279 esac
26280 echo "$as_me:$LINENO: checking for sql.h" >&5
26281 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26282 if test "${ac_cv_header_sql_h+set}" = set; then
26283   echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285   ac_cv_header_sql_h=$ac_header_preproc
26286 fi
26287 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26288 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26289
26290 fi
26291 if test $ac_cv_header_sql_h = yes; then
26292   found_sql_h=1
26293 fi
26294
26295
26296         if test "x$found_sql_h" = "x1" ; then
26297             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26298 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26299 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26300   echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302   ac_check_lib_save_LIBS=$LIBS
26303 LIBS="-liodbc  $LIBS"
26304 cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h.  */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h.  */
26310
26311 /* Override any gcc2 internal prototype to avoid an error.  */
26312 #ifdef __cplusplus
26313 extern "C"
26314 #endif
26315 /* We use char because int might match the return type of a gcc2
26316    builtin and then its argument prototype would still apply.  */
26317 char SQLAllocEnv ();
26318 int
26319 main ()
26320 {
26321 SQLAllocEnv ();
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 rm -f conftest.$ac_objext conftest$ac_exeext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26328   (eval $ac_link) 2>conftest.er1
26329   ac_status=$?
26330   grep -v '^ *+' conftest.er1 >conftest.err
26331   rm -f conftest.er1
26332   cat conftest.err >&5
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); } &&
26335          { ac_try='test -z "$ac_c_werror_flag"
26336                          || test ! -s conftest.err'
26337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338   (eval $ac_try) 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; } &&
26342          { ac_try='test -s conftest$ac_exeext'
26343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344   (eval $ac_try) 2>&5
26345   ac_status=$?
26346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); }; }; then
26348   ac_cv_lib_iodbc_SQLAllocEnv=yes
26349 else
26350   echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26352
26353 ac_cv_lib_iodbc_SQLAllocEnv=no
26354 fi
26355 rm -f conftest.err conftest.$ac_objext \
26356       conftest$ac_exeext conftest.$ac_ext
26357 LIBS=$ac_check_lib_save_LIBS
26358 fi
26359 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26360 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26361 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26362   ODBC_LINK=" -liodbc"
26363 else
26364
26365                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26366 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26367 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26368   echo $ECHO_N "(cached) $ECHO_C" >&6
26369 else
26370   ac_check_lib_save_LIBS=$LIBS
26371 LIBS="-lunixodbc  $LIBS"
26372 cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378
26379 /* Override any gcc2 internal prototype to avoid an error.  */
26380 #ifdef __cplusplus
26381 extern "C"
26382 #endif
26383 /* We use char because int might match the return type of a gcc2
26384    builtin and then its argument prototype would still apply.  */
26385 char SQLAllocEnv ();
26386 int
26387 main ()
26388 {
26389 SQLAllocEnv ();
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26396   (eval $ac_link) 2>conftest.er1
26397   ac_status=$?
26398   grep -v '^ *+' conftest.er1 >conftest.err
26399   rm -f conftest.er1
26400   cat conftest.err >&5
26401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402   (exit $ac_status); } &&
26403          { ac_try='test -z "$ac_c_werror_flag"
26404                          || test ! -s conftest.err'
26405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406   (eval $ac_try) 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; } &&
26410          { ac_try='test -s conftest$ac_exeext'
26411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412   (eval $ac_try) 2>&5
26413   ac_status=$?
26414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415   (exit $ac_status); }; }; then
26416   ac_cv_lib_unixodbc_SQLAllocEnv=yes
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421 ac_cv_lib_unixodbc_SQLAllocEnv=no
26422 fi
26423 rm -f conftest.err conftest.$ac_objext \
26424       conftest$ac_exeext conftest.$ac_ext
26425 LIBS=$ac_check_lib_save_LIBS
26426 fi
26427 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26428 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26429 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26430   ODBC_LINK=" -lunixodbc"
26431 else
26432
26433                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26434 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26435 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26436   echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438   ac_check_lib_save_LIBS=$LIBS
26439 LIBS="-lodbc  $LIBS"
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446
26447 /* Override any gcc2 internal prototype to avoid an error.  */
26448 #ifdef __cplusplus
26449 extern "C"
26450 #endif
26451 /* We use char because int might match the return type of a gcc2
26452    builtin and then its argument prototype would still apply.  */
26453 char SQLAllocEnv ();
26454 int
26455 main ()
26456 {
26457 SQLAllocEnv ();
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 rm -f conftest.$ac_objext conftest$ac_exeext
26463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26464   (eval $ac_link) 2>conftest.er1
26465   ac_status=$?
26466   grep -v '^ *+' conftest.er1 >conftest.err
26467   rm -f conftest.er1
26468   cat conftest.err >&5
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); } &&
26471          { ac_try='test -z "$ac_c_werror_flag"
26472                          || test ! -s conftest.err'
26473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26474   (eval $ac_try) 2>&5
26475   ac_status=$?
26476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477   (exit $ac_status); }; } &&
26478          { ac_try='test -s conftest$ac_exeext'
26479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26480   (eval $ac_try) 2>&5
26481   ac_status=$?
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); }; }; then
26484   ac_cv_lib_odbc_SQLAllocEnv=yes
26485 else
26486   echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489 ac_cv_lib_odbc_SQLAllocEnv=no
26490 fi
26491 rm -f conftest.err conftest.$ac_objext \
26492       conftest$ac_exeext conftest.$ac_ext
26493 LIBS=$ac_check_lib_save_LIBS
26494 fi
26495 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26496 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26497 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26498   ODBC_LINK=" -lodbc"
26499 fi
26500
26501
26502 fi
26503
26504
26505 fi
26506
26507         fi
26508         if test "x$ODBC_LINK" = "x" ; then
26509             if test "$wxUSE_ODBC" = "sys" ; then
26510                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26511 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26512    { (exit 1); exit 1; }; }
26513             else
26514                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26515 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26516                 wxUSE_ODBC=builtin
26517             fi
26518         else
26519                         wxUSE_ODBC=sys
26520         fi
26521     fi
26522     if test "$wxUSE_ODBC" != "no" ; then
26523         cat >>confdefs.h <<\_ACEOF
26524 #define wxUSE_ODBC 1
26525 _ACEOF
26526
26527         if test "$wxUSE_ODBC" = "builtin" ; then
26528             cat >>confdefs.h <<\_ACEOF
26529 #define wxUSE_BUILTIN_IODBC 1
26530 _ACEOF
26531
26532         fi
26533         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26534
26535                 WXODBCFLAG="-D_IODBC_"
26536     fi
26537 fi
26538
26539 if test "$wxUSE_REGEX" = "builtin" ; then
26540     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26541 fi
26542 if test "$wxUSE_ZLIB" = "builtin" ; then
26543     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26544 fi
26545
26546
26547 USE_OPENGL=0
26548 if test "$wxUSE_OPENGL" = "yes"; then
26549     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26550         OPENGL_LIBS="-framework OpenGL -framework AGL"
26551     elif test "$wxUSE_MSW" = 1; then
26552         OPENGL_LIBS="-lopengl32 -lglu32"
26553     else
26554
26555
26556 ac_find_includes=
26557 for ac_dir in $SEARCH_INCLUDE /usr/include;
26558   do
26559     if test -f "$ac_dir/GL/gl.h"; then
26560       ac_find_includes=$ac_dir
26561       break
26562     fi
26563   done
26564
26565         if test "$ac_find_includes" != "" ; then
26566             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26567 echo "${ECHO_T}found in $ac_find_includes" >&6
26568
26569     if test "x$ac_find_includes" = "x/usr/include"; then
26570     ac_path_to_include=""
26571   else
26572     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26573     result=$?
26574     if test $result = 0; then
26575       ac_path_to_include=""
26576     else
26577       ac_path_to_include=" -I$ac_find_includes"
26578     fi
26579   fi
26580
26581             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
26582         fi
26583
26584         if test "${ac_cv_header_GL_gl_h+set}" = set; then
26585   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26586 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26587 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 fi
26590 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26591 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26592 else
26593   # Is the header compilable?
26594 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26595 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26596 cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602 $ac_includes_default
26603 #include <GL/gl.h>
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607   (eval $ac_compile) 2>conftest.er1
26608   ac_status=$?
26609   grep -v '^ *+' conftest.er1 >conftest.err
26610   rm -f conftest.er1
26611   cat conftest.err >&5
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); } &&
26614          { ac_try='test -z "$ac_c_werror_flag"
26615                          || test ! -s conftest.err'
26616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617   (eval $ac_try) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; } &&
26621          { ac_try='test -s conftest.$ac_objext'
26622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623   (eval $ac_try) 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); }; }; then
26627   ac_header_compiler=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 ac_header_compiler=no
26633 fi
26634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26636 echo "${ECHO_T}$ac_header_compiler" >&6
26637
26638 # Is the header present?
26639 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26640 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 #include <GL/gl.h>
26648 _ACEOF
26649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26651   ac_status=$?
26652   grep -v '^ *+' conftest.er1 >conftest.err
26653   rm -f conftest.er1
26654   cat conftest.err >&5
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); } >/dev/null; then
26657   if test -s conftest.err; then
26658     ac_cpp_err=$ac_c_preproc_warn_flag
26659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26660   else
26661     ac_cpp_err=
26662   fi
26663 else
26664   ac_cpp_err=yes
26665 fi
26666 if test -z "$ac_cpp_err"; then
26667   ac_header_preproc=yes
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672   ac_header_preproc=no
26673 fi
26674 rm -f conftest.err conftest.$ac_ext
26675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26676 echo "${ECHO_T}$ac_header_preproc" >&6
26677
26678 # So?  What about this header?
26679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26680   yes:no: )
26681     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26682 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26683     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26684 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26685     ac_header_preproc=yes
26686     ;;
26687   no:yes:* )
26688     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26689 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
26690     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
26691 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
26692     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26693 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26694     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
26695 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26696     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26697 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
26698     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26699 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
26700     (
26701       cat <<\_ASBOX
26702 ## ----------------------------------------- ##
26703 ## Report this to wx-dev@lists.wxwindows.org ##
26704 ## ----------------------------------------- ##
26705 _ASBOX
26706     ) |
26707       sed "s/^/$as_me: WARNING:     /" >&2
26708     ;;
26709 esac
26710 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26711 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26712 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   ac_cv_header_GL_gl_h=$ac_header_preproc
26716 fi
26717 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26718 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26719
26720 fi
26721 if test $ac_cv_header_GL_gl_h = yes; then
26722
26723                 found_gl=0
26724
26725                 echo "$as_me:$LINENO: checking for -lGL" >&5
26726 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26727
26728 ac_find_libraries=
26729 for ac_dir in $SEARCH_LIB /usr/lib;
26730   do
26731     for ac_extension in a so sl dylib; do
26732       if test -f "$ac_dir/libGL.$ac_extension"; then
26733         ac_find_libraries=$ac_dir
26734         break 2
26735       fi
26736     done
26737   done
26738
26739                 if test "$ac_find_libraries" != "" ; then
26740
26741   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26742   result=$?
26743   if test $result = 0; then
26744     ac_path_to_link=""
26745   else
26746     ac_path_to_link=" -L$ac_find_libraries"
26747   fi
26748
26749                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
26750                         LDFLAGS_GL="$ac_path_to_link"
26751                     fi
26752
26753
26754 ac_find_libraries=
26755 for ac_dir in $SEARCH_LIB /usr/lib;
26756   do
26757     for ac_extension in a so sl dylib; do
26758       if test -f "$ac_dir/libGLU.$ac_extension"; then
26759         ac_find_libraries=$ac_dir
26760         break 2
26761       fi
26762     done
26763   done
26764
26765                     if test "$ac_find_libraries" != "" ; then
26766
26767   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26768   result=$?
26769   if test $result = 0; then
26770     ac_path_to_link=""
26771   else
26772     ac_path_to_link=" -L$ac_find_libraries"
26773   fi
26774
26775                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
26776                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
26777                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26778                         fi
26779
26780                         found_gl=1
26781                         OPENGL_LIBS="-lGL -lGLU"
26782                         echo "$as_me:$LINENO: result: yes" >&5
26783 echo "${ECHO_T}yes" >&6
26784                     fi
26785                 fi
26786
26787                 if test "$found_gl" != 1; then
26788                     echo "$as_me:$LINENO: result: no" >&5
26789 echo "${ECHO_T}no" >&6
26790                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26791 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26792
26793 ac_find_libraries=
26794 for ac_dir in $SEARCH_LIB /usr/lib;
26795   do
26796     for ac_extension in a so sl dylib; do
26797       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26798         ac_find_libraries=$ac_dir
26799         break 2
26800       fi
26801     done
26802   done
26803
26804                     if test "$ac_find_libraries" != "" ; then
26805
26806   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26807   result=$?
26808   if test $result = 0; then
26809     ac_path_to_link=""
26810   else
26811     ac_path_to_link=" -L$ac_find_libraries"
26812   fi
26813
26814                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26815                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
26816                         echo "$as_me:$LINENO: result: yes" >&5
26817 echo "${ECHO_T}yes" >&6
26818                     else
26819                         echo "$as_me:$LINENO: result: no" >&5
26820 echo "${ECHO_T}no" >&6
26821                     fi
26822                 fi
26823
26824 fi
26825
26826
26827
26828         if test "x$OPENGL_LIBS" = "x"; then
26829                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26830 echo "$as_me: error: OpenGL libraries not available" >&2;}
26831    { (exit 1); exit 1; }; }
26832         fi
26833     fi
26834
26835     if test "$wxUSE_OPENGL" = "yes"; then
26836         USE_OPENGL=1
26837         cat >>confdefs.h <<\_ACEOF
26838 #define wxUSE_OPENGL 1
26839 _ACEOF
26840
26841         cat >>confdefs.h <<\_ACEOF
26842 #define wxUSE_GLCANVAS 1
26843 _ACEOF
26844
26845         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
26846     fi
26847 fi
26848
26849 if test -z "$TOOLKIT_VPATH" ; then
26850     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
26851 fi
26852
26853 if test -n "$TOOLKIT" ; then
26854     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26855 fi
26856
26857 UNICODE=0
26858 lib_unicode_suffix=
26859 if test "$wxUSE_UNICODE" = "yes"; then
26860     lib_unicode_suffix=u
26861     UNICODE=1
26862 fi
26863
26864 lib_debug_suffix=
26865 DEBUG_FLAG=0
26866 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
26867     lib_debug_suffix=d
26868     DEBUG_FLAG=1
26869 fi
26870
26871 DEBUG_INFO=0
26872 if test "$wxUSE_DEBUG_INFO" = "yes"; then
26873     DEBUG_INFO=1
26874 fi
26875
26876 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
26877
26878 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
26879 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
26880
26881 if test "$cross_compiling" = "yes"; then
26882     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
26883     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
26884     HOST_SUFFIX="-${host_alias}"
26885 fi
26886
26887 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
26888 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
26889 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
26890 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
26891
26892 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26893 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26894
26895 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26896 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26897 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26898 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26899
26900 case "${host}" in
26901     *-*-cygwin* | *-*-mingw32* )
26902         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26903         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26904         ;;
26905
26906     *-*-darwin* )
26907
26908         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26909         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26910
26911         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26912         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26913         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26914         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26915
26916                         if test "$wxUSE_MAC" = 1; then
26917                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
26918             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
26919         fi
26920         ;;
26921 esac
26922
26923 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26924 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26925
26926 WXCONFIG_LIBS="-l${WX_LIBRARY}"
26927 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26928
26929 if test "$wxUSE_OPENGL" = "yes"; then
26930     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26931     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26932 fi
26933
26934
26935
26936 if test "$wxUSE_SHARED" = "yes"; then
26937     case "${host}" in
26938       *-pc-os2_emx | *-pc-os2-emx | \
26939       *-pc-msdosdjgpp )
26940                 wxUSE_SHARED=no
26941         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26942 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
26943       ;;
26944     esac
26945 fi
26946
26947 SHARED=0
26948 if test "$wxUSE_SHARED" = "yes"; then
26949     SHARED=1
26950
26951
26952   found_versioning=no
26953
26954
26955     if test $found_versioning = no ; then
26956       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26957 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26958 if test "${wx_cv_version_script+set}" = set; then
26959   echo $ECHO_N "(cached) $ECHO_C" >&6
26960 else
26961
26962         echo "VER_1 { *; };" >conftest.sym
26963         echo "int main() { return 0; }" >conftest.cpp
26964
26965         if { ac_try='
26966                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
26967                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969   (eval $ac_try) 2>&5
26970   ac_status=$?
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); }; } ; then
26973           if test -s conftest.stderr ; then
26974               wx_cv_version_script=no
26975           else
26976               wx_cv_version_script=yes
26977           fi
26978         else
26979           wx_cv_version_script=no
26980         fi
26981         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
26982
26983 fi
26984 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26985 echo "${ECHO_T}$wx_cv_version_script" >&6
26986       if test $wx_cv_version_script = yes ; then
26987         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
26988       fi
26989   fi
26990
26991
26992     case "${host}" in
26993       *-*-linux* | *-*-gnu* )
26994         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26995         ;;
26996
26997       *-*-solaris2* )
26998         if test "$GCC" = yes ; then
26999                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27000
27001                                     saveLdflags="$LDFLAGS"
27002             LDFLAGS="$saveLdflags -Wl,-rpath,/"
27003             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27004 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27005             cat >conftest.$ac_ext <<_ACEOF
27006 /* confdefs.h.  */
27007 _ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h.  */
27011
27012 int
27013 main ()
27014 {
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext conftest$ac_exeext
27021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27022   (eval $ac_link) 2>conftest.er1
27023   ac_status=$?
27024   grep -v '^ *+' conftest.er1 >conftest.err
27025   rm -f conftest.er1
27026   cat conftest.err >&5
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } &&
27029          { ac_try='test -z "$ac_c_werror_flag"
27030                          || test ! -s conftest.err'
27031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032   (eval $ac_try) 2>&5
27033   ac_status=$?
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); }; } &&
27036          { ac_try='test -s conftest$ac_exeext'
27037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27038   (eval $ac_try) 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; }; then
27042
27043                     echo "$as_me:$LINENO: result: yes" >&5
27044 echo "${ECHO_T}yes" >&6
27045                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27046
27047 else
27048   echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27050
27051
27052                     echo "$as_me:$LINENO: result: no" >&5
27053 echo "${ECHO_T}no" >&6
27054                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27055 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27056                     LDFLAGS="$saveLdflags -Wl,-R,/"
27057                     cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h.  */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h.  */
27063
27064 int
27065 main ()
27066 {
27067
27068   ;
27069   return 0;
27070 }
27071 _ACEOF
27072 rm -f conftest.$ac_objext conftest$ac_exeext
27073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27074   (eval $ac_link) 2>conftest.er1
27075   ac_status=$?
27076   grep -v '^ *+' conftest.er1 >conftest.err
27077   rm -f conftest.er1
27078   cat conftest.err >&5
27079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080   (exit $ac_status); } &&
27081          { ac_try='test -z "$ac_c_werror_flag"
27082                          || test ! -s conftest.err'
27083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084   (eval $ac_try) 2>&5
27085   ac_status=$?
27086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); }; } &&
27088          { ac_try='test -s conftest$ac_exeext'
27089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090   (eval $ac_try) 2>&5
27091   ac_status=$?
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); }; }; then
27094
27095                              echo "$as_me:$LINENO: result: yes" >&5
27096 echo "${ECHO_T}yes" >&6
27097                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102
27103                             echo "$as_me:$LINENO: result: no" >&5
27104 echo "${ECHO_T}no" >&6
27105
27106 fi
27107 rm -f conftest.err conftest.$ac_objext \
27108       conftest$ac_exeext conftest.$ac_ext
27109
27110 fi
27111 rm -f conftest.err conftest.$ac_objext \
27112       conftest$ac_exeext conftest.$ac_ext
27113             LDFLAGS="$saveLdflags"
27114         else
27115             SHARED_LD="${CXX} -G -o"
27116             PIC_FLAG="-KPIC"
27117             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27118         fi
27119       ;;
27120
27121       powerpc-*-darwin* )
27122         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27123         cat <<EOF >change-install-names
27124 #!/bin/sh
27125 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27126 inst_cmd="install_name_tool "
27127 for i in \${libnames} ; do
27128     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27129 done
27130 \${inst_cmd} \${3}
27131 EOF
27132         chmod +x change-install-names
27133       ;;
27134
27135     esac
27136
27137         if test "x$WX_TARGET_LIBRARY" = "x"; then
27138         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27139         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27140     fi
27141
27142         WX_TARGET_LIBRARY_TYPE="so"
27143     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27144 fi
27145
27146 if test "$wxUSE_SHARED" = "no"; then
27147
27148         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27149                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27150     fi
27151
27152     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27153         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27154     fi
27155
27156     if test "$wxUSE_OPENGL" = "yes"; then
27157         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27158         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27159     else
27160         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27161     fi
27162
27163     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27164     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27165
27166     WX_TARGET_LIBRARY_TYPE="a"
27167     INSTALL_LIBRARY='$(INSTALL_DATA)'
27168
27169             STATIC_FLAG="yes"
27170 else
27171     STATIC_FLAG="no"
27172 fi
27173
27174 MACRESCOMP="@#"
27175 MACSETFILE="@#"
27176 MACRESWXCONFIG="#"
27177 if test "$wxUSE_MAC" = 1; then
27178         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27179     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27180     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27181     # Extract the first word of "Rez", so it can be a program name with args.
27182 set dummy Rez; ac_word=$2
27183 echo "$as_me:$LINENO: checking for $ac_word" >&5
27184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27185 if test "${ac_cv_prog_RESCOMP+set}" = set; then
27186   echo $ECHO_N "(cached) $ECHO_C" >&6
27187 else
27188   if test -n "$RESCOMP"; then
27189   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27190 else
27191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27192 for as_dir in $PATH
27193 do
27194   IFS=$as_save_IFS
27195   test -z "$as_dir" && as_dir=.
27196   for ac_exec_ext in '' $ac_executable_extensions; do
27197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27198     ac_cv_prog_RESCOMP="Rez"
27199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27200     break 2
27201   fi
27202 done
27203 done
27204
27205   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27206 fi
27207 fi
27208 RESCOMP=$ac_cv_prog_RESCOMP
27209 if test -n "$RESCOMP"; then
27210   echo "$as_me:$LINENO: result: $RESCOMP" >&5
27211 echo "${ECHO_T}$RESCOMP" >&6
27212 else
27213   echo "$as_me:$LINENO: result: no" >&5
27214 echo "${ECHO_T}no" >&6
27215 fi
27216
27217     # Extract the first word of "DeRez", so it can be a program name with args.
27218 set dummy DeRez; ac_word=$2
27219 echo "$as_me:$LINENO: checking for $ac_word" >&5
27220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27221 if test "${ac_cv_prog_DEREZ+set}" = set; then
27222   echo $ECHO_N "(cached) $ECHO_C" >&6
27223 else
27224   if test -n "$DEREZ"; then
27225   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27226 else
27227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27228 for as_dir in $PATH
27229 do
27230   IFS=$as_save_IFS
27231   test -z "$as_dir" && as_dir=.
27232   for ac_exec_ext in '' $ac_executable_extensions; do
27233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27234     ac_cv_prog_DEREZ="DeRez"
27235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27236     break 2
27237   fi
27238 done
27239 done
27240
27241   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27242 fi
27243 fi
27244 DEREZ=$ac_cv_prog_DEREZ
27245 if test -n "$DEREZ"; then
27246   echo "$as_me:$LINENO: result: $DEREZ" >&5
27247 echo "${ECHO_T}$DEREZ" >&6
27248 else
27249   echo "$as_me:$LINENO: result: no" >&5
27250 echo "${ECHO_T}no" >&6
27251 fi
27252
27253     # Extract the first word of "SetFile", so it can be a program name with args.
27254 set dummy SetFile; ac_word=$2
27255 echo "$as_me:$LINENO: checking for $ac_word" >&5
27256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27257 if test "${ac_cv_prog_SETFILE+set}" = set; then
27258   echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260   if test -n "$SETFILE"; then
27261   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27262 else
27263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27264 for as_dir in $PATH
27265 do
27266   IFS=$as_save_IFS
27267   test -z "$as_dir" && as_dir=.
27268   for ac_exec_ext in '' $ac_executable_extensions; do
27269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27270     ac_cv_prog_SETFILE="SetFile"
27271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27272     break 2
27273   fi
27274 done
27275 done
27276
27277   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27278 fi
27279 fi
27280 SETFILE=$ac_cv_prog_SETFILE
27281 if test -n "$SETFILE"; then
27282   echo "$as_me:$LINENO: result: $SETFILE" >&5
27283 echo "${ECHO_T}$SETFILE" >&6
27284 else
27285   echo "$as_me:$LINENO: result: no" >&5
27286 echo "${ECHO_T}no" >&6
27287 fi
27288
27289     MACOSX_BUNDLE="bundle"
27290             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27291     MACSETFILE="\$(SETFILE)"
27292     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27293 elif test "$wxUSE_COCOA" = 1; then
27294     # Extract the first word of "Rez", so it can be a program name with args.
27295 set dummy Rez; ac_word=$2
27296 echo "$as_me:$LINENO: checking for $ac_word" >&5
27297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27298 if test "${ac_cv_prog_RESCOMP+set}" = set; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301   if test -n "$RESCOMP"; then
27302   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27303 else
27304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27305 for as_dir in $PATH
27306 do
27307   IFS=$as_save_IFS
27308   test -z "$as_dir" && as_dir=.
27309   for ac_exec_ext in '' $ac_executable_extensions; do
27310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27311     ac_cv_prog_RESCOMP="Rez"
27312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27313     break 2
27314   fi
27315 done
27316 done
27317
27318   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27319 fi
27320 fi
27321 RESCOMP=$ac_cv_prog_RESCOMP
27322 if test -n "$RESCOMP"; then
27323   echo "$as_me:$LINENO: result: $RESCOMP" >&5
27324 echo "${ECHO_T}$RESCOMP" >&6
27325 else
27326   echo "$as_me:$LINENO: result: no" >&5
27327 echo "${ECHO_T}no" >&6
27328 fi
27329
27330     # Extract the first word of "DeRez", so it can be a program name with args.
27331 set dummy DeRez; ac_word=$2
27332 echo "$as_me:$LINENO: checking for $ac_word" >&5
27333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27334 if test "${ac_cv_prog_DEREZ+set}" = set; then
27335   echo $ECHO_N "(cached) $ECHO_C" >&6
27336 else
27337   if test -n "$DEREZ"; then
27338   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27339 else
27340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27341 for as_dir in $PATH
27342 do
27343   IFS=$as_save_IFS
27344   test -z "$as_dir" && as_dir=.
27345   for ac_exec_ext in '' $ac_executable_extensions; do
27346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27347     ac_cv_prog_DEREZ="DeRez"
27348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27349     break 2
27350   fi
27351 done
27352 done
27353
27354   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27355 fi
27356 fi
27357 DEREZ=$ac_cv_prog_DEREZ
27358 if test -n "$DEREZ"; then
27359   echo "$as_me:$LINENO: result: $DEREZ" >&5
27360 echo "${ECHO_T}$DEREZ" >&6
27361 else
27362   echo "$as_me:$LINENO: result: no" >&5
27363 echo "${ECHO_T}no" >&6
27364 fi
27365
27366     # Extract the first word of "SetFile", so it can be a program name with args.
27367 set dummy SetFile; ac_word=$2
27368 echo "$as_me:$LINENO: checking for $ac_word" >&5
27369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27370 if test "${ac_cv_prog_SETFILE+set}" = set; then
27371   echo $ECHO_N "(cached) $ECHO_C" >&6
27372 else
27373   if test -n "$SETFILE"; then
27374   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27375 else
27376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377 for as_dir in $PATH
27378 do
27379   IFS=$as_save_IFS
27380   test -z "$as_dir" && as_dir=.
27381   for ac_exec_ext in '' $ac_executable_extensions; do
27382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27383     ac_cv_prog_SETFILE="SetFile"
27384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27385     break 2
27386   fi
27387 done
27388 done
27389
27390   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27391 fi
27392 fi
27393 SETFILE=$ac_cv_prog_SETFILE
27394 if test -n "$SETFILE"; then
27395   echo "$as_me:$LINENO: result: $SETFILE" >&5
27396 echo "${ECHO_T}$SETFILE" >&6
27397 else
27398   echo "$as_me:$LINENO: result: no" >&5
27399 echo "${ECHO_T}no" >&6
27400 fi
27401
27402     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27403     MACSETFILE="\$(SETFILE)"
27404     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27405 else
27406     if test "$wxUSE_PM" = 1; then
27407         MACRESCOMP="emxbind -ep"
27408     fi
27409 fi
27410
27411
27412 echo "$as_me:$LINENO: checking for mode_t" >&5
27413 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27414 if test "${ac_cv_type_mode_t+set}" = set; then
27415   echo $ECHO_N "(cached) $ECHO_C" >&6
27416 else
27417   cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423 $ac_includes_default
27424 int
27425 main ()
27426 {
27427 if ((mode_t *) 0)
27428   return 0;
27429 if (sizeof (mode_t))
27430   return 0;
27431   ;
27432   return 0;
27433 }
27434 _ACEOF
27435 rm -f conftest.$ac_objext
27436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27437   (eval $ac_compile) 2>conftest.er1
27438   ac_status=$?
27439   grep -v '^ *+' conftest.er1 >conftest.err
27440   rm -f conftest.er1
27441   cat conftest.err >&5
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); } &&
27444          { ac_try='test -z "$ac_c_werror_flag"
27445                          || test ! -s conftest.err'
27446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447   (eval $ac_try) 2>&5
27448   ac_status=$?
27449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450   (exit $ac_status); }; } &&
27451          { ac_try='test -s conftest.$ac_objext'
27452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453   (eval $ac_try) 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; }; then
27457   ac_cv_type_mode_t=yes
27458 else
27459   echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27461
27462 ac_cv_type_mode_t=no
27463 fi
27464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27465 fi
27466 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27467 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27468 if test $ac_cv_type_mode_t = yes; then
27469   :
27470 else
27471
27472 cat >>confdefs.h <<_ACEOF
27473 #define mode_t int
27474 _ACEOF
27475
27476 fi
27477
27478 echo "$as_me:$LINENO: checking for off_t" >&5
27479 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27480 if test "${ac_cv_type_off_t+set}" = set; then
27481   echo $ECHO_N "(cached) $ECHO_C" >&6
27482 else
27483   cat >conftest.$ac_ext <<_ACEOF
27484 /* confdefs.h.  */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h.  */
27489 $ac_includes_default
27490 int
27491 main ()
27492 {
27493 if ((off_t *) 0)
27494   return 0;
27495 if (sizeof (off_t))
27496   return 0;
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext
27502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27503   (eval $ac_compile) 2>conftest.er1
27504   ac_status=$?
27505   grep -v '^ *+' conftest.er1 >conftest.err
27506   rm -f conftest.er1
27507   cat conftest.err >&5
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); } &&
27510          { ac_try='test -z "$ac_c_werror_flag"
27511                          || test ! -s conftest.err'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; } &&
27517          { ac_try='test -s conftest.$ac_objext'
27518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519   (eval $ac_try) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; }; then
27523   ac_cv_type_off_t=yes
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528 ac_cv_type_off_t=no
27529 fi
27530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27531 fi
27532 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27533 echo "${ECHO_T}$ac_cv_type_off_t" >&6
27534 if test $ac_cv_type_off_t = yes; then
27535   :
27536 else
27537
27538 cat >>confdefs.h <<_ACEOF
27539 #define off_t long
27540 _ACEOF
27541
27542 fi
27543
27544 echo "$as_me:$LINENO: checking for pid_t" >&5
27545 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27546 if test "${ac_cv_type_pid_t+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555 $ac_includes_default
27556 int
27557 main ()
27558 {
27559 if ((pid_t *) 0)
27560   return 0;
27561 if (sizeof (pid_t))
27562   return 0;
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 rm -f conftest.$ac_objext
27568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27569   (eval $ac_compile) 2>conftest.er1
27570   ac_status=$?
27571   grep -v '^ *+' conftest.er1 >conftest.err
27572   rm -f conftest.er1
27573   cat conftest.err >&5
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); } &&
27576          { ac_try='test -z "$ac_c_werror_flag"
27577                          || test ! -s conftest.err'
27578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579   (eval $ac_try) 2>&5
27580   ac_status=$?
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); }; } &&
27583          { ac_try='test -s conftest.$ac_objext'
27584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585   (eval $ac_try) 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; }; then
27589   ac_cv_type_pid_t=yes
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594 ac_cv_type_pid_t=no
27595 fi
27596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27597 fi
27598 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27599 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27600 if test $ac_cv_type_pid_t = yes; then
27601   :
27602 else
27603
27604 cat >>confdefs.h <<_ACEOF
27605 #define pid_t int
27606 _ACEOF
27607
27608 fi
27609
27610 echo "$as_me:$LINENO: checking for size_t" >&5
27611 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27612 if test "${ac_cv_type_size_t+set}" = set; then
27613   echo $ECHO_N "(cached) $ECHO_C" >&6
27614 else
27615   cat >conftest.$ac_ext <<_ACEOF
27616 /* confdefs.h.  */
27617 _ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h.  */
27621 $ac_includes_default
27622 int
27623 main ()
27624 {
27625 if ((size_t *) 0)
27626   return 0;
27627 if (sizeof (size_t))
27628   return 0;
27629   ;
27630   return 0;
27631 }
27632 _ACEOF
27633 rm -f conftest.$ac_objext
27634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27635   (eval $ac_compile) 2>conftest.er1
27636   ac_status=$?
27637   grep -v '^ *+' conftest.er1 >conftest.err
27638   rm -f conftest.er1
27639   cat conftest.err >&5
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); } &&
27642          { ac_try='test -z "$ac_c_werror_flag"
27643                          || test ! -s conftest.err'
27644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645   (eval $ac_try) 2>&5
27646   ac_status=$?
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); }; } &&
27649          { ac_try='test -s conftest.$ac_objext'
27650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651   (eval $ac_try) 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); }; }; then
27655   ac_cv_type_size_t=yes
27656 else
27657   echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27659
27660 ac_cv_type_size_t=no
27661 fi
27662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27663 fi
27664 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27665 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27666 if test $ac_cv_type_size_t = yes; then
27667   :
27668 else
27669
27670 cat >>confdefs.h <<_ACEOF
27671 #define size_t unsigned
27672 _ACEOF
27673
27674 fi
27675
27676 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27677 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27678 if test "${ac_cv_type_uid_t+set}" = set; then
27679   echo $ECHO_N "(cached) $ECHO_C" >&6
27680 else
27681   cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h.  */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h.  */
27687 #include <sys/types.h>
27688
27689 _ACEOF
27690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27691   $EGREP "uid_t" >/dev/null 2>&1; then
27692   ac_cv_type_uid_t=yes
27693 else
27694   ac_cv_type_uid_t=no
27695 fi
27696 rm -f conftest*
27697
27698 fi
27699 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27700 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
27701 if test $ac_cv_type_uid_t = no; then
27702
27703 cat >>confdefs.h <<\_ACEOF
27704 #define uid_t int
27705 _ACEOF
27706
27707
27708 cat >>confdefs.h <<\_ACEOF
27709 #define gid_t int
27710 _ACEOF
27711
27712 fi
27713
27714
27715
27716
27717 ac_ext=cc
27718 ac_cpp='$CXXCPP $CPPFLAGS'
27719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27722
27723 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27724 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27725 if test "${wx_cv_size_t_is_uint+set}" = set; then
27726   echo $ECHO_N "(cached) $ECHO_C" >&6
27727 else
27728
27729                             cat >conftest.$ac_ext <<_ACEOF
27730 /* confdefs.h.  */
27731 _ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h.  */
27735 #include <stddef.h>
27736 int
27737 main ()
27738 {
27739
27740             return 0; }
27741
27742             struct Foo { void foo(size_t); void foo(unsigned int); };
27743
27744             int bar() {
27745
27746   ;
27747   return 0;
27748 }
27749 _ACEOF
27750 rm -f conftest.$ac_objext
27751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27752   (eval $ac_compile) 2>conftest.er1
27753   ac_status=$?
27754   grep -v '^ *+' conftest.er1 >conftest.err
27755   rm -f conftest.er1
27756   cat conftest.err >&5
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); } &&
27759          { ac_try='test -z "$ac_cxx_werror_flag"
27760                          || test ! -s conftest.err'
27761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762   (eval $ac_try) 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; } &&
27766          { ac_try='test -s conftest.$ac_objext'
27767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768   (eval $ac_try) 2>&5
27769   ac_status=$?
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); }; }; then
27772   wx_cv_size_t_is_uint=no
27773 else
27774   echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27776
27777 wx_cv_size_t_is_uint=yes
27778
27779 fi
27780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27781
27782
27783 fi
27784 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27785 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
27786
27787 if test "$wx_cv_size_t_is_uint" = "yes"; then
27788     cat >>confdefs.h <<\_ACEOF
27789 #define wxSIZE_T_IS_UINT 1
27790 _ACEOF
27791
27792 else
27793     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27794 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27795 if test "${wx_cv_size_t_is_ulong+set}" = set; then
27796   echo $ECHO_N "(cached) $ECHO_C" >&6
27797 else
27798   cat >conftest.$ac_ext <<_ACEOF
27799 /* confdefs.h.  */
27800 _ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h.  */
27804 #include <stddef.h>
27805 int
27806 main ()
27807 {
27808
27809                 return 0; }
27810
27811                 struct Foo { void foo(size_t); void foo(unsigned long); };
27812
27813                 int bar() {
27814
27815   ;
27816   return 0;
27817 }
27818 _ACEOF
27819 rm -f conftest.$ac_objext
27820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27821   (eval $ac_compile) 2>conftest.er1
27822   ac_status=$?
27823   grep -v '^ *+' conftest.er1 >conftest.err
27824   rm -f conftest.er1
27825   cat conftest.err >&5
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } &&
27828          { ac_try='test -z "$ac_cxx_werror_flag"
27829                          || test ! -s conftest.err'
27830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831   (eval $ac_try) 2>&5
27832   ac_status=$?
27833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834   (exit $ac_status); }; } &&
27835          { ac_try='test -s conftest.$ac_objext'
27836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837   (eval $ac_try) 2>&5
27838   ac_status=$?
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); }; }; then
27841   wx_cv_size_t_is_ulong=no
27842 else
27843   echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27845
27846 wx_cv_size_t_is_ulong=yes
27847
27848 fi
27849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27850
27851 fi
27852 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27853 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
27854
27855     if test "$wx_cv_size_t_is_ulong" = "yes"; then
27856         cat >>confdefs.h <<\_ACEOF
27857 #define wxSIZE_T_IS_ULONG 1
27858 _ACEOF
27859
27860     fi
27861 fi
27862
27863 ac_ext=c
27864 ac_cpp='$CPP $CPPFLAGS'
27865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27868
27869
27870
27871 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
27872 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
27873 if test "${wx_cv_struct_pw_gecos+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876
27877         cat >conftest.$ac_ext <<_ACEOF
27878 /* confdefs.h.  */
27879 _ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h.  */
27883 #include <pwd.h>
27884 int
27885 main ()
27886 {
27887
27888                 char *p;
27889                 struct passwd *pw;
27890                 p = pw->pw_gecos;
27891
27892   ;
27893   return 0;
27894 }
27895 _ACEOF
27896 rm -f conftest.$ac_objext
27897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27898   (eval $ac_compile) 2>conftest.er1
27899   ac_status=$?
27900   grep -v '^ *+' conftest.er1 >conftest.err
27901   rm -f conftest.er1
27902   cat conftest.err >&5
27903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904   (exit $ac_status); } &&
27905          { ac_try='test -z "$ac_c_werror_flag"
27906                          || test ! -s conftest.err'
27907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908   (eval $ac_try) 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); }; } &&
27912          { ac_try='test -s conftest.$ac_objext'
27913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914   (eval $ac_try) 2>&5
27915   ac_status=$?
27916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917   (exit $ac_status); }; }; then
27918
27919                 wx_cv_struct_pw_gecos=yes
27920
27921 else
27922   echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27924
27925
27926                 wx_cv_struct_pw_gecos=no
27927
27928
27929 fi
27930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27931
27932
27933 fi
27934 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
27935 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
27936
27937 if test "$wx_cv_struct_pw_gecos" = "yes"; then
27938     cat >>confdefs.h <<\_ACEOF
27939 #define HAVE_PW_GECOS 1
27940 _ACEOF
27941
27942 fi
27943
27944
27945 if test "$wx_cv_sizeof_wchar_t" != "0"; then
27946     cat >>confdefs.h <<\_ACEOF
27947 #define wxUSE_WCHAR_T 1
27948 _ACEOF
27949
27950
27951         WCSLEN_FOUND=0
27952     WCHAR_LINK=
27953
27954 for ac_func in wcslen
27955 do
27956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27957 echo "$as_me:$LINENO: checking for $ac_func" >&5
27958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27959 if eval "test \"\${$as_ac_var+set}\" = set"; then
27960   echo $ECHO_N "(cached) $ECHO_C" >&6
27961 else
27962   cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27970 #define $ac_func innocuous_$ac_func
27971
27972 /* System header to define __stub macros and hopefully few prototypes,
27973     which can conflict with char $ac_func (); below.
27974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27975     <limits.h> exists even on freestanding compilers.  */
27976
27977 #ifdef __STDC__
27978 # include <limits.h>
27979 #else
27980 # include <assert.h>
27981 #endif
27982
27983 #undef $ac_func
27984
27985 /* Override any gcc2 internal prototype to avoid an error.  */
27986 #ifdef __cplusplus
27987 extern "C"
27988 {
27989 #endif
27990 /* We use char because int might match the return type of a gcc2
27991    builtin and then its argument prototype would still apply.  */
27992 char $ac_func ();
27993 /* The GNU C library defines this for functions which it implements
27994     to always fail with ENOSYS.  Some functions are actually named
27995     something starting with __ and the normal name is an alias.  */
27996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27997 choke me
27998 #else
27999 char (*f) () = $ac_func;
28000 #endif
28001 #ifdef __cplusplus
28002 }
28003 #endif
28004
28005 int
28006 main ()
28007 {
28008 return f != $ac_func;
28009   ;
28010   return 0;
28011 }
28012 _ACEOF
28013 rm -f conftest.$ac_objext conftest$ac_exeext
28014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28015   (eval $ac_link) 2>conftest.er1
28016   ac_status=$?
28017   grep -v '^ *+' conftest.er1 >conftest.err
28018   rm -f conftest.er1
28019   cat conftest.err >&5
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); } &&
28022          { ac_try='test -z "$ac_c_werror_flag"
28023                          || test ! -s conftest.err'
28024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025   (eval $ac_try) 2>&5
28026   ac_status=$?
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); }; } &&
28029          { ac_try='test -s conftest$ac_exeext'
28030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031   (eval $ac_try) 2>&5
28032   ac_status=$?
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); }; }; then
28035   eval "$as_ac_var=yes"
28036 else
28037   echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28039
28040 eval "$as_ac_var=no"
28041 fi
28042 rm -f conftest.err conftest.$ac_objext \
28043       conftest$ac_exeext conftest.$ac_ext
28044 fi
28045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28047 if test `eval echo '${'$as_ac_var'}'` = yes; then
28048   cat >>confdefs.h <<_ACEOF
28049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28050 _ACEOF
28051  WCSLEN_FOUND=1
28052 fi
28053 done
28054
28055
28056     if test "$WCSLEN_FOUND" = 0; then
28057         if test "$TOOLKIT" = "MSW"; then
28058             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28059 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28060 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28061   echo $ECHO_N "(cached) $ECHO_C" >&6
28062 else
28063   ac_check_lib_save_LIBS=$LIBS
28064 LIBS="-lmsvcrt  $LIBS"
28065 cat >conftest.$ac_ext <<_ACEOF
28066 /* confdefs.h.  */
28067 _ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h.  */
28071
28072 /* Override any gcc2 internal prototype to avoid an error.  */
28073 #ifdef __cplusplus
28074 extern "C"
28075 #endif
28076 /* We use char because int might match the return type of a gcc2
28077    builtin and then its argument prototype would still apply.  */
28078 char wcslen ();
28079 int
28080 main ()
28081 {
28082 wcslen ();
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28089   (eval $ac_link) 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } &&
28096          { ac_try='test -z "$ac_c_werror_flag"
28097                          || test ! -s conftest.err'
28098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28099   (eval $ac_try) 2>&5
28100   ac_status=$?
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); }; } &&
28103          { ac_try='test -s conftest$ac_exeext'
28104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105   (eval $ac_try) 2>&5
28106   ac_status=$?
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); }; }; then
28109   ac_cv_lib_msvcrt_wcslen=yes
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114 ac_cv_lib_msvcrt_wcslen=no
28115 fi
28116 rm -f conftest.err conftest.$ac_objext \
28117       conftest$ac_exeext conftest.$ac_ext
28118 LIBS=$ac_check_lib_save_LIBS
28119 fi
28120 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28121 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28122 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28123   WCHAR_OK=1
28124 fi
28125
28126         else
28127             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28128 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28129 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28130   echo $ECHO_N "(cached) $ECHO_C" >&6
28131 else
28132   ac_check_lib_save_LIBS=$LIBS
28133 LIBS="-lw  $LIBS"
28134 cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h.  */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h.  */
28140
28141 /* Override any gcc2 internal prototype to avoid an error.  */
28142 #ifdef __cplusplus
28143 extern "C"
28144 #endif
28145 /* We use char because int might match the return type of a gcc2
28146    builtin and then its argument prototype would still apply.  */
28147 char wcslen ();
28148 int
28149 main ()
28150 {
28151 wcslen ();
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 rm -f conftest.$ac_objext conftest$ac_exeext
28157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28158   (eval $ac_link) 2>conftest.er1
28159   ac_status=$?
28160   grep -v '^ *+' conftest.er1 >conftest.err
28161   rm -f conftest.er1
28162   cat conftest.err >&5
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); } &&
28165          { ac_try='test -z "$ac_c_werror_flag"
28166                          || test ! -s conftest.err'
28167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28168   (eval $ac_try) 2>&5
28169   ac_status=$?
28170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171   (exit $ac_status); }; } &&
28172          { ac_try='test -s conftest$ac_exeext'
28173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174   (eval $ac_try) 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; }; then
28178   ac_cv_lib_w_wcslen=yes
28179 else
28180   echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28182
28183 ac_cv_lib_w_wcslen=no
28184 fi
28185 rm -f conftest.err conftest.$ac_objext \
28186       conftest$ac_exeext conftest.$ac_ext
28187 LIBS=$ac_check_lib_save_LIBS
28188 fi
28189 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28190 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28191 if test $ac_cv_lib_w_wcslen = yes; then
28192
28193                             WCHAR_LINK=" -lw"
28194                             WCSLEN_FOUND=1
28195
28196 fi
28197
28198         fi
28199     fi
28200
28201     if test "$WCSLEN_FOUND" = 1; then
28202         cat >>confdefs.h <<\_ACEOF
28203 #define HAVE_WCSLEN 1
28204 _ACEOF
28205
28206     fi
28207
28208
28209 for ac_func in wcsrtombs
28210 do
28211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28212 echo "$as_me:$LINENO: checking for $ac_func" >&5
28213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28214 if eval "test \"\${$as_ac_var+set}\" = set"; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   cat >conftest.$ac_ext <<_ACEOF
28218 /* confdefs.h.  */
28219 _ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h.  */
28223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28225 #define $ac_func innocuous_$ac_func
28226
28227 /* System header to define __stub macros and hopefully few prototypes,
28228     which can conflict with char $ac_func (); below.
28229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28230     <limits.h> exists even on freestanding compilers.  */
28231
28232 #ifdef __STDC__
28233 # include <limits.h>
28234 #else
28235 # include <assert.h>
28236 #endif
28237
28238 #undef $ac_func
28239
28240 /* Override any gcc2 internal prototype to avoid an error.  */
28241 #ifdef __cplusplus
28242 extern "C"
28243 {
28244 #endif
28245 /* We use char because int might match the return type of a gcc2
28246    builtin and then its argument prototype would still apply.  */
28247 char $ac_func ();
28248 /* The GNU C library defines this for functions which it implements
28249     to always fail with ENOSYS.  Some functions are actually named
28250     something starting with __ and the normal name is an alias.  */
28251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28252 choke me
28253 #else
28254 char (*f) () = $ac_func;
28255 #endif
28256 #ifdef __cplusplus
28257 }
28258 #endif
28259
28260 int
28261 main ()
28262 {
28263 return f != $ac_func;
28264   ;
28265   return 0;
28266 }
28267 _ACEOF
28268 rm -f conftest.$ac_objext conftest$ac_exeext
28269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270   (eval $ac_link) 2>conftest.er1
28271   ac_status=$?
28272   grep -v '^ *+' conftest.er1 >conftest.err
28273   rm -f conftest.er1
28274   cat conftest.err >&5
28275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); } &&
28277          { ac_try='test -z "$ac_c_werror_flag"
28278                          || test ! -s conftest.err'
28279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280   (eval $ac_try) 2>&5
28281   ac_status=$?
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); }; } &&
28284          { ac_try='test -s conftest$ac_exeext'
28285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286   (eval $ac_try) 2>&5
28287   ac_status=$?
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); }; }; then
28290   eval "$as_ac_var=yes"
28291 else
28292   echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295 eval "$as_ac_var=no"
28296 fi
28297 rm -f conftest.err conftest.$ac_objext \
28298       conftest$ac_exeext conftest.$ac_ext
28299 fi
28300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28302 if test `eval echo '${'$as_ac_var'}'` = yes; then
28303   cat >>confdefs.h <<_ACEOF
28304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28305 _ACEOF
28306
28307 fi
28308 done
28309
28310 else
28311     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28312 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28313 fi
28314
28315
28316
28317 ac_ext=cc
28318 ac_cpp='$CXXCPP $CPPFLAGS'
28319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28322
28323
28324
28325 for ac_func in vsnprintf
28326 do
28327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28328 echo "$as_me:$LINENO: checking for $ac_func" >&5
28329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28330 if eval "test \"\${$as_ac_var+set}\" = set"; then
28331   echo $ECHO_N "(cached) $ECHO_C" >&6
28332 else
28333   cat >conftest.$ac_ext <<_ACEOF
28334 /* confdefs.h.  */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h.  */
28339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28341 #define $ac_func innocuous_$ac_func
28342
28343 /* System header to define __stub macros and hopefully few prototypes,
28344     which can conflict with char $ac_func (); below.
28345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28346     <limits.h> exists even on freestanding compilers.  */
28347
28348 #ifdef __STDC__
28349 # include <limits.h>
28350 #else
28351 # include <assert.h>
28352 #endif
28353
28354 #undef $ac_func
28355
28356 /* Override any gcc2 internal prototype to avoid an error.  */
28357 #ifdef __cplusplus
28358 extern "C"
28359 {
28360 #endif
28361 /* We use char because int might match the return type of a gcc2
28362    builtin and then its argument prototype would still apply.  */
28363 char $ac_func ();
28364 /* The GNU C library defines this for functions which it implements
28365     to always fail with ENOSYS.  Some functions are actually named
28366     something starting with __ and the normal name is an alias.  */
28367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28368 choke me
28369 #else
28370 char (*f) () = $ac_func;
28371 #endif
28372 #ifdef __cplusplus
28373 }
28374 #endif
28375
28376 int
28377 main ()
28378 {
28379 return f != $ac_func;
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28386   (eval $ac_link) 2>conftest.er1
28387   ac_status=$?
28388   grep -v '^ *+' conftest.er1 >conftest.err
28389   rm -f conftest.er1
28390   cat conftest.err >&5
28391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392   (exit $ac_status); } &&
28393          { ac_try='test -z "$ac_cxx_werror_flag"
28394                          || test ! -s conftest.err'
28395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396   (eval $ac_try) 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; } &&
28400          { ac_try='test -s conftest$ac_exeext'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; }; then
28406   eval "$as_ac_var=yes"
28407 else
28408   echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28410
28411 eval "$as_ac_var=no"
28412 fi
28413 rm -f conftest.err conftest.$ac_objext \
28414       conftest$ac_exeext conftest.$ac_ext
28415 fi
28416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28418 if test `eval echo '${'$as_ac_var'}'` = yes; then
28419   cat >>confdefs.h <<_ACEOF
28420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28421 _ACEOF
28422
28423 fi
28424 done
28425
28426
28427 if test "$ac_cv_func_vsnprintf" = "yes"; then
28428         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28429 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28430 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28431   echo $ECHO_N "(cached) $ECHO_C" >&6
28432 else
28433
28434             cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440
28441                     #include <stdio.h>
28442                     #include <stdarg.h>
28443
28444 int
28445 main ()
28446 {
28447
28448                     char *buf;
28449                     va_list ap;
28450                     vsnprintf(buf, 10u, "%s", ap);
28451
28452   ;
28453   return 0;
28454 }
28455 _ACEOF
28456 rm -f conftest.$ac_objext
28457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28458   (eval $ac_compile) 2>conftest.er1
28459   ac_status=$?
28460   grep -v '^ *+' conftest.er1 >conftest.err
28461   rm -f conftest.er1
28462   cat conftest.err >&5
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); } &&
28465          { ac_try='test -z "$ac_cxx_werror_flag"
28466                          || test ! -s conftest.err'
28467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468   (eval $ac_try) 2>&5
28469   ac_status=$?
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); }; } &&
28472          { ac_try='test -s conftest.$ac_objext'
28473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474   (eval $ac_try) 2>&5
28475   ac_status=$?
28476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477   (exit $ac_status); }; }; then
28478   wx_cv_func_vsnprintf_decl=yes
28479 else
28480   echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483 wx_cv_func_vsnprintf_decl=no
28484
28485 fi
28486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28487
28488
28489 fi
28490 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28491 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28492
28493     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28494         cat >>confdefs.h <<\_ACEOF
28495 #define HAVE_VSNPRINTF_DECL 1
28496 _ACEOF
28497
28498     fi
28499 fi
28500
28501 if test "$wxUSE_UNICODE" = yes; then
28502
28503
28504
28505 for ac_func in fputwc wprintf vswprintf
28506 do
28507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28508 echo "$as_me:$LINENO: checking for $ac_func" >&5
28509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28510 if eval "test \"\${$as_ac_var+set}\" = set"; then
28511   echo $ECHO_N "(cached) $ECHO_C" >&6
28512 else
28513   cat >conftest.$ac_ext <<_ACEOF
28514 /* confdefs.h.  */
28515 _ACEOF
28516 cat confdefs.h >>conftest.$ac_ext
28517 cat >>conftest.$ac_ext <<_ACEOF
28518 /* end confdefs.h.  */
28519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28521 #define $ac_func innocuous_$ac_func
28522
28523 /* System header to define __stub macros and hopefully few prototypes,
28524     which can conflict with char $ac_func (); below.
28525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28526     <limits.h> exists even on freestanding compilers.  */
28527
28528 #ifdef __STDC__
28529 # include <limits.h>
28530 #else
28531 # include <assert.h>
28532 #endif
28533
28534 #undef $ac_func
28535
28536 /* Override any gcc2 internal prototype to avoid an error.  */
28537 #ifdef __cplusplus
28538 extern "C"
28539 {
28540 #endif
28541 /* We use char because int might match the return type of a gcc2
28542    builtin and then its argument prototype would still apply.  */
28543 char $ac_func ();
28544 /* The GNU C library defines this for functions which it implements
28545     to always fail with ENOSYS.  Some functions are actually named
28546     something starting with __ and the normal name is an alias.  */
28547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28548 choke me
28549 #else
28550 char (*f) () = $ac_func;
28551 #endif
28552 #ifdef __cplusplus
28553 }
28554 #endif
28555
28556 int
28557 main ()
28558 {
28559 return f != $ac_func;
28560   ;
28561   return 0;
28562 }
28563 _ACEOF
28564 rm -f conftest.$ac_objext conftest$ac_exeext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28566   (eval $ac_link) 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } &&
28573          { ac_try='test -z "$ac_cxx_werror_flag"
28574                          || test ! -s conftest.err'
28575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576   (eval $ac_try) 2>&5
28577   ac_status=$?
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); }; } &&
28580          { ac_try='test -s conftest$ac_exeext'
28581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582   (eval $ac_try) 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; }; then
28586   eval "$as_ac_var=yes"
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591 eval "$as_ac_var=no"
28592 fi
28593 rm -f conftest.err conftest.$ac_objext \
28594       conftest$ac_exeext conftest.$ac_ext
28595 fi
28596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28598 if test `eval echo '${'$as_ac_var'}'` = yes; then
28599   cat >>confdefs.h <<_ACEOF
28600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28601 _ACEOF
28602
28603 fi
28604 done
28605
28606
28607                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28608 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28609     cat >conftest.$ac_ext <<_ACEOF
28610 /* confdefs.h.  */
28611 _ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h.  */
28615 #include <wchar.h>
28616 int
28617 main ()
28618 {
28619 &_vsnwprintf;
28620   ;
28621   return 0;
28622 }
28623 _ACEOF
28624 rm -f conftest.$ac_objext
28625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28626   (eval $ac_compile) 2>conftest.er1
28627   ac_status=$?
28628   grep -v '^ *+' conftest.er1 >conftest.err
28629   rm -f conftest.er1
28630   cat conftest.err >&5
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); } &&
28633          { ac_try='test -z "$ac_cxx_werror_flag"
28634                          || test ! -s conftest.err'
28635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636   (eval $ac_try) 2>&5
28637   ac_status=$?
28638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639   (exit $ac_status); }; } &&
28640          { ac_try='test -s conftest.$ac_objext'
28641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642   (eval $ac_try) 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); }; }; then
28646   echo "$as_me:$LINENO: result: yes" >&5
28647 echo "${ECHO_T}yes" >&6
28648                     cat >>confdefs.h <<\_ACEOF
28649 #define HAVE__VSNWPRINTF 1
28650 _ACEOF
28651
28652 else
28653   echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656 echo "$as_me:$LINENO: result: no" >&5
28657 echo "${ECHO_T}no" >&6
28658 fi
28659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
28660 fi
28661
28662 ac_ext=c
28663 ac_cpp='$CPP $CPPFLAGS'
28664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28667
28668
28669
28670
28671 if test "$TOOLKIT" != "MSW"; then
28672
28673
28674
28675
28676 ac_ext=cc
28677 ac_cpp='$CXXCPP $CPPFLAGS'
28678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28681
28682
28683
28684
28685 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28686 if test "${with_libiconv_prefix+set}" = set; then
28687   withval="$with_libiconv_prefix"
28688
28689     for dir in `echo "$withval" | tr : ' '`; do
28690       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28691       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28692     done
28693
28694 fi;
28695
28696   echo "$as_me:$LINENO: checking for iconv" >&5
28697 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28698 if test "${am_cv_func_iconv+set}" = set; then
28699   echo $ECHO_N "(cached) $ECHO_C" >&6
28700 else
28701
28702     am_cv_func_iconv="no, consider installing GNU libiconv"
28703     am_cv_lib_iconv=no
28704     cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h.  */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h.  */
28710 #include <stdlib.h>
28711 #include <iconv.h>
28712 int
28713 main ()
28714 {
28715 iconv_t cd = iconv_open("","");
28716        iconv(cd,NULL,NULL,NULL,NULL);
28717        iconv_close(cd);
28718   ;
28719   return 0;
28720 }
28721 _ACEOF
28722 rm -f conftest.$ac_objext conftest$ac_exeext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28724   (eval $ac_link) 2>conftest.er1
28725   ac_status=$?
28726   grep -v '^ *+' conftest.er1 >conftest.err
28727   rm -f conftest.er1
28728   cat conftest.err >&5
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); } &&
28731          { ac_try='test -z "$ac_cxx_werror_flag"
28732                          || test ! -s conftest.err'
28733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734   (eval $ac_try) 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; } &&
28738          { ac_try='test -s conftest$ac_exeext'
28739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740   (eval $ac_try) 2>&5
28741   ac_status=$?
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); }; }; then
28744   am_cv_func_iconv=yes
28745 else
28746   echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28748
28749 fi
28750 rm -f conftest.err conftest.$ac_objext \
28751       conftest$ac_exeext conftest.$ac_ext
28752     if test "$am_cv_func_iconv" != yes; then
28753       am_save_LIBS="$LIBS"
28754       LIBS="$LIBS -liconv"
28755       cat >conftest.$ac_ext <<_ACEOF
28756 /* confdefs.h.  */
28757 _ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h.  */
28761 #include <stdlib.h>
28762 #include <iconv.h>
28763 int
28764 main ()
28765 {
28766 iconv_t cd = iconv_open("","");
28767          iconv(cd,NULL,NULL,NULL,NULL);
28768          iconv_close(cd);
28769   ;
28770   return 0;
28771 }
28772 _ACEOF
28773 rm -f conftest.$ac_objext conftest$ac_exeext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28775   (eval $ac_link) 2>conftest.er1
28776   ac_status=$?
28777   grep -v '^ *+' conftest.er1 >conftest.err
28778   rm -f conftest.er1
28779   cat conftest.err >&5
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); } &&
28782          { ac_try='test -z "$ac_cxx_werror_flag"
28783                          || test ! -s conftest.err'
28784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785   (eval $ac_try) 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; } &&
28789          { ac_try='test -s conftest$ac_exeext'
28790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791   (eval $ac_try) 2>&5
28792   ac_status=$?
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); }; }; then
28795   am_cv_lib_iconv=yes
28796         am_cv_func_iconv=yes
28797 else
28798   echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28800
28801 fi
28802 rm -f conftest.err conftest.$ac_objext \
28803       conftest$ac_exeext conftest.$ac_ext
28804       LIBS="$am_save_LIBS"
28805     fi
28806
28807 fi
28808 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28809 echo "${ECHO_T}$am_cv_func_iconv" >&6
28810   if test "$am_cv_func_iconv" = yes; then
28811
28812 cat >>confdefs.h <<\_ACEOF
28813 #define HAVE_ICONV 1
28814 _ACEOF
28815
28816     echo "$as_me:$LINENO: checking if iconv needs const" >&5
28817 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28818 if test "${wx_cv_func_iconv_const+set}" = set; then
28819   echo $ECHO_N "(cached) $ECHO_C" >&6
28820 else
28821   cat >conftest.$ac_ext <<_ACEOF
28822 /* confdefs.h.  */
28823 _ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h.  */
28827
28828 #include <stdlib.h>
28829 #include <iconv.h>
28830 extern
28831 #ifdef __cplusplus
28832 "C"
28833 #endif
28834 #if defined(__STDC__) || defined(__cplusplus)
28835 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28836 #else
28837 size_t iconv();
28838 #endif
28839
28840 int
28841 main ()
28842 {
28843
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 rm -f conftest.$ac_objext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28850   (eval $ac_compile) 2>conftest.er1
28851   ac_status=$?
28852   grep -v '^ *+' conftest.er1 >conftest.err
28853   rm -f conftest.er1
28854   cat conftest.err >&5
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); } &&
28857          { ac_try='test -z "$ac_cxx_werror_flag"
28858                          || test ! -s conftest.err'
28859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860   (eval $ac_try) 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; } &&
28864          { ac_try='test -s conftest.$ac_objext'
28865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866   (eval $ac_try) 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; }; then
28870   wx_cv_func_iconv_const="no"
28871 else
28872   echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875 wx_cv_func_iconv_const="yes"
28876
28877 fi
28878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28879
28880 fi
28881 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
28882 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
28883
28884     iconv_const=
28885     if test "x$wx_cv_func_iconv_const" = "xyes"; then
28886         iconv_const="const"
28887     fi
28888
28889
28890 cat >>confdefs.h <<_ACEOF
28891 #define ICONV_CONST $iconv_const
28892 _ACEOF
28893
28894   fi
28895   LIBICONV=
28896   if test "$am_cv_lib_iconv" = yes; then
28897     LIBICONV="-liconv"
28898   fi
28899
28900
28901 LIBS="$LIBICONV $LIBS"
28902 ac_ext=c
28903 ac_cpp='$CPP $CPPFLAGS'
28904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28907
28908
28909 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
28910
28911 for ac_func in sigaction
28912 do
28913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28914 echo "$as_me:$LINENO: checking for $ac_func" >&5
28915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28916 if eval "test \"\${$as_ac_var+set}\" = set"; then
28917   echo $ECHO_N "(cached) $ECHO_C" >&6
28918 else
28919   cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h.  */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h.  */
28925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28927 #define $ac_func innocuous_$ac_func
28928
28929 /* System header to define __stub macros and hopefully few prototypes,
28930     which can conflict with char $ac_func (); below.
28931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28932     <limits.h> exists even on freestanding compilers.  */
28933
28934 #ifdef __STDC__
28935 # include <limits.h>
28936 #else
28937 # include <assert.h>
28938 #endif
28939
28940 #undef $ac_func
28941
28942 /* Override any gcc2 internal prototype to avoid an error.  */
28943 #ifdef __cplusplus
28944 extern "C"
28945 {
28946 #endif
28947 /* We use char because int might match the return type of a gcc2
28948    builtin and then its argument prototype would still apply.  */
28949 char $ac_func ();
28950 /* The GNU C library defines this for functions which it implements
28951     to always fail with ENOSYS.  Some functions are actually named
28952     something starting with __ and the normal name is an alias.  */
28953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28954 choke me
28955 #else
28956 char (*f) () = $ac_func;
28957 #endif
28958 #ifdef __cplusplus
28959 }
28960 #endif
28961
28962 int
28963 main ()
28964 {
28965 return f != $ac_func;
28966   ;
28967   return 0;
28968 }
28969 _ACEOF
28970 rm -f conftest.$ac_objext conftest$ac_exeext
28971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28972   (eval $ac_link) 2>conftest.er1
28973   ac_status=$?
28974   grep -v '^ *+' conftest.er1 >conftest.err
28975   rm -f conftest.er1
28976   cat conftest.err >&5
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); } &&
28979          { ac_try='test -z "$ac_c_werror_flag"
28980                          || test ! -s conftest.err'
28981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982   (eval $ac_try) 2>&5
28983   ac_status=$?
28984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985   (exit $ac_status); }; } &&
28986          { ac_try='test -s conftest$ac_exeext'
28987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988   (eval $ac_try) 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); }; }; then
28992   eval "$as_ac_var=yes"
28993 else
28994   echo "$as_me: failed program was:" >&5
28995 sed 's/^/| /' conftest.$ac_ext >&5
28996
28997 eval "$as_ac_var=no"
28998 fi
28999 rm -f conftest.err conftest.$ac_objext \
29000       conftest$ac_exeext conftest.$ac_ext
29001 fi
29002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29004 if test `eval echo '${'$as_ac_var'}'` = yes; then
29005   cat >>confdefs.h <<_ACEOF
29006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29007 _ACEOF
29008
29009 fi
29010 done
29011
29012
29013     if test "$ac_cv_func_sigaction" = "no"; then
29014         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29015 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29016         wxUSE_ON_FATAL_EXCEPTION=no
29017     fi
29018
29019     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29020
29021
29022       ac_ext=cc
29023 ac_cpp='$CXXCPP $CPPFLAGS'
29024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29027
29028
29029       echo "$as_me:$LINENO: checking for sa_handler type" >&5
29030 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29031 if test "${wx_cv_type_sa_handler+set}" = set; then
29032   echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034
29035         cat >conftest.$ac_ext <<_ACEOF
29036 /* confdefs.h.  */
29037 _ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h.  */
29041 #include <signal.h>
29042 int
29043 main ()
29044 {
29045
29046                         extern void testSigHandler(int);
29047
29048                         struct sigaction sa;
29049                         sa.sa_handler = testSigHandler;
29050
29051   ;
29052   return 0;
29053 }
29054 _ACEOF
29055 rm -f conftest.$ac_objext
29056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29057   (eval $ac_compile) 2>conftest.er1
29058   ac_status=$?
29059   grep -v '^ *+' conftest.er1 >conftest.err
29060   rm -f conftest.er1
29061   cat conftest.err >&5
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); } &&
29064          { ac_try='test -z "$ac_cxx_werror_flag"
29065                          || test ! -s conftest.err'
29066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067   (eval $ac_try) 2>&5
29068   ac_status=$?
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); }; } &&
29071          { ac_try='test -s conftest.$ac_objext'
29072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073   (eval $ac_try) 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); }; }; then
29077
29078                         wx_cv_type_sa_handler=int
29079
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084
29085                         wx_cv_type_sa_handler=void
29086
29087 fi
29088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29089
29090 fi
29091 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29092 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29093
29094       ac_ext=c
29095 ac_cpp='$CPP $CPPFLAGS'
29096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29099
29100
29101       cat >>confdefs.h <<_ACEOF
29102 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29103 _ACEOF
29104
29105     fi
29106 fi
29107
29108
29109
29110 for ac_func in mkstemp mktemp
29111 do
29112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29113 echo "$as_me:$LINENO: checking for $ac_func" >&5
29114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29115 if eval "test \"\${$as_ac_var+set}\" = set"; then
29116   echo $ECHO_N "(cached) $ECHO_C" >&6
29117 else
29118   cat >conftest.$ac_ext <<_ACEOF
29119 /* confdefs.h.  */
29120 _ACEOF
29121 cat confdefs.h >>conftest.$ac_ext
29122 cat >>conftest.$ac_ext <<_ACEOF
29123 /* end confdefs.h.  */
29124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29126 #define $ac_func innocuous_$ac_func
29127
29128 /* System header to define __stub macros and hopefully few prototypes,
29129     which can conflict with char $ac_func (); below.
29130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29131     <limits.h> exists even on freestanding compilers.  */
29132
29133 #ifdef __STDC__
29134 # include <limits.h>
29135 #else
29136 # include <assert.h>
29137 #endif
29138
29139 #undef $ac_func
29140
29141 /* Override any gcc2 internal prototype to avoid an error.  */
29142 #ifdef __cplusplus
29143 extern "C"
29144 {
29145 #endif
29146 /* We use char because int might match the return type of a gcc2
29147    builtin and then its argument prototype would still apply.  */
29148 char $ac_func ();
29149 /* The GNU C library defines this for functions which it implements
29150     to always fail with ENOSYS.  Some functions are actually named
29151     something starting with __ and the normal name is an alias.  */
29152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29153 choke me
29154 #else
29155 char (*f) () = $ac_func;
29156 #endif
29157 #ifdef __cplusplus
29158 }
29159 #endif
29160
29161 int
29162 main ()
29163 {
29164 return f != $ac_func;
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 rm -f conftest.$ac_objext conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171   (eval $ac_link) 2>conftest.er1
29172   ac_status=$?
29173   grep -v '^ *+' conftest.er1 >conftest.err
29174   rm -f conftest.er1
29175   cat conftest.err >&5
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); } &&
29178          { ac_try='test -z "$ac_c_werror_flag"
29179                          || test ! -s conftest.err'
29180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181   (eval $ac_try) 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; } &&
29185          { ac_try='test -s conftest$ac_exeext'
29186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187   (eval $ac_try) 2>&5
29188   ac_status=$?
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); }; }; then
29191   eval "$as_ac_var=yes"
29192 else
29193   echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29195
29196 eval "$as_ac_var=no"
29197 fi
29198 rm -f conftest.err conftest.$ac_objext \
29199       conftest$ac_exeext conftest.$ac_ext
29200 fi
29201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29203 if test `eval echo '${'$as_ac_var'}'` = yes; then
29204   cat >>confdefs.h <<_ACEOF
29205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206 _ACEOF
29207  break
29208 fi
29209 done
29210
29211
29212 echo "$as_me:$LINENO: checking for statfs" >&5
29213 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29214 if test "${wx_cv_func_statfs+set}" = set; then
29215   echo $ECHO_N "(cached) $ECHO_C" >&6
29216 else
29217   cat >conftest.$ac_ext <<_ACEOF
29218 /* confdefs.h.  */
29219 _ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h.  */
29223
29224              #if defined(__BSD__)
29225                #include <sys/param.h>
29226                #include <sys/mount.h>
29227              #else
29228                #include <sys/vfs.h>
29229              #endif
29230
29231 int
29232 main ()
29233 {
29234
29235              long l;
29236              struct statfs fs;
29237              statfs("/", &fs);
29238              l = fs.f_bsize;
29239              l += fs.f_blocks;
29240              l += fs.f_bavail;
29241
29242   ;
29243   return 0;
29244 }
29245 _ACEOF
29246 rm -f conftest.$ac_objext
29247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29248   (eval $ac_compile) 2>conftest.er1
29249   ac_status=$?
29250   grep -v '^ *+' conftest.er1 >conftest.err
29251   rm -f conftest.er1
29252   cat conftest.err >&5
29253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254   (exit $ac_status); } &&
29255          { ac_try='test -z "$ac_c_werror_flag"
29256                          || test ! -s conftest.err'
29257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258   (eval $ac_try) 2>&5
29259   ac_status=$?
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); }; } &&
29262          { ac_try='test -s conftest.$ac_objext'
29263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264   (eval $ac_try) 2>&5
29265   ac_status=$?
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); }; }; then
29268
29269              wx_cv_func_statfs=yes
29270
29271 else
29272   echo "$as_me: failed program was:" >&5
29273 sed 's/^/| /' conftest.$ac_ext >&5
29274
29275
29276              wx_cv_func_statfs=no
29277
29278
29279 fi
29280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29281
29282 fi
29283 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29284 echo "${ECHO_T}$wx_cv_func_statfs" >&6
29285
29286 if test "$wx_cv_func_statfs" = "yes"; then
29287     wx_cv_type_statvfs_t="struct statfs"
29288     cat >>confdefs.h <<\_ACEOF
29289 #define HAVE_STATFS 1
29290 _ACEOF
29291
29292 else
29293     echo "$as_me:$LINENO: checking for statvfs" >&5
29294 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29295 if test "${wx_cv_func_statvfs+set}" = set; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298   cat >conftest.$ac_ext <<_ACEOF
29299 /* confdefs.h.  */
29300 _ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h.  */
29304
29305                 #include <stddef.h>
29306                 #include <sys/statvfs.h>
29307
29308 int
29309 main ()
29310 {
29311
29312                 statvfs("/", NULL);
29313
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest.$ac_objext
29319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29320   (eval $ac_compile) 2>conftest.er1
29321   ac_status=$?
29322   grep -v '^ *+' conftest.er1 >conftest.err
29323   rm -f conftest.er1
29324   cat conftest.err >&5
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); } &&
29327          { ac_try='test -z "$ac_c_werror_flag"
29328                          || test ! -s conftest.err'
29329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330   (eval $ac_try) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); }; } &&
29334          { ac_try='test -s conftest.$ac_objext'
29335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336   (eval $ac_try) 2>&5
29337   ac_status=$?
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); }; }; then
29340   wx_cv_func_statvfs=yes
29341 else
29342   echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29344
29345 wx_cv_func_statvfs=no
29346
29347 fi
29348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29349
29350 fi
29351 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29352 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29353
29354     if test "$wx_cv_func_statvfs" = "yes"; then
29355
29356
29357         ac_ext=cc
29358 ac_cpp='$CXXCPP $CPPFLAGS'
29359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29362
29363
29364         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29365 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29366 if test "${wx_cv_type_statvfs_t+set}" = set; then
29367   echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369   cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h.  */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h.  */
29375
29376                     #include <sys/statvfs.h>
29377
29378 int
29379 main ()
29380 {
29381
29382                     long l;
29383                     statvfs_t fs;
29384                     statvfs("/", &fs);
29385                     l = fs.f_bsize;
29386                     l += fs.f_blocks;
29387                     l += fs.f_bavail;
29388
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29395   (eval $ac_compile) 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_cxx_werror_flag"
29403                          || test ! -s conftest.err'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; } &&
29409          { ac_try='test -s conftest.$ac_objext'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; }; then
29415   wx_cv_type_statvfs_t=statvfs_t
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420
29421                     cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h.  */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h.  */
29427
29428                             #include <sys/statvfs.h>
29429
29430 int
29431 main ()
29432 {
29433
29434                             long l;
29435                             struct statvfs fs;
29436                             statvfs("/", &fs);
29437                             l = fs.f_bsize;
29438                             l += fs.f_blocks;
29439                             l += fs.f_bavail;
29440
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29447   (eval $ac_compile) 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } &&
29454          { ac_try='test -z "$ac_cxx_werror_flag"
29455                          || test ! -s conftest.err'
29456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457   (eval $ac_try) 2>&5
29458   ac_status=$?
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); }; } &&
29461          { ac_try='test -s conftest.$ac_objext'
29462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463   (eval $ac_try) 2>&5
29464   ac_status=$?
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); }; }; then
29467   wx_cv_type_statvfs_t="struct statvfs"
29468 else
29469   echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29471
29472 wx_cv_type_statvfs_t="unknown"
29473
29474 fi
29475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29476
29477
29478 fi
29479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29480
29481 fi
29482 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29483 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29484
29485         ac_ext=c
29486 ac_cpp='$CPP $CPPFLAGS'
29487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29490
29491
29492         if test "$wx_cv_type_statvfs_t" != "unknown"; then
29493             cat >>confdefs.h <<\_ACEOF
29494 #define HAVE_STATVFS 1
29495 _ACEOF
29496
29497         fi
29498     else
29499                 wx_cv_type_statvfs_t="unknown"
29500     fi
29501 fi
29502
29503 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29504     cat >>confdefs.h <<_ACEOF
29505 #define WX_STATFS_T $wx_cv_type_statvfs_t
29506 _ACEOF
29507
29508 else
29509     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29510 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
29511 fi
29512
29513 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29514
29515
29516 for ac_func in fcntl flock
29517 do
29518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29519 echo "$as_me:$LINENO: checking for $ac_func" >&5
29520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29521 if eval "test \"\${$as_ac_var+set}\" = set"; then
29522   echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524   cat >conftest.$ac_ext <<_ACEOF
29525 /* confdefs.h.  */
29526 _ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h.  */
29530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29532 #define $ac_func innocuous_$ac_func
29533
29534 /* System header to define __stub macros and hopefully few prototypes,
29535     which can conflict with char $ac_func (); below.
29536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29537     <limits.h> exists even on freestanding compilers.  */
29538
29539 #ifdef __STDC__
29540 # include <limits.h>
29541 #else
29542 # include <assert.h>
29543 #endif
29544
29545 #undef $ac_func
29546
29547 /* Override any gcc2 internal prototype to avoid an error.  */
29548 #ifdef __cplusplus
29549 extern "C"
29550 {
29551 #endif
29552 /* We use char because int might match the return type of a gcc2
29553    builtin and then its argument prototype would still apply.  */
29554 char $ac_func ();
29555 /* The GNU C library defines this for functions which it implements
29556     to always fail with ENOSYS.  Some functions are actually named
29557     something starting with __ and the normal name is an alias.  */
29558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29559 choke me
29560 #else
29561 char (*f) () = $ac_func;
29562 #endif
29563 #ifdef __cplusplus
29564 }
29565 #endif
29566
29567 int
29568 main ()
29569 {
29570 return f != $ac_func;
29571   ;
29572   return 0;
29573 }
29574 _ACEOF
29575 rm -f conftest.$ac_objext conftest$ac_exeext
29576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29577   (eval $ac_link) 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } &&
29584          { ac_try='test -z "$ac_c_werror_flag"
29585                          || test ! -s conftest.err'
29586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29587   (eval $ac_try) 2>&5
29588   ac_status=$?
29589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590   (exit $ac_status); }; } &&
29591          { ac_try='test -s conftest$ac_exeext'
29592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593   (eval $ac_try) 2>&5
29594   ac_status=$?
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); }; }; then
29597   eval "$as_ac_var=yes"
29598 else
29599   echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29601
29602 eval "$as_ac_var=no"
29603 fi
29604 rm -f conftest.err conftest.$ac_objext \
29605       conftest$ac_exeext conftest.$ac_ext
29606 fi
29607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29609 if test `eval echo '${'$as_ac_var'}'` = yes; then
29610   cat >>confdefs.h <<_ACEOF
29611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29612 _ACEOF
29613  break
29614 fi
29615 done
29616
29617
29618     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
29619         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29620 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
29621         wxUSE_SNGLINST_CHECKER=no
29622     fi
29623 fi
29624
29625
29626 for ac_func in timegm
29627 do
29628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629 echo "$as_me:$LINENO: checking for $ac_func" >&5
29630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29631 if eval "test \"\${$as_ac_var+set}\" = set"; then
29632   echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634   cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h.  */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h.  */
29640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29642 #define $ac_func innocuous_$ac_func
29643
29644 /* System header to define __stub macros and hopefully few prototypes,
29645     which can conflict with char $ac_func (); below.
29646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29647     <limits.h> exists even on freestanding compilers.  */
29648
29649 #ifdef __STDC__
29650 # include <limits.h>
29651 #else
29652 # include <assert.h>
29653 #endif
29654
29655 #undef $ac_func
29656
29657 /* Override any gcc2 internal prototype to avoid an error.  */
29658 #ifdef __cplusplus
29659 extern "C"
29660 {
29661 #endif
29662 /* We use char because int might match the return type of a gcc2
29663    builtin and then its argument prototype would still apply.  */
29664 char $ac_func ();
29665 /* The GNU C library defines this for functions which it implements
29666     to always fail with ENOSYS.  Some functions are actually named
29667     something starting with __ and the normal name is an alias.  */
29668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29669 choke me
29670 #else
29671 char (*f) () = $ac_func;
29672 #endif
29673 #ifdef __cplusplus
29674 }
29675 #endif
29676
29677 int
29678 main ()
29679 {
29680 return f != $ac_func;
29681   ;
29682   return 0;
29683 }
29684 _ACEOF
29685 rm -f conftest.$ac_objext conftest$ac_exeext
29686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29687   (eval $ac_link) 2>conftest.er1
29688   ac_status=$?
29689   grep -v '^ *+' conftest.er1 >conftest.err
29690   rm -f conftest.er1
29691   cat conftest.err >&5
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); } &&
29694          { ac_try='test -z "$ac_c_werror_flag"
29695                          || test ! -s conftest.err'
29696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697   (eval $ac_try) 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; } &&
29701          { ac_try='test -s conftest$ac_exeext'
29702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703   (eval $ac_try) 2>&5
29704   ac_status=$?
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); }; }; then
29707   eval "$as_ac_var=yes"
29708 else
29709   echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29711
29712 eval "$as_ac_var=no"
29713 fi
29714 rm -f conftest.err conftest.$ac_objext \
29715       conftest$ac_exeext conftest.$ac_ext
29716 fi
29717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29719 if test `eval echo '${'$as_ac_var'}'` = yes; then
29720   cat >>confdefs.h <<_ACEOF
29721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29722 _ACEOF
29723
29724 fi
29725 done
29726
29727
29728
29729
29730 for ac_func in putenv setenv
29731 do
29732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29733 echo "$as_me:$LINENO: checking for $ac_func" >&5
29734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29735 if eval "test \"\${$as_ac_var+set}\" = set"; then
29736   echo $ECHO_N "(cached) $ECHO_C" >&6
29737 else
29738   cat >conftest.$ac_ext <<_ACEOF
29739 /* confdefs.h.  */
29740 _ACEOF
29741 cat confdefs.h >>conftest.$ac_ext
29742 cat >>conftest.$ac_ext <<_ACEOF
29743 /* end confdefs.h.  */
29744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29746 #define $ac_func innocuous_$ac_func
29747
29748 /* System header to define __stub macros and hopefully few prototypes,
29749     which can conflict with char $ac_func (); below.
29750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29751     <limits.h> exists even on freestanding compilers.  */
29752
29753 #ifdef __STDC__
29754 # include <limits.h>
29755 #else
29756 # include <assert.h>
29757 #endif
29758
29759 #undef $ac_func
29760
29761 /* Override any gcc2 internal prototype to avoid an error.  */
29762 #ifdef __cplusplus
29763 extern "C"
29764 {
29765 #endif
29766 /* We use char because int might match the return type of a gcc2
29767    builtin and then its argument prototype would still apply.  */
29768 char $ac_func ();
29769 /* The GNU C library defines this for functions which it implements
29770     to always fail with ENOSYS.  Some functions are actually named
29771     something starting with __ and the normal name is an alias.  */
29772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29773 choke me
29774 #else
29775 char (*f) () = $ac_func;
29776 #endif
29777 #ifdef __cplusplus
29778 }
29779 #endif
29780
29781 int
29782 main ()
29783 {
29784 return f != $ac_func;
29785   ;
29786   return 0;
29787 }
29788 _ACEOF
29789 rm -f conftest.$ac_objext conftest$ac_exeext
29790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29791   (eval $ac_link) 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } &&
29798          { ac_try='test -z "$ac_c_werror_flag"
29799                          || test ! -s conftest.err'
29800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801   (eval $ac_try) 2>&5
29802   ac_status=$?
29803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804   (exit $ac_status); }; } &&
29805          { ac_try='test -s conftest$ac_exeext'
29806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29807   (eval $ac_try) 2>&5
29808   ac_status=$?
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); }; }; then
29811   eval "$as_ac_var=yes"
29812 else
29813   echo "$as_me: failed program was:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29815
29816 eval "$as_ac_var=no"
29817 fi
29818 rm -f conftest.err conftest.$ac_objext \
29819       conftest$ac_exeext conftest.$ac_ext
29820 fi
29821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29823 if test `eval echo '${'$as_ac_var'}'` = yes; then
29824   cat >>confdefs.h <<_ACEOF
29825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29826 _ACEOF
29827  break
29828 fi
29829 done
29830
29831
29832 HAVE_SOME_SLEEP_FUNC=0
29833 if test "$USE_BEOS" = 1; then
29834             cat >>confdefs.h <<\_ACEOF
29835 #define HAVE_SLEEP 1
29836 _ACEOF
29837
29838     HAVE_SOME_SLEEP_FUNC=1
29839 fi
29840
29841 if test "$USE_DARWIN" = 1; then
29842             cat >>confdefs.h <<\_ACEOF
29843 #define HAVE_USLEEP 1
29844 _ACEOF
29845
29846     HAVE_SOME_SLEEP_FUNC=1
29847 fi
29848
29849 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29850         POSIX4_LINK=
29851
29852 for ac_func in nanosleep
29853 do
29854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29855 echo "$as_me:$LINENO: checking for $ac_func" >&5
29856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29857 if eval "test \"\${$as_ac_var+set}\" = set"; then
29858   echo $ECHO_N "(cached) $ECHO_C" >&6
29859 else
29860   cat >conftest.$ac_ext <<_ACEOF
29861 /* confdefs.h.  */
29862 _ACEOF
29863 cat confdefs.h >>conftest.$ac_ext
29864 cat >>conftest.$ac_ext <<_ACEOF
29865 /* end confdefs.h.  */
29866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29868 #define $ac_func innocuous_$ac_func
29869
29870 /* System header to define __stub macros and hopefully few prototypes,
29871     which can conflict with char $ac_func (); below.
29872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29873     <limits.h> exists even on freestanding compilers.  */
29874
29875 #ifdef __STDC__
29876 # include <limits.h>
29877 #else
29878 # include <assert.h>
29879 #endif
29880
29881 #undef $ac_func
29882
29883 /* Override any gcc2 internal prototype to avoid an error.  */
29884 #ifdef __cplusplus
29885 extern "C"
29886 {
29887 #endif
29888 /* We use char because int might match the return type of a gcc2
29889    builtin and then its argument prototype would still apply.  */
29890 char $ac_func ();
29891 /* The GNU C library defines this for functions which it implements
29892     to always fail with ENOSYS.  Some functions are actually named
29893     something starting with __ and the normal name is an alias.  */
29894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29895 choke me
29896 #else
29897 char (*f) () = $ac_func;
29898 #endif
29899 #ifdef __cplusplus
29900 }
29901 #endif
29902
29903 int
29904 main ()
29905 {
29906 return f != $ac_func;
29907   ;
29908   return 0;
29909 }
29910 _ACEOF
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913   (eval $ac_link) 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } &&
29920          { ac_try='test -z "$ac_c_werror_flag"
29921                          || test ! -s conftest.err'
29922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923   (eval $ac_try) 2>&5
29924   ac_status=$?
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); }; } &&
29927          { ac_try='test -s conftest$ac_exeext'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; }; then
29933   eval "$as_ac_var=yes"
29934 else
29935   echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.$ac_ext >&5
29937
29938 eval "$as_ac_var=no"
29939 fi
29940 rm -f conftest.err conftest.$ac_objext \
29941       conftest$ac_exeext conftest.$ac_ext
29942 fi
29943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29945 if test `eval echo '${'$as_ac_var'}'` = yes; then
29946   cat >>confdefs.h <<_ACEOF
29947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29948 _ACEOF
29949  cat >>confdefs.h <<\_ACEOF
29950 #define HAVE_NANOSLEEP 1
29951 _ACEOF
29952
29953 else
29954
29955             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
29956 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
29957 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lposix4  $LIBS"
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h.  */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h.  */
29968
29969 /* Override any gcc2 internal prototype to avoid an error.  */
29970 #ifdef __cplusplus
29971 extern "C"
29972 #endif
29973 /* We use char because int might match the return type of a gcc2
29974    builtin and then its argument prototype would still apply.  */
29975 char nanosleep ();
29976 int
29977 main ()
29978 {
29979 nanosleep ();
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986   (eval $ac_link) 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag"
29994                          || test ! -s conftest.err'
29995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996   (eval $ac_try) 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; } &&
30000          { ac_try='test -s conftest$ac_exeext'
30001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002   (eval $ac_try) 2>&5
30003   ac_status=$?
30004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005   (exit $ac_status); }; }; then
30006   ac_cv_lib_posix4_nanosleep=yes
30007 else
30008   echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30010
30011 ac_cv_lib_posix4_nanosleep=no
30012 fi
30013 rm -f conftest.err conftest.$ac_objext \
30014       conftest$ac_exeext conftest.$ac_ext
30015 LIBS=$ac_check_lib_save_LIBS
30016 fi
30017 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30018 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30019 if test $ac_cv_lib_posix4_nanosleep = yes; then
30020
30021                     cat >>confdefs.h <<\_ACEOF
30022 #define HAVE_NANOSLEEP 1
30023 _ACEOF
30024
30025                     POSIX4_LINK=" -lposix4"
30026
30027 else
30028
30029
30030 for ac_func in usleep
30031 do
30032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30033 echo "$as_me:$LINENO: checking for $ac_func" >&5
30034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30035 if eval "test \"\${$as_ac_var+set}\" = set"; then
30036   echo $ECHO_N "(cached) $ECHO_C" >&6
30037 else
30038   cat >conftest.$ac_ext <<_ACEOF
30039 /* confdefs.h.  */
30040 _ACEOF
30041 cat confdefs.h >>conftest.$ac_ext
30042 cat >>conftest.$ac_ext <<_ACEOF
30043 /* end confdefs.h.  */
30044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30046 #define $ac_func innocuous_$ac_func
30047
30048 /* System header to define __stub macros and hopefully few prototypes,
30049     which can conflict with char $ac_func (); below.
30050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30051     <limits.h> exists even on freestanding compilers.  */
30052
30053 #ifdef __STDC__
30054 # include <limits.h>
30055 #else
30056 # include <assert.h>
30057 #endif
30058
30059 #undef $ac_func
30060
30061 /* Override any gcc2 internal prototype to avoid an error.  */
30062 #ifdef __cplusplus
30063 extern "C"
30064 {
30065 #endif
30066 /* We use char because int might match the return type of a gcc2
30067    builtin and then its argument prototype would still apply.  */
30068 char $ac_func ();
30069 /* The GNU C library defines this for functions which it implements
30070     to always fail with ENOSYS.  Some functions are actually named
30071     something starting with __ and the normal name is an alias.  */
30072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30073 choke me
30074 #else
30075 char (*f) () = $ac_func;
30076 #endif
30077 #ifdef __cplusplus
30078 }
30079 #endif
30080
30081 int
30082 main ()
30083 {
30084 return f != $ac_func;
30085   ;
30086   return 0;
30087 }
30088 _ACEOF
30089 rm -f conftest.$ac_objext conftest$ac_exeext
30090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30091   (eval $ac_link) 2>conftest.er1
30092   ac_status=$?
30093   grep -v '^ *+' conftest.er1 >conftest.err
30094   rm -f conftest.er1
30095   cat conftest.err >&5
30096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097   (exit $ac_status); } &&
30098          { ac_try='test -z "$ac_c_werror_flag"
30099                          || test ! -s conftest.err'
30100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101   (eval $ac_try) 2>&5
30102   ac_status=$?
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); }; } &&
30105          { ac_try='test -s conftest$ac_exeext'
30106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107   (eval $ac_try) 2>&5
30108   ac_status=$?
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); }; }; then
30111   eval "$as_ac_var=yes"
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116 eval "$as_ac_var=no"
30117 fi
30118 rm -f conftest.err conftest.$ac_objext \
30119       conftest$ac_exeext conftest.$ac_ext
30120 fi
30121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30123 if test `eval echo '${'$as_ac_var'}'` = yes; then
30124   cat >>confdefs.h <<_ACEOF
30125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30126 _ACEOF
30127  cat >>confdefs.h <<\_ACEOF
30128 #define HAVE_USLEEP 1
30129 _ACEOF
30130
30131 else
30132   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30133 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30134
30135 fi
30136 done
30137
30138
30139
30140 fi
30141
30142
30143
30144 fi
30145 done
30146
30147 fi
30148
30149
30150
30151 for ac_func in uname gethostname
30152 do
30153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30154 echo "$as_me:$LINENO: checking for $ac_func" >&5
30155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30156 if eval "test \"\${$as_ac_var+set}\" = set"; then
30157   echo $ECHO_N "(cached) $ECHO_C" >&6
30158 else
30159   cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30167 #define $ac_func innocuous_$ac_func
30168
30169 /* System header to define __stub macros and hopefully few prototypes,
30170     which can conflict with char $ac_func (); below.
30171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30172     <limits.h> exists even on freestanding compilers.  */
30173
30174 #ifdef __STDC__
30175 # include <limits.h>
30176 #else
30177 # include <assert.h>
30178 #endif
30179
30180 #undef $ac_func
30181
30182 /* Override any gcc2 internal prototype to avoid an error.  */
30183 #ifdef __cplusplus
30184 extern "C"
30185 {
30186 #endif
30187 /* We use char because int might match the return type of a gcc2
30188    builtin and then its argument prototype would still apply.  */
30189 char $ac_func ();
30190 /* The GNU C library defines this for functions which it implements
30191     to always fail with ENOSYS.  Some functions are actually named
30192     something starting with __ and the normal name is an alias.  */
30193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30194 choke me
30195 #else
30196 char (*f) () = $ac_func;
30197 #endif
30198 #ifdef __cplusplus
30199 }
30200 #endif
30201
30202 int
30203 main ()
30204 {
30205 return f != $ac_func;
30206   ;
30207   return 0;
30208 }
30209 _ACEOF
30210 rm -f conftest.$ac_objext conftest$ac_exeext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30212   (eval $ac_link) 2>conftest.er1
30213   ac_status=$?
30214   grep -v '^ *+' conftest.er1 >conftest.err
30215   rm -f conftest.er1
30216   cat conftest.err >&5
30217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218   (exit $ac_status); } &&
30219          { ac_try='test -z "$ac_c_werror_flag"
30220                          || test ! -s conftest.err'
30221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222   (eval $ac_try) 2>&5
30223   ac_status=$?
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); }; } &&
30226          { ac_try='test -s conftest$ac_exeext'
30227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228   (eval $ac_try) 2>&5
30229   ac_status=$?
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); }; }; then
30232   eval "$as_ac_var=yes"
30233 else
30234   echo "$as_me: failed program was:" >&5
30235 sed 's/^/| /' conftest.$ac_ext >&5
30236
30237 eval "$as_ac_var=no"
30238 fi
30239 rm -f conftest.err conftest.$ac_objext \
30240       conftest$ac_exeext conftest.$ac_ext
30241 fi
30242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30244 if test `eval echo '${'$as_ac_var'}'` = yes; then
30245   cat >>confdefs.h <<_ACEOF
30246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30247 _ACEOF
30248  break
30249 fi
30250 done
30251
30252
30253
30254
30255 ac_ext=cc
30256 ac_cpp='$CXXCPP $CPPFLAGS'
30257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30260
30261
30262
30263 for ac_func in strtok_r
30264 do
30265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30266 echo "$as_me:$LINENO: checking for $ac_func" >&5
30267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30268 if eval "test \"\${$as_ac_var+set}\" = set"; then
30269   echo $ECHO_N "(cached) $ECHO_C" >&6
30270 else
30271   cat >conftest.$ac_ext <<_ACEOF
30272 /* confdefs.h.  */
30273 _ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h.  */
30277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30279 #define $ac_func innocuous_$ac_func
30280
30281 /* System header to define __stub macros and hopefully few prototypes,
30282     which can conflict with char $ac_func (); below.
30283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30284     <limits.h> exists even on freestanding compilers.  */
30285
30286 #ifdef __STDC__
30287 # include <limits.h>
30288 #else
30289 # include <assert.h>
30290 #endif
30291
30292 #undef $ac_func
30293
30294 /* Override any gcc2 internal prototype to avoid an error.  */
30295 #ifdef __cplusplus
30296 extern "C"
30297 {
30298 #endif
30299 /* We use char because int might match the return type of a gcc2
30300    builtin and then its argument prototype would still apply.  */
30301 char $ac_func ();
30302 /* The GNU C library defines this for functions which it implements
30303     to always fail with ENOSYS.  Some functions are actually named
30304     something starting with __ and the normal name is an alias.  */
30305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30306 choke me
30307 #else
30308 char (*f) () = $ac_func;
30309 #endif
30310 #ifdef __cplusplus
30311 }
30312 #endif
30313
30314 int
30315 main ()
30316 {
30317 return f != $ac_func;
30318   ;
30319   return 0;
30320 }
30321 _ACEOF
30322 rm -f conftest.$ac_objext conftest$ac_exeext
30323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30324   (eval $ac_link) 2>conftest.er1
30325   ac_status=$?
30326   grep -v '^ *+' conftest.er1 >conftest.err
30327   rm -f conftest.er1
30328   cat conftest.err >&5
30329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330   (exit $ac_status); } &&
30331          { ac_try='test -z "$ac_cxx_werror_flag"
30332                          || test ! -s conftest.err'
30333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334   (eval $ac_try) 2>&5
30335   ac_status=$?
30336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337   (exit $ac_status); }; } &&
30338          { ac_try='test -s conftest$ac_exeext'
30339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30340   (eval $ac_try) 2>&5
30341   ac_status=$?
30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343   (exit $ac_status); }; }; then
30344   eval "$as_ac_var=yes"
30345 else
30346   echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30348
30349 eval "$as_ac_var=no"
30350 fi
30351 rm -f conftest.err conftest.$ac_objext \
30352       conftest$ac_exeext conftest.$ac_ext
30353 fi
30354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30356 if test `eval echo '${'$as_ac_var'}'` = yes; then
30357   cat >>confdefs.h <<_ACEOF
30358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30359 _ACEOF
30360
30361 fi
30362 done
30363
30364
30365 ac_ext=c
30366 ac_cpp='$CPP $CPPFLAGS'
30367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30370
30371
30372 INET_LINK=
30373
30374 for ac_func in inet_addr
30375 do
30376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30377 echo "$as_me:$LINENO: checking for $ac_func" >&5
30378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30379 if eval "test \"\${$as_ac_var+set}\" = set"; then
30380   echo $ECHO_N "(cached) $ECHO_C" >&6
30381 else
30382   cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h.  */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h.  */
30388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30390 #define $ac_func innocuous_$ac_func
30391
30392 /* System header to define __stub macros and hopefully few prototypes,
30393     which can conflict with char $ac_func (); below.
30394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30395     <limits.h> exists even on freestanding compilers.  */
30396
30397 #ifdef __STDC__
30398 # include <limits.h>
30399 #else
30400 # include <assert.h>
30401 #endif
30402
30403 #undef $ac_func
30404
30405 /* Override any gcc2 internal prototype to avoid an error.  */
30406 #ifdef __cplusplus
30407 extern "C"
30408 {
30409 #endif
30410 /* We use char because int might match the return type of a gcc2
30411    builtin and then its argument prototype would still apply.  */
30412 char $ac_func ();
30413 /* The GNU C library defines this for functions which it implements
30414     to always fail with ENOSYS.  Some functions are actually named
30415     something starting with __ and the normal name is an alias.  */
30416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30417 choke me
30418 #else
30419 char (*f) () = $ac_func;
30420 #endif
30421 #ifdef __cplusplus
30422 }
30423 #endif
30424
30425 int
30426 main ()
30427 {
30428 return f != $ac_func;
30429   ;
30430   return 0;
30431 }
30432 _ACEOF
30433 rm -f conftest.$ac_objext conftest$ac_exeext
30434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30435   (eval $ac_link) 2>conftest.er1
30436   ac_status=$?
30437   grep -v '^ *+' conftest.er1 >conftest.err
30438   rm -f conftest.er1
30439   cat conftest.err >&5
30440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441   (exit $ac_status); } &&
30442          { ac_try='test -z "$ac_c_werror_flag"
30443                          || test ! -s conftest.err'
30444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445   (eval $ac_try) 2>&5
30446   ac_status=$?
30447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448   (exit $ac_status); }; } &&
30449          { ac_try='test -s conftest$ac_exeext'
30450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30451   (eval $ac_try) 2>&5
30452   ac_status=$?
30453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454   (exit $ac_status); }; }; then
30455   eval "$as_ac_var=yes"
30456 else
30457   echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30459
30460 eval "$as_ac_var=no"
30461 fi
30462 rm -f conftest.err conftest.$ac_objext \
30463       conftest$ac_exeext conftest.$ac_ext
30464 fi
30465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30467 if test `eval echo '${'$as_ac_var'}'` = yes; then
30468   cat >>confdefs.h <<_ACEOF
30469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30470 _ACEOF
30471  cat >>confdefs.h <<\_ACEOF
30472 #define HAVE_INET_ADDR 1
30473 _ACEOF
30474
30475 else
30476
30477         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30478 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30479 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30480   echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482   ac_check_lib_save_LIBS=$LIBS
30483 LIBS="-lnsl  $LIBS"
30484 cat >conftest.$ac_ext <<_ACEOF
30485 /* confdefs.h.  */
30486 _ACEOF
30487 cat confdefs.h >>conftest.$ac_ext
30488 cat >>conftest.$ac_ext <<_ACEOF
30489 /* end confdefs.h.  */
30490
30491 /* Override any gcc2 internal prototype to avoid an error.  */
30492 #ifdef __cplusplus
30493 extern "C"
30494 #endif
30495 /* We use char because int might match the return type of a gcc2
30496    builtin and then its argument prototype would still apply.  */
30497 char inet_addr ();
30498 int
30499 main ()
30500 {
30501 inet_addr ();
30502   ;
30503   return 0;
30504 }
30505 _ACEOF
30506 rm -f conftest.$ac_objext conftest$ac_exeext
30507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30508   (eval $ac_link) 2>conftest.er1
30509   ac_status=$?
30510   grep -v '^ *+' conftest.er1 >conftest.err
30511   rm -f conftest.er1
30512   cat conftest.err >&5
30513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514   (exit $ac_status); } &&
30515          { ac_try='test -z "$ac_c_werror_flag"
30516                          || test ! -s conftest.err'
30517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30518   (eval $ac_try) 2>&5
30519   ac_status=$?
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); }; } &&
30522          { ac_try='test -s conftest$ac_exeext'
30523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30524   (eval $ac_try) 2>&5
30525   ac_status=$?
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); }; }; then
30528   ac_cv_lib_nsl_inet_addr=yes
30529 else
30530   echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533 ac_cv_lib_nsl_inet_addr=no
30534 fi
30535 rm -f conftest.err conftest.$ac_objext \
30536       conftest$ac_exeext conftest.$ac_ext
30537 LIBS=$ac_check_lib_save_LIBS
30538 fi
30539 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30540 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30541 if test $ac_cv_lib_nsl_inet_addr = yes; then
30542   INET_LINK="nsl"
30543 else
30544
30545                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
30546 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30547 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30548   echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550   ac_check_lib_save_LIBS=$LIBS
30551 LIBS="-lresolv  $LIBS"
30552 cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558
30559 /* Override any gcc2 internal prototype to avoid an error.  */
30560 #ifdef __cplusplus
30561 extern "C"
30562 #endif
30563 /* We use char because int might match the return type of a gcc2
30564    builtin and then its argument prototype would still apply.  */
30565 char inet_addr ();
30566 int
30567 main ()
30568 {
30569 inet_addr ();
30570   ;
30571   return 0;
30572 }
30573 _ACEOF
30574 rm -f conftest.$ac_objext conftest$ac_exeext
30575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30576   (eval $ac_link) 2>conftest.er1
30577   ac_status=$?
30578   grep -v '^ *+' conftest.er1 >conftest.err
30579   rm -f conftest.er1
30580   cat conftest.err >&5
30581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582   (exit $ac_status); } &&
30583          { ac_try='test -z "$ac_c_werror_flag"
30584                          || test ! -s conftest.err'
30585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586   (eval $ac_try) 2>&5
30587   ac_status=$?
30588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589   (exit $ac_status); }; } &&
30590          { ac_try='test -s conftest$ac_exeext'
30591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592   (eval $ac_try) 2>&5
30593   ac_status=$?
30594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595   (exit $ac_status); }; }; then
30596   ac_cv_lib_resolv_inet_addr=yes
30597 else
30598   echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30600
30601 ac_cv_lib_resolv_inet_addr=no
30602 fi
30603 rm -f conftest.err conftest.$ac_objext \
30604       conftest$ac_exeext conftest.$ac_ext
30605 LIBS=$ac_check_lib_save_LIBS
30606 fi
30607 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30608 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30609 if test $ac_cv_lib_resolv_inet_addr = yes; then
30610   INET_LINK="resolv"
30611 else
30612
30613                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
30614 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30615 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30616   echo $ECHO_N "(cached) $ECHO_C" >&6
30617 else
30618   ac_check_lib_save_LIBS=$LIBS
30619 LIBS="-lsocket  $LIBS"
30620 cat >conftest.$ac_ext <<_ACEOF
30621 /* confdefs.h.  */
30622 _ACEOF
30623 cat confdefs.h >>conftest.$ac_ext
30624 cat >>conftest.$ac_ext <<_ACEOF
30625 /* end confdefs.h.  */
30626
30627 /* Override any gcc2 internal prototype to avoid an error.  */
30628 #ifdef __cplusplus
30629 extern "C"
30630 #endif
30631 /* We use char because int might match the return type of a gcc2
30632    builtin and then its argument prototype would still apply.  */
30633 char inet_addr ();
30634 int
30635 main ()
30636 {
30637 inet_addr ();
30638   ;
30639   return 0;
30640 }
30641 _ACEOF
30642 rm -f conftest.$ac_objext conftest$ac_exeext
30643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30644   (eval $ac_link) 2>conftest.er1
30645   ac_status=$?
30646   grep -v '^ *+' conftest.er1 >conftest.err
30647   rm -f conftest.er1
30648   cat conftest.err >&5
30649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650   (exit $ac_status); } &&
30651          { ac_try='test -z "$ac_c_werror_flag"
30652                          || test ! -s conftest.err'
30653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654   (eval $ac_try) 2>&5
30655   ac_status=$?
30656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657   (exit $ac_status); }; } &&
30658          { ac_try='test -s conftest$ac_exeext'
30659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660   (eval $ac_try) 2>&5
30661   ac_status=$?
30662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663   (exit $ac_status); }; }; then
30664   ac_cv_lib_socket_inet_addr=yes
30665 else
30666   echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30668
30669 ac_cv_lib_socket_inet_addr=no
30670 fi
30671 rm -f conftest.err conftest.$ac_objext \
30672       conftest$ac_exeext conftest.$ac_ext
30673 LIBS=$ac_check_lib_save_LIBS
30674 fi
30675 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30676 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30677 if test $ac_cv_lib_socket_inet_addr = yes; then
30678   INET_LINK="socket"
30679
30680 fi
30681
30682
30683
30684 fi
30685
30686
30687
30688 fi
30689
30690
30691
30692 fi
30693 done
30694
30695
30696
30697 for ac_func in inet_aton
30698 do
30699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30700 echo "$as_me:$LINENO: checking for $ac_func" >&5
30701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30702 if eval "test \"\${$as_ac_var+set}\" = set"; then
30703   echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705   cat >conftest.$ac_ext <<_ACEOF
30706 /* confdefs.h.  */
30707 _ACEOF
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h.  */
30711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30713 #define $ac_func innocuous_$ac_func
30714
30715 /* System header to define __stub macros and hopefully few prototypes,
30716     which can conflict with char $ac_func (); below.
30717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30718     <limits.h> exists even on freestanding compilers.  */
30719
30720 #ifdef __STDC__
30721 # include <limits.h>
30722 #else
30723 # include <assert.h>
30724 #endif
30725
30726 #undef $ac_func
30727
30728 /* Override any gcc2 internal prototype to avoid an error.  */
30729 #ifdef __cplusplus
30730 extern "C"
30731 {
30732 #endif
30733 /* We use char because int might match the return type of a gcc2
30734    builtin and then its argument prototype would still apply.  */
30735 char $ac_func ();
30736 /* The GNU C library defines this for functions which it implements
30737     to always fail with ENOSYS.  Some functions are actually named
30738     something starting with __ and the normal name is an alias.  */
30739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30740 choke me
30741 #else
30742 char (*f) () = $ac_func;
30743 #endif
30744 #ifdef __cplusplus
30745 }
30746 #endif
30747
30748 int
30749 main ()
30750 {
30751 return f != $ac_func;
30752   ;
30753   return 0;
30754 }
30755 _ACEOF
30756 rm -f conftest.$ac_objext conftest$ac_exeext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30758   (eval $ac_link) 2>conftest.er1
30759   ac_status=$?
30760   grep -v '^ *+' conftest.er1 >conftest.err
30761   rm -f conftest.er1
30762   cat conftest.err >&5
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); } &&
30765          { ac_try='test -z "$ac_c_werror_flag"
30766                          || test ! -s conftest.err'
30767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768   (eval $ac_try) 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; } &&
30772          { ac_try='test -s conftest$ac_exeext'
30773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774   (eval $ac_try) 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); }; }; then
30778   eval "$as_ac_var=yes"
30779 else
30780   echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30782
30783 eval "$as_ac_var=no"
30784 fi
30785 rm -f conftest.err conftest.$ac_objext \
30786       conftest$ac_exeext conftest.$ac_ext
30787 fi
30788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30790 if test `eval echo '${'$as_ac_var'}'` = yes; then
30791   cat >>confdefs.h <<_ACEOF
30792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30793 _ACEOF
30794  cat >>confdefs.h <<\_ACEOF
30795 #define HAVE_INET_ATON 1
30796 _ACEOF
30797
30798 else
30799
30800                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30801 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30802 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30803 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30804   echo $ECHO_N "(cached) $ECHO_C" >&6
30805 else
30806   ac_check_lib_save_LIBS=$LIBS
30807 LIBS="-l$INET_LINK  $LIBS"
30808 cat >conftest.$ac_ext <<_ACEOF
30809 /* confdefs.h.  */
30810 _ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h.  */
30814
30815 /* Override any gcc2 internal prototype to avoid an error.  */
30816 #ifdef __cplusplus
30817 extern "C"
30818 #endif
30819 /* We use char because int might match the return type of a gcc2
30820    builtin and then its argument prototype would still apply.  */
30821 char inet_aton ();
30822 int
30823 main ()
30824 {
30825 inet_aton ();
30826   ;
30827   return 0;
30828 }
30829 _ACEOF
30830 rm -f conftest.$ac_objext conftest$ac_exeext
30831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30832   (eval $ac_link) 2>conftest.er1
30833   ac_status=$?
30834   grep -v '^ *+' conftest.er1 >conftest.err
30835   rm -f conftest.er1
30836   cat conftest.err >&5
30837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838   (exit $ac_status); } &&
30839          { ac_try='test -z "$ac_c_werror_flag"
30840                          || test ! -s conftest.err'
30841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30842   (eval $ac_try) 2>&5
30843   ac_status=$?
30844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845   (exit $ac_status); }; } &&
30846          { ac_try='test -s conftest$ac_exeext'
30847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848   (eval $ac_try) 2>&5
30849   ac_status=$?
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); }; }; then
30852   eval "$as_ac_Lib=yes"
30853 else
30854   echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30856
30857 eval "$as_ac_Lib=no"
30858 fi
30859 rm -f conftest.err conftest.$ac_objext \
30860       conftest$ac_exeext conftest.$ac_ext
30861 LIBS=$ac_check_lib_save_LIBS
30862 fi
30863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30864 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30865 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30866   cat >>confdefs.h <<\_ACEOF
30867 #define HAVE_INET_ATON 1
30868 _ACEOF
30869
30870 fi
30871
30872
30873 fi
30874 done
30875
30876
30877 if test "x$INET_LINK" != "x"; then
30878     cat >>confdefs.h <<\_ACEOF
30879 #define HAVE_INET_ADDR 1
30880 _ACEOF
30881
30882     INET_LINK=" -l$INET_LINK"
30883 fi
30884
30885 fi
30886
30887
30888
30889 EXTRALIBS_ESD=
30890 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
30891 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
30892 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
30893   echo $ECHO_N "(cached) $ECHO_C" >&6
30894 else
30895   ac_check_lib_save_LIBS=$LIBS
30896 LIBS="-lesd  $LIBS"
30897 cat >conftest.$ac_ext <<_ACEOF
30898 /* confdefs.h.  */
30899 _ACEOF
30900 cat confdefs.h >>conftest.$ac_ext
30901 cat >>conftest.$ac_ext <<_ACEOF
30902 /* end confdefs.h.  */
30903
30904 /* Override any gcc2 internal prototype to avoid an error.  */
30905 #ifdef __cplusplus
30906 extern "C"
30907 #endif
30908 /* We use char because int might match the return type of a gcc2
30909    builtin and then its argument prototype would still apply.  */
30910 char esd_close ();
30911 int
30912 main ()
30913 {
30914 esd_close ();
30915   ;
30916   return 0;
30917 }
30918 _ACEOF
30919 rm -f conftest.$ac_objext conftest$ac_exeext
30920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30921   (eval $ac_link) 2>conftest.er1
30922   ac_status=$?
30923   grep -v '^ *+' conftest.er1 >conftest.err
30924   rm -f conftest.er1
30925   cat conftest.err >&5
30926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927   (exit $ac_status); } &&
30928          { ac_try='test -z "$ac_c_werror_flag"
30929                          || test ! -s conftest.err'
30930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30931   (eval $ac_try) 2>&5
30932   ac_status=$?
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); }; } &&
30935          { ac_try='test -s conftest$ac_exeext'
30936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937   (eval $ac_try) 2>&5
30938   ac_status=$?
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); }; }; then
30941   ac_cv_lib_esd_esd_close=yes
30942 else
30943   echo "$as_me: failed program was:" >&5
30944 sed 's/^/| /' conftest.$ac_ext >&5
30945
30946 ac_cv_lib_esd_esd_close=no
30947 fi
30948 rm -f conftest.err conftest.$ac_objext \
30949       conftest$ac_exeext conftest.$ac_ext
30950 LIBS=$ac_check_lib_save_LIBS
30951 fi
30952 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
30953 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
30954 if test $ac_cv_lib_esd_esd_close = yes; then
30955
30956
30957 for ac_header in esd.h
30958 do
30959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30961   echo "$as_me:$LINENO: checking for $ac_header" >&5
30962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30964   echo $ECHO_N "(cached) $ECHO_C" >&6
30965 fi
30966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30968 else
30969   # Is the header compilable?
30970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30972 cat >conftest.$ac_ext <<_ACEOF
30973 /* confdefs.h.  */
30974 _ACEOF
30975 cat confdefs.h >>conftest.$ac_ext
30976 cat >>conftest.$ac_ext <<_ACEOF
30977 /* end confdefs.h.  */
30978 $ac_includes_default
30979 #include <$ac_header>
30980 _ACEOF
30981 rm -f conftest.$ac_objext
30982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30983   (eval $ac_compile) 2>conftest.er1
30984   ac_status=$?
30985   grep -v '^ *+' conftest.er1 >conftest.err
30986   rm -f conftest.er1
30987   cat conftest.err >&5
30988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989   (exit $ac_status); } &&
30990          { ac_try='test -z "$ac_c_werror_flag"
30991                          || test ! -s conftest.err'
30992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993   (eval $ac_try) 2>&5
30994   ac_status=$?
30995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); }; } &&
30997          { ac_try='test -s conftest.$ac_objext'
30998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999   (eval $ac_try) 2>&5
31000   ac_status=$?
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); }; }; then
31003   ac_header_compiler=yes
31004 else
31005   echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31007
31008 ac_header_compiler=no
31009 fi
31010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31012 echo "${ECHO_T}$ac_header_compiler" >&6
31013
31014 # Is the header present?
31015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31017 cat >conftest.$ac_ext <<_ACEOF
31018 /* confdefs.h.  */
31019 _ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h.  */
31023 #include <$ac_header>
31024 _ACEOF
31025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31027   ac_status=$?
31028   grep -v '^ *+' conftest.er1 >conftest.err
31029   rm -f conftest.er1
31030   cat conftest.err >&5
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); } >/dev/null; then
31033   if test -s conftest.err; then
31034     ac_cpp_err=$ac_c_preproc_warn_flag
31035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31036   else
31037     ac_cpp_err=
31038   fi
31039 else
31040   ac_cpp_err=yes
31041 fi
31042 if test -z "$ac_cpp_err"; then
31043   ac_header_preproc=yes
31044 else
31045   echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31047
31048   ac_header_preproc=no
31049 fi
31050 rm -f conftest.err conftest.$ac_ext
31051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31052 echo "${ECHO_T}$ac_header_preproc" >&6
31053
31054 # So?  What about this header?
31055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31056   yes:no: )
31057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31061     ac_header_preproc=yes
31062     ;;
31063   no:yes:* )
31064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31076     (
31077       cat <<\_ASBOX
31078 ## ----------------------------------------- ##
31079 ## Report this to wx-dev@lists.wxwindows.org ##
31080 ## ----------------------------------------- ##
31081 _ASBOX
31082     ) |
31083       sed "s/^/$as_me: WARNING:     /" >&2
31084     ;;
31085 esac
31086 echo "$as_me:$LINENO: checking for $ac_header" >&5
31087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31089   echo $ECHO_N "(cached) $ECHO_C" >&6
31090 else
31091   eval "$as_ac_Header=\$ac_header_preproc"
31092 fi
31093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31095
31096 fi
31097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31098   cat >>confdefs.h <<_ACEOF
31099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31100 _ACEOF
31101
31102     EXTRALIBS_ESD="-lesd"
31103
31104 fi
31105
31106 done
31107
31108
31109 fi
31110
31111
31112
31113 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31114 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31115 cat >conftest.$ac_ext <<_ACEOF
31116 /* confdefs.h.  */
31117 _ACEOF
31118 cat confdefs.h >>conftest.$ac_ext
31119 cat >>conftest.$ac_ext <<_ACEOF
31120 /* end confdefs.h.  */
31121 #ifdef __linux__
31122                 #include <linux/cdrom.h>
31123                 #else
31124                 /* For Solaris */
31125                 #include <sys/cdio.h>
31126                 #endif
31127
31128 int
31129 main ()
31130 {
31131 struct cdrom_tocentry entry, old_entry;
31132   ;
31133   return 0;
31134 }
31135 _ACEOF
31136 rm -f conftest.$ac_objext
31137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31138   (eval $ac_compile) 2>conftest.er1
31139   ac_status=$?
31140   grep -v '^ *+' conftest.er1 >conftest.err
31141   rm -f conftest.er1
31142   cat conftest.err >&5
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); } &&
31145          { ac_try='test -z "$ac_c_werror_flag"
31146                          || test ! -s conftest.err'
31147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148   (eval $ac_try) 2>&5
31149   ac_status=$?
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); }; } &&
31152          { ac_try='test -s conftest.$ac_objext'
31153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31154   (eval $ac_try) 2>&5
31155   ac_status=$?
31156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157   (exit $ac_status); }; }; then
31158   echo "$as_me:$LINENO: result: yes" >&5
31159 echo "${ECHO_T}yes" >&6
31160                 cat >>confdefs.h <<\_ACEOF
31161 #define HAVE_KNOWN_CDROM_INTERFACE 1
31162 _ACEOF
31163
31164 else
31165   echo "$as_me: failed program was:" >&5
31166 sed 's/^/| /' conftest.$ac_ext >&5
31167
31168 echo "$as_me:$LINENO: result: no" >&5
31169 echo "${ECHO_T}no" >&6
31170 fi
31171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31172
31173
31174 cat >confcache <<\_ACEOF
31175 # This file is a shell script that caches the results of configure
31176 # tests run on this system so they can be shared between configure
31177 # scripts and configure runs, see configure's option --config-cache.
31178 # It is not useful on other systems.  If it contains results you don't
31179 # want to keep, you may remove or edit it.
31180 #
31181 # config.status only pays attention to the cache file if you give it
31182 # the --recheck option to rerun configure.
31183 #
31184 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31185 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31186 # following values.
31187
31188 _ACEOF
31189
31190 # The following way of writing the cache mishandles newlines in values,
31191 # but we know of no workaround that is simple, portable, and efficient.
31192 # So, don't put newlines in cache variables' values.
31193 # Ultrix sh set writes to stderr and can't be redirected directly,
31194 # and sets the high bit in the cache file unless we assign to the vars.
31195 {
31196   (set) 2>&1 |
31197     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31198     *ac_space=\ *)
31199       # `set' does not quote correctly, so add quotes (double-quote
31200       # substitution turns \\\\ into \\, and sed turns \\ into \).
31201       sed -n \
31202         "s/'/'\\\\''/g;
31203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31204       ;;
31205     *)
31206       # `set' quotes correctly as required by POSIX, so do not add quotes.
31207       sed -n \
31208         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31209       ;;
31210     esac;
31211 } |
31212   sed '
31213      t clear
31214      : clear
31215      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31216      t end
31217      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31218      : end' >>confcache
31219 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31220   if test -w $cache_file; then
31221     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31222     cat confcache >$cache_file
31223   else
31224     echo "not updating unwritable cache $cache_file"
31225   fi
31226 fi
31227 rm -f confcache
31228
31229
31230 CPP_MT_FLAG=
31231 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31232
31233
31234     THREADS_LINK=
31235     THREADS_CFLAGS=
31236
31237     if test "$wxUSE_THREADS" = "yes" ; then
31238         if test "$USE_BEOS" = 1; then
31239             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31240 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31241             wxUSE_THREADS="no"
31242         fi
31243     fi
31244
31245     if test "$wxUSE_THREADS" = "yes" ; then
31246
31247
31248                                 THREAD_OPTS="-pthread"
31249         case "${host}" in
31250           *-*-solaris2* | *-*-sunos4* )
31251                 if test "x$GCC" = "xyes"; then
31252                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
31253                 else
31254                     THREAD_OPTS="-mt $THREAD_OPTS"
31255                 fi
31256                 ;;
31257           *-*-freebsd*)
31258                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31259                 ;;
31260           *-*-darwin* | *-*-cygwin* )
31261                                                 THREAD_OPTS=""
31262                 ;;
31263           *-*-aix*)
31264                                 THREAD_OPTS="pthreads"
31265                 ;;
31266           *-hp-hpux* )
31267                                                                 if test "x$GCC" != "xyes"; then
31268                     THREAD_OPTS=""
31269                 fi
31270                 ;;
31271
31272           *-*-irix* )
31273                                                                 if test "x$GCC" = "xyes"; then
31274                     THREAD_OPTS=""
31275                 fi
31276                 ;;
31277
31278           *-*-*UnixWare*)
31279                                 if test "x$GCC" != "xyes"; then
31280                     THREAD_OPTS="-Ethread"
31281                 fi
31282                 ;;
31283         esac
31284
31285                                 THREAD_OPTS="$THREAD_OPTS pthread none"
31286
31287                 THREADS_OK=no
31288         for flag in $THREAD_OPTS; do
31289             case $flag in
31290                 none)
31291                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31292 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31293                     ;;
31294
31295                 -*)
31296                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31297 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31298                     THREADS_CFLAGS="$flag"
31299                     ;;
31300
31301                 *)
31302                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31303 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31304                     THREADS_LINK="-l$flag"
31305                     ;;
31306               esac
31307
31308               save_LIBS="$LIBS"
31309               save_CFLAGS="$CFLAGS"
31310               LIBS="$THREADS_LINK $LIBS"
31311               CFLAGS="$THREADS_CFLAGS $CFLAGS"
31312
31313               cat >conftest.$ac_ext <<_ACEOF
31314 /* confdefs.h.  */
31315 _ACEOF
31316 cat confdefs.h >>conftest.$ac_ext
31317 cat >>conftest.$ac_ext <<_ACEOF
31318 /* end confdefs.h.  */
31319 #include <pthread.h>
31320 int
31321 main ()
31322 {
31323 pthread_create(0,0,0,0);
31324   ;
31325   return 0;
31326 }
31327 _ACEOF
31328 rm -f conftest.$ac_objext conftest$ac_exeext
31329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31330   (eval $ac_link) 2>conftest.er1
31331   ac_status=$?
31332   grep -v '^ *+' conftest.er1 >conftest.err
31333   rm -f conftest.er1
31334   cat conftest.err >&5
31335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336   (exit $ac_status); } &&
31337          { ac_try='test -z "$ac_c_werror_flag"
31338                          || test ! -s conftest.err'
31339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340   (eval $ac_try) 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; } &&
31344          { ac_try='test -s conftest$ac_exeext'
31345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346   (eval $ac_try) 2>&5
31347   ac_status=$?
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); }; }; then
31350   THREADS_OK=yes
31351 else
31352   echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31354
31355 fi
31356 rm -f conftest.err conftest.$ac_objext \
31357       conftest$ac_exeext conftest.$ac_ext
31358
31359               LIBS="$save_LIBS"
31360               CFLAGS="$save_CFLAGS"
31361
31362               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31363 echo "${ECHO_T}$THREADS_OK" >&6
31364               if test "x$THREADS_OK" = "xyes"; then
31365                       break;
31366               fi
31367
31368               THREADS_LINK=""
31369               THREADS_CFLAGS=""
31370       done
31371
31372       if test "x$THREADS_OK" != "xyes"; then
31373           wxUSE_THREADS=no
31374           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31375 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31376       else
31377                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31378           LIBS="$THREADS_LINK $LIBS"
31379
31380           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31381 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31382           flag=no
31383           case "${host}" in
31384             *-aix*)
31385                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31386                 flag="-D_THREAD_SAFE"
31387                 ;;
31388             *-freebsd*)
31389                 flag="-D_THREAD_SAFE"
31390                 ;;
31391             *-hp-hpux* )
31392                 flag="-D_REENTRANT"
31393                 if test "x$GCC" != "xyes"; then
31394                                         flag="$flag -D_RWSTD_MULTI_THREAD"
31395                 fi
31396                 ;;
31397             *solaris* | alpha*-osf*)
31398                 flag="-D_REENTRANT"
31399                 ;;
31400           esac
31401           echo "$as_me:$LINENO: result: ${flag}" >&5
31402 echo "${ECHO_T}${flag}" >&6
31403           if test "x$flag" != xno; then
31404               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31405           fi
31406
31407           if test "x$THREADS_CFLAGS" != "x"; then
31408                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
31409             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31410           fi
31411       fi
31412     fi
31413
31414         if test "$wxUSE_THREADS" = "yes" ; then
31415
31416 for ac_func in thr_setconcurrency
31417 do
31418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31419 echo "$as_me:$LINENO: checking for $ac_func" >&5
31420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31421 if eval "test \"\${$as_ac_var+set}\" = set"; then
31422   echo $ECHO_N "(cached) $ECHO_C" >&6
31423 else
31424   cat >conftest.$ac_ext <<_ACEOF
31425 /* confdefs.h.  */
31426 _ACEOF
31427 cat confdefs.h >>conftest.$ac_ext
31428 cat >>conftest.$ac_ext <<_ACEOF
31429 /* end confdefs.h.  */
31430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31432 #define $ac_func innocuous_$ac_func
31433
31434 /* System header to define __stub macros and hopefully few prototypes,
31435     which can conflict with char $ac_func (); below.
31436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31437     <limits.h> exists even on freestanding compilers.  */
31438
31439 #ifdef __STDC__
31440 # include <limits.h>
31441 #else
31442 # include <assert.h>
31443 #endif
31444
31445 #undef $ac_func
31446
31447 /* Override any gcc2 internal prototype to avoid an error.  */
31448 #ifdef __cplusplus
31449 extern "C"
31450 {
31451 #endif
31452 /* We use char because int might match the return type of a gcc2
31453    builtin and then its argument prototype would still apply.  */
31454 char $ac_func ();
31455 /* The GNU C library defines this for functions which it implements
31456     to always fail with ENOSYS.  Some functions are actually named
31457     something starting with __ and the normal name is an alias.  */
31458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31459 choke me
31460 #else
31461 char (*f) () = $ac_func;
31462 #endif
31463 #ifdef __cplusplus
31464 }
31465 #endif
31466
31467 int
31468 main ()
31469 {
31470 return f != $ac_func;
31471   ;
31472   return 0;
31473 }
31474 _ACEOF
31475 rm -f conftest.$ac_objext conftest$ac_exeext
31476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31477   (eval $ac_link) 2>conftest.er1
31478   ac_status=$?
31479   grep -v '^ *+' conftest.er1 >conftest.err
31480   rm -f conftest.er1
31481   cat conftest.err >&5
31482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483   (exit $ac_status); } &&
31484          { ac_try='test -z "$ac_c_werror_flag"
31485                          || 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   eval "$as_ac_var=yes"
31498 else
31499   echo "$as_me: failed program was:" >&5
31500 sed 's/^/| /' conftest.$ac_ext >&5
31501
31502 eval "$as_ac_var=no"
31503 fi
31504 rm -f conftest.err conftest.$ac_objext \
31505       conftest$ac_exeext conftest.$ac_ext
31506 fi
31507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31509 if test `eval echo '${'$as_ac_var'}'` = yes; then
31510   cat >>confdefs.h <<_ACEOF
31511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31512 _ACEOF
31513
31514 fi
31515 done
31516
31517
31518
31519 for ac_header in sched.h
31520 do
31521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31523   echo "$as_me:$LINENO: checking for $ac_header" >&5
31524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31526   echo $ECHO_N "(cached) $ECHO_C" >&6
31527 fi
31528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31530 else
31531   # Is the header compilable?
31532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31534 cat >conftest.$ac_ext <<_ACEOF
31535 /* confdefs.h.  */
31536 _ACEOF
31537 cat confdefs.h >>conftest.$ac_ext
31538 cat >>conftest.$ac_ext <<_ACEOF
31539 /* end confdefs.h.  */
31540 $ac_includes_default
31541 #include <$ac_header>
31542 _ACEOF
31543 rm -f conftest.$ac_objext
31544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31545   (eval $ac_compile) 2>conftest.er1
31546   ac_status=$?
31547   grep -v '^ *+' conftest.er1 >conftest.err
31548   rm -f conftest.er1
31549   cat conftest.err >&5
31550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551   (exit $ac_status); } &&
31552          { ac_try='test -z "$ac_c_werror_flag"
31553                          || test ! -s conftest.err'
31554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31555   (eval $ac_try) 2>&5
31556   ac_status=$?
31557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558   (exit $ac_status); }; } &&
31559          { ac_try='test -s conftest.$ac_objext'
31560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561   (eval $ac_try) 2>&5
31562   ac_status=$?
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); }; }; then
31565   ac_header_compiler=yes
31566 else
31567   echo "$as_me: failed program was:" >&5
31568 sed 's/^/| /' conftest.$ac_ext >&5
31569
31570 ac_header_compiler=no
31571 fi
31572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31574 echo "${ECHO_T}$ac_header_compiler" >&6
31575
31576 # Is the header present?
31577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31579 cat >conftest.$ac_ext <<_ACEOF
31580 /* confdefs.h.  */
31581 _ACEOF
31582 cat confdefs.h >>conftest.$ac_ext
31583 cat >>conftest.$ac_ext <<_ACEOF
31584 /* end confdefs.h.  */
31585 #include <$ac_header>
31586 _ACEOF
31587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31589   ac_status=$?
31590   grep -v '^ *+' conftest.er1 >conftest.err
31591   rm -f conftest.er1
31592   cat conftest.err >&5
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); } >/dev/null; then
31595   if test -s conftest.err; then
31596     ac_cpp_err=$ac_c_preproc_warn_flag
31597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31598   else
31599     ac_cpp_err=
31600   fi
31601 else
31602   ac_cpp_err=yes
31603 fi
31604 if test -z "$ac_cpp_err"; then
31605   ac_header_preproc=yes
31606 else
31607   echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31609
31610   ac_header_preproc=no
31611 fi
31612 rm -f conftest.err conftest.$ac_ext
31613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31614 echo "${ECHO_T}$ac_header_preproc" >&6
31615
31616 # So?  What about this header?
31617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31618   yes:no: )
31619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31623     ac_header_preproc=yes
31624     ;;
31625   no:yes:* )
31626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31638     (
31639       cat <<\_ASBOX
31640 ## ----------------------------------------- ##
31641 ## Report this to wx-dev@lists.wxwindows.org ##
31642 ## ----------------------------------------- ##
31643 _ASBOX
31644     ) |
31645       sed "s/^/$as_me: WARNING:     /" >&2
31646     ;;
31647 esac
31648 echo "$as_me:$LINENO: checking for $ac_header" >&5
31649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31651   echo $ECHO_N "(cached) $ECHO_C" >&6
31652 else
31653   eval "$as_ac_Header=\$ac_header_preproc"
31654 fi
31655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31657
31658 fi
31659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31660   cat >>confdefs.h <<_ACEOF
31661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31662 _ACEOF
31663
31664 fi
31665
31666 done
31667
31668       if test "$ac_cv_header_sched_h" = "yes"; then
31669           echo "$as_me:$LINENO: checking for sched_yield" >&5
31670 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31671 if test "${ac_cv_func_sched_yield+set}" = set; then
31672   echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674   cat >conftest.$ac_ext <<_ACEOF
31675 /* confdefs.h.  */
31676 _ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h.  */
31680 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31682 #define sched_yield innocuous_sched_yield
31683
31684 /* System header to define __stub macros and hopefully few prototypes,
31685     which can conflict with char sched_yield (); below.
31686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31687     <limits.h> exists even on freestanding compilers.  */
31688
31689 #ifdef __STDC__
31690 # include <limits.h>
31691 #else
31692 # include <assert.h>
31693 #endif
31694
31695 #undef sched_yield
31696
31697 /* Override any gcc2 internal prototype to avoid an error.  */
31698 #ifdef __cplusplus
31699 extern "C"
31700 {
31701 #endif
31702 /* We use char because int might match the return type of a gcc2
31703    builtin and then its argument prototype would still apply.  */
31704 char sched_yield ();
31705 /* The GNU C library defines this for functions which it implements
31706     to always fail with ENOSYS.  Some functions are actually named
31707     something starting with __ and the normal name is an alias.  */
31708 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31709 choke me
31710 #else
31711 char (*f) () = sched_yield;
31712 #endif
31713 #ifdef __cplusplus
31714 }
31715 #endif
31716
31717 int
31718 main ()
31719 {
31720 return f != sched_yield;
31721   ;
31722   return 0;
31723 }
31724 _ACEOF
31725 rm -f conftest.$ac_objext conftest$ac_exeext
31726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31727   (eval $ac_link) 2>conftest.er1
31728   ac_status=$?
31729   grep -v '^ *+' conftest.er1 >conftest.err
31730   rm -f conftest.er1
31731   cat conftest.err >&5
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); } &&
31734          { ac_try='test -z "$ac_c_werror_flag"
31735                          || test ! -s conftest.err'
31736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737   (eval $ac_try) 2>&5
31738   ac_status=$?
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); }; } &&
31741          { ac_try='test -s conftest$ac_exeext'
31742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743   (eval $ac_try) 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; }; then
31747   ac_cv_func_sched_yield=yes
31748 else
31749   echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31751
31752 ac_cv_func_sched_yield=no
31753 fi
31754 rm -f conftest.err conftest.$ac_objext \
31755       conftest$ac_exeext conftest.$ac_ext
31756 fi
31757 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31758 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31759 if test $ac_cv_func_sched_yield = yes; then
31760   cat >>confdefs.h <<\_ACEOF
31761 #define HAVE_SCHED_YIELD 1
31762 _ACEOF
31763
31764 else
31765
31766                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31767 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31768 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31769   echo $ECHO_N "(cached) $ECHO_C" >&6
31770 else
31771   ac_check_lib_save_LIBS=$LIBS
31772 LIBS="-lposix4  $LIBS"
31773 cat >conftest.$ac_ext <<_ACEOF
31774 /* confdefs.h.  */
31775 _ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h.  */
31779
31780 /* Override any gcc2 internal prototype to avoid an error.  */
31781 #ifdef __cplusplus
31782 extern "C"
31783 #endif
31784 /* We use char because int might match the return type of a gcc2
31785    builtin and then its argument prototype would still apply.  */
31786 char sched_yield ();
31787 int
31788 main ()
31789 {
31790 sched_yield ();
31791   ;
31792   return 0;
31793 }
31794 _ACEOF
31795 rm -f conftest.$ac_objext conftest$ac_exeext
31796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31797   (eval $ac_link) 2>conftest.er1
31798   ac_status=$?
31799   grep -v '^ *+' conftest.er1 >conftest.err
31800   rm -f conftest.er1
31801   cat conftest.err >&5
31802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803   (exit $ac_status); } &&
31804          { ac_try='test -z "$ac_c_werror_flag"
31805                          || test ! -s conftest.err'
31806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807   (eval $ac_try) 2>&5
31808   ac_status=$?
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); }; } &&
31811          { ac_try='test -s conftest$ac_exeext'
31812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31813   (eval $ac_try) 2>&5
31814   ac_status=$?
31815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816   (exit $ac_status); }; }; then
31817   ac_cv_lib_posix4_sched_yield=yes
31818 else
31819   echo "$as_me: failed program was:" >&5
31820 sed 's/^/| /' conftest.$ac_ext >&5
31821
31822 ac_cv_lib_posix4_sched_yield=no
31823 fi
31824 rm -f conftest.err conftest.$ac_objext \
31825       conftest$ac_exeext conftest.$ac_ext
31826 LIBS=$ac_check_lib_save_LIBS
31827 fi
31828 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31829 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31830 if test $ac_cv_lib_posix4_sched_yield = yes; then
31831   cat >>confdefs.h <<\_ACEOF
31832 #define HAVE_SCHED_YIELD 1
31833 _ACEOF
31834  POSIX4_LINK=" -lposix4"
31835 else
31836   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31837 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31838
31839 fi
31840
31841
31842
31843 fi
31844
31845       fi
31846
31847                                           HAVE_PRIOR_FUNCS=0
31848       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31849 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31850 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31851   echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853   cat >conftest.$ac_ext <<_ACEOF
31854 /* confdefs.h.  */
31855 _ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h.  */
31859 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31861 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
31862
31863 /* System header to define __stub macros and hopefully few prototypes,
31864     which can conflict with char pthread_attr_getschedpolicy (); below.
31865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31866     <limits.h> exists even on freestanding compilers.  */
31867
31868 #ifdef __STDC__
31869 # include <limits.h>
31870 #else
31871 # include <assert.h>
31872 #endif
31873
31874 #undef pthread_attr_getschedpolicy
31875
31876 /* Override any gcc2 internal prototype to avoid an error.  */
31877 #ifdef __cplusplus
31878 extern "C"
31879 {
31880 #endif
31881 /* We use char because int might match the return type of a gcc2
31882    builtin and then its argument prototype would still apply.  */
31883 char pthread_attr_getschedpolicy ();
31884 /* The GNU C library defines this for functions which it implements
31885     to always fail with ENOSYS.  Some functions are actually named
31886     something starting with __ and the normal name is an alias.  */
31887 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
31888 choke me
31889 #else
31890 char (*f) () = pthread_attr_getschedpolicy;
31891 #endif
31892 #ifdef __cplusplus
31893 }
31894 #endif
31895
31896 int
31897 main ()
31898 {
31899 return f != pthread_attr_getschedpolicy;
31900   ;
31901   return 0;
31902 }
31903 _ACEOF
31904 rm -f conftest.$ac_objext conftest$ac_exeext
31905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31906   (eval $ac_link) 2>conftest.er1
31907   ac_status=$?
31908   grep -v '^ *+' conftest.er1 >conftest.err
31909   rm -f conftest.er1
31910   cat conftest.err >&5
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); } &&
31913          { ac_try='test -z "$ac_c_werror_flag"
31914                          || test ! -s conftest.err'
31915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916   (eval $ac_try) 2>&5
31917   ac_status=$?
31918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919   (exit $ac_status); }; } &&
31920          { ac_try='test -s conftest$ac_exeext'
31921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922   (eval $ac_try) 2>&5
31923   ac_status=$?
31924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925   (exit $ac_status); }; }; then
31926   ac_cv_func_pthread_attr_getschedpolicy=yes
31927 else
31928   echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31930
31931 ac_cv_func_pthread_attr_getschedpolicy=no
31932 fi
31933 rm -f conftest.err conftest.$ac_objext \
31934       conftest$ac_exeext conftest.$ac_ext
31935 fi
31936 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
31937 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
31938 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
31939   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
31940 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
31941 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
31942   echo $ECHO_N "(cached) $ECHO_C" >&6
31943 else
31944   cat >conftest.$ac_ext <<_ACEOF
31945 /* confdefs.h.  */
31946 _ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h.  */
31950 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
31951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31952 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
31953
31954 /* System header to define __stub macros and hopefully few prototypes,
31955     which can conflict with char pthread_attr_setschedparam (); below.
31956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31957     <limits.h> exists even on freestanding compilers.  */
31958
31959 #ifdef __STDC__
31960 # include <limits.h>
31961 #else
31962 # include <assert.h>
31963 #endif
31964
31965 #undef pthread_attr_setschedparam
31966
31967 /* Override any gcc2 internal prototype to avoid an error.  */
31968 #ifdef __cplusplus
31969 extern "C"
31970 {
31971 #endif
31972 /* We use char because int might match the return type of a gcc2
31973    builtin and then its argument prototype would still apply.  */
31974 char pthread_attr_setschedparam ();
31975 /* The GNU C library defines this for functions which it implements
31976     to always fail with ENOSYS.  Some functions are actually named
31977     something starting with __ and the normal name is an alias.  */
31978 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
31979 choke me
31980 #else
31981 char (*f) () = pthread_attr_setschedparam;
31982 #endif
31983 #ifdef __cplusplus
31984 }
31985 #endif
31986
31987 int
31988 main ()
31989 {
31990 return f != pthread_attr_setschedparam;
31991   ;
31992   return 0;
31993 }
31994 _ACEOF
31995 rm -f conftest.$ac_objext conftest$ac_exeext
31996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31997   (eval $ac_link) 2>conftest.er1
31998   ac_status=$?
31999   grep -v '^ *+' conftest.er1 >conftest.err
32000   rm -f conftest.er1
32001   cat conftest.err >&5
32002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003   (exit $ac_status); } &&
32004          { ac_try='test -z "$ac_c_werror_flag"
32005                          || test ! -s conftest.err'
32006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007   (eval $ac_try) 2>&5
32008   ac_status=$?
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); }; } &&
32011          { ac_try='test -s conftest$ac_exeext'
32012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013   (eval $ac_try) 2>&5
32014   ac_status=$?
32015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016   (exit $ac_status); }; }; then
32017   ac_cv_func_pthread_attr_setschedparam=yes
32018 else
32019   echo "$as_me: failed program was:" >&5
32020 sed 's/^/| /' conftest.$ac_ext >&5
32021
32022 ac_cv_func_pthread_attr_setschedparam=no
32023 fi
32024 rm -f conftest.err conftest.$ac_objext \
32025       conftest$ac_exeext conftest.$ac_ext
32026 fi
32027 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32028 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32029 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32030   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32031 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32032 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32033   echo $ECHO_N "(cached) $ECHO_C" >&6
32034 else
32035   cat >conftest.$ac_ext <<_ACEOF
32036 /* confdefs.h.  */
32037 _ACEOF
32038 cat confdefs.h >>conftest.$ac_ext
32039 cat >>conftest.$ac_ext <<_ACEOF
32040 /* end confdefs.h.  */
32041 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32043 #define sched_get_priority_max innocuous_sched_get_priority_max
32044
32045 /* System header to define __stub macros and hopefully few prototypes,
32046     which can conflict with char sched_get_priority_max (); below.
32047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32048     <limits.h> exists even on freestanding compilers.  */
32049
32050 #ifdef __STDC__
32051 # include <limits.h>
32052 #else
32053 # include <assert.h>
32054 #endif
32055
32056 #undef sched_get_priority_max
32057
32058 /* Override any gcc2 internal prototype to avoid an error.  */
32059 #ifdef __cplusplus
32060 extern "C"
32061 {
32062 #endif
32063 /* We use char because int might match the return type of a gcc2
32064    builtin and then its argument prototype would still apply.  */
32065 char sched_get_priority_max ();
32066 /* The GNU C library defines this for functions which it implements
32067     to always fail with ENOSYS.  Some functions are actually named
32068     something starting with __ and the normal name is an alias.  */
32069 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32070 choke me
32071 #else
32072 char (*f) () = sched_get_priority_max;
32073 #endif
32074 #ifdef __cplusplus
32075 }
32076 #endif
32077
32078 int
32079 main ()
32080 {
32081 return f != sched_get_priority_max;
32082   ;
32083   return 0;
32084 }
32085 _ACEOF
32086 rm -f conftest.$ac_objext conftest$ac_exeext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32088   (eval $ac_link) 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } &&
32095          { ac_try='test -z "$ac_c_werror_flag"
32096                          || test ! -s conftest.err'
32097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098   (eval $ac_try) 2>&5
32099   ac_status=$?
32100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101   (exit $ac_status); }; } &&
32102          { ac_try='test -s conftest$ac_exeext'
32103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104   (eval $ac_try) 2>&5
32105   ac_status=$?
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); }; }; then
32108   ac_cv_func_sched_get_priority_max=yes
32109 else
32110   echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.$ac_ext >&5
32112
32113 ac_cv_func_sched_get_priority_max=no
32114 fi
32115 rm -f conftest.err conftest.$ac_objext \
32116       conftest$ac_exeext conftest.$ac_ext
32117 fi
32118 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32119 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32120 if test $ac_cv_func_sched_get_priority_max = yes; then
32121   HAVE_PRIOR_FUNCS=1
32122 else
32123   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32124 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32125 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32126   echo $ECHO_N "(cached) $ECHO_C" >&6
32127 else
32128   ac_check_lib_save_LIBS=$LIBS
32129 LIBS="-lposix4  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
32138 #ifdef __cplusplus
32139 extern "C"
32140 #endif
32141 /* We use char because int might match the return type of a gcc2
32142    builtin and then its argument prototype would still apply.  */
32143 char sched_get_priority_max ();
32144 int
32145 main ()
32146 {
32147 sched_get_priority_max ();
32148   ;
32149   return 0;
32150 }
32151 _ACEOF
32152 rm -f conftest.$ac_objext conftest$ac_exeext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32154   (eval $ac_link) 2>conftest.er1
32155   ac_status=$?
32156   grep -v '^ *+' conftest.er1 >conftest.err
32157   rm -f conftest.er1
32158   cat conftest.err >&5
32159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160   (exit $ac_status); } &&
32161          { ac_try='test -z "$ac_c_werror_flag"
32162                          || test ! -s conftest.err'
32163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164   (eval $ac_try) 2>&5
32165   ac_status=$?
32166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167   (exit $ac_status); }; } &&
32168          { ac_try='test -s conftest$ac_exeext'
32169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32170   (eval $ac_try) 2>&5
32171   ac_status=$?
32172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173   (exit $ac_status); }; }; then
32174   ac_cv_lib_posix4_sched_get_priority_max=yes
32175 else
32176   echo "$as_me: failed program was:" >&5
32177 sed 's/^/| /' conftest.$ac_ext >&5
32178
32179 ac_cv_lib_posix4_sched_get_priority_max=no
32180 fi
32181 rm -f conftest.err conftest.$ac_objext \
32182       conftest$ac_exeext conftest.$ac_ext
32183 LIBS=$ac_check_lib_save_LIBS
32184 fi
32185 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32186 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32187 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32188
32189                                 HAVE_PRIOR_FUNCS=1
32190                                 POSIX4_LINK=" -lposix4"
32191
32192 fi
32193
32194
32195 fi
32196
32197
32198 fi
32199
32200
32201 fi
32202
32203
32204       if test "$HAVE_PRIOR_FUNCS" = 1; then
32205         cat >>confdefs.h <<\_ACEOF
32206 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32207 _ACEOF
32208
32209       else
32210         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32211 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32212       fi
32213
32214       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32215 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32216 if test "${ac_cv_func_pthread_cancel+set}" = set; then
32217   echo $ECHO_N "(cached) $ECHO_C" >&6
32218 else
32219   cat >conftest.$ac_ext <<_ACEOF
32220 /* confdefs.h.  */
32221 _ACEOF
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h.  */
32225 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32227 #define pthread_cancel innocuous_pthread_cancel
32228
32229 /* System header to define __stub macros and hopefully few prototypes,
32230     which can conflict with char pthread_cancel (); below.
32231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32232     <limits.h> exists even on freestanding compilers.  */
32233
32234 #ifdef __STDC__
32235 # include <limits.h>
32236 #else
32237 # include <assert.h>
32238 #endif
32239
32240 #undef pthread_cancel
32241
32242 /* Override any gcc2 internal prototype to avoid an error.  */
32243 #ifdef __cplusplus
32244 extern "C"
32245 {
32246 #endif
32247 /* We use char because int might match the return type of a gcc2
32248    builtin and then its argument prototype would still apply.  */
32249 char pthread_cancel ();
32250 /* The GNU C library defines this for functions which it implements
32251     to always fail with ENOSYS.  Some functions are actually named
32252     something starting with __ and the normal name is an alias.  */
32253 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32254 choke me
32255 #else
32256 char (*f) () = pthread_cancel;
32257 #endif
32258 #ifdef __cplusplus
32259 }
32260 #endif
32261
32262 int
32263 main ()
32264 {
32265 return f != pthread_cancel;
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272   (eval $ac_link) 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } &&
32279          { ac_try='test -z "$ac_c_werror_flag"
32280                          || test ! -s conftest.err'
32281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; } &&
32286          { ac_try='test -s conftest$ac_exeext'
32287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288   (eval $ac_try) 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292   ac_cv_func_pthread_cancel=yes
32293 else
32294   echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297 ac_cv_func_pthread_cancel=no
32298 fi
32299 rm -f conftest.err conftest.$ac_objext \
32300       conftest$ac_exeext conftest.$ac_ext
32301 fi
32302 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32303 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32304 if test $ac_cv_func_pthread_cancel = yes; then
32305   cat >>confdefs.h <<\_ACEOF
32306 #define HAVE_PTHREAD_CANCEL 1
32307 _ACEOF
32308
32309 else
32310   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32311 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32312 fi
32313
32314
32315
32316
32317       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32318 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32319 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32320   echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322
32323         cat >conftest.$ac_ext <<_ACEOF
32324 /* confdefs.h.  */
32325 _ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h.  */
32329 #include <pthread.h>
32330 int
32331 main ()
32332 {
32333
32334                pthread_mutexattr_t attr;
32335                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32336
32337   ;
32338   return 0;
32339 }
32340 _ACEOF
32341 rm -f conftest.$ac_objext
32342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32343   (eval $ac_compile) 2>conftest.er1
32344   ac_status=$?
32345   grep -v '^ *+' conftest.er1 >conftest.err
32346   rm -f conftest.er1
32347   cat conftest.err >&5
32348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); } &&
32350          { ac_try='test -z "$ac_c_werror_flag"
32351                          || test ! -s conftest.err'
32352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353   (eval $ac_try) 2>&5
32354   ac_status=$?
32355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356   (exit $ac_status); }; } &&
32357          { ac_try='test -s conftest.$ac_objext'
32358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359   (eval $ac_try) 2>&5
32360   ac_status=$?
32361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362   (exit $ac_status); }; }; then
32363
32364                wx_cv_type_pthread_mutexattr_t=yes
32365
32366 else
32367   echo "$as_me: failed program was:" >&5
32368 sed 's/^/| /' conftest.$ac_ext >&5
32369
32370
32371                wx_cv_type_pthread_mutexattr_t=no
32372
32373
32374 fi
32375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32376
32377 fi
32378 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32379 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32380
32381       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32382         cat >>confdefs.h <<\_ACEOF
32383 #define HAVE_PTHREAD_MUTEXATTR_T 1
32384 _ACEOF
32385
32386       else
32387                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32388 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32389 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32390   echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32392
32393             cat >conftest.$ac_ext <<_ACEOF
32394 /* confdefs.h.  */
32395 _ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h.  */
32399 #include <pthread.h>
32400 int
32401 main ()
32402 {
32403
32404                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32405
32406   ;
32407   return 0;
32408 }
32409 _ACEOF
32410 rm -f conftest.$ac_objext
32411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32412   (eval $ac_compile) 2>conftest.er1
32413   ac_status=$?
32414   grep -v '^ *+' conftest.er1 >conftest.err
32415   rm -f conftest.er1
32416   cat conftest.err >&5
32417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418   (exit $ac_status); } &&
32419          { ac_try='test -z "$ac_c_werror_flag"
32420                          || test ! -s conftest.err'
32421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32422   (eval $ac_try) 2>&5
32423   ac_status=$?
32424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425   (exit $ac_status); }; } &&
32426          { ac_try='test -s conftest.$ac_objext'
32427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428   (eval $ac_try) 2>&5
32429   ac_status=$?
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); }; }; then
32432
32433                     wx_cv_type_pthread_rec_mutex_init=yes
32434
32435 else
32436   echo "$as_me: failed program was:" >&5
32437 sed 's/^/| /' conftest.$ac_ext >&5
32438
32439
32440                     wx_cv_type_pthread_rec_mutex_init=no
32441
32442
32443 fi
32444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32445
32446 fi
32447 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32448 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32449         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32450           cat >>confdefs.h <<\_ACEOF
32451 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32452 _ACEOF
32453
32454         else
32455                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32456 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32457         fi
32458       fi
32459     fi
32460
32461 else
32462     if test "$wxUSE_THREADS" = "yes" ; then
32463       case "${host}" in
32464         *-*-mingw32* )
32465                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32466 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32467 if test "${wx_cv_cflags_mthread+set}" = set; then
32468   echo $ECHO_N "(cached) $ECHO_C" >&6
32469 else
32470
32471                     CFLAGS_OLD="$CFLAGS"
32472                     CFLAGS="$CFLAGS -mthreads"
32473                     cat >conftest.$ac_ext <<_ACEOF
32474 /* confdefs.h.  */
32475 _ACEOF
32476 cat confdefs.h >>conftest.$ac_ext
32477 cat >>conftest.$ac_ext <<_ACEOF
32478 /* end confdefs.h.  */
32479
32480 int
32481 main ()
32482 {
32483
32484   ;
32485   return 0;
32486 }
32487 _ACEOF
32488 rm -f conftest.$ac_objext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32490   (eval $ac_compile) 2>conftest.er1
32491   ac_status=$?
32492   grep -v '^ *+' conftest.er1 >conftest.err
32493   rm -f conftest.er1
32494   cat conftest.err >&5
32495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496   (exit $ac_status); } &&
32497          { ac_try='test -z "$ac_c_werror_flag"
32498                          || test ! -s conftest.err'
32499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500   (eval $ac_try) 2>&5
32501   ac_status=$?
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); }; } &&
32504          { ac_try='test -s conftest.$ac_objext'
32505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506   (eval $ac_try) 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; }; then
32510   wx_cv_cflags_mthread=yes
32511 else
32512   echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32514
32515 wx_cv_cflags_mthread=no
32516
32517 fi
32518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32519
32520
32521 fi
32522 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32523 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
32524
32525             if test "$wx_cv_cflags_mthread" = "yes"; then
32526                                 CXXFLAGS="$CXXFLAGS -mthreads"
32527                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32528                 LDFLAGS="$LDFLAGS -mthreads"
32529             else
32530                                 CFLAGS="$CFLAGS_OLD"
32531             fi
32532         ;;
32533         *-pc-os2*emx )
32534             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32535             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32536             LDFLAGS="$LDFLAGS -Zmt"
32537         ;;
32538       esac
32539     fi
32540 fi
32541
32542 if test "$wxUSE_THREADS" = "yes"; then
32543   cat >>confdefs.h <<\_ACEOF
32544 #define wxUSE_THREADS 1
32545 _ACEOF
32546
32547
32548   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
32549 else
32550       if test "$ac_cv_func_strtok_r" = "yes"; then
32551     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32552 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
32553     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32554         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
32555         echo "$as_me:$LINENO: result: yes" >&5
32556 echo "${ECHO_T}yes" >&6
32557     else
32558         echo "$as_me:$LINENO: result: no" >&5
32559 echo "${ECHO_T}no" >&6
32560     fi
32561   fi
32562 fi
32563
32564 if test "$WXGTK20" = 1 ; then
32565   cat >>confdefs.h <<_ACEOF
32566 #define __WXGTK20__ $WXGTK20
32567 _ACEOF
32568
32569   WXGTK12=1
32570 fi
32571
32572 if test "$WXGTK12" = 1 ; then
32573   cat >>confdefs.h <<_ACEOF
32574 #define __WXGTK12__ $WXGTK12
32575 _ACEOF
32576
32577 fi
32578
32579 if test "$WXGTK127" = 1 ; then
32580   cat >>confdefs.h <<_ACEOF
32581 #define __WXGTK127__ $WXGTK127
32582 _ACEOF
32583
32584 fi
32585
32586 WXDEBUG=
32587
32588 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32589     WXDEBUG="-g"
32590     wxUSE_OPTIMISE=no
32591 fi
32592
32593 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32594     wxUSE_DEBUG_INFO=yes
32595     WXDEBUG="-ggdb"
32596 fi
32597
32598 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
32599     cat >>confdefs.h <<\_ACEOF
32600 #define WXDEBUG 1
32601 _ACEOF
32602
32603     WXDEBUG_DEFINE="-D__WXDEBUG__"
32604 else
32605     if test "$wxUSE_GTK" = 1 ; then
32606         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32607     fi
32608 fi
32609
32610 if test "$wxUSE_MEM_TRACING" = "yes" ; then
32611     cat >>confdefs.h <<\_ACEOF
32612 #define wxUSE_MEMORY_TRACING 1
32613 _ACEOF
32614
32615     cat >>confdefs.h <<\_ACEOF
32616 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
32617 _ACEOF
32618
32619     cat >>confdefs.h <<\_ACEOF
32620 #define wxUSE_DEBUG_NEW_ALWAYS 1
32621 _ACEOF
32622
32623     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32624 fi
32625
32626 if test "$wxUSE_DMALLOC" = "yes" ; then
32627     DMALLOC_LIBS="-ldmalloc"
32628 fi
32629
32630 PROFILE=
32631 if test "$wxUSE_PROFILE" = "yes" ; then
32632     PROFILE=" -pg"
32633 fi
32634
32635 CODE_GEN_FLAGS=
32636 CODE_GEN_FLAGS_CXX=
32637 if test "$GCC" = "yes" ; then
32638     if test "$wxUSE_NO_RTTI" = "yes" ; then
32639         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
32640     fi
32641     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32642         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32643     fi
32644     if test "$wxUSE_PERMISSIVE" = "yes" ; then
32645         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32646     fi
32647
32648                                                 case "${host}" in
32649       powerpc*-*-aix* )
32650         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32651         ;;
32652       *-hppa* )
32653         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32654         ;;
32655     esac
32656 fi
32657
32658 OPTIMISE=
32659 if test "$wxUSE_OPTIMISE" = "no" ; then
32660     if test "$GCC" = yes ; then
32661                         OPTIMISE="-O0"
32662     fi
32663 else
32664     if test "$GCC" = yes ; then
32665         OPTIMISE="-O2"
32666
32667                 case "${host}" in
32668             i586-*-*|i686-*-* )
32669             OPTIMISE="${OPTIMISE} "
32670         ;;
32671         esac
32672     else
32673         OPTIMISE="-O"
32674     fi
32675 fi
32676
32677
32678 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
32679     cat >>confdefs.h <<\_ACEOF
32680 #define WXWIN_COMPATIBILITY_2_2 1
32681 _ACEOF
32682
32683
32684     WXWIN_COMPATIBILITY_2_4="yes"
32685 fi
32686
32687 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
32688     cat >>confdefs.h <<\_ACEOF
32689 #define WXWIN_COMPATIBILITY_2_4 1
32690 _ACEOF
32691
32692 fi
32693
32694
32695 if test "$wxUSE_GUI" = "yes"; then
32696   cat >>confdefs.h <<\_ACEOF
32697 #define wxUSE_GUI 1
32698 _ACEOF
32699
32700
32701                       else
32702   cat >>confdefs.h <<\_ACEOF
32703 #define wxUSE_NOGUI 1
32704 _ACEOF
32705
32706 fi
32707
32708
32709 if test "$wxUSE_UNIX" = "yes"; then
32710   cat >>confdefs.h <<\_ACEOF
32711 #define wxUSE_UNIX 1
32712 _ACEOF
32713
32714 fi
32715
32716
32717 if test "$wxUSE_STL" = "yes"; then
32718   cat >>confdefs.h <<\_ACEOF
32719 #define wxUSE_STL 1
32720 _ACEOF
32721
32722 fi
32723
32724 if test "$wxUSE_APPLE_IEEE" = "yes"; then
32725   cat >>confdefs.h <<\_ACEOF
32726 #define wxUSE_APPLE_IEEE 1
32727 _ACEOF
32728
32729 fi
32730
32731 if test "$wxUSE_TIMER" = "yes"; then
32732   cat >>confdefs.h <<\_ACEOF
32733 #define wxUSE_TIMER 1
32734 _ACEOF
32735
32736 fi
32737
32738 if test "$wxUSE_WAVE" = "yes"; then
32739   cat >>confdefs.h <<\_ACEOF
32740 #define wxUSE_WAVE 1
32741 _ACEOF
32742
32743 fi
32744
32745 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32746   cat >>confdefs.h <<\_ACEOF
32747 #define wxUSE_CMDLINE_PARSER 1
32748 _ACEOF
32749
32750 fi
32751
32752 if test "$wxUSE_STOPWATCH" = "yes"; then
32753   cat >>confdefs.h <<\_ACEOF
32754 #define wxUSE_STOPWATCH 1
32755 _ACEOF
32756
32757 fi
32758
32759 if test "$wxUSE_DATETIME" = "yes"; then
32760   cat >>confdefs.h <<\_ACEOF
32761 #define wxUSE_DATETIME 1
32762 _ACEOF
32763
32764 fi
32765
32766 if test "$wxUSE_FILE" = "yes"; then
32767   cat >>confdefs.h <<\_ACEOF
32768 #define wxUSE_FILE 1
32769 _ACEOF
32770
32771 fi
32772
32773 if test "$wxUSE_FFILE" = "yes"; then
32774   cat >>confdefs.h <<\_ACEOF
32775 #define wxUSE_FFILE 1
32776 _ACEOF
32777
32778 fi
32779
32780 if test "$wxUSE_FILESYSTEM" = "yes"; then
32781   cat >>confdefs.h <<\_ACEOF
32782 #define wxUSE_FILESYSTEM 1
32783 _ACEOF
32784
32785 fi
32786
32787 if test "$wxUSE_FS_ZIP" = "yes"; then
32788   cat >>confdefs.h <<\_ACEOF
32789 #define wxUSE_FS_ZIP 1
32790 _ACEOF
32791
32792 fi
32793
32794 if test "$wxUSE_ZIPSTREAM" = "yes"; then
32795   cat >>confdefs.h <<\_ACEOF
32796 #define wxUSE_ZIPSTREAM 1
32797 _ACEOF
32798
32799 fi
32800
32801 if test "$wxUSE_GZSTREAM" = "yes"; then
32802   cat >>confdefs.h <<\_ACEOF
32803 #define wxUSE_GZSTREAM 1
32804 _ACEOF
32805
32806 fi
32807
32808 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32809   cat >>confdefs.h <<\_ACEOF
32810 #define wxUSE_ON_FATAL_EXCEPTION 1
32811 _ACEOF
32812
32813 fi
32814
32815 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32816   cat >>confdefs.h <<\_ACEOF
32817 #define wxUSE_SNGLINST_CHECKER 1
32818 _ACEOF
32819
32820 fi
32821
32822 if test "$wxUSE_BUSYINFO" = "yes"; then
32823   cat >>confdefs.h <<\_ACEOF
32824 #define wxUSE_BUSYINFO 1
32825 _ACEOF
32826
32827 fi
32828
32829 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32830   cat >>confdefs.h <<\_ACEOF
32831 #define wxUSE_STD_IOSTREAM 1
32832 _ACEOF
32833
32834 fi
32835
32836 if test "$wxUSE_TEXTBUFFER" = "yes"; then
32837     cat >>confdefs.h <<\_ACEOF
32838 #define wxUSE_TEXTBUFFER 1
32839 _ACEOF
32840
32841 fi
32842
32843 if test "$wxUSE_TEXTFILE" = "yes"; then
32844   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32845     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32846 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32847   else
32848     cat >>confdefs.h <<\_ACEOF
32849 #define wxUSE_TEXTFILE 1
32850 _ACEOF
32851
32852   fi
32853 fi
32854
32855 if test "$wxUSE_CONFIG" = "yes" ; then
32856   if test "$wxUSE_TEXTFILE" != "yes"; then
32857     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32858 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32859   else
32860     cat >>confdefs.h <<\_ACEOF
32861 #define wxUSE_CONFIG 1
32862 _ACEOF
32863
32864     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32865   fi
32866 fi
32867
32868 if test "$wxUSE_INTL" = "yes" ; then
32869   if test "$wxUSE_FILE" != "yes"; then
32870     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32871 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32872   else
32873     cat >>confdefs.h <<\_ACEOF
32874 #define wxUSE_INTL 1
32875 _ACEOF
32876
32877     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32878     GUIDIST="$GUIDIST INTL_DIST"
32879   fi
32880 fi
32881
32882 if test "$wxUSE_LOG" = "yes"; then
32883   cat >>confdefs.h <<\_ACEOF
32884 #define wxUSE_LOG 1
32885 _ACEOF
32886
32887
32888     if test "$wxUSE_LOGGUI" = "yes"; then
32889       cat >>confdefs.h <<\_ACEOF
32890 #define wxUSE_LOGGUI 1
32891 _ACEOF
32892
32893     fi
32894
32895     if test "$wxUSE_LOGWINDOW" = "yes"; then
32896       cat >>confdefs.h <<\_ACEOF
32897 #define wxUSE_LOGWINDOW 1
32898 _ACEOF
32899
32900     fi
32901
32902     if test "$wxUSE_LOGDIALOG" = "yes"; then
32903       cat >>confdefs.h <<\_ACEOF
32904 #define wxUSE_LOG_DIALOG 1
32905 _ACEOF
32906
32907     fi
32908 fi
32909
32910 if test "$wxUSE_LONGLONG" = "yes"; then
32911   cat >>confdefs.h <<\_ACEOF
32912 #define wxUSE_LONGLONG 1
32913 _ACEOF
32914
32915 fi
32916
32917 if test "$wxUSE_GEOMETRY" = "yes"; then
32918   cat >>confdefs.h <<\_ACEOF
32919 #define wxUSE_GEOMETRY 1
32920 _ACEOF
32921
32922 fi
32923
32924 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32925   cat >>confdefs.h <<\_ACEOF
32926 #define wxUSE_DIALUP_MANAGER 1
32927 _ACEOF
32928
32929   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32930 fi
32931
32932 if test "$wxUSE_STREAMS" = "yes" ; then
32933   cat >>confdefs.h <<\_ACEOF
32934 #define wxUSE_STREAMS 1
32935 _ACEOF
32936
32937 fi
32938
32939
32940 if test "$wxUSE_DATETIME" = "yes"; then
32941
32942 for ac_func in strptime
32943 do
32944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32945 echo "$as_me:$LINENO: checking for $ac_func" >&5
32946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32947 if eval "test \"\${$as_ac_var+set}\" = set"; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950   cat >conftest.$ac_ext <<_ACEOF
32951 /* confdefs.h.  */
32952 _ACEOF
32953 cat confdefs.h >>conftest.$ac_ext
32954 cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h.  */
32956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32958 #define $ac_func innocuous_$ac_func
32959
32960 /* System header to define __stub macros and hopefully few prototypes,
32961     which can conflict with char $ac_func (); below.
32962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963     <limits.h> exists even on freestanding compilers.  */
32964
32965 #ifdef __STDC__
32966 # include <limits.h>
32967 #else
32968 # include <assert.h>
32969 #endif
32970
32971 #undef $ac_func
32972
32973 /* Override any gcc2 internal prototype to avoid an error.  */
32974 #ifdef __cplusplus
32975 extern "C"
32976 {
32977 #endif
32978 /* We use char because int might match the return type of a gcc2
32979    builtin and then its argument prototype would still apply.  */
32980 char $ac_func ();
32981 /* The GNU C library defines this for functions which it implements
32982     to always fail with ENOSYS.  Some functions are actually named
32983     something starting with __ and the normal name is an alias.  */
32984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32985 choke me
32986 #else
32987 char (*f) () = $ac_func;
32988 #endif
32989 #ifdef __cplusplus
32990 }
32991 #endif
32992
32993 int
32994 main ()
32995 {
32996 return f != $ac_func;
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33003   (eval $ac_link) 2>conftest.er1
33004   ac_status=$?
33005   grep -v '^ *+' conftest.er1 >conftest.err
33006   rm -f conftest.er1
33007   cat conftest.err >&5
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); } &&
33010          { ac_try='test -z "$ac_c_werror_flag"
33011                          || test ! -s conftest.err'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; } &&
33017          { ac_try='test -s conftest$ac_exeext'
33018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019   (eval $ac_try) 2>&5
33020   ac_status=$?
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); }; }; then
33023   eval "$as_ac_var=yes"
33024 else
33025   echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33027
33028 eval "$as_ac_var=no"
33029 fi
33030 rm -f conftest.err conftest.$ac_objext \
33031       conftest$ac_exeext conftest.$ac_ext
33032 fi
33033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33035 if test `eval echo '${'$as_ac_var'}'` = yes; then
33036   cat >>confdefs.h <<_ACEOF
33037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33038 _ACEOF
33039
33040 fi
33041 done
33042
33043
33044             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33045 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33046 if test "${wx_cv_var_timezone+set}" = set; then
33047   echo $ECHO_N "(cached) $ECHO_C" >&6
33048 else
33049
33050                         cat >conftest.$ac_ext <<_ACEOF
33051 /* confdefs.h.  */
33052 _ACEOF
33053 cat confdefs.h >>conftest.$ac_ext
33054 cat >>conftest.$ac_ext <<_ACEOF
33055 /* end confdefs.h.  */
33056
33057                                 #include <time.h>
33058
33059 int
33060 main ()
33061 {
33062
33063                                 int tz;
33064                                 tz = timezone;
33065
33066   ;
33067   return 0;
33068 }
33069 _ACEOF
33070 rm -f conftest.$ac_objext
33071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33072   (eval $ac_compile) 2>conftest.er1
33073   ac_status=$?
33074   grep -v '^ *+' conftest.er1 >conftest.err
33075   rm -f conftest.er1
33076   cat conftest.err >&5
33077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078   (exit $ac_status); } &&
33079          { ac_try='test -z "$ac_c_werror_flag"
33080                          || test ! -s conftest.err'
33081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082   (eval $ac_try) 2>&5
33083   ac_status=$?
33084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085   (exit $ac_status); }; } &&
33086          { ac_try='test -s conftest.$ac_objext'
33087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33088   (eval $ac_try) 2>&5
33089   ac_status=$?
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); }; }; then
33092
33093                                 wx_cv_var_timezone=timezone
33094
33095 else
33096   echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33098
33099
33100                                 cat >conftest.$ac_ext <<_ACEOF
33101 /* confdefs.h.  */
33102 _ACEOF
33103 cat confdefs.h >>conftest.$ac_ext
33104 cat >>conftest.$ac_ext <<_ACEOF
33105 /* end confdefs.h.  */
33106
33107                                         #include <time.h>
33108
33109 int
33110 main ()
33111 {
33112
33113                                         int tz;
33114                                         tz = _timezone;
33115
33116   ;
33117   return 0;
33118 }
33119 _ACEOF
33120 rm -f conftest.$ac_objext
33121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33122   (eval $ac_compile) 2>conftest.er1
33123   ac_status=$?
33124   grep -v '^ *+' conftest.er1 >conftest.err
33125   rm -f conftest.er1
33126   cat conftest.err >&5
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); } &&
33129          { ac_try='test -z "$ac_c_werror_flag"
33130                          || test ! -s conftest.err'
33131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132   (eval $ac_try) 2>&5
33133   ac_status=$?
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); }; } &&
33136          { ac_try='test -s conftest.$ac_objext'
33137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138   (eval $ac_try) 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); }; }; then
33142
33143                                         wx_cv_var_timezone=_timezone
33144
33145 else
33146   echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33148
33149
33150                                         cat >conftest.$ac_ext <<_ACEOF
33151 /* confdefs.h.  */
33152 _ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h.  */
33156
33157                                                 #include <time.h>
33158
33159 int
33160 main ()
33161 {
33162
33163                                                 int tz;
33164                                                 tz = __timezone;
33165
33166   ;
33167   return 0;
33168 }
33169 _ACEOF
33170 rm -f conftest.$ac_objext
33171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33172   (eval $ac_compile) 2>conftest.er1
33173   ac_status=$?
33174   grep -v '^ *+' conftest.er1 >conftest.err
33175   rm -f conftest.er1
33176   cat conftest.err >&5
33177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178   (exit $ac_status); } &&
33179          { ac_try='test -z "$ac_c_werror_flag"
33180                          || test ! -s conftest.err'
33181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182   (eval $ac_try) 2>&5
33183   ac_status=$?
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); }; } &&
33186          { ac_try='test -s conftest.$ac_objext'
33187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188   (eval $ac_try) 2>&5
33189   ac_status=$?
33190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191   (exit $ac_status); }; }; then
33192
33193                                                 wx_cv_var_timezone=__timezone
33194
33195 else
33196   echo "$as_me: failed program was:" >&5
33197 sed 's/^/| /' conftest.$ac_ext >&5
33198
33199
33200                                                 if test "$USE_DOS" = 0 ; then
33201                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33202 echo "$as_me: WARNING: no timezone variable" >&2;}
33203                                                 fi
33204
33205
33206 fi
33207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33208
33209
33210 fi
33211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33212
33213
33214 fi
33215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33216
33217
33218 fi
33219 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33220 echo "${ECHO_T}$wx_cv_var_timezone" >&6
33221
33222         if test "x$wx_cv_var_timezone" != x ; then
33223         cat >>confdefs.h <<_ACEOF
33224 #define WX_TIMEZONE $wx_cv_var_timezone
33225 _ACEOF
33226
33227     fi
33228
33229
33230 for ac_func in localtime
33231 do
33232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33233 echo "$as_me:$LINENO: checking for $ac_func" >&5
33234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33235 if eval "test \"\${$as_ac_var+set}\" = set"; then
33236   echo $ECHO_N "(cached) $ECHO_C" >&6
33237 else
33238   cat >conftest.$ac_ext <<_ACEOF
33239 /* confdefs.h.  */
33240 _ACEOF
33241 cat confdefs.h >>conftest.$ac_ext
33242 cat >>conftest.$ac_ext <<_ACEOF
33243 /* end confdefs.h.  */
33244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33246 #define $ac_func innocuous_$ac_func
33247
33248 /* System header to define __stub macros and hopefully few prototypes,
33249     which can conflict with char $ac_func (); below.
33250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33251     <limits.h> exists even on freestanding compilers.  */
33252
33253 #ifdef __STDC__
33254 # include <limits.h>
33255 #else
33256 # include <assert.h>
33257 #endif
33258
33259 #undef $ac_func
33260
33261 /* Override any gcc2 internal prototype to avoid an error.  */
33262 #ifdef __cplusplus
33263 extern "C"
33264 {
33265 #endif
33266 /* We use char because int might match the return type of a gcc2
33267    builtin and then its argument prototype would still apply.  */
33268 char $ac_func ();
33269 /* The GNU C library defines this for functions which it implements
33270     to always fail with ENOSYS.  Some functions are actually named
33271     something starting with __ and the normal name is an alias.  */
33272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33273 choke me
33274 #else
33275 char (*f) () = $ac_func;
33276 #endif
33277 #ifdef __cplusplus
33278 }
33279 #endif
33280
33281 int
33282 main ()
33283 {
33284 return f != $ac_func;
33285   ;
33286   return 0;
33287 }
33288 _ACEOF
33289 rm -f conftest.$ac_objext conftest$ac_exeext
33290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33291   (eval $ac_link) 2>conftest.er1
33292   ac_status=$?
33293   grep -v '^ *+' conftest.er1 >conftest.err
33294   rm -f conftest.er1
33295   cat conftest.err >&5
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); } &&
33298          { ac_try='test -z "$ac_c_werror_flag"
33299                          || test ! -s conftest.err'
33300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301   (eval $ac_try) 2>&5
33302   ac_status=$?
33303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304   (exit $ac_status); }; } &&
33305          { ac_try='test -s conftest$ac_exeext'
33306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33307   (eval $ac_try) 2>&5
33308   ac_status=$?
33309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310   (exit $ac_status); }; }; then
33311   eval "$as_ac_var=yes"
33312 else
33313   echo "$as_me: failed program was:" >&5
33314 sed 's/^/| /' conftest.$ac_ext >&5
33315
33316 eval "$as_ac_var=no"
33317 fi
33318 rm -f conftest.err conftest.$ac_objext \
33319       conftest$ac_exeext conftest.$ac_ext
33320 fi
33321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33323 if test `eval echo '${'$as_ac_var'}'` = yes; then
33324   cat >>confdefs.h <<_ACEOF
33325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33326 _ACEOF
33327
33328 fi
33329 done
33330
33331
33332     if test "$ac_cv_func_localtime" = "yes"; then
33333         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33334 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33335 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33336   echo $ECHO_N "(cached) $ECHO_C" >&6
33337 else
33338
33339             cat >conftest.$ac_ext <<_ACEOF
33340 /* confdefs.h.  */
33341 _ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h.  */
33345
33346                     #include <time.h>
33347
33348 int
33349 main ()
33350 {
33351
33352                     struct tm tm;
33353                     tm.tm_gmtoff++;
33354
33355   ;
33356   return 0;
33357 }
33358 _ACEOF
33359 rm -f conftest.$ac_objext
33360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33361   (eval $ac_compile) 2>conftest.er1
33362   ac_status=$?
33363   grep -v '^ *+' conftest.er1 >conftest.err
33364   rm -f conftest.er1
33365   cat conftest.err >&5
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); } &&
33368          { ac_try='test -z "$ac_c_werror_flag"
33369                          || test ! -s conftest.err'
33370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371   (eval $ac_try) 2>&5
33372   ac_status=$?
33373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374   (exit $ac_status); }; } &&
33375          { ac_try='test -s conftest.$ac_objext'
33376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377   (eval $ac_try) 2>&5
33378   ac_status=$?
33379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); }; }; then
33381
33382                     wx_cv_struct_tm_has_gmtoff=yes
33383
33384 else
33385   echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33387
33388 wx_cv_struct_tm_has_gmtoff=no
33389
33390 fi
33391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33392
33393 fi
33394 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33395 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
33396     fi
33397
33398     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
33399         cat >>confdefs.h <<\_ACEOF
33400 #define WX_GMTOFF_IN_TM 1
33401 _ACEOF
33402
33403     fi
33404
33405
33406
33407 for ac_func in gettimeofday ftime
33408 do
33409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33410 echo "$as_me:$LINENO: checking for $ac_func" >&5
33411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33412 if eval "test \"\${$as_ac_var+set}\" = set"; then
33413   echo $ECHO_N "(cached) $ECHO_C" >&6
33414 else
33415   cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h.  */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h.  */
33421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33423 #define $ac_func innocuous_$ac_func
33424
33425 /* System header to define __stub macros and hopefully few prototypes,
33426     which can conflict with char $ac_func (); below.
33427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33428     <limits.h> exists even on freestanding compilers.  */
33429
33430 #ifdef __STDC__
33431 # include <limits.h>
33432 #else
33433 # include <assert.h>
33434 #endif
33435
33436 #undef $ac_func
33437
33438 /* Override any gcc2 internal prototype to avoid an error.  */
33439 #ifdef __cplusplus
33440 extern "C"
33441 {
33442 #endif
33443 /* We use char because int might match the return type of a gcc2
33444    builtin and then its argument prototype would still apply.  */
33445 char $ac_func ();
33446 /* The GNU C library defines this for functions which it implements
33447     to always fail with ENOSYS.  Some functions are actually named
33448     something starting with __ and the normal name is an alias.  */
33449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33450 choke me
33451 #else
33452 char (*f) () = $ac_func;
33453 #endif
33454 #ifdef __cplusplus
33455 }
33456 #endif
33457
33458 int
33459 main ()
33460 {
33461 return f != $ac_func;
33462   ;
33463   return 0;
33464 }
33465 _ACEOF
33466 rm -f conftest.$ac_objext conftest$ac_exeext
33467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33468   (eval $ac_link) 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } &&
33475          { ac_try='test -z "$ac_c_werror_flag"
33476                          || test ! -s conftest.err'
33477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478   (eval $ac_try) 2>&5
33479   ac_status=$?
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); }; } &&
33482          { ac_try='test -s conftest$ac_exeext'
33483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484   (eval $ac_try) 2>&5
33485   ac_status=$?
33486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487   (exit $ac_status); }; }; then
33488   eval "$as_ac_var=yes"
33489 else
33490   echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33492
33493 eval "$as_ac_var=no"
33494 fi
33495 rm -f conftest.err conftest.$ac_objext \
33496       conftest$ac_exeext conftest.$ac_ext
33497 fi
33498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33500 if test `eval echo '${'$as_ac_var'}'` = yes; then
33501   cat >>confdefs.h <<_ACEOF
33502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33503 _ACEOF
33504  break
33505 fi
33506 done
33507
33508
33509     if test "$ac_cv_func_gettimeofday" = "yes"; then
33510         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33511 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33512 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33513   echo $ECHO_N "(cached) $ECHO_C" >&6
33514 else
33515
33516
33517
33518             ac_ext=cc
33519 ac_cpp='$CXXCPP $CPPFLAGS'
33520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33523
33524
33525             cat >conftest.$ac_ext <<_ACEOF
33526 /* confdefs.h.  */
33527 _ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h.  */
33531
33532                     #include <sys/time.h>
33533                     #include <unistd.h>
33534
33535 int
33536 main ()
33537 {
33538
33539                     struct timeval tv;
33540                     gettimeofday(&tv, NULL);
33541
33542   ;
33543   return 0;
33544 }
33545 _ACEOF
33546 rm -f conftest.$ac_objext
33547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33548   (eval $ac_compile) 2>conftest.er1
33549   ac_status=$?
33550   grep -v '^ *+' conftest.er1 >conftest.err
33551   rm -f conftest.er1
33552   cat conftest.err >&5
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); } &&
33555          { ac_try='test -z "$ac_cxx_werror_flag"
33556                          || test ! -s conftest.err'
33557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558   (eval $ac_try) 2>&5
33559   ac_status=$?
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); }; } &&
33562          { ac_try='test -s conftest.$ac_objext'
33563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33564   (eval $ac_try) 2>&5
33565   ac_status=$?
33566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567   (exit $ac_status); }; }; then
33568   wx_cv_func_gettimeofday_has_2_args=yes
33569 else
33570   echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33572
33573 cat >conftest.$ac_ext <<_ACEOF
33574 /* confdefs.h.  */
33575 _ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h.  */
33579
33580                         #include <sys/time.h>
33581                         #include <unistd.h>
33582
33583 int
33584 main ()
33585 {
33586
33587                         struct timeval tv;
33588                         gettimeofday(&tv);
33589
33590   ;
33591   return 0;
33592 }
33593 _ACEOF
33594 rm -f conftest.$ac_objext
33595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33596   (eval $ac_compile) 2>conftest.er1
33597   ac_status=$?
33598   grep -v '^ *+' conftest.er1 >conftest.err
33599   rm -f conftest.er1
33600   cat conftest.err >&5
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); } &&
33603          { ac_try='test -z "$ac_cxx_werror_flag"
33604                          || test ! -s conftest.err'
33605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33606   (eval $ac_try) 2>&5
33607   ac_status=$?
33608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609   (exit $ac_status); }; } &&
33610          { ac_try='test -s conftest.$ac_objext'
33611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612   (eval $ac_try) 2>&5
33613   ac_status=$?
33614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615   (exit $ac_status); }; }; then
33616   wx_cv_func_gettimeofday_has_2_args=no
33617 else
33618   echo "$as_me: failed program was:" >&5
33619 sed 's/^/| /' conftest.$ac_ext >&5
33620
33621
33622                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33623 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
33624                         wx_cv_func_gettimeofday_has_2_args=unknown
33625
33626
33627 fi
33628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33629
33630 fi
33631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33632             ac_ext=c
33633 ac_cpp='$CPP $CPPFLAGS'
33634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33637
33638
33639 fi
33640 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33641 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
33642
33643         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
33644             cat >>confdefs.h <<\_ACEOF
33645 #define WX_GETTIMEOFDAY_NO_TZ 1
33646 _ACEOF
33647
33648         fi
33649     fi
33650
33651     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33652 fi
33653
33654
33655 if test "$wxUSE_SOCKETS" = "yes"; then
33656     if test "$wxUSE_MGL" = "1"; then
33657         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33658 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
33659         wxUSE_SOCKETS="no"
33660     fi
33661     if test "$wxUSE_COCOA" = "1"; then
33662         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
33663 echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
33664         wxUSE_SOCKETS="no"
33665     fi
33666 fi
33667
33668 if test "$wxUSE_SOCKETS" = "yes"; then
33669         if test "$TOOLKIT" != "MSW"; then
33670                 echo "$as_me:$LINENO: checking for socket" >&5
33671 echo $ECHO_N "checking for socket... $ECHO_C" >&6
33672 if test "${ac_cv_func_socket+set}" = set; then
33673   echo $ECHO_N "(cached) $ECHO_C" >&6
33674 else
33675   cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
33682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33683 #define socket innocuous_socket
33684
33685 /* System header to define __stub macros and hopefully few prototypes,
33686     which can conflict with char socket (); below.
33687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33688     <limits.h> exists even on freestanding compilers.  */
33689
33690 #ifdef __STDC__
33691 # include <limits.h>
33692 #else
33693 # include <assert.h>
33694 #endif
33695
33696 #undef socket
33697
33698 /* Override any gcc2 internal prototype to avoid an error.  */
33699 #ifdef __cplusplus
33700 extern "C"
33701 {
33702 #endif
33703 /* We use char because int might match the return type of a gcc2
33704    builtin and then its argument prototype would still apply.  */
33705 char socket ();
33706 /* The GNU C library defines this for functions which it implements
33707     to always fail with ENOSYS.  Some functions are actually named
33708     something starting with __ and the normal name is an alias.  */
33709 #if defined (__stub_socket) || defined (__stub___socket)
33710 choke me
33711 #else
33712 char (*f) () = socket;
33713 #endif
33714 #ifdef __cplusplus
33715 }
33716 #endif
33717
33718 int
33719 main ()
33720 {
33721 return f != socket;
33722   ;
33723   return 0;
33724 }
33725 _ACEOF
33726 rm -f conftest.$ac_objext conftest$ac_exeext
33727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33728   (eval $ac_link) 2>conftest.er1
33729   ac_status=$?
33730   grep -v '^ *+' conftest.er1 >conftest.err
33731   rm -f conftest.er1
33732   cat conftest.err >&5
33733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734   (exit $ac_status); } &&
33735          { ac_try='test -z "$ac_c_werror_flag"
33736                          || test ! -s conftest.err'
33737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738   (eval $ac_try) 2>&5
33739   ac_status=$?
33740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741   (exit $ac_status); }; } &&
33742          { ac_try='test -s conftest$ac_exeext'
33743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744   (eval $ac_try) 2>&5
33745   ac_status=$?
33746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747   (exit $ac_status); }; }; then
33748   ac_cv_func_socket=yes
33749 else
33750   echo "$as_me: failed program was:" >&5
33751 sed 's/^/| /' conftest.$ac_ext >&5
33752
33753 ac_cv_func_socket=no
33754 fi
33755 rm -f conftest.err conftest.$ac_objext \
33756       conftest$ac_exeext conftest.$ac_ext
33757 fi
33758 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33759 echo "${ECHO_T}$ac_cv_func_socket" >&6
33760 if test $ac_cv_func_socket = yes; then
33761   :
33762 else
33763
33764                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
33765 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33766 if test "${ac_cv_lib_socket_socket+set}" = set; then
33767   echo $ECHO_N "(cached) $ECHO_C" >&6
33768 else
33769   ac_check_lib_save_LIBS=$LIBS
33770 LIBS="-lsocket  $LIBS"
33771 cat >conftest.$ac_ext <<_ACEOF
33772 /* confdefs.h.  */
33773 _ACEOF
33774 cat confdefs.h >>conftest.$ac_ext
33775 cat >>conftest.$ac_ext <<_ACEOF
33776 /* end confdefs.h.  */
33777
33778 /* Override any gcc2 internal prototype to avoid an error.  */
33779 #ifdef __cplusplus
33780 extern "C"
33781 #endif
33782 /* We use char because int might match the return type of a gcc2
33783    builtin and then its argument prototype would still apply.  */
33784 char socket ();
33785 int
33786 main ()
33787 {
33788 socket ();
33789   ;
33790   return 0;
33791 }
33792 _ACEOF
33793 rm -f conftest.$ac_objext conftest$ac_exeext
33794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33795   (eval $ac_link) 2>conftest.er1
33796   ac_status=$?
33797   grep -v '^ *+' conftest.er1 >conftest.err
33798   rm -f conftest.er1
33799   cat conftest.err >&5
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } &&
33802          { ac_try='test -z "$ac_c_werror_flag"
33803                          || test ! -s conftest.err'
33804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805   (eval $ac_try) 2>&5
33806   ac_status=$?
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); }; } &&
33809          { ac_try='test -s conftest$ac_exeext'
33810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811   (eval $ac_try) 2>&5
33812   ac_status=$?
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); }; }; then
33815   ac_cv_lib_socket_socket=yes
33816 else
33817   echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33819
33820 ac_cv_lib_socket_socket=no
33821 fi
33822 rm -f conftest.err conftest.$ac_objext \
33823       conftest$ac_exeext conftest.$ac_ext
33824 LIBS=$ac_check_lib_save_LIBS
33825 fi
33826 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33827 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33828 if test $ac_cv_lib_socket_socket = yes; then
33829   if test "$INET_LINK" != " -lsocket"; then
33830                         INET_LINK="$INET_LINK -lsocket"
33831                     fi
33832 else
33833
33834                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
33835 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
33836                         wxUSE_SOCKETS=no
33837
33838
33839 fi
33840
33841
33842
33843 fi
33844
33845     fi
33846 fi
33847
33848 if test "$wxUSE_SOCKETS" = "yes" ; then
33849                 if test "$TOOLKIT" != "MSW"; then
33850                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33851 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33852 if test "${wx_cv_type_getsockname3+set}" = set; then
33853   echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855
33856                 cat >conftest.$ac_ext <<_ACEOF
33857 /* confdefs.h.  */
33858 _ACEOF
33859 cat confdefs.h >>conftest.$ac_ext
33860 cat >>conftest.$ac_ext <<_ACEOF
33861 /* end confdefs.h.  */
33862
33863                         #include <sys/types.h>
33864                         #include <sys/socket.h>
33865
33866 int
33867 main ()
33868 {
33869
33870                         socklen_t len;
33871                         getsockname(0, 0, &len);
33872
33873   ;
33874   return 0;
33875 }
33876 _ACEOF
33877 rm -f conftest.$ac_objext
33878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33879   (eval $ac_compile) 2>conftest.er1
33880   ac_status=$?
33881   grep -v '^ *+' conftest.er1 >conftest.err
33882   rm -f conftest.er1
33883   cat conftest.err >&5
33884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885   (exit $ac_status); } &&
33886          { ac_try='test -z "$ac_c_werror_flag"
33887                          || test ! -s conftest.err'
33888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889   (eval $ac_try) 2>&5
33890   ac_status=$?
33891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892   (exit $ac_status); }; } &&
33893          { ac_try='test -s conftest.$ac_objext'
33894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33895   (eval $ac_try) 2>&5
33896   ac_status=$?
33897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898   (exit $ac_status); }; }; then
33899   wx_cv_type_getsockname3=socklen_t
33900 else
33901   echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33903
33904
33905                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
33906                         if test "$GCC" = yes ; then
33907                             CFLAGS="$CFLAGS -Werror"
33908                         fi
33909
33910                         cat >conftest.$ac_ext <<_ACEOF
33911 /* confdefs.h.  */
33912 _ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h.  */
33916
33917                                 #include <sys/types.h>
33918                                 #include <sys/socket.h>
33919
33920 int
33921 main ()
33922 {
33923
33924                                 size_t len;
33925                                 getsockname(0, 0, &len);
33926
33927   ;
33928   return 0;
33929 }
33930 _ACEOF
33931 rm -f conftest.$ac_objext
33932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33933   (eval $ac_compile) 2>conftest.er1
33934   ac_status=$?
33935   grep -v '^ *+' conftest.er1 >conftest.err
33936   rm -f conftest.er1
33937   cat conftest.err >&5
33938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939   (exit $ac_status); } &&
33940          { ac_try='test -z "$ac_c_werror_flag"
33941                          || test ! -s conftest.err'
33942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33943   (eval $ac_try) 2>&5
33944   ac_status=$?
33945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33946   (exit $ac_status); }; } &&
33947          { ac_try='test -s conftest.$ac_objext'
33948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33949   (eval $ac_try) 2>&5
33950   ac_status=$?
33951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952   (exit $ac_status); }; }; then
33953   wx_cv_type_getsockname3=size_t
33954 else
33955   echo "$as_me: failed program was:" >&5
33956 sed 's/^/| /' conftest.$ac_ext >&5
33957
33958 cat >conftest.$ac_ext <<_ACEOF
33959 /* confdefs.h.  */
33960 _ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h.  */
33964
33965                                     #include <sys/types.h>
33966                                     #include <sys/socket.h>
33967
33968 int
33969 main ()
33970 {
33971
33972                                     int len;
33973                                     getsockname(0, 0, &len);
33974
33975   ;
33976   return 0;
33977 }
33978 _ACEOF
33979 rm -f conftest.$ac_objext
33980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33981   (eval $ac_compile) 2>conftest.er1
33982   ac_status=$?
33983   grep -v '^ *+' conftest.er1 >conftest.err
33984   rm -f conftest.er1
33985   cat conftest.err >&5
33986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987   (exit $ac_status); } &&
33988          { ac_try='test -z "$ac_c_werror_flag"
33989                          || test ! -s conftest.err'
33990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33991   (eval $ac_try) 2>&5
33992   ac_status=$?
33993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994   (exit $ac_status); }; } &&
33995          { ac_try='test -s conftest.$ac_objext'
33996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33997   (eval $ac_try) 2>&5
33998   ac_status=$?
33999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000   (exit $ac_status); }; }; then
34001   wx_cv_type_getsockname3=int
34002 else
34003   echo "$as_me: failed program was:" >&5
34004 sed 's/^/| /' conftest.$ac_ext >&5
34005
34006 wx_cv_type_getsockname3=unknown
34007
34008 fi
34009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34010
34011 fi
34012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34013
34014                         CFLAGS="$CFLAGS_OLD"
34015
34016
34017 fi
34018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34019
34020 fi
34021 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
34022 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
34023
34024         if test "$wx_cv_type_getsockname3" = "unknown"; then
34025             wxUSE_SOCKETS=no
34026             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
34027 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
34028         else
34029             cat >>confdefs.h <<_ACEOF
34030 #define SOCKLEN_T $wx_cv_type_getsockname3
34031 _ACEOF
34032
34033         fi
34034     fi
34035 fi
34036
34037 if test "$wxUSE_SOCKETS" = "yes" ; then
34038     cat >>confdefs.h <<\_ACEOF
34039 #define wxUSE_SOCKETS 1
34040 _ACEOF
34041
34042     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
34043 fi
34044
34045 if test "$wxUSE_PROTOCOL" = "yes"; then
34046     if test "$wxUSE_SOCKETS" != "yes"; then
34047         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
34048 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
34049         wxUSE_PROTOCOL=no
34050     fi
34051 fi
34052
34053 if test "$wxUSE_PROTOCOL" = "yes"; then
34054     cat >>confdefs.h <<\_ACEOF
34055 #define wxUSE_PROTOCOL 1
34056 _ACEOF
34057
34058
34059     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
34060         cat >>confdefs.h <<\_ACEOF
34061 #define wxUSE_PROTOCOL_HTTP 1
34062 _ACEOF
34063
34064     fi
34065     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
34066         cat >>confdefs.h <<\_ACEOF
34067 #define wxUSE_PROTOCOL_FTP 1
34068 _ACEOF
34069
34070     fi
34071     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
34072         cat >>confdefs.h <<\_ACEOF
34073 #define wxUSE_PROTOCOL_FILE 1
34074 _ACEOF
34075
34076     fi
34077 else
34078     if test "$wxUSE_FS_INET" = "yes"; then
34079         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
34080 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
34081         wxUSE_FS_INET="no"
34082     fi
34083 fi
34084
34085 if test "$wxUSE_URL" = "yes"; then
34086     if test "$wxUSE_PROTOCOL" != "yes"; then
34087         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
34088 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
34089         wxUSE_URL=no
34090     fi
34091     if test "$wxUSE_URL" = "yes"; then
34092         cat >>confdefs.h <<\_ACEOF
34093 #define wxUSE_URL 1
34094 _ACEOF
34095
34096     fi
34097 fi
34098
34099 if test "$wxUSE_FS_INET" = "yes"; then
34100   cat >>confdefs.h <<\_ACEOF
34101 #define wxUSE_FS_INET 1
34102 _ACEOF
34103
34104 fi
34105
34106
34107 if test "$wxUSE_GUI" = "yes"; then
34108
34109     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
34110         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
34111 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
34112         wxUSE_JOYSTICK=no
34113      fi
34114
34115          if test "$TOOLKIT" != "MSW"; then
34116         if test "$wxUSE_JOYSTICK" = "yes"; then
34117
34118 for ac_header in linux/joystick.h
34119 do
34120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34122   echo "$as_me:$LINENO: checking for $ac_header" >&5
34123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34125   echo $ECHO_N "(cached) $ECHO_C" >&6
34126 fi
34127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34129 else
34130   # Is the header compilable?
34131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34133 cat >conftest.$ac_ext <<_ACEOF
34134 /* confdefs.h.  */
34135 _ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h.  */
34139 $ac_includes_default
34140 #include <$ac_header>
34141 _ACEOF
34142 rm -f conftest.$ac_objext
34143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34144   (eval $ac_compile) 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } &&
34151          { ac_try='test -z "$ac_c_werror_flag"
34152                          || test ! -s conftest.err'
34153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154   (eval $ac_try) 2>&5
34155   ac_status=$?
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); }; } &&
34158          { ac_try='test -s conftest.$ac_objext'
34159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160   (eval $ac_try) 2>&5
34161   ac_status=$?
34162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163   (exit $ac_status); }; }; then
34164   ac_header_compiler=yes
34165 else
34166   echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34168
34169 ac_header_compiler=no
34170 fi
34171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34173 echo "${ECHO_T}$ac_header_compiler" >&6
34174
34175 # Is the header present?
34176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34178 cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184 #include <$ac_header>
34185 _ACEOF
34186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34188   ac_status=$?
34189   grep -v '^ *+' conftest.er1 >conftest.err
34190   rm -f conftest.er1
34191   cat conftest.err >&5
34192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193   (exit $ac_status); } >/dev/null; then
34194   if test -s conftest.err; then
34195     ac_cpp_err=$ac_c_preproc_warn_flag
34196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34197   else
34198     ac_cpp_err=
34199   fi
34200 else
34201   ac_cpp_err=yes
34202 fi
34203 if test -z "$ac_cpp_err"; then
34204   ac_header_preproc=yes
34205 else
34206   echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209   ac_header_preproc=no
34210 fi
34211 rm -f conftest.err conftest.$ac_ext
34212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34213 echo "${ECHO_T}$ac_header_preproc" >&6
34214
34215 # So?  What about this header?
34216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34217   yes:no: )
34218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34222     ac_header_preproc=yes
34223     ;;
34224   no:yes:* )
34225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34237     (
34238       cat <<\_ASBOX
34239 ## ----------------------------------------- ##
34240 ## Report this to wx-dev@lists.wxwindows.org ##
34241 ## ----------------------------------------- ##
34242 _ASBOX
34243     ) |
34244       sed "s/^/$as_me: WARNING:     /" >&2
34245     ;;
34246 esac
34247 echo "$as_me:$LINENO: checking for $ac_header" >&5
34248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34250   echo $ECHO_N "(cached) $ECHO_C" >&6
34251 else
34252   eval "$as_ac_Header=\$ac_header_preproc"
34253 fi
34254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34256
34257 fi
34258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34259   cat >>confdefs.h <<_ACEOF
34260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34261 _ACEOF
34262
34263 fi
34264
34265 done
34266
34267             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34268                 wxUSE_JOYSTICK=no
34269                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34270 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
34271             fi
34272         fi
34273     fi
34274
34275     if test "$wxUSE_JOYSTICK" = "yes"; then
34276         cat >>confdefs.h <<\_ACEOF
34277 #define wxUSE_JOYSTICK 1
34278 _ACEOF
34279
34280         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34281     fi
34282 fi
34283
34284
34285 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34286
34287     HAVE_DL_FUNCS=0
34288     HAVE_SHL_FUNCS=0
34289     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34290         if test "$USE_DARWIN" = 1; then
34291                         HAVE_DL_FUNCS=1
34292         else
34293
34294 for ac_func in dlopen
34295 do
34296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34297 echo "$as_me:$LINENO: checking for $ac_func" >&5
34298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34299 if eval "test \"\${$as_ac_var+set}\" = set"; then
34300   echo $ECHO_N "(cached) $ECHO_C" >&6
34301 else
34302   cat >conftest.$ac_ext <<_ACEOF
34303 /* confdefs.h.  */
34304 _ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h.  */
34308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34310 #define $ac_func innocuous_$ac_func
34311
34312 /* System header to define __stub macros and hopefully few prototypes,
34313     which can conflict with char $ac_func (); below.
34314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34315     <limits.h> exists even on freestanding compilers.  */
34316
34317 #ifdef __STDC__
34318 # include <limits.h>
34319 #else
34320 # include <assert.h>
34321 #endif
34322
34323 #undef $ac_func
34324
34325 /* Override any gcc2 internal prototype to avoid an error.  */
34326 #ifdef __cplusplus
34327 extern "C"
34328 {
34329 #endif
34330 /* We use char because int might match the return type of a gcc2
34331    builtin and then its argument prototype would still apply.  */
34332 char $ac_func ();
34333 /* The GNU C library defines this for functions which it implements
34334     to always fail with ENOSYS.  Some functions are actually named
34335     something starting with __ and the normal name is an alias.  */
34336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34337 choke me
34338 #else
34339 char (*f) () = $ac_func;
34340 #endif
34341 #ifdef __cplusplus
34342 }
34343 #endif
34344
34345 int
34346 main ()
34347 {
34348 return f != $ac_func;
34349   ;
34350   return 0;
34351 }
34352 _ACEOF
34353 rm -f conftest.$ac_objext conftest$ac_exeext
34354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34355   (eval $ac_link) 2>conftest.er1
34356   ac_status=$?
34357   grep -v '^ *+' conftest.er1 >conftest.err
34358   rm -f conftest.er1
34359   cat conftest.err >&5
34360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361   (exit $ac_status); } &&
34362          { ac_try='test -z "$ac_c_werror_flag"
34363                          || test ! -s conftest.err'
34364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365   (eval $ac_try) 2>&5
34366   ac_status=$?
34367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368   (exit $ac_status); }; } &&
34369          { ac_try='test -s conftest$ac_exeext'
34370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371   (eval $ac_try) 2>&5
34372   ac_status=$?
34373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374   (exit $ac_status); }; }; then
34375   eval "$as_ac_var=yes"
34376 else
34377   echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34379
34380 eval "$as_ac_var=no"
34381 fi
34382 rm -f conftest.err conftest.$ac_objext \
34383       conftest$ac_exeext conftest.$ac_ext
34384 fi
34385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34387 if test `eval echo '${'$as_ac_var'}'` = yes; then
34388   cat >>confdefs.h <<_ACEOF
34389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34390 _ACEOF
34391
34392                 cat >>confdefs.h <<\_ACEOF
34393 #define HAVE_DLOPEN 1
34394 _ACEOF
34395
34396                 HAVE_DL_FUNCS=1
34397
34398 else
34399
34400                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34403   echo $ECHO_N "(cached) $ECHO_C" >&6
34404 else
34405   ac_check_lib_save_LIBS=$LIBS
34406 LIBS="-ldl  $LIBS"
34407 cat >conftest.$ac_ext <<_ACEOF
34408 /* confdefs.h.  */
34409 _ACEOF
34410 cat confdefs.h >>conftest.$ac_ext
34411 cat >>conftest.$ac_ext <<_ACEOF
34412 /* end confdefs.h.  */
34413
34414 /* Override any gcc2 internal prototype to avoid an error.  */
34415 #ifdef __cplusplus
34416 extern "C"
34417 #endif
34418 /* We use char because int might match the return type of a gcc2
34419    builtin and then its argument prototype would still apply.  */
34420 char dlopen ();
34421 int
34422 main ()
34423 {
34424 dlopen ();
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext conftest$ac_exeext
34430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34431   (eval $ac_link) 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } &&
34438          { ac_try='test -z "$ac_c_werror_flag"
34439                          || test ! -s conftest.err'
34440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441   (eval $ac_try) 2>&5
34442   ac_status=$?
34443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444   (exit $ac_status); }; } &&
34445          { ac_try='test -s conftest$ac_exeext'
34446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447   (eval $ac_try) 2>&5
34448   ac_status=$?
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); }; }; then
34451   ac_cv_lib_dl_dlopen=yes
34452 else
34453   echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456 ac_cv_lib_dl_dlopen=no
34457 fi
34458 rm -f conftest.err conftest.$ac_objext \
34459       conftest$ac_exeext conftest.$ac_ext
34460 LIBS=$ac_check_lib_save_LIBS
34461 fi
34462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34463 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34464 if test $ac_cv_lib_dl_dlopen = yes; then
34465
34466                                 cat >>confdefs.h <<\_ACEOF
34467 #define HAVE_DLOPEN 1
34468 _ACEOF
34469
34470                                 HAVE_DL_FUNCS=1
34471                                 DL_LINK=" -ldl$DL_LINK"
34472
34473 else
34474
34475
34476 for ac_func in shl_load
34477 do
34478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34479 echo "$as_me:$LINENO: checking for $ac_func" >&5
34480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34481 if eval "test \"\${$as_ac_var+set}\" = set"; then
34482   echo $ECHO_N "(cached) $ECHO_C" >&6
34483 else
34484   cat >conftest.$ac_ext <<_ACEOF
34485 /* confdefs.h.  */
34486 _ACEOF
34487 cat confdefs.h >>conftest.$ac_ext
34488 cat >>conftest.$ac_ext <<_ACEOF
34489 /* end confdefs.h.  */
34490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34492 #define $ac_func innocuous_$ac_func
34493
34494 /* System header to define __stub macros and hopefully few prototypes,
34495     which can conflict with char $ac_func (); below.
34496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34497     <limits.h> exists even on freestanding compilers.  */
34498
34499 #ifdef __STDC__
34500 # include <limits.h>
34501 #else
34502 # include <assert.h>
34503 #endif
34504
34505 #undef $ac_func
34506
34507 /* Override any gcc2 internal prototype to avoid an error.  */
34508 #ifdef __cplusplus
34509 extern "C"
34510 {
34511 #endif
34512 /* We use char because int might match the return type of a gcc2
34513    builtin and then its argument prototype would still apply.  */
34514 char $ac_func ();
34515 /* The GNU C library defines this for functions which it implements
34516     to always fail with ENOSYS.  Some functions are actually named
34517     something starting with __ and the normal name is an alias.  */
34518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34519 choke me
34520 #else
34521 char (*f) () = $ac_func;
34522 #endif
34523 #ifdef __cplusplus
34524 }
34525 #endif
34526
34527 int
34528 main ()
34529 {
34530 return f != $ac_func;
34531   ;
34532   return 0;
34533 }
34534 _ACEOF
34535 rm -f conftest.$ac_objext conftest$ac_exeext
34536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34537   (eval $ac_link) 2>conftest.er1
34538   ac_status=$?
34539   grep -v '^ *+' conftest.er1 >conftest.err
34540   rm -f conftest.er1
34541   cat conftest.err >&5
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); } &&
34544          { ac_try='test -z "$ac_c_werror_flag"
34545                          || test ! -s conftest.err'
34546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547   (eval $ac_try) 2>&5
34548   ac_status=$?
34549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550   (exit $ac_status); }; } &&
34551          { ac_try='test -s conftest$ac_exeext'
34552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553   (eval $ac_try) 2>&5
34554   ac_status=$?
34555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556   (exit $ac_status); }; }; then
34557   eval "$as_ac_var=yes"
34558 else
34559   echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34561
34562 eval "$as_ac_var=no"
34563 fi
34564 rm -f conftest.err conftest.$ac_objext \
34565       conftest$ac_exeext conftest.$ac_ext
34566 fi
34567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34569 if test `eval echo '${'$as_ac_var'}'` = yes; then
34570   cat >>confdefs.h <<_ACEOF
34571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34572 _ACEOF
34573
34574                                                 cat >>confdefs.h <<\_ACEOF
34575 #define HAVE_SHL_LOAD 1
34576 _ACEOF
34577
34578                                                 HAVE_SHL_FUNCS=1
34579
34580 else
34581
34582                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34583 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34584 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34585   echo $ECHO_N "(cached) $ECHO_C" >&6
34586 else
34587   ac_check_lib_save_LIBS=$LIBS
34588 LIBS="-lshl_load  $LIBS"
34589 cat >conftest.$ac_ext <<_ACEOF
34590 /* confdefs.h.  */
34591 _ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h.  */
34595
34596 /* Override any gcc2 internal prototype to avoid an error.  */
34597 #ifdef __cplusplus
34598 extern "C"
34599 #endif
34600 /* We use char because int might match the return type of a gcc2
34601    builtin and then its argument prototype would still apply.  */
34602 char dld ();
34603 int
34604 main ()
34605 {
34606 dld ();
34607   ;
34608   return 0;
34609 }
34610 _ACEOF
34611 rm -f conftest.$ac_objext conftest$ac_exeext
34612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34613   (eval $ac_link) 2>conftest.er1
34614   ac_status=$?
34615   grep -v '^ *+' conftest.er1 >conftest.err
34616   rm -f conftest.er1
34617   cat conftest.err >&5
34618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619   (exit $ac_status); } &&
34620          { ac_try='test -z "$ac_c_werror_flag"
34621                          || test ! -s conftest.err'
34622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623   (eval $ac_try) 2>&5
34624   ac_status=$?
34625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626   (exit $ac_status); }; } &&
34627          { ac_try='test -s conftest$ac_exeext'
34628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34629   (eval $ac_try) 2>&5
34630   ac_status=$?
34631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632   (exit $ac_status); }; }; then
34633   ac_cv_lib_shl_load_dld=yes
34634 else
34635   echo "$as_me: failed program was:" >&5
34636 sed 's/^/| /' conftest.$ac_ext >&5
34637
34638 ac_cv_lib_shl_load_dld=no
34639 fi
34640 rm -f conftest.err conftest.$ac_objext \
34641       conftest$ac_exeext conftest.$ac_ext
34642 LIBS=$ac_check_lib_save_LIBS
34643 fi
34644 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34645 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34646 if test $ac_cv_lib_shl_load_dld = yes; then
34647
34648                                                                 HAVE_SHL_FUNCS=1
34649                                                                 DL_LINK=" -ldld$DL_LINK"
34650
34651 fi
34652
34653
34654 fi
34655 done
34656
34657
34658 fi
34659
34660
34661 fi
34662 done
34663
34664
34665                 if test "$HAVE_DL_FUNCS" = 1; then
34666
34667 for ac_func in dlerror
34668 do
34669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34670 echo "$as_me:$LINENO: checking for $ac_func" >&5
34671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34672 if eval "test \"\${$as_ac_var+set}\" = set"; then
34673   echo $ECHO_N "(cached) $ECHO_C" >&6
34674 else
34675   cat >conftest.$ac_ext <<_ACEOF
34676 /* confdefs.h.  */
34677 _ACEOF
34678 cat confdefs.h >>conftest.$ac_ext
34679 cat >>conftest.$ac_ext <<_ACEOF
34680 /* end confdefs.h.  */
34681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34683 #define $ac_func innocuous_$ac_func
34684
34685 /* System header to define __stub macros and hopefully few prototypes,
34686     which can conflict with char $ac_func (); below.
34687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34688     <limits.h> exists even on freestanding compilers.  */
34689
34690 #ifdef __STDC__
34691 # include <limits.h>
34692 #else
34693 # include <assert.h>
34694 #endif
34695
34696 #undef $ac_func
34697
34698 /* Override any gcc2 internal prototype to avoid an error.  */
34699 #ifdef __cplusplus
34700 extern "C"
34701 {
34702 #endif
34703 /* We use char because int might match the return type of a gcc2
34704    builtin and then its argument prototype would still apply.  */
34705 char $ac_func ();
34706 /* The GNU C library defines this for functions which it implements
34707     to always fail with ENOSYS.  Some functions are actually named
34708     something starting with __ and the normal name is an alias.  */
34709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34710 choke me
34711 #else
34712 char (*f) () = $ac_func;
34713 #endif
34714 #ifdef __cplusplus
34715 }
34716 #endif
34717
34718 int
34719 main ()
34720 {
34721 return f != $ac_func;
34722   ;
34723   return 0;
34724 }
34725 _ACEOF
34726 rm -f conftest.$ac_objext conftest$ac_exeext
34727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34728   (eval $ac_link) 2>conftest.er1
34729   ac_status=$?
34730   grep -v '^ *+' conftest.er1 >conftest.err
34731   rm -f conftest.er1
34732   cat conftest.err >&5
34733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734   (exit $ac_status); } &&
34735          { ac_try='test -z "$ac_c_werror_flag"
34736                          || test ! -s conftest.err'
34737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34738   (eval $ac_try) 2>&5
34739   ac_status=$?
34740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741   (exit $ac_status); }; } &&
34742          { ac_try='test -s conftest$ac_exeext'
34743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744   (eval $ac_try) 2>&5
34745   ac_status=$?
34746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747   (exit $ac_status); }; }; then
34748   eval "$as_ac_var=yes"
34749 else
34750   echo "$as_me: failed program was:" >&5
34751 sed 's/^/| /' conftest.$ac_ext >&5
34752
34753 eval "$as_ac_var=no"
34754 fi
34755 rm -f conftest.err conftest.$ac_objext \
34756       conftest$ac_exeext conftest.$ac_ext
34757 fi
34758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34760 if test `eval echo '${'$as_ac_var'}'` = yes; then
34761   cat >>confdefs.h <<_ACEOF
34762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34763 _ACEOF
34764  cat >>confdefs.h <<\_ACEOF
34765 #define HAVE_DLERROR 1
34766 _ACEOF
34767
34768 else
34769
34770                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34771 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34772 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34773   echo $ECHO_N "(cached) $ECHO_C" >&6
34774 else
34775   ac_check_lib_save_LIBS=$LIBS
34776 LIBS="-ldl  $LIBS"
34777 cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h.  */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h.  */
34783
34784 /* Override any gcc2 internal prototype to avoid an error.  */
34785 #ifdef __cplusplus
34786 extern "C"
34787 #endif
34788 /* We use char because int might match the return type of a gcc2
34789    builtin and then its argument prototype would still apply.  */
34790 char dlerror ();
34791 int
34792 main ()
34793 {
34794 dlerror ();
34795   ;
34796   return 0;
34797 }
34798 _ACEOF
34799 rm -f conftest.$ac_objext conftest$ac_exeext
34800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34801   (eval $ac_link) 2>conftest.er1
34802   ac_status=$?
34803   grep -v '^ *+' conftest.er1 >conftest.err
34804   rm -f conftest.er1
34805   cat conftest.err >&5
34806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); } &&
34808          { ac_try='test -z "$ac_c_werror_flag"
34809                          || test ! -s conftest.err'
34810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811   (eval $ac_try) 2>&5
34812   ac_status=$?
34813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814   (exit $ac_status); }; } &&
34815          { ac_try='test -s conftest$ac_exeext'
34816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817   (eval $ac_try) 2>&5
34818   ac_status=$?
34819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820   (exit $ac_status); }; }; then
34821   ac_cv_lib_dl_dlerror=yes
34822 else
34823   echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34825
34826 ac_cv_lib_dl_dlerror=no
34827 fi
34828 rm -f conftest.err conftest.$ac_objext \
34829       conftest$ac_exeext conftest.$ac_ext
34830 LIBS=$ac_check_lib_save_LIBS
34831 fi
34832 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34833 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34834 if test $ac_cv_lib_dl_dlerror = yes; then
34835   cat >>confdefs.h <<\_ACEOF
34836 #define HAVE_DLERROR 1
34837 _ACEOF
34838
34839 fi
34840
34841
34842
34843 fi
34844 done
34845
34846         fi
34847         fi
34848
34849         if test "$HAVE_DL_FUNCS" = 0; then
34850             if test "$HAVE_SHL_FUNCS" = 0; then
34851               if test "$USE_UNIX" = 1; then
34852                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34853 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34854                   wxUSE_DYNAMIC_LOADER=no
34855                   wxUSE_DYNLIB_CLASS=no
34856               else
34857                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34858 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34859               fi
34860             fi
34861         fi
34862     fi
34863 fi
34864
34865 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34866     cat >>confdefs.h <<\_ACEOF
34867 #define wxUSE_DYNAMIC_LOADER 1
34868 _ACEOF
34869
34870 fi
34871 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34872     cat >>confdefs.h <<\_ACEOF
34873 #define wxUSE_DYNLIB_CLASS 1
34874 _ACEOF
34875
34876 fi
34877
34878
34879 if test "$wxUSE_FONTMAP" = "yes" ; then
34880   cat >>confdefs.h <<\_ACEOF
34881 #define wxUSE_FONTMAP 1
34882 _ACEOF
34883
34884 fi
34885
34886 if test "$wxUSE_UNICODE" = "yes" ; then
34887   cat >>confdefs.h <<\_ACEOF
34888 #define wxUSE_UNICODE 1
34889 _ACEOF
34890
34891
34892   if test "$USE_WIN32" != 1; then
34893       wxUSE_UNICODE_MSLU=no
34894   fi
34895
34896   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
34897         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
34898 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
34899 if test "${ac_cv_lib_unicows_main+set}" = set; then
34900   echo $ECHO_N "(cached) $ECHO_C" >&6
34901 else
34902   ac_check_lib_save_LIBS=$LIBS
34903 LIBS="-lunicows  $LIBS"
34904 cat >conftest.$ac_ext <<_ACEOF
34905 /* confdefs.h.  */
34906 _ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h.  */
34910
34911
34912 int
34913 main ()
34914 {
34915 main ();
34916   ;
34917   return 0;
34918 }
34919 _ACEOF
34920 rm -f conftest.$ac_objext conftest$ac_exeext
34921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34922   (eval $ac_link) 2>conftest.er1
34923   ac_status=$?
34924   grep -v '^ *+' conftest.er1 >conftest.err
34925   rm -f conftest.er1
34926   cat conftest.err >&5
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); } &&
34929          { ac_try='test -z "$ac_c_werror_flag"
34930                          || test ! -s conftest.err'
34931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34932   (eval $ac_try) 2>&5
34933   ac_status=$?
34934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935   (exit $ac_status); }; } &&
34936          { ac_try='test -s conftest$ac_exeext'
34937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938   (eval $ac_try) 2>&5
34939   ac_status=$?
34940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941   (exit $ac_status); }; }; then
34942   ac_cv_lib_unicows_main=yes
34943 else
34944   echo "$as_me: failed program was:" >&5
34945 sed 's/^/| /' conftest.$ac_ext >&5
34946
34947 ac_cv_lib_unicows_main=no
34948 fi
34949 rm -f conftest.err conftest.$ac_objext \
34950       conftest$ac_exeext conftest.$ac_ext
34951 LIBS=$ac_check_lib_save_LIBS
34952 fi
34953 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
34954 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
34955 if test $ac_cv_lib_unicows_main = yes; then
34956
34957                 cat >>confdefs.h <<\_ACEOF
34958 #define wxUSE_UNICODE_MSLU 1
34959 _ACEOF
34960
34961
34962 else
34963
34964                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
34965                              Applications will only run on Windows NT/2000/XP!" >&5
34966 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
34967                              Applications will only run on Windows NT/2000/XP!" >&2;}
34968                 wxUSE_UNICODE_MSLU=no
34969
34970 fi
34971
34972     fi
34973 fi
34974
34975 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
34976   cat >>confdefs.h <<\_ACEOF
34977 #define wxUSE_EXPERIMENTAL_PRINTF 1
34978 _ACEOF
34979
34980 fi
34981
34982
34983 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
34984   cat >>confdefs.h <<\_ACEOF
34985 #define wxUSE_POSTSCRIPT 1
34986 _ACEOF
34987
34988 fi
34989
34990 cat >>confdefs.h <<\_ACEOF
34991 #define wxUSE_AFM_FOR_POSTSCRIPT 1
34992 _ACEOF
34993
34994
34995 cat >>confdefs.h <<\_ACEOF
34996 #define wxUSE_NORMALIZED_PS_FONTS 1
34997 _ACEOF
34998
34999
35000
35001 if test "$wxUSE_CONSTRAINTS" = "yes"; then
35002     cat >>confdefs.h <<\_ACEOF
35003 #define wxUSE_CONSTRAINTS 1
35004 _ACEOF
35005
35006     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35007 fi
35008
35009 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35010    cat >>confdefs.h <<\_ACEOF
35011 #define wxUSE_MDI_ARCHITECTURE 1
35012 _ACEOF
35013
35014    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35015 fi
35016
35017 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35018     cat >>confdefs.h <<\_ACEOF
35019 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
35020 _ACEOF
35021
35022     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35023     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35024         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35025     fi
35026 fi
35027
35028 if test "$wxUSE_HELP" = "yes"; then
35029     cat >>confdefs.h <<\_ACEOF
35030 #define wxUSE_HELP 1
35031 _ACEOF
35032
35033     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35034
35035     if test "$wxUSE_MSW" = 1; then
35036       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35037         cat >>confdefs.h <<\_ACEOF
35038 #define wxUSE_MS_HTML_HELP 1
35039 _ACEOF
35040
35041       fi
35042     fi
35043
35044     if test "$wxUSE_WXHTML_HELP" = "yes"; then
35045       if test "$wxUSE_HTML" = "yes"; then
35046         cat >>confdefs.h <<\_ACEOF
35047 #define wxUSE_WXHTML_HELP 1
35048 _ACEOF
35049
35050       else
35051         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35052 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
35053         wxUSE_WXHTML_HELP=no
35054       fi
35055     fi
35056 fi
35057
35058 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35059     if test "$wxUSE_CONSTRAINTS" != "yes"; then
35060         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35061 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
35062     else
35063         cat >>confdefs.h <<\_ACEOF
35064 #define wxUSE_PRINTING_ARCHITECTURE 1
35065 _ACEOF
35066
35067     fi
35068     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35069 fi
35070
35071 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
35072     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35073 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35074    { (exit 1); exit 1; }; }
35075 fi
35076
35077
35078 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
35079                           -o "$wxUSE_CLIPBOARD"     = "yes" \
35080                           -o "$wxUSE_OLE"     = "yes" \
35081                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35082
35083 for ac_header in ole2.h
35084 do
35085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35087   echo "$as_me:$LINENO: checking for $ac_header" >&5
35088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35090   echo $ECHO_N "(cached) $ECHO_C" >&6
35091 fi
35092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35094 else
35095   # Is the header compilable?
35096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35098 cat >conftest.$ac_ext <<_ACEOF
35099 /* confdefs.h.  */
35100 _ACEOF
35101 cat confdefs.h >>conftest.$ac_ext
35102 cat >>conftest.$ac_ext <<_ACEOF
35103 /* end confdefs.h.  */
35104 $ac_includes_default
35105 #include <$ac_header>
35106 _ACEOF
35107 rm -f conftest.$ac_objext
35108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35109   (eval $ac_compile) 2>conftest.er1
35110   ac_status=$?
35111   grep -v '^ *+' conftest.er1 >conftest.err
35112   rm -f conftest.er1
35113   cat conftest.err >&5
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } &&
35116          { ac_try='test -z "$ac_c_werror_flag"
35117                          || test ! -s conftest.err'
35118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119   (eval $ac_try) 2>&5
35120   ac_status=$?
35121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122   (exit $ac_status); }; } &&
35123          { ac_try='test -s conftest.$ac_objext'
35124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125   (eval $ac_try) 2>&5
35126   ac_status=$?
35127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128   (exit $ac_status); }; }; then
35129   ac_header_compiler=yes
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134 ac_header_compiler=no
35135 fi
35136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35138 echo "${ECHO_T}$ac_header_compiler" >&6
35139
35140 # Is the header present?
35141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35143 cat >conftest.$ac_ext <<_ACEOF
35144 /* confdefs.h.  */
35145 _ACEOF
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h.  */
35149 #include <$ac_header>
35150 _ACEOF
35151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35153   ac_status=$?
35154   grep -v '^ *+' conftest.er1 >conftest.err
35155   rm -f conftest.er1
35156   cat conftest.err >&5
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); } >/dev/null; then
35159   if test -s conftest.err; then
35160     ac_cpp_err=$ac_c_preproc_warn_flag
35161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35162   else
35163     ac_cpp_err=
35164   fi
35165 else
35166   ac_cpp_err=yes
35167 fi
35168 if test -z "$ac_cpp_err"; then
35169   ac_header_preproc=yes
35170 else
35171   echo "$as_me: failed program was:" >&5
35172 sed 's/^/| /' conftest.$ac_ext >&5
35173
35174   ac_header_preproc=no
35175 fi
35176 rm -f conftest.err conftest.$ac_ext
35177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35178 echo "${ECHO_T}$ac_header_preproc" >&6
35179
35180 # So?  What about this header?
35181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35182   yes:no: )
35183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35187     ac_header_preproc=yes
35188     ;;
35189   no:yes:* )
35190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35202     (
35203       cat <<\_ASBOX
35204 ## ----------------------------------------- ##
35205 ## Report this to wx-dev@lists.wxwindows.org ##
35206 ## ----------------------------------------- ##
35207 _ASBOX
35208     ) |
35209       sed "s/^/$as_me: WARNING:     /" >&2
35210     ;;
35211 esac
35212 echo "$as_me:$LINENO: checking for $ac_header" >&5
35213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35215   echo $ECHO_N "(cached) $ECHO_C" >&6
35216 else
35217   eval "$as_ac_Header=\$ac_header_preproc"
35218 fi
35219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35221
35222 fi
35223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35224   cat >>confdefs.h <<_ACEOF
35225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35226 _ACEOF
35227
35228 fi
35229
35230 done
35231
35232
35233     if test "$ac_cv_header_ole2_h" = "yes" ; then
35234         if test "$GCC" = yes ; then
35235
35236
35237             ac_ext=cc
35238 ac_cpp='$CXXCPP $CPPFLAGS'
35239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35242
35243
35244             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35245 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35246             cat >conftest.$ac_ext <<_ACEOF
35247 /* confdefs.h.  */
35248 _ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h.  */
35252 #include <windows.h>
35253                             #include <ole2.h>
35254 int
35255 main ()
35256 {
35257
35258   ;
35259   return 0;
35260 }
35261 _ACEOF
35262 rm -f conftest.$ac_objext
35263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35264   (eval $ac_compile) 2>conftest.er1
35265   ac_status=$?
35266   grep -v '^ *+' conftest.er1 >conftest.err
35267   rm -f conftest.er1
35268   cat conftest.err >&5
35269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270   (exit $ac_status); } &&
35271          { ac_try='test -z "$ac_cxx_werror_flag"
35272                          || test ! -s conftest.err'
35273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35274   (eval $ac_try) 2>&5
35275   ac_status=$?
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); }; } &&
35278          { ac_try='test -s conftest.$ac_objext'
35279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280   (eval $ac_try) 2>&5
35281   ac_status=$?
35282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283   (exit $ac_status); }; }; then
35284   echo "$as_me:$LINENO: result: no" >&5
35285 echo "${ECHO_T}no" >&6
35286 else
35287   echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35289
35290 echo "$as_me:$LINENO: result: yes" >&5
35291 echo "${ECHO_T}yes" >&6
35292                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35293 fi
35294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35295             ac_ext=c
35296 ac_cpp='$CPP $CPPFLAGS'
35297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35300
35301             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
35302             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
35303             cat >>confdefs.h <<\_ACEOF
35304 #define wxUSE_OLE 1
35305 _ACEOF
35306
35307
35308         fi
35309
35310                 cat >>confdefs.h <<\_ACEOF
35311 #define wxUSE_DATAOBJ 1
35312 _ACEOF
35313
35314     else
35315         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35316 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
35317
35318         wxUSE_CLIPBOARD=no
35319         wxUSE_DRAG_AND_DROP=no
35320         wxUSE_DATAOBJ=no
35321         wxUSE_OLE=no
35322     fi
35323
35324     if test "$wxUSE_METAFILE" = "yes"; then
35325         cat >>confdefs.h <<\_ACEOF
35326 #define wxUSE_METAFILE 1
35327 _ACEOF
35328
35329
35330                 cat >>confdefs.h <<\_ACEOF
35331 #define wxUSE_ENH_METAFILE 1
35332 _ACEOF
35333
35334     fi
35335 fi
35336
35337 if test "$wxUSE_IPC" = "yes"; then
35338     if test "$wxUSE_SOCKETS" != "yes"; then
35339         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35340 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
35341     fi
35342
35343     cat >>confdefs.h <<\_ACEOF
35344 #define wxUSE_IPC 1
35345 _ACEOF
35346
35347 fi
35348
35349 if test "$wxUSE_CLIPBOARD" = "yes"; then
35350     if test "$wxUSE_MGL" = 1; then
35351         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35352 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
35353         wxUSE_CLIPBOARD=no
35354     fi
35355
35356     if test "$wxUSE_CLIPBOARD" = "yes"; then
35357         cat >>confdefs.h <<\_ACEOF
35358 #define wxUSE_CLIPBOARD 1
35359 _ACEOF
35360
35361
35362                 cat >>confdefs.h <<\_ACEOF
35363 #define wxUSE_DATAOBJ 1
35364 _ACEOF
35365
35366     fi
35367 fi
35368
35369 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35370     if test "$wxUSE_GTK" = 1; then
35371         if test "$WXGTK12" != 1; then
35372             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35373 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
35374             wxUSE_DRAG_AND_DROP=no
35375         fi
35376     fi
35377
35378     if test "$wxUSE_MOTIF" = 1; then
35379         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35380 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
35381         wxUSE_DRAG_AND_DROP=no
35382     fi
35383
35384     if test "$wxUSE_X11" = 1; then
35385         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
35386 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
35387         wxUSE_DRAG_AND_DROP=no
35388     fi
35389
35390     if test "$wxUSE_MGL" = 1; then
35391         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
35392 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
35393         wxUSE_DRAG_AND_DROP=no
35394     fi
35395
35396     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
35397         cat >>confdefs.h <<\_ACEOF
35398 #define wxUSE_DRAG_AND_DROP 1
35399 _ACEOF
35400
35401         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
35402     fi
35403
35404 fi
35405
35406 if test "$wxUSE_SPLINES" = "yes" ; then
35407   cat >>confdefs.h <<\_ACEOF
35408 #define wxUSE_SPLINES 1
35409 _ACEOF
35410
35411 fi
35412
35413
35414 USES_CONTROLS=0
35415 if test "$wxUSE_CONTROLS" = "yes"; then
35416   USES_CONTROLS=1
35417 fi
35418
35419 if test "$wxUSE_ACCEL" = "yes"; then
35420   cat >>confdefs.h <<\_ACEOF
35421 #define wxUSE_ACCEL 1
35422 _ACEOF
35423
35424   USES_CONTROLS=1
35425 fi
35426
35427 if test "$wxUSE_BUTTON" = "yes"; then
35428   cat >>confdefs.h <<\_ACEOF
35429 #define wxUSE_BUTTON 1
35430 _ACEOF
35431
35432   USES_CONTROLS=1
35433 fi
35434
35435 if test "$wxUSE_BMPBUTTON" = "yes"; then
35436   cat >>confdefs.h <<\_ACEOF
35437 #define wxUSE_BMPBUTTON 1
35438 _ACEOF
35439
35440   USES_CONTROLS=1
35441 fi
35442
35443 if test "$wxUSE_CALCTRL" = "yes"; then
35444   cat >>confdefs.h <<\_ACEOF
35445 #define wxUSE_CALENDARCTRL 1
35446 _ACEOF
35447
35448   USES_CONTROLS=1
35449   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
35450 fi
35451
35452 if test "$wxUSE_CARET" = "yes"; then
35453   cat >>confdefs.h <<\_ACEOF
35454 #define wxUSE_CARET 1
35455 _ACEOF
35456
35457   USES_CONTROLS=1
35458   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
35459 fi
35460
35461 if test "$wxUSE_COMBOBOX" = "yes"; then
35462   cat >>confdefs.h <<\_ACEOF
35463 #define wxUSE_COMBOBOX 1
35464 _ACEOF
35465
35466   USES_CONTROLS=1
35467 fi
35468
35469 if test "$wxUSE_CHOICE" = "yes"; then
35470   cat >>confdefs.h <<\_ACEOF
35471 #define wxUSE_CHOICE 1
35472 _ACEOF
35473
35474   USES_CONTROLS=1
35475 fi
35476
35477 if test "$wxUSE_CHECKBOX" = "yes"; then
35478   cat >>confdefs.h <<\_ACEOF
35479 #define wxUSE_CHECKBOX 1
35480 _ACEOF
35481
35482   USES_CONTROLS=1
35483 fi
35484
35485 if test "$wxUSE_CHECKLST" = "yes"; then
35486   cat >>confdefs.h <<\_ACEOF
35487 #define wxUSE_CHECKLISTBOX 1
35488 _ACEOF
35489
35490   USES_CONTROLS=1
35491   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
35492 fi
35493
35494 if test "$wxUSE_DISPLAY" = "yes"; then
35495     cat >>confdefs.h <<\_ACEOF
35496 #define wxUSE_DISPLAY 1
35497 _ACEOF
35498
35499     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
35500 fi
35501
35502 if test "$wxUSE_GAUGE" = "yes"; then
35503   cat >>confdefs.h <<\_ACEOF
35504 #define wxUSE_GAUGE 1
35505 _ACEOF
35506
35507   USES_CONTROLS=1
35508 fi
35509
35510 if test "$wxUSE_GRID" = "yes"; then
35511   cat >>confdefs.h <<\_ACEOF
35512 #define wxUSE_GRID 1
35513 _ACEOF
35514
35515   USES_CONTROLS=1
35516   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
35517 fi
35518
35519 if test "$wxUSE_IMAGLIST" = "yes"; then
35520     cat >>confdefs.h <<\_ACEOF
35521 #define wxUSE_IMAGLIST 1
35522 _ACEOF
35523
35524 fi
35525
35526 if test "$wxUSE_LISTBOOK" = "yes"; then
35527     cat >>confdefs.h <<\_ACEOF
35528 #define wxUSE_LISTBOOK 1
35529 _ACEOF
35530
35531     USES_CONTROLS=1
35532 fi
35533
35534 if test "$wxUSE_LISTBOX" = "yes"; then
35535     cat >>confdefs.h <<\_ACEOF
35536 #define wxUSE_LISTBOX 1
35537 _ACEOF
35538
35539     USES_CONTROLS=1
35540 fi
35541
35542 if test "$wxUSE_LISTCTRL" = "yes"; then
35543     if test "$wxUSE_IMAGLIST" = "yes"; then
35544         cat >>confdefs.h <<\_ACEOF
35545 #define wxUSE_LISTCTRL 1
35546 _ACEOF
35547
35548         USES_CONTROLS=1
35549         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
35550     else
35551         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
35552 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
35553     fi
35554 fi
35555
35556 if test "$wxUSE_NOTEBOOK" = "yes"; then
35557     cat >>confdefs.h <<\_ACEOF
35558 #define wxUSE_NOTEBOOK 1
35559 _ACEOF
35560
35561     USES_CONTROLS=1
35562     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
35563 fi
35564
35565
35566 if test "$wxUSE_RADIOBOX" = "yes"; then
35567     cat >>confdefs.h <<\_ACEOF
35568 #define wxUSE_RADIOBOX 1
35569 _ACEOF
35570
35571     USES_CONTROLS=1
35572 fi
35573
35574 if test "$wxUSE_RADIOBTN" = "yes"; then
35575     cat >>confdefs.h <<\_ACEOF
35576 #define wxUSE_RADIOBTN 1
35577 _ACEOF
35578
35579     USES_CONTROLS=1
35580 fi
35581
35582 if test "$wxUSE_SASH" = "yes"; then
35583     cat >>confdefs.h <<\_ACEOF
35584 #define wxUSE_SASH 1
35585 _ACEOF
35586
35587     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
35588 fi
35589
35590 if test "$wxUSE_SCROLLBAR" = "yes"; then
35591     cat >>confdefs.h <<\_ACEOF
35592 #define wxUSE_SCROLLBAR 1
35593 _ACEOF
35594
35595     USES_CONTROLS=1
35596     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
35597 fi
35598
35599 if test "$wxUSE_SLIDER" = "yes"; then
35600     cat >>confdefs.h <<\_ACEOF
35601 #define wxUSE_SLIDER 1
35602 _ACEOF
35603
35604     USES_CONTROLS=1
35605 fi
35606
35607 if test "$wxUSE_SPINBTN" = "yes"; then
35608     cat >>confdefs.h <<\_ACEOF
35609 #define wxUSE_SPINBTN 1
35610 _ACEOF
35611
35612     USES_CONTROLS=1
35613 fi
35614
35615 if test "$wxUSE_SPINCTRL" = "yes"; then
35616     cat >>confdefs.h <<\_ACEOF
35617 #define wxUSE_SPINCTRL 1
35618 _ACEOF
35619
35620     USES_CONTROLS=1
35621 fi
35622
35623 if test "$wxUSE_SPLITTER" = "yes"; then
35624     cat >>confdefs.h <<\_ACEOF
35625 #define wxUSE_SPLITTER 1
35626 _ACEOF
35627
35628     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
35629 fi
35630
35631 if test "$wxUSE_STATBMP" = "yes"; then
35632     cat >>confdefs.h <<\_ACEOF
35633 #define wxUSE_STATBMP 1
35634 _ACEOF
35635
35636     USES_CONTROLS=1
35637 fi
35638
35639 if test "$wxUSE_STATBOX" = "yes"; then
35640     cat >>confdefs.h <<\_ACEOF
35641 #define wxUSE_STATBOX 1
35642 _ACEOF
35643
35644     USES_CONTROLS=1
35645 fi
35646
35647 if test "$wxUSE_STATTEXT" = "yes"; then
35648     cat >>confdefs.h <<\_ACEOF
35649 #define wxUSE_STATTEXT 1
35650 _ACEOF
35651
35652     USES_CONTROLS=1
35653 fi
35654
35655 if test "$wxUSE_STATLINE" = "yes"; then
35656     cat >>confdefs.h <<\_ACEOF
35657 #define wxUSE_STATLINE 1
35658 _ACEOF
35659
35660     USES_CONTROLS=1
35661 fi
35662
35663 if test "$wxUSE_STATUSBAR" = "yes"; then
35664     cat >>confdefs.h <<\_ACEOF
35665 #define wxUSE_STATUSBAR 1
35666 _ACEOF
35667
35668     USES_CONTROLS=1
35669
35670     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
35671 fi
35672
35673 if test "$wxUSE_TABDIALOG" = "yes"; then
35674     cat >>confdefs.h <<\_ACEOF
35675 #define wxUSE_TAB_DIALOG 1
35676 _ACEOF
35677
35678     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
35679 fi
35680
35681 if test "$wxUSE_TEXTCTRL" = "yes"; then
35682     cat >>confdefs.h <<\_ACEOF
35683 #define wxUSE_TEXTCTRL 1
35684 _ACEOF
35685
35686     USES_CONTROLS=1
35687     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
35688 fi
35689
35690 if test "$wxUSE_TOGGLEBTN" = "yes"; then
35691     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
35692         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
35693 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
35694         wxUSE_TOGGLEBTN=no
35695     fi
35696     if test "$wxUSE_UNIVERSAL" = "yes"; then
35697         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
35698 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
35699         wxUSE_TOGGLEBTN=no
35700     fi
35701
35702     if test "$wxUSE_TOGGLEBTN" = "yes"; then
35703         cat >>confdefs.h <<\_ACEOF
35704 #define wxUSE_TOGGLEBTN 1
35705 _ACEOF
35706
35707         USES_CONTROLS=1
35708     fi
35709 fi
35710
35711 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
35712     cat >>confdefs.h <<\_ACEOF
35713 #define wxUSE_TOOLBAR_SIMPLE 1
35714 _ACEOF
35715
35716     wxUSE_TOOLBAR="yes"
35717     USES_CONTROLS=1
35718 fi
35719
35720 if test "$wxUSE_TOOLBAR" = "yes"; then
35721     cat >>confdefs.h <<\_ACEOF
35722 #define wxUSE_TOOLBAR 1
35723 _ACEOF
35724
35725     USES_CONTROLS=1
35726
35727         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35728         wxUSE_TOOLBAR_NATIVE="yes"
35729     fi
35730
35731     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
35732         cat >>confdefs.h <<\_ACEOF
35733 #define wxUSE_TOOLBAR_NATIVE 1
35734 _ACEOF
35735
35736         USES_CONTROLS=1
35737     fi
35738
35739     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
35740 fi
35741
35742 if test "$wxUSE_TOOLTIPS" = "yes"; then
35743     if test "$wxUSE_MOTIF" = 1; then
35744         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35745 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
35746     else
35747         if test "$wxUSE_UNIVERSAL" = "yes"; then
35748             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35749 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
35750         else
35751             cat >>confdefs.h <<\_ACEOF
35752 #define wxUSE_TOOLTIPS 1
35753 _ACEOF
35754
35755         fi
35756     fi
35757 fi
35758
35759 if test "$wxUSE_TREECTRL" = "yes"; then
35760     if test "$wxUSE_IMAGLIST" = "yes"; then
35761         cat >>confdefs.h <<\_ACEOF
35762 #define wxUSE_TREECTRL 1
35763 _ACEOF
35764
35765         USES_CONTROLS=1
35766         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35767     else
35768         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35769 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
35770     fi
35771 fi
35772
35773 if test "$wxUSE_POPUPWIN" = "yes"; then
35774     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
35775         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35776 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
35777     else
35778         if test "$wxUSE_PM" = 1; then
35779             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
35780 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
35781         else
35782             cat >>confdefs.h <<\_ACEOF
35783 #define wxUSE_POPUPWIN 1
35784 _ACEOF
35785
35786
35787             USES_CONTROLS=1
35788         fi
35789     fi
35790 fi
35791
35792 if test "$wxUSE_TIPWINDOW" = "yes"; then
35793     if test "$wxUSE_PM" = 1; then
35794         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35795 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
35796     else
35797         cat >>confdefs.h <<\_ACEOF
35798 #define wxUSE_TIPWINDOW 1
35799 _ACEOF
35800
35801     fi
35802 fi
35803
35804 if test "$USES_CONTROLS" = 1; then
35805     cat >>confdefs.h <<\_ACEOF
35806 #define wxUSE_CONTROLS 1
35807 _ACEOF
35808
35809 fi
35810
35811
35812 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35813     cat >>confdefs.h <<\_ACEOF
35814 #define wxUSE_ACCESSIBILITY 1
35815 _ACEOF
35816
35817     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35818 fi
35819
35820 if test "$wxUSE_DRAGIMAGE" = "yes"; then
35821     cat >>confdefs.h <<\_ACEOF
35822 #define wxUSE_DRAGIMAGE 1
35823 _ACEOF
35824
35825     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35826 fi
35827
35828 if test "$wxUSE_EXCEPTIONS" = "yes"; then
35829     cat >>confdefs.h <<\_ACEOF
35830 #define wxUSE_EXCEPTIONS 1
35831 _ACEOF
35832
35833 fi
35834
35835 USE_HTML=0
35836 if test "$wxUSE_HTML" = "yes"; then
35837     cat >>confdefs.h <<\_ACEOF
35838 #define wxUSE_HTML 1
35839 _ACEOF
35840
35841     USE_HTML=1
35842     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
35843 fi
35844
35845 if test "$wxUSE_MENUS" = "yes"; then
35846     cat >>confdefs.h <<\_ACEOF
35847 #define wxUSE_MENUS 1
35848 _ACEOF
35849
35850     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
35851 fi
35852
35853 if test "$wxUSE_METAFILE" = "yes"; then
35854     cat >>confdefs.h <<\_ACEOF
35855 #define wxUSE_METAFILE 1
35856 _ACEOF
35857
35858 fi
35859
35860 if test "$wxUSE_MIMETYPE" = "yes"; then
35861     cat >>confdefs.h <<\_ACEOF
35862 #define wxUSE_MIMETYPE 1
35863 _ACEOF
35864
35865 fi
35866
35867 if test "$wxUSE_MINIFRAME" = "yes"; then
35868     cat >>confdefs.h <<\_ACEOF
35869 #define wxUSE_MINIFRAME 1
35870 _ACEOF
35871
35872     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
35873 fi
35874
35875 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
35876     cat >>confdefs.h <<\_ACEOF
35877 #define wxUSE_SYSTEM_OPTIONS 1
35878 _ACEOF
35879
35880     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
35881         "$TOOLKIT" = "MOTIF"; then
35882         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
35883     fi
35884 fi
35885
35886
35887 if test "$wxUSE_VALIDATORS" = "yes"; then
35888     cat >>confdefs.h <<\_ACEOF
35889 #define wxUSE_VALIDATORS 1
35890 _ACEOF
35891
35892     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
35893 fi
35894
35895 if test "$wxUSE_PALETTE" = "yes" ; then
35896   cat >>confdefs.h <<\_ACEOF
35897 #define wxUSE_PALETTE 1
35898 _ACEOF
35899
35900 fi
35901
35902 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
35903     LIBS=" -lunicows $LIBS"
35904 fi
35905
35906
35907 if test "$wxUSE_IMAGE" = "yes" ; then
35908     cat >>confdefs.h <<\_ACEOF
35909 #define wxUSE_IMAGE 1
35910 _ACEOF
35911
35912
35913     if test "$wxUSE_GIF" = "yes" ; then
35914       cat >>confdefs.h <<\_ACEOF
35915 #define wxUSE_GIF 1
35916 _ACEOF
35917
35918     fi
35919
35920     if test "$wxUSE_PCX" = "yes" ; then
35921       cat >>confdefs.h <<\_ACEOF
35922 #define wxUSE_PCX 1
35923 _ACEOF
35924
35925     fi
35926
35927     if test "$wxUSE_IFF" = "yes" ; then
35928       cat >>confdefs.h <<\_ACEOF
35929 #define wxUSE_IFF 1
35930 _ACEOF
35931
35932     fi
35933
35934     if test "$wxUSE_PNM" = "yes" ; then
35935       cat >>confdefs.h <<\_ACEOF
35936 #define wxUSE_PNM 1
35937 _ACEOF
35938
35939     fi
35940
35941     if test "$wxUSE_XPM" = "yes" ; then
35942       cat >>confdefs.h <<\_ACEOF
35943 #define wxUSE_XPM 1
35944 _ACEOF
35945
35946     fi
35947
35948     if test "$wxUSE_ICO_CUR" = "yes" ; then
35949       cat >>confdefs.h <<\_ACEOF
35950 #define wxUSE_ICO_CUR 1
35951 _ACEOF
35952
35953     fi
35954 fi
35955
35956
35957 if test "$wxUSE_CHOICEDLG" = "yes"; then
35958     cat >>confdefs.h <<\_ACEOF
35959 #define wxUSE_CHOICEDLG 1
35960 _ACEOF
35961
35962 fi
35963
35964 if test "$wxUSE_COLOURDLG" = "yes"; then
35965     cat >>confdefs.h <<\_ACEOF
35966 #define wxUSE_COLOURDLG 1
35967 _ACEOF
35968
35969 fi
35970
35971 if test "$wxUSE_FILEDLG" = "yes"; then
35972     cat >>confdefs.h <<\_ACEOF
35973 #define wxUSE_FILEDLG 1
35974 _ACEOF
35975
35976 fi
35977
35978 if test "$wxUSE_FINDREPLDLG" = "yes"; then
35979     cat >>confdefs.h <<\_ACEOF
35980 #define wxUSE_FINDREPLDLG 1
35981 _ACEOF
35982
35983 fi
35984
35985 if test "$wxUSE_FONTDLG" = "yes"; then
35986     cat >>confdefs.h <<\_ACEOF
35987 #define wxUSE_FONTDLG 1
35988 _ACEOF
35989
35990 fi
35991
35992 if test "$wxUSE_DIRDLG" = "yes"; then
35993     if test "$wxUSE_TREECTRL" != "yes"; then
35994         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
35995 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
35996     else
35997         cat >>confdefs.h <<\_ACEOF
35998 #define wxUSE_DIRDLG 1
35999 _ACEOF
36000
36001     fi
36002 fi
36003
36004 if test "$wxUSE_MSGDLG" = "yes"; then
36005     cat >>confdefs.h <<\_ACEOF
36006 #define wxUSE_MSGDLG 1
36007 _ACEOF
36008
36009 fi
36010
36011 if test "$wxUSE_NUMBERDLG" = "yes"; then
36012     cat >>confdefs.h <<\_ACEOF
36013 #define wxUSE_NUMBERDLG 1
36014 _ACEOF
36015
36016 fi
36017
36018 if test "$wxUSE_PROGRESSDLG" = "yes"; then
36019     if test "$wxUSE_CONSTRAINTS" != "yes"; then
36020        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36021 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
36022     else
36023         cat >>confdefs.h <<\_ACEOF
36024 #define wxUSE_PROGRESSDLG 1
36025 _ACEOF
36026
36027     fi
36028 fi
36029
36030 if test "$wxUSE_SPLASH" = "yes"; then
36031     cat >>confdefs.h <<\_ACEOF
36032 #define wxUSE_SPLASH 1
36033 _ACEOF
36034
36035 fi
36036
36037 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36038     if test "$wxUSE_CONSTRAINTS" != "yes"; then
36039        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36040 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
36041     else
36042         cat >>confdefs.h <<\_ACEOF
36043 #define wxUSE_STARTUP_TIPS 1
36044 _ACEOF
36045
36046     fi
36047 fi
36048
36049 if test "$wxUSE_TEXTDLG" = "yes"; then
36050     cat >>confdefs.h <<\_ACEOF
36051 #define wxUSE_TEXTDLG 1
36052 _ACEOF
36053
36054 fi
36055
36056 if test "$wxUSE_WIZARDDLG" = "yes"; then
36057     cat >>confdefs.h <<\_ACEOF
36058 #define wxUSE_WIZARDDLG 1
36059 _ACEOF
36060
36061     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36062 fi
36063
36064
36065 if test "$cross_compiling" = "yes"; then
36066         OSINFO="\"$host\""
36067 else
36068         OSINFO=`uname -s -r -m`
36069     OSINFO="\"$OSINFO\""
36070 fi
36071
36072 cat >>confdefs.h <<_ACEOF
36073 #define WXWIN_OS_DESCRIPTION $OSINFO
36074 _ACEOF
36075
36076
36077
36078 if test "x$prefix" != "xNONE"; then
36079     wxPREFIX=$prefix
36080 else
36081     wxPREFIX=$ac_default_prefix
36082 fi
36083
36084 cat >>confdefs.h <<_ACEOF
36085 #define wxINSTALL_PREFIX "$wxPREFIX"
36086 _ACEOF
36087
36088
36089 top_builddir_wxconfig=`pwd`
36090
36091
36092
36093 CORE_BASE_LIBS="net base"
36094 CORE_GUI_LIBS="adv core"
36095
36096 if test "$wxUSE_XML" = "yes" ; then
36097     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36098 fi
36099 if test "$wxUSE_ODBC" != "no" ; then
36100     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36101     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
36102 fi
36103 if test "$wxUSE_HTML" = "yes" ; then
36104     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36105 fi
36106
36107 if test "$wxUSE_GUI" != "yes"; then
36108     CORE_GUI_LIBS=""
36109 fi
36110
36111
36112
36113
36114
36115
36116
36117
36118 if test "$wxUSE_MAC" = 1 ; then
36119     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36120 fi
36121 if test "$wxUSE_COCOA" = 1 ; then
36122     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36123 fi
36124
36125
36126 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36127
36128 have_cos=0
36129 have_floor=0
36130
36131 for ac_func in cos
36132 do
36133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36134 echo "$as_me:$LINENO: checking for $ac_func" >&5
36135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36136 if eval "test \"\${$as_ac_var+set}\" = set"; then
36137   echo $ECHO_N "(cached) $ECHO_C" >&6
36138 else
36139   cat >conftest.$ac_ext <<_ACEOF
36140 /* confdefs.h.  */
36141 _ACEOF
36142 cat confdefs.h >>conftest.$ac_ext
36143 cat >>conftest.$ac_ext <<_ACEOF
36144 /* end confdefs.h.  */
36145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36147 #define $ac_func innocuous_$ac_func
36148
36149 /* System header to define __stub macros and hopefully few prototypes,
36150     which can conflict with char $ac_func (); below.
36151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36152     <limits.h> exists even on freestanding compilers.  */
36153
36154 #ifdef __STDC__
36155 # include <limits.h>
36156 #else
36157 # include <assert.h>
36158 #endif
36159
36160 #undef $ac_func
36161
36162 /* Override any gcc2 internal prototype to avoid an error.  */
36163 #ifdef __cplusplus
36164 extern "C"
36165 {
36166 #endif
36167 /* We use char because int might match the return type of a gcc2
36168    builtin and then its argument prototype would still apply.  */
36169 char $ac_func ();
36170 /* The GNU C library defines this for functions which it implements
36171     to always fail with ENOSYS.  Some functions are actually named
36172     something starting with __ and the normal name is an alias.  */
36173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36174 choke me
36175 #else
36176 char (*f) () = $ac_func;
36177 #endif
36178 #ifdef __cplusplus
36179 }
36180 #endif
36181
36182 int
36183 main ()
36184 {
36185 return f != $ac_func;
36186   ;
36187   return 0;
36188 }
36189 _ACEOF
36190 rm -f conftest.$ac_objext conftest$ac_exeext
36191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36192   (eval $ac_link) 2>conftest.er1
36193   ac_status=$?
36194   grep -v '^ *+' conftest.er1 >conftest.err
36195   rm -f conftest.er1
36196   cat conftest.err >&5
36197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198   (exit $ac_status); } &&
36199          { ac_try='test -z "$ac_c_werror_flag"
36200                          || test ! -s conftest.err'
36201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36202   (eval $ac_try) 2>&5
36203   ac_status=$?
36204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); }; } &&
36206          { ac_try='test -s conftest$ac_exeext'
36207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208   (eval $ac_try) 2>&5
36209   ac_status=$?
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); }; }; then
36212   eval "$as_ac_var=yes"
36213 else
36214   echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36216
36217 eval "$as_ac_var=no"
36218 fi
36219 rm -f conftest.err conftest.$ac_objext \
36220       conftest$ac_exeext conftest.$ac_ext
36221 fi
36222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36224 if test `eval echo '${'$as_ac_var'}'` = yes; then
36225   cat >>confdefs.h <<_ACEOF
36226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36227 _ACEOF
36228  have_cos=1
36229 fi
36230 done
36231
36232
36233 for ac_func in floor
36234 do
36235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36236 echo "$as_me:$LINENO: checking for $ac_func" >&5
36237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36238 if eval "test \"\${$as_ac_var+set}\" = set"; then
36239   echo $ECHO_N "(cached) $ECHO_C" >&6
36240 else
36241   cat >conftest.$ac_ext <<_ACEOF
36242 /* confdefs.h.  */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h.  */
36247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36249 #define $ac_func innocuous_$ac_func
36250
36251 /* System header to define __stub macros and hopefully few prototypes,
36252     which can conflict with char $ac_func (); below.
36253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36254     <limits.h> exists even on freestanding compilers.  */
36255
36256 #ifdef __STDC__
36257 # include <limits.h>
36258 #else
36259 # include <assert.h>
36260 #endif
36261
36262 #undef $ac_func
36263
36264 /* Override any gcc2 internal prototype to avoid an error.  */
36265 #ifdef __cplusplus
36266 extern "C"
36267 {
36268 #endif
36269 /* We use char because int might match the return type of a gcc2
36270    builtin and then its argument prototype would still apply.  */
36271 char $ac_func ();
36272 /* The GNU C library defines this for functions which it implements
36273     to always fail with ENOSYS.  Some functions are actually named
36274     something starting with __ and the normal name is an alias.  */
36275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36276 choke me
36277 #else
36278 char (*f) () = $ac_func;
36279 #endif
36280 #ifdef __cplusplus
36281 }
36282 #endif
36283
36284 int
36285 main ()
36286 {
36287 return f != $ac_func;
36288   ;
36289   return 0;
36290 }
36291 _ACEOF
36292 rm -f conftest.$ac_objext conftest$ac_exeext
36293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36294   (eval $ac_link) 2>conftest.er1
36295   ac_status=$?
36296   grep -v '^ *+' conftest.er1 >conftest.err
36297   rm -f conftest.er1
36298   cat conftest.err >&5
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); } &&
36301          { ac_try='test -z "$ac_c_werror_flag"
36302                          || test ! -s conftest.err'
36303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304   (eval $ac_try) 2>&5
36305   ac_status=$?
36306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); }; } &&
36308          { ac_try='test -s conftest$ac_exeext'
36309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36310   (eval $ac_try) 2>&5
36311   ac_status=$?
36312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313   (exit $ac_status); }; }; then
36314   eval "$as_ac_var=yes"
36315 else
36316   echo "$as_me: failed program was:" >&5
36317 sed 's/^/| /' conftest.$ac_ext >&5
36318
36319 eval "$as_ac_var=no"
36320 fi
36321 rm -f conftest.err conftest.$ac_objext \
36322       conftest$ac_exeext conftest.$ac_ext
36323 fi
36324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36326 if test `eval echo '${'$as_ac_var'}'` = yes; then
36327   cat >>confdefs.h <<_ACEOF
36328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36329 _ACEOF
36330  have_floor=1
36331 fi
36332 done
36333
36334 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36335 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
36336 if test "$have_cos" = 1 -a "$have_floor" = 1; then
36337     echo "$as_me:$LINENO: result: yes" >&5
36338 echo "${ECHO_T}yes" >&6
36339 else
36340     echo "$as_me:$LINENO: result: no" >&5
36341 echo "${ECHO_T}no" >&6
36342     LIBS="$LIBS -lm"
36343     # use different functions to avoid configure caching
36344     have_sin=0
36345     have_ceil=0
36346
36347 for ac_func in sin
36348 do
36349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36350 echo "$as_me:$LINENO: checking for $ac_func" >&5
36351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36352 if eval "test \"\${$as_ac_var+set}\" = set"; then
36353   echo $ECHO_N "(cached) $ECHO_C" >&6
36354 else
36355   cat >conftest.$ac_ext <<_ACEOF
36356 /* confdefs.h.  */
36357 _ACEOF
36358 cat confdefs.h >>conftest.$ac_ext
36359 cat >>conftest.$ac_ext <<_ACEOF
36360 /* end confdefs.h.  */
36361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36363 #define $ac_func innocuous_$ac_func
36364
36365 /* System header to define __stub macros and hopefully few prototypes,
36366     which can conflict with char $ac_func (); below.
36367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36368     <limits.h> exists even on freestanding compilers.  */
36369
36370 #ifdef __STDC__
36371 # include <limits.h>
36372 #else
36373 # include <assert.h>
36374 #endif
36375
36376 #undef $ac_func
36377
36378 /* Override any gcc2 internal prototype to avoid an error.  */
36379 #ifdef __cplusplus
36380 extern "C"
36381 {
36382 #endif
36383 /* We use char because int might match the return type of a gcc2
36384    builtin and then its argument prototype would still apply.  */
36385 char $ac_func ();
36386 /* The GNU C library defines this for functions which it implements
36387     to always fail with ENOSYS.  Some functions are actually named
36388     something starting with __ and the normal name is an alias.  */
36389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36390 choke me
36391 #else
36392 char (*f) () = $ac_func;
36393 #endif
36394 #ifdef __cplusplus
36395 }
36396 #endif
36397
36398 int
36399 main ()
36400 {
36401 return f != $ac_func;
36402   ;
36403   return 0;
36404 }
36405 _ACEOF
36406 rm -f conftest.$ac_objext conftest$ac_exeext
36407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36408   (eval $ac_link) 2>conftest.er1
36409   ac_status=$?
36410   grep -v '^ *+' conftest.er1 >conftest.err
36411   rm -f conftest.er1
36412   cat conftest.err >&5
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); } &&
36415          { ac_try='test -z "$ac_c_werror_flag"
36416                          || test ! -s conftest.err'
36417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36418   (eval $ac_try) 2>&5
36419   ac_status=$?
36420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421   (exit $ac_status); }; } &&
36422          { ac_try='test -s conftest$ac_exeext'
36423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36424   (eval $ac_try) 2>&5
36425   ac_status=$?
36426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427   (exit $ac_status); }; }; then
36428   eval "$as_ac_var=yes"
36429 else
36430   echo "$as_me: failed program was:" >&5
36431 sed 's/^/| /' conftest.$ac_ext >&5
36432
36433 eval "$as_ac_var=no"
36434 fi
36435 rm -f conftest.err conftest.$ac_objext \
36436       conftest$ac_exeext conftest.$ac_ext
36437 fi
36438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36440 if test `eval echo '${'$as_ac_var'}'` = yes; then
36441   cat >>confdefs.h <<_ACEOF
36442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36443 _ACEOF
36444  have_sin=1
36445 fi
36446 done
36447
36448
36449 for ac_func in ceil
36450 do
36451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36452 echo "$as_me:$LINENO: checking for $ac_func" >&5
36453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36454 if eval "test \"\${$as_ac_var+set}\" = set"; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   cat >conftest.$ac_ext <<_ACEOF
36458 /* confdefs.h.  */
36459 _ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h.  */
36463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36465 #define $ac_func innocuous_$ac_func
36466
36467 /* System header to define __stub macros and hopefully few prototypes,
36468     which can conflict with char $ac_func (); below.
36469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36470     <limits.h> exists even on freestanding compilers.  */
36471
36472 #ifdef __STDC__
36473 # include <limits.h>
36474 #else
36475 # include <assert.h>
36476 #endif
36477
36478 #undef $ac_func
36479
36480 /* Override any gcc2 internal prototype to avoid an error.  */
36481 #ifdef __cplusplus
36482 extern "C"
36483 {
36484 #endif
36485 /* We use char because int might match the return type of a gcc2
36486    builtin and then its argument prototype would still apply.  */
36487 char $ac_func ();
36488 /* The GNU C library defines this for functions which it implements
36489     to always fail with ENOSYS.  Some functions are actually named
36490     something starting with __ and the normal name is an alias.  */
36491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36492 choke me
36493 #else
36494 char (*f) () = $ac_func;
36495 #endif
36496 #ifdef __cplusplus
36497 }
36498 #endif
36499
36500 int
36501 main ()
36502 {
36503 return f != $ac_func;
36504   ;
36505   return 0;
36506 }
36507 _ACEOF
36508 rm -f conftest.$ac_objext conftest$ac_exeext
36509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36510   (eval $ac_link) 2>conftest.er1
36511   ac_status=$?
36512   grep -v '^ *+' conftest.er1 >conftest.err
36513   rm -f conftest.er1
36514   cat conftest.err >&5
36515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516   (exit $ac_status); } &&
36517          { ac_try='test -z "$ac_c_werror_flag"
36518                          || test ! -s conftest.err'
36519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520   (eval $ac_try) 2>&5
36521   ac_status=$?
36522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523   (exit $ac_status); }; } &&
36524          { ac_try='test -s conftest$ac_exeext'
36525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36526   (eval $ac_try) 2>&5
36527   ac_status=$?
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); }; }; then
36530   eval "$as_ac_var=yes"
36531 else
36532   echo "$as_me: failed program was:" >&5
36533 sed 's/^/| /' conftest.$ac_ext >&5
36534
36535 eval "$as_ac_var=no"
36536 fi
36537 rm -f conftest.err conftest.$ac_objext \
36538       conftest$ac_exeext conftest.$ac_ext
36539 fi
36540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36542 if test `eval echo '${'$as_ac_var'}'` = yes; then
36543   cat >>confdefs.h <<_ACEOF
36544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36545 _ACEOF
36546  have_ceil=1
36547 fi
36548 done
36549
36550     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
36551 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
36552     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
36553         echo "$as_me:$LINENO: result: yes" >&5
36554 echo "${ECHO_T}yes" >&6
36555     else
36556         echo "$as_me:$LINENO: result: no" >&5
36557 echo "${ECHO_T}no" >&6
36558         # not sure we should warn the user, crash, etc.
36559     fi
36560 fi
36561
36562 if test "$wxUSE_GUI" = "yes"; then
36563
36564
36565             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
36566                      drawing dynamic erase event exec font image \
36567                      minimal propsize rotate shaped widgets render"
36568
36569     if test "$wxUSE_MONOLITHIC" != "yes"; then
36570         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
36571     fi
36572 else
36573     SAMPLES_SUBDIRS="console"
36574 fi
36575
36576
36577 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
36578 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
36579
36580 if test "$GXX" = yes ; then
36581         CXXWARNINGS="-Wall"
36582         fi
36583
36584 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
36585
36586 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
36587 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
36588 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
36589
36590
36591 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
36592 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
36593 EXTRALIBS_XML="$EXPAT_LINK"
36594 EXTRALIBS_HTML="$MSPACK_LINK"
36595 EXTRALIBS_ODBC="$ODBC_LINK"
36596 if test "$wxUSE_GUI" = "yes"; then
36597     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
36598 fi
36599 if test "$wxUSE_OPENGL" = "yes"; then
36600     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
36601 fi
36602
36603 LDFLAGS="$LDFLAGS $PROFILE"
36604
36605 if test "$wxUSE_GTK" = 1; then
36606     WXCONFIG_INCLUDE=
36607 else
36608     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
36609 fi
36610
36611 WXCONFIG_EXTRALIBS="$LIBS"
36612
36613 if test "$wxUSE_REGEX" = "builtin" ; then
36614     wxconfig_3rdparty="$wxconfig_3rdparty regex"
36615 fi
36616 if test "$wxUSE_EXPAT" = "builtin" ; then
36617     wxconfig_3rdparty="$wxconfig_3rdparty expat"
36618 fi
36619 if test "$wxUSE_ODBC" = "builtin" ; then
36620     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36621 fi
36622 if test "$wxUSE_LIBTIFF" = "builtin" ; then
36623     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
36624 fi
36625 if test "$wxUSE_LIBJPEG" = "builtin" ; then
36626     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
36627 fi
36628 if test "$wxUSE_LIBPNG" = "builtin" ; then
36629     wxconfig_3rdparty="$wxconfig_3rdparty png"
36630 fi
36631 if test "$wxUSE_ZLIB" = "builtin" ; then
36632     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
36633 fi
36634 if test "$wxUSE_ODBC" = "builtin" ; then
36635     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36636 fi
36637
36638 for i in $wxconfig_3rdparty ; do
36639     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
36640 done
36641
36642
36643 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
36644     WXUNIV=1
36645 else
36646     WXUNIV=0
36647 fi
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657 if test $wxUSE_MONOLITHIC = "yes" ; then
36658     MONOLITHIC=1
36659 else
36660     MONOLITHIC=0
36661 fi
36662
36663 if test $wxUSE_ODBC != "no" ; then
36664     USE_ODBC=1
36665 else
36666     USE_ODBC=0
36667 fi
36668
36669 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
36670     OFFICIAL_BUILD=1
36671 else
36672     OFFICIAL_BUILD=0
36673 fi
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
36693
36694
36695
36696
36697
36698
36699
36700     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
36701
36702     if test -n "$ac_tool_prefix"; then
36703   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36705 echo "$as_me:$LINENO: checking for $ac_word" >&5
36706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36707 if test "${ac_cv_prog_RANLIB+set}" = set; then
36708   echo $ECHO_N "(cached) $ECHO_C" >&6
36709 else
36710   if test -n "$RANLIB"; then
36711   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
36712 else
36713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36714 for as_dir in $PATH
36715 do
36716   IFS=$as_save_IFS
36717   test -z "$as_dir" && as_dir=.
36718   for ac_exec_ext in '' $ac_executable_extensions; do
36719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36720     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36722     break 2
36723   fi
36724 done
36725 done
36726
36727 fi
36728 fi
36729 RANLIB=$ac_cv_prog_RANLIB
36730 if test -n "$RANLIB"; then
36731   echo "$as_me:$LINENO: result: $RANLIB" >&5
36732 echo "${ECHO_T}$RANLIB" >&6
36733 else
36734   echo "$as_me:$LINENO: result: no" >&5
36735 echo "${ECHO_T}no" >&6
36736 fi
36737
36738 fi
36739 if test -z "$ac_cv_prog_RANLIB"; then
36740   ac_ct_RANLIB=$RANLIB
36741   # Extract the first word of "ranlib", so it can be a program name with args.
36742 set dummy ranlib; ac_word=$2
36743 echo "$as_me:$LINENO: checking for $ac_word" >&5
36744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36745 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36746   echo $ECHO_N "(cached) $ECHO_C" >&6
36747 else
36748   if test -n "$ac_ct_RANLIB"; then
36749   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36750 else
36751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36752 for as_dir in $PATH
36753 do
36754   IFS=$as_save_IFS
36755   test -z "$as_dir" && as_dir=.
36756   for ac_exec_ext in '' $ac_executable_extensions; do
36757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36758     ac_cv_prog_ac_ct_RANLIB="ranlib"
36759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36760     break 2
36761   fi
36762 done
36763 done
36764
36765   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
36766 fi
36767 fi
36768 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36769 if test -n "$ac_ct_RANLIB"; then
36770   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36771 echo "${ECHO_T}$ac_ct_RANLIB" >&6
36772 else
36773   echo "$as_me:$LINENO: result: no" >&5
36774 echo "${ECHO_T}no" >&6
36775 fi
36776
36777   RANLIB=$ac_ct_RANLIB
36778 else
36779   RANLIB="$ac_cv_prog_RANLIB"
36780 fi
36781
36782     # Find a good install program.  We prefer a C program (faster),
36783 # so one script is as good as another.  But avoid the broken or
36784 # incompatible versions:
36785 # SysV /etc/install, /usr/sbin/install
36786 # SunOS /usr/etc/install
36787 # IRIX /sbin/install
36788 # AIX /bin/install
36789 # AmigaOS /C/install, which installs bootblocks on floppy discs
36790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
36792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
36793 # OS/2's system install, which has a completely different semantic
36794 # ./install, which can be erroneously created by make from ./install.sh.
36795 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36796 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
36797 if test -z "$INSTALL"; then
36798 if test "${ac_cv_path_install+set}" = set; then
36799   echo $ECHO_N "(cached) $ECHO_C" >&6
36800 else
36801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36802 for as_dir in $PATH
36803 do
36804   IFS=$as_save_IFS
36805   test -z "$as_dir" && as_dir=.
36806   # Account for people who put trailing slashes in PATH elements.
36807 case $as_dir/ in
36808   ./ | .// | /cC/* | \
36809   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36810   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
36811   /usr/ucb/* ) ;;
36812   *)
36813     # OSF1 and SCO ODT 3.0 have their own names for install.
36814     # Don't use installbsd from OSF since it installs stuff as root
36815     # by default.
36816     for ac_prog in ginstall scoinst install; do
36817       for ac_exec_ext in '' $ac_executable_extensions; do
36818         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36819           if test $ac_prog = install &&
36820             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36821             # AIX install.  It has an incompatible calling convention.
36822             :
36823           elif test $ac_prog = install &&
36824             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36825             # program-specific install script used by HP pwplus--don't use.
36826             :
36827           else
36828             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36829             break 3
36830           fi
36831         fi
36832       done
36833     done
36834     ;;
36835 esac
36836 done
36837
36838
36839 fi
36840   if test "${ac_cv_path_install+set}" = set; then
36841     INSTALL=$ac_cv_path_install
36842   else
36843     # As a last resort, use the slow shell script.  We don't cache a
36844     # path for INSTALL within a source directory, because that will
36845     # break other packages using the cache if that directory is
36846     # removed, or if the path is relative.
36847     INSTALL=$ac_install_sh
36848   fi
36849 fi
36850 echo "$as_me:$LINENO: result: $INSTALL" >&5
36851 echo "${ECHO_T}$INSTALL" >&6
36852
36853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36854 # It thinks the first close brace ends the variable substitution.
36855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36856
36857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36858
36859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36860
36861     echo "$as_me:$LINENO: checking whether ln -s works" >&5
36862 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36863 LN_S=$as_ln_s
36864 if test "$LN_S" = "ln -s"; then
36865   echo "$as_me:$LINENO: result: yes" >&5
36866 echo "${ECHO_T}yes" >&6
36867 else
36868   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
36869 echo "${ECHO_T}no, using $LN_S" >&6
36870 fi
36871
36872
36873     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36874 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
36875 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
36876 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36877   echo $ECHO_N "(cached) $ECHO_C" >&6
36878 else
36879   cat >conftest.make <<\_ACEOF
36880 all:
36881         @echo 'ac_maketemp="$(MAKE)"'
36882 _ACEOF
36883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
36884 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36885 if test -n "$ac_maketemp"; then
36886   eval ac_cv_prog_make_${ac_make}_set=yes
36887 else
36888   eval ac_cv_prog_make_${ac_make}_set=no
36889 fi
36890 rm -f conftest.make
36891 fi
36892 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
36893   echo "$as_me:$LINENO: result: yes" >&5
36894 echo "${ECHO_T}yes" >&6
36895   SET_MAKE=
36896 else
36897   echo "$as_me:$LINENO: result: no" >&5
36898 echo "${ECHO_T}no" >&6
36899   SET_MAKE="MAKE=${MAKE-make}"
36900 fi
36901
36902
36903
36904     if test -n "$ac_tool_prefix"; then
36905   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36906 set dummy ${ac_tool_prefix}ar; ac_word=$2
36907 echo "$as_me:$LINENO: checking for $ac_word" >&5
36908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36909 if test "${ac_cv_prog_AR+set}" = set; then
36910   echo $ECHO_N "(cached) $ECHO_C" >&6
36911 else
36912   if test -n "$AR"; then
36913   ac_cv_prog_AR="$AR" # Let the user override the test.
36914 else
36915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36916 for as_dir in $PATH
36917 do
36918   IFS=$as_save_IFS
36919   test -z "$as_dir" && as_dir=.
36920   for ac_exec_ext in '' $ac_executable_extensions; do
36921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36922     ac_cv_prog_AR="${ac_tool_prefix}ar"
36923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36924     break 2
36925   fi
36926 done
36927 done
36928
36929 fi
36930 fi
36931 AR=$ac_cv_prog_AR
36932 if test -n "$AR"; then
36933   echo "$as_me:$LINENO: result: $AR" >&5
36934 echo "${ECHO_T}$AR" >&6
36935 else
36936   echo "$as_me:$LINENO: result: no" >&5
36937 echo "${ECHO_T}no" >&6
36938 fi
36939
36940 fi
36941 if test -z "$ac_cv_prog_AR"; then
36942   ac_ct_AR=$AR
36943   # Extract the first word of "ar", so it can be a program name with args.
36944 set dummy ar; ac_word=$2
36945 echo "$as_me:$LINENO: checking for $ac_word" >&5
36946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36947 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36948   echo $ECHO_N "(cached) $ECHO_C" >&6
36949 else
36950   if test -n "$ac_ct_AR"; then
36951   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36952 else
36953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36954 for as_dir in $PATH
36955 do
36956   IFS=$as_save_IFS
36957   test -z "$as_dir" && as_dir=.
36958   for ac_exec_ext in '' $ac_executable_extensions; do
36959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36960     ac_cv_prog_ac_ct_AR="ar"
36961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36962     break 2
36963   fi
36964 done
36965 done
36966
36967   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
36968 fi
36969 fi
36970 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36971 if test -n "$ac_ct_AR"; then
36972   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36973 echo "${ECHO_T}$ac_ct_AR" >&6
36974 else
36975   echo "$as_me:$LINENO: result: no" >&5
36976 echo "${ECHO_T}no" >&6
36977 fi
36978
36979   AR=$ac_ct_AR
36980 else
36981   AR="$ac_cv_prog_AR"
36982 fi
36983
36984     if test -n "$ac_tool_prefix"; then
36985   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
36986 set dummy ${ac_tool_prefix}strip; ac_word=$2
36987 echo "$as_me:$LINENO: checking for $ac_word" >&5
36988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36989 if test "${ac_cv_prog_STRIP+set}" = set; then
36990   echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992   if test -n "$STRIP"; then
36993   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
36994 else
36995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36996 for as_dir in $PATH
36997 do
36998   IFS=$as_save_IFS
36999   test -z "$as_dir" && as_dir=.
37000   for ac_exec_ext in '' $ac_executable_extensions; do
37001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37002     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37004     break 2
37005   fi
37006 done
37007 done
37008
37009 fi
37010 fi
37011 STRIP=$ac_cv_prog_STRIP
37012 if test -n "$STRIP"; then
37013   echo "$as_me:$LINENO: result: $STRIP" >&5
37014 echo "${ECHO_T}$STRIP" >&6
37015 else
37016   echo "$as_me:$LINENO: result: no" >&5
37017 echo "${ECHO_T}no" >&6
37018 fi
37019
37020 fi
37021 if test -z "$ac_cv_prog_STRIP"; then
37022   ac_ct_STRIP=$STRIP
37023   # Extract the first word of "strip", so it can be a program name with args.
37024 set dummy strip; ac_word=$2
37025 echo "$as_me:$LINENO: checking for $ac_word" >&5
37026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37027 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   if test -n "$ac_ct_STRIP"; then
37031   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37032 else
37033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37034 for as_dir in $PATH
37035 do
37036   IFS=$as_save_IFS
37037   test -z "$as_dir" && as_dir=.
37038   for ac_exec_ext in '' $ac_executable_extensions; do
37039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37040     ac_cv_prog_ac_ct_STRIP="strip"
37041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37042     break 2
37043   fi
37044 done
37045 done
37046
37047   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37048 fi
37049 fi
37050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37051 if test -n "$ac_ct_STRIP"; then
37052   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37053 echo "${ECHO_T}$ac_ct_STRIP" >&6
37054 else
37055   echo "$as_me:$LINENO: result: no" >&5
37056 echo "${ECHO_T}no" >&6
37057 fi
37058
37059   STRIP=$ac_ct_STRIP
37060 else
37061   STRIP="$ac_cv_prog_STRIP"
37062 fi
37063
37064     if test -n "$ac_tool_prefix"; then
37065   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37066 set dummy ${ac_tool_prefix}nm; ac_word=$2
37067 echo "$as_me:$LINENO: checking for $ac_word" >&5
37068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37069 if test "${ac_cv_prog_NM+set}" = set; then
37070   echo $ECHO_N "(cached) $ECHO_C" >&6
37071 else
37072   if test -n "$NM"; then
37073   ac_cv_prog_NM="$NM" # Let the user override the test.
37074 else
37075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37076 for as_dir in $PATH
37077 do
37078   IFS=$as_save_IFS
37079   test -z "$as_dir" && as_dir=.
37080   for ac_exec_ext in '' $ac_executable_extensions; do
37081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37082     ac_cv_prog_NM="${ac_tool_prefix}nm"
37083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37084     break 2
37085   fi
37086 done
37087 done
37088
37089 fi
37090 fi
37091 NM=$ac_cv_prog_NM
37092 if test -n "$NM"; then
37093   echo "$as_me:$LINENO: result: $NM" >&5
37094 echo "${ECHO_T}$NM" >&6
37095 else
37096   echo "$as_me:$LINENO: result: no" >&5
37097 echo "${ECHO_T}no" >&6
37098 fi
37099
37100 fi
37101 if test -z "$ac_cv_prog_NM"; then
37102   ac_ct_NM=$NM
37103   # Extract the first word of "nm", so it can be a program name with args.
37104 set dummy nm; ac_word=$2
37105 echo "$as_me:$LINENO: checking for $ac_word" >&5
37106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37107 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37108   echo $ECHO_N "(cached) $ECHO_C" >&6
37109 else
37110   if test -n "$ac_ct_NM"; then
37111   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37112 else
37113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37114 for as_dir in $PATH
37115 do
37116   IFS=$as_save_IFS
37117   test -z "$as_dir" && as_dir=.
37118   for ac_exec_ext in '' $ac_executable_extensions; do
37119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37120     ac_cv_prog_ac_ct_NM="nm"
37121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37122     break 2
37123   fi
37124 done
37125 done
37126
37127   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37128 fi
37129 fi
37130 ac_ct_NM=$ac_cv_prog_ac_ct_NM
37131 if test -n "$ac_ct_NM"; then
37132   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37133 echo "${ECHO_T}$ac_ct_NM" >&6
37134 else
37135   echo "$as_me:$LINENO: result: no" >&5
37136 echo "${ECHO_T}no" >&6
37137 fi
37138
37139   NM=$ac_ct_NM
37140 else
37141   NM="$ac_cv_prog_NM"
37142 fi
37143
37144
37145     case ${host} in
37146         *-hp-hpux* )
37147             INSTALL_DIR="mkdir"
37148             ;;
37149         *)  INSTALL_DIR="$INSTALL -d"
37150             ;;
37151     esac
37152
37153
37154     LDFLAGS_GUI=
37155     case ${host} in
37156         *-*-cygwin* | *-*-mingw32* )
37157         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37158     esac
37159
37160
37161     fi
37162
37163         echo "$as_me:$LINENO: checking if make is GNU make" >&5
37164 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
37165 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
37166   echo $ECHO_N "(cached) $ECHO_C" >&6
37167 else
37168
37169         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37170                 egrep -s GNU > /dev/null); then
37171             bakefile_cv_prog_makeisgnu="yes"
37172         else
37173             bakefile_cv_prog_makeisgnu="no"
37174         fi
37175
37176 fi
37177 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37178 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
37179
37180     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37181         IF_GNU_MAKE=""
37182     else
37183         IF_GNU_MAKE="#"
37184     fi
37185
37186
37187
37188     PLATFORM_UNIX=0
37189     PLATFORM_WIN32=0
37190     PLATFORM_MSDOS=0
37191     PLATFORM_MAC=0
37192     PLATFORM_MACOSX=0
37193     PLATFORM_OS2=0
37194
37195     case "${host}" in
37196         *-*-cygwin* | *-*-mingw32* )
37197             PLATFORM_WIN32=1
37198         ;;
37199         *-pc-msdosdjgpp )
37200             PLATFORM_MSDOS=1
37201         ;;
37202         *-pc-os2_emx | *-pc-os2-emx )
37203             PLATFORM_OS2=1
37204         ;;
37205         powerpc-*-darwin* )
37206             PLATFORM_MAC=1
37207             PLATFORM_MACOSX=1
37208         ;;
37209         * )
37210             PLATFORM_UNIX=1
37211         ;;
37212     esac
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222     SO_SUFFIX="so"
37223     SO_SUFFIX_MODULE="so"
37224     EXEEXT=""
37225     LIBPREFIX=lib
37226     DLLPREFIX=lib
37227     DLLPREFIX_MODULE=
37228
37229     case "${host}" in
37230         *-hp-hpux* )
37231             SO_SUFFIX="sl"
37232             SO_SUFFIX_MODULE="sl"
37233         ;;
37234         *-*-aix* )
37235                                                                         SO_SUFFIX="a"
37236             SO_SUFFIX_MODULE="a"
37237         ;;
37238         *-*-cygwin* | *-*-mingw32* )
37239             SO_SUFFIX="dll"
37240             SO_SUFFIX_MODULE="dll"
37241             EXEEXT=".exe"
37242             DLLPREFIX=""
37243         ;;
37244         *-pc-msdosdjgpp )
37245             EXEEXT=".exe"
37246             DLLPREFIX=""
37247         ;;
37248         *-pc-os2_emx | *-pc-os2-emx )
37249             EXEEXT=".exe"
37250             DLLPREFIX=""
37251             LIBPREFIX=""
37252         ;;
37253         powerpc-*-darwin* )
37254             SO_SUFFIX="dylib"
37255             SO_SUFFIX_MODULE="bundle"
37256         ;;
37257     esac
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267         SHARED_LD_CC="\$(CC) -shared -o"
37268     SHARED_LD_CXX="\$(CXX) -shared -o"
37269
37270         if test "x$GCC" = "xyes"; then
37271                 PIC_FLAG="-fPIC"
37272     fi
37273
37274     case "${host}" in
37275       *-hp-hpux* )
37276                 if test "x$GCC" = "xyes"; then
37277                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37278             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37279         else
37280                         LDFLAGS="$LDFLAGS -L/usr/lib"
37281
37282             SHARED_LD_CC="${CC} -b -o"
37283             SHARED_LD_CXX="${CXX} -b -o"
37284             PIC_FLAG="+Z"
37285         fi
37286       ;;
37287
37288       *-*-linux* )
37289         if test "x$GCC" != "xyes"; then
37290             echo "$as_me:$LINENO: checking for Intel compiler" >&5
37291 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37292 if test "${bakefile_cv_prog_icc+set}" = set; then
37293   echo $ECHO_N "(cached) $ECHO_C" >&6
37294 else
37295
37296                 cat >conftest.$ac_ext <<_ACEOF
37297 /* confdefs.h.  */
37298 _ACEOF
37299 cat confdefs.h >>conftest.$ac_ext
37300 cat >>conftest.$ac_ext <<_ACEOF
37301 /* end confdefs.h.  */
37302
37303 int
37304 main ()
37305 {
37306
37307                         #ifndef __INTEL_COMPILER
37308                         #error Not icc
37309                         #endif
37310
37311   ;
37312   return 0;
37313 }
37314 _ACEOF
37315 rm -f conftest.$ac_objext
37316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37317   (eval $ac_compile) 2>conftest.er1
37318   ac_status=$?
37319   grep -v '^ *+' conftest.er1 >conftest.err
37320   rm -f conftest.er1
37321   cat conftest.err >&5
37322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323   (exit $ac_status); } &&
37324          { ac_try='test -z "$ac_c_werror_flag"
37325                          || test ! -s conftest.err'
37326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327   (eval $ac_try) 2>&5
37328   ac_status=$?
37329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330   (exit $ac_status); }; } &&
37331          { ac_try='test -s conftest.$ac_objext'
37332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37333   (eval $ac_try) 2>&5
37334   ac_status=$?
37335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336   (exit $ac_status); }; }; then
37337   bakefile_cv_prog_icc=yes
37338 else
37339   echo "$as_me: failed program was:" >&5
37340 sed 's/^/| /' conftest.$ac_ext >&5
37341
37342 bakefile_cv_prog_icc=no
37343
37344 fi
37345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37346
37347 fi
37348 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
37349 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
37350             if test "$bakefile_cv_prog_icc" = "yes"; then
37351                 PIC_FLAG="-KPIC"
37352             fi
37353         fi
37354       ;;
37355
37356       *-*-solaris2* )
37357         if test "x$GCC" != xyes ; then
37358             SHARED_LD_CC="${CC} -G -o"
37359             SHARED_LD_CXX="${CXX} -G -o"
37360             PIC_FLAG="-KPIC"
37361         fi
37362       ;;
37363
37364       *-*-darwin* )
37365                         CFLAGS="$CFLAGS -fno-common"
37366         CXXFLAGS="$CXXFLAGS -fno-common"
37367
37368
37369                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
37370 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
37371 if test "${wx_cv_gcc31+set}" = set; then
37372   echo $ECHO_N "(cached) $ECHO_C" >&6
37373 else
37374
37375            cat >conftest.$ac_ext <<_ACEOF
37376 /* confdefs.h.  */
37377 _ACEOF
37378 cat confdefs.h >>conftest.$ac_ext
37379 cat >>conftest.$ac_ext <<_ACEOF
37380 /* end confdefs.h.  */
37381
37382 int
37383 main ()
37384 {
37385
37386                    #if (__GNUC__ < 3) || \
37387                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
37388                        #error old gcc
37389                    #endif
37390
37391   ;
37392   return 0;
37393 }
37394 _ACEOF
37395 rm -f conftest.$ac_objext
37396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37397   (eval $ac_compile) 2>conftest.er1
37398   ac_status=$?
37399   grep -v '^ *+' conftest.er1 >conftest.err
37400   rm -f conftest.er1
37401   cat conftest.err >&5
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); } &&
37404          { ac_try='test -z "$ac_c_werror_flag"
37405                          || test ! -s conftest.err'
37406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407   (eval $ac_try) 2>&5
37408   ac_status=$?
37409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410   (exit $ac_status); }; } &&
37411          { ac_try='test -s conftest.$ac_objext'
37412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413   (eval $ac_try) 2>&5
37414   ac_status=$?
37415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); }; }; then
37417
37418                    wx_cv_gcc31=yes
37419
37420 else
37421   echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37423
37424
37425                    wx_cv_gcc31=no
37426
37427
37428 fi
37429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37430
37431 fi
37432 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
37433 echo "${ECHO_T}$wx_cv_gcc31" >&6
37434         if test "$wx_cv_gcc31" = "no"; then
37435             cat <<EOF >shared-ld-sh
37436 #!/bin/sh
37437 #-----------------------------------------------------------------------------
37438 #-- Name:        distrib/mac/shared-ld-sh
37439 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
37440 #-- Author:      Gilles Depeyrot
37441 #-- Copyright:   (c) 2002 Gilles Depeyrot
37442 #-- Licence:     any use permitted
37443 #-----------------------------------------------------------------------------
37444
37445 verbose=0
37446 args=""
37447 objects=""
37448 linking_flag="-dynamiclib"
37449
37450 while test \${#} -gt 0; do
37451     case \${1} in
37452
37453        -v)
37454         verbose=1
37455         ;;
37456
37457        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
37458         # collect these options and values
37459         args="\${args} \${1} \${2}"
37460         shift
37461         ;;
37462
37463        -l*|-L*|-flat_namespace)
37464         # collect these options
37465         args="\${args} \${1}"
37466         ;;
37467
37468        -dynamiclib|-bundle)
37469         linking_flag="\${1}"
37470         ;;
37471
37472        -*)
37473         echo "shared-ld: unhandled option '\${1}'"
37474         exit 1
37475         ;;
37476
37477         *.o | *.a | *.dylib)
37478         # collect object files
37479         objects="\${objects} \${1}"
37480         ;;
37481
37482         *)
37483         echo "shared-ld: unhandled argument '\${1}'"
37484         exit 1
37485         ;;
37486
37487     esac
37488     shift
37489 done
37490
37491 #
37492 # Link one module containing all the others
37493 #
37494 if test \${verbose} = 1; then
37495     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
37496 fi
37497 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
37498 status=\$?
37499 if test \${status} != 0; then
37500     exit \${status}
37501 fi
37502
37503 #
37504 # Link the shared library from the single module created
37505 #
37506 if test \${verbose} = 1; then
37507     echo "cc \${linking_flag} master.\$\$.o \${args}"
37508 fi
37509 c++ \${linking_flag} master.\$\$.o \${args}
37510 status=\$?
37511 if test \${status} != 0; then
37512     exit \${status}
37513 fi
37514
37515 #
37516 # Remove intermediate module
37517 #
37518 rm -f master.\$\$.o
37519
37520 exit 0
37521 EOF
37522             chmod +x shared-ld-sh
37523
37524                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
37525             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
37526             SHARED_LD_CXX="$SHARED_LD_CC"
37527             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
37528         else
37529                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
37530             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
37531             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
37532             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
37533         fi
37534
37535         PIC_FLAG="-dynamic -fPIC"
37536       ;;
37537
37538       *-*-aix* )
37539                 if test "x$GCC" != "xyes"; then
37540                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
37541 set dummy makeC++SharedLib; ac_word=$2
37542 echo "$as_me:$LINENO: checking for $ac_word" >&5
37543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37544 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
37545   echo $ECHO_N "(cached) $ECHO_C" >&6
37546 else
37547   if test -n "$AIX_CXX_LD"; then
37548   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
37549 else
37550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37551 for as_dir in $PATH
37552 do
37553   IFS=$as_save_IFS
37554   test -z "$as_dir" && as_dir=.
37555   for ac_exec_ext in '' $ac_executable_extensions; do
37556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37557     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
37558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37559     break 2
37560   fi
37561 done
37562 done
37563
37564   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
37565 fi
37566 fi
37567 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
37568 if test -n "$AIX_CXX_LD"; then
37569   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
37570 echo "${ECHO_T}$AIX_CXX_LD" >&6
37571 else
37572   echo "$as_me:$LINENO: result: no" >&5
37573 echo "${ECHO_T}no" >&6
37574 fi
37575
37576                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
37577             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
37578         fi
37579       ;;
37580
37581       *-*-beos* )
37582                         SHARED_LD_CC="${LD} -shared -o"
37583         SHARED_LD_CXX="${LD} -shared -o"
37584       ;;
37585
37586       *-*-irix* )
37587                 if test "x$GCC" != "xyes"; then
37588             PIC_FLAG="-KPIC"
37589         fi
37590       ;;
37591
37592       *-*-cygwin* | *-*-mingw32* )
37593         PIC_FLAG=""
37594       ;;
37595
37596       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37597       *-*-sunos4* | \
37598       *-*-osf* | \
37599       *-*-dgux5* | \
37600       *-pc-os2_emx | *-pc-os2-emx | \
37601       *-*-sysv5* )
37602               ;;
37603
37604       *)
37605         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
37606 echo "$as_me: error: unknown system type $host." >&2;}
37607    { (exit 1); exit 1; }; }
37608     esac
37609
37610     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37611         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37612     fi
37613     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
37614         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
37615     fi
37616
37617
37618
37619
37620
37621
37622
37623
37624     USE_SOVERSION=0
37625     USE_SOVERLINUX=0
37626     USE_SOVERSOLARIS=0
37627     USE_SOSYMLINKS=0
37628     USE_MACVERSION=0
37629     SONAME_FLAG=
37630
37631     case "${host}" in
37632       *-*-linux* )
37633         SONAME_FLAG="-Wl,-soname,"
37634         USE_SOVERSION=1
37635         USE_SOVERLINUX=1
37636         USE_SOSYMLINKS=1
37637       ;;
37638
37639       *-*-solaris2* )
37640         SONAME_FLAG="-h "
37641         USE_SOVERSION=1
37642         USE_SOVERSOLARIS=1
37643         USE_SOSYMLINKS=1
37644       ;;
37645
37646       *-*-darwin* )
37647         USE_MACVERSION=1
37648         USE_SOVERSION=1
37649         USE_SOSYMLINKS=1
37650       ;;
37651     esac
37652
37653
37654
37655
37656
37657
37658
37659
37660
37661     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37662 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37663     DEPS_TRACKING=0
37664
37665     if test "x$GCC" = "xyes"; then
37666         DEPSMODE=gcc
37667         DEPS_TRACKING=1
37668         case "${host}" in
37669             powerpc-*-darwin* )
37670                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37671             ;;
37672             * )
37673                 DEPSFLAG_GCC="-MMD"
37674             ;;
37675         esac
37676         echo "$as_me:$LINENO: result: gcc" >&5
37677 echo "${ECHO_T}gcc" >&6
37678     else
37679         echo "$as_me:$LINENO: result: none" >&5
37680 echo "${ECHO_T}none" >&6
37681     fi
37682
37683     if test $DEPS_TRACKING = 1 ; then
37684         cat <<EOF >bk-deps
37685 #!/bin/sh
37686
37687 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37688 # script. It is used to track C/C++ files dependencies in portable way.
37689 #
37690 # Permission is given to use this file in any way.
37691
37692 DEPSMODE=$DEPSMODE
37693 DEPSDIR=.deps
37694 DEPSFLAG_GCC="$DEPSFLAG_GCC"
37695
37696 mkdir -p \$DEPSDIR
37697
37698 if test \$DEPSMODE = gcc ; then
37699     \${*} \${DEPSFLAG_GCC}
37700     status=\${?}
37701     if test \${status} != 0 ; then
37702         exit \${status}
37703     fi
37704     # move created file to the location we want it in:
37705     while test \${#} -gt 0; do
37706         case "\${1}" in
37707             -o )
37708                 shift
37709                 objfile=\${1}
37710             ;;
37711             -* )
37712             ;;
37713             * )
37714                 srcfile=\${1}
37715             ;;
37716         esac
37717         shift
37718     done
37719     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
37720     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
37721     if test -f \$depfile ; then
37722         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37723         rm -f \$depfile
37724     else
37725         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
37726         if test -f \$depfile ; then
37727             sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37728             rm -f \$depfile
37729         fi
37730     fi
37731     exit 0
37732 else
37733     \${*}
37734     exit \${?}
37735 fi
37736 EOF
37737         chmod +x bk-deps
37738     fi
37739
37740
37741
37742
37743     RESCOMP=
37744     SETFILE=
37745
37746     case ${host} in
37747         *-*-cygwin* | *-*-mingw32* )
37748                         if test "$build" != "$host" ; then
37749                 RESCOMP=$host_alias-windres
37750             else
37751                 # Extract the first word of "windres", so it can be a program name with args.
37752 set dummy windres; ac_word=$2
37753 echo "$as_me:$LINENO: checking for $ac_word" >&5
37754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37755 if test "${ac_cv_prog_RESCOMP+set}" = set; then
37756   echo $ECHO_N "(cached) $ECHO_C" >&6
37757 else
37758   if test -n "$RESCOMP"; then
37759   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37760 else
37761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37762 for as_dir in $PATH
37763 do
37764   IFS=$as_save_IFS
37765   test -z "$as_dir" && as_dir=.
37766   for ac_exec_ext in '' $ac_executable_extensions; do
37767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37768     ac_cv_prog_RESCOMP="windres"
37769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37770     break 2
37771   fi
37772 done
37773 done
37774
37775   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37776 fi
37777 fi
37778 RESCOMP=$ac_cv_prog_RESCOMP
37779 if test -n "$RESCOMP"; then
37780   echo "$as_me:$LINENO: result: $RESCOMP" >&5
37781 echo "${ECHO_T}$RESCOMP" >&6
37782 else
37783   echo "$as_me:$LINENO: result: no" >&5
37784 echo "${ECHO_T}no" >&6
37785 fi
37786
37787             fi
37788          ;;
37789
37790       *-*-darwin* )
37791             # Extract the first word of "Rez", so it can be a program name with args.
37792 set dummy Rez; ac_word=$2
37793 echo "$as_me:$LINENO: checking for $ac_word" >&5
37794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37795 if test "${ac_cv_prog_RESCOMP+set}" = set; then
37796   echo $ECHO_N "(cached) $ECHO_C" >&6
37797 else
37798   if test -n "$RESCOMP"; then
37799   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37800 else
37801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37802 for as_dir in $PATH
37803 do
37804   IFS=$as_save_IFS
37805   test -z "$as_dir" && as_dir=.
37806   for ac_exec_ext in '' $ac_executable_extensions; do
37807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37808     ac_cv_prog_RESCOMP="Rez"
37809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37810     break 2
37811   fi
37812 done
37813 done
37814
37815   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37816 fi
37817 fi
37818 RESCOMP=$ac_cv_prog_RESCOMP
37819 if test -n "$RESCOMP"; then
37820   echo "$as_me:$LINENO: result: $RESCOMP" >&5
37821 echo "${ECHO_T}$RESCOMP" >&6
37822 else
37823   echo "$as_me:$LINENO: result: no" >&5
37824 echo "${ECHO_T}no" >&6
37825 fi
37826
37827             # Extract the first word of "SetFile", so it can be a program name with args.
37828 set dummy SetFile; ac_word=$2
37829 echo "$as_me:$LINENO: checking for $ac_word" >&5
37830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37831 if test "${ac_cv_prog_SETFILE+set}" = set; then
37832   echo $ECHO_N "(cached) $ECHO_C" >&6
37833 else
37834   if test -n "$SETFILE"; then
37835   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37836 else
37837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37838 for as_dir in $PATH
37839 do
37840   IFS=$as_save_IFS
37841   test -z "$as_dir" && as_dir=.
37842   for ac_exec_ext in '' $ac_executable_extensions; do
37843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37844     ac_cv_prog_SETFILE="SetFile"
37845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37846     break 2
37847   fi
37848 done
37849 done
37850
37851   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37852 fi
37853 fi
37854 SETFILE=$ac_cv_prog_SETFILE
37855 if test -n "$SETFILE"; then
37856   echo "$as_me:$LINENO: result: $SETFILE" >&5
37857 echo "${ECHO_T}$SETFILE" >&6
37858 else
37859   echo "$as_me:$LINENO: result: no" >&5
37860 echo "${ECHO_T}no" >&6
37861 fi
37862
37863         ;;
37864     esac
37865
37866
37867
37868
37869
37870
37871
37872
37873     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37874 if test "${enable_precomp_headers+set}" = set; then
37875   enableval="$enable_precomp_headers"
37876   bk_use_pch="$enableval"
37877 fi;
37878
37879     GCC_PCH=0
37880
37881     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37882         if test "x$GCC" = "xyes"; then
37883                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37884 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37885             cat >conftest.$ac_ext <<_ACEOF
37886 /* confdefs.h.  */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h.  */
37891
37892 int
37893 main ()
37894 {
37895
37896                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37897                         #error "no pch support"
37898                     #endif
37899                     #if (__GNUC__ < 3)
37900                         #error "no pch support"
37901                     #endif
37902                     #if (__GNUC__ == 3) && \
37903                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37904                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37905                         #error "no pch support"
37906                     #endif
37907
37908   ;
37909   return 0;
37910 }
37911 _ACEOF
37912 rm -f conftest.$ac_objext
37913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37914   (eval $ac_compile) 2>conftest.er1
37915   ac_status=$?
37916   grep -v '^ *+' conftest.er1 >conftest.err
37917   rm -f conftest.er1
37918   cat conftest.err >&5
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); } &&
37921          { ac_try='test -z "$ac_c_werror_flag"
37922                          || test ! -s conftest.err'
37923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924   (eval $ac_try) 2>&5
37925   ac_status=$?
37926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927   (exit $ac_status); }; } &&
37928          { ac_try='test -s conftest.$ac_objext'
37929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930   (eval $ac_try) 2>&5
37931   ac_status=$?
37932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933   (exit $ac_status); }; }; then
37934
37935                     echo "$as_me:$LINENO: result: yes" >&5
37936 echo "${ECHO_T}yes" >&6
37937                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
37938                     GCC_PCH=1
37939
37940 else
37941   echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.$ac_ext >&5
37943
37944
37945                     echo "$as_me:$LINENO: result: no" >&5
37946 echo "${ECHO_T}no" >&6
37947
37948 fi
37949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37950             if test $GCC_PCH = 1 ; then
37951                 cat <<EOF >bk-make-pch
37952 #!/bin/sh
37953
37954 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37955 # script. It is used to generated precompiled headers.
37956 #
37957 # Permission is given to use this file in any way.
37958
37959 outfile="\${1}"
37960 header="\${2}"
37961 shift
37962 shift
37963
37964 compiler=
37965 headerfile=
37966 while test \${#} -gt 0; do
37967     case "\${1}" in
37968         -I* )
37969             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
37970             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
37971                 headerfile="\${incdir}/\${header}"
37972             fi
37973         ;;
37974     esac
37975     compiler="\${compiler} \${1}"
37976     shift
37977 done
37978
37979 if test "x\${headerfile}" = "x" ; then
37980     echo "error: can't find header \${header} in include paths" >2
37981 else
37982     if test -f \${outfile} ; then
37983         rm -f \${outfile}
37984     else
37985         mkdir -p \`dirname \${outfile}\`
37986     fi
37987     depsfile=".deps/\`basename \${outfile}\`.d"
37988     mkdir -p .deps
37989     # can do this because gcc is >= 3.4:
37990     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
37991     exit \${?}
37992 fi
37993 EOF
37994                 chmod +x bk-make-pch
37995             fi
37996         fi
37997     fi
37998
37999
38000
38001
38002
38003     COND_BUILD_DEBUG="#"
38004     if test "x$BUILD" = "xdebug" ; then
38005         COND_BUILD_DEBUG=""
38006     fi
38007
38008     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38009     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38010         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38011     fi
38012
38013     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38014     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38015         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38016     fi
38017
38018     COND_BUILD_RELEASE="#"
38019     if test "x$BUILD" = "xrelease" ; then
38020         COND_BUILD_RELEASE=""
38021     fi
38022
38023     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38024     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38025         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38026     fi
38027
38028     COND_DEBUG_FLAG_1="#"
38029     if test "x$DEBUG_FLAG" = "x1" ; then
38030         COND_DEBUG_FLAG_1=""
38031     fi
38032
38033     COND_DEBUG_INFO_0="#"
38034     if test "x$DEBUG_INFO" = "x0" ; then
38035         COND_DEBUG_INFO_0=""
38036     fi
38037
38038     COND_DEBUG_INFO_1="#"
38039     if test "x$DEBUG_INFO" = "x1" ; then
38040         COND_DEBUG_INFO_1=""
38041     fi
38042
38043     COND_DEPS_TRACKING_0="#"
38044     if test "x$DEPS_TRACKING" = "x0" ; then
38045         COND_DEPS_TRACKING_0=""
38046     fi
38047
38048     COND_DEPS_TRACKING_1="#"
38049     if test "x$DEPS_TRACKING" = "x1" ; then
38050         COND_DEPS_TRACKING_1=""
38051     fi
38052
38053     COND_GCC_PCH_1="#"
38054     if test "x$GCC_PCH" = "x1" ; then
38055         COND_GCC_PCH_1=""
38056     fi
38057
38058     COND_MONOLITHIC_0="#"
38059     if test "x$MONOLITHIC" = "x0" ; then
38060         COND_MONOLITHIC_0=""
38061     fi
38062
38063     COND_MONOLITHIC_0_SHARED_0="#"
38064     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38065         COND_MONOLITHIC_0_SHARED_0=""
38066     fi
38067
38068     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38069     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38070         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
38071     fi
38072
38073     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38074     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38075         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38076     fi
38077
38078     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38079     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38080         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38081     fi
38082
38083     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38084     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38085         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38086     fi
38087
38088     COND_MONOLITHIC_0_SHARED_1="#"
38089     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38090         COND_MONOLITHIC_0_SHARED_1=""
38091     fi
38092
38093     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38094     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38095         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38096     fi
38097
38098     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38099     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38100         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38101     fi
38102
38103     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38104     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38105         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38106     fi
38107
38108     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38109     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38110         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38111     fi
38112
38113     COND_MONOLITHIC_1="#"
38114     if test "x$MONOLITHIC" = "x1" ; then
38115         COND_MONOLITHIC_1=""
38116     fi
38117
38118     COND_MONOLITHIC_1_SHARED_0="#"
38119     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38120         COND_MONOLITHIC_1_SHARED_0=""
38121     fi
38122
38123     COND_MONOLITHIC_1_SHARED_1="#"
38124     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38125         COND_MONOLITHIC_1_SHARED_1=""
38126     fi
38127
38128     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38129     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38130         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38131     fi
38132
38133     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38134     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38135         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38136     fi
38137
38138     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38139     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38140         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38141     fi
38142
38143     COND_PLATFORM_MACOSX_1="#"
38144     if test "x$PLATFORM_MACOSX" = "x1" ; then
38145         COND_PLATFORM_MACOSX_1=""
38146     fi
38147
38148     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38149     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38150         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38151     fi
38152
38153     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38154     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38155         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38156     fi
38157
38158     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38159     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38160         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38161     fi
38162
38163     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38164     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38165         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38166     fi
38167
38168     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38169     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38170         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38171     fi
38172
38173     COND_PLATFORM_MAC_1="#"
38174     if test "x$PLATFORM_MAC" = "x1" ; then
38175         COND_PLATFORM_MAC_1=""
38176     fi
38177
38178     COND_PLATFORM_OS2_1="#"
38179     if test "x$PLATFORM_OS2" = "x1" ; then
38180         COND_PLATFORM_OS2_1=""
38181     fi
38182
38183     COND_PLATFORM_UNIX_0="#"
38184     if test "x$PLATFORM_UNIX" = "x0" ; then
38185         COND_PLATFORM_UNIX_0=""
38186     fi
38187
38188     COND_PLATFORM_UNIX_1="#"
38189     if test "x$PLATFORM_UNIX" = "x1" ; then
38190         COND_PLATFORM_UNIX_1=""
38191     fi
38192
38193     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38194     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38195         COND_PLATFORM_UNIX_1_USE_GUI_1=""
38196     fi
38197
38198     COND_PLATFORM_WIN32_0="#"
38199     if test "x$PLATFORM_WIN32" = "x0" ; then
38200         COND_PLATFORM_WIN32_0=""
38201     fi
38202
38203     COND_PLATFORM_WIN32_1="#"
38204     if test "x$PLATFORM_WIN32" = "x1" ; then
38205         COND_PLATFORM_WIN32_1=""
38206     fi
38207
38208     COND_SHARED_0="#"
38209     if test "x$SHARED" = "x0" ; then
38210         COND_SHARED_0=""
38211     fi
38212
38213     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38214     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38215         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38216     fi
38217
38218     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38219     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38220         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38221     fi
38222
38223     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38224     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38225         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38226     fi
38227
38228     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38229     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38230         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38231     fi
38232
38233     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38234     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38235         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38236     fi
38237
38238     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38239     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38240         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38241     fi
38242
38243     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38244     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38245         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38246     fi
38247
38248     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38249     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38250         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38251     fi
38252
38253     COND_SHARED_1="#"
38254     if test "x$SHARED" = "x1" ; then
38255         COND_SHARED_1=""
38256     fi
38257
38258     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38259     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38260         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38261     fi
38262
38263     COND_TOOLKIT_COCOA="#"
38264     if test "x$TOOLKIT" = "xCOCOA" ; then
38265         COND_TOOLKIT_COCOA=""
38266     fi
38267
38268     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38269     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38270         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
38271     fi
38272
38273     COND_TOOLKIT_GTK="#"
38274     if test "x$TOOLKIT" = "xGTK" ; then
38275         COND_TOOLKIT_GTK=""
38276     fi
38277
38278     COND_TOOLKIT_GTK_USE_GUI_1="#"
38279     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38280         COND_TOOLKIT_GTK_USE_GUI_1=""
38281     fi
38282
38283     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38284     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38285         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
38286     fi
38287
38288     COND_TOOLKIT_MAC="#"
38289     if test "x$TOOLKIT" = "xMAC" ; then
38290         COND_TOOLKIT_MAC=""
38291     fi
38292
38293     COND_TOOLKIT_MAC_USE_GUI_1="#"
38294     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38295         COND_TOOLKIT_MAC_USE_GUI_1=""
38296     fi
38297
38298     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38299     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38300         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
38301     fi
38302
38303     COND_TOOLKIT_MGL="#"
38304     if test "x$TOOLKIT" = "xMGL" ; then
38305         COND_TOOLKIT_MGL=""
38306     fi
38307
38308     COND_TOOLKIT_MGL_USE_GUI_1="#"
38309     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38310         COND_TOOLKIT_MGL_USE_GUI_1=""
38311     fi
38312
38313     COND_TOOLKIT_MOTIF="#"
38314     if test "x$TOOLKIT" = "xMOTIF" ; then
38315         COND_TOOLKIT_MOTIF=""
38316     fi
38317
38318     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38319     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38320         COND_TOOLKIT_MOTIF_USE_GUI_1=""
38321     fi
38322
38323     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38324     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38325         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
38326     fi
38327
38328     COND_TOOLKIT_MSW="#"
38329     if test "x$TOOLKIT" = "xMSW" ; then
38330         COND_TOOLKIT_MSW=""
38331     fi
38332
38333     COND_TOOLKIT_MSW_USE_GUI_1="#"
38334     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38335         COND_TOOLKIT_MSW_USE_GUI_1=""
38336     fi
38337
38338     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38339     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38340         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
38341     fi
38342
38343     COND_TOOLKIT_PM="#"
38344     if test "x$TOOLKIT" = "xPM" ; then
38345         COND_TOOLKIT_PM=""
38346     fi
38347
38348     COND_TOOLKIT_PM_USE_GUI_1="#"
38349     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38350         COND_TOOLKIT_PM_USE_GUI_1=""
38351     fi
38352
38353     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38354     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38355         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38356     fi
38357
38358     COND_TOOLKIT_X11="#"
38359     if test "x$TOOLKIT" = "xX11" ; then
38360         COND_TOOLKIT_X11=""
38361     fi
38362
38363     COND_TOOLKIT_X11_USE_GUI_1="#"
38364     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38365         COND_TOOLKIT_X11_USE_GUI_1=""
38366     fi
38367
38368     COND_UNICODE_1="#"
38369     if test "x$UNICODE" = "x1" ; then
38370         COND_UNICODE_1=""
38371     fi
38372
38373     COND_USE_EXCEPTIONS_0="#"
38374     if test "x$USE_EXCEPTIONS" = "x0" ; then
38375         COND_USE_EXCEPTIONS_0=""
38376     fi
38377
38378     COND_USE_EXCEPTIONS_1="#"
38379     if test "x$USE_EXCEPTIONS" = "x1" ; then
38380         COND_USE_EXCEPTIONS_1=""
38381     fi
38382
38383     COND_USE_GUI_0="#"
38384     if test "x$USE_GUI" = "x0" ; then
38385         COND_USE_GUI_0=""
38386     fi
38387
38388     COND_USE_GUI_1="#"
38389     if test "x$USE_GUI" = "x1" ; then
38390         COND_USE_GUI_1=""
38391     fi
38392
38393     COND_USE_GUI_1_WXUNIV_0="#"
38394     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38395         COND_USE_GUI_1_WXUNIV_0=""
38396     fi
38397
38398     COND_USE_GUI_1_WXUNIV_1="#"
38399     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38400         COND_USE_GUI_1_WXUNIV_1=""
38401     fi
38402
38403     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38404     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38405         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38406     fi
38407
38408     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38409     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38410         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38411     fi
38412
38413     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38414     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38415         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38416     fi
38417
38418     COND_USE_ODBC_1="#"
38419     if test "x$USE_ODBC" = "x1" ; then
38420         COND_USE_ODBC_1=""
38421     fi
38422
38423     COND_USE_SOSYMLINKS_1="#"
38424     if test "x$USE_SOSYMLINKS" = "x1" ; then
38425         COND_USE_SOSYMLINKS_1=""
38426     fi
38427
38428     COND_USE_SOVERLINUX_1="#"
38429     if test "x$USE_SOVERLINUX" = "x1" ; then
38430         COND_USE_SOVERLINUX_1=""
38431     fi
38432
38433     COND_USE_SOVERSION_0="#"
38434     if test "x$USE_SOVERSION" = "x0" ; then
38435         COND_USE_SOVERSION_0=""
38436     fi
38437
38438     COND_USE_SOVERSOLARIS_1="#"
38439     if test "x$USE_SOVERSOLARIS" = "x1" ; then
38440         COND_USE_SOVERSOLARIS_1=""
38441     fi
38442
38443     COND_WXUNIV_1="#"
38444     if test "x$WXUNIV" = "x1" ; then
38445         COND_WXUNIV_1=""
38446     fi
38447
38448     COND_WXUSE_EXPAT_BUILTIN="#"
38449     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38450         COND_WXUSE_EXPAT_BUILTIN=""
38451     fi
38452
38453     COND_WXUSE_LIBJPEG_BUILTIN="#"
38454     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38455         COND_WXUSE_LIBJPEG_BUILTIN=""
38456     fi
38457
38458     COND_WXUSE_LIBPNG_BUILTIN="#"
38459     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38460         COND_WXUSE_LIBPNG_BUILTIN=""
38461     fi
38462
38463     COND_WXUSE_LIBTIFF_BUILTIN="#"
38464     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38465         COND_WXUSE_LIBTIFF_BUILTIN=""
38466     fi
38467
38468     COND_WXUSE_ODBC_BUILTIN="#"
38469     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38470         COND_WXUSE_ODBC_BUILTIN=""
38471     fi
38472
38473     COND_WXUSE_REGEX_BUILTIN="#"
38474     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38475         COND_WXUSE_REGEX_BUILTIN=""
38476     fi
38477
38478     COND_WXUSE_ZLIB_BUILTIN="#"
38479     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38480         COND_WXUSE_ZLIB_BUILTIN=""
38481     fi
38482
38483
38484
38485
38486
38487 if test $GCC_PCH = 1 ; then
38488     CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38489     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38490 else
38491     case "${host}" in
38492         powerpc-*-darwin* )
38493                                     CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38494             CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
38495             ;;
38496     esac
38497 fi
38498
38499
38500 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
38501
38502
38503
38504
38505
38506
38507
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38602 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38603 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38604 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38605   echo $ECHO_N "(cached) $ECHO_C" >&6
38606 else
38607   cat >conftest.make <<\_ACEOF
38608 all:
38609         @echo 'ac_maketemp="$(MAKE)"'
38610 _ACEOF
38611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38612 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38613 if test -n "$ac_maketemp"; then
38614   eval ac_cv_prog_make_${ac_make}_set=yes
38615 else
38616   eval ac_cv_prog_make_${ac_make}_set=no
38617 fi
38618 rm -f conftest.make
38619 fi
38620 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38621   echo "$as_me:$LINENO: result: yes" >&5
38622 echo "${ECHO_T}yes" >&6
38623   SET_MAKE=
38624 else
38625   echo "$as_me:$LINENO: result: no" >&5
38626 echo "${ECHO_T}no" >&6
38627   SET_MAKE="MAKE=${MAKE-make}"
38628 fi
38629
38630
38631 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38632     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38633 fi
38634
38635           ac_config_headers="$ac_config_headers setup.h"
38636
38637
38638                               ac_config_files="$ac_config_files wx-config version-script Makefile"
38639
38640
38641           ac_config_commands="$ac_config_commands default"
38642
38643
38644
38645 if test "$wxUSE_GUI" = "yes"; then
38646     SUBDIRS="samples demos utils contrib"
38647 else         SUBDIRS="samples utils"
38648 fi
38649
38650 for subdir in `echo $SUBDIRS`; do
38651     if test -d ${srcdir}/${subdir} ; then
38652         if test "$wxUSE_GUI" = "yes"; then
38653             if test ${subdir} = "samples"; then
38654                                                 makefiles="samples/Makefile.in $makefiles"
38655                 for sample in `echo $SAMPLES_SUBDIRS`; do
38656                     if test -d $srcdir/samples/$sample; then
38657                         makefiles="samples/$sample/Makefile.in $makefiles"
38658                     fi
38659                 done
38660             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38661             fi
38662         else                                     if test ${subdir} = "samples"; then
38663                 makefiles="samples/Makefile.in samples/console/Makefile.in"
38664             else                 makefiles="utils/HelpGen/Makefile.in \
38665                            utils/HelpGen/src/Makefile.in \
38666                            utils/tex2rtf/Makefile.in \
38667                            utils/tex2rtf/src/Makefile.in"
38668             fi
38669         fi
38670
38671         for mkin in $makefiles ; do
38672             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38673                       ac_config_files="$ac_config_files $mk"
38674
38675         done
38676     fi
38677 done
38678
38679
38680 cat >confcache <<\_ACEOF
38681 # This file is a shell script that caches the results of configure
38682 # tests run on this system so they can be shared between configure
38683 # scripts and configure runs, see configure's option --config-cache.
38684 # It is not useful on other systems.  If it contains results you don't
38685 # want to keep, you may remove or edit it.
38686 #
38687 # config.status only pays attention to the cache file if you give it
38688 # the --recheck option to rerun configure.
38689 #
38690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38692 # following values.
38693
38694 _ACEOF
38695
38696 # The following way of writing the cache mishandles newlines in values,
38697 # but we know of no workaround that is simple, portable, and efficient.
38698 # So, don't put newlines in cache variables' values.
38699 # Ultrix sh set writes to stderr and can't be redirected directly,
38700 # and sets the high bit in the cache file unless we assign to the vars.
38701 {
38702   (set) 2>&1 |
38703     case `(ac_space=' '; set | grep ac_space) 2>&1` in
38704     *ac_space=\ *)
38705       # `set' does not quote correctly, so add quotes (double-quote
38706       # substitution turns \\\\ into \\, and sed turns \\ into \).
38707       sed -n \
38708         "s/'/'\\\\''/g;
38709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38710       ;;
38711     *)
38712       # `set' quotes correctly as required by POSIX, so do not add quotes.
38713       sed -n \
38714         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38715       ;;
38716     esac;
38717 } |
38718   sed '
38719      t clear
38720      : clear
38721      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38722      t end
38723      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38724      : end' >>confcache
38725 if diff $cache_file confcache >/dev/null 2>&1; then :; else
38726   if test -w $cache_file; then
38727     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38728     cat confcache >$cache_file
38729   else
38730     echo "not updating unwritable cache $cache_file"
38731   fi
38732 fi
38733 rm -f confcache
38734
38735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38736 # Let make expand exec_prefix.
38737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38738
38739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38741 # trailing colons and then remove the whole line if VPATH becomes empty
38742 # (actually we leave an empty line to preserve line numbers).
38743 if test "x$srcdir" = x.; then
38744   ac_vpsub='/^[  ]*VPATH[        ]*=/{
38745 s/:*\$(srcdir):*/:/;
38746 s/:*\${srcdir}:*/:/;
38747 s/:*@srcdir@:*/:/;
38748 s/^\([^=]*=[     ]*\):*/\1/;
38749 s/:*$//;
38750 s/^[^=]*=[       ]*$//;
38751 }'
38752 fi
38753
38754 DEFS=-DHAVE_CONFIG_H
38755
38756 ac_libobjs=
38757 ac_ltlibobjs=
38758 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38759   # 1. Remove the extension, and $U if already installed.
38760   ac_i=`echo "$ac_i" |
38761          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
38762   # 2. Add them.
38763   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38764   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38765 done
38766 LIBOBJS=$ac_libobjs
38767
38768 LTLIBOBJS=$ac_ltlibobjs
38769
38770
38771
38772 : ${CONFIG_STATUS=./config.status}
38773 ac_clean_files_save=$ac_clean_files
38774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38777 cat >$CONFIG_STATUS <<_ACEOF
38778 #! $SHELL
38779 # Generated by $as_me.
38780 # Run this file to recreate the current configuration.
38781 # Compiler output produced by configure, useful for debugging
38782 # configure, is in config.log if it exists.
38783
38784 debug=false
38785 ac_cs_recheck=false
38786 ac_cs_silent=false
38787 SHELL=\${CONFIG_SHELL-$SHELL}
38788 _ACEOF
38789
38790 cat >>$CONFIG_STATUS <<\_ACEOF
38791 ## --------------------- ##
38792 ## M4sh Initialization.  ##
38793 ## --------------------- ##
38794
38795 # Be Bourne compatible
38796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38797   emulate sh
38798   NULLCMD=:
38799   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38800   # is contrary to our usage.  Disable this feature.
38801   alias -g '${1+"$@"}'='"$@"'
38802 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38803   set -o posix
38804 fi
38805 DUALCASE=1; export DUALCASE # for MKS sh
38806
38807 # Support unset when possible.
38808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38809   as_unset=unset
38810 else
38811   as_unset=false
38812 fi
38813
38814
38815 # Work around bugs in pre-3.0 UWIN ksh.
38816 $as_unset ENV MAIL MAILPATH
38817 PS1='$ '
38818 PS2='> '
38819 PS4='+ '
38820
38821 # NLS nuisances.
38822 for as_var in \
38823   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38824   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38825   LC_TELEPHONE LC_TIME
38826 do
38827   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38828     eval $as_var=C; export $as_var
38829   else
38830     $as_unset $as_var
38831   fi
38832 done
38833
38834 # Required to use basename.
38835 if expr a : '\(a\)' >/dev/null 2>&1; then
38836   as_expr=expr
38837 else
38838   as_expr=false
38839 fi
38840
38841 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38842   as_basename=basename
38843 else
38844   as_basename=false
38845 fi
38846
38847
38848 # Name of the executable.
38849 as_me=`$as_basename "$0" ||
38850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38851          X"$0" : 'X\(//\)$' \| \
38852          X"$0" : 'X\(/\)$' \| \
38853          .     : '\(.\)' 2>/dev/null ||
38854 echo X/"$0" |
38855     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38856           /^X\/\(\/\/\)$/{ s//\1/; q; }
38857           /^X\/\(\/\).*/{ s//\1/; q; }
38858           s/.*/./; q'`
38859
38860
38861 # PATH needs CR, and LINENO needs CR and PATH.
38862 # Avoid depending upon Character Ranges.
38863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38866 as_cr_digits='0123456789'
38867 as_cr_alnum=$as_cr_Letters$as_cr_digits
38868
38869 # The user is always right.
38870 if test "${PATH_SEPARATOR+set}" != set; then
38871   echo "#! /bin/sh" >conf$$.sh
38872   echo  "exit 0"   >>conf$$.sh
38873   chmod +x conf$$.sh
38874   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38875     PATH_SEPARATOR=';'
38876   else
38877     PATH_SEPARATOR=:
38878   fi
38879   rm -f conf$$.sh
38880 fi
38881
38882
38883   as_lineno_1=$LINENO
38884   as_lineno_2=$LINENO
38885   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38886   test "x$as_lineno_1" != "x$as_lineno_2" &&
38887   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
38888   # Find who we are.  Look in the path if we contain no path at all
38889   # relative or not.
38890   case $0 in
38891     *[\\/]* ) as_myself=$0 ;;
38892     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38893 for as_dir in $PATH
38894 do
38895   IFS=$as_save_IFS
38896   test -z "$as_dir" && as_dir=.
38897   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38898 done
38899
38900        ;;
38901   esac
38902   # We did not find ourselves, most probably we were run as `sh COMMAND'
38903   # in which case we are not to be found in the path.
38904   if test "x$as_myself" = x; then
38905     as_myself=$0
38906   fi
38907   if test ! -f "$as_myself"; then
38908     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38909 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38910    { (exit 1); exit 1; }; }
38911   fi
38912   case $CONFIG_SHELL in
38913   '')
38914     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38915 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38916 do
38917   IFS=$as_save_IFS
38918   test -z "$as_dir" && as_dir=.
38919   for as_base in sh bash ksh sh5; do
38920          case $as_dir in
38921          /*)
38922            if ("$as_dir/$as_base" -c '
38923   as_lineno_1=$LINENO
38924   as_lineno_2=$LINENO
38925   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38926   test "x$as_lineno_1" != "x$as_lineno_2" &&
38927   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
38928              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
38929              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
38930              CONFIG_SHELL=$as_dir/$as_base
38931              export CONFIG_SHELL
38932              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
38933            fi;;
38934          esac
38935        done
38936 done
38937 ;;
38938   esac
38939
38940   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38941   # uniformly replaced by the line number.  The first 'sed' inserts a
38942   # line-number line before each line; the second 'sed' does the real
38943   # work.  The second script uses 'N' to pair each line-number line
38944   # with the numbered line, and appends trailing '-' during
38945   # substitution so that $LINENO is not a special case at line end.
38946   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38947   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
38948   sed '=' <$as_myself |
38949     sed '
38950       N
38951       s,$,-,
38952       : loop
38953       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
38954       t loop
38955       s,-$,,
38956       s,^['$as_cr_digits']*\n,,
38957     ' >$as_me.lineno &&
38958   chmod +x $as_me.lineno ||
38959     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
38960 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
38961    { (exit 1); exit 1; }; }
38962
38963   # Don't try to exec as it changes $[0], causing all sort of problems
38964   # (the dirname of $[0] is not the place where we might find the
38965   # original and so on.  Autoconf is especially sensible to this).
38966   . ./$as_me.lineno
38967   # Exit status is that of the last command.
38968   exit
38969 }
38970
38971
38972 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
38973   *c*,-n*) ECHO_N= ECHO_C='
38974 ' ECHO_T='      ' ;;
38975   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
38976   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
38977 esac
38978
38979 if expr a : '\(a\)' >/dev/null 2>&1; then
38980   as_expr=expr
38981 else
38982   as_expr=false
38983 fi
38984
38985 rm -f conf$$ conf$$.exe conf$$.file
38986 echo >conf$$.file
38987 if ln -s conf$$.file conf$$ 2>/dev/null; then
38988   # We could just check for DJGPP; but this test a) works b) is more generic
38989   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
38990   if test -f conf$$.exe; then
38991     # Don't use ln at all; we don't have any links
38992     as_ln_s='cp -p'
38993   else
38994     as_ln_s='ln -s'
38995   fi
38996 elif ln conf$$.file conf$$ 2>/dev/null; then
38997   as_ln_s=ln
38998 else
38999   as_ln_s='cp -p'
39000 fi
39001 rm -f conf$$ conf$$.exe conf$$.file
39002
39003 if mkdir -p . 2>/dev/null; then
39004   as_mkdir_p=:
39005 else
39006   test -d ./-p && rmdir ./-p
39007   as_mkdir_p=false
39008 fi
39009
39010 as_executable_p="test -f"
39011
39012 # Sed expression to map a string onto a valid CPP name.
39013 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39014
39015 # Sed expression to map a string onto a valid variable name.
39016 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39017
39018
39019 # IFS
39020 # We need space, tab and new line, in precisely that order.
39021 as_nl='
39022 '
39023 IFS="   $as_nl"
39024
39025 # CDPATH.
39026 $as_unset CDPATH
39027
39028 exec 6>&1
39029
39030 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39031 # report actual input values of CONFIG_FILES etc. instead of their
39032 # values after options handling.  Logging --version etc. is OK.
39033 exec 5>>config.log
39034 {
39035   echo
39036   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39037 ## Running $as_me. ##
39038 _ASBOX
39039 } >&5
39040 cat >&5 <<_CSEOF
39041
39042 This file was extended by wxWindows $as_me 2.5.1, which was
39043 generated by GNU Autoconf 2.58.  Invocation command line was
39044
39045   CONFIG_FILES    = $CONFIG_FILES
39046   CONFIG_HEADERS  = $CONFIG_HEADERS
39047   CONFIG_LINKS    = $CONFIG_LINKS
39048   CONFIG_COMMANDS = $CONFIG_COMMANDS
39049   $ $0 $@
39050
39051 _CSEOF
39052 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39053 echo >&5
39054 _ACEOF
39055
39056 # Files that config.status was made for.
39057 if test -n "$ac_config_files"; then
39058   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39059 fi
39060
39061 if test -n "$ac_config_headers"; then
39062   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39063 fi
39064
39065 if test -n "$ac_config_links"; then
39066   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39067 fi
39068
39069 if test -n "$ac_config_commands"; then
39070   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39071 fi
39072
39073 cat >>$CONFIG_STATUS <<\_ACEOF
39074
39075 ac_cs_usage="\
39076 \`$as_me' instantiates files from templates according to the
39077 current configuration.
39078
39079 Usage: $0 [OPTIONS] [FILE]...
39080
39081   -h, --help       print this help, then exit
39082   -V, --version    print version number, then exit
39083   -q, --quiet      do not print progress messages
39084   -d, --debug      don't remove temporary files
39085       --recheck    update $as_me by reconfiguring in the same conditions
39086   --file=FILE[:TEMPLATE]
39087                    instantiate the configuration file FILE
39088   --header=FILE[:TEMPLATE]
39089                    instantiate the configuration header FILE
39090
39091 Configuration files:
39092 $config_files
39093
39094 Configuration headers:
39095 $config_headers
39096
39097 Configuration commands:
39098 $config_commands
39099
39100 Report bugs to <bug-autoconf@gnu.org>."
39101 _ACEOF
39102
39103 cat >>$CONFIG_STATUS <<_ACEOF
39104 ac_cs_version="\\
39105 wxWindows config.status 2.5.1
39106 configured by $0, generated by GNU Autoconf 2.58,
39107   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39108
39109 Copyright (C) 2003 Free Software Foundation, Inc.
39110 This config.status script is free software; the Free Software Foundation
39111 gives unlimited permission to copy, distribute and modify it."
39112 srcdir=$srcdir
39113 INSTALL="$INSTALL"
39114 _ACEOF
39115
39116 cat >>$CONFIG_STATUS <<\_ACEOF
39117 # If no file are specified by the user, then we need to provide default
39118 # value.  By we need to know if files were specified by the user.
39119 ac_need_defaults=:
39120 while test $# != 0
39121 do
39122   case $1 in
39123   --*=*)
39124     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39125     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39126     ac_shift=:
39127     ;;
39128   -*)
39129     ac_option=$1
39130     ac_optarg=$2
39131     ac_shift=shift
39132     ;;
39133   *) # This is not an option, so the user has probably given explicit
39134      # arguments.
39135      ac_option=$1
39136      ac_need_defaults=false;;
39137   esac
39138
39139   case $ac_option in
39140   # Handling of the options.
39141 _ACEOF
39142 cat >>$CONFIG_STATUS <<\_ACEOF
39143   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39144     ac_cs_recheck=: ;;
39145   --version | --vers* | -V )
39146     echo "$ac_cs_version"; exit 0 ;;
39147   --he | --h)
39148     # Conflict between --help and --header
39149     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39150 Try \`$0 --help' for more information." >&5
39151 echo "$as_me: error: ambiguous option: $1
39152 Try \`$0 --help' for more information." >&2;}
39153    { (exit 1); exit 1; }; };;
39154   --help | --hel | -h )
39155     echo "$ac_cs_usage"; exit 0 ;;
39156   --debug | --d* | -d )
39157     debug=: ;;
39158   --file | --fil | --fi | --f )
39159     $ac_shift
39160     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39161     ac_need_defaults=false;;
39162   --header | --heade | --head | --hea )
39163     $ac_shift
39164     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39165     ac_need_defaults=false;;
39166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39167   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39168     ac_cs_silent=: ;;
39169
39170   # This is an error.
39171   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39172 Try \`$0 --help' for more information." >&5
39173 echo "$as_me: error: unrecognized option: $1
39174 Try \`$0 --help' for more information." >&2;}
39175    { (exit 1); exit 1; }; } ;;
39176
39177   *) ac_config_targets="$ac_config_targets $1" ;;
39178
39179   esac
39180   shift
39181 done
39182
39183 ac_configure_extra_args=
39184
39185 if $ac_cs_silent; then
39186   exec 6>/dev/null
39187   ac_configure_extra_args="$ac_configure_extra_args --silent"
39188 fi
39189
39190 _ACEOF
39191 cat >>$CONFIG_STATUS <<_ACEOF
39192 if \$ac_cs_recheck; then
39193   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39194   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39195 fi
39196
39197 _ACEOF
39198
39199 cat >>$CONFIG_STATUS <<_ACEOF
39200 #
39201 # INIT-COMMANDS section.
39202 #
39203
39204
39205             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39206             LN_S="${LN_S}"
39207
39208
39209
39210 _ACEOF
39211
39212
39213
39214 cat >>$CONFIG_STATUS <<\_ACEOF
39215 for ac_config_target in $ac_config_targets
39216 do
39217   case "$ac_config_target" in
39218   # Handling of arguments.
39219   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39220   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39221   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39222   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
39223   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39224   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39225   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39226 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39227    { (exit 1); exit 1; }; };;
39228   esac
39229 done
39230
39231 # If the user did not use the arguments to specify the items to instantiate,
39232 # then the envvar interface is used.  Set only those that are not.
39233 # We use the long form for the default assignment because of an extremely
39234 # bizarre bug on SunOS 4.1.3.
39235 if $ac_need_defaults; then
39236   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39237   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39238   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39239 fi
39240
39241 # Have a temporary directory for convenience.  Make it in the build tree
39242 # simply because there is no reason to put it here, and in addition,
39243 # creating and moving files from /tmp can sometimes cause problems.
39244 # Create a temporary directory, and hook for its removal unless debugging.
39245 $debug ||
39246 {
39247   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39248   trap '{ (exit 1); exit 1; }' 1 2 13 15
39249 }
39250
39251 # Create a (secure) tmp directory for tmp files.
39252
39253 {
39254   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39255   test -n "$tmp" && test -d "$tmp"
39256 }  ||
39257 {
39258   tmp=./confstat$$-$RANDOM
39259   (umask 077 && mkdir $tmp)
39260 } ||
39261 {
39262    echo "$me: cannot create a temporary directory in ." >&2
39263    { (exit 1); exit 1; }
39264 }
39265
39266 _ACEOF
39267
39268 cat >>$CONFIG_STATUS <<_ACEOF
39269
39270 #
39271 # CONFIG_FILES section.
39272 #
39273
39274 # No need to generate the scripts if there are no CONFIG_FILES.
39275 # This happens for instance when ./config.status config.h
39276 if test -n "\$CONFIG_FILES"; then
39277   # Protect against being on the right side of a sed subst in config.status.
39278   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39279    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39280 s,@SHELL@,$SHELL,;t t
39281 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39282 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39283 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39284 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39285 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39286 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39287 s,@exec_prefix@,$exec_prefix,;t t
39288 s,@prefix@,$prefix,;t t
39289 s,@program_transform_name@,$program_transform_name,;t t
39290 s,@bindir@,$bindir,;t t
39291 s,@sbindir@,$sbindir,;t t
39292 s,@libexecdir@,$libexecdir,;t t
39293 s,@datadir@,$datadir,;t t
39294 s,@sysconfdir@,$sysconfdir,;t t
39295 s,@sharedstatedir@,$sharedstatedir,;t t
39296 s,@localstatedir@,$localstatedir,;t t
39297 s,@libdir@,$libdir,;t t
39298 s,@includedir@,$includedir,;t t
39299 s,@oldincludedir@,$oldincludedir,;t t
39300 s,@infodir@,$infodir,;t t
39301 s,@mandir@,$mandir,;t t
39302 s,@build_alias@,$build_alias,;t t
39303 s,@host_alias@,$host_alias,;t t
39304 s,@target_alias@,$target_alias,;t t
39305 s,@DEFS@,$DEFS,;t t
39306 s,@ECHO_C@,$ECHO_C,;t t
39307 s,@ECHO_N@,$ECHO_N,;t t
39308 s,@ECHO_T@,$ECHO_T,;t t
39309 s,@LIBS@,$LIBS,;t t
39310 s,@build@,$build,;t t
39311 s,@build_cpu@,$build_cpu,;t t
39312 s,@build_vendor@,$build_vendor,;t t
39313 s,@build_os@,$build_os,;t t
39314 s,@host@,$host,;t t
39315 s,@host_cpu@,$host_cpu,;t t
39316 s,@host_vendor@,$host_vendor,;t t
39317 s,@host_os@,$host_os,;t t
39318 s,@target@,$target,;t t
39319 s,@target_cpu@,$target_cpu,;t t
39320 s,@target_vendor@,$target_vendor,;t t
39321 s,@target_os@,$target_os,;t t
39322 s,@CC@,$CC,;t t
39323 s,@CFLAGS@,$CFLAGS,;t t
39324 s,@LDFLAGS@,$LDFLAGS,;t t
39325 s,@CPPFLAGS@,$CPPFLAGS,;t t
39326 s,@ac_ct_CC@,$ac_ct_CC,;t t
39327 s,@EXEEXT@,$EXEEXT,;t t
39328 s,@OBJEXT@,$OBJEXT,;t t
39329 s,@CPP@,$CPP,;t t
39330 s,@EGREP@,$EGREP,;t t
39331 s,@CXX@,$CXX,;t t
39332 s,@CXXFLAGS@,$CXXFLAGS,;t t
39333 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39334 s,@RANLIB@,$RANLIB,;t t
39335 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39336 s,@AR@,$AR,;t t
39337 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39338 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39339 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39340 s,@STRIP@,$STRIP,;t t
39341 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
39342 s,@LN_S@,$LN_S,;t t
39343 s,@CXXCPP@,$CXXCPP,;t t
39344 s,@subdirs@,$subdirs,;t t
39345 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39346 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39347 s,@GTK_LIBS@,$GTK_LIBS,;t t
39348 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39349 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39350 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39351 s,@X_CFLAGS@,$X_CFLAGS,;t t
39352 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39353 s,@X_LIBS@,$X_LIBS,;t t
39354 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39355 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39356 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39357 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39358 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
39359 s,@RESCOMP@,$RESCOMP,;t t
39360 s,@DEREZ@,$DEREZ,;t t
39361 s,@SETFILE@,$SETFILE,;t t
39362 s,@LIBICONV@,$LIBICONV,;t t
39363 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39364 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39365 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
39366 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39367 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
39368 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
39369 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39370 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39371 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39372 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
39373 s,@VENDOR@,$VENDOR,;t t
39374 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
39375 s,@WXUNIV@,$WXUNIV,;t t
39376 s,@MONOLITHIC@,$MONOLITHIC,;t t
39377 s,@EXTRALIBS@,$EXTRALIBS,;t t
39378 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
39379 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
39380 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
39381 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
39382 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
39383 s,@UNICODE@,$UNICODE,;t t
39384 s,@BUILD@,$BUILD,;t t
39385 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39386 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
39387 s,@SHARED@,$SHARED,;t t
39388 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39389 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39390 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
39391 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
39392 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
39393 s,@SET_MAKE@,$SET_MAKE,;t t
39394 s,@MAKE_SET@,$MAKE_SET,;t t
39395 s,@ac_ct_AR@,$ac_ct_AR,;t t
39396 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39397 s,@NM@,$NM,;t t
39398 s,@ac_ct_NM@,$ac_ct_NM,;t t
39399 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
39400 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
39401 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39402 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39403 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39404 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39405 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
39406 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
39407 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
39408 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
39409 s,@LIBPREFIX@,$LIBPREFIX,;t t
39410 s,@DLLPREFIX@,$DLLPREFIX,;t t
39411 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
39412 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
39413 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39414 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
39415 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39416 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
39417 s,@PIC_FLAG@,$PIC_FLAG,;t t
39418 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39419 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39420 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39421 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39422 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39423 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
39424 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
39425 s,@GCC_PCH@,$GCC_PCH,;t t
39426 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
39427 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39428 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
39429 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
39430 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39431 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39432 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39433 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
39434 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
39435 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
39436 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
39437 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
39438 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39439 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
39440 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
39441 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
39442 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
39443 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
39444 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
39445 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
39446 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
39447 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
39448 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
39449 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39450 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
39451 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39452 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
39453 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
39454 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
39455 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39456 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39457 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
39458 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
39459 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
39460 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
39461 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
39462 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
39463 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
39464 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
39465 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39466 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
39467 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
39468 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
39469 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39470 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39471 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39472 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39473 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39474 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39475 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
39476 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
39477 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
39478 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39479 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39480 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39481 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
39482 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
39483 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
39484 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
39485 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39486 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39487 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
39488 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39489 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39490 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
39491 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
39492 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39493 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
39494 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39495 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39496 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
39497 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39498 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
39499 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
39500 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39501 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
39502 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39503 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
39504 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39505 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
39506 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39507 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39508 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39509 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
39510 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39511 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39512 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39513 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
39514 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
39515 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
39516 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39517 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39518 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39519 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39520 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39521 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
39522 s,@PATH_IFS@,$PATH_IFS,;t t
39523 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39524 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39525 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39526 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39527 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
39528 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39529 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
39530 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39531 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39532 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39533 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39534 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39535 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39536 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39537 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39538 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39539 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39540 s,@WX_ALL@,$WX_ALL,;t t
39541 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39542 s,@SHARED_LD@,$SHARED_LD,;t t
39543 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39544 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39545 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39546 s,@USE_GUI@,$USE_GUI,;t t
39547 s,@AFMINSTALL@,$AFMINSTALL,;t t
39548 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39549 s,@TOOLKIT@,$TOOLKIT,;t t
39550 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39551 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39552 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39553 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39554 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39555 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39556 s,@cross_compiling@,$cross_compiling,;t t
39557 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
39558 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39559 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39560 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39561 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39562 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39563 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
39564 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
39565 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
39566 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39567 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
39568 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39569 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39570 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39571 s,@GUIDIST@,$GUIDIST,;t t
39572 s,@PORT_FILES@,$PORT_FILES,;t t
39573 s,@DISTDIR@,$DISTDIR,;t t
39574 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39575 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39576 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39577 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39578 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39579 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39580 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39581 s,@RESFLAGS@,$RESFLAGS,;t t
39582 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39583 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39584 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
39585 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
39586 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39587 s,@MACRESCOMP@,$MACRESCOMP,;t t
39588 s,@MACSETFILE@,$MACSETFILE,;t t
39589 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39590 s,@GCC@,$GCC,;t t
39591 s,@DLLTOOL@,$DLLTOOL,;t t
39592 s,@AS@,$AS,;t t
39593 s,@LD@,$LD,;t t
39594 s,@MAKEINFO@,$MAKEINFO,;t t
39595 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
39596 s,@LIBOBJS@,$LIBOBJS,;t t
39597 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39598 CEOF
39599
39600 _ACEOF
39601
39602   cat >>$CONFIG_STATUS <<\_ACEOF
39603   # Split the substitutions into bite-sized pieces for seds with
39604   # small command number limits, like on Digital OSF/1 and HP-UX.
39605   ac_max_sed_lines=48
39606   ac_sed_frag=1 # Number of current file.
39607   ac_beg=1 # First line for current file.
39608   ac_end=$ac_max_sed_lines # Line after last line for current file.
39609   ac_more_lines=:
39610   ac_sed_cmds=
39611   while $ac_more_lines; do
39612     if test $ac_beg -gt 1; then
39613       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39614     else
39615       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39616     fi
39617     if test ! -s $tmp/subs.frag; then
39618       ac_more_lines=false
39619     else
39620       # The purpose of the label and of the branching condition is to
39621       # speed up the sed processing (if there are no `@' at all, there
39622       # is no need to browse any of the substitutions).
39623       # These are the two extra sed commands mentioned above.
39624       (echo ':t
39625   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39626       if test -z "$ac_sed_cmds"; then
39627         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39628       else
39629         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39630       fi
39631       ac_sed_frag=`expr $ac_sed_frag + 1`
39632       ac_beg=$ac_end
39633       ac_end=`expr $ac_end + $ac_max_sed_lines`
39634     fi
39635   done
39636   if test -z "$ac_sed_cmds"; then
39637     ac_sed_cmds=cat
39638   fi
39639 fi # test -n "$CONFIG_FILES"
39640
39641 _ACEOF
39642 cat >>$CONFIG_STATUS <<\_ACEOF
39643 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39644   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39645   case $ac_file in
39646   - | *:- | *:-:* ) # input from stdin
39647         cat >$tmp/stdin
39648         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39649         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39650   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39651         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39652   * )   ac_file_in=$ac_file.in ;;
39653   esac
39654
39655   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39656   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39658          X"$ac_file" : 'X\(//\)[^/]' \| \
39659          X"$ac_file" : 'X\(//\)$' \| \
39660          X"$ac_file" : 'X\(/\)' \| \
39661          .     : '\(.\)' 2>/dev/null ||
39662 echo X"$ac_file" |
39663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39665           /^X\(\/\/\)$/{ s//\1/; q; }
39666           /^X\(\/\).*/{ s//\1/; q; }
39667           s/.*/./; q'`
39668   { if $as_mkdir_p; then
39669     mkdir -p "$ac_dir"
39670   else
39671     as_dir="$ac_dir"
39672     as_dirs=
39673     while test ! -d "$as_dir"; do
39674       as_dirs="$as_dir $as_dirs"
39675       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39677          X"$as_dir" : 'X\(//\)[^/]' \| \
39678          X"$as_dir" : 'X\(//\)$' \| \
39679          X"$as_dir" : 'X\(/\)' \| \
39680          .     : '\(.\)' 2>/dev/null ||
39681 echo X"$as_dir" |
39682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39684           /^X\(\/\/\)$/{ s//\1/; q; }
39685           /^X\(\/\).*/{ s//\1/; q; }
39686           s/.*/./; q'`
39687     done
39688     test ! -n "$as_dirs" || mkdir $as_dirs
39689   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39691    { (exit 1); exit 1; }; }; }
39692
39693   ac_builddir=.
39694
39695 if test "$ac_dir" != .; then
39696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39697   # A "../" for each directory in $ac_dir_suffix.
39698   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39699 else
39700   ac_dir_suffix= ac_top_builddir=
39701 fi
39702
39703 case $srcdir in
39704   .)  # No --srcdir option.  We are building in place.
39705     ac_srcdir=.
39706     if test -z "$ac_top_builddir"; then
39707        ac_top_srcdir=.
39708     else
39709        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39710     fi ;;
39711   [\\/]* | ?:[\\/]* )  # Absolute path.
39712     ac_srcdir=$srcdir$ac_dir_suffix;
39713     ac_top_srcdir=$srcdir ;;
39714   *) # Relative path.
39715     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39716     ac_top_srcdir=$ac_top_builddir$srcdir ;;
39717 esac
39718 case "$ac_dir" in
39719 .) ac_abs_builddir=$ac_builddir;;
39720 *)
39721   case $ac_builddir in
39722   .) ac_abs_builddir="$ac_dir";;
39723   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
39724   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
39725   esac;;
39726 esac
39727 case "$ac_dir" in
39728 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39729 *)
39730   case ${ac_top_builddir}. in
39731   .) ac_abs_top_builddir="$ac_dir";;
39732   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39733   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
39734   esac;;
39735 esac
39736 case "$ac_dir" in
39737 .) ac_abs_srcdir=$ac_srcdir;;
39738 *)
39739   case $ac_srcdir in
39740   .) ac_abs_srcdir="$ac_dir";;
39741   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39742   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
39743   esac;;
39744 esac
39745 case "$ac_dir" in
39746 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39747 *)
39748   case $ac_top_srcdir in
39749   .) ac_abs_top_srcdir="$ac_dir";;
39750   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39751   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
39752   esac;;
39753 esac
39754
39755
39756   case $INSTALL in
39757   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39758   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39759   esac
39760
39761   if test x"$ac_file" != x-; then
39762     { echo "$as_me:$LINENO: creating $ac_file" >&5
39763 echo "$as_me: creating $ac_file" >&6;}
39764     rm -f "$ac_file"
39765   fi
39766   # Let's still pretend it is `configure' which instantiates (i.e., don't
39767   # use $as_me), people would be surprised to read:
39768   #    /* config.h.  Generated by config.status.  */
39769   if test x"$ac_file" = x-; then
39770     configure_input=
39771   else
39772     configure_input="$ac_file.  "
39773   fi
39774   configure_input=$configure_input"Generated from `echo $ac_file_in |
39775                                      sed 's,.*/,,'` by configure."
39776
39777   # First look for the input files in the build tree, otherwise in the
39778   # src tree.
39779   ac_file_inputs=`IFS=:
39780     for f in $ac_file_in; do
39781       case $f in
39782       -) echo $tmp/stdin ;;
39783       [\\/$]*)
39784          # Absolute (can't be DOS-style, as IFS=:)
39785          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39786 echo "$as_me: error: cannot find input file: $f" >&2;}
39787    { (exit 1); exit 1; }; }
39788          echo "$f";;
39789       *) # Relative
39790          if test -f "$f"; then
39791            # Build tree
39792            echo "$f"
39793          elif test -f "$srcdir/$f"; then
39794            # Source tree
39795            echo "$srcdir/$f"
39796          else
39797            # /dev/null tree
39798            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39799 echo "$as_me: error: cannot find input file: $f" >&2;}
39800    { (exit 1); exit 1; }; }
39801          fi;;
39802       esac
39803     done` || { (exit 1); exit 1; }
39804 _ACEOF
39805 cat >>$CONFIG_STATUS <<_ACEOF
39806   sed "$ac_vpsub
39807 $extrasub
39808 _ACEOF
39809 cat >>$CONFIG_STATUS <<\_ACEOF
39810 :t
39811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39812 s,@configure_input@,$configure_input,;t t
39813 s,@srcdir@,$ac_srcdir,;t t
39814 s,@abs_srcdir@,$ac_abs_srcdir,;t t
39815 s,@top_srcdir@,$ac_top_srcdir,;t t
39816 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39817 s,@builddir@,$ac_builddir,;t t
39818 s,@abs_builddir@,$ac_abs_builddir,;t t
39819 s,@top_builddir@,$ac_top_builddir,;t t
39820 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39821 s,@INSTALL@,$ac_INSTALL,;t t
39822 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39823   rm -f $tmp/stdin
39824   if test x"$ac_file" != x-; then
39825     mv $tmp/out $ac_file
39826   else
39827     cat $tmp/out
39828     rm -f $tmp/out
39829   fi
39830
39831 done
39832 _ACEOF
39833 cat >>$CONFIG_STATUS <<\_ACEOF
39834
39835 #
39836 # CONFIG_HEADER section.
39837 #
39838
39839 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39840 # NAME is the cpp macro being defined and VALUE is the value it is being given.
39841 #
39842 # ac_d sets the value in "#define NAME VALUE" lines.
39843 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
39844 ac_dB='[         ].*$,\1#\2'
39845 ac_dC=' '
39846 ac_dD=',;t'
39847 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
39848 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
39849 ac_uB='$,\1#\2define\3'
39850 ac_uC=' '
39851 ac_uD=',;t'
39852
39853 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
39854   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39855   case $ac_file in
39856   - | *:- | *:-:* ) # input from stdin
39857         cat >$tmp/stdin
39858         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39859         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39860   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39861         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39862   * )   ac_file_in=$ac_file.in ;;
39863   esac
39864
39865   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39866 echo "$as_me: creating $ac_file" >&6;}
39867
39868   # First look for the input files in the build tree, otherwise in the
39869   # src tree.
39870   ac_file_inputs=`IFS=:
39871     for f in $ac_file_in; do
39872       case $f in
39873       -) echo $tmp/stdin ;;
39874       [\\/$]*)
39875          # Absolute (can't be DOS-style, as IFS=:)
39876          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39877 echo "$as_me: error: cannot find input file: $f" >&2;}
39878    { (exit 1); exit 1; }; }
39879          # Do quote $f, to prevent DOS paths from being IFS'd.
39880          echo "$f";;
39881       *) # Relative
39882          if test -f "$f"; then
39883            # Build tree
39884            echo "$f"
39885          elif test -f "$srcdir/$f"; then
39886            # Source tree
39887            echo "$srcdir/$f"
39888          else
39889            # /dev/null tree
39890            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39891 echo "$as_me: error: cannot find input file: $f" >&2;}
39892    { (exit 1); exit 1; }; }
39893          fi;;
39894       esac
39895     done` || { (exit 1); exit 1; }
39896   # Remove the trailing spaces.
39897   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
39898
39899 _ACEOF
39900
39901 # Transform confdefs.h into two sed scripts, `conftest.defines' and
39902 # `conftest.undefs', that substitutes the proper values into
39903 # config.h.in to produce config.h.  The first handles `#define'
39904 # templates, and the second `#undef' templates.
39905 # And first: Protect against being on the right side of a sed subst in
39906 # config.status.  Protect against being in an unquoted here document
39907 # in config.status.
39908 rm -f conftest.defines conftest.undefs
39909 # Using a here document instead of a string reduces the quoting nightmare.
39910 # Putting comments in sed scripts is not portable.
39911 #
39912 # `end' is used to avoid that the second main sed command (meant for
39913 # 0-ary CPP macros) applies to n-ary macro definitions.
39914 # See the Autoconf documentation for `clear'.
39915 cat >confdef2sed.sed <<\_ACEOF
39916 s/[\\&,]/\\&/g
39917 s,[\\$`],\\&,g
39918 t clear
39919 : clear
39920 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
39921 t end
39922 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
39923 : end
39924 _ACEOF
39925 # If some macros were called several times there might be several times
39926 # the same #defines, which is useless.  Nevertheless, we may not want to
39927 # sort them, since we want the *last* AC-DEFINE to be honored.
39928 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
39929 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
39930 rm -f confdef2sed.sed
39931
39932 # This sed command replaces #undef with comments.  This is necessary, for
39933 # example, in the case of _POSIX_SOURCE, which is predefined and required
39934 # on some systems where configure will not decide to define it.
39935 cat >>conftest.undefs <<\_ACEOF
39936 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
39937 _ACEOF
39938
39939 # Break up conftest.defines because some shells have a limit on the size
39940 # of here documents, and old seds have small limits too (100 cmds).
39941 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
39942 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
39943 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
39944 echo '  :' >>$CONFIG_STATUS
39945 rm -f conftest.tail
39946 while grep . conftest.defines >/dev/null
39947 do
39948   # Write a limited-size here document to $tmp/defines.sed.
39949   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
39950   # Speed up: don't consider the non `#define' lines.
39951   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
39952   # Work around the forget-to-reset-the-flag bug.
39953   echo 't clr' >>$CONFIG_STATUS
39954   echo ': clr' >>$CONFIG_STATUS
39955   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
39956   echo 'CEOF
39957   sed -f $tmp/defines.sed $tmp/in >$tmp/out
39958   rm -f $tmp/in
39959   mv $tmp/out $tmp/in
39960 ' >>$CONFIG_STATUS
39961   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
39962   rm -f conftest.defines
39963   mv conftest.tail conftest.defines
39964 done
39965 rm -f conftest.defines
39966 echo '  fi # grep' >>$CONFIG_STATUS
39967 echo >>$CONFIG_STATUS
39968
39969 # Break up conftest.undefs because some shells have a limit on the size
39970 # of here documents, and old seds have small limits too (100 cmds).
39971 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
39972 rm -f conftest.tail
39973 while grep . conftest.undefs >/dev/null
39974 do
39975   # Write a limited-size here document to $tmp/undefs.sed.
39976   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
39977   # Speed up: don't consider the non `#undef'
39978   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
39979   # Work around the forget-to-reset-the-flag bug.
39980   echo 't clr' >>$CONFIG_STATUS
39981   echo ': clr' >>$CONFIG_STATUS
39982   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
39983   echo 'CEOF
39984   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
39985   rm -f $tmp/in
39986   mv $tmp/out $tmp/in
39987 ' >>$CONFIG_STATUS
39988   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
39989   rm -f conftest.undefs
39990   mv conftest.tail conftest.undefs
39991 done
39992 rm -f conftest.undefs
39993
39994 cat >>$CONFIG_STATUS <<\_ACEOF
39995   # Let's still pretend it is `configure' which instantiates (i.e., don't
39996   # use $as_me), people would be surprised to read:
39997   #    /* config.h.  Generated by config.status.  */
39998   if test x"$ac_file" = x-; then
39999     echo "/* Generated by configure.  */" >$tmp/config.h
40000   else
40001     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40002   fi
40003   cat $tmp/in >>$tmp/config.h
40004   rm -f $tmp/in
40005   if test x"$ac_file" != x-; then
40006     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40007       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40008 echo "$as_me: $ac_file is unchanged" >&6;}
40009     else
40010       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40012          X"$ac_file" : 'X\(//\)[^/]' \| \
40013          X"$ac_file" : 'X\(//\)$' \| \
40014          X"$ac_file" : 'X\(/\)' \| \
40015          .     : '\(.\)' 2>/dev/null ||
40016 echo X"$ac_file" |
40017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40019           /^X\(\/\/\)$/{ s//\1/; q; }
40020           /^X\(\/\).*/{ s//\1/; q; }
40021           s/.*/./; q'`
40022       { if $as_mkdir_p; then
40023     mkdir -p "$ac_dir"
40024   else
40025     as_dir="$ac_dir"
40026     as_dirs=
40027     while test ! -d "$as_dir"; do
40028       as_dirs="$as_dir $as_dirs"
40029       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40031          X"$as_dir" : 'X\(//\)[^/]' \| \
40032          X"$as_dir" : 'X\(//\)$' \| \
40033          X"$as_dir" : 'X\(/\)' \| \
40034          .     : '\(.\)' 2>/dev/null ||
40035 echo X"$as_dir" |
40036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40037           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40038           /^X\(\/\/\)$/{ s//\1/; q; }
40039           /^X\(\/\).*/{ s//\1/; q; }
40040           s/.*/./; q'`
40041     done
40042     test ! -n "$as_dirs" || mkdir $as_dirs
40043   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40044 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40045    { (exit 1); exit 1; }; }; }
40046
40047       rm -f $ac_file
40048       mv $tmp/config.h $ac_file
40049     fi
40050   else
40051     cat $tmp/config.h
40052     rm -f $tmp/config.h
40053   fi
40054 done
40055 _ACEOF
40056 cat >>$CONFIG_STATUS <<\_ACEOF
40057
40058 #
40059 # CONFIG_COMMANDS section.
40060 #
40061 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40062   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40063   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40064   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40065 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40066          X"$ac_dest" : 'X\(//\)[^/]' \| \
40067          X"$ac_dest" : 'X\(//\)$' \| \
40068          X"$ac_dest" : 'X\(/\)' \| \
40069          .     : '\(.\)' 2>/dev/null ||
40070 echo X"$ac_dest" |
40071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40072           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40073           /^X\(\/\/\)$/{ s//\1/; q; }
40074           /^X\(\/\).*/{ s//\1/; q; }
40075           s/.*/./; q'`
40076   { if $as_mkdir_p; then
40077     mkdir -p "$ac_dir"
40078   else
40079     as_dir="$ac_dir"
40080     as_dirs=
40081     while test ! -d "$as_dir"; do
40082       as_dirs="$as_dir $as_dirs"
40083       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40085          X"$as_dir" : 'X\(//\)[^/]' \| \
40086          X"$as_dir" : 'X\(//\)$' \| \
40087          X"$as_dir" : 'X\(/\)' \| \
40088          .     : '\(.\)' 2>/dev/null ||
40089 echo X"$as_dir" |
40090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40091           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40092           /^X\(\/\/\)$/{ s//\1/; q; }
40093           /^X\(\/\).*/{ s//\1/; q; }
40094           s/.*/./; q'`
40095     done
40096     test ! -n "$as_dirs" || mkdir $as_dirs
40097   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40099    { (exit 1); exit 1; }; }; }
40100
40101   ac_builddir=.
40102
40103 if test "$ac_dir" != .; then
40104   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40105   # A "../" for each directory in $ac_dir_suffix.
40106   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40107 else
40108   ac_dir_suffix= ac_top_builddir=
40109 fi
40110
40111 case $srcdir in
40112   .)  # No --srcdir option.  We are building in place.
40113     ac_srcdir=.
40114     if test -z "$ac_top_builddir"; then
40115        ac_top_srcdir=.
40116     else
40117        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40118     fi ;;
40119   [\\/]* | ?:[\\/]* )  # Absolute path.
40120     ac_srcdir=$srcdir$ac_dir_suffix;
40121     ac_top_srcdir=$srcdir ;;
40122   *) # Relative path.
40123     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40124     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40125 esac
40126 case "$ac_dir" in
40127 .) ac_abs_builddir=$ac_builddir;;
40128 *)
40129   case $ac_builddir in
40130   .) ac_abs_builddir="$ac_dir";;
40131   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40132   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40133   esac;;
40134 esac
40135 case "$ac_dir" in
40136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40137 *)
40138   case ${ac_top_builddir}. in
40139   .) ac_abs_top_builddir="$ac_dir";;
40140   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40141   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40142   esac;;
40143 esac
40144 case "$ac_dir" in
40145 .) ac_abs_srcdir=$ac_srcdir;;
40146 *)
40147   case $ac_srcdir in
40148   .) ac_abs_srcdir="$ac_dir";;
40149   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40150   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40151   esac;;
40152 esac
40153 case "$ac_dir" in
40154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40155 *)
40156   case $ac_top_srcdir in
40157   .) ac_abs_top_srcdir="$ac_dir";;
40158   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40159   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40160   esac;;
40161 esac
40162
40163
40164   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40165 echo "$as_me: executing $ac_dest commands" >&6;}
40166   case $ac_dest in
40167     default )
40168                                                                                                 if test ! -h wx-config; then
40169                 chmod +x wx-config
40170                 mv wx-config wx${TOOLCHAIN_NAME}-config
40171                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
40172             fi
40173
40174             if test ! -d lib; then
40175               mkdir lib
40176             fi
40177             if test ! -d lib/wx; then
40178               mkdir lib/wx
40179             fi
40180             if test ! -d lib/wx/include; then
40181               mkdir lib/wx/include
40182             fi
40183             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40184               mkdir lib/wx/include/${TOOLCHAIN_NAME}
40185             fi
40186             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40187               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
40188             fi
40189             if test -f setup.h; then
40190               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
40191             fi
40192            ;;
40193   esac
40194 done
40195 _ACEOF
40196
40197 cat >>$CONFIG_STATUS <<\_ACEOF
40198
40199 { (exit 0); exit 0; }
40200 _ACEOF
40201 chmod +x $CONFIG_STATUS
40202 ac_clean_files=$ac_clean_files_save
40203
40204
40205 # configure is writing to config.log, and then calls config.status.
40206 # config.status does its own redirection, appending to config.log.
40207 # Unfortunately, on DOS this fails, as config.log is still kept open
40208 # by configure, so config.status won't be able to write to it; its
40209 # output is simply discarded.  So we exec the FD to /dev/null,
40210 # effectively closing config.log, so it can be properly (re)opened and
40211 # appended to by config.status.  When coming back to configure, we
40212 # need to make the FD available again.
40213 if test "$no_create" != yes; then
40214   ac_cs_success=:
40215   ac_config_status_args=
40216   test "$silent" = yes &&
40217     ac_config_status_args="$ac_config_status_args --quiet"
40218   exec 5>/dev/null
40219   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40220   exec 5>>config.log
40221   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40222   # would make configure fail if this is the last instruction.
40223   $ac_cs_success || { (exit 1); exit 1; }
40224 fi
40225
40226 #
40227 # CONFIG_SUBDIRS section.
40228 #
40229 if test "$no_recursion" != yes; then
40230
40231   # Remove --cache-file and --srcdir arguments so they do not pile up.
40232   ac_sub_configure_args=
40233   ac_prev=
40234   for ac_arg in $ac_configure_args; do
40235     if test -n "$ac_prev"; then
40236       ac_prev=
40237       continue
40238     fi
40239     case $ac_arg in
40240     -cache-file | --cache-file | --cache-fil | --cache-fi \
40241     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40242       ac_prev=cache_file ;;
40243     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40244     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40245     | --c=*)
40246       ;;
40247     --config-cache | -C)
40248       ;;
40249     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40250       ac_prev=srcdir ;;
40251     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40252       ;;
40253     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40254       ac_prev=prefix ;;
40255     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40256       ;;
40257     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40258     esac
40259   done
40260
40261   # Always prepend --prefix to ensure using the same prefix
40262   # in subdir configurations.
40263   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40264
40265   ac_popdir=`pwd`
40266   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40267
40268     # Do not complain, so a configure script can configure whichever
40269     # parts of a large source tree are present.
40270     test -d $srcdir/$ac_dir || continue
40271
40272     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40273 echo "$as_me: configuring in $ac_dir" >&6;}
40274     { if $as_mkdir_p; then
40275     mkdir -p "$ac_dir"
40276   else
40277     as_dir="$ac_dir"
40278     as_dirs=
40279     while test ! -d "$as_dir"; do
40280       as_dirs="$as_dir $as_dirs"
40281       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40283          X"$as_dir" : 'X\(//\)[^/]' \| \
40284          X"$as_dir" : 'X\(//\)$' \| \
40285          X"$as_dir" : 'X\(/\)' \| \
40286          .     : '\(.\)' 2>/dev/null ||
40287 echo X"$as_dir" |
40288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40289           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40290           /^X\(\/\/\)$/{ s//\1/; q; }
40291           /^X\(\/\).*/{ s//\1/; q; }
40292           s/.*/./; q'`
40293     done
40294     test ! -n "$as_dirs" || mkdir $as_dirs
40295   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40296 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40297    { (exit 1); exit 1; }; }; }
40298
40299     ac_builddir=.
40300
40301 if test "$ac_dir" != .; then
40302   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40303   # A "../" for each directory in $ac_dir_suffix.
40304   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40305 else
40306   ac_dir_suffix= ac_top_builddir=
40307 fi
40308
40309 case $srcdir in
40310   .)  # No --srcdir option.  We are building in place.
40311     ac_srcdir=.
40312     if test -z "$ac_top_builddir"; then
40313        ac_top_srcdir=.
40314     else
40315        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40316     fi ;;
40317   [\\/]* | ?:[\\/]* )  # Absolute path.
40318     ac_srcdir=$srcdir$ac_dir_suffix;
40319     ac_top_srcdir=$srcdir ;;
40320   *) # Relative path.
40321     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40322     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40323 esac
40324 case "$ac_dir" in
40325 .) ac_abs_builddir=$ac_builddir;;
40326 *)
40327   case $ac_builddir in
40328   .) ac_abs_builddir="$ac_dir";;
40329   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40330   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40331   esac;;
40332 esac
40333 case "$ac_dir" in
40334 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40335 *)
40336   case ${ac_top_builddir}. in
40337   .) ac_abs_top_builddir="$ac_dir";;
40338   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40339   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40340   esac;;
40341 esac
40342 case "$ac_dir" in
40343 .) ac_abs_srcdir=$ac_srcdir;;
40344 *)
40345   case $ac_srcdir in
40346   .) ac_abs_srcdir="$ac_dir";;
40347   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40348   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40349   esac;;
40350 esac
40351 case "$ac_dir" in
40352 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40353 *)
40354   case $ac_top_srcdir in
40355   .) ac_abs_top_srcdir="$ac_dir";;
40356   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40357   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40358   esac;;
40359 esac
40360
40361
40362     cd $ac_dir
40363
40364     # Check for guested configure; otherwise get Cygnus style configure.
40365     if test -f $ac_srcdir/configure.gnu; then
40366       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40367     elif test -f $ac_srcdir/configure; then
40368       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40369     elif test -f $ac_srcdir/configure.in; then
40370       ac_sub_configure=$ac_configure
40371     else
40372       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40373 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40374       ac_sub_configure=
40375     fi
40376
40377     # The recursion is here.
40378     if test -n "$ac_sub_configure"; then
40379       # Make the cache file name correct relative to the subdirectory.
40380       case $cache_file in
40381       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40382       *) # Relative path.
40383         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
40384       esac
40385
40386       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40387 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40388       # The eval makes quoting arguments work.
40389       eval $ac_sub_configure $ac_sub_configure_args \
40390            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40391         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
40392 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40393    { (exit 1); exit 1; }; }
40394     fi
40395
40396     cd $ac_popdir
40397   done
40398 fi
40399
40400
40401 echo
40402 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40403 echo ""
40404 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT_LOWERCASE:-base only}"
40405 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
40406
40407 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
40408 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
40409 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
40410
40411 echo "  What level of wxWindows compatibility should be enabled?"
40412 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
40413 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
40414
40415 echo "  Which libraries should wxWindows use?"
40416 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
40417 echo "                                       png                ${wxUSE_LIBPNG-none}"
40418 echo "                                       regex              ${wxUSE_REGEX}"
40419 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
40420 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40421 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
40422 fi
40423 echo "                                       zlib               ${wxUSE_ZLIB}"
40424 echo "                                       odbc               ${wxUSE_ODBC}"
40425 echo "                                       expat              ${wxUSE_EXPAT}"
40426 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
40427
40428 echo ""
40429