complain if ar is missing
[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.57 for wxWindows 2.5.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='wxWindows'
271 PACKAGE_TARNAME='wxwindows'
272 PACKAGE_VERSION='2.5.0'
273 PACKAGE_STRING='wxWindows 2.5.0'
274 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276 ac_unique_file="wx-config.in"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subdirs_all="$ac_subdirs_all src/expat"
315 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT 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_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 INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE 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_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_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_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_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_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_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_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 LEX_STEM 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 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 NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
788
789 #
790 # Report the --help message.
791 #
792 if test "$ac_init_help" = "long"; then
793   # Omit some internal or obsolete options to make the list less imposing.
794   # This message is too long to be a string in the A/UX 3.1 sh.
795   cat <<_ACEOF
796 \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
797
798 Usage: $0 [OPTION]... [VAR=VALUE]...
799
800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
801 VAR=VALUE.  See below for descriptions of some of the useful variables.
802
803 Defaults for the options are specified in brackets.
804
805 Configuration:
806   -h, --help              display this help and exit
807       --help=short        display options specific to this package
808       --help=recursive    display the short help of all the included packages
809   -V, --version           display version information and exit
810   -q, --quiet, --silent   do not print \`checking...' messages
811       --cache-file=FILE   cache test results in FILE [disabled]
812   -C, --config-cache      alias for \`--cache-file=config.cache'
813   -n, --no-create         do not create output files
814       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
815
816 _ACEOF
817
818   cat <<_ACEOF
819 Installation directories:
820   --prefix=PREFIX         install architecture-independent files in PREFIX
821                           [$ac_default_prefix]
822   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
823                           [PREFIX]
824
825 By default, \`make install' will install all the files in
826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828 for instance \`--prefix=\$HOME'.
829
830 For better control, use the options below.
831
832 Fine tuning of the installation directories:
833   --bindir=DIR           user executables [EPREFIX/bin]
834   --sbindir=DIR          system admin executables [EPREFIX/sbin]
835   --libexecdir=DIR       program executables [EPREFIX/libexec]
836   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
837   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
838   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
839   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
840   --libdir=DIR           object code libraries [EPREFIX/lib]
841   --includedir=DIR       C header files [PREFIX/include]
842   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
843   --infodir=DIR          info documentation [PREFIX/info]
844   --mandir=DIR           man documentation [PREFIX/man]
845 _ACEOF
846
847   cat <<\_ACEOF
848
849 X features:
850   --x-includes=DIR    X include files are in DIR
851   --x-libraries=DIR   X library files are in DIR
852
853 System types:
854   --build=BUILD     configure for building on BUILD [guessed]
855   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856   --target=TARGET   configure for building compilers for TARGET [HOST]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861   case $ac_init_help in
862      short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
863    esac
864   cat <<\_ACEOF
865
866 Optional Features:
867   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
868   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
869   --enable-gui            use GUI classes
870   --disable-monolithic    don't build wxWindows as single library
871   --enable-universal      use wxWindows GUI controls instead of native ones
872   --enable-nanox          use NanoX
873   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
874   --enable-shared         create shared library code
875   --enable-optimise       create optimised code
876   --enable-debug          same as debug_flag and debug_info
877   --enable-stl            use STL for containers
878   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
879   --enable-debug_info     create code with debugging information
880   --enable-debug_gdb      create code with extra GDB debugging information
881   --enable-debug_cntxt    use wxDebugContext
882   --enable-mem_tracing    create code with memory tracing
883   --enable-profile        create code with profiling information
884   --enable-no_rtti        create code without RTTI information
885   --enable-no_exceptions  create code without C++ exceptions handling
886   --enable-permissive     compile code disregarding strict ANSI
887   --enable-no_deps        create code without dependency information
888   --enable-compat20       enable wxWindows 2.0 compatibility
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
900   --enable-dataobj        use data object classes
901   --enable-ipc            use interprocess communication (wxSocket etc.)
902   --enable-cmdline        use wxCmdLineParser class
903   --enable-datetime       use wxDateTime class
904   --enable-stopwatch      use wxStopWatch class
905   --enable-dialupman      use dialup network classes
906   --enable-apple_ieee     use the Apple IEEE codec
907   --enable-timer          use wxTimer class
908   --enable-wave           use wxWave class
909   --enable-fraction       use wxFraction class
910   --enable-dynlib         use wxLibrary class for DLL loading
911   --enable-dynamicloader  use (new) wxDynamicLibrary class
912   --enable-longlong       use wxLongLong class
913   --enable-geometry       use geometry class
914   --enable-log            use logging system
915   --enable-streams        use wxStream etc classes
916   --enable-file           use wxFile classes
917   --enable-ffile          use wxFFile classes
918   --enable-textbuf        use wxTextBuffer class
919   --enable-textfile       use wxTextFile class
920   --enable-fontmap        use font encodings conversion classes
921   --enable-unicode        compile wxString with Unicode support
922   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)
923   --enable-wxprintfv      use wxWindows implementation of vprintf()
924   --enable-std_iostreams  use standard C++ stream classes
925   --enable-filesystem     use virtual file systems classes
926   --enable-fs_inet        use virtual HTTP/FTP filesystems
927   --enable-fs_zip         use virtual ZIP filesystems
928   --enable-zipstream      use wxZipInputStream
929   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException
930   --enable-snglinst       use wxSingleInstanceChecker class
931   --enable-mimetype       use wxMimeTypesManager
932   --enable-sysoptions     use wxSystemOptions
933   --enable-url            use wxURL class
934   --enable-protocol       use wxProtocol class
935   --enable-protocol-http  HTTP support in wxProtocol
936   --enable-protocol-ftp   FTP support in wxProtocol
937   --enable-protocol-file  FILE support in wxProtocol
938   --enable-threads        use threads
939   --enable-docview        use document view architecture
940   --enable-help           use help subsystem
941   --enable-mshtmlhelp     use MS HTML Help (win32)
942   --enable-html           use wxHTML sub-library
943   --enable-htmlhelp       use wxHTML-based help
944   --enable-constraints    use layout-constraints system
945   --enable-printarch      use printing architecture
946   --enable-mdi            use multiple document interface architecture
947   --enable-loggui         use standard GUI logger
948   --enable-logwin         use wxLogWindow
949   --enable-logdialog      use wxLogDialog
950   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
951   --enable-prologio       not available; see contrib
952   --enable-resources      not available; see contrib
953   --enable-clipboard      use wxClipboard class
954   --enable-dnd            use Drag'n'Drop classes
955   --enable-metafile       use win32 metafiles
956   --enable-controls       use all usual controls
957   --enable-accel          use accelerators
958   --enable-button         use wxButton class
959   --enable-bmpbutton      use wxBitmapButton class
960   --enable-calendar       use wxCalendarCtrl class
961   --enable-caret          use wxCaret class
962   --enable-checkbox       use wxCheckBox class
963   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
964   --enable-choice         use wxChoice class
965   --enable-combobox       use wxComboBox class
966   --enable-display        use wxDisplay class
967   --enable-gauge          use wxGauge class
968   --enable-grid           use wxGrid class
969   --enable-imaglist       use wxImageList class
970   --enable-listbox        use wxListBox class
971   --enable-listctrl       use wxListCtrl class
972   --enable-notebook       use wxNotebook class
973   --enable-radiobox       use wxRadioBox class
974   --enable-radiobtn       use wxRadioButton class
975   --enable-sash           use wxSashWindow class
976   --enable-scrollbar      use wxScrollBar class and scrollable windows
977   --enable-slider         use wxSlider class
978   --enable-spinbtn        use wxSpinButton class
979   --enable-spinctrl       use wxSpinCtrl class
980   --enable-splitter       use wxSplitterWindow class
981   --enable-statbmp        use wxStaticBitmap class
982   --enable-statbox        use wxStaticBox class
983   --enable-statline       use wxStaticLine class
984   --enable-stattext       use wxStaticText class
985   --enable-statusbar      use wxStatusBar class
986   --enable-tabdialog      use wxTabControl class
987   --enable-textctrl       use wxTextCtrl class
988   --enable-togglebtn      use wxToggleButton class
989   --enable-toolbar        use wxToolBar class
990   --enable-tbarnative     use native wxToolBar class
991   --enable-tbarsmpl       use wxToolBarSimple class
992   --enable-treectrl       use wxTreeCtrl class
993   --enable-tipwindow      use wxTipWindow class
994   --enable-popupwin       use wxPopUpWindow class
995   --enable-commondlg      use all common dialogs
996   --enable-choicedlg      use wxChoiceDialog
997   --enable-coldlg         use wxColourDialog
998   --enable-filedlg        use wxFileDialog
999   --enable-finddlg        use wxFindReplaceDialog
1000   --enable-fontdlg        use wxFontDialog
1001   --enable-dirdlg         use wxDirDialog
1002   --enable-msgdlg         use wxMessageDialog
1003   --enable-numberdlg      use wxNumberEntryDialog
1004   --enable-splash         use wxSplashScreen
1005   --enable-textdlg        use wxTextDialog
1006   --enable-tipdlg         use startup tips
1007   --enable-progressdlg    use wxProgressDialog
1008   --enable-wizarddlg      use wxWizard
1009   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1010   --enable-miniframe      use wxMiniFrame class
1011   --enable-tooltips       use wxToolTip class
1012   --enable-splines        use spline drawing code
1013   --enable-validators     use wxValidator and derived classes
1014   --enable-busyinfo       use wxBusyInfo
1015   --enable-joystick       use wxJoystick (Linux only)
1016   --enable-metafiles      use wxMetaFile (Windows only)
1017   --enable-dragimage      use wxDragImage
1018   --enable-accessibility  enable accessibility support
1019   --enable-palette        use wxPalette class
1020   --enable-image          use wxImage class
1021   --enable-gif            use gif images (GIF file format)
1022   --enable-pcx            use pcx images (PCX file format)
1023   --enable-iff            use iff images (IFF file format)
1024   --enable-pnm            use pnm images (PNM file format)
1025   --enable-xpm            use xpm images (XPM file format)
1026   --enable-icocur         use Windows ICO and CUR formats
1027   --enable-official_build official build of wxWindows (win32 DLL only)
1028   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1029   --disable-largefile     omit support for large files
1030   --disable-gtktest       do not try to compile and run a test GTK+ program
1031   --disable-gtktest       Do not try to compile and run a test GTK program
1032   --disable-precomp-headers  don't use precompiled headers even if compiler can
1033
1034 Optional Packages:
1035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1037   --with-gtk              use GTK+
1038   --with-motif            use Motif/Lesstif
1039   --with-mac              use Mac OS X
1040   --with-cocoa            use Cocoa
1041   --with-wine             use Wine
1042   --with-msw              use MS-Windows
1043   --with-pm               use OS/2 Presentation Manager
1044   --with-mgl              use SciTech MGL
1045   --with-microwin         use MicroWindows
1046   --with-x11              use X11
1047   --with-libpng           use libpng (PNG image format)
1048   --with-libjpeg          use libjpeg (JPEG file format)
1049   --with-libtiff          use libtiff (TIFF file format)
1050   --with-opengl           use OpenGL (or Mesa)
1051   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1052   --with-regex            enable support for wxRegEx class
1053   --with-zlib             use zlib for LZW compression
1054   --with-odbc             use the IODBC and wxODBC classes
1055   --with-expat            enable XML support using expat parser
1056   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1057   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1058   --with-x                use the X Window System
1059   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 Report bugs to <wx-dev@lists.wxwindows.org>.
1077 _ACEOF
1078 fi
1079
1080 if test "$ac_init_help" = "recursive"; then
1081   # If there are subdirs, report their specific --help.
1082   ac_popdir=`pwd`
1083   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084     test -d $ac_dir || continue
1085     ac_builddir=.
1086
1087 if test "$ac_dir" != .; then
1088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089   # A "../" for each directory in $ac_dir_suffix.
1090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092   ac_dir_suffix= ac_top_builddir=
1093 fi
1094
1095 case $srcdir in
1096   .)  # No --srcdir option.  We are building in place.
1097     ac_srcdir=.
1098     if test -z "$ac_top_builddir"; then
1099        ac_top_srcdir=.
1100     else
1101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102     fi ;;
1103   [\\/]* | ?:[\\/]* )  # Absolute path.
1104     ac_srcdir=$srcdir$ac_dir_suffix;
1105     ac_top_srcdir=$srcdir ;;
1106   *) # Relative path.
1107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1110 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1111 # absolute.
1112 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1113 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1114 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1115 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116
1117     cd $ac_dir
1118     # Check for guested configure; otherwise get Cygnus style configure.
1119     if test -f $ac_srcdir/configure.gnu; then
1120       echo
1121       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1122     elif test -f $ac_srcdir/configure; then
1123       echo
1124       $SHELL $ac_srcdir/configure  --help=recursive
1125     elif test -f $ac_srcdir/configure.ac ||
1126            test -f $ac_srcdir/configure.in; then
1127       echo
1128       $ac_configure --help
1129     else
1130       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131     fi
1132     cd $ac_popdir
1133   done
1134 fi
1135
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1138   cat <<\_ACEOF
1139 wxWindows configure 2.5.0
1140 generated by GNU Autoconf 2.57
1141
1142 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1143 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147   exit 0
1148 fi
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1153
1154 It was created by wxWindows $as_me 2.5.0, which was
1155 generated by GNU Autoconf 2.57.  Invocation command line was
1156
1157   $ $0 $@
1158
1159 _ACEOF
1160 {
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1165
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183 _ASUNAME
1184
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1187 do
1188   IFS=$as_save_IFS
1189   test -z "$as_dir" && as_dir=.
1190   echo "PATH: $as_dir"
1191 done
1192
1193 } >&5
1194
1195 cat >&5 <<_ACEOF
1196
1197
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1201
1202 _ACEOF
1203
1204
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1216 do
1217   for ac_arg
1218   do
1219     case $ac_arg in
1220     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222     | -silent | --silent | --silen | --sile | --sil)
1223       continue ;;
1224     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226     esac
1227     case $ac_pass in
1228     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229     2)
1230       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231       if test $ac_must_keep_next = true; then
1232         ac_must_keep_next=false # Got value, back to normal.
1233       else
1234         case $ac_arg in
1235           *=* | --config-cache | -C | -disable-* | --disable-* \
1236           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238           | -with-* | --with-* | -without-* | --without-* | --x)
1239             case "$ac_configure_args0 " in
1240               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241             esac
1242             ;;
1243           -* ) ac_must_keep_next=true ;;
1244         esac
1245       fi
1246       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247       # Get rid of the leading space.
1248       ac_sep=" "
1249       ;;
1250     esac
1251   done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log.  We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262   # Save into config.log some information that might help in debugging.
1263   {
1264     echo
1265
1266     cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271     echo
1272     # The following way of writing the cache mishandles newlines in values,
1273 {
1274   (set) 2>&1 |
1275     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276     *ac_space=\ *)
1277       sed -n \
1278         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280       ;;
1281     *)
1282       sed -n \
1283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284       ;;
1285     esac;
1286 }
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294     echo
1295     for ac_var in $ac_subst_vars
1296     do
1297       eval ac_val=$`echo $ac_var`
1298       echo "$ac_var='"'"'$ac_val'"'"'"
1299     done | sort
1300     echo
1301
1302     if test -n "$ac_subst_files"; then
1303       cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308       echo
1309       for ac_var in $ac_subst_files
1310       do
1311         eval ac_val=$`echo $ac_var`
1312         echo "$ac_var='"'"'$ac_val'"'"'"
1313       done | sort
1314       echo
1315     fi
1316
1317     if test -s confdefs.h; then
1318       cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323       echo
1324       sed "/^$/d" confdefs.h | sort
1325       echo
1326     fi
1327     test "$ac_signal" != 0 &&
1328       echo "$as_me: caught signal $ac_signal"
1329     echo "$as_me: exit $exit_status"
1330   } >&5
1331   rm -f core core.* *.core &&
1332   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333     exit $exit_status
1334      ' 0
1335 for ac_signal in 1 2 13 15; do
1336   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1339
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1344
1345 # Predefined preprocessor variables.
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1370
1371
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375   if test "x$prefix" != xNONE; then
1376     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377   else
1378     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379   fi
1380 fi
1381 for ac_site_file in $CONFIG_SITE; do
1382   if test -r "$ac_site_file"; then
1383     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385     sed 's/^/| /' "$ac_site_file" >&5
1386     . "$ac_site_file"
1387   fi
1388 done
1389
1390 if test -r "$cache_file"; then
1391   # Some versions of bash will fail to source /dev/null (special
1392   # files actually), so we avoid doing that.
1393   if test -f "$cache_file"; then
1394     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396     case $cache_file in
1397       [\\/]* | ?:[\\/]* ) . $cache_file;;
1398       *)                      . ./$cache_file;;
1399     esac
1400   fi
1401 else
1402   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404   >$cache_file
1405 fi
1406
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413   eval ac_new_set=\$ac_env_${ac_var}_set
1414   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415   eval ac_new_val="\$ac_env_${ac_var}_value"
1416   case $ac_old_set,$ac_new_set in
1417     set,)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,set)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,);;
1426     *)
1427       if test "x$ac_old_val" != "x$ac_new_val"; then
1428         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431 echo "$as_me:   former value:  $ac_old_val" >&2;}
1432         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433 echo "$as_me:   current value: $ac_new_val" >&2;}
1434         ac_cache_corrupted=:
1435       fi;;
1436   esac
1437   # Pass precious variables to config.status.
1438   if test "$ac_new_set" = set; then
1439     case $ac_new_val in
1440     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442     *) ac_arg=$ac_var=$ac_new_val ;;
1443     esac
1444     case " $ac_configure_args " in
1445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447     esac
1448   fi
1449 done
1450 if $ac_cache_corrupted; then
1451   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493 ac_aux_dir=
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495   if test -f $ac_dir/install-sh; then
1496     ac_aux_dir=$ac_dir
1497     ac_install_sh="$ac_aux_dir/install-sh -c"
1498     break
1499   elif test -f $ac_dir/install.sh; then
1500     ac_aux_dir=$ac_dir
1501     ac_install_sh="$ac_aux_dir/install.sh -c"
1502     break
1503   elif test -f $ac_dir/shtool; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/shtool install -c"
1506     break
1507   fi
1508 done
1509 if test -z "$ac_aux_dir"; then
1510   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512    { (exit 1); exit 1; }; }
1513 fi
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522    { (exit 1); exit 1; }; }
1523
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531   ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535    { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539    { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1544 build=$ac_cv_build
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557   ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1566 host=$ac_cv_host
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579   ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583    { (exit 1); exit 1; }; }
1584
1585 fi
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597   test "$program_prefix$program_suffix$program_transform_name" = \
1598     NONENONEs,x,x, &&
1599   program_prefix=${target_alias}-
1600
1601
1602
1603 WX_MAJOR_VERSION_NUMBER=2
1604 WX_MINOR_VERSION_NUMBER=5
1605 WX_RELEASE_NUMBER=0
1606
1607 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1608 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1609
1610 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1611
1612 WX_CURRENT=0
1613 WX_REVISION=0
1614 WX_AGE=0
1615
1616
1617
1618 USE_UNIX=1
1619 USE_WIN32=0
1620 USE_DOS=0
1621 USE_BEOS=0
1622 USE_MAC=0
1623
1624 USE_AIX=
1625 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1626 USE_GNU=                            USE_HPUX=
1627 USE_LINUX=
1628 USE_NETBSD=
1629 USE_OPENBSD=
1630 USE_OSF=                            USE_SGI=
1631 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1632 USE_ULTRIX=
1633 USE_UNIXWARE=
1634
1635 USE_ALPHA=
1636
1637 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1638
1639 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1640
1641 DEFAULT_wxUSE_COCOA=0
1642 DEFAULT_wxUSE_GTK=0
1643 DEFAULT_wxUSE_MAC=0
1644 DEFAULT_wxUSE_MGL=0
1645 DEFAULT_wxUSE_MICROWIN=0
1646 DEFAULT_wxUSE_MOTIF=0
1647 DEFAULT_wxUSE_MSW=0
1648 DEFAULT_wxUSE_PM=0
1649 DEFAULT_wxUSE_X11=0
1650
1651 DEFAULT_DEFAULT_wxUSE_COCOA=0
1652 DEFAULT_DEFAULT_wxUSE_GTK=0
1653 DEFAULT_DEFAULT_wxUSE_MAC=0
1654 DEFAULT_DEFAULT_wxUSE_MGL=0
1655 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1656 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1657 DEFAULT_DEFAULT_wxUSE_MSW=0
1658 DEFAULT_DEFAULT_wxUSE_PM=0
1659 DEFAULT_DEFAULT_wxUSE_X11=0
1660
1661 PROGRAM_EXT=
1662 SO_SUFFIX=so
1663 SAMPLES_RPATH_FLAG=
1664 SAMPLES_RPATH_POSTLINK=
1665
1666 case "${host}" in
1667   *-hp-hpux* )
1668     USE_HPUX=1
1669     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1670     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1671     SO_SUFFIX=sl
1672     cat >>confdefs.h <<\_ACEOF
1673 #define __HPUX__ 1
1674 _ACEOF
1675
1676   ;;
1677   *-*-linux* )
1678     USE_LINUX=1
1679     cat >>confdefs.h <<\_ACEOF
1680 #define __LINUX__ 1
1681 _ACEOF
1682
1683     TMP=`uname -m`
1684     if test "x$TMP" = "xalpha"; then
1685       USE_ALPHA=1
1686       cat >>confdefs.h <<\_ACEOF
1687 #define __ALPHA__ 1
1688 _ACEOF
1689
1690     fi
1691     DEFAULT_DEFAULT_wxUSE_GTK=1
1692   ;;
1693   *-*-gnu* )
1694     USE_GNU=1
1695     cat >>confdefs.h <<\_ACEOF
1696 #define __GNU__ 1
1697 _ACEOF
1698
1699     TMP=`uname -m`
1700     if test "x$TMP" = "xalpha"; then
1701       USE_ALPHA=1
1702       cat >>confdefs.h <<\_ACEOF
1703 #define __ALPHA__ 1
1704 _ACEOF
1705
1706     fi
1707     DEFAULT_DEFAULT_wxUSE_GTK=1
1708   ;;
1709   *-*-irix5* | *-*-irix6* )
1710     USE_SGI=1
1711     USE_SVR4=1
1712     cat >>confdefs.h <<\_ACEOF
1713 #define __SGI__ 1
1714 _ACEOF
1715
1716     cat >>confdefs.h <<\_ACEOF
1717 #define __SVR4__ 1
1718 _ACEOF
1719
1720     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1721   ;;
1722   *-*-solaris2* )
1723     USE_SUN=1
1724     USE_SOLARIS=1
1725     USE_SVR4=1
1726     cat >>confdefs.h <<\_ACEOF
1727 #define __SUN__ 1
1728 _ACEOF
1729
1730     cat >>confdefs.h <<\_ACEOF
1731 #define __SOLARIS__ 1
1732 _ACEOF
1733
1734     cat >>confdefs.h <<\_ACEOF
1735 #define __SVR4__ 1
1736 _ACEOF
1737
1738     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1739     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1740   ;;
1741   *-*-sunos4* )
1742     USE_SUN=1
1743     USE_SUNOS=1
1744     USE_BSD=1
1745     cat >>confdefs.h <<\_ACEOF
1746 #define __SUN__ 1
1747 _ACEOF
1748
1749     cat >>confdefs.h <<\_ACEOF
1750 #define __SUNOS__ 1
1751 _ACEOF
1752
1753     cat >>confdefs.h <<\_ACEOF
1754 #define __BSD__ 1
1755 _ACEOF
1756
1757     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758   ;;
1759   *-*-freebsd*)
1760     USE_BSD=1
1761     USE_FREEBSD=1
1762     cat >>confdefs.h <<\_ACEOF
1763 #define __FREEBSD__ 1
1764 _ACEOF
1765
1766     cat >>confdefs.h <<\_ACEOF
1767 #define __BSD__ 1
1768 _ACEOF
1769
1770     DEFAULT_DEFAULT_wxUSE_GTK=1
1771   ;;
1772   *-*-openbsd*)
1773     USE_BSD=1
1774     USE_OPENBSD=1
1775     cat >>confdefs.h <<\_ACEOF
1776 #define __OPENBSD__ 1
1777 _ACEOF
1778
1779     cat >>confdefs.h <<\_ACEOF
1780 #define __BSD__ 1
1781 _ACEOF
1782
1783     DEFAULT_DEFAULT_wxUSE_GTK=1
1784   ;;
1785   *-*-netbsd*)
1786     USE_BSD=1
1787     USE_NETBSD=1
1788     cat >>confdefs.h <<\_ACEOF
1789 #define __NETBSD__ 1
1790 _ACEOF
1791
1792     cat >>confdefs.h <<\_ACEOF
1793 #define __BSD__ 1
1794 _ACEOF
1795
1796     DEFAULT_DEFAULT_wxUSE_GTK=1
1797   ;;
1798   *-*-osf* )
1799     USE_ALPHA=1
1800     USE_OSF=1
1801     cat >>confdefs.h <<\_ACEOF
1802 #define __ALPHA__ 1
1803 _ACEOF
1804
1805     cat >>confdefs.h <<\_ACEOF
1806 #define __OSF__ 1
1807 _ACEOF
1808
1809     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1811   ;;
1812   *-*-dgux5* )
1813     USE_ALPHA=1
1814     USE_SVR4=1
1815     cat >>confdefs.h <<\_ACEOF
1816 #define __ALPHA__ 1
1817 _ACEOF
1818
1819     cat >>confdefs.h <<\_ACEOF
1820 #define __SVR4__ 1
1821 _ACEOF
1822
1823     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824   ;;
1825   *-*-sysv5* )
1826     USE_SYSV=1
1827     USE_SVR4=1
1828     cat >>confdefs.h <<\_ACEOF
1829 #define __SYSV__ 1
1830 _ACEOF
1831
1832     cat >>confdefs.h <<\_ACEOF
1833 #define __SVR4__ 1
1834 _ACEOF
1835
1836     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837   ;;
1838   *-*-aix* )
1839     USE_AIX=1
1840     USE_SYSV=1
1841     USE_SVR4=1
1842                         SO_SUFFIX=a
1843     cat >>confdefs.h <<\_ACEOF
1844 #define __AIX__ 1
1845 _ACEOF
1846
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __SYSV__ 1
1849 _ACEOF
1850
1851     cat >>confdefs.h <<\_ACEOF
1852 #define __SVR4__ 1
1853 _ACEOF
1854
1855     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856   ;;
1857
1858   *-*-*UnixWare*)
1859     USE_SYSV=1
1860     USE_SVR4=1
1861     USE_UNIXWARE=1
1862     cat >>confdefs.h <<\_ACEOF
1863 #define __UNIXWARE__ 1
1864 _ACEOF
1865
1866   ;;
1867
1868   *-*-cygwin* | *-*-mingw32* )
1869                 SO_SUFFIX=dll
1870     PROGRAM_EXT=".exe"
1871     RESCOMP=windres
1872     DEFAULT_DEFAULT_wxUSE_MSW=1
1873   ;;
1874
1875   *-pc-msdosdjgpp )
1876     USE_UNIX=0
1877     USE_DOS=1
1878     cat >>confdefs.h <<\_ACEOF
1879 #define __DOS__ 1
1880 _ACEOF
1881
1882     PROGRAM_EXT=".exe"
1883     DEFAULT_DEFAULT_wxUSE_MGL=1
1884         LIBS="$LIBS -lstdc++"
1885   ;;
1886
1887   *-pc-os2_emx | *-pc-os2-emx )
1888     cat >>confdefs.h <<\_ACEOF
1889 #define __EMX__ 1
1890 _ACEOF
1891
1892     PROGRAM_EXT=".exe"
1893     DEFAULT_DEFAULT_wxUSE_PM=1
1894   ;;
1895
1896   powerpc-*-darwin* )
1897         USE_BSD=1
1898     USE_DARWIN=1
1899     SO_SUFFIX=dylib
1900     cat >>confdefs.h <<\_ACEOF
1901 #define __BSD__ 1
1902 _ACEOF
1903
1904     cat >>confdefs.h <<\_ACEOF
1905 #define __DARWIN__ 1
1906 _ACEOF
1907
1908     cat >>confdefs.h <<\_ACEOF
1909 #define __POWERPC__ 1
1910 _ACEOF
1911
1912     cat >>confdefs.h <<\_ACEOF
1913 #define TARGET_CARBON 1
1914 _ACEOF
1915
1916     DEFAULT_DEFAULT_wxUSE_MAC=1
1917   ;;
1918
1919   *-*-beos* )
1920         USE_BEOS=1
1921     cat >>confdefs.h <<\_ACEOF
1922 #define __BEOS__ 1
1923 _ACEOF
1924
1925   ;;
1926
1927   *)
1928     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1929 echo "$as_me: error: unknown system type ${host}." >&2;}
1930    { (exit 1); exit 1; }; }
1931 esac
1932
1933
1934
1935
1936           wx_arg_cache_file="configarg.cache"
1937           echo "loading argument cache $wx_arg_cache_file"
1938           rm -f ${wx_arg_cache_file}.tmp
1939           touch ${wx_arg_cache_file}.tmp
1940           touch ${wx_arg_cache_file}
1941
1942
1943 DEBUG_CONFIGURE=0
1944 if test $DEBUG_CONFIGURE = 1; then
1945   DEFAULT_wxUSE_UNIVERSAL=no
1946   DEFAULT_wxUSE_STL=no
1947
1948   DEFAULT_wxUSE_NANOX=no
1949
1950   DEFAULT_wxUSE_THREADS=yes
1951
1952   DEFAULT_wxUSE_SHARED=yes
1953   DEFAULT_wxUSE_OPTIMISE=no
1954   DEFAULT_wxUSE_PROFILE=no
1955   DEFAULT_wxUSE_NO_DEPS=no
1956   DEFAULT_wxUSE_NO_RTTI=no
1957   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1958   DEFAULT_wxUSE_PERMISSIVE=no
1959   DEFAULT_wxUSE_DEBUG_FLAG=yes
1960   DEFAULT_wxUSE_DEBUG_INFO=yes
1961   DEFAULT_wxUSE_DEBUG_GDB=yes
1962   DEFAULT_wxUSE_MEM_TRACING=no
1963   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1964   DEFAULT_wxUSE_DMALLOC=no
1965   DEFAULT_wxUSE_APPLE_IEEE=no
1966
1967   DEFAULT_wxUSE_LOG=yes
1968   DEFAULT_wxUSE_LOGWINDOW=no
1969   DEFAULT_wxUSE_LOGGUI=no
1970   DEFAULT_wxUSE_LOGDIALOG=no
1971
1972   DEFAULT_wxUSE_GUI=yes
1973   DEFAULT_wxUSE_CONTROLS=no
1974
1975   DEFAULT_wxUSE_REGEX=no
1976   DEFAULT_wxUSE_XML=no
1977   DEFAULT_wxUSE_EXPAT=no
1978   DEFAULT_wxUSE_ZLIB=no
1979   DEFAULT_wxUSE_LIBPNG=no
1980   DEFAULT_wxUSE_LIBJPEG=no
1981   DEFAULT_wxUSE_LIBTIFF=no
1982   DEFAULT_wxUSE_ODBC=no
1983   DEFAULT_wxUSE_OPENGL=no
1984
1985   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1986   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1987   DEFAULT_wxUSE_STD_IOSTREAM=no
1988   DEFAULT_wxUSE_CMDLINE_PARSER=no
1989   DEFAULT_wxUSE_DATETIME=no
1990   DEFAULT_wxUSE_TIMER=no
1991   DEFAULT_wxUSE_STOPWATCH=no
1992   DEFAULT_wxUSE_FILE=no
1993   DEFAULT_wxUSE_FFILE=no
1994   DEFAULT_wxUSE_TEXTBUFFER=no
1995   DEFAULT_wxUSE_TEXTFILE=no
1996   DEFAULT_wxUSE_WAVE=no
1997   DEFAULT_wxUSE_INTL=no
1998   DEFAULT_wxUSE_CONFIG=no
1999   DEFAULT_wxUSE_FONTMAP=no
2000   DEFAULT_wxUSE_STREAMS=no
2001   DEFAULT_wxUSE_SOCKETS=no
2002   DEFAULT_wxUSE_OLE=no
2003   DEFAULT_wxUSE_DATAOBJ=no
2004   DEFAULT_wxUSE_DIALUP_MANAGER=no
2005   DEFAULT_wxUSE_JOYSTICK=no
2006   DEFAULT_wxUSE_DYNLIB_CLASS=no
2007   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2008   DEFAULT_wxUSE_LONGLONG=no
2009   DEFAULT_wxUSE_GEOMETRY=no
2010
2011   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2012   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2013   DEFAULT_wxUSE_POSTSCRIPT=no
2014
2015   DEFAULT_wxUSE_CLIPBOARD=no
2016   DEFAULT_wxUSE_TOOLTIPS=no
2017   DEFAULT_wxUSE_DRAG_AND_DROP=no
2018   DEFAULT_wxUSE_DRAGIMAGE=no
2019   DEFAULT_wxUSE_SPLINES=no
2020
2021   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2022   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2023   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2024
2025   DEFAULT_wxUSE_RESOURCES=no
2026   DEFAULT_wxUSE_CONSTRAINTS=no
2027   DEFAULT_wxUSE_IPC=no
2028   DEFAULT_wxUSE_HELP=no
2029   DEFAULT_wxUSE_MS_HTML_HELP=no
2030   DEFAULT_wxUSE_WXHTML_HELP=no
2031   DEFAULT_wxUSE_TREELAYOUT=no
2032   DEFAULT_wxUSE_METAFILE=no
2033   DEFAULT_wxUSE_MIMETYPE=no
2034   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2035   DEFAULT_wxUSE_PROTOCOL=no
2036   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2037   DEFAULT_wxUSE_PROTOCOL_FTP=no
2038   DEFAULT_wxUSE_PROTOCOL_FILE=no
2039   DEFAULT_wxUSE_URL=no
2040
2041   DEFAULT_wxUSE_COMMONDLGS=no
2042   DEFAULT_wxUSE_CHOICEDLG=no
2043   DEFAULT_wxUSE_COLOURDLG=no
2044   DEFAULT_wxUSE_DIRDLG=no
2045   DEFAULT_wxUSE_FILEDLG=no
2046   DEFAULT_wxUSE_FINDREPLDLG=no
2047   DEFAULT_wxUSE_FONTDLG=no
2048   DEFAULT_wxUSE_MSGDLG=no
2049   DEFAULT_wxUSE_NUMBERDLG=no
2050   DEFAULT_wxUSE_TEXTDLG=no
2051   DEFAULT_wxUSE_SPLASH=no
2052   DEFAULT_wxUSE_STARTUP_TIPS=no
2053   DEFAULT_wxUSE_PROGRESSDLG=no
2054   DEFAULT_wxUSE_WIZARDDLG=no
2055
2056   DEFAULT_wxUSE_MENUS=no
2057   DEFAULT_wxUSE_MINIFRAME=no
2058   DEFAULT_wxUSE_HTML=no
2059   DEFAULT_wxUSE_FILESYSTEM=no
2060   DEFAULT_wxUSE_FS_INET=no
2061   DEFAULT_wxUSE_FS_ZIP=no
2062   DEFAULT_wxUSE_BUSYINFO=no
2063   DEFAULT_wxUSE_ZIPSTREAM=no
2064   DEFAULT_wxUSE_VALIDATORS=no
2065
2066   DEFAULT_wxUSE_ACCEL=no
2067   DEFAULT_wxUSE_BUTTON=no
2068   DEFAULT_wxUSE_BMPBUTTON=no
2069   DEFAULT_wxUSE_CALCTRL=no
2070   DEFAULT_wxUSE_CARET=no
2071   DEFAULT_wxUSE_CHECKBOX=no
2072   DEFAULT_wxUSE_CHECKLST=no
2073   DEFAULT_wxUSE_CHOICE=no
2074   DEFAULT_wxUSE_COMBOBOX=no
2075   DEFAULT_wxUSE_DISPLAY=no
2076   DEFAULT_wxUSE_GAUGE=no
2077   DEFAULT_wxUSE_GRID=no
2078   DEFAULT_wxUSE_IMAGLIST=no
2079   DEFAULT_wxUSE_LISTBOX=no
2080   DEFAULT_wxUSE_LISTCTRL=no
2081   DEFAULT_wxUSE_NOTEBOOK=no
2082   DEFAULT_wxUSE_RADIOBOX=no
2083   DEFAULT_wxUSE_RADIOBTN=no
2084   DEFAULT_wxUSE_SASH=no
2085   DEFAULT_wxUSE_SCROLLBAR=no
2086   DEFAULT_wxUSE_SLIDER=no
2087   DEFAULT_wxUSE_SPINBTN=no
2088   DEFAULT_wxUSE_SPINCTRL=no
2089   DEFAULT_wxUSE_SPLITTER=no
2090   DEFAULT_wxUSE_STATBMP=no
2091   DEFAULT_wxUSE_STATBOX=no
2092   DEFAULT_wxUSE_STATLINE=no
2093   DEFAULT_wxUSE_STATTEXT=no
2094   DEFAULT_wxUSE_STATUSBAR=yes
2095   DEFAULT_wxUSE_TABDIALOG=no
2096   DEFAULT_wxUSE_TEXTCTRL=no
2097   DEFAULT_wxUSE_TOGGLEBTN=no
2098   DEFAULT_wxUSE_TOOLBAR=no
2099   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2100   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2101   DEFAULT_wxUSE_TREECTRL=no
2102   DEFAULT_wxUSE_POPUPWIN=no
2103   DEFAULT_wxUSE_TIPWINDOW=no
2104
2105   DEFAULT_wxUSE_UNICODE=no
2106   DEFAULT_wxUSE_UNICODE_MSLU=no
2107   DEFAULT_wxUSE_WCSRTOMBS=no
2108
2109   DEFAULT_wxUSE_PALETTE=no
2110   DEFAULT_wxUSE_IMAGE=no
2111   DEFAULT_wxUSE_GIF=no
2112   DEFAULT_wxUSE_PCX=no
2113   DEFAULT_wxUSE_PNM=no
2114   DEFAULT_wxUSE_IFF=no
2115   DEFAULT_wxUSE_XPM=no
2116   DEFAULT_wxUSE_ICO_CUR=no
2117   DEFAULT_wxUSE_ACCESSIBILITY=no
2118
2119   DEFAULT_wxUSE_MONOLITHIC=no
2120   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2121 else
2122   DEFAULT_wxUSE_UNIVERSAL=no
2123   DEFAULT_wxUSE_STL=no
2124
2125   DEFAULT_wxUSE_NANOX=no
2126
2127   DEFAULT_wxUSE_THREADS=yes
2128
2129   DEFAULT_wxUSE_SHARED=yes
2130   DEFAULT_wxUSE_OPTIMISE=yes
2131   DEFAULT_wxUSE_PROFILE=no
2132   DEFAULT_wxUSE_NO_DEPS=no
2133   DEFAULT_wxUSE_NO_RTTI=no
2134   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2135   DEFAULT_wxUSE_PERMISSIVE=no
2136   DEFAULT_wxUSE_DEBUG_FLAG=no
2137   DEFAULT_wxUSE_DEBUG_INFO=no
2138   DEFAULT_wxUSE_DEBUG_GDB=no
2139   DEFAULT_wxUSE_MEM_TRACING=no
2140   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2141   DEFAULT_wxUSE_DMALLOC=no
2142   DEFAULT_wxUSE_APPLE_IEEE=yes
2143
2144   DEFAULT_wxUSE_LOG=yes
2145   DEFAULT_wxUSE_LOGWINDOW=yes
2146   DEFAULT_wxUSE_LOGGUI=yes
2147   DEFAULT_wxUSE_LOGDIALOG=yes
2148
2149   DEFAULT_wxUSE_GUI=yes
2150
2151   DEFAULT_wxUSE_REGEX=yes
2152   DEFAULT_wxUSE_XML=yes
2153   DEFAULT_wxUSE_EXPAT=yes
2154   DEFAULT_wxUSE_ZLIB=yes
2155   DEFAULT_wxUSE_LIBPNG=yes
2156   DEFAULT_wxUSE_LIBJPEG=yes
2157   DEFAULT_wxUSE_LIBTIFF=yes
2158   DEFAULT_wxUSE_ODBC=no
2159   DEFAULT_wxUSE_OPENGL=no
2160
2161   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2162   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2163   DEFAULT_wxUSE_STD_IOSTREAM=no
2164   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2165   DEFAULT_wxUSE_DATETIME=yes
2166   DEFAULT_wxUSE_TIMER=yes
2167   DEFAULT_wxUSE_STOPWATCH=yes
2168   DEFAULT_wxUSE_FILE=yes
2169   DEFAULT_wxUSE_FFILE=yes
2170   DEFAULT_wxUSE_TEXTBUFFER=yes
2171   DEFAULT_wxUSE_TEXTFILE=yes
2172   DEFAULT_wxUSE_WAVE=no
2173   DEFAULT_wxUSE_INTL=yes
2174   DEFAULT_wxUSE_CONFIG=yes
2175   DEFAULT_wxUSE_FONTMAP=yes
2176   DEFAULT_wxUSE_STREAMS=yes
2177   DEFAULT_wxUSE_SOCKETS=yes
2178   DEFAULT_wxUSE_OLE=yes
2179   DEFAULT_wxUSE_DATAOBJ=yes
2180   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2181   DEFAULT_wxUSE_JOYSTICK=yes
2182   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2183   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2184   DEFAULT_wxUSE_LONGLONG=yes
2185   DEFAULT_wxUSE_GEOMETRY=yes
2186
2187   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2188   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2189   DEFAULT_wxUSE_POSTSCRIPT=yes
2190
2191   DEFAULT_wxUSE_CLIPBOARD=yes
2192   DEFAULT_wxUSE_TOOLTIPS=yes
2193   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2194   DEFAULT_wxUSE_DRAGIMAGE=yes
2195   DEFAULT_wxUSE_SPLINES=yes
2196
2197   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2198   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2199   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2200
2201   DEFAULT_wxUSE_RESOURCES=no
2202   DEFAULT_wxUSE_CONSTRAINTS=yes
2203   DEFAULT_wxUSE_IPC=yes
2204   DEFAULT_wxUSE_HELP=yes
2205   DEFAULT_wxUSE_MS_HTML_HELP=yes
2206   DEFAULT_wxUSE_WXHTML_HELP=yes
2207   DEFAULT_wxUSE_TREELAYOUT=yes
2208   DEFAULT_wxUSE_METAFILE=yes
2209   DEFAULT_wxUSE_MIMETYPE=yes
2210   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2211   DEFAULT_wxUSE_PROTOCOL=yes
2212   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2213   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2214   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2215   DEFAULT_wxUSE_URL=yes
2216
2217   DEFAULT_wxUSE_COMMONDLGS=yes
2218   DEFAULT_wxUSE_CHOICEDLG=yes
2219   DEFAULT_wxUSE_COLOURDLG=yes
2220   DEFAULT_wxUSE_DIRDLG=yes
2221   DEFAULT_wxUSE_FILEDLG=yes
2222   DEFAULT_wxUSE_FINDREPLDLG=yes
2223   DEFAULT_wxUSE_FONTDLG=yes
2224   DEFAULT_wxUSE_MSGDLG=yes
2225   DEFAULT_wxUSE_NUMBERDLG=yes
2226   DEFAULT_wxUSE_TEXTDLG=yes
2227   DEFAULT_wxUSE_SPLASH=yes
2228   DEFAULT_wxUSE_STARTUP_TIPS=yes
2229   DEFAULT_wxUSE_PROGRESSDLG=yes
2230   DEFAULT_wxUSE_WIZARDDLG=yes
2231
2232   DEFAULT_wxUSE_MENUS=yes
2233   DEFAULT_wxUSE_MINIFRAME=yes
2234   DEFAULT_wxUSE_HTML=yes
2235   DEFAULT_wxUSE_FILESYSTEM=yes
2236   DEFAULT_wxUSE_FS_INET=yes
2237   DEFAULT_wxUSE_FS_ZIP=yes
2238   DEFAULT_wxUSE_BUSYINFO=yes
2239   DEFAULT_wxUSE_ZIPSTREAM=yes
2240   DEFAULT_wxUSE_VALIDATORS=yes
2241
2242   DEFAULT_wxUSE_ACCEL=yes
2243   DEFAULT_wxUSE_BUTTON=yes
2244   DEFAULT_wxUSE_BMPBUTTON=yes
2245   DEFAULT_wxUSE_CALCTRL=yes
2246   DEFAULT_wxUSE_CARET=yes
2247   DEFAULT_wxUSE_CHECKBOX=yes
2248   DEFAULT_wxUSE_CHECKLST=yes
2249   DEFAULT_wxUSE_CHOICE=yes
2250   DEFAULT_wxUSE_COMBOBOX=yes
2251   DEFAULT_wxUSE_DISPLAY=no
2252   DEFAULT_wxUSE_GAUGE=yes
2253   DEFAULT_wxUSE_GRID=yes
2254   DEFAULT_wxUSE_IMAGLIST=yes
2255   DEFAULT_wxUSE_LISTBOX=yes
2256   DEFAULT_wxUSE_LISTCTRL=yes
2257   DEFAULT_wxUSE_NOTEBOOK=yes
2258   DEFAULT_wxUSE_RADIOBOX=yes
2259   DEFAULT_wxUSE_RADIOBTN=yes
2260   DEFAULT_wxUSE_SASH=yes
2261   DEFAULT_wxUSE_SCROLLBAR=yes
2262   DEFAULT_wxUSE_SLIDER=yes
2263   DEFAULT_wxUSE_SPINBTN=yes
2264   DEFAULT_wxUSE_SPINCTRL=yes
2265   DEFAULT_wxUSE_SPLITTER=yes
2266   DEFAULT_wxUSE_STATBMP=yes
2267   DEFAULT_wxUSE_STATBOX=yes
2268   DEFAULT_wxUSE_STATLINE=yes
2269   DEFAULT_wxUSE_STATTEXT=yes
2270   DEFAULT_wxUSE_STATUSBAR=yes
2271   DEFAULT_wxUSE_TABDIALOG=no
2272   DEFAULT_wxUSE_TEXTCTRL=yes
2273   DEFAULT_wxUSE_TOGGLEBTN=yes
2274   DEFAULT_wxUSE_TOOLBAR=yes
2275   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2276   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2277   DEFAULT_wxUSE_TREECTRL=yes
2278   DEFAULT_wxUSE_POPUPWIN=yes
2279   DEFAULT_wxUSE_TIPWINDOW=yes
2280
2281   DEFAULT_wxUSE_UNICODE=no
2282   DEFAULT_wxUSE_UNICODE_MSLU=yes
2283   DEFAULT_wxUSE_WCSRTOMBS=no
2284
2285   DEFAULT_wxUSE_PALETTE=yes
2286   DEFAULT_wxUSE_IMAGE=yes
2287   DEFAULT_wxUSE_GIF=yes
2288   DEFAULT_wxUSE_PCX=yes
2289   DEFAULT_wxUSE_IFF=no
2290   DEFAULT_wxUSE_PNM=yes
2291   DEFAULT_wxUSE_XPM=yes
2292   DEFAULT_wxUSE_ICO_CUR=yes
2293   DEFAULT_wxUSE_ACCESSIBILITY=no
2294
2295   DEFAULT_wxUSE_MONOLITHIC=no
2296   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2297 fi
2298
2299
2300
2301 for toolkit in `echo $ALL_TOOLKITS`; do
2302   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2303   if test "x$LINE" != "x" ; then
2304     has_toolkit_in_cache=1
2305     eval "DEFAULT_$LINE"
2306     eval "CACHE_$toolkit=1"
2307   fi
2308 done
2309
2310
2311
2312           enablestring=
2313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2314 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2315           no_cache=0
2316           # Check whether --enable-gui or --disable-gui was given.
2317 if test "${enable_gui+set}" = set; then
2318   enableval="$enable_gui"
2319
2320                           if test "$enableval" = yes; then
2321                             ac_cv_use_gui='wxUSE_GUI=yes'
2322                           else
2323                             ac_cv_use_gui='wxUSE_GUI=no'
2324                           fi
2325
2326 else
2327
2328                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2329                           if test "x$LINE" != x ; then
2330                             eval "DEFAULT_$LINE"
2331                           else
2332                             no_cache=1
2333                           fi
2334
2335                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2336
2337 fi;
2338
2339           eval "$ac_cv_use_gui"
2340           if test "$no_cache" != 1; then
2341             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2342           fi
2343
2344           if test "$wxUSE_GUI" = yes; then
2345             echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6
2347           else
2348             echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350           fi
2351
2352
2353           enablestring=
2354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2355 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2356           no_cache=0
2357           # Check whether --enable-monolithic or --disable-monolithic was given.
2358 if test "${enable_monolithic+set}" = set; then
2359   enableval="$enable_monolithic"
2360
2361                           if test "$enableval" = yes; then
2362                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2363                           else
2364                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2365                           fi
2366
2367 else
2368
2369                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2370                           if test "x$LINE" != x ; then
2371                             eval "DEFAULT_$LINE"
2372                           else
2373                             no_cache=1
2374                           fi
2375
2376                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2377
2378 fi;
2379
2380           eval "$ac_cv_use_monolithic"
2381           if test "$no_cache" != 1; then
2382             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2383           fi
2384
2385           if test "$wxUSE_MONOLITHIC" = yes; then
2386             echo "$as_me:$LINENO: result: yes" >&5
2387 echo "${ECHO_T}yes" >&6
2388           else
2389             echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391           fi
2392
2393
2394 if test "$wxUSE_GUI" = "yes"; then
2395
2396
2397           enablestring=
2398           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2399 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2400           no_cache=0
2401           # Check whether --enable-universal or --disable-universal was given.
2402 if test "${enable_universal+set}" = set; then
2403   enableval="$enable_universal"
2404
2405                           if test "$enableval" = yes; then
2406                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2407                           else
2408                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2409                           fi
2410
2411 else
2412
2413                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2414                           if test "x$LINE" != x ; then
2415                             eval "DEFAULT_$LINE"
2416                           else
2417                             no_cache=1
2418                           fi
2419
2420                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2421
2422 fi;
2423
2424           eval "$ac_cv_use_universal"
2425           if test "$no_cache" != 1; then
2426             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2427           fi
2428
2429           if test "$wxUSE_UNIVERSAL" = yes; then
2430             echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6
2432           else
2433             echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2435           fi
2436
2437
2438 # Check whether --with-gtk or --without-gtk was given.
2439 if test "${with_gtk+set}" = set; then
2440   withval="$with_gtk"
2441   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2442 fi;
2443
2444 # Check whether --with-motif or --without-motif was given.
2445 if test "${with_motif+set}" = set; then
2446   withval="$with_motif"
2447   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2448 fi;
2449
2450 # Check whether --with-mac or --without-mac was given.
2451 if test "${with_mac+set}" = set; then
2452   withval="$with_mac"
2453   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2454 fi;
2455
2456 # Check whether --with-cocoa or --without-cocoa was given.
2457 if test "${with_cocoa+set}" = set; then
2458   withval="$with_cocoa"
2459   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2460 fi;
2461
2462 # Check whether --with-wine or --without-wine was given.
2463 if test "${with_wine+set}" = set; then
2464   withval="$with_wine"
2465   wxUSE_WINE="$withval" CACHE_WINE=1
2466 fi;
2467
2468 # Check whether --with-msw or --without-msw was given.
2469 if test "${with_msw+set}" = set; then
2470   withval="$with_msw"
2471   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2472 fi;
2473
2474 # Check whether --with-pm or --without-pm was given.
2475 if test "${with_pm+set}" = set; then
2476   withval="$with_pm"
2477   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2478 fi;
2479
2480 # Check whether --with-mgl or --without-mgl was given.
2481 if test "${with_mgl+set}" = set; then
2482   withval="$with_mgl"
2483   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2484 fi;
2485
2486 # Check whether --with-microwin or --without-microwin was given.
2487 if test "${with_microwin+set}" = set; then
2488   withval="$with_microwin"
2489   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2490 fi;
2491
2492 # Check whether --with-x11 or --without-x11 was given.
2493 if test "${with_x11+set}" = set; then
2494   withval="$with_x11"
2495   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2496 fi;
2497
2498           enablestring=
2499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2500 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2501           no_cache=0
2502           # Check whether --enable-nanox or --disable-nanox was given.
2503 if test "${enable_nanox+set}" = set; then
2504   enableval="$enable_nanox"
2505
2506                           if test "$enableval" = yes; then
2507                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2508                           else
2509                             ac_cv_use_nanox='wxUSE_NANOX=no'
2510                           fi
2511
2512 else
2513
2514                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2515                           if test "x$LINE" != x ; then
2516                             eval "DEFAULT_$LINE"
2517                           else
2518                             no_cache=1
2519                           fi
2520
2521                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2522
2523 fi;
2524
2525           eval "$ac_cv_use_nanox"
2526           if test "$no_cache" != 1; then
2527             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2528           fi
2529
2530           if test "$wxUSE_NANOX" = yes; then
2531             echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2533           else
2534             echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2536           fi
2537
2538
2539
2540           enablestring=
2541           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2542 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2543           no_cache=0
2544           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2545 if test "${enable_gtk2+set}" = set; then
2546   enableval="$enable_gtk2"
2547
2548                           if test "$enableval" = yes; then
2549                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2550                           else
2551                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2552                           fi
2553
2554 else
2555
2556                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2557                           if test "x$LINE" != x ; then
2558                             eval "DEFAULT_$LINE"
2559                           else
2560                             no_cache=1
2561                           fi
2562
2563                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2564
2565 fi;
2566
2567           eval "$ac_cv_use_gtk2"
2568           if test "$no_cache" != 1; then
2569             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2570           fi
2571
2572           if test "$wxUSE_GTK2" = yes; then
2573             echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2575           else
2576             echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578           fi
2579
2580
2581
2582           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2583 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2584           no_cache=0
2585
2586 # Check whether --with-libpng or --without-libpng was given.
2587 if test "${with_libpng+set}" = set; then
2588   withval="$with_libpng"
2589
2590                         if test "$withval" = yes; then
2591                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2592                         elif test "$withval" = no; then
2593                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2594                         elif test "$withval" = sys; then
2595                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2596                         elif test "$withval" = builtin; then
2597                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2598                         else
2599                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2600 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2601    { (exit 1); exit 1; }; }
2602                         fi
2603
2604 else
2605
2606                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2607                         if test "x$LINE" != x ; then
2608                           eval "DEFAULT_$LINE"
2609                         else
2610                           no_cache=1
2611                         fi
2612
2613                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2614
2615 fi;
2616
2617           eval "$ac_cv_use_libpng"
2618           if test "$no_cache" != 1; then
2619             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2620           fi
2621
2622           if test "$wxUSE_LIBPNG" = yes; then
2623             echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625           elif test "$wxUSE_LIBPNG" = no; then
2626             echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6
2628           elif test "$wxUSE_LIBPNG" = sys; then
2629             echo "$as_me:$LINENO: result: system version" >&5
2630 echo "${ECHO_T}system version" >&6
2631           elif test "$wxUSE_LIBPNG" = builtin; then
2632             echo "$as_me:$LINENO: result: builtin version" >&5
2633 echo "${ECHO_T}builtin version" >&6
2634           else
2635             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2636 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2637    { (exit 1); exit 1; }; }
2638           fi
2639
2640
2641           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2642 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2643           no_cache=0
2644
2645 # Check whether --with-libjpeg or --without-libjpeg was given.
2646 if test "${with_libjpeg+set}" = set; then
2647   withval="$with_libjpeg"
2648
2649                         if test "$withval" = yes; then
2650                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2651                         elif test "$withval" = no; then
2652                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2653                         elif test "$withval" = sys; then
2654                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2655                         elif test "$withval" = builtin; then
2656                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2657                         else
2658                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2659 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2660    { (exit 1); exit 1; }; }
2661                         fi
2662
2663 else
2664
2665                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2666                         if test "x$LINE" != x ; then
2667                           eval "DEFAULT_$LINE"
2668                         else
2669                           no_cache=1
2670                         fi
2671
2672                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2673
2674 fi;
2675
2676           eval "$ac_cv_use_libjpeg"
2677           if test "$no_cache" != 1; then
2678             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2679           fi
2680
2681           if test "$wxUSE_LIBJPEG" = yes; then
2682             echo "$as_me:$LINENO: result: yes" >&5
2683 echo "${ECHO_T}yes" >&6
2684           elif test "$wxUSE_LIBJPEG" = no; then
2685             echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6
2687           elif test "$wxUSE_LIBJPEG" = sys; then
2688             echo "$as_me:$LINENO: result: system version" >&5
2689 echo "${ECHO_T}system version" >&6
2690           elif test "$wxUSE_LIBJPEG" = builtin; then
2691             echo "$as_me:$LINENO: result: builtin version" >&5
2692 echo "${ECHO_T}builtin version" >&6
2693           else
2694             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2695 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2696    { (exit 1); exit 1; }; }
2697           fi
2698
2699
2700           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2701 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2702           no_cache=0
2703
2704 # Check whether --with-libtiff or --without-libtiff was given.
2705 if test "${with_libtiff+set}" = set; then
2706   withval="$with_libtiff"
2707
2708                         if test "$withval" = yes; then
2709                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2710                         elif test "$withval" = no; then
2711                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2712                         elif test "$withval" = sys; then
2713                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2714                         elif test "$withval" = builtin; then
2715                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2716                         else
2717                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2718 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2719    { (exit 1); exit 1; }; }
2720                         fi
2721
2722 else
2723
2724                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2725                         if test "x$LINE" != x ; then
2726                           eval "DEFAULT_$LINE"
2727                         else
2728                           no_cache=1
2729                         fi
2730
2731                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2732
2733 fi;
2734
2735           eval "$ac_cv_use_libtiff"
2736           if test "$no_cache" != 1; then
2737             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2738           fi
2739
2740           if test "$wxUSE_LIBTIFF" = yes; then
2741             echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6
2743           elif test "$wxUSE_LIBTIFF" = no; then
2744             echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746           elif test "$wxUSE_LIBTIFF" = sys; then
2747             echo "$as_me:$LINENO: result: system version" >&5
2748 echo "${ECHO_T}system version" >&6
2749           elif test "$wxUSE_LIBTIFF" = builtin; then
2750             echo "$as_me:$LINENO: result: builtin version" >&5
2751 echo "${ECHO_T}builtin version" >&6
2752           else
2753             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2754 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2755    { (exit 1); exit 1; }; }
2756           fi
2757
2758
2759           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2760 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2761           no_cache=0
2762
2763 # Check whether --with-opengl or --without-opengl was given.
2764 if test "${with_opengl+set}" = set; then
2765   withval="$with_opengl"
2766
2767                         if test "$withval" = yes; then
2768                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2769                         else
2770                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2771                         fi
2772
2773 else
2774
2775                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2776                         if test "x$LINE" != x ; then
2777                           eval "DEFAULT_$LINE"
2778                         else
2779                           no_cache=1
2780                         fi
2781
2782                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2783
2784 fi;
2785
2786           eval "$ac_cv_use_opengl"
2787           if test "$no_cache" != 1; then
2788             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2789           fi
2790
2791           if test "$wxUSE_OPENGL" = yes; then
2792             echo "$as_me:$LINENO: result: yes" >&5
2793 echo "${ECHO_T}yes" >&6
2794           else
2795             echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6
2797           fi
2798
2799
2800 fi
2801
2802
2803           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2804 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2805           no_cache=0
2806
2807 # Check whether --with-dmalloc or --without-dmalloc was given.
2808 if test "${with_dmalloc+set}" = set; then
2809   withval="$with_dmalloc"
2810
2811                         if test "$withval" = yes; then
2812                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2813                         else
2814                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2815                         fi
2816
2817 else
2818
2819                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2820                         if test "x$LINE" != x ; then
2821                           eval "DEFAULT_$LINE"
2822                         else
2823                           no_cache=1
2824                         fi
2825
2826                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2827
2828 fi;
2829
2830           eval "$ac_cv_use_dmalloc"
2831           if test "$no_cache" != 1; then
2832             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2833           fi
2834
2835           if test "$wxUSE_DMALLOC" = yes; then
2836             echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6
2838           else
2839             echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841           fi
2842
2843
2844           echo "$as_me:$LINENO: checking for --with-regex" >&5
2845 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
2846           no_cache=0
2847
2848 # Check whether --with-regex or --without-regex was given.
2849 if test "${with_regex+set}" = set; then
2850   withval="$with_regex"
2851
2852                         if test "$withval" = yes; then
2853                           ac_cv_use_regex='wxUSE_REGEX=yes'
2854                         elif test "$withval" = no; then
2855                           ac_cv_use_regex='wxUSE_REGEX=no'
2856                         elif test "$withval" = sys; then
2857                           ac_cv_use_regex='wxUSE_REGEX=sys'
2858                         elif test "$withval" = builtin; then
2859                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2860                         else
2861                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2862 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2863    { (exit 1); exit 1; }; }
2864                         fi
2865
2866 else
2867
2868                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2869                         if test "x$LINE" != x ; then
2870                           eval "DEFAULT_$LINE"
2871                         else
2872                           no_cache=1
2873                         fi
2874
2875                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2876
2877 fi;
2878
2879           eval "$ac_cv_use_regex"
2880           if test "$no_cache" != 1; then
2881             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2882           fi
2883
2884           if test "$wxUSE_REGEX" = yes; then
2885             echo "$as_me:$LINENO: result: yes" >&5
2886 echo "${ECHO_T}yes" >&6
2887           elif test "$wxUSE_REGEX" = no; then
2888             echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2890           elif test "$wxUSE_REGEX" = sys; then
2891             echo "$as_me:$LINENO: result: system version" >&5
2892 echo "${ECHO_T}system version" >&6
2893           elif test "$wxUSE_REGEX" = builtin; then
2894             echo "$as_me:$LINENO: result: builtin version" >&5
2895 echo "${ECHO_T}builtin version" >&6
2896           else
2897             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2898 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2899    { (exit 1); exit 1; }; }
2900           fi
2901
2902
2903           echo "$as_me:$LINENO: checking for --with-zlib" >&5
2904 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
2905           no_cache=0
2906
2907 # Check whether --with-zlib or --without-zlib was given.
2908 if test "${with_zlib+set}" = set; then
2909   withval="$with_zlib"
2910
2911                         if test "$withval" = yes; then
2912                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2913                         elif test "$withval" = no; then
2914                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2915                         elif test "$withval" = sys; then
2916                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2917                         elif test "$withval" = builtin; then
2918                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2919                         else
2920                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2921 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2922    { (exit 1); exit 1; }; }
2923                         fi
2924
2925 else
2926
2927                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2928                         if test "x$LINE" != x ; then
2929                           eval "DEFAULT_$LINE"
2930                         else
2931                           no_cache=1
2932                         fi
2933
2934                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2935
2936 fi;
2937
2938           eval "$ac_cv_use_zlib"
2939           if test "$no_cache" != 1; then
2940             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2941           fi
2942
2943           if test "$wxUSE_ZLIB" = yes; then
2944             echo "$as_me:$LINENO: result: yes" >&5
2945 echo "${ECHO_T}yes" >&6
2946           elif test "$wxUSE_ZLIB" = no; then
2947             echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6
2949           elif test "$wxUSE_ZLIB" = sys; then
2950             echo "$as_me:$LINENO: result: system version" >&5
2951 echo "${ECHO_T}system version" >&6
2952           elif test "$wxUSE_ZLIB" = builtin; then
2953             echo "$as_me:$LINENO: result: builtin version" >&5
2954 echo "${ECHO_T}builtin version" >&6
2955           else
2956             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2957 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2958    { (exit 1); exit 1; }; }
2959           fi
2960
2961
2962           echo "$as_me:$LINENO: checking for --with-odbc" >&5
2963 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
2964           no_cache=0
2965
2966 # Check whether --with-odbc or --without-odbc was given.
2967 if test "${with_odbc+set}" = set; then
2968   withval="$with_odbc"
2969
2970                         if test "$withval" = yes; then
2971                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2972                         elif test "$withval" = no; then
2973                           ac_cv_use_odbc='wxUSE_ODBC=no'
2974                         elif test "$withval" = sys; then
2975                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2976                         elif test "$withval" = builtin; then
2977                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2978                         else
2979                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2980 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2981    { (exit 1); exit 1; }; }
2982                         fi
2983
2984 else
2985
2986                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2987                         if test "x$LINE" != x ; then
2988                           eval "DEFAULT_$LINE"
2989                         else
2990                           no_cache=1
2991                         fi
2992
2993                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2994
2995 fi;
2996
2997           eval "$ac_cv_use_odbc"
2998           if test "$no_cache" != 1; then
2999             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3000           fi
3001
3002           if test "$wxUSE_ODBC" = yes; then
3003             echo "$as_me:$LINENO: result: yes" >&5
3004 echo "${ECHO_T}yes" >&6
3005           elif test "$wxUSE_ODBC" = no; then
3006             echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008           elif test "$wxUSE_ODBC" = sys; then
3009             echo "$as_me:$LINENO: result: system version" >&5
3010 echo "${ECHO_T}system version" >&6
3011           elif test "$wxUSE_ODBC" = builtin; then
3012             echo "$as_me:$LINENO: result: builtin version" >&5
3013 echo "${ECHO_T}builtin version" >&6
3014           else
3015             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3016 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3017    { (exit 1); exit 1; }; }
3018           fi
3019
3020
3021           echo "$as_me:$LINENO: checking for --with-expat" >&5
3022 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3023           no_cache=0
3024
3025 # Check whether --with-expat or --without-expat was given.
3026 if test "${with_expat+set}" = set; then
3027   withval="$with_expat"
3028
3029                         if test "$withval" = yes; then
3030                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3031                         elif test "$withval" = no; then
3032                           ac_cv_use_expat='wxUSE_EXPAT=no'
3033                         elif test "$withval" = sys; then
3034                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3035                         elif test "$withval" = builtin; then
3036                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3037                         else
3038                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3039 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3040    { (exit 1); exit 1; }; }
3041                         fi
3042
3043 else
3044
3045                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3046                         if test "x$LINE" != x ; then
3047                           eval "DEFAULT_$LINE"
3048                         else
3049                           no_cache=1
3050                         fi
3051
3052                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3053
3054 fi;
3055
3056           eval "$ac_cv_use_expat"
3057           if test "$no_cache" != 1; then
3058             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3059           fi
3060
3061           if test "$wxUSE_EXPAT" = yes; then
3062             echo "$as_me:$LINENO: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3064           elif test "$wxUSE_EXPAT" = no; then
3065             echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3067           elif test "$wxUSE_EXPAT" = sys; then
3068             echo "$as_me:$LINENO: result: system version" >&5
3069 echo "${ECHO_T}system version" >&6
3070           elif test "$wxUSE_EXPAT" = builtin; then
3071             echo "$as_me:$LINENO: result: builtin version" >&5
3072 echo "${ECHO_T}builtin version" >&6
3073           else
3074             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3075 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3076    { (exit 1); exit 1; }; }
3077           fi
3078
3079
3080
3081
3082           enablestring=
3083           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3084 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3085           no_cache=0
3086           # Check whether --enable-shared or --disable-shared was given.
3087 if test "${enable_shared+set}" = set; then
3088   enableval="$enable_shared"
3089
3090                           if test "$enableval" = yes; then
3091                             ac_cv_use_shared='wxUSE_SHARED=yes'
3092                           else
3093                             ac_cv_use_shared='wxUSE_SHARED=no'
3094                           fi
3095
3096 else
3097
3098                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3099                           if test "x$LINE" != x ; then
3100                             eval "DEFAULT_$LINE"
3101                           else
3102                             no_cache=1
3103                           fi
3104
3105                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3106
3107 fi;
3108
3109           eval "$ac_cv_use_shared"
3110           if test "$no_cache" != 1; then
3111             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3112           fi
3113
3114           if test "$wxUSE_SHARED" = yes; then
3115             echo "$as_me:$LINENO: result: yes" >&5
3116 echo "${ECHO_T}yes" >&6
3117           else
3118             echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120           fi
3121
3122
3123           enablestring=
3124           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3125 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3126           no_cache=0
3127           # Check whether --enable-optimise or --disable-optimise was given.
3128 if test "${enable_optimise+set}" = set; then
3129   enableval="$enable_optimise"
3130
3131                           if test "$enableval" = yes; then
3132                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3133                           else
3134                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3135                           fi
3136
3137 else
3138
3139                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3140                           if test "x$LINE" != x ; then
3141                             eval "DEFAULT_$LINE"
3142                           else
3143                             no_cache=1
3144                           fi
3145
3146                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3147
3148 fi;
3149
3150           eval "$ac_cv_use_optimise"
3151           if test "$no_cache" != 1; then
3152             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3153           fi
3154
3155           if test "$wxUSE_OPTIMISE" = yes; then
3156             echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3158           else
3159             echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161           fi
3162
3163
3164           enablestring=
3165           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3166 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3167           no_cache=0
3168           # Check whether --enable-debug or --disable-debug was given.
3169 if test "${enable_debug+set}" = set; then
3170   enableval="$enable_debug"
3171
3172                           if test "$enableval" = yes; then
3173                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3174                           else
3175                             ac_cv_use_debug='wxUSE_DEBUG=no'
3176                           fi
3177
3178 else
3179
3180                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3181                           if test "x$LINE" != x ; then
3182                             eval "DEFAULT_$LINE"
3183                           else
3184                             no_cache=1
3185                           fi
3186
3187                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3188
3189 fi;
3190
3191           eval "$ac_cv_use_debug"
3192           if test "$no_cache" != 1; then
3193             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3194           fi
3195
3196           if test "$wxUSE_DEBUG" = yes; then
3197             echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6
3199           else
3200             echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202           fi
3203
3204
3205           enablestring=
3206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3207 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3208           no_cache=0
3209           # Check whether --enable-stl or --disable-stl was given.
3210 if test "${enable_stl+set}" = set; then
3211   enableval="$enable_stl"
3212
3213                           if test "$enableval" = yes; then
3214                             ac_cv_use_stl='wxUSE_STL=yes'
3215                           else
3216                             ac_cv_use_stl='wxUSE_STL=no'
3217                           fi
3218
3219 else
3220
3221                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3222                           if test "x$LINE" != x ; then
3223                             eval "DEFAULT_$LINE"
3224                           else
3225                             no_cache=1
3226                           fi
3227
3228                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3229
3230 fi;
3231
3232           eval "$ac_cv_use_stl"
3233           if test "$no_cache" != 1; then
3234             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3235           fi
3236
3237           if test "$wxUSE_STL" = yes; then
3238             echo "$as_me:$LINENO: result: yes" >&5
3239 echo "${ECHO_T}yes" >&6
3240           else
3241             echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3243           fi
3244
3245
3246 if test "$wxUSE_DEBUG" = "yes"; then
3247   DEFAULT_wxUSE_DEBUG_FLAG=yes
3248   DEFAULT_wxUSE_DEBUG_INFO=yes
3249   BUILD=debug
3250 elif test "$wxUSE_DEBUG" = "no"; then
3251   DEFAULT_wxUSE_DEBUG_FLAG=no
3252   DEFAULT_wxUSE_DEBUG_INFO=no
3253   BUILD=release
3254 fi
3255
3256
3257           enablestring=
3258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3259 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3260           no_cache=0
3261           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3262 if test "${enable_debug_flag+set}" = set; then
3263   enableval="$enable_debug_flag"
3264
3265                           if test "$enableval" = yes; then
3266                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3267                           else
3268                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3269                           fi
3270
3271 else
3272
3273                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3274                           if test "x$LINE" != x ; then
3275                             eval "DEFAULT_$LINE"
3276                           else
3277                             no_cache=1
3278                           fi
3279
3280                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3281
3282 fi;
3283
3284           eval "$ac_cv_use_debug_flag"
3285           if test "$no_cache" != 1; then
3286             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3287           fi
3288
3289           if test "$wxUSE_DEBUG_FLAG" = yes; then
3290             echo "$as_me:$LINENO: result: yes" >&5
3291 echo "${ECHO_T}yes" >&6
3292           else
3293             echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3295           fi
3296
3297
3298           enablestring=
3299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3300 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3301           no_cache=0
3302           # Check whether --enable-debug_info or --disable-debug_info was given.
3303 if test "${enable_debug_info+set}" = set; then
3304   enableval="$enable_debug_info"
3305
3306                           if test "$enableval" = yes; then
3307                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3308                           else
3309                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3310                           fi
3311
3312 else
3313
3314                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3315                           if test "x$LINE" != x ; then
3316                             eval "DEFAULT_$LINE"
3317                           else
3318                             no_cache=1
3319                           fi
3320
3321                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3322
3323 fi;
3324
3325           eval "$ac_cv_use_debug_info"
3326           if test "$no_cache" != 1; then
3327             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3328           fi
3329
3330           if test "$wxUSE_DEBUG_INFO" = yes; then
3331             echo "$as_me:$LINENO: result: yes" >&5
3332 echo "${ECHO_T}yes" >&6
3333           else
3334             echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336           fi
3337
3338
3339           enablestring=
3340           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3341 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3342           no_cache=0
3343           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3344 if test "${enable_debug_gdb+set}" = set; then
3345   enableval="$enable_debug_gdb"
3346
3347                           if test "$enableval" = yes; then
3348                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3349                           else
3350                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3351                           fi
3352
3353 else
3354
3355                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3356                           if test "x$LINE" != x ; then
3357                             eval "DEFAULT_$LINE"
3358                           else
3359                             no_cache=1
3360                           fi
3361
3362                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3363
3364 fi;
3365
3366           eval "$ac_cv_use_debug_gdb"
3367           if test "$no_cache" != 1; then
3368             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3369           fi
3370
3371           if test "$wxUSE_DEBUG_GDB" = yes; then
3372             echo "$as_me:$LINENO: result: yes" >&5
3373 echo "${ECHO_T}yes" >&6
3374           else
3375             echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3377           fi
3378
3379
3380           enablestring=
3381           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3382 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3383           no_cache=0
3384           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3385 if test "${enable_debug_cntxt+set}" = set; then
3386   enableval="$enable_debug_cntxt"
3387
3388                           if test "$enableval" = yes; then
3389                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3390                           else
3391                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3392                           fi
3393
3394 else
3395
3396                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3397                           if test "x$LINE" != x ; then
3398                             eval "DEFAULT_$LINE"
3399                           else
3400                             no_cache=1
3401                           fi
3402
3403                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3404
3405 fi;
3406
3407           eval "$ac_cv_use_debug_cntxt"
3408           if test "$no_cache" != 1; then
3409             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3410           fi
3411
3412           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3413             echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6
3415           else
3416             echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3418           fi
3419
3420
3421           enablestring=
3422           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3423 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3424           no_cache=0
3425           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3426 if test "${enable_mem_tracing+set}" = set; then
3427   enableval="$enable_mem_tracing"
3428
3429                           if test "$enableval" = yes; then
3430                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3431                           else
3432                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3433                           fi
3434
3435 else
3436
3437                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3438                           if test "x$LINE" != x ; then
3439                             eval "DEFAULT_$LINE"
3440                           else
3441                             no_cache=1
3442                           fi
3443
3444                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3445
3446 fi;
3447
3448           eval "$ac_cv_use_mem_tracing"
3449           if test "$no_cache" != 1; then
3450             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3451           fi
3452
3453           if test "$wxUSE_MEM_TRACING" = yes; then
3454             echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3456           else
3457             echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3459           fi
3460
3461
3462           enablestring=
3463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3464 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3465           no_cache=0
3466           # Check whether --enable-profile or --disable-profile was given.
3467 if test "${enable_profile+set}" = set; then
3468   enableval="$enable_profile"
3469
3470                           if test "$enableval" = yes; then
3471                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3472                           else
3473                             ac_cv_use_profile='wxUSE_PROFILE=no'
3474                           fi
3475
3476 else
3477
3478                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3479                           if test "x$LINE" != x ; then
3480                             eval "DEFAULT_$LINE"
3481                           else
3482                             no_cache=1
3483                           fi
3484
3485                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3486
3487 fi;
3488
3489           eval "$ac_cv_use_profile"
3490           if test "$no_cache" != 1; then
3491             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3492           fi
3493
3494           if test "$wxUSE_PROFILE" = yes; then
3495             echo "$as_me:$LINENO: result: yes" >&5
3496 echo "${ECHO_T}yes" >&6
3497           else
3498             echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3500           fi
3501
3502
3503           enablestring=
3504           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3505 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3506           no_cache=0
3507           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3508 if test "${enable_no_rtti+set}" = set; then
3509   enableval="$enable_no_rtti"
3510
3511                           if test "$enableval" = yes; then
3512                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3513                           else
3514                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3515                           fi
3516
3517 else
3518
3519                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3520                           if test "x$LINE" != x ; then
3521                             eval "DEFAULT_$LINE"
3522                           else
3523                             no_cache=1
3524                           fi
3525
3526                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3527
3528 fi;
3529
3530           eval "$ac_cv_use_no_rtti"
3531           if test "$no_cache" != 1; then
3532             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3533           fi
3534
3535           if test "$wxUSE_NO_RTTI" = yes; then
3536             echo "$as_me:$LINENO: result: yes" >&5
3537 echo "${ECHO_T}yes" >&6
3538           else
3539             echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541           fi
3542
3543
3544           enablestring=
3545           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3546 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3547           no_cache=0
3548           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3549 if test "${enable_no_exceptions+set}" = set; then
3550   enableval="$enable_no_exceptions"
3551
3552                           if test "$enableval" = yes; then
3553                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3554                           else
3555                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3556                           fi
3557
3558 else
3559
3560                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3561                           if test "x$LINE" != x ; then
3562                             eval "DEFAULT_$LINE"
3563                           else
3564                             no_cache=1
3565                           fi
3566
3567                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3568
3569 fi;
3570
3571           eval "$ac_cv_use_no_exceptions"
3572           if test "$no_cache" != 1; then
3573             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3574           fi
3575
3576           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3577             echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3579           else
3580             echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582           fi
3583
3584
3585           enablestring=
3586           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3587 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3588           no_cache=0
3589           # Check whether --enable-permissive or --disable-permissive was given.
3590 if test "${enable_permissive+set}" = set; then
3591   enableval="$enable_permissive"
3592
3593                           if test "$enableval" = yes; then
3594                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3595                           else
3596                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3597                           fi
3598
3599 else
3600
3601                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3602                           if test "x$LINE" != x ; then
3603                             eval "DEFAULT_$LINE"
3604                           else
3605                             no_cache=1
3606                           fi
3607
3608                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3609
3610 fi;
3611
3612           eval "$ac_cv_use_permissive"
3613           if test "$no_cache" != 1; then
3614             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3615           fi
3616
3617           if test "$wxUSE_PERMISSIVE" = yes; then
3618             echo "$as_me:$LINENO: result: yes" >&5
3619 echo "${ECHO_T}yes" >&6
3620           else
3621             echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623           fi
3624
3625
3626           enablestring=
3627           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3628 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3629           no_cache=0
3630           # Check whether --enable-no_deps or --disable-no_deps was given.
3631 if test "${enable_no_deps+set}" = set; then
3632   enableval="$enable_no_deps"
3633
3634                           if test "$enableval" = yes; then
3635                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3636                           else
3637                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3638                           fi
3639
3640 else
3641
3642                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3643                           if test "x$LINE" != x ; then
3644                             eval "DEFAULT_$LINE"
3645                           else
3646                             no_cache=1
3647                           fi
3648
3649                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3650
3651 fi;
3652
3653           eval "$ac_cv_use_no_deps"
3654           if test "$no_cache" != 1; then
3655             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3656           fi
3657
3658           if test "$wxUSE_NO_DEPS" = yes; then
3659             echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6
3661           else
3662             echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3664           fi
3665
3666
3667
3668           enablestring=
3669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3670 echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
3671           no_cache=0
3672           # Check whether --enable-compat20 or --disable-compat20 was given.
3673 if test "${enable_compat20+set}" = set; then
3674   enableval="$enable_compat20"
3675
3676                           if test "$enableval" = yes; then
3677                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3678                           else
3679                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3680                           fi
3681
3682 else
3683
3684                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${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_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3692
3693 fi;
3694
3695           eval "$ac_cv_use_compat20"
3696           if test "$no_cache" != 1; then
3697             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3698           fi
3699
3700           if test "$WXWIN_COMPATIBILITY_2" = 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}-compat22" >&5
3711 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3712           no_cache=0
3713           # Check whether --enable-compat22 or --disable-compat22 was given.
3714 if test "${enable_compat22+set}" = set; then
3715   enableval="$enable_compat22"
3716
3717                           if test "$enableval" = yes; then
3718                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3719                           else
3720                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3721                           fi
3722
3723 else
3724
3725                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3733
3734 fi;
3735
3736           eval "$ac_cv_use_compat22"
3737           if test "$no_cache" != 1; then
3738             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3739           fi
3740
3741           if test "$WXWIN_COMPATIBILITY_2_2" = 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=disable
3751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3752 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3753           no_cache=0
3754           # Check whether --enable-compat24 or --disable-compat24 was given.
3755 if test "${enable_compat24+set}" = set; then
3756   enableval="$enable_compat24"
3757
3758                           if test "$enableval" = yes; then
3759                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3760                           else
3761                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3762                           fi
3763
3764 else
3765
3766                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${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_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3774
3775 fi;
3776
3777           eval "$ac_cv_use_compat24"
3778           if test "$no_cache" != 1; then
3779             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3780           fi
3781
3782           if test "$WXWIN_COMPATIBILITY_2_4" = 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 # Check whether --enable-rpath or --disable-rpath was given.
3792 if test "${enable_rpath+set}" = set; then
3793   enableval="$enable_rpath"
3794   wxRPATH_DIR="$enableval"
3795 fi;
3796
3797 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3798    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3799 fi
3800
3801
3802
3803
3804           enablestring=
3805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3806 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3807           no_cache=0
3808           # Check whether --enable-intl or --disable-intl was given.
3809 if test "${enable_intl+set}" = set; then
3810   enableval="$enable_intl"
3811
3812                           if test "$enableval" = yes; then
3813                             ac_cv_use_intl='wxUSE_INTL=yes'
3814                           else
3815                             ac_cv_use_intl='wxUSE_INTL=no'
3816                           fi
3817
3818 else
3819
3820                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3821                           if test "x$LINE" != x ; then
3822                             eval "DEFAULT_$LINE"
3823                           else
3824                             no_cache=1
3825                           fi
3826
3827                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3828
3829 fi;
3830
3831           eval "$ac_cv_use_intl"
3832           if test "$no_cache" != 1; then
3833             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3834           fi
3835
3836           if test "$wxUSE_INTL" = yes; then
3837             echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6
3839           else
3840             echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842           fi
3843
3844
3845           enablestring=
3846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3847 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3848           no_cache=0
3849           # Check whether --enable-config or --disable-config was given.
3850 if test "${enable_config+set}" = set; then
3851   enableval="$enable_config"
3852
3853                           if test "$enableval" = yes; then
3854                             ac_cv_use_config='wxUSE_CONFIG=yes'
3855                           else
3856                             ac_cv_use_config='wxUSE_CONFIG=no'
3857                           fi
3858
3859 else
3860
3861                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3862                           if test "x$LINE" != x ; then
3863                             eval "DEFAULT_$LINE"
3864                           else
3865                             no_cache=1
3866                           fi
3867
3868                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3869
3870 fi;
3871
3872           eval "$ac_cv_use_config"
3873           if test "$no_cache" != 1; then
3874             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3875           fi
3876
3877           if test "$wxUSE_CONFIG" = yes; then
3878             echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3880           else
3881             echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883           fi
3884
3885
3886
3887           enablestring=
3888           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3889 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
3890           no_cache=0
3891           # Check whether --enable-protocols or --disable-protocols was given.
3892 if test "${enable_protocols+set}" = set; then
3893   enableval="$enable_protocols"
3894
3895                           if test "$enableval" = yes; then
3896                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3897                           else
3898                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3899                           fi
3900
3901 else
3902
3903                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3904                           if test "x$LINE" != x ; then
3905                             eval "DEFAULT_$LINE"
3906                           else
3907                             no_cache=1
3908                           fi
3909
3910                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3911
3912 fi;
3913
3914           eval "$ac_cv_use_protocols"
3915           if test "$no_cache" != 1; then
3916             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3917           fi
3918
3919           if test "$wxUSE_PROTOCOL" = yes; then
3920             echo "$as_me:$LINENO: result: yes" >&5
3921 echo "${ECHO_T}yes" >&6
3922           else
3923             echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3925           fi
3926
3927
3928           enablestring=
3929           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3930 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
3931           no_cache=0
3932           # Check whether --enable-ftp or --disable-ftp was given.
3933 if test "${enable_ftp+set}" = set; then
3934   enableval="$enable_ftp"
3935
3936                           if test "$enableval" = yes; then
3937                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3938                           else
3939                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3940                           fi
3941
3942 else
3943
3944                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3952
3953 fi;
3954
3955           eval "$ac_cv_use_ftp"
3956           if test "$no_cache" != 1; then
3957             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3958           fi
3959
3960           if test "$wxUSE_PROTOCOL_FTP" = 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}-http" >&5
3971 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
3972           no_cache=0
3973           # Check whether --enable-http or --disable-http was given.
3974 if test "${enable_http+set}" = set; then
3975   enableval="$enable_http"
3976
3977                           if test "$enableval" = yes; then
3978                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3979                           else
3980                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3981                           fi
3982
3983 else
3984
3985                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3993
3994 fi;
3995
3996           eval "$ac_cv_use_http"
3997           if test "$no_cache" != 1; then
3998             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3999           fi
4000
4001           if test "$wxUSE_PROTOCOL_HTTP" = 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           enablestring=
4011           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4012 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4013           no_cache=0
4014           # Check whether --enable-fileproto or --disable-fileproto was given.
4015 if test "${enable_fileproto+set}" = set; then
4016   enableval="$enable_fileproto"
4017
4018                           if test "$enableval" = yes; then
4019                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4020                           else
4021                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4022                           fi
4023
4024 else
4025
4026                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4027                           if test "x$LINE" != x ; then
4028                             eval "DEFAULT_$LINE"
4029                           else
4030                             no_cache=1
4031                           fi
4032
4033                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4034
4035 fi;
4036
4037           eval "$ac_cv_use_fileproto"
4038           if test "$no_cache" != 1; then
4039             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4040           fi
4041
4042           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4043             echo "$as_me:$LINENO: result: yes" >&5
4044 echo "${ECHO_T}yes" >&6
4045           else
4046             echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048           fi
4049
4050
4051           enablestring=
4052           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4053 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4054           no_cache=0
4055           # Check whether --enable-sockets or --disable-sockets was given.
4056 if test "${enable_sockets+set}" = set; then
4057   enableval="$enable_sockets"
4058
4059                           if test "$enableval" = yes; then
4060                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4061                           else
4062                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4063                           fi
4064
4065 else
4066
4067                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4068                           if test "x$LINE" != x ; then
4069                             eval "DEFAULT_$LINE"
4070                           else
4071                             no_cache=1
4072                           fi
4073
4074                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4075
4076 fi;
4077
4078           eval "$ac_cv_use_sockets"
4079           if test "$no_cache" != 1; then
4080             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4081           fi
4082
4083           if test "$wxUSE_SOCKETS" = yes; then
4084             echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6
4086           else
4087             echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089           fi
4090
4091
4092           enablestring=
4093           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4094 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4095           no_cache=0
4096           # Check whether --enable-ole or --disable-ole was given.
4097 if test "${enable_ole+set}" = set; then
4098   enableval="$enable_ole"
4099
4100                           if test "$enableval" = yes; then
4101                             ac_cv_use_ole='wxUSE_OLE=yes'
4102                           else
4103                             ac_cv_use_ole='wxUSE_OLE=no'
4104                           fi
4105
4106 else
4107
4108                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4109                           if test "x$LINE" != x ; then
4110                             eval "DEFAULT_$LINE"
4111                           else
4112                             no_cache=1
4113                           fi
4114
4115                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4116
4117 fi;
4118
4119           eval "$ac_cv_use_ole"
4120           if test "$no_cache" != 1; then
4121             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4122           fi
4123
4124           if test "$wxUSE_OLE" = yes; then
4125             echo "$as_me:$LINENO: result: yes" >&5
4126 echo "${ECHO_T}yes" >&6
4127           else
4128             echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130           fi
4131
4132
4133           enablestring=
4134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4135 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4136           no_cache=0
4137           # Check whether --enable-dataobj or --disable-dataobj was given.
4138 if test "${enable_dataobj+set}" = set; then
4139   enableval="$enable_dataobj"
4140
4141                           if test "$enableval" = yes; then
4142                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4143                           else
4144                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4145                           fi
4146
4147 else
4148
4149                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4150                           if test "x$LINE" != x ; then
4151                             eval "DEFAULT_$LINE"
4152                           else
4153                             no_cache=1
4154                           fi
4155
4156                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4157
4158 fi;
4159
4160           eval "$ac_cv_use_dataobj"
4161           if test "$no_cache" != 1; then
4162             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4163           fi
4164
4165           if test "$wxUSE_DATAOBJ" = yes; then
4166             echo "$as_me:$LINENO: result: yes" >&5
4167 echo "${ECHO_T}yes" >&6
4168           else
4169             echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6
4171           fi
4172
4173
4174
4175           enablestring=
4176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4177 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4178           no_cache=0
4179           # Check whether --enable-ipc or --disable-ipc was given.
4180 if test "${enable_ipc+set}" = set; then
4181   enableval="$enable_ipc"
4182
4183                           if test "$enableval" = yes; then
4184                             ac_cv_use_ipc='wxUSE_IPC=yes'
4185                           else
4186                             ac_cv_use_ipc='wxUSE_IPC=no'
4187                           fi
4188
4189 else
4190
4191                           LINE=`grep "wxUSE_IPC" ${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_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4199
4200 fi;
4201
4202           eval "$ac_cv_use_ipc"
4203           if test "$no_cache" != 1; then
4204             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4205           fi
4206
4207           if test "$wxUSE_IPC" = 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
4217           enablestring=
4218           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4219 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4220           no_cache=0
4221           # Check whether --enable-cmdline or --disable-cmdline was given.
4222 if test "${enable_cmdline+set}" = set; then
4223   enableval="$enable_cmdline"
4224
4225                           if test "$enableval" = yes; then
4226                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4227                           else
4228                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4229                           fi
4230
4231 else
4232
4233                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4234                           if test "x$LINE" != x ; then
4235                             eval "DEFAULT_$LINE"
4236                           else
4237                             no_cache=1
4238                           fi
4239
4240                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4241
4242 fi;
4243
4244           eval "$ac_cv_use_cmdline"
4245           if test "$no_cache" != 1; then
4246             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4247           fi
4248
4249           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4250             echo "$as_me:$LINENO: result: yes" >&5
4251 echo "${ECHO_T}yes" >&6
4252           else
4253             echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255           fi
4256
4257
4258           enablestring=
4259           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4260 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4261           no_cache=0
4262           # Check whether --enable-datetime or --disable-datetime was given.
4263 if test "${enable_datetime+set}" = set; then
4264   enableval="$enable_datetime"
4265
4266                           if test "$enableval" = yes; then
4267                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4268                           else
4269                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4270                           fi
4271
4272 else
4273
4274                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4275                           if test "x$LINE" != x ; then
4276                             eval "DEFAULT_$LINE"
4277                           else
4278                             no_cache=1
4279                           fi
4280
4281                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4282
4283 fi;
4284
4285           eval "$ac_cv_use_datetime"
4286           if test "$no_cache" != 1; then
4287             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4288           fi
4289
4290           if test "$wxUSE_DATETIME" = yes; then
4291             echo "$as_me:$LINENO: result: yes" >&5
4292 echo "${ECHO_T}yes" >&6
4293           else
4294             echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4296           fi
4297
4298
4299           enablestring=
4300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4301 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
4302           no_cache=0
4303           # Check whether --enable-stopwatch or --disable-stopwatch was given.
4304 if test "${enable_stopwatch+set}" = set; then
4305   enableval="$enable_stopwatch"
4306
4307                           if test "$enableval" = yes; then
4308                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4309                           else
4310                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4311                           fi
4312
4313 else
4314
4315                           LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
4323
4324 fi;
4325
4326           eval "$ac_cv_use_stopwatch"
4327           if test "$no_cache" != 1; then
4328             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4329           fi
4330
4331           if test "$wxUSE_STOPWATCH" = 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           enablestring=
4341           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4342 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4343           no_cache=0
4344           # Check whether --enable-dialupman or --disable-dialupman was given.
4345 if test "${enable_dialupman+set}" = set; then
4346   enableval="$enable_dialupman"
4347
4348                           if test "$enableval" = yes; then
4349                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4350                           else
4351                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4352                           fi
4353
4354 else
4355
4356                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4357                           if test "x$LINE" != x ; then
4358                             eval "DEFAULT_$LINE"
4359                           else
4360                             no_cache=1
4361                           fi
4362
4363                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4364
4365 fi;
4366
4367           eval "$ac_cv_use_dialupman"
4368           if test "$no_cache" != 1; then
4369             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4370           fi
4371
4372           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4373             echo "$as_me:$LINENO: result: yes" >&5
4374 echo "${ECHO_T}yes" >&6
4375           else
4376             echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4378           fi
4379
4380
4381           enablestring=
4382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4383 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4384           no_cache=0
4385           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4386 if test "${enable_apple_ieee+set}" = set; then
4387   enableval="$enable_apple_ieee"
4388
4389                           if test "$enableval" = yes; then
4390                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4391                           else
4392                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4393                           fi
4394
4395 else
4396
4397                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4398                           if test "x$LINE" != x ; then
4399                             eval "DEFAULT_$LINE"
4400                           else
4401                             no_cache=1
4402                           fi
4403
4404                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4405
4406 fi;
4407
4408           eval "$ac_cv_use_apple_ieee"
4409           if test "$no_cache" != 1; then
4410             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4411           fi
4412
4413           if test "$wxUSE_APPLE_IEEE" = yes; then
4414             echo "$as_me:$LINENO: result: yes" >&5
4415 echo "${ECHO_T}yes" >&6
4416           else
4417             echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4419           fi
4420
4421
4422           enablestring=
4423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4424 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
4425           no_cache=0
4426           # Check whether --enable-timer or --disable-timer was given.
4427 if test "${enable_timer+set}" = set; then
4428   enableval="$enable_timer"
4429
4430                           if test "$enableval" = yes; then
4431                             ac_cv_use_timer='wxUSE_TIMER=yes'
4432                           else
4433                             ac_cv_use_timer='wxUSE_TIMER=no'
4434                           fi
4435
4436 else
4437
4438                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
4439                           if test "x$LINE" != x ; then
4440                             eval "DEFAULT_$LINE"
4441                           else
4442                             no_cache=1
4443                           fi
4444
4445                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
4446
4447 fi;
4448
4449           eval "$ac_cv_use_timer"
4450           if test "$no_cache" != 1; then
4451             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
4452           fi
4453
4454           if test "$wxUSE_TIMER" = yes; then
4455             echo "$as_me:$LINENO: result: yes" >&5
4456 echo "${ECHO_T}yes" >&6
4457           else
4458             echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460           fi
4461
4462
4463           enablestring=
4464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4465 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
4466           no_cache=0
4467           # Check whether --enable-wave or --disable-wave was given.
4468 if test "${enable_wave+set}" = set; then
4469   enableval="$enable_wave"
4470
4471                           if test "$enableval" = yes; then
4472                             ac_cv_use_wave='wxUSE_WAVE=yes'
4473                           else
4474                             ac_cv_use_wave='wxUSE_WAVE=no'
4475                           fi
4476
4477 else
4478
4479                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4480                           if test "x$LINE" != x ; then
4481                             eval "DEFAULT_$LINE"
4482                           else
4483                             no_cache=1
4484                           fi
4485
4486                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
4487
4488 fi;
4489
4490           eval "$ac_cv_use_wave"
4491           if test "$no_cache" != 1; then
4492             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4493           fi
4494
4495           if test "$wxUSE_WAVE" = yes; then
4496             echo "$as_me:$LINENO: result: yes" >&5
4497 echo "${ECHO_T}yes" >&6
4498           else
4499             echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501           fi
4502
4503
4504           enablestring=
4505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4506 echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
4507           no_cache=0
4508           # Check whether --enable-fraction or --disable-fraction was given.
4509 if test "${enable_fraction+set}" = set; then
4510   enableval="$enable_fraction"
4511
4512                           if test "$enableval" = yes; then
4513                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
4514                           else
4515                             ac_cv_use_fraction='wxUSE_FRACTION=no'
4516                           fi
4517
4518 else
4519
4520                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4521                           if test "x$LINE" != x ; then
4522                             eval "DEFAULT_$LINE"
4523                           else
4524                             no_cache=1
4525                           fi
4526
4527                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
4528
4529 fi;
4530
4531           eval "$ac_cv_use_fraction"
4532           if test "$no_cache" != 1; then
4533             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4534           fi
4535
4536           if test "$wxUSE_FRACTION" = yes; then
4537             echo "$as_me:$LINENO: result: yes" >&5
4538 echo "${ECHO_T}yes" >&6
4539           else
4540             echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4542           fi
4543
4544
4545           enablestring=
4546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4547 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4548           no_cache=0
4549           # Check whether --enable-dynlib or --disable-dynlib was given.
4550 if test "${enable_dynlib+set}" = set; then
4551   enableval="$enable_dynlib"
4552
4553                           if test "$enableval" = yes; then
4554                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4555                           else
4556                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4557                           fi
4558
4559 else
4560
4561                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4562                           if test "x$LINE" != x ; then
4563                             eval "DEFAULT_$LINE"
4564                           else
4565                             no_cache=1
4566                           fi
4567
4568                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4569
4570 fi;
4571
4572           eval "$ac_cv_use_dynlib"
4573           if test "$no_cache" != 1; then
4574             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4575           fi
4576
4577           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4578             echo "$as_me:$LINENO: result: yes" >&5
4579 echo "${ECHO_T}yes" >&6
4580           else
4581             echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4583           fi
4584
4585
4586           enablestring=
4587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4588 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4589           no_cache=0
4590           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4591 if test "${enable_dynamicloader+set}" = set; then
4592   enableval="$enable_dynamicloader"
4593
4594                           if test "$enableval" = yes; then
4595                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4596                           else
4597                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4598                           fi
4599
4600 else
4601
4602                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4603                           if test "x$LINE" != x ; then
4604                             eval "DEFAULT_$LINE"
4605                           else
4606                             no_cache=1
4607                           fi
4608
4609                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4610
4611 fi;
4612
4613           eval "$ac_cv_use_dynamicloader"
4614           if test "$no_cache" != 1; then
4615             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4616           fi
4617
4618           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4619             echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6
4621           else
4622             echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624           fi
4625
4626
4627           enablestring=
4628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4629 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
4630           no_cache=0
4631           # Check whether --enable-longlong or --disable-longlong was given.
4632 if test "${enable_longlong+set}" = set; then
4633   enableval="$enable_longlong"
4634
4635                           if test "$enableval" = yes; then
4636                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4637                           else
4638                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
4639                           fi
4640
4641 else
4642
4643                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4644                           if test "x$LINE" != x ; then
4645                             eval "DEFAULT_$LINE"
4646                           else
4647                             no_cache=1
4648                           fi
4649
4650                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4651
4652 fi;
4653
4654           eval "$ac_cv_use_longlong"
4655           if test "$no_cache" != 1; then
4656             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4657           fi
4658
4659           if test "$wxUSE_LONGLONG" = yes; then
4660             echo "$as_me:$LINENO: result: yes" >&5
4661 echo "${ECHO_T}yes" >&6
4662           else
4663             echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4665           fi
4666
4667
4668           enablestring=
4669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4670 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4671           no_cache=0
4672           # Check whether --enable-geometry or --disable-geometry was given.
4673 if test "${enable_geometry+set}" = set; then
4674   enableval="$enable_geometry"
4675
4676                           if test "$enableval" = yes; then
4677                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4678                           else
4679                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4680                           fi
4681
4682 else
4683
4684                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4685                           if test "x$LINE" != x ; then
4686                             eval "DEFAULT_$LINE"
4687                           else
4688                             no_cache=1
4689                           fi
4690
4691                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4692
4693 fi;
4694
4695           eval "$ac_cv_use_geometry"
4696           if test "$no_cache" != 1; then
4697             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4698           fi
4699
4700           if test "$wxUSE_GEOMETRY" = yes; then
4701             echo "$as_me:$LINENO: result: yes" >&5
4702 echo "${ECHO_T}yes" >&6
4703           else
4704             echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6
4706           fi
4707
4708
4709           enablestring=
4710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4711 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4712           no_cache=0
4713           # Check whether --enable-log or --disable-log was given.
4714 if test "${enable_log+set}" = set; then
4715   enableval="$enable_log"
4716
4717                           if test "$enableval" = yes; then
4718                             ac_cv_use_log='wxUSE_LOG=yes'
4719                           else
4720                             ac_cv_use_log='wxUSE_LOG=no'
4721                           fi
4722
4723 else
4724
4725                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4726                           if test "x$LINE" != x ; then
4727                             eval "DEFAULT_$LINE"
4728                           else
4729                             no_cache=1
4730                           fi
4731
4732                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4733
4734 fi;
4735
4736           eval "$ac_cv_use_log"
4737           if test "$no_cache" != 1; then
4738             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4739           fi
4740
4741           if test "$wxUSE_LOG" = yes; then
4742             echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6
4744           else
4745             echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4747           fi
4748
4749
4750           enablestring=
4751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4752 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
4753           no_cache=0
4754           # Check whether --enable-streams or --disable-streams was given.
4755 if test "${enable_streams+set}" = set; then
4756   enableval="$enable_streams"
4757
4758                           if test "$enableval" = yes; then
4759                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4760                           else
4761                             ac_cv_use_streams='wxUSE_STREAMS=no'
4762                           fi
4763
4764 else
4765
4766                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4767                           if test "x$LINE" != x ; then
4768                             eval "DEFAULT_$LINE"
4769                           else
4770                             no_cache=1
4771                           fi
4772
4773                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4774
4775 fi;
4776
4777           eval "$ac_cv_use_streams"
4778           if test "$no_cache" != 1; then
4779             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4780           fi
4781
4782           if test "$wxUSE_STREAMS" = yes; then
4783             echo "$as_me:$LINENO: result: yes" >&5
4784 echo "${ECHO_T}yes" >&6
4785           else
4786             echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788           fi
4789
4790
4791           enablestring=
4792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4793 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4794           no_cache=0
4795           # Check whether --enable-file or --disable-file was given.
4796 if test "${enable_file+set}" = set; then
4797   enableval="$enable_file"
4798
4799                           if test "$enableval" = yes; then
4800                             ac_cv_use_file='wxUSE_FILE=yes'
4801                           else
4802                             ac_cv_use_file='wxUSE_FILE=no'
4803                           fi
4804
4805 else
4806
4807                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4808                           if test "x$LINE" != x ; then
4809                             eval "DEFAULT_$LINE"
4810                           else
4811                             no_cache=1
4812                           fi
4813
4814                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4815
4816 fi;
4817
4818           eval "$ac_cv_use_file"
4819           if test "$no_cache" != 1; then
4820             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4821           fi
4822
4823           if test "$wxUSE_FILE" = yes; then
4824             echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6
4826           else
4827             echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4829           fi
4830
4831
4832           enablestring=
4833           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4834 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4835           no_cache=0
4836           # Check whether --enable-ffile or --disable-ffile was given.
4837 if test "${enable_ffile+set}" = set; then
4838   enableval="$enable_ffile"
4839
4840                           if test "$enableval" = yes; then
4841                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4842                           else
4843                             ac_cv_use_ffile='wxUSE_FFILE=no'
4844                           fi
4845
4846 else
4847
4848                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4849                           if test "x$LINE" != x ; then
4850                             eval "DEFAULT_$LINE"
4851                           else
4852                             no_cache=1
4853                           fi
4854
4855                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4856
4857 fi;
4858
4859           eval "$ac_cv_use_ffile"
4860           if test "$no_cache" != 1; then
4861             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4862           fi
4863
4864           if test "$wxUSE_FFILE" = yes; then
4865             echo "$as_me:$LINENO: result: yes" >&5
4866 echo "${ECHO_T}yes" >&6
4867           else
4868             echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4870           fi
4871
4872
4873           enablestring=
4874           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4875 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
4876           no_cache=0
4877           # Check whether --enable-textbuf or --disable-textbuf was given.
4878 if test "${enable_textbuf+set}" = set; then
4879   enableval="$enable_textbuf"
4880
4881                           if test "$enableval" = yes; then
4882                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4883                           else
4884                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4885                           fi
4886
4887 else
4888
4889                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4890                           if test "x$LINE" != x ; then
4891                             eval "DEFAULT_$LINE"
4892                           else
4893                             no_cache=1
4894                           fi
4895
4896                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4897
4898 fi;
4899
4900           eval "$ac_cv_use_textbuf"
4901           if test "$no_cache" != 1; then
4902             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4903           fi
4904
4905           if test "$wxUSE_TEXTBUFFER" = yes; then
4906             echo "$as_me:$LINENO: result: yes" >&5
4907 echo "${ECHO_T}yes" >&6
4908           else
4909             echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911           fi
4912
4913
4914           enablestring=
4915           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4916 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
4917           no_cache=0
4918           # Check whether --enable-textfile or --disable-textfile was given.
4919 if test "${enable_textfile+set}" = set; then
4920   enableval="$enable_textfile"
4921
4922                           if test "$enableval" = yes; then
4923                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4924                           else
4925                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4926                           fi
4927
4928 else
4929
4930                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4931                           if test "x$LINE" != x ; then
4932                             eval "DEFAULT_$LINE"
4933                           else
4934                             no_cache=1
4935                           fi
4936
4937                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4938
4939 fi;
4940
4941           eval "$ac_cv_use_textfile"
4942           if test "$no_cache" != 1; then
4943             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4944           fi
4945
4946           if test "$wxUSE_TEXTFILE" = yes; then
4947             echo "$as_me:$LINENO: result: yes" >&5
4948 echo "${ECHO_T}yes" >&6
4949           else
4950             echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952           fi
4953
4954
4955           enablestring=
4956           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4957 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4958           no_cache=0
4959           # Check whether --enable-fontmap or --disable-fontmap was given.
4960 if test "${enable_fontmap+set}" = set; then
4961   enableval="$enable_fontmap"
4962
4963                           if test "$enableval" = yes; then
4964                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4965                           else
4966                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4967                           fi
4968
4969 else
4970
4971                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4972                           if test "x$LINE" != x ; then
4973                             eval "DEFAULT_$LINE"
4974                           else
4975                             no_cache=1
4976                           fi
4977
4978                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4979
4980 fi;
4981
4982           eval "$ac_cv_use_fontmap"
4983           if test "$no_cache" != 1; then
4984             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4985           fi
4986
4987           if test "$wxUSE_FONTMAP" = yes; then
4988             echo "$as_me:$LINENO: result: yes" >&5
4989 echo "${ECHO_T}yes" >&6
4990           else
4991             echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6
4993           fi
4994
4995
4996           enablestring=
4997           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4998 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4999           no_cache=0
5000           # Check whether --enable-unicode or --disable-unicode was given.
5001 if test "${enable_unicode+set}" = set; then
5002   enableval="$enable_unicode"
5003
5004                           if test "$enableval" = yes; then
5005                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5006                           else
5007                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5008                           fi
5009
5010 else
5011
5012                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5013                           if test "x$LINE" != x ; then
5014                             eval "DEFAULT_$LINE"
5015                           else
5016                             no_cache=1
5017                           fi
5018
5019                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5020
5021 fi;
5022
5023           eval "$ac_cv_use_unicode"
5024           if test "$no_cache" != 1; then
5025             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5026           fi
5027
5028           if test "$wxUSE_UNICODE" = yes; then
5029             echo "$as_me:$LINENO: result: yes" >&5
5030 echo "${ECHO_T}yes" >&6
5031           else
5032             echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034           fi
5035
5036
5037           enablestring=
5038           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5039 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5040           no_cache=0
5041           # Check whether --enable-mslu or --disable-mslu was given.
5042 if test "${enable_mslu+set}" = set; then
5043   enableval="$enable_mslu"
5044
5045                           if test "$enableval" = yes; then
5046                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5047                           else
5048                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5049                           fi
5050
5051 else
5052
5053                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5054                           if test "x$LINE" != x ; then
5055                             eval "DEFAULT_$LINE"
5056                           else
5057                             no_cache=1
5058                           fi
5059
5060                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5061
5062 fi;
5063
5064           eval "$ac_cv_use_mslu"
5065           if test "$no_cache" != 1; then
5066             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5067           fi
5068
5069           if test "$wxUSE_UNICODE_MSLU" = yes; then
5070             echo "$as_me:$LINENO: result: yes" >&5
5071 echo "${ECHO_T}yes" >&6
5072           else
5073             echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5075           fi
5076
5077
5078           enablestring=
5079           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5080 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5081           no_cache=0
5082           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5083 if test "${enable_wxprintfv+set}" = set; then
5084   enableval="$enable_wxprintfv"
5085
5086                           if test "$enableval" = yes; then
5087                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5088                           else
5089                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5090                           fi
5091
5092 else
5093
5094                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5095                           if test "x$LINE" != x ; then
5096                             eval "DEFAULT_$LINE"
5097                           else
5098                             no_cache=1
5099                           fi
5100
5101                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5102
5103 fi;
5104
5105           eval "$ac_cv_use_wxprintfv"
5106           if test "$no_cache" != 1; then
5107             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5108           fi
5109
5110           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5111             echo "$as_me:$LINENO: result: yes" >&5
5112 echo "${ECHO_T}yes" >&6
5113           else
5114             echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6
5116           fi
5117
5118
5119           enablestring=
5120           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5121 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5122           no_cache=0
5123           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5124 if test "${enable_std_iostreams+set}" = set; then
5125   enableval="$enable_std_iostreams"
5126
5127                           if test "$enableval" = yes; then
5128                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5129                           else
5130                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5131                           fi
5132
5133 else
5134
5135                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5136                           if test "x$LINE" != x ; then
5137                             eval "DEFAULT_$LINE"
5138                           else
5139                             no_cache=1
5140                           fi
5141
5142                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5143
5144 fi;
5145
5146           eval "$ac_cv_use_std_iostreams"
5147           if test "$no_cache" != 1; then
5148             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5149           fi
5150
5151           if test "$wxUSE_STD_IOSTREAM" = yes; then
5152             echo "$as_me:$LINENO: result: yes" >&5
5153 echo "${ECHO_T}yes" >&6
5154           else
5155             echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5157           fi
5158
5159
5160           enablestring=
5161           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5162 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5163           no_cache=0
5164           # Check whether --enable-filesystem or --disable-filesystem was given.
5165 if test "${enable_filesystem+set}" = set; then
5166   enableval="$enable_filesystem"
5167
5168                           if test "$enableval" = yes; then
5169                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5170                           else
5171                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5172                           fi
5173
5174 else
5175
5176                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5177                           if test "x$LINE" != x ; then
5178                             eval "DEFAULT_$LINE"
5179                           else
5180                             no_cache=1
5181                           fi
5182
5183                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5184
5185 fi;
5186
5187           eval "$ac_cv_use_filesystem"
5188           if test "$no_cache" != 1; then
5189             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5190           fi
5191
5192           if test "$wxUSE_FILESYSTEM" = yes; then
5193             echo "$as_me:$LINENO: result: yes" >&5
5194 echo "${ECHO_T}yes" >&6
5195           else
5196             echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6
5198           fi
5199
5200
5201           enablestring=
5202           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5203 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5204           no_cache=0
5205           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5206 if test "${enable_fs_inet+set}" = set; then
5207   enableval="$enable_fs_inet"
5208
5209                           if test "$enableval" = yes; then
5210                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5211                           else
5212                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5213                           fi
5214
5215 else
5216
5217                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5218                           if test "x$LINE" != x ; then
5219                             eval "DEFAULT_$LINE"
5220                           else
5221                             no_cache=1
5222                           fi
5223
5224                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5225
5226 fi;
5227
5228           eval "$ac_cv_use_fs_inet"
5229           if test "$no_cache" != 1; then
5230             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5231           fi
5232
5233           if test "$wxUSE_FS_INET" = yes; then
5234             echo "$as_me:$LINENO: result: yes" >&5
5235 echo "${ECHO_T}yes" >&6
5236           else
5237             echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5239           fi
5240
5241
5242           enablestring=
5243           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5244 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5245           no_cache=0
5246           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5247 if test "${enable_fs_zip+set}" = set; then
5248   enableval="$enable_fs_zip"
5249
5250                           if test "$enableval" = yes; then
5251                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5252                           else
5253                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5254                           fi
5255
5256 else
5257
5258                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5259                           if test "x$LINE" != x ; then
5260                             eval "DEFAULT_$LINE"
5261                           else
5262                             no_cache=1
5263                           fi
5264
5265                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5266
5267 fi;
5268
5269           eval "$ac_cv_use_fs_zip"
5270           if test "$no_cache" != 1; then
5271             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5272           fi
5273
5274           if test "$wxUSE_FS_ZIP" = yes; then
5275             echo "$as_me:$LINENO: result: yes" >&5
5276 echo "${ECHO_T}yes" >&6
5277           else
5278             echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280           fi
5281
5282
5283           enablestring=
5284           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5285 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5286           no_cache=0
5287           # Check whether --enable-zipstream or --disable-zipstream was given.
5288 if test "${enable_zipstream+set}" = set; then
5289   enableval="$enable_zipstream"
5290
5291                           if test "$enableval" = yes; then
5292                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5293                           else
5294                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5295                           fi
5296
5297 else
5298
5299                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5300                           if test "x$LINE" != x ; then
5301                             eval "DEFAULT_$LINE"
5302                           else
5303                             no_cache=1
5304                           fi
5305
5306                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5307
5308 fi;
5309
5310           eval "$ac_cv_use_zipstream"
5311           if test "$no_cache" != 1; then
5312             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5313           fi
5314
5315           if test "$wxUSE_ZIPSTREAM" = yes; then
5316             echo "$as_me:$LINENO: result: yes" >&5
5317 echo "${ECHO_T}yes" >&6
5318           else
5319             echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5321           fi
5322
5323
5324
5325           enablestring=
5326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5327 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5328           no_cache=0
5329           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5330 if test "${enable_catch_segvs+set}" = set; then
5331   enableval="$enable_catch_segvs"
5332
5333                           if test "$enableval" = yes; then
5334                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5335                           else
5336                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5337                           fi
5338
5339 else
5340
5341                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${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_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5349
5350 fi;
5351
5352           eval "$ac_cv_use_catch_segvs"
5353           if test "$no_cache" != 1; then
5354             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5355           fi
5356
5357           if test "$wxUSE_ON_FATAL_EXCEPTION" = 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}-snglinst" >&5
5368 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5369           no_cache=0
5370           # Check whether --enable-snglinst or --disable-snglinst was given.
5371 if test "${enable_snglinst+set}" = set; then
5372   enableval="$enable_snglinst"
5373
5374                           if test "$enableval" = yes; then
5375                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5376                           else
5377                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5378                           fi
5379
5380 else
5381
5382                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5390
5391 fi;
5392
5393           eval "$ac_cv_use_snglinst"
5394           if test "$no_cache" != 1; then
5395             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5396           fi
5397
5398           if test "$wxUSE_SNGLINST_CHECKER" = 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
5408           enablestring=
5409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5410 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5411           no_cache=0
5412           # Check whether --enable-mimetype or --disable-mimetype was given.
5413 if test "${enable_mimetype+set}" = set; then
5414   enableval="$enable_mimetype"
5415
5416                           if test "$enableval" = yes; then
5417                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5418                           else
5419                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5420                           fi
5421
5422 else
5423
5424                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5425                           if test "x$LINE" != x ; then
5426                             eval "DEFAULT_$LINE"
5427                           else
5428                             no_cache=1
5429                           fi
5430
5431                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5432
5433 fi;
5434
5435           eval "$ac_cv_use_mimetype"
5436           if test "$no_cache" != 1; then
5437             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5438           fi
5439
5440           if test "$wxUSE_MIMETYPE" = yes; then
5441             echo "$as_me:$LINENO: result: yes" >&5
5442 echo "${ECHO_T}yes" >&6
5443           else
5444             echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6
5446           fi
5447
5448
5449           enablestring=
5450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5451 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5452           no_cache=0
5453           # Check whether --enable-system_options or --disable-system_options was given.
5454 if test "${enable_system_options+set}" = set; then
5455   enableval="$enable_system_options"
5456
5457                           if test "$enableval" = yes; then
5458                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5459                           else
5460                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5461                           fi
5462
5463 else
5464
5465                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5466                           if test "x$LINE" != x ; then
5467                             eval "DEFAULT_$LINE"
5468                           else
5469                             no_cache=1
5470                           fi
5471
5472                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5473
5474 fi;
5475
5476           eval "$ac_cv_use_system_options"
5477           if test "$no_cache" != 1; then
5478             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5479           fi
5480
5481           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5482             echo "$as_me:$LINENO: result: yes" >&5
5483 echo "${ECHO_T}yes" >&6
5484           else
5485             echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5487           fi
5488
5489
5490
5491           enablestring=
5492           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5493 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5494           no_cache=0
5495           # Check whether --enable-url or --disable-url was given.
5496 if test "${enable_url+set}" = set; then
5497   enableval="$enable_url"
5498
5499                           if test "$enableval" = yes; then
5500                             ac_cv_use_url='wxUSE_URL=yes'
5501                           else
5502                             ac_cv_use_url='wxUSE_URL=no'
5503                           fi
5504
5505 else
5506
5507                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5508                           if test "x$LINE" != x ; then
5509                             eval "DEFAULT_$LINE"
5510                           else
5511                             no_cache=1
5512                           fi
5513
5514                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5515
5516 fi;
5517
5518           eval "$ac_cv_use_url"
5519           if test "$no_cache" != 1; then
5520             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5521           fi
5522
5523           if test "$wxUSE_URL" = yes; then
5524             echo "$as_me:$LINENO: result: yes" >&5
5525 echo "${ECHO_T}yes" >&6
5526           else
5527             echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5529           fi
5530
5531
5532           enablestring=
5533           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5534 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5535           no_cache=0
5536           # Check whether --enable-protocol or --disable-protocol was given.
5537 if test "${enable_protocol+set}" = set; then
5538   enableval="$enable_protocol"
5539
5540                           if test "$enableval" = yes; then
5541                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5542                           else
5543                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5544                           fi
5545
5546 else
5547
5548                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5549                           if test "x$LINE" != x ; then
5550                             eval "DEFAULT_$LINE"
5551                           else
5552                             no_cache=1
5553                           fi
5554
5555                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5556
5557 fi;
5558
5559           eval "$ac_cv_use_protocol"
5560           if test "$no_cache" != 1; then
5561             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5562           fi
5563
5564           if test "$wxUSE_PROTOCOL" = yes; then
5565             echo "$as_me:$LINENO: result: yes" >&5
5566 echo "${ECHO_T}yes" >&6
5567           else
5568             echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6
5570           fi
5571
5572
5573           enablestring=
5574           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5575 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5576           no_cache=0
5577           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5578 if test "${enable_protocol_http+set}" = set; then
5579   enableval="$enable_protocol_http"
5580
5581                           if test "$enableval" = yes; then
5582                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5583                           else
5584                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5585                           fi
5586
5587 else
5588
5589                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5590                           if test "x$LINE" != x ; then
5591                             eval "DEFAULT_$LINE"
5592                           else
5593                             no_cache=1
5594                           fi
5595
5596                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5597
5598 fi;
5599
5600           eval "$ac_cv_use_protocol_http"
5601           if test "$no_cache" != 1; then
5602             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5603           fi
5604
5605           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5606             echo "$as_me:$LINENO: result: yes" >&5
5607 echo "${ECHO_T}yes" >&6
5608           else
5609             echo "$as_me:$LINENO: result: no" >&5
5610 echo "${ECHO_T}no" >&6
5611           fi
5612
5613
5614           enablestring=
5615           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5616 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5617           no_cache=0
5618           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5619 if test "${enable_protocol_ftp+set}" = set; then
5620   enableval="$enable_protocol_ftp"
5621
5622                           if test "$enableval" = yes; then
5623                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5624                           else
5625                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5626                           fi
5627
5628 else
5629
5630                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5631                           if test "x$LINE" != x ; then
5632                             eval "DEFAULT_$LINE"
5633                           else
5634                             no_cache=1
5635                           fi
5636
5637                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5638
5639 fi;
5640
5641           eval "$ac_cv_use_protocol_ftp"
5642           if test "$no_cache" != 1; then
5643             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5644           fi
5645
5646           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5647             echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6
5649           else
5650             echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5652           fi
5653
5654
5655           enablestring=
5656           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5657 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5658           no_cache=0
5659           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5660 if test "${enable_protocol_file+set}" = set; then
5661   enableval="$enable_protocol_file"
5662
5663                           if test "$enableval" = yes; then
5664                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5665                           else
5666                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5667                           fi
5668
5669 else
5670
5671                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5672                           if test "x$LINE" != x ; then
5673                             eval "DEFAULT_$LINE"
5674                           else
5675                             no_cache=1
5676                           fi
5677
5678                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5679
5680 fi;
5681
5682           eval "$ac_cv_use_protocol_file"
5683           if test "$no_cache" != 1; then
5684             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5685           fi
5686
5687           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5688             echo "$as_me:$LINENO: result: yes" >&5
5689 echo "${ECHO_T}yes" >&6
5690           else
5691             echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6
5693           fi
5694
5695
5696
5697
5698
5699           enablestring=
5700           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5701 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5702           no_cache=0
5703           # Check whether --enable-threads or --disable-threads was given.
5704 if test "${enable_threads+set}" = set; then
5705   enableval="$enable_threads"
5706
5707                           if test "$enableval" = yes; then
5708                             ac_cv_use_threads='wxUSE_THREADS=yes'
5709                           else
5710                             ac_cv_use_threads='wxUSE_THREADS=no'
5711                           fi
5712
5713 else
5714
5715                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5716                           if test "x$LINE" != x ; then
5717                             eval "DEFAULT_$LINE"
5718                           else
5719                             no_cache=1
5720                           fi
5721
5722                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5723
5724 fi;
5725
5726           eval "$ac_cv_use_threads"
5727           if test "$no_cache" != 1; then
5728             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5729           fi
5730
5731           if test "$wxUSE_THREADS" = yes; then
5732             echo "$as_me:$LINENO: result: yes" >&5
5733 echo "${ECHO_T}yes" >&6
5734           else
5735             echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5737           fi
5738
5739
5740 if test "$wxUSE_GUI" = "yes"; then
5741
5742
5743
5744           enablestring=
5745           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5746 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5747           no_cache=0
5748           # Check whether --enable-docview or --disable-docview was given.
5749 if test "${enable_docview+set}" = set; then
5750   enableval="$enable_docview"
5751
5752                           if test "$enableval" = yes; then
5753                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5754                           else
5755                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5756                           fi
5757
5758 else
5759
5760                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5761                           if test "x$LINE" != x ; then
5762                             eval "DEFAULT_$LINE"
5763                           else
5764                             no_cache=1
5765                           fi
5766
5767                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5768
5769 fi;
5770
5771           eval "$ac_cv_use_docview"
5772           if test "$no_cache" != 1; then
5773             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5774           fi
5775
5776           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5777             echo "$as_me:$LINENO: result: yes" >&5
5778 echo "${ECHO_T}yes" >&6
5779           else
5780             echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6
5782           fi
5783
5784
5785           enablestring=
5786           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5787 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5788           no_cache=0
5789           # Check whether --enable-help or --disable-help was given.
5790 if test "${enable_help+set}" = set; then
5791   enableval="$enable_help"
5792
5793                           if test "$enableval" = yes; then
5794                             ac_cv_use_help='wxUSE_HELP=yes'
5795                           else
5796                             ac_cv_use_help='wxUSE_HELP=no'
5797                           fi
5798
5799 else
5800
5801                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5802                           if test "x$LINE" != x ; then
5803                             eval "DEFAULT_$LINE"
5804                           else
5805                             no_cache=1
5806                           fi
5807
5808                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5809
5810 fi;
5811
5812           eval "$ac_cv_use_help"
5813           if test "$no_cache" != 1; then
5814             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5815           fi
5816
5817           if test "$wxUSE_HELP" = yes; then
5818             echo "$as_me:$LINENO: result: yes" >&5
5819 echo "${ECHO_T}yes" >&6
5820           else
5821             echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5823           fi
5824
5825
5826           enablestring=
5827           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5828 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5829           no_cache=0
5830           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5831 if test "${enable_mshtmlhelp+set}" = set; then
5832   enableval="$enable_mshtmlhelp"
5833
5834                           if test "$enableval" = yes; then
5835                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5836                           else
5837                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5838                           fi
5839
5840 else
5841
5842                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5843                           if test "x$LINE" != x ; then
5844                             eval "DEFAULT_$LINE"
5845                           else
5846                             no_cache=1
5847                           fi
5848
5849                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5850
5851 fi;
5852
5853           eval "$ac_cv_use_mshtmlhelp"
5854           if test "$no_cache" != 1; then
5855             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5856           fi
5857
5858           if test "$wxUSE_MS_HTML_HELP" = yes; then
5859             echo "$as_me:$LINENO: result: yes" >&5
5860 echo "${ECHO_T}yes" >&6
5861           else
5862             echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864           fi
5865
5866
5867           enablestring=
5868           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5869 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
5870           no_cache=0
5871           # Check whether --enable-html or --disable-html was given.
5872 if test "${enable_html+set}" = set; then
5873   enableval="$enable_html"
5874
5875                           if test "$enableval" = yes; then
5876                             ac_cv_use_html='wxUSE_HTML=yes'
5877                           else
5878                             ac_cv_use_html='wxUSE_HTML=no'
5879                           fi
5880
5881 else
5882
5883                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5884                           if test "x$LINE" != x ; then
5885                             eval "DEFAULT_$LINE"
5886                           else
5887                             no_cache=1
5888                           fi
5889
5890                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5891
5892 fi;
5893
5894           eval "$ac_cv_use_html"
5895           if test "$no_cache" != 1; then
5896             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5897           fi
5898
5899           if test "$wxUSE_HTML" = yes; then
5900             echo "$as_me:$LINENO: result: yes" >&5
5901 echo "${ECHO_T}yes" >&6
5902           else
5903             echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905           fi
5906
5907
5908           enablestring=
5909           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5910 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
5911           no_cache=0
5912           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5913 if test "${enable_htmlhelp+set}" = set; then
5914   enableval="$enable_htmlhelp"
5915
5916                           if test "$enableval" = yes; then
5917                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5918                           else
5919                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5920                           fi
5921
5922 else
5923
5924                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5925                           if test "x$LINE" != x ; then
5926                             eval "DEFAULT_$LINE"
5927                           else
5928                             no_cache=1
5929                           fi
5930
5931                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5932
5933 fi;
5934
5935           eval "$ac_cv_use_htmlhelp"
5936           if test "$no_cache" != 1; then
5937             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5938           fi
5939
5940           if test "$wxUSE_WXHTML_HELP" = yes; then
5941             echo "$as_me:$LINENO: result: yes" >&5
5942 echo "${ECHO_T}yes" >&6
5943           else
5944             echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946           fi
5947
5948
5949           enablestring=
5950           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5951 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
5952           no_cache=0
5953           # Check whether --enable-constraints or --disable-constraints was given.
5954 if test "${enable_constraints+set}" = set; then
5955   enableval="$enable_constraints"
5956
5957                           if test "$enableval" = yes; then
5958                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5959                           else
5960                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5961                           fi
5962
5963 else
5964
5965                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5966                           if test "x$LINE" != x ; then
5967                             eval "DEFAULT_$LINE"
5968                           else
5969                             no_cache=1
5970                           fi
5971
5972                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5973
5974 fi;
5975
5976           eval "$ac_cv_use_constraints"
5977           if test "$no_cache" != 1; then
5978             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5979           fi
5980
5981           if test "$wxUSE_CONSTRAINTS" = yes; then
5982             echo "$as_me:$LINENO: result: yes" >&5
5983 echo "${ECHO_T}yes" >&6
5984           else
5985             echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987           fi
5988
5989
5990           enablestring=
5991           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5992 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
5993           no_cache=0
5994           # Check whether --enable-printarch or --disable-printarch was given.
5995 if test "${enable_printarch+set}" = set; then
5996   enableval="$enable_printarch"
5997
5998                           if test "$enableval" = yes; then
5999                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6000                           else
6001                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6002                           fi
6003
6004 else
6005
6006                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6007                           if test "x$LINE" != x ; then
6008                             eval "DEFAULT_$LINE"
6009                           else
6010                             no_cache=1
6011                           fi
6012
6013                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6014
6015 fi;
6016
6017           eval "$ac_cv_use_printarch"
6018           if test "$no_cache" != 1; then
6019             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6020           fi
6021
6022           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6023             echo "$as_me:$LINENO: result: yes" >&5
6024 echo "${ECHO_T}yes" >&6
6025           else
6026             echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6028           fi
6029
6030
6031           enablestring=
6032           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6033 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6034           no_cache=0
6035           # Check whether --enable-mdi or --disable-mdi was given.
6036 if test "${enable_mdi+set}" = set; then
6037   enableval="$enable_mdi"
6038
6039                           if test "$enableval" = yes; then
6040                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6041                           else
6042                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6043                           fi
6044
6045 else
6046
6047                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6048                           if test "x$LINE" != x ; then
6049                             eval "DEFAULT_$LINE"
6050                           else
6051                             no_cache=1
6052                           fi
6053
6054                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6055
6056 fi;
6057
6058           eval "$ac_cv_use_mdi"
6059           if test "$no_cache" != 1; then
6060             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6061           fi
6062
6063           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6064             echo "$as_me:$LINENO: result: yes" >&5
6065 echo "${ECHO_T}yes" >&6
6066           else
6067             echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6069           fi
6070
6071
6072           enablestring=
6073           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6074 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6075           no_cache=0
6076           # Check whether --enable-loggui or --disable-loggui was given.
6077 if test "${enable_loggui+set}" = set; then
6078   enableval="$enable_loggui"
6079
6080                           if test "$enableval" = yes; then
6081                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6082                           else
6083                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6084                           fi
6085
6086 else
6087
6088                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6089                           if test "x$LINE" != x ; then
6090                             eval "DEFAULT_$LINE"
6091                           else
6092                             no_cache=1
6093                           fi
6094
6095                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6096
6097 fi;
6098
6099           eval "$ac_cv_use_loggui"
6100           if test "$no_cache" != 1; then
6101             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6102           fi
6103
6104           if test "$wxUSE_LOGGUI" = yes; then
6105             echo "$as_me:$LINENO: result: yes" >&5
6106 echo "${ECHO_T}yes" >&6
6107           else
6108             echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6110           fi
6111
6112
6113           enablestring=
6114           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6115 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6116           no_cache=0
6117           # Check whether --enable-logwin or --disable-logwin was given.
6118 if test "${enable_logwin+set}" = set; then
6119   enableval="$enable_logwin"
6120
6121                           if test "$enableval" = yes; then
6122                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6123                           else
6124                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6125                           fi
6126
6127 else
6128
6129                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6130                           if test "x$LINE" != x ; then
6131                             eval "DEFAULT_$LINE"
6132                           else
6133                             no_cache=1
6134                           fi
6135
6136                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6137
6138 fi;
6139
6140           eval "$ac_cv_use_logwin"
6141           if test "$no_cache" != 1; then
6142             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6143           fi
6144
6145           if test "$wxUSE_LOGWINDOW" = yes; then
6146             echo "$as_me:$LINENO: result: yes" >&5
6147 echo "${ECHO_T}yes" >&6
6148           else
6149             echo "$as_me:$LINENO: result: no" >&5
6150 echo "${ECHO_T}no" >&6
6151           fi
6152
6153
6154           enablestring=
6155           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6156 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6157           no_cache=0
6158           # Check whether --enable-logdialog or --disable-logdialog was given.
6159 if test "${enable_logdialog+set}" = set; then
6160   enableval="$enable_logdialog"
6161
6162                           if test "$enableval" = yes; then
6163                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6164                           else
6165                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6166                           fi
6167
6168 else
6169
6170                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6171                           if test "x$LINE" != x ; then
6172                             eval "DEFAULT_$LINE"
6173                           else
6174                             no_cache=1
6175                           fi
6176
6177                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6178
6179 fi;
6180
6181           eval "$ac_cv_use_logdialog"
6182           if test "$no_cache" != 1; then
6183             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6184           fi
6185
6186           if test "$wxUSE_LOGDIALOG" = yes; then
6187             echo "$as_me:$LINENO: result: yes" >&5
6188 echo "${ECHO_T}yes" >&6
6189           else
6190             echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6
6192           fi
6193
6194
6195
6196           enablestring=
6197           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6198 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6199           no_cache=0
6200           # Check whether --enable-postscript or --disable-postscript was given.
6201 if test "${enable_postscript+set}" = set; then
6202   enableval="$enable_postscript"
6203
6204                           if test "$enableval" = yes; then
6205                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6206                           else
6207                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6208                           fi
6209
6210 else
6211
6212                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6213                           if test "x$LINE" != x ; then
6214                             eval "DEFAULT_$LINE"
6215                           else
6216                             no_cache=1
6217                           fi
6218
6219                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6220
6221 fi;
6222
6223           eval "$ac_cv_use_postscript"
6224           if test "$no_cache" != 1; then
6225             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6226           fi
6227
6228           if test "$wxUSE_POSTSCRIPT" = yes; then
6229             echo "$as_me:$LINENO: result: yes" >&5
6230 echo "${ECHO_T}yes" >&6
6231           else
6232             echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6
6234           fi
6235
6236
6237
6238
6239
6240           enablestring=
6241           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6242 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6243           no_cache=0
6244           # Check whether --enable-prologio or --disable-prologio was given.
6245 if test "${enable_prologio+set}" = set; then
6246   enableval="$enable_prologio"
6247
6248                           if test "$enableval" = yes; then
6249                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6250                           else
6251                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6252                           fi
6253
6254 else
6255
6256                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6257                           if test "x$LINE" != x ; then
6258                             eval "DEFAULT_$LINE"
6259                           else
6260                             no_cache=1
6261                           fi
6262
6263                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6264
6265 fi;
6266
6267           eval "$ac_cv_use_prologio"
6268           if test "$no_cache" != 1; then
6269             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6270           fi
6271
6272           if test "$wxUSE_PROLOGIO" = yes; then
6273             echo "$as_me:$LINENO: result: yes" >&5
6274 echo "${ECHO_T}yes" >&6
6275           else
6276             echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6
6278           fi
6279
6280
6281           enablestring=
6282           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6283 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6284           no_cache=0
6285           # Check whether --enable-resources or --disable-resources was given.
6286 if test "${enable_resources+set}" = set; then
6287   enableval="$enable_resources"
6288
6289                           if test "$enableval" = yes; then
6290                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6291                           else
6292                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6293                           fi
6294
6295 else
6296
6297                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6298                           if test "x$LINE" != x ; then
6299                             eval "DEFAULT_$LINE"
6300                           else
6301                             no_cache=1
6302                           fi
6303
6304                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6305
6306 fi;
6307
6308           eval "$ac_cv_use_resources"
6309           if test "$no_cache" != 1; then
6310             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6311           fi
6312
6313           if test "$wxUSE_RESOURCES" = yes; then
6314             echo "$as_me:$LINENO: result: yes" >&5
6315 echo "${ECHO_T}yes" >&6
6316           else
6317             echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6
6319           fi
6320
6321
6322
6323
6324           enablestring=
6325           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6326 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6327           no_cache=0
6328           # Check whether --enable-clipboard or --disable-clipboard was given.
6329 if test "${enable_clipboard+set}" = set; then
6330   enableval="$enable_clipboard"
6331
6332                           if test "$enableval" = yes; then
6333                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6334                           else
6335                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6336                           fi
6337
6338 else
6339
6340                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6341                           if test "x$LINE" != x ; then
6342                             eval "DEFAULT_$LINE"
6343                           else
6344                             no_cache=1
6345                           fi
6346
6347                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6348
6349 fi;
6350
6351           eval "$ac_cv_use_clipboard"
6352           if test "$no_cache" != 1; then
6353             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6354           fi
6355
6356           if test "$wxUSE_CLIPBOARD" = yes; then
6357             echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6
6359           else
6360             echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6362           fi
6363
6364
6365           enablestring=
6366           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6367 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6368           no_cache=0
6369           # Check whether --enable-dnd or --disable-dnd was given.
6370 if test "${enable_dnd+set}" = set; then
6371   enableval="$enable_dnd"
6372
6373                           if test "$enableval" = yes; then
6374                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6375                           else
6376                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6377                           fi
6378
6379 else
6380
6381                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6382                           if test "x$LINE" != x ; then
6383                             eval "DEFAULT_$LINE"
6384                           else
6385                             no_cache=1
6386                           fi
6387
6388                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6389
6390 fi;
6391
6392           eval "$ac_cv_use_dnd"
6393           if test "$no_cache" != 1; then
6394             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6395           fi
6396
6397           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6398             echo "$as_me:$LINENO: result: yes" >&5
6399 echo "${ECHO_T}yes" >&6
6400           else
6401             echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6
6403           fi
6404
6405
6406           enablestring=
6407           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6408 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6409           no_cache=0
6410           # Check whether --enable-metafile or --disable-metafile was given.
6411 if test "${enable_metafile+set}" = set; then
6412   enableval="$enable_metafile"
6413
6414                           if test "$enableval" = yes; then
6415                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6416                           else
6417                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6418                           fi
6419
6420 else
6421
6422                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6423                           if test "x$LINE" != x ; then
6424                             eval "DEFAULT_$LINE"
6425                           else
6426                             no_cache=1
6427                           fi
6428
6429                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6430
6431 fi;
6432
6433           eval "$ac_cv_use_metafile"
6434           if test "$no_cache" != 1; then
6435             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6436           fi
6437
6438           if test "$wxUSE_METAFILE" = yes; then
6439             echo "$as_me:$LINENO: result: yes" >&5
6440 echo "${ECHO_T}yes" >&6
6441           else
6442             echo "$as_me:$LINENO: result: no" >&5
6443 echo "${ECHO_T}no" >&6
6444           fi
6445
6446
6447
6448
6449
6450           enablestring=
6451           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6452 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6453           no_cache=0
6454           # Check whether --enable-controls or --disable-controls was given.
6455 if test "${enable_controls+set}" = set; then
6456   enableval="$enable_controls"
6457
6458                           if test "$enableval" = yes; then
6459                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6460                           else
6461                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6462                           fi
6463
6464 else
6465
6466                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6467                           if test "x$LINE" != x ; then
6468                             eval "DEFAULT_$LINE"
6469                           else
6470                             no_cache=1
6471                           fi
6472
6473                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6474
6475 fi;
6476
6477           eval "$ac_cv_use_controls"
6478           if test "$no_cache" != 1; then
6479             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6480           fi
6481
6482           if test "$wxUSE_CONTROLS" = yes; then
6483             echo "$as_me:$LINENO: result: yes" >&5
6484 echo "${ECHO_T}yes" >&6
6485           else
6486             echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6
6488           fi
6489
6490
6491 if test "$wxUSE_CONTROLS" = "yes"; then
6492   DEFAULT_wxUSE_ACCEL=yes
6493   DEFAULT_wxUSE_BMPBUTTON=yes
6494   DEFAULT_wxUSE_BUTTON=yes
6495   DEFAULT_wxUSE_CALCTRL=no
6496   DEFAULT_wxUSE_CARET=yes
6497   DEFAULT_wxUSE_COMBOBOX=yes
6498   DEFAULT_wxUSE_CHECKBOX=yes
6499   DEFAULT_wxUSE_CHECKLISTBOX=yes
6500   DEFAULT_wxUSE_CHOICE=yes
6501   DEFAULT_wxUSE_GAUGE=yes
6502   DEFAULT_wxUSE_GRID=yes
6503   DEFAULT_wxUSE_IMAGLIST=yes
6504   DEFAULT_wxUSE_LISTBOX=yes
6505   DEFAULT_wxUSE_LISTCTRL=yes
6506   DEFAULT_wxUSE_NOTEBOOK=yes
6507   DEFAULT_wxUSE_RADIOBOX=yes
6508   DEFAULT_wxUSE_RADIOBTN=yes
6509   DEFAULT_wxUSE_SASH=yes
6510   DEFAULT_wxUSE_SCROLLBAR=yes
6511   DEFAULT_wxUSE_SLIDER=yes
6512   DEFAULT_wxUSE_SPINBTN=yes
6513   DEFAULT_wxUSE_SPINCTRL=yes
6514   DEFAULT_wxUSE_SPLITTER=yes
6515   DEFAULT_wxUSE_STATBMP=yes
6516   DEFAULT_wxUSE_STATBOX=yes
6517   DEFAULT_wxUSE_STATLINE=yes
6518   DEFAULT_wxUSE_STATUSBAR=yes
6519   DEFAULT_wxUSE_TAB_DIALOG=yes
6520   DEFAULT_wxUSE_TOGGLEBTN=yes
6521   DEFAULT_wxUSE_TOOLBAR=yes
6522   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6523   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6524   DEFAULT_wxUSE_TOOLTIPS=yes
6525   DEFAULT_wxUSE_TREECTRL=yes
6526   DEFAULT_wxUSE_POPUPWIN=yes
6527   DEFAULT_wxUSE_TIPWINDOW=yes
6528 elif test "$wxUSE_CONTROLS" = "no"; then
6529   DEFAULT_wxUSE_ACCEL=no
6530   DEFAULT_wxUSE_BMPBUTTON=no
6531   DEFAULT_wxUSE_BUTTON=no
6532   DEFAULT_wxUSE_CALCTRL=no
6533   DEFAULT_wxUSE_CARET=no
6534   DEFAULT_wxUSE_COMBOBOX=no
6535   DEFAULT_wxUSE_CHECKBOX=no
6536   DEFAULT_wxUSE_CHECKLISTBOX=no
6537   DEFAULT_wxUSE_CHOICE=no
6538   DEFAULT_wxUSE_GAUGE=no
6539   DEFAULT_wxUSE_GRID=no
6540   DEFAULT_wxUSE_IMAGLIST=no
6541   DEFAULT_wxUSE_LISTBOX=no
6542   DEFAULT_wxUSE_LISTCTRL=no
6543   DEFAULT_wxUSE_NOTEBOOK=no
6544   DEFAULT_wxUSE_RADIOBOX=no
6545   DEFAULT_wxUSE_RADIOBTN=no
6546   DEFAULT_wxUSE_SASH=no
6547   DEFAULT_wxUSE_SCROLLBAR=no
6548   DEFAULT_wxUSE_SLIDER=no
6549   DEFAULT_wxUSE_SPINBTN=no
6550   DEFAULT_wxUSE_SPINCTRL=no
6551   DEFAULT_wxUSE_SPLITTER=no
6552   DEFAULT_wxUSE_STATBMP=no
6553   DEFAULT_wxUSE_STATBOX=no
6554   DEFAULT_wxUSE_STATLINE=no
6555   DEFAULT_wxUSE_STATUSBAR=no
6556   DEFAULT_wxUSE_TAB_DIALOG=no
6557   DEFAULT_wxUSE_TOGGLEBTN=no
6558   DEFAULT_wxUSE_TOOLBAR=no
6559   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6560   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6561   DEFAULT_wxUSE_TOOLTIPS=no
6562   DEFAULT_wxUSE_TREECTRL=no
6563   DEFAULT_wxUSE_POPUPWIN=no
6564   DEFAULT_wxUSE_TIPWINDOW=no
6565 fi
6566
6567 ## FIXME: This is a blatant hack
6568 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6569   wxUSE_PRINTING_ARCHITECTURE=no
6570   wxUSE_DRAG_AND_DROP=no
6571   # Generic notebook requires tab dialog
6572   DEFAULT_wxUSE_TABDIALOG=yes
6573   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6574   DEFAULT_wxUSE_SCROLLBAR=no
6575   DEFAULT_wxUSE_TOOLTIPS=no
6576   DEFAULT_wxUSE_DRAGIMAGE=no
6577 fi
6578
6579
6580           enablestring=
6581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6582 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6583           no_cache=0
6584           # Check whether --enable-accel or --disable-accel was given.
6585 if test "${enable_accel+set}" = set; then
6586   enableval="$enable_accel"
6587
6588                           if test "$enableval" = yes; then
6589                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6590                           else
6591                             ac_cv_use_accel='wxUSE_ACCEL=no'
6592                           fi
6593
6594 else
6595
6596                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6597                           if test "x$LINE" != x ; then
6598                             eval "DEFAULT_$LINE"
6599                           else
6600                             no_cache=1
6601                           fi
6602
6603                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6604
6605 fi;
6606
6607           eval "$ac_cv_use_accel"
6608           if test "$no_cache" != 1; then
6609             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6610           fi
6611
6612           if test "$wxUSE_ACCEL" = yes; then
6613             echo "$as_me:$LINENO: result: yes" >&5
6614 echo "${ECHO_T}yes" >&6
6615           else
6616             echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6
6618           fi
6619
6620
6621           enablestring=
6622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6623 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6624           no_cache=0
6625           # Check whether --enable-button or --disable-button was given.
6626 if test "${enable_button+set}" = set; then
6627   enableval="$enable_button"
6628
6629                           if test "$enableval" = yes; then
6630                             ac_cv_use_button='wxUSE_BUTTON=yes'
6631                           else
6632                             ac_cv_use_button='wxUSE_BUTTON=no'
6633                           fi
6634
6635 else
6636
6637                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6638                           if test "x$LINE" != x ; then
6639                             eval "DEFAULT_$LINE"
6640                           else
6641                             no_cache=1
6642                           fi
6643
6644                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6645
6646 fi;
6647
6648           eval "$ac_cv_use_button"
6649           if test "$no_cache" != 1; then
6650             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6651           fi
6652
6653           if test "$wxUSE_BUTTON" = yes; then
6654             echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6
6656           else
6657             echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6
6659           fi
6660
6661
6662           enablestring=
6663           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6664 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6665           no_cache=0
6666           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6667 if test "${enable_bmpbutton+set}" = set; then
6668   enableval="$enable_bmpbutton"
6669
6670                           if test "$enableval" = yes; then
6671                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6672                           else
6673                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6674                           fi
6675
6676 else
6677
6678                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6679                           if test "x$LINE" != x ; then
6680                             eval "DEFAULT_$LINE"
6681                           else
6682                             no_cache=1
6683                           fi
6684
6685                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6686
6687 fi;
6688
6689           eval "$ac_cv_use_bmpbutton"
6690           if test "$no_cache" != 1; then
6691             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6692           fi
6693
6694           if test "$wxUSE_BMPBUTTON" = yes; then
6695             echo "$as_me:$LINENO: result: yes" >&5
6696 echo "${ECHO_T}yes" >&6
6697           else
6698             echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6
6700           fi
6701
6702
6703           enablestring=
6704           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6705 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6706           no_cache=0
6707           # Check whether --enable-calendar or --disable-calendar was given.
6708 if test "${enable_calendar+set}" = set; then
6709   enableval="$enable_calendar"
6710
6711                           if test "$enableval" = yes; then
6712                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6713                           else
6714                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6715                           fi
6716
6717 else
6718
6719                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6720                           if test "x$LINE" != x ; then
6721                             eval "DEFAULT_$LINE"
6722                           else
6723                             no_cache=1
6724                           fi
6725
6726                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6727
6728 fi;
6729
6730           eval "$ac_cv_use_calendar"
6731           if test "$no_cache" != 1; then
6732             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6733           fi
6734
6735           if test "$wxUSE_CALCTRL" = yes; then
6736             echo "$as_me:$LINENO: result: yes" >&5
6737 echo "${ECHO_T}yes" >&6
6738           else
6739             echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6
6741           fi
6742
6743
6744           enablestring=
6745           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6746 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6747           no_cache=0
6748           # Check whether --enable-caret or --disable-caret was given.
6749 if test "${enable_caret+set}" = set; then
6750   enableval="$enable_caret"
6751
6752                           if test "$enableval" = yes; then
6753                             ac_cv_use_caret='wxUSE_CARET=yes'
6754                           else
6755                             ac_cv_use_caret='wxUSE_CARET=no'
6756                           fi
6757
6758 else
6759
6760                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6761                           if test "x$LINE" != x ; then
6762                             eval "DEFAULT_$LINE"
6763                           else
6764                             no_cache=1
6765                           fi
6766
6767                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6768
6769 fi;
6770
6771           eval "$ac_cv_use_caret"
6772           if test "$no_cache" != 1; then
6773             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6774           fi
6775
6776           if test "$wxUSE_CARET" = yes; then
6777             echo "$as_me:$LINENO: result: yes" >&5
6778 echo "${ECHO_T}yes" >&6
6779           else
6780             echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6
6782           fi
6783
6784
6785           enablestring=
6786           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6787 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6788           no_cache=0
6789           # Check whether --enable-checkbox or --disable-checkbox was given.
6790 if test "${enable_checkbox+set}" = set; then
6791   enableval="$enable_checkbox"
6792
6793                           if test "$enableval" = yes; then
6794                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6795                           else
6796                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6797                           fi
6798
6799 else
6800
6801                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6802                           if test "x$LINE" != x ; then
6803                             eval "DEFAULT_$LINE"
6804                           else
6805                             no_cache=1
6806                           fi
6807
6808                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6809
6810 fi;
6811
6812           eval "$ac_cv_use_checkbox"
6813           if test "$no_cache" != 1; then
6814             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6815           fi
6816
6817           if test "$wxUSE_CHECKBOX" = yes; then
6818             echo "$as_me:$LINENO: result: yes" >&5
6819 echo "${ECHO_T}yes" >&6
6820           else
6821             echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6
6823           fi
6824
6825
6826           enablestring=
6827           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6828 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6829           no_cache=0
6830           # Check whether --enable-checklst or --disable-checklst was given.
6831 if test "${enable_checklst+set}" = set; then
6832   enableval="$enable_checklst"
6833
6834                           if test "$enableval" = yes; then
6835                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6836                           else
6837                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6838                           fi
6839
6840 else
6841
6842                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6843                           if test "x$LINE" != x ; then
6844                             eval "DEFAULT_$LINE"
6845                           else
6846                             no_cache=1
6847                           fi
6848
6849                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6850
6851 fi;
6852
6853           eval "$ac_cv_use_checklst"
6854           if test "$no_cache" != 1; then
6855             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6856           fi
6857
6858           if test "$wxUSE_CHECKLST" = yes; then
6859             echo "$as_me:$LINENO: result: yes" >&5
6860 echo "${ECHO_T}yes" >&6
6861           else
6862             echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6
6864           fi
6865
6866
6867           enablestring=
6868           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6869 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
6870           no_cache=0
6871           # Check whether --enable-choice or --disable-choice was given.
6872 if test "${enable_choice+set}" = set; then
6873   enableval="$enable_choice"
6874
6875                           if test "$enableval" = yes; then
6876                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6877                           else
6878                             ac_cv_use_choice='wxUSE_CHOICE=no'
6879                           fi
6880
6881 else
6882
6883                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6884                           if test "x$LINE" != x ; then
6885                             eval "DEFAULT_$LINE"
6886                           else
6887                             no_cache=1
6888                           fi
6889
6890                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6891
6892 fi;
6893
6894           eval "$ac_cv_use_choice"
6895           if test "$no_cache" != 1; then
6896             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6897           fi
6898
6899           if test "$wxUSE_CHOICE" = yes; then
6900             echo "$as_me:$LINENO: result: yes" >&5
6901 echo "${ECHO_T}yes" >&6
6902           else
6903             echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6
6905           fi
6906
6907
6908           enablestring=
6909           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6910 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
6911           no_cache=0
6912           # Check whether --enable-combobox or --disable-combobox was given.
6913 if test "${enable_combobox+set}" = set; then
6914   enableval="$enable_combobox"
6915
6916                           if test "$enableval" = yes; then
6917                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6918                           else
6919                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6920                           fi
6921
6922 else
6923
6924                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6925                           if test "x$LINE" != x ; then
6926                             eval "DEFAULT_$LINE"
6927                           else
6928                             no_cache=1
6929                           fi
6930
6931                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6932
6933 fi;
6934
6935           eval "$ac_cv_use_combobox"
6936           if test "$no_cache" != 1; then
6937             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6938           fi
6939
6940           if test "$wxUSE_COMBOBOX" = yes; then
6941             echo "$as_me:$LINENO: result: yes" >&5
6942 echo "${ECHO_T}yes" >&6
6943           else
6944             echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946           fi
6947
6948
6949           enablestring=
6950           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6951 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
6952           no_cache=0
6953           # Check whether --enable-display or --disable-display was given.
6954 if test "${enable_display+set}" = set; then
6955   enableval="$enable_display"
6956
6957                           if test "$enableval" = yes; then
6958                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6959                           else
6960                             ac_cv_use_display='wxUSE_DISPLAY=no'
6961                           fi
6962
6963 else
6964
6965                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6966                           if test "x$LINE" != x ; then
6967                             eval "DEFAULT_$LINE"
6968                           else
6969                             no_cache=1
6970                           fi
6971
6972                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6973
6974 fi;
6975
6976           eval "$ac_cv_use_display"
6977           if test "$no_cache" != 1; then
6978             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6979           fi
6980
6981           if test "$wxUSE_DISPLAY" = yes; then
6982             echo "$as_me:$LINENO: result: yes" >&5
6983 echo "${ECHO_T}yes" >&6
6984           else
6985             echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6987           fi
6988
6989
6990           enablestring=
6991           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6992 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
6993           no_cache=0
6994           # Check whether --enable-gauge or --disable-gauge was given.
6995 if test "${enable_gauge+set}" = set; then
6996   enableval="$enable_gauge"
6997
6998                           if test "$enableval" = yes; then
6999                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7000                           else
7001                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7002                           fi
7003
7004 else
7005
7006                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7007                           if test "x$LINE" != x ; then
7008                             eval "DEFAULT_$LINE"
7009                           else
7010                             no_cache=1
7011                           fi
7012
7013                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7014
7015 fi;
7016
7017           eval "$ac_cv_use_gauge"
7018           if test "$no_cache" != 1; then
7019             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7020           fi
7021
7022           if test "$wxUSE_GAUGE" = yes; then
7023             echo "$as_me:$LINENO: result: yes" >&5
7024 echo "${ECHO_T}yes" >&6
7025           else
7026             echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6
7028           fi
7029
7030
7031           enablestring=
7032           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7033 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7034           no_cache=0
7035           # Check whether --enable-grid or --disable-grid was given.
7036 if test "${enable_grid+set}" = set; then
7037   enableval="$enable_grid"
7038
7039                           if test "$enableval" = yes; then
7040                             ac_cv_use_grid='wxUSE_GRID=yes'
7041                           else
7042                             ac_cv_use_grid='wxUSE_GRID=no'
7043                           fi
7044
7045 else
7046
7047                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7048                           if test "x$LINE" != x ; then
7049                             eval "DEFAULT_$LINE"
7050                           else
7051                             no_cache=1
7052                           fi
7053
7054                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7055
7056 fi;
7057
7058           eval "$ac_cv_use_grid"
7059           if test "$no_cache" != 1; then
7060             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7061           fi
7062
7063           if test "$wxUSE_GRID" = yes; then
7064             echo "$as_me:$LINENO: result: yes" >&5
7065 echo "${ECHO_T}yes" >&6
7066           else
7067             echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6
7069           fi
7070
7071
7072           enablestring=
7073           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7074 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7075           no_cache=0
7076           # Check whether --enable-imaglist or --disable-imaglist was given.
7077 if test "${enable_imaglist+set}" = set; then
7078   enableval="$enable_imaglist"
7079
7080                           if test "$enableval" = yes; then
7081                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7082                           else
7083                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7084                           fi
7085
7086 else
7087
7088                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7089                           if test "x$LINE" != x ; then
7090                             eval "DEFAULT_$LINE"
7091                           else
7092                             no_cache=1
7093                           fi
7094
7095                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7096
7097 fi;
7098
7099           eval "$ac_cv_use_imaglist"
7100           if test "$no_cache" != 1; then
7101             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7102           fi
7103
7104           if test "$wxUSE_IMAGLIST" = yes; then
7105             echo "$as_me:$LINENO: result: yes" >&5
7106 echo "${ECHO_T}yes" >&6
7107           else
7108             echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6
7110           fi
7111
7112
7113           enablestring=
7114           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7115 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7116           no_cache=0
7117           # Check whether --enable-listbox or --disable-listbox was given.
7118 if test "${enable_listbox+set}" = set; then
7119   enableval="$enable_listbox"
7120
7121                           if test "$enableval" = yes; then
7122                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7123                           else
7124                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7125                           fi
7126
7127 else
7128
7129                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7130                           if test "x$LINE" != x ; then
7131                             eval "DEFAULT_$LINE"
7132                           else
7133                             no_cache=1
7134                           fi
7135
7136                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7137
7138 fi;
7139
7140           eval "$ac_cv_use_listbox"
7141           if test "$no_cache" != 1; then
7142             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7143           fi
7144
7145           if test "$wxUSE_LISTBOX" = yes; then
7146             echo "$as_me:$LINENO: result: yes" >&5
7147 echo "${ECHO_T}yes" >&6
7148           else
7149             echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7151           fi
7152
7153
7154           enablestring=
7155           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7156 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7157           no_cache=0
7158           # Check whether --enable-listctrl or --disable-listctrl was given.
7159 if test "${enable_listctrl+set}" = set; then
7160   enableval="$enable_listctrl"
7161
7162                           if test "$enableval" = yes; then
7163                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7164                           else
7165                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7166                           fi
7167
7168 else
7169
7170                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7171                           if test "x$LINE" != x ; then
7172                             eval "DEFAULT_$LINE"
7173                           else
7174                             no_cache=1
7175                           fi
7176
7177                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7178
7179 fi;
7180
7181           eval "$ac_cv_use_listctrl"
7182           if test "$no_cache" != 1; then
7183             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7184           fi
7185
7186           if test "$wxUSE_LISTCTRL" = yes; then
7187             echo "$as_me:$LINENO: result: yes" >&5
7188 echo "${ECHO_T}yes" >&6
7189           else
7190             echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6
7192           fi
7193
7194
7195           enablestring=
7196           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7197 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7198           no_cache=0
7199           # Check whether --enable-notebook or --disable-notebook was given.
7200 if test "${enable_notebook+set}" = set; then
7201   enableval="$enable_notebook"
7202
7203                           if test "$enableval" = yes; then
7204                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7205                           else
7206                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7207                           fi
7208
7209 else
7210
7211                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7212                           if test "x$LINE" != x ; then
7213                             eval "DEFAULT_$LINE"
7214                           else
7215                             no_cache=1
7216                           fi
7217
7218                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7219
7220 fi;
7221
7222           eval "$ac_cv_use_notebook"
7223           if test "$no_cache" != 1; then
7224             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7225           fi
7226
7227           if test "$wxUSE_NOTEBOOK" = yes; then
7228             echo "$as_me:$LINENO: result: yes" >&5
7229 echo "${ECHO_T}yes" >&6
7230           else
7231             echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7233           fi
7234
7235
7236           enablestring=
7237           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7238 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7239           no_cache=0
7240           # Check whether --enable-radiobox or --disable-radiobox was given.
7241 if test "${enable_radiobox+set}" = set; then
7242   enableval="$enable_radiobox"
7243
7244                           if test "$enableval" = yes; then
7245                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7246                           else
7247                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7248                           fi
7249
7250 else
7251
7252                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7253                           if test "x$LINE" != x ; then
7254                             eval "DEFAULT_$LINE"
7255                           else
7256                             no_cache=1
7257                           fi
7258
7259                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7260
7261 fi;
7262
7263           eval "$ac_cv_use_radiobox"
7264           if test "$no_cache" != 1; then
7265             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7266           fi
7267
7268           if test "$wxUSE_RADIOBOX" = yes; then
7269             echo "$as_me:$LINENO: result: yes" >&5
7270 echo "${ECHO_T}yes" >&6
7271           else
7272             echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274           fi
7275
7276
7277           enablestring=
7278           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7279 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7280           no_cache=0
7281           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7282 if test "${enable_radiobtn+set}" = set; then
7283   enableval="$enable_radiobtn"
7284
7285                           if test "$enableval" = yes; then
7286                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7287                           else
7288                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7289                           fi
7290
7291 else
7292
7293                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7294                           if test "x$LINE" != x ; then
7295                             eval "DEFAULT_$LINE"
7296                           else
7297                             no_cache=1
7298                           fi
7299
7300                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7301
7302 fi;
7303
7304           eval "$ac_cv_use_radiobtn"
7305           if test "$no_cache" != 1; then
7306             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7307           fi
7308
7309           if test "$wxUSE_RADIOBTN" = yes; then
7310             echo "$as_me:$LINENO: result: yes" >&5
7311 echo "${ECHO_T}yes" >&6
7312           else
7313             echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6
7315           fi
7316
7317
7318           enablestring=
7319           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7320 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7321           no_cache=0
7322           # Check whether --enable-sash or --disable-sash was given.
7323 if test "${enable_sash+set}" = set; then
7324   enableval="$enable_sash"
7325
7326                           if test "$enableval" = yes; then
7327                             ac_cv_use_sash='wxUSE_SASH=yes'
7328                           else
7329                             ac_cv_use_sash='wxUSE_SASH=no'
7330                           fi
7331
7332 else
7333
7334                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7335                           if test "x$LINE" != x ; then
7336                             eval "DEFAULT_$LINE"
7337                           else
7338                             no_cache=1
7339                           fi
7340
7341                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7342
7343 fi;
7344
7345           eval "$ac_cv_use_sash"
7346           if test "$no_cache" != 1; then
7347             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7348           fi
7349
7350           if test "$wxUSE_SASH" = yes; then
7351             echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7353           else
7354             echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6
7356           fi
7357
7358
7359           enablestring=
7360           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7361 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7362           no_cache=0
7363           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7364 if test "${enable_scrollbar+set}" = set; then
7365   enableval="$enable_scrollbar"
7366
7367                           if test "$enableval" = yes; then
7368                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7369                           else
7370                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7371                           fi
7372
7373 else
7374
7375                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7376                           if test "x$LINE" != x ; then
7377                             eval "DEFAULT_$LINE"
7378                           else
7379                             no_cache=1
7380                           fi
7381
7382                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7383
7384 fi;
7385
7386           eval "$ac_cv_use_scrollbar"
7387           if test "$no_cache" != 1; then
7388             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7389           fi
7390
7391           if test "$wxUSE_SCROLLBAR" = yes; then
7392             echo "$as_me:$LINENO: result: yes" >&5
7393 echo "${ECHO_T}yes" >&6
7394           else
7395             echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7397           fi
7398
7399
7400           enablestring=
7401           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7402 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7403           no_cache=0
7404           # Check whether --enable-slider or --disable-slider was given.
7405 if test "${enable_slider+set}" = set; then
7406   enableval="$enable_slider"
7407
7408                           if test "$enableval" = yes; then
7409                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7410                           else
7411                             ac_cv_use_slider='wxUSE_SLIDER=no'
7412                           fi
7413
7414 else
7415
7416                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7417                           if test "x$LINE" != x ; then
7418                             eval "DEFAULT_$LINE"
7419                           else
7420                             no_cache=1
7421                           fi
7422
7423                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7424
7425 fi;
7426
7427           eval "$ac_cv_use_slider"
7428           if test "$no_cache" != 1; then
7429             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7430           fi
7431
7432           if test "$wxUSE_SLIDER" = yes; then
7433             echo "$as_me:$LINENO: result: yes" >&5
7434 echo "${ECHO_T}yes" >&6
7435           else
7436             echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6
7438           fi
7439
7440
7441           enablestring=
7442           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7443 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7444           no_cache=0
7445           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7446 if test "${enable_spinbtn+set}" = set; then
7447   enableval="$enable_spinbtn"
7448
7449                           if test "$enableval" = yes; then
7450                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7451                           else
7452                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7453                           fi
7454
7455 else
7456
7457                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7458                           if test "x$LINE" != x ; then
7459                             eval "DEFAULT_$LINE"
7460                           else
7461                             no_cache=1
7462                           fi
7463
7464                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7465
7466 fi;
7467
7468           eval "$ac_cv_use_spinbtn"
7469           if test "$no_cache" != 1; then
7470             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7471           fi
7472
7473           if test "$wxUSE_SPINBTN" = yes; then
7474             echo "$as_me:$LINENO: result: yes" >&5
7475 echo "${ECHO_T}yes" >&6
7476           else
7477             echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7479           fi
7480
7481
7482           enablestring=
7483           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7484 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7485           no_cache=0
7486           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7487 if test "${enable_spinctrl+set}" = set; then
7488   enableval="$enable_spinctrl"
7489
7490                           if test "$enableval" = yes; then
7491                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7492                           else
7493                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7494                           fi
7495
7496 else
7497
7498                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7499                           if test "x$LINE" != x ; then
7500                             eval "DEFAULT_$LINE"
7501                           else
7502                             no_cache=1
7503                           fi
7504
7505                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7506
7507 fi;
7508
7509           eval "$ac_cv_use_spinctrl"
7510           if test "$no_cache" != 1; then
7511             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7512           fi
7513
7514           if test "$wxUSE_SPINCTRL" = yes; then
7515             echo "$as_me:$LINENO: result: yes" >&5
7516 echo "${ECHO_T}yes" >&6
7517           else
7518             echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7520           fi
7521
7522
7523           enablestring=
7524           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7525 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7526           no_cache=0
7527           # Check whether --enable-splitter or --disable-splitter was given.
7528 if test "${enable_splitter+set}" = set; then
7529   enableval="$enable_splitter"
7530
7531                           if test "$enableval" = yes; then
7532                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7533                           else
7534                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7535                           fi
7536
7537 else
7538
7539                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7540                           if test "x$LINE" != x ; then
7541                             eval "DEFAULT_$LINE"
7542                           else
7543                             no_cache=1
7544                           fi
7545
7546                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7547
7548 fi;
7549
7550           eval "$ac_cv_use_splitter"
7551           if test "$no_cache" != 1; then
7552             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7553           fi
7554
7555           if test "$wxUSE_SPLITTER" = yes; then
7556             echo "$as_me:$LINENO: result: yes" >&5
7557 echo "${ECHO_T}yes" >&6
7558           else
7559             echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561           fi
7562
7563
7564           enablestring=
7565           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7566 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7567           no_cache=0
7568           # Check whether --enable-statbmp or --disable-statbmp was given.
7569 if test "${enable_statbmp+set}" = set; then
7570   enableval="$enable_statbmp"
7571
7572                           if test "$enableval" = yes; then
7573                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7574                           else
7575                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7576                           fi
7577
7578 else
7579
7580                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7581                           if test "x$LINE" != x ; then
7582                             eval "DEFAULT_$LINE"
7583                           else
7584                             no_cache=1
7585                           fi
7586
7587                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7588
7589 fi;
7590
7591           eval "$ac_cv_use_statbmp"
7592           if test "$no_cache" != 1; then
7593             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7594           fi
7595
7596           if test "$wxUSE_STATBMP" = yes; then
7597             echo "$as_me:$LINENO: result: yes" >&5
7598 echo "${ECHO_T}yes" >&6
7599           else
7600             echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7602           fi
7603
7604
7605           enablestring=
7606           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7607 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7608           no_cache=0
7609           # Check whether --enable-statbox or --disable-statbox was given.
7610 if test "${enable_statbox+set}" = set; then
7611   enableval="$enable_statbox"
7612
7613                           if test "$enableval" = yes; then
7614                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7615                           else
7616                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7617                           fi
7618
7619 else
7620
7621                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7622                           if test "x$LINE" != x ; then
7623                             eval "DEFAULT_$LINE"
7624                           else
7625                             no_cache=1
7626                           fi
7627
7628                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7629
7630 fi;
7631
7632           eval "$ac_cv_use_statbox"
7633           if test "$no_cache" != 1; then
7634             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7635           fi
7636
7637           if test "$wxUSE_STATBOX" = yes; then
7638             echo "$as_me:$LINENO: result: yes" >&5
7639 echo "${ECHO_T}yes" >&6
7640           else
7641             echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6
7643           fi
7644
7645
7646           enablestring=
7647           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7648 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7649           no_cache=0
7650           # Check whether --enable-statline or --disable-statline was given.
7651 if test "${enable_statline+set}" = set; then
7652   enableval="$enable_statline"
7653
7654                           if test "$enableval" = yes; then
7655                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7656                           else
7657                             ac_cv_use_statline='wxUSE_STATLINE=no'
7658                           fi
7659
7660 else
7661
7662                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7663                           if test "x$LINE" != x ; then
7664                             eval "DEFAULT_$LINE"
7665                           else
7666                             no_cache=1
7667                           fi
7668
7669                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7670
7671 fi;
7672
7673           eval "$ac_cv_use_statline"
7674           if test "$no_cache" != 1; then
7675             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7676           fi
7677
7678           if test "$wxUSE_STATLINE" = yes; then
7679             echo "$as_me:$LINENO: result: yes" >&5
7680 echo "${ECHO_T}yes" >&6
7681           else
7682             echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7684           fi
7685
7686
7687           enablestring=
7688           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7689 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7690           no_cache=0
7691           # Check whether --enable-stattext or --disable-stattext was given.
7692 if test "${enable_stattext+set}" = set; then
7693   enableval="$enable_stattext"
7694
7695                           if test "$enableval" = yes; then
7696                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7697                           else
7698                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7699                           fi
7700
7701 else
7702
7703                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7704                           if test "x$LINE" != x ; then
7705                             eval "DEFAULT_$LINE"
7706                           else
7707                             no_cache=1
7708                           fi
7709
7710                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7711
7712 fi;
7713
7714           eval "$ac_cv_use_stattext"
7715           if test "$no_cache" != 1; then
7716             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7717           fi
7718
7719           if test "$wxUSE_STATTEXT" = yes; then
7720             echo "$as_me:$LINENO: result: yes" >&5
7721 echo "${ECHO_T}yes" >&6
7722           else
7723             echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6
7725           fi
7726
7727
7728           enablestring=
7729           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7730 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7731           no_cache=0
7732           # Check whether --enable-statusbar or --disable-statusbar was given.
7733 if test "${enable_statusbar+set}" = set; then
7734   enableval="$enable_statusbar"
7735
7736                           if test "$enableval" = yes; then
7737                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7738                           else
7739                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7740                           fi
7741
7742 else
7743
7744                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7745                           if test "x$LINE" != x ; then
7746                             eval "DEFAULT_$LINE"
7747                           else
7748                             no_cache=1
7749                           fi
7750
7751                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7752
7753 fi;
7754
7755           eval "$ac_cv_use_statusbar"
7756           if test "$no_cache" != 1; then
7757             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7758           fi
7759
7760           if test "$wxUSE_STATUSBAR" = yes; then
7761             echo "$as_me:$LINENO: result: yes" >&5
7762 echo "${ECHO_T}yes" >&6
7763           else
7764             echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7766           fi
7767
7768
7769           enablestring=
7770           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7771 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7772           no_cache=0
7773           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7774 if test "${enable_tabdialog+set}" = set; then
7775   enableval="$enable_tabdialog"
7776
7777                           if test "$enableval" = yes; then
7778                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7779                           else
7780                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7781                           fi
7782
7783 else
7784
7785                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7786                           if test "x$LINE" != x ; then
7787                             eval "DEFAULT_$LINE"
7788                           else
7789                             no_cache=1
7790                           fi
7791
7792                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7793
7794 fi;
7795
7796           eval "$ac_cv_use_tabdialog"
7797           if test "$no_cache" != 1; then
7798             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7799           fi
7800
7801           if test "$wxUSE_TABDIALOG" = yes; then
7802             echo "$as_me:$LINENO: result: yes" >&5
7803 echo "${ECHO_T}yes" >&6
7804           else
7805             echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7807           fi
7808
7809
7810           enablestring=
7811           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7812 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
7813           no_cache=0
7814           # Check whether --enable-textctrl or --disable-textctrl was given.
7815 if test "${enable_textctrl+set}" = set; then
7816   enableval="$enable_textctrl"
7817
7818                           if test "$enableval" = yes; then
7819                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7820                           else
7821                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7822                           fi
7823
7824 else
7825
7826                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7827                           if test "x$LINE" != x ; then
7828                             eval "DEFAULT_$LINE"
7829                           else
7830                             no_cache=1
7831                           fi
7832
7833                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7834
7835 fi;
7836
7837           eval "$ac_cv_use_textctrl"
7838           if test "$no_cache" != 1; then
7839             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7840           fi
7841
7842           if test "$wxUSE_TEXTCTRL" = yes; then
7843             echo "$as_me:$LINENO: result: yes" >&5
7844 echo "${ECHO_T}yes" >&6
7845           else
7846             echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848           fi
7849
7850
7851           enablestring=
7852           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7853 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
7854           no_cache=0
7855           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7856 if test "${enable_togglebtn+set}" = set; then
7857   enableval="$enable_togglebtn"
7858
7859                           if test "$enableval" = yes; then
7860                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7861                           else
7862                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7863                           fi
7864
7865 else
7866
7867                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7868                           if test "x$LINE" != x ; then
7869                             eval "DEFAULT_$LINE"
7870                           else
7871                             no_cache=1
7872                           fi
7873
7874                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7875
7876 fi;
7877
7878           eval "$ac_cv_use_togglebtn"
7879           if test "$no_cache" != 1; then
7880             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7881           fi
7882
7883           if test "$wxUSE_TOGGLEBTN" = yes; then
7884             echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6
7886           else
7887             echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889           fi
7890
7891
7892           enablestring=
7893           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7894 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
7895           no_cache=0
7896           # Check whether --enable-toolbar or --disable-toolbar was given.
7897 if test "${enable_toolbar+set}" = set; then
7898   enableval="$enable_toolbar"
7899
7900                           if test "$enableval" = yes; then
7901                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7902                           else
7903                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7904                           fi
7905
7906 else
7907
7908                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7909                           if test "x$LINE" != x ; then
7910                             eval "DEFAULT_$LINE"
7911                           else
7912                             no_cache=1
7913                           fi
7914
7915                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7916
7917 fi;
7918
7919           eval "$ac_cv_use_toolbar"
7920           if test "$no_cache" != 1; then
7921             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7922           fi
7923
7924           if test "$wxUSE_TOOLBAR" = yes; then
7925             echo "$as_me:$LINENO: result: yes" >&5
7926 echo "${ECHO_T}yes" >&6
7927           else
7928             echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6
7930           fi
7931
7932
7933           enablestring=
7934           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7935 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
7936           no_cache=0
7937           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7938 if test "${enable_tbarnative+set}" = set; then
7939   enableval="$enable_tbarnative"
7940
7941                           if test "$enableval" = yes; then
7942                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7943                           else
7944                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7945                           fi
7946
7947 else
7948
7949                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7950                           if test "x$LINE" != x ; then
7951                             eval "DEFAULT_$LINE"
7952                           else
7953                             no_cache=1
7954                           fi
7955
7956                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7957
7958 fi;
7959
7960           eval "$ac_cv_use_tbarnative"
7961           if test "$no_cache" != 1; then
7962             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7963           fi
7964
7965           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7966             echo "$as_me:$LINENO: result: yes" >&5
7967 echo "${ECHO_T}yes" >&6
7968           else
7969             echo "$as_me:$LINENO: result: no" >&5
7970 echo "${ECHO_T}no" >&6
7971           fi
7972
7973
7974           enablestring=
7975           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7976 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
7977           no_cache=0
7978           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7979 if test "${enable_tbarsmpl+set}" = set; then
7980   enableval="$enable_tbarsmpl"
7981
7982                           if test "$enableval" = yes; then
7983                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7984                           else
7985                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7986                           fi
7987
7988 else
7989
7990                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7991                           if test "x$LINE" != x ; then
7992                             eval "DEFAULT_$LINE"
7993                           else
7994                             no_cache=1
7995                           fi
7996
7997                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7998
7999 fi;
8000
8001           eval "$ac_cv_use_tbarsmpl"
8002           if test "$no_cache" != 1; then
8003             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8004           fi
8005
8006           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8007             echo "$as_me:$LINENO: result: yes" >&5
8008 echo "${ECHO_T}yes" >&6
8009           else
8010             echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6
8012           fi
8013
8014
8015           enablestring=
8016           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8017 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8018           no_cache=0
8019           # Check whether --enable-treectrl or --disable-treectrl was given.
8020 if test "${enable_treectrl+set}" = set; then
8021   enableval="$enable_treectrl"
8022
8023                           if test "$enableval" = yes; then
8024                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8025                           else
8026                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8027                           fi
8028
8029 else
8030
8031                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8032                           if test "x$LINE" != x ; then
8033                             eval "DEFAULT_$LINE"
8034                           else
8035                             no_cache=1
8036                           fi
8037
8038                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8039
8040 fi;
8041
8042           eval "$ac_cv_use_treectrl"
8043           if test "$no_cache" != 1; then
8044             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8045           fi
8046
8047           if test "$wxUSE_TREECTRL" = yes; then
8048             echo "$as_me:$LINENO: result: yes" >&5
8049 echo "${ECHO_T}yes" >&6
8050           else
8051             echo "$as_me:$LINENO: result: no" >&5
8052 echo "${ECHO_T}no" >&6
8053           fi
8054
8055
8056           enablestring=
8057           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8058 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8059           no_cache=0
8060           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8061 if test "${enable_tipwindow+set}" = set; then
8062   enableval="$enable_tipwindow"
8063
8064                           if test "$enableval" = yes; then
8065                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8066                           else
8067                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8068                           fi
8069
8070 else
8071
8072                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8073                           if test "x$LINE" != x ; then
8074                             eval "DEFAULT_$LINE"
8075                           else
8076                             no_cache=1
8077                           fi
8078
8079                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8080
8081 fi;
8082
8083           eval "$ac_cv_use_tipwindow"
8084           if test "$no_cache" != 1; then
8085             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8086           fi
8087
8088           if test "$wxUSE_TIPWINDOW" = yes; then
8089             echo "$as_me:$LINENO: result: yes" >&5
8090 echo "${ECHO_T}yes" >&6
8091           else
8092             echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6
8094           fi
8095
8096
8097           enablestring=
8098           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8099 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8100           no_cache=0
8101           # Check whether --enable-popupwin or --disable-popupwin was given.
8102 if test "${enable_popupwin+set}" = set; then
8103   enableval="$enable_popupwin"
8104
8105                           if test "$enableval" = yes; then
8106                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8107                           else
8108                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8109                           fi
8110
8111 else
8112
8113                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8114                           if test "x$LINE" != x ; then
8115                             eval "DEFAULT_$LINE"
8116                           else
8117                             no_cache=1
8118                           fi
8119
8120                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8121
8122 fi;
8123
8124           eval "$ac_cv_use_popupwin"
8125           if test "$no_cache" != 1; then
8126             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8127           fi
8128
8129           if test "$wxUSE_POPUPWIN" = yes; then
8130             echo "$as_me:$LINENO: result: yes" >&5
8131 echo "${ECHO_T}yes" >&6
8132           else
8133             echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8135           fi
8136
8137
8138
8139
8140           enablestring=
8141           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8142 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8143           no_cache=0
8144           # Check whether --enable-commondlg or --disable-commondlg was given.
8145 if test "${enable_commondlg+set}" = set; then
8146   enableval="$enable_commondlg"
8147
8148                           if test "$enableval" = yes; then
8149                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8150                           else
8151                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8152                           fi
8153
8154 else
8155
8156                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8157                           if test "x$LINE" != x ; then
8158                             eval "DEFAULT_$LINE"
8159                           else
8160                             no_cache=1
8161                           fi
8162
8163                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8164
8165 fi;
8166
8167           eval "$ac_cv_use_commondlg"
8168           if test "$no_cache" != 1; then
8169             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8170           fi
8171
8172           if test "$wxUSE_COMMONDLGS" = yes; then
8173             echo "$as_me:$LINENO: result: yes" >&5
8174 echo "${ECHO_T}yes" >&6
8175           else
8176             echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6
8178           fi
8179
8180
8181           enablestring=
8182           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8183 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8184           no_cache=0
8185           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8186 if test "${enable_choicedlg+set}" = set; then
8187   enableval="$enable_choicedlg"
8188
8189                           if test "$enableval" = yes; then
8190                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8191                           else
8192                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8193                           fi
8194
8195 else
8196
8197                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8198                           if test "x$LINE" != x ; then
8199                             eval "DEFAULT_$LINE"
8200                           else
8201                             no_cache=1
8202                           fi
8203
8204                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8205
8206 fi;
8207
8208           eval "$ac_cv_use_choicedlg"
8209           if test "$no_cache" != 1; then
8210             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8211           fi
8212
8213           if test "$wxUSE_CHOICEDLG" = yes; then
8214             echo "$as_me:$LINENO: result: yes" >&5
8215 echo "${ECHO_T}yes" >&6
8216           else
8217             echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219           fi
8220
8221
8222           enablestring=
8223           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8224 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8225           no_cache=0
8226           # Check whether --enable-coldlg or --disable-coldlg was given.
8227 if test "${enable_coldlg+set}" = set; then
8228   enableval="$enable_coldlg"
8229
8230                           if test "$enableval" = yes; then
8231                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8232                           else
8233                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8234                           fi
8235
8236 else
8237
8238                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8239                           if test "x$LINE" != x ; then
8240                             eval "DEFAULT_$LINE"
8241                           else
8242                             no_cache=1
8243                           fi
8244
8245                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8246
8247 fi;
8248
8249           eval "$ac_cv_use_coldlg"
8250           if test "$no_cache" != 1; then
8251             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8252           fi
8253
8254           if test "$wxUSE_COLOURDLG" = yes; then
8255             echo "$as_me:$LINENO: result: yes" >&5
8256 echo "${ECHO_T}yes" >&6
8257           else
8258             echo "$as_me:$LINENO: result: no" >&5
8259 echo "${ECHO_T}no" >&6
8260           fi
8261
8262
8263           enablestring=
8264           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8265 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8266           no_cache=0
8267           # Check whether --enable-filedlg or --disable-filedlg was given.
8268 if test "${enable_filedlg+set}" = set; then
8269   enableval="$enable_filedlg"
8270
8271                           if test "$enableval" = yes; then
8272                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8273                           else
8274                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8275                           fi
8276
8277 else
8278
8279                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8280                           if test "x$LINE" != x ; then
8281                             eval "DEFAULT_$LINE"
8282                           else
8283                             no_cache=1
8284                           fi
8285
8286                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8287
8288 fi;
8289
8290           eval "$ac_cv_use_filedlg"
8291           if test "$no_cache" != 1; then
8292             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8293           fi
8294
8295           if test "$wxUSE_FILEDLG" = yes; then
8296             echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8298           else
8299             echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8301           fi
8302
8303
8304           enablestring=
8305           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8306 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8307           no_cache=0
8308           # Check whether --enable-finddlg or --disable-finddlg was given.
8309 if test "${enable_finddlg+set}" = set; then
8310   enableval="$enable_finddlg"
8311
8312                           if test "$enableval" = yes; then
8313                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8314                           else
8315                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8316                           fi
8317
8318 else
8319
8320                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8321                           if test "x$LINE" != x ; then
8322                             eval "DEFAULT_$LINE"
8323                           else
8324                             no_cache=1
8325                           fi
8326
8327                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8328
8329 fi;
8330
8331           eval "$ac_cv_use_finddlg"
8332           if test "$no_cache" != 1; then
8333             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8334           fi
8335
8336           if test "$wxUSE_FINDREPLDLG" = yes; then
8337             echo "$as_me:$LINENO: result: yes" >&5
8338 echo "${ECHO_T}yes" >&6
8339           else
8340             echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8342           fi
8343
8344
8345           enablestring=
8346           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8347 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8348           no_cache=0
8349           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8350 if test "${enable_fontdlg+set}" = set; then
8351   enableval="$enable_fontdlg"
8352
8353                           if test "$enableval" = yes; then
8354                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8355                           else
8356                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8357                           fi
8358
8359 else
8360
8361                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8362                           if test "x$LINE" != x ; then
8363                             eval "DEFAULT_$LINE"
8364                           else
8365                             no_cache=1
8366                           fi
8367
8368                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8369
8370 fi;
8371
8372           eval "$ac_cv_use_fontdlg"
8373           if test "$no_cache" != 1; then
8374             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8375           fi
8376
8377           if test "$wxUSE_FONTDLG" = yes; then
8378             echo "$as_me:$LINENO: result: yes" >&5
8379 echo "${ECHO_T}yes" >&6
8380           else
8381             echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8383           fi
8384
8385
8386           enablestring=
8387           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8388 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8389           no_cache=0
8390           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8391 if test "${enable_dirdlg+set}" = set; then
8392   enableval="$enable_dirdlg"
8393
8394                           if test "$enableval" = yes; then
8395                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8396                           else
8397                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8398                           fi
8399
8400 else
8401
8402                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8403                           if test "x$LINE" != x ; then
8404                             eval "DEFAULT_$LINE"
8405                           else
8406                             no_cache=1
8407                           fi
8408
8409                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8410
8411 fi;
8412
8413           eval "$ac_cv_use_dirdlg"
8414           if test "$no_cache" != 1; then
8415             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8416           fi
8417
8418           if test "$wxUSE_DIRDLG" = yes; then
8419             echo "$as_me:$LINENO: result: yes" >&5
8420 echo "${ECHO_T}yes" >&6
8421           else
8422             echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6
8424           fi
8425
8426
8427           enablestring=
8428           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8429 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8430           no_cache=0
8431           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8432 if test "${enable_msgdlg+set}" = set; then
8433   enableval="$enable_msgdlg"
8434
8435                           if test "$enableval" = yes; then
8436                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8437                           else
8438                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8439                           fi
8440
8441 else
8442
8443                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8444                           if test "x$LINE" != x ; then
8445                             eval "DEFAULT_$LINE"
8446                           else
8447                             no_cache=1
8448                           fi
8449
8450                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8451
8452 fi;
8453
8454           eval "$ac_cv_use_msgdlg"
8455           if test "$no_cache" != 1; then
8456             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8457           fi
8458
8459           if test "$wxUSE_MSGDLG" = yes; then
8460             echo "$as_me:$LINENO: result: yes" >&5
8461 echo "${ECHO_T}yes" >&6
8462           else
8463             echo "$as_me:$LINENO: result: no" >&5
8464 echo "${ECHO_T}no" >&6
8465           fi
8466
8467
8468           enablestring=
8469           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8470 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8471           no_cache=0
8472           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8473 if test "${enable_numberdlg+set}" = set; then
8474   enableval="$enable_numberdlg"
8475
8476                           if test "$enableval" = yes; then
8477                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8478                           else
8479                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8480                           fi
8481
8482 else
8483
8484                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8485                           if test "x$LINE" != x ; then
8486                             eval "DEFAULT_$LINE"
8487                           else
8488                             no_cache=1
8489                           fi
8490
8491                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8492
8493 fi;
8494
8495           eval "$ac_cv_use_numberdlg"
8496           if test "$no_cache" != 1; then
8497             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8498           fi
8499
8500           if test "$wxUSE_NUMBERDLG" = yes; then
8501             echo "$as_me:$LINENO: result: yes" >&5
8502 echo "${ECHO_T}yes" >&6
8503           else
8504             echo "$as_me:$LINENO: result: no" >&5
8505 echo "${ECHO_T}no" >&6
8506           fi
8507
8508
8509           enablestring=
8510           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8511 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8512           no_cache=0
8513           # Check whether --enable-splash or --disable-splash was given.
8514 if test "${enable_splash+set}" = set; then
8515   enableval="$enable_splash"
8516
8517                           if test "$enableval" = yes; then
8518                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8519                           else
8520                             ac_cv_use_splash='wxUSE_SPLASH=no'
8521                           fi
8522
8523 else
8524
8525                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8526                           if test "x$LINE" != x ; then
8527                             eval "DEFAULT_$LINE"
8528                           else
8529                             no_cache=1
8530                           fi
8531
8532                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8533
8534 fi;
8535
8536           eval "$ac_cv_use_splash"
8537           if test "$no_cache" != 1; then
8538             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8539           fi
8540
8541           if test "$wxUSE_SPLASH" = yes; then
8542             echo "$as_me:$LINENO: result: yes" >&5
8543 echo "${ECHO_T}yes" >&6
8544           else
8545             echo "$as_me:$LINENO: result: no" >&5
8546 echo "${ECHO_T}no" >&6
8547           fi
8548
8549
8550           enablestring=
8551           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8552 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8553           no_cache=0
8554           # Check whether --enable-textdlg or --disable-textdlg was given.
8555 if test "${enable_textdlg+set}" = set; then
8556   enableval="$enable_textdlg"
8557
8558                           if test "$enableval" = yes; then
8559                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8560                           else
8561                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8562                           fi
8563
8564 else
8565
8566                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8567                           if test "x$LINE" != x ; then
8568                             eval "DEFAULT_$LINE"
8569                           else
8570                             no_cache=1
8571                           fi
8572
8573                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8574
8575 fi;
8576
8577           eval "$ac_cv_use_textdlg"
8578           if test "$no_cache" != 1; then
8579             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8580           fi
8581
8582           if test "$wxUSE_TEXTDLG" = yes; then
8583             echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6
8585           else
8586             echo "$as_me:$LINENO: result: no" >&5
8587 echo "${ECHO_T}no" >&6
8588           fi
8589
8590
8591           enablestring=
8592           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8593 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8594           no_cache=0
8595           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8596 if test "${enable_tipdlg+set}" = set; then
8597   enableval="$enable_tipdlg"
8598
8599                           if test "$enableval" = yes; then
8600                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8601                           else
8602                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8603                           fi
8604
8605 else
8606
8607                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8608                           if test "x$LINE" != x ; then
8609                             eval "DEFAULT_$LINE"
8610                           else
8611                             no_cache=1
8612                           fi
8613
8614                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8615
8616 fi;
8617
8618           eval "$ac_cv_use_tipdlg"
8619           if test "$no_cache" != 1; then
8620             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8621           fi
8622
8623           if test "$wxUSE_STARTUP_TIPS" = yes; then
8624             echo "$as_me:$LINENO: result: yes" >&5
8625 echo "${ECHO_T}yes" >&6
8626           else
8627             echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8629           fi
8630
8631
8632           enablestring=
8633           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8634 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8635           no_cache=0
8636           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8637 if test "${enable_progressdlg+set}" = set; then
8638   enableval="$enable_progressdlg"
8639
8640                           if test "$enableval" = yes; then
8641                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8642                           else
8643                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8644                           fi
8645
8646 else
8647
8648                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8649                           if test "x$LINE" != x ; then
8650                             eval "DEFAULT_$LINE"
8651                           else
8652                             no_cache=1
8653                           fi
8654
8655                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8656
8657 fi;
8658
8659           eval "$ac_cv_use_progressdlg"
8660           if test "$no_cache" != 1; then
8661             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8662           fi
8663
8664           if test "$wxUSE_PROGRESSDLG" = yes; then
8665             echo "$as_me:$LINENO: result: yes" >&5
8666 echo "${ECHO_T}yes" >&6
8667           else
8668             echo "$as_me:$LINENO: result: no" >&5
8669 echo "${ECHO_T}no" >&6
8670           fi
8671
8672
8673           enablestring=
8674           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8675 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8676           no_cache=0
8677           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8678 if test "${enable_wizarddlg+set}" = set; then
8679   enableval="$enable_wizarddlg"
8680
8681                           if test "$enableval" = yes; then
8682                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8683                           else
8684                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8685                           fi
8686
8687 else
8688
8689                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8690                           if test "x$LINE" != x ; then
8691                             eval "DEFAULT_$LINE"
8692                           else
8693                             no_cache=1
8694                           fi
8695
8696                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8697
8698 fi;
8699
8700           eval "$ac_cv_use_wizarddlg"
8701           if test "$no_cache" != 1; then
8702             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8703           fi
8704
8705           if test "$wxUSE_WIZARDDLG" = yes; then
8706             echo "$as_me:$LINENO: result: yes" >&5
8707 echo "${ECHO_T}yes" >&6
8708           else
8709             echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6
8711           fi
8712
8713
8714
8715
8716           enablestring=
8717           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8718 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8719           no_cache=0
8720           # Check whether --enable-menus or --disable-menus was given.
8721 if test "${enable_menus+set}" = set; then
8722   enableval="$enable_menus"
8723
8724                           if test "$enableval" = yes; then
8725                             ac_cv_use_menus='wxUSE_MENUS=yes'
8726                           else
8727                             ac_cv_use_menus='wxUSE_MENUS=no'
8728                           fi
8729
8730 else
8731
8732                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8733                           if test "x$LINE" != x ; then
8734                             eval "DEFAULT_$LINE"
8735                           else
8736                             no_cache=1
8737                           fi
8738
8739                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8740
8741 fi;
8742
8743           eval "$ac_cv_use_menus"
8744           if test "$no_cache" != 1; then
8745             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8746           fi
8747
8748           if test "$wxUSE_MENUS" = yes; then
8749             echo "$as_me:$LINENO: result: yes" >&5
8750 echo "${ECHO_T}yes" >&6
8751           else
8752             echo "$as_me:$LINENO: result: no" >&5
8753 echo "${ECHO_T}no" >&6
8754           fi
8755
8756
8757           enablestring=
8758           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8759 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8760           no_cache=0
8761           # Check whether --enable-miniframe or --disable-miniframe was given.
8762 if test "${enable_miniframe+set}" = set; then
8763   enableval="$enable_miniframe"
8764
8765                           if test "$enableval" = yes; then
8766                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8767                           else
8768                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8769                           fi
8770
8771 else
8772
8773                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8774                           if test "x$LINE" != x ; then
8775                             eval "DEFAULT_$LINE"
8776                           else
8777                             no_cache=1
8778                           fi
8779
8780                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8781
8782 fi;
8783
8784           eval "$ac_cv_use_miniframe"
8785           if test "$no_cache" != 1; then
8786             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8787           fi
8788
8789           if test "$wxUSE_MINIFRAME" = yes; then
8790             echo "$as_me:$LINENO: result: yes" >&5
8791 echo "${ECHO_T}yes" >&6
8792           else
8793             echo "$as_me:$LINENO: result: no" >&5
8794 echo "${ECHO_T}no" >&6
8795           fi
8796
8797
8798           enablestring=
8799           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8800 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
8801           no_cache=0
8802           # Check whether --enable-tooltips or --disable-tooltips was given.
8803 if test "${enable_tooltips+set}" = set; then
8804   enableval="$enable_tooltips"
8805
8806                           if test "$enableval" = yes; then
8807                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8808                           else
8809                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8810                           fi
8811
8812 else
8813
8814                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8815                           if test "x$LINE" != x ; then
8816                             eval "DEFAULT_$LINE"
8817                           else
8818                             no_cache=1
8819                           fi
8820
8821                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8822
8823 fi;
8824
8825           eval "$ac_cv_use_tooltips"
8826           if test "$no_cache" != 1; then
8827             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8828           fi
8829
8830           if test "$wxUSE_TOOLTIPS" = yes; then
8831             echo "$as_me:$LINENO: result: yes" >&5
8832 echo "${ECHO_T}yes" >&6
8833           else
8834             echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8836           fi
8837
8838
8839           enablestring=
8840           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8841 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
8842           no_cache=0
8843           # Check whether --enable-splines or --disable-splines was given.
8844 if test "${enable_splines+set}" = set; then
8845   enableval="$enable_splines"
8846
8847                           if test "$enableval" = yes; then
8848                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8849                           else
8850                             ac_cv_use_splines='wxUSE_SPLINES=no'
8851                           fi
8852
8853 else
8854
8855                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8856                           if test "x$LINE" != x ; then
8857                             eval "DEFAULT_$LINE"
8858                           else
8859                             no_cache=1
8860                           fi
8861
8862                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8863
8864 fi;
8865
8866           eval "$ac_cv_use_splines"
8867           if test "$no_cache" != 1; then
8868             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8869           fi
8870
8871           if test "$wxUSE_SPLINES" = yes; then
8872             echo "$as_me:$LINENO: result: yes" >&5
8873 echo "${ECHO_T}yes" >&6
8874           else
8875             echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877           fi
8878
8879
8880           enablestring=
8881           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8882 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
8883           no_cache=0
8884           # Check whether --enable-validators or --disable-validators was given.
8885 if test "${enable_validators+set}" = set; then
8886   enableval="$enable_validators"
8887
8888                           if test "$enableval" = yes; then
8889                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8890                           else
8891                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8892                           fi
8893
8894 else
8895
8896                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8897                           if test "x$LINE" != x ; then
8898                             eval "DEFAULT_$LINE"
8899                           else
8900                             no_cache=1
8901                           fi
8902
8903                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8904
8905 fi;
8906
8907           eval "$ac_cv_use_validators"
8908           if test "$no_cache" != 1; then
8909             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8910           fi
8911
8912           if test "$wxUSE_VALIDATORS" = yes; then
8913             echo "$as_me:$LINENO: result: yes" >&5
8914 echo "${ECHO_T}yes" >&6
8915           else
8916             echo "$as_me:$LINENO: result: no" >&5
8917 echo "${ECHO_T}no" >&6
8918           fi
8919
8920
8921           enablestring=
8922           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8923 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
8924           no_cache=0
8925           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8926 if test "${enable_busyinfo+set}" = set; then
8927   enableval="$enable_busyinfo"
8928
8929                           if test "$enableval" = yes; then
8930                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8931                           else
8932                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8933                           fi
8934
8935 else
8936
8937                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8938                           if test "x$LINE" != x ; then
8939                             eval "DEFAULT_$LINE"
8940                           else
8941                             no_cache=1
8942                           fi
8943
8944                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8945
8946 fi;
8947
8948           eval "$ac_cv_use_busyinfo"
8949           if test "$no_cache" != 1; then
8950             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8951           fi
8952
8953           if test "$wxUSE_BUSYINFO" = yes; then
8954             echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6
8956           else
8957             echo "$as_me:$LINENO: result: no" >&5
8958 echo "${ECHO_T}no" >&6
8959           fi
8960
8961
8962           enablestring=
8963           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8964 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
8965           no_cache=0
8966           # Check whether --enable-joystick or --disable-joystick was given.
8967 if test "${enable_joystick+set}" = set; then
8968   enableval="$enable_joystick"
8969
8970                           if test "$enableval" = yes; then
8971                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8972                           else
8973                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8974                           fi
8975
8976 else
8977
8978                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8979                           if test "x$LINE" != x ; then
8980                             eval "DEFAULT_$LINE"
8981                           else
8982                             no_cache=1
8983                           fi
8984
8985                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8986
8987 fi;
8988
8989           eval "$ac_cv_use_joystick"
8990           if test "$no_cache" != 1; then
8991             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8992           fi
8993
8994           if test "$wxUSE_JOYSTICK" = yes; then
8995             echo "$as_me:$LINENO: result: yes" >&5
8996 echo "${ECHO_T}yes" >&6
8997           else
8998             echo "$as_me:$LINENO: result: no" >&5
8999 echo "${ECHO_T}no" >&6
9000           fi
9001
9002
9003           enablestring=
9004           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9005 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9006           no_cache=0
9007           # Check whether --enable-metafile or --disable-metafile was given.
9008 if test "${enable_metafile+set}" = set; then
9009   enableval="$enable_metafile"
9010
9011                           if test "$enableval" = yes; then
9012                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9013                           else
9014                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9015                           fi
9016
9017 else
9018
9019                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9020                           if test "x$LINE" != x ; then
9021                             eval "DEFAULT_$LINE"
9022                           else
9023                             no_cache=1
9024                           fi
9025
9026                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9027
9028 fi;
9029
9030           eval "$ac_cv_use_metafile"
9031           if test "$no_cache" != 1; then
9032             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9033           fi
9034
9035           if test "$wxUSE_METAFILE" = yes; then
9036             echo "$as_me:$LINENO: result: yes" >&5
9037 echo "${ECHO_T}yes" >&6
9038           else
9039             echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6
9041           fi
9042
9043
9044           enablestring=
9045           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9046 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9047           no_cache=0
9048           # Check whether --enable-dragimage or --disable-dragimage was given.
9049 if test "${enable_dragimage+set}" = set; then
9050   enableval="$enable_dragimage"
9051
9052                           if test "$enableval" = yes; then
9053                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9054                           else
9055                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9056                           fi
9057
9058 else
9059
9060                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9061                           if test "x$LINE" != x ; then
9062                             eval "DEFAULT_$LINE"
9063                           else
9064                             no_cache=1
9065                           fi
9066
9067                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9068
9069 fi;
9070
9071           eval "$ac_cv_use_dragimage"
9072           if test "$no_cache" != 1; then
9073             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9074           fi
9075
9076           if test "$wxUSE_DRAGIMAGE" = yes; then
9077             echo "$as_me:$LINENO: result: yes" >&5
9078 echo "${ECHO_T}yes" >&6
9079           else
9080             echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6
9082           fi
9083
9084
9085           enablestring=
9086           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9087 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9088           no_cache=0
9089           # Check whether --enable-accessibility or --disable-accessibility was given.
9090 if test "${enable_accessibility+set}" = set; then
9091   enableval="$enable_accessibility"
9092
9093                           if test "$enableval" = yes; then
9094                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9095                           else
9096                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9097                           fi
9098
9099 else
9100
9101                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9102                           if test "x$LINE" != x ; then
9103                             eval "DEFAULT_$LINE"
9104                           else
9105                             no_cache=1
9106                           fi
9107
9108                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9109
9110 fi;
9111
9112           eval "$ac_cv_use_accessibility"
9113           if test "$no_cache" != 1; then
9114             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9115           fi
9116
9117           if test "$wxUSE_ACCESSIBILITY" = yes; then
9118             echo "$as_me:$LINENO: result: yes" >&5
9119 echo "${ECHO_T}yes" >&6
9120           else
9121             echo "$as_me:$LINENO: result: no" >&5
9122 echo "${ECHO_T}no" >&6
9123           fi
9124
9125
9126
9127
9128           enablestring=
9129           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9130 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9131           no_cache=0
9132           # Check whether --enable-palette or --disable-palette was given.
9133 if test "${enable_palette+set}" = set; then
9134   enableval="$enable_palette"
9135
9136                           if test "$enableval" = yes; then
9137                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9138                           else
9139                             ac_cv_use_palette='wxUSE_PALETTE=no'
9140                           fi
9141
9142 else
9143
9144                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9145                           if test "x$LINE" != x ; then
9146                             eval "DEFAULT_$LINE"
9147                           else
9148                             no_cache=1
9149                           fi
9150
9151                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9152
9153 fi;
9154
9155           eval "$ac_cv_use_palette"
9156           if test "$no_cache" != 1; then
9157             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9158           fi
9159
9160           if test "$wxUSE_PALETTE" = yes; then
9161             echo "$as_me:$LINENO: result: yes" >&5
9162 echo "${ECHO_T}yes" >&6
9163           else
9164             echo "$as_me:$LINENO: result: no" >&5
9165 echo "${ECHO_T}no" >&6
9166           fi
9167
9168
9169           enablestring=
9170           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9171 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9172           no_cache=0
9173           # Check whether --enable-image or --disable-image was given.
9174 if test "${enable_image+set}" = set; then
9175   enableval="$enable_image"
9176
9177                           if test "$enableval" = yes; then
9178                             ac_cv_use_image='wxUSE_IMAGE=yes'
9179                           else
9180                             ac_cv_use_image='wxUSE_IMAGE=no'
9181                           fi
9182
9183 else
9184
9185                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9186                           if test "x$LINE" != x ; then
9187                             eval "DEFAULT_$LINE"
9188                           else
9189                             no_cache=1
9190                           fi
9191
9192                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9193
9194 fi;
9195
9196           eval "$ac_cv_use_image"
9197           if test "$no_cache" != 1; then
9198             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9199           fi
9200
9201           if test "$wxUSE_IMAGE" = yes; then
9202             echo "$as_me:$LINENO: result: yes" >&5
9203 echo "${ECHO_T}yes" >&6
9204           else
9205             echo "$as_me:$LINENO: result: no" >&5
9206 echo "${ECHO_T}no" >&6
9207           fi
9208
9209
9210           enablestring=
9211           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9212 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9213           no_cache=0
9214           # Check whether --enable-gif or --disable-gif was given.
9215 if test "${enable_gif+set}" = set; then
9216   enableval="$enable_gif"
9217
9218                           if test "$enableval" = yes; then
9219                             ac_cv_use_gif='wxUSE_GIF=yes'
9220                           else
9221                             ac_cv_use_gif='wxUSE_GIF=no'
9222                           fi
9223
9224 else
9225
9226                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9227                           if test "x$LINE" != x ; then
9228                             eval "DEFAULT_$LINE"
9229                           else
9230                             no_cache=1
9231                           fi
9232
9233                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9234
9235 fi;
9236
9237           eval "$ac_cv_use_gif"
9238           if test "$no_cache" != 1; then
9239             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9240           fi
9241
9242           if test "$wxUSE_GIF" = yes; then
9243             echo "$as_me:$LINENO: result: yes" >&5
9244 echo "${ECHO_T}yes" >&6
9245           else
9246             echo "$as_me:$LINENO: result: no" >&5
9247 echo "${ECHO_T}no" >&6
9248           fi
9249
9250
9251           enablestring=
9252           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9253 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9254           no_cache=0
9255           # Check whether --enable-pcx or --disable-pcx was given.
9256 if test "${enable_pcx+set}" = set; then
9257   enableval="$enable_pcx"
9258
9259                           if test "$enableval" = yes; then
9260                             ac_cv_use_pcx='wxUSE_PCX=yes'
9261                           else
9262                             ac_cv_use_pcx='wxUSE_PCX=no'
9263                           fi
9264
9265 else
9266
9267                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9268                           if test "x$LINE" != x ; then
9269                             eval "DEFAULT_$LINE"
9270                           else
9271                             no_cache=1
9272                           fi
9273
9274                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9275
9276 fi;
9277
9278           eval "$ac_cv_use_pcx"
9279           if test "$no_cache" != 1; then
9280             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9281           fi
9282
9283           if test "$wxUSE_PCX" = yes; then
9284             echo "$as_me:$LINENO: result: yes" >&5
9285 echo "${ECHO_T}yes" >&6
9286           else
9287             echo "$as_me:$LINENO: result: no" >&5
9288 echo "${ECHO_T}no" >&6
9289           fi
9290
9291
9292           enablestring=
9293           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9294 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9295           no_cache=0
9296           # Check whether --enable-iff or --disable-iff was given.
9297 if test "${enable_iff+set}" = set; then
9298   enableval="$enable_iff"
9299
9300                           if test "$enableval" = yes; then
9301                             ac_cv_use_iff='wxUSE_IFF=yes'
9302                           else
9303                             ac_cv_use_iff='wxUSE_IFF=no'
9304                           fi
9305
9306 else
9307
9308                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9309                           if test "x$LINE" != x ; then
9310                             eval "DEFAULT_$LINE"
9311                           else
9312                             no_cache=1
9313                           fi
9314
9315                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9316
9317 fi;
9318
9319           eval "$ac_cv_use_iff"
9320           if test "$no_cache" != 1; then
9321             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9322           fi
9323
9324           if test "$wxUSE_IFF" = yes; then
9325             echo "$as_me:$LINENO: result: yes" >&5
9326 echo "${ECHO_T}yes" >&6
9327           else
9328             echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6
9330           fi
9331
9332
9333           enablestring=
9334           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9335 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9336           no_cache=0
9337           # Check whether --enable-pnm or --disable-pnm was given.
9338 if test "${enable_pnm+set}" = set; then
9339   enableval="$enable_pnm"
9340
9341                           if test "$enableval" = yes; then
9342                             ac_cv_use_pnm='wxUSE_PNM=yes'
9343                           else
9344                             ac_cv_use_pnm='wxUSE_PNM=no'
9345                           fi
9346
9347 else
9348
9349                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9350                           if test "x$LINE" != x ; then
9351                             eval "DEFAULT_$LINE"
9352                           else
9353                             no_cache=1
9354                           fi
9355
9356                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9357
9358 fi;
9359
9360           eval "$ac_cv_use_pnm"
9361           if test "$no_cache" != 1; then
9362             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9363           fi
9364
9365           if test "$wxUSE_PNM" = yes; then
9366             echo "$as_me:$LINENO: result: yes" >&5
9367 echo "${ECHO_T}yes" >&6
9368           else
9369             echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6
9371           fi
9372
9373
9374           enablestring=
9375           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9376 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9377           no_cache=0
9378           # Check whether --enable-xpm or --disable-xpm was given.
9379 if test "${enable_xpm+set}" = set; then
9380   enableval="$enable_xpm"
9381
9382                           if test "$enableval" = yes; then
9383                             ac_cv_use_xpm='wxUSE_XPM=yes'
9384                           else
9385                             ac_cv_use_xpm='wxUSE_XPM=no'
9386                           fi
9387
9388 else
9389
9390                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9391                           if test "x$LINE" != x ; then
9392                             eval "DEFAULT_$LINE"
9393                           else
9394                             no_cache=1
9395                           fi
9396
9397                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9398
9399 fi;
9400
9401           eval "$ac_cv_use_xpm"
9402           if test "$no_cache" != 1; then
9403             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9404           fi
9405
9406           if test "$wxUSE_XPM" = yes; then
9407             echo "$as_me:$LINENO: result: yes" >&5
9408 echo "${ECHO_T}yes" >&6
9409           else
9410             echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6
9412           fi
9413
9414
9415           enablestring=
9416           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9417 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9418           no_cache=0
9419           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9420 if test "${enable_ico_cur+set}" = set; then
9421   enableval="$enable_ico_cur"
9422
9423                           if test "$enableval" = yes; then
9424                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9425                           else
9426                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9427                           fi
9428
9429 else
9430
9431                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9432                           if test "x$LINE" != x ; then
9433                             eval "DEFAULT_$LINE"
9434                           else
9435                             no_cache=1
9436                           fi
9437
9438                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9439
9440 fi;
9441
9442           eval "$ac_cv_use_ico_cur"
9443           if test "$no_cache" != 1; then
9444             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9445           fi
9446
9447           if test "$wxUSE_ICO_CUR" = yes; then
9448             echo "$as_me:$LINENO: result: yes" >&5
9449 echo "${ECHO_T}yes" >&6
9450           else
9451             echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6
9453           fi
9454
9455
9456 fi
9457
9458
9459
9460           enablestring=
9461           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9462 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9463           no_cache=0
9464           # Check whether --enable-official_build or --disable-official_build was given.
9465 if test "${enable_official_build+set}" = set; then
9466   enableval="$enable_official_build"
9467
9468                           if test "$enableval" = yes; then
9469                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9470                           else
9471                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9472                           fi
9473
9474 else
9475
9476                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9477                           if test "x$LINE" != x ; then
9478                             eval "DEFAULT_$LINE"
9479                           else
9480                             no_cache=1
9481                           fi
9482
9483                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9484
9485 fi;
9486
9487           eval "$ac_cv_use_official_build"
9488           if test "$no_cache" != 1; then
9489             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9490           fi
9491
9492           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9493             echo "$as_me:$LINENO: result: yes" >&5
9494 echo "${ECHO_T}yes" >&6
9495           else
9496             echo "$as_me:$LINENO: result: no" >&5
9497 echo "${ECHO_T}no" >&6
9498           fi
9499
9500 # Check whether --enable-vendor or --disable-vendor was given.
9501 if test "${enable_vendor+set}" = set; then
9502   enableval="$enable_vendor"
9503   VENDOR="$enableval"
9504 fi;
9505 if test "x$VENDOR" = "x"; then
9506     VENDOR="custom"
9507 fi
9508
9509 case "${host}" in
9510   *-pc-os2_emx | *-pc-os2-emx )
9511     PATH_IFS=';'
9512     LEX_STEM="lexyy"
9513   ;;
9514   *)
9515     PATH_IFS=':'
9516     LEX_STEM="lex.yy"
9517   ;;
9518 esac
9519
9520
9521
9522           echo "saving argument cache $wx_arg_cache_file"
9523           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9524
9525
9526
9527 echo "$as_me:$LINENO: checking for toolkit" >&5
9528 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9529
9530 # In Wine, we need to default to MSW, not GTK or MOTIF
9531 if test "$wxUSE_WINE" = "yes"; then
9532     DEFAULT_DEFAULT_wxUSE_GTK=0
9533     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9534     DEFAULT_DEFAULT_wxUSE_MSW=1
9535 fi
9536
9537 if test "$wxUSE_GUI" = "yes"; then
9538
9539     if test "$USE_BEOS" = 1; then
9540         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9541 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9542    { (exit 1); exit 1; }; }
9543     fi
9544
9545     if test "$TOOLKIT_GIVEN" = 1; then
9546             for toolkit in `echo $ALL_TOOLKITS`; do
9547         var=wxUSE_$toolkit
9548         eval "value=\$${var}"
9549         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9550       done
9551     else
9552             for toolkit in `echo $ALL_TOOLKITS`; do
9553         if test "$has_toolkit_in_cache" != 1; then
9554           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9555         else
9556           var=DEFAULT_wxUSE_$toolkit
9557         fi
9558         eval "wxUSE_$toolkit=\$${var}"
9559       done
9560     fi
9561
9562             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9563                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9564                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9565
9566         case "${host}" in
9567       *-pc-os2_emx | *-pc-os2-emx )
9568         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9569     esac
9570
9571     case "$NUM_TOOLKITS" in
9572       1)
9573       ;;
9574       0)
9575         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9576 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9577    { (exit 1); exit 1; }; }
9578       ;;
9579       *)
9580         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9581 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9582    { (exit 1); exit 1; }; }
9583     esac
9584
9585         for toolkit in `echo $ALL_TOOLKITS`; do
9586       var=wxUSE_$toolkit
9587       eval "value=\$${var}"
9588       if test "x$value" != x; then
9589         cache_var=CACHE_$toolkit
9590         eval "cache=\$${cache_var}"
9591         if test "$cache" = 1; then
9592           echo "$var=$value" >> ${wx_arg_cache_file}
9593         fi
9594         if test "$value" = 1; then
9595           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
9596           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9597 echo "${ECHO_T}$toolkit_echo" >&6
9598         fi
9599       fi
9600     done
9601 else
9602     if test "x$host_alias" != "x"; then
9603         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9604 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9605     else
9606         echo "$as_me:$LINENO: result: base only" >&5
9607 echo "${ECHO_T}base only" >&6
9608     fi
9609 fi
9610
9611 wants_win32=0
9612 doesnt_want_win32=0
9613 case "${host}" in
9614   *-*-cygwin*)
9615       if test "$wxUSE_MSW" = 1 ; then
9616         wants_win32=1
9617       else
9618         doesnt_want_win32=1
9619       fi
9620   ;;
9621   *-*-mingw*)
9622       wants_win32=1
9623   ;;
9624 esac
9625
9626 if test "$wxUSE_WINE" = "yes"; then
9627     wants_win32=1
9628         CC=winegcc
9629     CXX=wineg++
9630     RESCOMP=wrc
9631 fi
9632
9633 if test "$wants_win32" = 1 ; then
9634     USE_UNIX=0
9635     USE_WIN32=1
9636     cat >>confdefs.h <<\_ACEOF
9637 #define __WIN32__ 1
9638 _ACEOF
9639
9640     cat >>confdefs.h <<\_ACEOF
9641 #define __WIN95__ 1
9642 _ACEOF
9643
9644     cat >>confdefs.h <<\_ACEOF
9645 #define __WINDOWS__ 1
9646 _ACEOF
9647
9648     cat >>confdefs.h <<\_ACEOF
9649 #define __GNUWIN32__ 1
9650 _ACEOF
9651
9652     cat >>confdefs.h <<\_ACEOF
9653 #define STRICT 1
9654 _ACEOF
9655
9656     cat >>confdefs.h <<\_ACEOF
9657 #define WINVER 0x0400
9658 _ACEOF
9659
9660 fi
9661 if test "$doesnt_want_win32" = 1 ; then
9662     USE_UNIX=1
9663     USE_WIN32=0
9664 fi
9665
9666 if test "$USE_UNIX" = 1 ; then
9667     wxUSE_UNIX=yes
9668     cat >>confdefs.h <<\_ACEOF
9669 #define __UNIX__ 1
9670 _ACEOF
9671
9672 fi
9673
9674
9675 cat >confcache <<\_ACEOF
9676 # This file is a shell script that caches the results of configure
9677 # tests run on this system so they can be shared between configure
9678 # scripts and configure runs, see configure's option --config-cache.
9679 # It is not useful on other systems.  If it contains results you don't
9680 # want to keep, you may remove or edit it.
9681 #
9682 # config.status only pays attention to the cache file if you give it
9683 # the --recheck option to rerun configure.
9684 #
9685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9687 # following values.
9688
9689 _ACEOF
9690
9691 # The following way of writing the cache mishandles newlines in values,
9692 # but we know of no workaround that is simple, portable, and efficient.
9693 # So, don't put newlines in cache variables' values.
9694 # Ultrix sh set writes to stderr and can't be redirected directly,
9695 # and sets the high bit in the cache file unless we assign to the vars.
9696 {
9697   (set) 2>&1 |
9698     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9699     *ac_space=\ *)
9700       # `set' does not quote correctly, so add quotes (double-quote
9701       # substitution turns \\\\ into \\, and sed turns \\ into \).
9702       sed -n \
9703         "s/'/'\\\\''/g;
9704           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9705       ;;
9706     *)
9707       # `set' quotes correctly as required by POSIX, so do not add quotes.
9708       sed -n \
9709         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9710       ;;
9711     esac;
9712 } |
9713   sed '
9714      t clear
9715      : clear
9716      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9717      t end
9718      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9719      : end' >>confcache
9720 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9721   if test -w $cache_file; then
9722     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9723     cat confcache >$cache_file
9724   else
9725     echo "not updating unwritable cache $cache_file"
9726   fi
9727 fi
9728 rm -f confcache
9729
9730 if test "$build" != "$host" ; then
9731     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9732         CC=$host_alias-gcc
9733         CXX=$host_alias-c++
9734         AR=$host_alias-ar
9735         RANLIB=$host_alias-ranlib
9736         DLLTOOL=$host_alias-dlltool
9737         RESCOMP=$host_alias-windres
9738         LD=$host_alias-ld
9739         NM=$host_alias-nm
9740         STRIP=$host_alias-strip
9741     else
9742         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9743 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9744    { (exit 1); exit 1; }; }
9745     fi
9746 fi
9747
9748 CFLAGS=${CFLAGS:=}
9749 ac_ext=c
9750 ac_cpp='$CPP $CPPFLAGS'
9751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9754 if test -n "$ac_tool_prefix"; then
9755   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9757 echo "$as_me:$LINENO: checking for $ac_word" >&5
9758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9759 if test "${ac_cv_prog_CC+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   if test -n "$CC"; then
9763   ac_cv_prog_CC="$CC" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9767 do
9768   IFS=$as_save_IFS
9769   test -z "$as_dir" && as_dir=.
9770   for ac_exec_ext in '' $ac_executable_extensions; do
9771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9774     break 2
9775   fi
9776 done
9777 done
9778
9779 fi
9780 fi
9781 CC=$ac_cv_prog_CC
9782 if test -n "$CC"; then
9783   echo "$as_me:$LINENO: result: $CC" >&5
9784 echo "${ECHO_T}$CC" >&6
9785 else
9786   echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6
9788 fi
9789
9790 fi
9791 if test -z "$ac_cv_prog_CC"; then
9792   ac_ct_CC=$CC
9793   # Extract the first word of "gcc", so it can be a program name with args.
9794 set dummy gcc; ac_word=$2
9795 echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   if test -n "$ac_ct_CC"; then
9801   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808   for ac_exec_ext in '' $ac_executable_extensions; do
9809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810     ac_cv_prog_ac_ct_CC="gcc"
9811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815 done
9816
9817 fi
9818 fi
9819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9820 if test -n "$ac_ct_CC"; then
9821   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9822 echo "${ECHO_T}$ac_ct_CC" >&6
9823 else
9824   echo "$as_me:$LINENO: result: no" >&5
9825 echo "${ECHO_T}no" >&6
9826 fi
9827
9828   CC=$ac_ct_CC
9829 else
9830   CC="$ac_cv_prog_CC"
9831 fi
9832
9833 if test -z "$CC"; then
9834   if test -n "$ac_tool_prefix"; then
9835   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9836 set dummy ${ac_tool_prefix}cc; ac_word=$2
9837 echo "$as_me:$LINENO: checking for $ac_word" >&5
9838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9839 if test "${ac_cv_prog_CC+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   if test -n "$CC"; then
9843   ac_cv_prog_CC="$CC" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848   IFS=$as_save_IFS
9849   test -z "$as_dir" && as_dir=.
9850   for ac_exec_ext in '' $ac_executable_extensions; do
9851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852     ac_cv_prog_CC="${ac_tool_prefix}cc"
9853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9854     break 2
9855   fi
9856 done
9857 done
9858
9859 fi
9860 fi
9861 CC=$ac_cv_prog_CC
9862 if test -n "$CC"; then
9863   echo "$as_me:$LINENO: result: $CC" >&5
9864 echo "${ECHO_T}$CC" >&6
9865 else
9866   echo "$as_me:$LINENO: result: no" >&5
9867 echo "${ECHO_T}no" >&6
9868 fi
9869
9870 fi
9871 if test -z "$ac_cv_prog_CC"; then
9872   ac_ct_CC=$CC
9873   # Extract the first word of "cc", so it can be a program name with args.
9874 set dummy cc; ac_word=$2
9875 echo "$as_me:$LINENO: checking for $ac_word" >&5
9876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   if test -n "$ac_ct_CC"; then
9881   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9882 else
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886   IFS=$as_save_IFS
9887   test -z "$as_dir" && as_dir=.
9888   for ac_exec_ext in '' $ac_executable_extensions; do
9889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890     ac_cv_prog_ac_ct_CC="cc"
9891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892     break 2
9893   fi
9894 done
9895 done
9896
9897 fi
9898 fi
9899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9900 if test -n "$ac_ct_CC"; then
9901   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9902 echo "${ECHO_T}$ac_ct_CC" >&6
9903 else
9904   echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6
9906 fi
9907
9908   CC=$ac_ct_CC
9909 else
9910   CC="$ac_cv_prog_CC"
9911 fi
9912
9913 fi
9914 if test -z "$CC"; then
9915   # Extract the first word of "cc", so it can be a program name with args.
9916 set dummy cc; ac_word=$2
9917 echo "$as_me:$LINENO: checking for $ac_word" >&5
9918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919 if test "${ac_cv_prog_CC+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   if test -n "$CC"; then
9923   ac_cv_prog_CC="$CC" # Let the user override the test.
9924 else
9925   ac_prog_rejected=no
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929   IFS=$as_save_IFS
9930   test -z "$as_dir" && as_dir=.
9931   for ac_exec_ext in '' $ac_executable_extensions; do
9932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9933     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9934        ac_prog_rejected=yes
9935        continue
9936      fi
9937     ac_cv_prog_CC="cc"
9938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9939     break 2
9940   fi
9941 done
9942 done
9943
9944 if test $ac_prog_rejected = yes; then
9945   # We found a bogon in the path, so make sure we never use it.
9946   set dummy $ac_cv_prog_CC
9947   shift
9948   if test $# != 0; then
9949     # We chose a different compiler from the bogus one.
9950     # However, it has the same basename, so the bogon will be chosen
9951     # first if we set CC to just the basename; use the full file name.
9952     shift
9953     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9954   fi
9955 fi
9956 fi
9957 fi
9958 CC=$ac_cv_prog_CC
9959 if test -n "$CC"; then
9960   echo "$as_me:$LINENO: result: $CC" >&5
9961 echo "${ECHO_T}$CC" >&6
9962 else
9963   echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6
9965 fi
9966
9967 fi
9968 if test -z "$CC"; then
9969   if test -n "$ac_tool_prefix"; then
9970   for ac_prog in cl
9971   do
9972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9974 echo "$as_me:$LINENO: checking for $ac_word" >&5
9975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9976 if test "${ac_cv_prog_CC+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979   if test -n "$CC"; then
9980   ac_cv_prog_CC="$CC" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9984 do
9985   IFS=$as_save_IFS
9986   test -z "$as_dir" && as_dir=.
9987   for ac_exec_ext in '' $ac_executable_extensions; do
9988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9989     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9991     break 2
9992   fi
9993 done
9994 done
9995
9996 fi
9997 fi
9998 CC=$ac_cv_prog_CC
9999 if test -n "$CC"; then
10000   echo "$as_me:$LINENO: result: $CC" >&5
10001 echo "${ECHO_T}$CC" >&6
10002 else
10003   echo "$as_me:$LINENO: result: no" >&5
10004 echo "${ECHO_T}no" >&6
10005 fi
10006
10007     test -n "$CC" && break
10008   done
10009 fi
10010 if test -z "$CC"; then
10011   ac_ct_CC=$CC
10012   for ac_prog in cl
10013 do
10014   # Extract the first word of "$ac_prog", so it can be a program name with args.
10015 set dummy $ac_prog; ac_word=$2
10016 echo "$as_me:$LINENO: checking for $ac_word" >&5
10017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   if test -n "$ac_ct_CC"; then
10022   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10026 do
10027   IFS=$as_save_IFS
10028   test -z "$as_dir" && as_dir=.
10029   for ac_exec_ext in '' $ac_executable_extensions; do
10030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031     ac_cv_prog_ac_ct_CC="$ac_prog"
10032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10033     break 2
10034   fi
10035 done
10036 done
10037
10038 fi
10039 fi
10040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10041 if test -n "$ac_ct_CC"; then
10042   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10043 echo "${ECHO_T}$ac_ct_CC" >&6
10044 else
10045   echo "$as_me:$LINENO: result: no" >&5
10046 echo "${ECHO_T}no" >&6
10047 fi
10048
10049   test -n "$ac_ct_CC" && break
10050 done
10051
10052   CC=$ac_ct_CC
10053 fi
10054
10055 fi
10056
10057
10058 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10059 See \`config.log' for more details." >&5
10060 echo "$as_me: error: no acceptable C compiler found in \$PATH
10061 See \`config.log' for more details." >&2;}
10062    { (exit 1); exit 1; }; }
10063
10064 # Provide some information about the compiler.
10065 echo "$as_me:$LINENO:" \
10066      "checking for C compiler version" >&5
10067 ac_compiler=`set X $ac_compile; echo $2`
10068 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10069   (eval $ac_compiler --version </dev/null >&5) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }
10073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10074   (eval $ac_compiler -v </dev/null >&5) 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }
10078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10079   (eval $ac_compiler -V </dev/null >&5) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }
10083
10084 cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10086 /* confdefs.h.  */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h.  */
10091
10092 int
10093 main ()
10094 {
10095
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 ac_clean_files_save=$ac_clean_files
10101 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10102 # Try to create an executable without -o first, disregard a.out.
10103 # It will help us diagnose broken compilers, and finding out an intuition
10104 # of exeext.
10105 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10106 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10107 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10109   (eval $ac_link_default) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; then
10113   # Find the output, starting from the most likely.  This scheme is
10114 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10115 # resort.
10116
10117 # Be careful to initialize this variable, since it used to be cached.
10118 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10119 ac_cv_exeext=
10120 # b.out is created by i960 compilers.
10121 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10122 do
10123   test -f "$ac_file" || continue
10124   case $ac_file in
10125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10126         ;;
10127     conftest.$ac_ext )
10128         # This is the source file.
10129         ;;
10130     [ab].out )
10131         # We found the default executable, but exeext='' is most
10132         # certainly right.
10133         break;;
10134     *.* )
10135         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10136         # FIXME: I believe we export ac_cv_exeext for Libtool,
10137         # but it would be cool to find out if it's true.  Does anybody
10138         # maintain Libtool? --akim.
10139         export ac_cv_exeext
10140         break;;
10141     * )
10142         break;;
10143   esac
10144 done
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10148
10149 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10150 See \`config.log' for more details." >&5
10151 echo "$as_me: error: C compiler cannot create executables
10152 See \`config.log' for more details." >&2;}
10153    { (exit 77); exit 77; }; }
10154 fi
10155
10156 ac_exeext=$ac_cv_exeext
10157 echo "$as_me:$LINENO: result: $ac_file" >&5
10158 echo "${ECHO_T}$ac_file" >&6
10159
10160 # Check the compiler produces executables we can run.  If not, either
10161 # the compiler is broken, or we cross compile.
10162 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10163 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10164 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10165 # If not cross compiling, check that we can run a simple program.
10166 if test "$cross_compiling" != yes; then
10167   if { ac_try='./$ac_file'
10168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169   (eval $ac_try) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; }; then
10173     cross_compiling=no
10174   else
10175     if test "$cross_compiling" = maybe; then
10176         cross_compiling=yes
10177     else
10178         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10179 If you meant to cross compile, use \`--host'.
10180 See \`config.log' for more details." >&5
10181 echo "$as_me: error: cannot run C compiled programs.
10182 If you meant to cross compile, use \`--host'.
10183 See \`config.log' for more details." >&2;}
10184    { (exit 1); exit 1; }; }
10185     fi
10186   fi
10187 fi
10188 echo "$as_me:$LINENO: result: yes" >&5
10189 echo "${ECHO_T}yes" >&6
10190
10191 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10192 ac_clean_files=$ac_clean_files_save
10193 # Check the compiler produces executables we can run.  If not, either
10194 # the compiler is broken, or we cross compile.
10195 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10196 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10197 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10198 echo "${ECHO_T}$cross_compiling" >&6
10199
10200 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10201 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203   (eval $ac_link) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; then
10207   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10208 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10209 # work properly (i.e., refer to `conftest.exe'), while it won't with
10210 # `rm'.
10211 for ac_file in conftest.exe conftest conftest.*; do
10212   test -f "$ac_file" || continue
10213   case $ac_file in
10214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10215     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10216           export ac_cv_exeext
10217           break;;
10218     * ) break;;
10219   esac
10220 done
10221 else
10222   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10223 See \`config.log' for more details." >&5
10224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10225 See \`config.log' for more details." >&2;}
10226    { (exit 1); exit 1; }; }
10227 fi
10228
10229 rm -f conftest$ac_cv_exeext
10230 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10231 echo "${ECHO_T}$ac_cv_exeext" >&6
10232
10233 rm -f conftest.$ac_ext
10234 EXEEXT=$ac_cv_exeext
10235 ac_exeext=$EXEEXT
10236 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10238 if test "${ac_cv_objext+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   cat >conftest.$ac_ext <<_ACEOF
10242 #line $LINENO "configure"
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 int
10250 main ()
10251 {
10252
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.o conftest.obj
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259   (eval $ac_compile) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; then
10263   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10264   case $ac_file in
10265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10266     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10267        break;;
10268   esac
10269 done
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10275 See \`config.log' for more details." >&5
10276 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10277 See \`config.log' for more details." >&2;}
10278    { (exit 1); exit 1; }; }
10279 fi
10280
10281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10282 fi
10283 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10284 echo "${ECHO_T}$ac_cv_objext" >&6
10285 OBJEXT=$ac_cv_objext
10286 ac_objext=$OBJEXT
10287 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10288 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10289 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   cat >conftest.$ac_ext <<_ACEOF
10293 #line $LINENO "configure"
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300 int
10301 main ()
10302 {
10303 #ifndef __GNUC__
10304        choke me
10305 #endif
10306
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 rm -f conftest.$ac_objext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313   (eval $ac_compile) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -s conftest.$ac_objext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   ac_compiler_gnu=yes
10324 else
10325   echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10327
10328 ac_compiler_gnu=no
10329 fi
10330 rm -f conftest.$ac_objext conftest.$ac_ext
10331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10332
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10335 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10336 GCC=`test $ac_compiler_gnu = yes && echo yes`
10337 ac_test_CFLAGS=${CFLAGS+set}
10338 ac_save_CFLAGS=$CFLAGS
10339 CFLAGS="-g"
10340 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10341 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10342 if test "${ac_cv_prog_cc_g+set}" = set; then
10343   echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345   cat >conftest.$ac_ext <<_ACEOF
10346 #line $LINENO "configure"
10347 /* confdefs.h.  */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h.  */
10352
10353 int
10354 main ()
10355 {
10356
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363   (eval $ac_compile) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   ac_cv_prog_cc_g=yes
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378 ac_cv_prog_cc_g=no
10379 fi
10380 rm -f conftest.$ac_objext conftest.$ac_ext
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10384 if test "$ac_test_CFLAGS" = set; then
10385   CFLAGS=$ac_save_CFLAGS
10386 elif test $ac_cv_prog_cc_g = yes; then
10387   if test "$GCC" = yes; then
10388     CFLAGS="-g -O2"
10389   else
10390     CFLAGS="-g"
10391   fi
10392 else
10393   if test "$GCC" = yes; then
10394     CFLAGS="-O2"
10395   else
10396     CFLAGS=
10397   fi
10398 fi
10399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   ac_cv_prog_cc_stdc=no
10405 ac_save_CC=$CC
10406 cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 #include <stdarg.h>
10414 #include <stdio.h>
10415 #include <sys/types.h>
10416 #include <sys/stat.h>
10417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10418 struct buf { int x; };
10419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10420 static char *e (p, i)
10421      char **p;
10422      int i;
10423 {
10424   return p[i];
10425 }
10426 static char *f (char * (*g) (char **, int), char **p, ...)
10427 {
10428   char *s;
10429   va_list v;
10430   va_start (v,p);
10431   s = g (p, va_arg (v,int));
10432   va_end (v);
10433   return s;
10434 }
10435 int test (int i, double x);
10436 struct s1 {int (*f) (int a);};
10437 struct s2 {int (*f) (double a);};
10438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10439 int argc;
10440 char **argv;
10441 int
10442 main ()
10443 {
10444 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 # Don't try gcc -ansi; that turns off useful extensions and
10450 # breaks some systems' header files.
10451 # AIX                   -qlanglvl=ansi
10452 # Ultrix and OSF/1      -std1
10453 # HP-UX 10.20 and later -Ae
10454 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10455 # SVR4                  -Xc -D__EXTENSIONS__
10456 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10457 do
10458   CC="$ac_save_CC $ac_arg"
10459   rm -f conftest.$ac_objext
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); } &&
10465          { ac_try='test -s conftest.$ac_objext'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; }; then
10471   ac_cv_prog_cc_stdc=$ac_arg
10472 break
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 fi
10478 rm -f conftest.$ac_objext
10479 done
10480 rm -f conftest.$ac_ext conftest.$ac_objext
10481 CC=$ac_save_CC
10482
10483 fi
10484
10485 case "x$ac_cv_prog_cc_stdc" in
10486   x|xno)
10487     echo "$as_me:$LINENO: result: none needed" >&5
10488 echo "${ECHO_T}none needed" >&6 ;;
10489   *)
10490     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10491 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10492     CC="$CC $ac_cv_prog_cc_stdc" ;;
10493 esac
10494
10495 # Some people use a C++ compiler to compile C.  Since we use `exit',
10496 # in C++ we need to declare it.  In case someone uses the same compiler
10497 # for both compiling C and C++ we need to have the C++ compiler decide
10498 # the declaration of exit, since it's the most demanding environment.
10499 cat >conftest.$ac_ext <<_ACEOF
10500 #ifndef __cplusplus
10501   choke me
10502 #endif
10503 _ACEOF
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506   (eval $ac_compile) 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); } &&
10510          { ac_try='test -s conftest.$ac_objext'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; }; then
10516   for ac_declaration in \
10517    ''\
10518    '#include <stdlib.h>' \
10519    'extern "C" void std::exit (int) throw (); using std::exit;' \
10520    'extern "C" void std::exit (int); using std::exit;' \
10521    'extern "C" void exit (int) throw ();' \
10522    'extern "C" void exit (int);' \
10523    'void exit (int);'
10524 do
10525   cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532 #include <stdlib.h>
10533 $ac_declaration
10534 int
10535 main ()
10536 {
10537 exit (42);
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544   (eval $ac_compile) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -s conftest.$ac_objext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   :
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 continue
10560 fi
10561 rm -f conftest.$ac_objext conftest.$ac_ext
10562   cat >conftest.$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569 $ac_declaration
10570 int
10571 main ()
10572 {
10573 exit (42);
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580   (eval $ac_compile) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); } &&
10584          { ac_try='test -s conftest.$ac_objext'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }; then
10590   break
10591 else
10592   echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 fi
10596 rm -f conftest.$ac_objext conftest.$ac_ext
10597 done
10598 rm -f conftest*
10599 if test -n "$ac_declaration"; then
10600   echo '#ifdef __cplusplus' >>confdefs.h
10601   echo $ac_declaration      >>confdefs.h
10602   echo '#endif'             >>confdefs.h
10603 fi
10604
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 fi
10610 rm -f conftest.$ac_objext conftest.$ac_ext
10611 ac_ext=c
10612 ac_cpp='$CPP $CPPFLAGS'
10613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616
10617
10618
10619 ac_ext=c
10620 ac_cpp='$CPP $CPPFLAGS'
10621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10625 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10626 # On Suns, sometimes $CPP names a directory.
10627 if test -n "$CPP" && test -d "$CPP"; then
10628   CPP=
10629 fi
10630 if test -z "$CPP"; then
10631   if test "${ac_cv_prog_CPP+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634       # Double quotes because CPP needs to be expanded
10635     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10636     do
10637       ac_preproc_ok=false
10638 for ac_c_preproc_warn_flag in '' yes
10639 do
10640   # Use a header file that comes with gcc, so configuring glibc
10641   # with a fresh cross-compiler works.
10642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643   # <limits.h> exists even on freestanding compilers.
10644   # On the NeXT, cc -E runs the code through the compiler's parser,
10645   # not just through cpp. "Syntax error" is here to catch this case.
10646   cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 #ifdef __STDC__
10654 # include <limits.h>
10655 #else
10656 # include <assert.h>
10657 #endif
10658                      Syntax error
10659 _ACEOF
10660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } >/dev/null; then
10668   if test -s conftest.err; then
10669     ac_cpp_err=$ac_c_preproc_warn_flag
10670   else
10671     ac_cpp_err=
10672   fi
10673 else
10674   ac_cpp_err=yes
10675 fi
10676 if test -z "$ac_cpp_err"; then
10677   :
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682   # Broken: fails on valid input.
10683 continue
10684 fi
10685 rm -f conftest.err conftest.$ac_ext
10686
10687   # OK, works on sane cases.  Now check whether non-existent headers
10688   # can be detected and how.
10689   cat >conftest.$ac_ext <<_ACEOF
10690 #line $LINENO "configure"
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 #include <ac_nonexistent.h>
10697 _ACEOF
10698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } >/dev/null; then
10706   if test -s conftest.err; then
10707     ac_cpp_err=$ac_c_preproc_warn_flag
10708   else
10709     ac_cpp_err=
10710   fi
10711 else
10712   ac_cpp_err=yes
10713 fi
10714 if test -z "$ac_cpp_err"; then
10715   # Broken: success on invalid input.
10716 continue
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721   # Passes both tests.
10722 ac_preproc_ok=:
10723 break
10724 fi
10725 rm -f conftest.err conftest.$ac_ext
10726
10727 done
10728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10729 rm -f conftest.err conftest.$ac_ext
10730 if $ac_preproc_ok; then
10731   break
10732 fi
10733
10734     done
10735     ac_cv_prog_CPP=$CPP
10736
10737 fi
10738   CPP=$ac_cv_prog_CPP
10739 else
10740   ac_cv_prog_CPP=$CPP
10741 fi
10742 echo "$as_me:$LINENO: result: $CPP" >&5
10743 echo "${ECHO_T}$CPP" >&6
10744 ac_preproc_ok=false
10745 for ac_c_preproc_warn_flag in '' yes
10746 do
10747   # Use a header file that comes with gcc, so configuring glibc
10748   # with a fresh cross-compiler works.
10749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750   # <limits.h> exists even on freestanding compilers.
10751   # On the NeXT, cc -E runs the code through the compiler's parser,
10752   # not just through cpp. "Syntax error" is here to catch this case.
10753   cat >conftest.$ac_ext <<_ACEOF
10754 #line $LINENO "configure"
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760 #ifdef __STDC__
10761 # include <limits.h>
10762 #else
10763 # include <assert.h>
10764 #endif
10765                      Syntax error
10766 _ACEOF
10767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } >/dev/null; then
10775   if test -s conftest.err; then
10776     ac_cpp_err=$ac_c_preproc_warn_flag
10777   else
10778     ac_cpp_err=
10779   fi
10780 else
10781   ac_cpp_err=yes
10782 fi
10783 if test -z "$ac_cpp_err"; then
10784   :
10785 else
10786   echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789   # Broken: fails on valid input.
10790 continue
10791 fi
10792 rm -f conftest.err conftest.$ac_ext
10793
10794   # OK, works on sane cases.  Now check whether non-existent headers
10795   # can be detected and how.
10796   cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803 #include <ac_nonexistent.h>
10804 _ACEOF
10805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10807   ac_status=$?
10808   grep -v '^ *+' conftest.er1 >conftest.err
10809   rm -f conftest.er1
10810   cat conftest.err >&5
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } >/dev/null; then
10813   if test -s conftest.err; then
10814     ac_cpp_err=$ac_c_preproc_warn_flag
10815   else
10816     ac_cpp_err=
10817   fi
10818 else
10819   ac_cpp_err=yes
10820 fi
10821 if test -z "$ac_cpp_err"; then
10822   # Broken: success on invalid input.
10823 continue
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828   # Passes both tests.
10829 ac_preproc_ok=:
10830 break
10831 fi
10832 rm -f conftest.err conftest.$ac_ext
10833
10834 done
10835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10836 rm -f conftest.err conftest.$ac_ext
10837 if $ac_preproc_ok; then
10838   :
10839 else
10840   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10841 See \`config.log' for more details." >&5
10842 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10843 See \`config.log' for more details." >&2;}
10844    { (exit 1); exit 1; }; }
10845 fi
10846
10847 ac_ext=c
10848 ac_cpp='$CPP $CPPFLAGS'
10849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10852
10853
10854 echo "$as_me:$LINENO: checking for egrep" >&5
10855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10856 if test "${ac_cv_prog_egrep+set}" = set; then
10857   echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10860     then ac_cv_prog_egrep='grep -E'
10861     else ac_cv_prog_egrep='egrep'
10862     fi
10863 fi
10864 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10865 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10866  EGREP=$ac_cv_prog_egrep
10867
10868
10869 if test $ac_cv_c_compiler_gnu = yes; then
10870     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10871 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10872 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875     ac_pattern="Autoconf.*'x'"
10876   cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <sgtty.h>
10884 Autoconf TIOCGETP
10885 _ACEOF
10886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10887   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10888   ac_cv_prog_gcc_traditional=yes
10889 else
10890   ac_cv_prog_gcc_traditional=no
10891 fi
10892 rm -f conftest*
10893
10894
10895   if test $ac_cv_prog_gcc_traditional = no; then
10896     cat >conftest.$ac_ext <<_ACEOF
10897 #line $LINENO "configure"
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903 #include <termio.h>
10904 Autoconf TCGETA
10905 _ACEOF
10906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10907   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10908   ac_cv_prog_gcc_traditional=yes
10909 fi
10910 rm -f conftest*
10911
10912   fi
10913 fi
10914 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10915 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10916   if test $ac_cv_prog_gcc_traditional = yes; then
10917     CC="$CC -traditional"
10918   fi
10919 fi
10920
10921
10922
10923
10924 ac_ext=cc
10925 ac_cpp='$CXXCPP $CPPFLAGS'
10926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10929
10930
10931 CXXFLAGS=${CXXFLAGS:=}
10932 ac_ext=cc
10933 ac_cpp='$CXXCPP $CPPFLAGS'
10934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10937 if test -n "$ac_tool_prefix"; then
10938   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10939   do
10940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10942 echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944 if test "${ac_cv_prog_CXX+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   if test -n "$CXX"; then
10948   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10949 else
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10952 do
10953   IFS=$as_save_IFS
10954   test -z "$as_dir" && as_dir=.
10955   for ac_exec_ext in '' $ac_executable_extensions; do
10956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959     break 2
10960   fi
10961 done
10962 done
10963
10964 fi
10965 fi
10966 CXX=$ac_cv_prog_CXX
10967 if test -n "$CXX"; then
10968   echo "$as_me:$LINENO: result: $CXX" >&5
10969 echo "${ECHO_T}$CXX" >&6
10970 else
10971   echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6
10973 fi
10974
10975     test -n "$CXX" && break
10976   done
10977 fi
10978 if test -z "$CXX"; then
10979   ac_ct_CXX=$CXX
10980   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10981 do
10982   # Extract the first word of "$ac_prog", so it can be a program name with args.
10983 set dummy $ac_prog; ac_word=$2
10984 echo "$as_me:$LINENO: checking for $ac_word" >&5
10985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10986 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   if test -n "$ac_ct_CXX"; then
10990   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995   IFS=$as_save_IFS
10996   test -z "$as_dir" && as_dir=.
10997   for ac_exec_ext in '' $ac_executable_extensions; do
10998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999     ac_cv_prog_ac_ct_CXX="$ac_prog"
11000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11001     break 2
11002   fi
11003 done
11004 done
11005
11006 fi
11007 fi
11008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11009 if test -n "$ac_ct_CXX"; then
11010   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11011 echo "${ECHO_T}$ac_ct_CXX" >&6
11012 else
11013   echo "$as_me:$LINENO: result: no" >&5
11014 echo "${ECHO_T}no" >&6
11015 fi
11016
11017   test -n "$ac_ct_CXX" && break
11018 done
11019 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11020
11021   CXX=$ac_ct_CXX
11022 fi
11023
11024
11025 # Provide some information about the compiler.
11026 echo "$as_me:$LINENO:" \
11027      "checking for C++ compiler version" >&5
11028 ac_compiler=`set X $ac_compile; echo $2`
11029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11030   (eval $ac_compiler --version </dev/null >&5) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }
11034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11035   (eval $ac_compiler -v </dev/null >&5) 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }
11039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11040   (eval $ac_compiler -V </dev/null >&5) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }
11044
11045 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11046 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11047 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050   cat >conftest.$ac_ext <<_ACEOF
11051 #line $LINENO "configure"
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057
11058 int
11059 main ()
11060 {
11061 #ifndef __GNUC__
11062        choke me
11063 #endif
11064
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071   (eval $ac_compile) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -s conftest.$ac_objext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_compiler_gnu=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_compiler_gnu=no
11087 fi
11088 rm -f conftest.$ac_objext conftest.$ac_ext
11089 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11090
11091 fi
11092 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11093 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11094 GXX=`test $ac_compiler_gnu = yes && echo yes`
11095 ac_test_CXXFLAGS=${CXXFLAGS+set}
11096 ac_save_CXXFLAGS=$CXXFLAGS
11097 CXXFLAGS="-g"
11098 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11099 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11100 if test "${ac_cv_prog_cxx_g+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110
11111 int
11112 main ()
11113 {
11114
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121   (eval $ac_compile) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } &&
11125          { ac_try='test -s conftest.$ac_objext'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; }; then
11131   ac_cv_prog_cxx_g=yes
11132 else
11133   echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_cv_prog_cxx_g=no
11137 fi
11138 rm -f conftest.$ac_objext conftest.$ac_ext
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11141 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11142 if test "$ac_test_CXXFLAGS" = set; then
11143   CXXFLAGS=$ac_save_CXXFLAGS
11144 elif test $ac_cv_prog_cxx_g = yes; then
11145   if test "$GXX" = yes; then
11146     CXXFLAGS="-g -O2"
11147   else
11148     CXXFLAGS="-g"
11149   fi
11150 else
11151   if test "$GXX" = yes; then
11152     CXXFLAGS="-O2"
11153   else
11154     CXXFLAGS=
11155   fi
11156 fi
11157 for ac_declaration in \
11158    ''\
11159    '#include <stdlib.h>' \
11160    'extern "C" void std::exit (int) throw (); using std::exit;' \
11161    'extern "C" void std::exit (int); using std::exit;' \
11162    'extern "C" void exit (int) throw ();' \
11163    'extern "C" void exit (int);' \
11164    'void exit (int);'
11165 do
11166   cat >conftest.$ac_ext <<_ACEOF
11167 #line $LINENO "configure"
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 #include <stdlib.h>
11174 $ac_declaration
11175 int
11176 main ()
11177 {
11178 exit (42);
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185   (eval $ac_compile) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -s conftest.$ac_objext'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; }; then
11195   :
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 continue
11201 fi
11202 rm -f conftest.$ac_objext conftest.$ac_ext
11203   cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 $ac_declaration
11211 int
11212 main ()
11213 {
11214 exit (42);
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221   (eval $ac_compile) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } &&
11225          { ac_try='test -s conftest.$ac_objext'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   break
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 fi
11237 rm -f conftest.$ac_objext conftest.$ac_ext
11238 done
11239 rm -f conftest*
11240 if test -n "$ac_declaration"; then
11241   echo '#ifdef __cplusplus' >>confdefs.h
11242   echo $ac_declaration      >>confdefs.h
11243   echo '#endif'             >>confdefs.h
11244 fi
11245
11246 ac_ext=cc
11247 ac_cpp='$CXXCPP $CPPFLAGS'
11248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11251
11252
11253 ac_ext=c
11254 ac_cpp='$CPP $CPPFLAGS'
11255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11258
11259
11260 if test -n "$ac_tool_prefix"; then
11261   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11263 echo "$as_me:$LINENO: checking for $ac_word" >&5
11264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265 if test "${ac_cv_prog_RANLIB+set}" = set; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268   if test -n "$RANLIB"; then
11269   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11270 else
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276   for ac_exec_ext in '' $ac_executable_extensions; do
11277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283 done
11284
11285 fi
11286 fi
11287 RANLIB=$ac_cv_prog_RANLIB
11288 if test -n "$RANLIB"; then
11289   echo "$as_me:$LINENO: result: $RANLIB" >&5
11290 echo "${ECHO_T}$RANLIB" >&6
11291 else
11292   echo "$as_me:$LINENO: result: no" >&5
11293 echo "${ECHO_T}no" >&6
11294 fi
11295
11296 fi
11297 if test -z "$ac_cv_prog_RANLIB"; then
11298   ac_ct_RANLIB=$RANLIB
11299   # Extract the first word of "ranlib", so it can be a program name with args.
11300 set dummy ranlib; ac_word=$2
11301 echo "$as_me:$LINENO: checking for $ac_word" >&5
11302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11303 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   if test -n "$ac_ct_RANLIB"; then
11307   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11308 else
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312   IFS=$as_save_IFS
11313   test -z "$as_dir" && as_dir=.
11314   for ac_exec_ext in '' $ac_executable_extensions; do
11315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316     ac_cv_prog_ac_ct_RANLIB="ranlib"
11317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318     break 2
11319   fi
11320 done
11321 done
11322
11323   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11324 fi
11325 fi
11326 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11327 if test -n "$ac_ct_RANLIB"; then
11328   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11329 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11330 else
11331   echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6
11333 fi
11334
11335   RANLIB=$ac_ct_RANLIB
11336 else
11337   RANLIB="$ac_cv_prog_RANLIB"
11338 fi
11339
11340
11341 # Extract the first word of "ar", so it can be a program name with args.
11342 set dummy ar; ac_word=$2
11343 echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345 if test "${ac_cv_prog_AR+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   if test -n "$AR"; then
11349   ac_cv_prog_AR="$AR" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356   for ac_exec_ext in '' $ac_executable_extensions; do
11357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358     ac_cv_prog_AR="ar"
11359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363 done
11364
11365 fi
11366 fi
11367 AR=$ac_cv_prog_AR
11368 if test -n "$AR"; then
11369   echo "$as_me:$LINENO: result: $AR" >&5
11370 echo "${ECHO_T}$AR" >&6
11371 else
11372   echo "$as_me:$LINENO: result: no" >&5
11373 echo "${ECHO_T}no" >&6
11374 fi
11375
11376 if test "x$AR" = "x" ; then
11377     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11378 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11379    { (exit 1); exit 1; }; }
11380 fi
11381
11382 # Find a good install program.  We prefer a C program (faster),
11383 # so one script is as good as another.  But avoid the broken or
11384 # incompatible versions:
11385 # SysV /etc/install, /usr/sbin/install
11386 # SunOS /usr/etc/install
11387 # IRIX /sbin/install
11388 # AIX /bin/install
11389 # AmigaOS /C/install, which installs bootblocks on floppy discs
11390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11393 # ./install, which can be erroneously created by make from ./install.sh.
11394 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11395 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11396 if test -z "$INSTALL"; then
11397 if test "${ac_cv_path_install+set}" = set; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11402 do
11403   IFS=$as_save_IFS
11404   test -z "$as_dir" && as_dir=.
11405   # Account for people who put trailing slashes in PATH elements.
11406 case $as_dir/ in
11407   ./ | .// | /cC/* | \
11408   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11409   /usr/ucb/* ) ;;
11410   *)
11411     # OSF1 and SCO ODT 3.0 have their own names for install.
11412     # Don't use installbsd from OSF since it installs stuff as root
11413     # by default.
11414     for ac_prog in ginstall scoinst install; do
11415       for ac_exec_ext in '' $ac_executable_extensions; do
11416         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11417           if test $ac_prog = install &&
11418             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11419             # AIX install.  It has an incompatible calling convention.
11420             :
11421           elif test $ac_prog = install &&
11422             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11423             # program-specific install script used by HP pwplus--don't use.
11424             :
11425           else
11426             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11427             break 3
11428           fi
11429         fi
11430       done
11431     done
11432     ;;
11433 esac
11434 done
11435
11436
11437 fi
11438   if test "${ac_cv_path_install+set}" = set; then
11439     INSTALL=$ac_cv_path_install
11440   else
11441     # As a last resort, use the slow shell script.  We don't cache a
11442     # path for INSTALL within a source directory, because that will
11443     # break other packages using the cache if that directory is
11444     # removed, or if the path is relative.
11445     INSTALL=$ac_install_sh
11446   fi
11447 fi
11448 echo "$as_me:$LINENO: result: $INSTALL" >&5
11449 echo "${ECHO_T}$INSTALL" >&6
11450
11451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11452 # It thinks the first close brace ends the variable substitution.
11453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11454
11455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11456
11457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11458
11459
11460 case ${INSTALL} in
11461   /* ) # Absolute
11462      ;;
11463   ?:* ) # Drive letter, considered as absolute.
11464      ;;
11465   *)
11466      INSTALL=`pwd`/${INSTALL} ;;
11467 esac
11468
11469 case ${host} in
11470     *-hp-hpux* )
11471         INSTALL_DIR="mkdir"
11472         ;;
11473
11474     *)  INSTALL_DIR="$INSTALL -d"
11475         ;;
11476 esac
11477
11478
11479 case "${host}" in
11480
11481                 powerpc-*-darwin* )
11482         INSTALL_PROGRAM="cp -fp"
11483         INSTALL_DATA="cp -fp"
11484         ;;
11485     *)
11486         ;;
11487 esac
11488
11489 # Extract the first word of "strip", so it can be a program name with args.
11490 set dummy strip; ac_word=$2
11491 echo "$as_me:$LINENO: checking for $ac_word" >&5
11492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11493 if test "${ac_cv_prog_STRIP+set}" = set; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   if test -n "$STRIP"; then
11497   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11498 else
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502   IFS=$as_save_IFS
11503   test -z "$as_dir" && as_dir=.
11504   for ac_exec_ext in '' $ac_executable_extensions; do
11505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506     ac_cv_prog_STRIP="strip"
11507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508     break 2
11509   fi
11510 done
11511 done
11512
11513   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11514 fi
11515 fi
11516 STRIP=$ac_cv_prog_STRIP
11517 if test -n "$STRIP"; then
11518   echo "$as_me:$LINENO: result: $STRIP" >&5
11519 echo "${ECHO_T}$STRIP" >&6
11520 else
11521   echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11523 fi
11524
11525
11526 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11527 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11528 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11529   echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531
11532     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11533             egrep -s GNU > /dev/null); then
11534         wx_cv_prog_makeisgnu="yes"
11535     else
11536         wx_cv_prog_makeisgnu="no"
11537     fi
11538
11539 fi
11540 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11541 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11542
11543 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11544     IF_GNU_MAKE=""
11545 else
11546     IF_GNU_MAKE="#"
11547 fi
11548
11549
11550
11551 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11552 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11553 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11554 if test "${wx_cv_prog_makevpath+set}" = set; then
11555   echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557
11558 cat - << EOF > confMake
11559 check : file
11560         cp \$? \$@
11561         cp \$? final_file
11562 EOF
11563
11564 if test ! -d sub ; then
11565   mkdir sub
11566 fi
11567 echo dummy > sub/file
11568 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11569 RESULT=$?
11570 rm -f sub/file check final_file confMake
11571 rmdir sub
11572 if test "$RESULT" = 0; then
11573   wx_cv_prog_makevpath="yes"
11574 else
11575   wx_cv_prog_makevpath="no"
11576 fi
11577
11578 fi
11579 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11580 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11581
11582 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11583 { { echo "$as_me:$LINENO: error:
11584 You need a make-utility that is able to use the variable
11585 VPATH correctly.
11586 If your version of make does not support VPATH correctly,
11587 please install GNU-make (possibly as gmake), and start
11588 configure with the following command:
11589 export MAKE=gmake; ./configure  for sh-type shells
11590 setenv MAKE gmake; ./configure  for csh-type shells
11591 Also please do remember to use gmake in this case every time
11592 you are trying to compile.
11593 " >&5
11594 echo "$as_me: error:
11595 You need a make-utility that is able to use the variable
11596 VPATH correctly.
11597 If your version of make does not support VPATH correctly,
11598 please install GNU-make (possibly as gmake), and start
11599 configure with the following command:
11600 export MAKE=gmake; ./configure  for sh-type shells
11601 setenv MAKE gmake; ./configure  for csh-type shells
11602 Also please do remember to use gmake in this case every time
11603 you are trying to compile.
11604 " >&2;}
11605    { (exit 1); exit 1; }; }
11606 fi fi
11607 for ac_prog in 'bison -y' byacc
11608 do
11609   # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 echo "$as_me:$LINENO: checking for $ac_word" >&5
11612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11613 if test "${ac_cv_prog_YACC+set}" = set; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616   if test -n "$YACC"; then
11617   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622   IFS=$as_save_IFS
11623   test -z "$as_dir" && as_dir=.
11624   for ac_exec_ext in '' $ac_executable_extensions; do
11625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626     ac_cv_prog_YACC="$ac_prog"
11627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631 done
11632
11633 fi
11634 fi
11635 YACC=$ac_cv_prog_YACC
11636 if test -n "$YACC"; then
11637   echo "$as_me:$LINENO: result: $YACC" >&5
11638 echo "${ECHO_T}$YACC" >&6
11639 else
11640   echo "$as_me:$LINENO: result: no" >&5
11641 echo "${ECHO_T}no" >&6
11642 fi
11643
11644   test -n "$YACC" && break
11645 done
11646 test -n "$YACC" || YACC="yacc"
11647
11648
11649 for ac_prog in flex lex
11650 do
11651   # Extract the first word of "$ac_prog", so it can be a program name with args.
11652 set dummy $ac_prog; ac_word=$2
11653 echo "$as_me:$LINENO: checking for $ac_word" >&5
11654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11655 if test "${ac_cv_prog_LEX+set}" = set; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   if test -n "$LEX"; then
11659   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11660 else
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11663 do
11664   IFS=$as_save_IFS
11665   test -z "$as_dir" && as_dir=.
11666   for ac_exec_ext in '' $ac_executable_extensions; do
11667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11668     ac_cv_prog_LEX="$ac_prog"
11669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11670     break 2
11671   fi
11672 done
11673 done
11674
11675 fi
11676 fi
11677 LEX=$ac_cv_prog_LEX
11678 if test -n "$LEX"; then
11679   echo "$as_me:$LINENO: result: $LEX" >&5
11680 echo "${ECHO_T}$LEX" >&6
11681 else
11682   echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11684 fi
11685
11686   test -n "$LEX" && break
11687 done
11688 test -n "$LEX" || LEX=":"
11689
11690 if test -z "$LEXLIB"
11691 then
11692   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11693 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11694 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697   ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-lfl  $LIBS"
11699 cat >conftest.$ac_ext <<_ACEOF
11700 #line $LINENO "configure"
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706
11707 /* Override any gcc2 internal prototype to avoid an error.  */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 /* We use char because int might match the return type of a gcc2
11712    builtin and then its argument prototype would still apply.  */
11713 char yywrap ();
11714 int
11715 main ()
11716 {
11717 yywrap ();
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724   (eval $ac_link) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } &&
11728          { ac_try='test -s conftest$ac_exeext'
11729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730   (eval $ac_try) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; }; then
11734   ac_cv_lib_fl_yywrap=yes
11735 else
11736   echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 ac_cv_lib_fl_yywrap=no
11740 fi
11741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11742 LIBS=$ac_check_lib_save_LIBS
11743 fi
11744 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11745 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11746 if test $ac_cv_lib_fl_yywrap = yes; then
11747   LEXLIB="-lfl"
11748 else
11749   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11750 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11751 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-ll  $LIBS"
11756 cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763
11764 /* Override any gcc2 internal prototype to avoid an error.  */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 /* We use char because int might match the return type of a gcc2
11769    builtin and then its argument prototype would still apply.  */
11770 char yywrap ();
11771 int
11772 main ()
11773 {
11774 yywrap ();
11775   ;
11776   return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781   (eval $ac_link) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } &&
11785          { ac_try='test -s conftest$ac_exeext'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; }; then
11791   ac_cv_lib_l_yywrap=yes
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 ac_cv_lib_l_yywrap=no
11797 fi
11798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11800 fi
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11802 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11803 if test $ac_cv_lib_l_yywrap = yes; then
11804   LEXLIB="-ll"
11805 fi
11806
11807 fi
11808
11809 fi
11810
11811 if test "x$LEX" != "x:"; then
11812   echo "$as_me:$LINENO: checking lex output file root" >&5
11813 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11814 if test "${ac_cv_prog_lex_root+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   # The minimal lex program is just a single line: %%.  But some broken lexes
11818 # (Solaris, I think it was) want two %% lines, so accommodate them.
11819 cat >conftest.l <<_ACEOF
11820 %%
11821 %%
11822 _ACEOF
11823 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11824   (eval $LEX conftest.l) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }
11828 if test -f lex.yy.c; then
11829   ac_cv_prog_lex_root=lex.yy
11830 elif test -f lexyy.c; then
11831   ac_cv_prog_lex_root=lexyy
11832 else
11833   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11834 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11835    { (exit 1); exit 1; }; }
11836 fi
11837 fi
11838 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11839 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11840 rm -f conftest.l
11841 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11842
11843 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11844 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11845 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11846   echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848   # POSIX says lex can declare yytext either as a pointer or an array; the
11849 # default is implementation-dependent. Figure out which it is, since
11850 # not all implementations provide the %pointer and %array declarations.
11851 ac_cv_prog_lex_yytext_pointer=no
11852 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11853 ac_save_LIBS=$LIBS
11854 LIBS="$LIBS $LEXLIB"
11855 cat >conftest.$ac_ext <<_ACEOF
11856 `cat $LEX_OUTPUT_ROOT.c`
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860   (eval $ac_link) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); } &&
11864          { ac_try='test -s conftest$ac_exeext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   ac_cv_prog_lex_yytext_pointer=yes
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 fi
11876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11877 LIBS=$ac_save_LIBS
11878 rm -f "${LEX_OUTPUT_ROOT}.c"
11879
11880 fi
11881 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11882 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11883 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11884
11885 cat >>confdefs.h <<\_ACEOF
11886 #define YYTEXT_POINTER 1
11887 _ACEOF
11888
11889 fi
11890
11891 fi
11892
11893 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11894 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11895 LN_S=$as_ln_s
11896 if test "$LN_S" = "ln -s"; then
11897   echo "$as_me:$LINENO: result: yes" >&5
11898 echo "${ECHO_T}yes" >&6
11899 else
11900   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11901 echo "${ECHO_T}no, using $LN_S" >&6
11902 fi
11903
11904
11905 case "${host}" in
11906   *-pc-os2_emx | *-pc-os2-emx )
11907             LIBS="$LIBS -lstdcpp"
11908       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11909                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11910 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11911 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-lcExt  $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 #line $LINENO "configure"
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923
11924 /* Override any gcc2 internal prototype to avoid an error.  */
11925 #ifdef __cplusplus
11926 extern "C"
11927 #endif
11928 /* We use char because int might match the return type of a gcc2
11929    builtin and then its argument prototype would still apply.  */
11930 char drand48 ();
11931 int
11932 main ()
11933 {
11934 drand48 ();
11935   ;
11936   return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941   (eval $ac_link) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -s conftest$ac_exeext'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   ac_cv_lib_cExt_drand48=yes
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 ac_cv_lib_cExt_drand48=no
11957 fi
11958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11959 LIBS=$ac_check_lib_save_LIBS
11960 fi
11961 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11962 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11963 if test $ac_cv_lib_cExt_drand48 = yes; then
11964   LIBS="$LIBS -lcExt"
11965 fi
11966
11967       else
11968                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11969       fi
11970   ;;
11971 esac
11972
11973
11974 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11975     echo "$as_me:$LINENO: checking for strings.h" >&5
11976 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11977 if test "${ac_cv_header_strings_h+set}" = set; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   ac_cv_header_strings_h=no
11981 fi
11982 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11983 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11984     if test "$ac_cv_header_strings_h" = "no"; then
11985         echo "$as_me:$LINENO: result: forced no into cache" >&5
11986 echo "${ECHO_T}forced no into cache" >&6
11987     else
11988         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11989 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11990     fi
11991 fi
11992 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11993 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11994 if test "${ac_cv_header_stdc+set}" = set; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997   cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 #include <stdlib.h>
12005 #include <stdarg.h>
12006 #include <string.h>
12007 #include <float.h>
12008
12009 int
12010 main ()
12011 {
12012
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019   (eval $ac_compile) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest.$ac_objext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_header_stdc=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_cv_header_stdc=no
12035 fi
12036 rm -f conftest.$ac_objext conftest.$ac_ext
12037
12038 if test $ac_cv_header_stdc = yes; then
12039   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12040   cat >conftest.$ac_ext <<_ACEOF
12041 #line $LINENO "configure"
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047 #include <string.h>
12048
12049 _ACEOF
12050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12051   $EGREP "memchr" >/dev/null 2>&1; then
12052   :
12053 else
12054   ac_cv_header_stdc=no
12055 fi
12056 rm -f conftest*
12057
12058 fi
12059
12060 if test $ac_cv_header_stdc = yes; then
12061   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12062   cat >conftest.$ac_ext <<_ACEOF
12063 #line $LINENO "configure"
12064 /* confdefs.h.  */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h.  */
12069 #include <stdlib.h>
12070
12071 _ACEOF
12072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12073   $EGREP "free" >/dev/null 2>&1; then
12074   :
12075 else
12076   ac_cv_header_stdc=no
12077 fi
12078 rm -f conftest*
12079
12080 fi
12081
12082 if test $ac_cv_header_stdc = yes; then
12083   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12084   if test "$cross_compiling" = yes; then
12085   :
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 #line $LINENO "configure"
12089 /* confdefs.h.  */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h.  */
12094 #include <ctype.h>
12095 #if ((' ' & 0x0FF) == 0x020)
12096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12098 #else
12099 # define ISLOWER(c) \
12100                    (('a' <= (c) && (c) <= 'i') \
12101                      || ('j' <= (c) && (c) <= 'r') \
12102                      || ('s' <= (c) && (c) <= 'z'))
12103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12104 #endif
12105
12106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12107 int
12108 main ()
12109 {
12110   int i;
12111   for (i = 0; i < 256; i++)
12112     if (XOR (islower (i), ISLOWER (i))
12113         || toupper (i) != TOUPPER (i))
12114       exit(2);
12115   exit (0);
12116 }
12117 _ACEOF
12118 rm -f conftest$ac_exeext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120   (eval $ac_link) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   :
12130 else
12131   echo "$as_me: program exited with status $ac_status" >&5
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 ( exit $ac_status )
12136 ac_cv_header_stdc=no
12137 fi
12138 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12139 fi
12140 fi
12141 fi
12142 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12143 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12144 if test $ac_cv_header_stdc = yes; then
12145
12146 cat >>confdefs.h <<\_ACEOF
12147 #define STDC_HEADERS 1
12148 _ACEOF
12149
12150 fi
12151
12152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12163                   inttypes.h stdint.h unistd.h
12164 do
12165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12166 echo "$as_me:$LINENO: checking for $ac_header" >&5
12167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 $ac_includes_default
12179
12180 #include <$ac_header>
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184   (eval $ac_compile) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -s conftest.$ac_objext'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   eval "$as_ac_Header=yes"
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 eval "$as_ac_Header=no"
12200 fi
12201 rm -f conftest.$ac_objext conftest.$ac_ext
12202 fi
12203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206   cat >>confdefs.h <<_ACEOF
12207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 _ACEOF
12209
12210 fi
12211
12212 done
12213
12214
12215
12216 for ac_header in strings.h
12217 do
12218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12220   echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 fi
12225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12227 else
12228   # Is the header compilable?
12229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12231 cat >conftest.$ac_ext <<_ACEOF
12232 #line $LINENO "configure"
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 $ac_includes_default
12239 #include <$ac_header>
12240 _ACEOF
12241 rm -f conftest.$ac_objext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243   (eval $ac_compile) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -s conftest.$ac_objext'
12248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249   (eval $ac_try) 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; }; then
12253   ac_header_compiler=yes
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 ac_header_compiler=no
12259 fi
12260 rm -f conftest.$ac_objext conftest.$ac_ext
12261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12262 echo "${ECHO_T}$ac_header_compiler" >&6
12263
12264 # Is the header present?
12265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 /* confdefs.h.  */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h.  */
12274 #include <$ac_header>
12275 _ACEOF
12276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } >/dev/null; then
12284   if test -s conftest.err; then
12285     ac_cpp_err=$ac_c_preproc_warn_flag
12286   else
12287     ac_cpp_err=
12288   fi
12289 else
12290   ac_cpp_err=yes
12291 fi
12292 if test -z "$ac_cpp_err"; then
12293   ac_header_preproc=yes
12294 else
12295   echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298   ac_header_preproc=no
12299 fi
12300 rm -f conftest.err conftest.$ac_ext
12301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12302 echo "${ECHO_T}$ac_header_preproc" >&6
12303
12304 # So?  What about this header?
12305 case $ac_header_compiler:$ac_header_preproc in
12306   yes:no )
12307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12311     (
12312       cat <<\_ASBOX
12313 ## ------------------------------------ ##
12314 ## Report this to bug-autoconf@gnu.org. ##
12315 ## ------------------------------------ ##
12316 _ASBOX
12317     ) |
12318       sed "s/^/$as_me: WARNING:     /" >&2
12319     ;;
12320   no:yes )
12321     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12323     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327     (
12328       cat <<\_ASBOX
12329 ## ------------------------------------ ##
12330 ## Report this to bug-autoconf@gnu.org. ##
12331 ## ------------------------------------ ##
12332 _ASBOX
12333     ) |
12334       sed "s/^/$as_me: WARNING:     /" >&2
12335     ;;
12336 esac
12337 echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   eval "$as_ac_Header=$ac_header_preproc"
12343 fi
12344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12346
12347 fi
12348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12349   cat >>confdefs.h <<_ACEOF
12350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12351 _ACEOF
12352
12353 fi
12354
12355 done
12356
12357
12358
12359 for ac_header in stdlib.h
12360 do
12361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12363   echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 fi
12368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12370 else
12371   # Is the header compilable?
12372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381 $ac_includes_default
12382 #include <$ac_header>
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386   (eval $ac_compile) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -s conftest.$ac_objext'
12391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392   (eval $ac_try) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; }; then
12396   ac_header_compiler=yes
12397 else
12398   echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ac_header_compiler=no
12402 fi
12403 rm -f conftest.$ac_objext conftest.$ac_ext
12404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12405 echo "${ECHO_T}$ac_header_compiler" >&6
12406
12407 # Is the header present?
12408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 #include <$ac_header>
12418 _ACEOF
12419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } >/dev/null; then
12427   if test -s conftest.err; then
12428     ac_cpp_err=$ac_c_preproc_warn_flag
12429   else
12430     ac_cpp_err=
12431   fi
12432 else
12433   ac_cpp_err=yes
12434 fi
12435 if test -z "$ac_cpp_err"; then
12436   ac_header_preproc=yes
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441   ac_header_preproc=no
12442 fi
12443 rm -f conftest.err conftest.$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6
12446
12447 # So?  What about this header?
12448 case $ac_header_compiler:$ac_header_preproc in
12449   yes:no )
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12454     (
12455       cat <<\_ASBOX
12456 ## ------------------------------------ ##
12457 ## Report this to bug-autoconf@gnu.org. ##
12458 ## ------------------------------------ ##
12459 _ASBOX
12460     ) |
12461       sed "s/^/$as_me: WARNING:     /" >&2
12462     ;;
12463   no:yes )
12464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470     (
12471       cat <<\_ASBOX
12472 ## ------------------------------------ ##
12473 ## Report this to bug-autoconf@gnu.org. ##
12474 ## ------------------------------------ ##
12475 _ASBOX
12476     ) |
12477       sed "s/^/$as_me: WARNING:     /" >&2
12478     ;;
12479 esac
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   eval "$as_ac_Header=$ac_header_preproc"
12486 fi
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12489
12490 fi
12491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12492   cat >>confdefs.h <<_ACEOF
12493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12494 _ACEOF
12495
12496 fi
12497
12498 done
12499
12500
12501 for ac_header in malloc.h
12502 do
12503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12505   echo "$as_me:$LINENO: checking for $ac_header" >&5
12506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 fi
12510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12512 else
12513   # Is the header compilable?
12514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12516 cat >conftest.$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12518 /* confdefs.h.  */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h.  */
12523 $ac_includes_default
12524 #include <$ac_header>
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528   (eval $ac_compile) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -s conftest.$ac_objext'
12533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534   (eval $ac_try) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; }; then
12538   ac_header_compiler=yes
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ac_header_compiler=no
12544 fi
12545 rm -f conftest.$ac_objext conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12548
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12553 #line $LINENO "configure"
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 #include <$ac_header>
12560 _ACEOF
12561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } >/dev/null; then
12569   if test -s conftest.err; then
12570     ac_cpp_err=$ac_c_preproc_warn_flag
12571   else
12572     ac_cpp_err=
12573   fi
12574 else
12575   ac_cpp_err=yes
12576 fi
12577 if test -z "$ac_cpp_err"; then
12578   ac_header_preproc=yes
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583   ac_header_preproc=no
12584 fi
12585 rm -f conftest.err conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12588
12589 # So?  What about this header?
12590 case $ac_header_compiler:$ac_header_preproc in
12591   yes:no )
12592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12596     (
12597       cat <<\_ASBOX
12598 ## ------------------------------------ ##
12599 ## Report this to bug-autoconf@gnu.org. ##
12600 ## ------------------------------------ ##
12601 _ASBOX
12602     ) |
12603       sed "s/^/$as_me: WARNING:     /" >&2
12604     ;;
12605   no:yes )
12606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12608     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612     (
12613       cat <<\_ASBOX
12614 ## ------------------------------------ ##
12615 ## Report this to bug-autoconf@gnu.org. ##
12616 ## ------------------------------------ ##
12617 _ASBOX
12618     ) |
12619       sed "s/^/$as_me: WARNING:     /" >&2
12620     ;;
12621 esac
12622 echo "$as_me:$LINENO: checking for $ac_header" >&5
12623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12625   echo $ECHO_N "(cached) $ECHO_C" >&6
12626 else
12627   eval "$as_ac_Header=$ac_header_preproc"
12628 fi
12629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12631
12632 fi
12633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12634   cat >>confdefs.h <<_ACEOF
12635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12636 _ACEOF
12637
12638 fi
12639
12640 done
12641
12642
12643 for ac_header in unistd.h
12644 do
12645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12647   echo "$as_me:$LINENO: checking for $ac_header" >&5
12648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 fi
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12654 else
12655   # Is the header compilable?
12656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12658 cat >conftest.$ac_ext <<_ACEOF
12659 #line $LINENO "configure"
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665 $ac_includes_default
12666 #include <$ac_header>
12667 _ACEOF
12668 rm -f conftest.$ac_objext
12669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670   (eval $ac_compile) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } &&
12674          { ac_try='test -s conftest.$ac_objext'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; }; then
12680   ac_header_compiler=yes
12681 else
12682   echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 ac_header_compiler=no
12686 fi
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12689 echo "${ECHO_T}$ac_header_compiler" >&6
12690
12691 # Is the header present?
12692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701 #include <$ac_header>
12702 _ACEOF
12703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } >/dev/null; then
12711   if test -s conftest.err; then
12712     ac_cpp_err=$ac_c_preproc_warn_flag
12713   else
12714     ac_cpp_err=
12715   fi
12716 else
12717   ac_cpp_err=yes
12718 fi
12719 if test -z "$ac_cpp_err"; then
12720   ac_header_preproc=yes
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725   ac_header_preproc=no
12726 fi
12727 rm -f conftest.err conftest.$ac_ext
12728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12729 echo "${ECHO_T}$ac_header_preproc" >&6
12730
12731 # So?  What about this header?
12732 case $ac_header_compiler:$ac_header_preproc in
12733   yes:no )
12734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12738     (
12739       cat <<\_ASBOX
12740 ## ------------------------------------ ##
12741 ## Report this to bug-autoconf@gnu.org. ##
12742 ## ------------------------------------ ##
12743 _ASBOX
12744     ) |
12745       sed "s/^/$as_me: WARNING:     /" >&2
12746     ;;
12747   no:yes )
12748     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12750     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754     (
12755       cat <<\_ASBOX
12756 ## ------------------------------------ ##
12757 ## Report this to bug-autoconf@gnu.org. ##
12758 ## ------------------------------------ ##
12759 _ASBOX
12760     ) |
12761       sed "s/^/$as_me: WARNING:     /" >&2
12762     ;;
12763 esac
12764 echo "$as_me:$LINENO: checking for $ac_header" >&5
12765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   eval "$as_ac_Header=$ac_header_preproc"
12770 fi
12771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12773
12774 fi
12775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12776   cat >>confdefs.h <<_ACEOF
12777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778 _ACEOF
12779
12780 fi
12781
12782 done
12783
12784
12785 for ac_header in wchar.h
12786 do
12787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12789   echo "$as_me:$LINENO: checking for $ac_header" >&5
12790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 fi
12794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12796 else
12797   # Is the header compilable?
12798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12800 cat >conftest.$ac_ext <<_ACEOF
12801 #line $LINENO "configure"
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 $ac_includes_default
12808 #include <$ac_header>
12809 _ACEOF
12810 rm -f conftest.$ac_objext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812   (eval $ac_compile) 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } &&
12816          { ac_try='test -s conftest.$ac_objext'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822   ac_header_compiler=yes
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827 ac_header_compiler=no
12828 fi
12829 rm -f conftest.$ac_objext conftest.$ac_ext
12830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12831 echo "${ECHO_T}$ac_header_compiler" >&6
12832
12833 # Is the header present?
12834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 #include <$ac_header>
12844 _ACEOF
12845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12847   ac_status=$?
12848   grep -v '^ *+' conftest.er1 >conftest.err
12849   rm -f conftest.er1
12850   cat conftest.err >&5
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } >/dev/null; then
12853   if test -s conftest.err; then
12854     ac_cpp_err=$ac_c_preproc_warn_flag
12855   else
12856     ac_cpp_err=
12857   fi
12858 else
12859   ac_cpp_err=yes
12860 fi
12861 if test -z "$ac_cpp_err"; then
12862   ac_header_preproc=yes
12863 else
12864   echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867   ac_header_preproc=no
12868 fi
12869 rm -f conftest.err conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12871 echo "${ECHO_T}$ac_header_preproc" >&6
12872
12873 # So?  What about this header?
12874 case $ac_header_compiler:$ac_header_preproc in
12875   yes:no )
12876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880     (
12881       cat <<\_ASBOX
12882 ## ------------------------------------ ##
12883 ## Report this to bug-autoconf@gnu.org. ##
12884 ## ------------------------------------ ##
12885 _ASBOX
12886     ) |
12887       sed "s/^/$as_me: WARNING:     /" >&2
12888     ;;
12889   no:yes )
12890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12892     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12896     (
12897       cat <<\_ASBOX
12898 ## ------------------------------------ ##
12899 ## Report this to bug-autoconf@gnu.org. ##
12900 ## ------------------------------------ ##
12901 _ASBOX
12902     ) |
12903       sed "s/^/$as_me: WARNING:     /" >&2
12904     ;;
12905 esac
12906 echo "$as_me:$LINENO: checking for $ac_header" >&5
12907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12909   echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911   eval "$as_ac_Header=$ac_header_preproc"
12912 fi
12913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12915
12916 fi
12917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12918   cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12920 _ACEOF
12921
12922 fi
12923
12924 done
12925
12926
12927 if test "$ac_cv_header_wchar_h" != "yes"; then
12928
12929 for ac_header in wcstr.h
12930 do
12931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933   echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 fi
12938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12940 else
12941   # Is the header compilable?
12942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12944 cat >conftest.$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 $ac_includes_default
12952 #include <$ac_header>
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -s conftest.$ac_objext'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; }; then
12966   ac_header_compiler=yes
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 ac_header_compiler=no
12972 fi
12973 rm -f conftest.$ac_objext conftest.$ac_ext
12974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12975 echo "${ECHO_T}$ac_header_compiler" >&6
12976
12977 # Is the header present?
12978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12980 cat >conftest.$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12982 /* confdefs.h.  */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h.  */
12987 #include <$ac_header>
12988 _ACEOF
12989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12991   ac_status=$?
12992   grep -v '^ *+' conftest.er1 >conftest.err
12993   rm -f conftest.er1
12994   cat conftest.err >&5
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); } >/dev/null; then
12997   if test -s conftest.err; then
12998     ac_cpp_err=$ac_c_preproc_warn_flag
12999   else
13000     ac_cpp_err=
13001   fi
13002 else
13003   ac_cpp_err=yes
13004 fi
13005 if test -z "$ac_cpp_err"; then
13006   ac_header_preproc=yes
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011   ac_header_preproc=no
13012 fi
13013 rm -f conftest.err conftest.$ac_ext
13014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13015 echo "${ECHO_T}$ac_header_preproc" >&6
13016
13017 # So?  What about this header?
13018 case $ac_header_compiler:$ac_header_preproc in
13019   yes:no )
13020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13024     (
13025       cat <<\_ASBOX
13026 ## ------------------------------------ ##
13027 ## Report this to bug-autoconf@gnu.org. ##
13028 ## ------------------------------------ ##
13029 _ASBOX
13030     ) |
13031       sed "s/^/$as_me: WARNING:     /" >&2
13032     ;;
13033   no:yes )
13034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13040     (
13041       cat <<\_ASBOX
13042 ## ------------------------------------ ##
13043 ## Report this to bug-autoconf@gnu.org. ##
13044 ## ------------------------------------ ##
13045 _ASBOX
13046     ) |
13047       sed "s/^/$as_me: WARNING:     /" >&2
13048     ;;
13049 esac
13050 echo "$as_me:$LINENO: checking for $ac_header" >&5
13051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   eval "$as_ac_Header=$ac_header_preproc"
13056 fi
13057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13059
13060 fi
13061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13062   cat >>confdefs.h <<_ACEOF
13063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13064 _ACEOF
13065
13066 fi
13067
13068 done
13069
13070 fi
13071
13072
13073 for ac_header in fnmatch.h
13074 do
13075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13077   echo "$as_me:$LINENO: checking for $ac_header" >&5
13078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 fi
13082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084 else
13085   # Is the header compilable?
13086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13088 cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 $ac_includes_default
13096 #include <$ac_header>
13097 _ACEOF
13098 rm -f conftest.$ac_objext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100   (eval $ac_compile) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -s conftest.$ac_objext'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_header_compiler=yes
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115 ac_header_compiler=no
13116 fi
13117 rm -f conftest.$ac_objext conftest.$ac_ext
13118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119 echo "${ECHO_T}$ac_header_compiler" >&6
13120
13121 # Is the header present?
13122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line $LINENO "configure"
13126 /* confdefs.h.  */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h.  */
13131 #include <$ac_header>
13132 _ACEOF
13133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } >/dev/null; then
13141   if test -s conftest.err; then
13142     ac_cpp_err=$ac_c_preproc_warn_flag
13143   else
13144     ac_cpp_err=
13145   fi
13146 else
13147   ac_cpp_err=yes
13148 fi
13149 if test -z "$ac_cpp_err"; then
13150   ac_header_preproc=yes
13151 else
13152   echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155   ac_header_preproc=no
13156 fi
13157 rm -f conftest.err conftest.$ac_ext
13158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13159 echo "${ECHO_T}$ac_header_preproc" >&6
13160
13161 # So?  What about this header?
13162 case $ac_header_compiler:$ac_header_preproc in
13163   yes:no )
13164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13168     (
13169       cat <<\_ASBOX
13170 ## ------------------------------------ ##
13171 ## Report this to bug-autoconf@gnu.org. ##
13172 ## ------------------------------------ ##
13173 _ASBOX
13174     ) |
13175       sed "s/^/$as_me: WARNING:     /" >&2
13176     ;;
13177   no:yes )
13178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13180     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13184     (
13185       cat <<\_ASBOX
13186 ## ------------------------------------ ##
13187 ## Report this to bug-autoconf@gnu.org. ##
13188 ## ------------------------------------ ##
13189 _ASBOX
13190     ) |
13191       sed "s/^/$as_me: WARNING:     /" >&2
13192     ;;
13193 esac
13194 echo "$as_me:$LINENO: checking for $ac_header" >&5
13195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   eval "$as_ac_Header=$ac_header_preproc"
13200 fi
13201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13203
13204 fi
13205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13206   cat >>confdefs.h <<_ACEOF
13207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13208 _ACEOF
13209
13210 fi
13211
13212 done
13213
13214
13215 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13216
13217 for ac_func in fnmatch
13218 do
13219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13220 echo "$as_me:$LINENO: checking for $ac_func" >&5
13221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13222 if eval "test \"\${$as_ac_var+set}\" = set"; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   cat >conftest.$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232 /* System header to define __stub macros and hopefully few prototypes,
13233     which can conflict with char $ac_func (); below.
13234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13235     <limits.h> exists even on freestanding compilers.  */
13236 #ifdef __STDC__
13237 # include <limits.h>
13238 #else
13239 # include <assert.h>
13240 #endif
13241 /* Override any gcc2 internal prototype to avoid an error.  */
13242 #ifdef __cplusplus
13243 extern "C"
13244 {
13245 #endif
13246 /* We use char because int might match the return type of a gcc2
13247    builtin and then its argument prototype would still apply.  */
13248 char $ac_func ();
13249 /* The GNU C library defines this for functions which it implements
13250     to always fail with ENOSYS.  Some functions are actually named
13251     something starting with __ and the normal name is an alias.  */
13252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13253 choke me
13254 #else
13255 char (*f) () = $ac_func;
13256 #endif
13257 #ifdef __cplusplus
13258 }
13259 #endif
13260
13261 int
13262 main ()
13263 {
13264 return f != $ac_func;
13265   ;
13266   return 0;
13267 }
13268 _ACEOF
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271   (eval $ac_link) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } &&
13275          { ac_try='test -s conftest$ac_exeext'
13276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277   (eval $ac_try) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   eval "$as_ac_var=yes"
13282 else
13283   echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286 eval "$as_ac_var=no"
13287 fi
13288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13289 fi
13290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13292 if test `eval echo '${'$as_ac_var'}'` = yes; then
13293   cat >>confdefs.h <<_ACEOF
13294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13295 _ACEOF
13296
13297 fi
13298 done
13299
13300 fi
13301
13302
13303 for ac_header in langinfo.h
13304 do
13305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13307   echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 fi
13312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314 else
13315   # Is the header compilable?
13316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13318 cat >conftest.$ac_ext <<_ACEOF
13319 #line $LINENO "configure"
13320 /* confdefs.h.  */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h.  */
13325 $ac_includes_default
13326 #include <$ac_header>
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330   (eval $ac_compile) 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } &&
13334          { ac_try='test -s conftest.$ac_objext'
13335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336   (eval $ac_try) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; }; then
13340   ac_header_compiler=yes
13341 else
13342   echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ac_header_compiler=no
13346 fi
13347 rm -f conftest.$ac_objext conftest.$ac_ext
13348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13349 echo "${ECHO_T}$ac_header_compiler" >&6
13350
13351 # Is the header present?
13352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13354 cat >conftest.$ac_ext <<_ACEOF
13355 #line $LINENO "configure"
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 #include <$ac_header>
13362 _ACEOF
13363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13365   ac_status=$?
13366   grep -v '^ *+' conftest.er1 >conftest.err
13367   rm -f conftest.er1
13368   cat conftest.err >&5
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); } >/dev/null; then
13371   if test -s conftest.err; then
13372     ac_cpp_err=$ac_c_preproc_warn_flag
13373   else
13374     ac_cpp_err=
13375   fi
13376 else
13377   ac_cpp_err=yes
13378 fi
13379 if test -z "$ac_cpp_err"; then
13380   ac_header_preproc=yes
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385   ac_header_preproc=no
13386 fi
13387 rm -f conftest.err conftest.$ac_ext
13388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13389 echo "${ECHO_T}$ac_header_preproc" >&6
13390
13391 # So?  What about this header?
13392 case $ac_header_compiler:$ac_header_preproc in
13393   yes:no )
13394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13398     (
13399       cat <<\_ASBOX
13400 ## ------------------------------------ ##
13401 ## Report this to bug-autoconf@gnu.org. ##
13402 ## ------------------------------------ ##
13403 _ASBOX
13404     ) |
13405       sed "s/^/$as_me: WARNING:     /" >&2
13406     ;;
13407   no:yes )
13408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13410     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414     (
13415       cat <<\_ASBOX
13416 ## ------------------------------------ ##
13417 ## Report this to bug-autoconf@gnu.org. ##
13418 ## ------------------------------------ ##
13419 _ASBOX
13420     ) |
13421       sed "s/^/$as_me: WARNING:     /" >&2
13422     ;;
13423 esac
13424 echo "$as_me:$LINENO: checking for $ac_header" >&5
13425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13427   echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429   eval "$as_ac_Header=$ac_header_preproc"
13430 fi
13431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13433
13434 fi
13435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13436   cat >>confdefs.h <<_ACEOF
13437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13438 _ACEOF
13439
13440 fi
13441
13442 done
13443
13444
13445 case "${host}" in
13446   *-pc-os2_emx | *-pc-os2-emx )
13447             if test $ac_cv_header_langinfo_h = "yes"; then
13448           LIBS="$LIBS -lintl"
13449       fi
13450   ;;
13451 esac
13452
13453 if test "$wxUSE_GUI" = "yes"; then
13454     if test "$wxUSE_UNIX" = "yes"; then
13455
13456 for ac_header in X11/XKBlib.h
13457 do
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13460   echo "$as_me:$LINENO: checking for $ac_header" >&5
13461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 fi
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13467 else
13468   # Is the header compilable?
13469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13471 cat >conftest.$ac_ext <<_ACEOF
13472 #line $LINENO "configure"
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 $ac_includes_default
13479 #include <$ac_header>
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13483   (eval $ac_compile) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } &&
13487          { ac_try='test -s conftest.$ac_objext'
13488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489   (eval $ac_try) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; }; then
13493   ac_header_compiler=yes
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_header_compiler=no
13499 fi
13500 rm -f conftest.$ac_objext conftest.$ac_ext
13501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13502 echo "${ECHO_T}$ac_header_compiler" >&6
13503
13504 # Is the header present?
13505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514 #include <$ac_header>
13515 _ACEOF
13516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13518   ac_status=$?
13519   grep -v '^ *+' conftest.er1 >conftest.err
13520   rm -f conftest.er1
13521   cat conftest.err >&5
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); } >/dev/null; then
13524   if test -s conftest.err; then
13525     ac_cpp_err=$ac_c_preproc_warn_flag
13526   else
13527     ac_cpp_err=
13528   fi
13529 else
13530   ac_cpp_err=yes
13531 fi
13532 if test -z "$ac_cpp_err"; then
13533   ac_header_preproc=yes
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538   ac_header_preproc=no
13539 fi
13540 rm -f conftest.err conftest.$ac_ext
13541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13542 echo "${ECHO_T}$ac_header_preproc" >&6
13543
13544 # So?  What about this header?
13545 case $ac_header_compiler:$ac_header_preproc in
13546   yes:no )
13547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13551     (
13552       cat <<\_ASBOX
13553 ## ------------------------------------ ##
13554 ## Report this to bug-autoconf@gnu.org. ##
13555 ## ------------------------------------ ##
13556 _ASBOX
13557     ) |
13558       sed "s/^/$as_me: WARNING:     /" >&2
13559     ;;
13560   no:yes )
13561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13563     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567     (
13568       cat <<\_ASBOX
13569 ## ------------------------------------ ##
13570 ## Report this to bug-autoconf@gnu.org. ##
13571 ## ------------------------------------ ##
13572 _ASBOX
13573     ) |
13574       sed "s/^/$as_me: WARNING:     /" >&2
13575     ;;
13576 esac
13577 echo "$as_me:$LINENO: checking for $ac_header" >&5
13578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   eval "$as_ac_Header=$ac_header_preproc"
13583 fi
13584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13586
13587 fi
13588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13589   cat >>confdefs.h <<_ACEOF
13590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13591 _ACEOF
13592
13593 fi
13594
13595 done
13596
13597     fi
13598 fi
13599
13600
13601 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13602 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13603 if test "${ac_cv_c_const+set}" = set; then
13604   echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606   cat >conftest.$ac_ext <<_ACEOF
13607 #line $LINENO "configure"
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613
13614 int
13615 main ()
13616 {
13617 /* FIXME: Include the comments suggested by Paul. */
13618 #ifndef __cplusplus
13619   /* Ultrix mips cc rejects this.  */
13620   typedef int charset[2];
13621   const charset x;
13622   /* SunOS 4.1.1 cc rejects this.  */
13623   char const *const *ccp;
13624   char **p;
13625   /* NEC SVR4.0.2 mips cc rejects this.  */
13626   struct point {int x, y;};
13627   static struct point const zero = {0,0};
13628   /* AIX XL C 1.02.0.0 rejects this.
13629      It does not let you subtract one const X* pointer from another in
13630      an arm of an if-expression whose if-part is not a constant
13631      expression */
13632   const char *g = "string";
13633   ccp = &g + (g ? g-g : 0);
13634   /* HPUX 7.0 cc rejects these. */
13635   ++ccp;
13636   p = (char**) ccp;
13637   ccp = (char const *const *) p;
13638   { /* SCO 3.2v4 cc rejects this.  */
13639     char *t;
13640     char const *s = 0 ? (char *) 0 : (char const *) 0;
13641
13642     *t++ = 0;
13643   }
13644   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13645     int x[] = {25, 17};
13646     const int *foo = &x[0];
13647     ++foo;
13648   }
13649   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13650     typedef const int *iptr;
13651     iptr p = 0;
13652     ++p;
13653   }
13654   { /* AIX XL C 1.02.0.0 rejects this saying
13655        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13656     struct s { int j; const int *ap[3]; };
13657     struct s *b; b->j = 5;
13658   }
13659   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13660     const int foo = 10;
13661   }
13662 #endif
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670   (eval $ac_compile) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -s conftest.$ac_objext'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   ac_cv_c_const=yes
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ac_cv_c_const=no
13686 fi
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13690 echo "${ECHO_T}$ac_cv_c_const" >&6
13691 if test $ac_cv_c_const = no; then
13692
13693 cat >>confdefs.h <<\_ACEOF
13694 #define const
13695 _ACEOF
13696
13697 fi
13698
13699 echo "$as_me:$LINENO: checking for inline" >&5
13700 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13701 if test "${ac_cv_c_inline+set}" = set; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 else
13704   ac_cv_c_inline=no
13705 for ac_kw in inline __inline__ __inline; do
13706   cat >conftest.$ac_ext <<_ACEOF
13707 #line $LINENO "configure"
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 #ifndef __cplusplus
13714 typedef int foo_t;
13715 static $ac_kw foo_t static_foo () {return 0; }
13716 $ac_kw foo_t foo () {return 0; }
13717 #endif
13718
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722   (eval $ac_compile) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } &&
13726          { ac_try='test -s conftest.$ac_objext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_c_inline=$ac_kw; break
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 fi
13738 rm -f conftest.$ac_objext conftest.$ac_ext
13739 done
13740
13741 fi
13742 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13743 echo "${ECHO_T}$ac_cv_c_inline" >&6
13744 case $ac_cv_c_inline in
13745   inline | yes) ;;
13746   no)
13747 cat >>confdefs.h <<\_ACEOF
13748 #define inline
13749 _ACEOF
13750  ;;
13751   *)  cat >>confdefs.h <<_ACEOF
13752 #define inline $ac_cv_c_inline
13753 _ACEOF
13754  ;;
13755 esac
13756
13757
13758 echo "$as_me:$LINENO: checking for char" >&5
13759 echo $ECHO_N "checking for char... $ECHO_C" >&6
13760 if test "${ac_cv_type_char+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   cat >conftest.$ac_ext <<_ACEOF
13764 #line $LINENO "configure"
13765 /* confdefs.h.  */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h.  */
13770 $ac_includes_default
13771 int
13772 main ()
13773 {
13774 if ((char *) 0)
13775   return 0;
13776 if (sizeof (char))
13777   return 0;
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13784   (eval $ac_compile) 2>&5
13785   ac_status=$?
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -s conftest.$ac_objext'
13789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790   (eval $ac_try) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; }; then
13794   ac_cv_type_char=yes
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ac_cv_type_char=no
13800 fi
13801 rm -f conftest.$ac_objext conftest.$ac_ext
13802 fi
13803 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13804 echo "${ECHO_T}$ac_cv_type_char" >&6
13805
13806 echo "$as_me:$LINENO: checking size of char" >&5
13807 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13808 if test "${ac_cv_sizeof_char+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   if test "$ac_cv_type_char" = yes; then
13812   # The cast to unsigned long works around a bug in the HP C Compiler
13813   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13814   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13815   # This bug is HP SR number 8606223364.
13816   if test "$cross_compiling" = yes; then
13817   # Depending upon the size, compute the lo and hi bounds.
13818 cat >conftest.$ac_ext <<_ACEOF
13819 #line $LINENO "configure"
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 $ac_includes_default
13826 int
13827 main ()
13828 {
13829 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13830 test_array [0] = 0
13831
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838   (eval $ac_compile) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -s conftest.$ac_objext'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   ac_lo=0 ac_mid=0
13849   while :; do
13850     cat >conftest.$ac_ext <<_ACEOF
13851 #line $LINENO "configure"
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857 $ac_includes_default
13858 int
13859 main ()
13860 {
13861 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13862 test_array [0] = 0
13863
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13870   (eval $ac_compile) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -s conftest.$ac_objext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_hi=$ac_mid; break
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_lo=`expr $ac_mid + 1`
13886                     if test $ac_lo -le $ac_mid; then
13887                       ac_lo= ac_hi=
13888                       break
13889                     fi
13890                     ac_mid=`expr 2 '*' $ac_mid + 1`
13891 fi
13892 rm -f conftest.$ac_objext conftest.$ac_ext
13893   done
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 cat >conftest.$ac_ext <<_ACEOF
13899 #line $LINENO "configure"
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905 $ac_includes_default
13906 int
13907 main ()
13908 {
13909 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13910 test_array [0] = 0
13911
13912   ;
13913   return 0;
13914 }
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13918   (eval $ac_compile) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } &&
13922          { ac_try='test -s conftest.$ac_objext'
13923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924   (eval $ac_try) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; }; then
13928   ac_hi=-1 ac_mid=-1
13929   while :; do
13930     cat >conftest.$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13932 /* confdefs.h.  */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h.  */
13937 $ac_includes_default
13938 int
13939 main ()
13940 {
13941 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13942 test_array [0] = 0
13943
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } &&
13954          { ac_try='test -s conftest.$ac_objext'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; }; then
13960   ac_lo=$ac_mid; break
13961 else
13962   echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_hi=`expr '(' $ac_mid ')' - 1`
13966                        if test $ac_mid -le $ac_hi; then
13967                          ac_lo= ac_hi=
13968                          break
13969                        fi
13970                        ac_mid=`expr 2 '*' $ac_mid`
13971 fi
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13973   done
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 ac_lo= ac_hi=
13979 fi
13980 rm -f conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13983 # Binary search between lo and hi bounds.
13984 while test "x$ac_lo" != "x$ac_hi"; do
13985   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13986   cat >conftest.$ac_ext <<_ACEOF
13987 #line $LINENO "configure"
13988 /* confdefs.h.  */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h.  */
13993 $ac_includes_default
13994 int
13995 main ()
13996 {
13997 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13998 test_array [0] = 0
13999
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006   (eval $ac_compile) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -s conftest.$ac_objext'
14011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012   (eval $ac_try) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   ac_hi=$ac_mid
14017 else
14018   echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 ac_lo=`expr '(' $ac_mid ')' + 1`
14022 fi
14023 rm -f conftest.$ac_objext conftest.$ac_ext
14024 done
14025 case $ac_lo in
14026 ?*) ac_cv_sizeof_char=$ac_lo;;
14027 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14028 See \`config.log' for more details." >&5
14029 echo "$as_me: error: cannot compute sizeof (char), 77
14030 See \`config.log' for more details." >&2;}
14031    { (exit 1); exit 1; }; } ;;
14032 esac
14033 else
14034   if test "$cross_compiling" = yes; then
14035   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14036 See \`config.log' for more details." >&5
14037 echo "$as_me: error: cannot run test program while cross compiling
14038 See \`config.log' for more details." >&2;}
14039    { (exit 1); exit 1; }; }
14040 else
14041   cat >conftest.$ac_ext <<_ACEOF
14042 #line $LINENO "configure"
14043 /* confdefs.h.  */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h.  */
14048 $ac_includes_default
14049 long longval () { return (long) (sizeof (char)); }
14050 unsigned long ulongval () { return (long) (sizeof (char)); }
14051 #include <stdio.h>
14052 #include <stdlib.h>
14053 int
14054 main ()
14055 {
14056
14057   FILE *f = fopen ("conftest.val", "w");
14058   if (! f)
14059     exit (1);
14060   if (((long) (sizeof (char))) < 0)
14061     {
14062       long i = longval ();
14063       if (i != ((long) (sizeof (char))))
14064         exit (1);
14065       fprintf (f, "%ld\n", i);
14066     }
14067   else
14068     {
14069       unsigned long i = ulongval ();
14070       if (i != ((long) (sizeof (char))))
14071         exit (1);
14072       fprintf (f, "%lu\n", i);
14073     }
14074   exit (ferror (f) || fclose (f) != 0);
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082   (eval $ac_link) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   ac_cv_sizeof_char=`cat conftest.val`
14092 else
14093   echo "$as_me: program exited with status $ac_status" >&5
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ( exit $ac_status )
14098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14099 See \`config.log' for more details." >&5
14100 echo "$as_me: error: cannot compute sizeof (char), 77
14101 See \`config.log' for more details." >&2;}
14102    { (exit 1); exit 1; }; }
14103 fi
14104 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 fi
14107 rm -f conftest.val
14108 else
14109   ac_cv_sizeof_char=0
14110 fi
14111 fi
14112 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14113 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14114 cat >>confdefs.h <<_ACEOF
14115 #define SIZEOF_CHAR $ac_cv_sizeof_char
14116 _ACEOF
14117
14118
14119 echo "$as_me:$LINENO: checking for short" >&5
14120 echo $ECHO_N "checking for short... $ECHO_C" >&6
14121 if test "${ac_cv_type_short+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   cat >conftest.$ac_ext <<_ACEOF
14125 #line $LINENO "configure"
14126 /* confdefs.h.  */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h.  */
14131 $ac_includes_default
14132 int
14133 main ()
14134 {
14135 if ((short *) 0)
14136   return 0;
14137 if (sizeof (short))
14138   return 0;
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 rm -f conftest.$ac_objext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145   (eval $ac_compile) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } &&
14149          { ac_try='test -s conftest.$ac_objext'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; }; then
14155   ac_cv_type_short=yes
14156 else
14157   echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160 ac_cv_type_short=no
14161 fi
14162 rm -f conftest.$ac_objext conftest.$ac_ext
14163 fi
14164 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14165 echo "${ECHO_T}$ac_cv_type_short" >&6
14166
14167 echo "$as_me:$LINENO: checking size of short" >&5
14168 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14169 if test "${ac_cv_sizeof_short+set}" = set; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172   if test "$ac_cv_type_short" = yes; then
14173   # The cast to unsigned long works around a bug in the HP C Compiler
14174   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14175   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14176   # This bug is HP SR number 8606223364.
14177   if test "$cross_compiling" = yes; then
14178   # Depending upon the size, compute the lo and hi bounds.
14179 cat >conftest.$ac_ext <<_ACEOF
14180 #line $LINENO "configure"
14181 /* confdefs.h.  */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h.  */
14186 $ac_includes_default
14187 int
14188 main ()
14189 {
14190 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14191 test_array [0] = 0
14192
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199   (eval $ac_compile) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); } &&
14203          { ac_try='test -s conftest.$ac_objext'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; }; then
14209   ac_lo=0 ac_mid=0
14210   while :; do
14211     cat >conftest.$ac_ext <<_ACEOF
14212 #line $LINENO "configure"
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218 $ac_includes_default
14219 int
14220 main ()
14221 {
14222 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14223 test_array [0] = 0
14224
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14231   (eval $ac_compile) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } &&
14235          { ac_try='test -s conftest.$ac_objext'
14236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237   (eval $ac_try) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }; }; then
14241   ac_hi=$ac_mid; break
14242 else
14243   echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ac_lo=`expr $ac_mid + 1`
14247                     if test $ac_lo -le $ac_mid; then
14248                       ac_lo= ac_hi=
14249                       break
14250                     fi
14251                     ac_mid=`expr 2 '*' $ac_mid + 1`
14252 fi
14253 rm -f conftest.$ac_objext conftest.$ac_ext
14254   done
14255 else
14256   echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 cat >conftest.$ac_ext <<_ACEOF
14260 #line $LINENO "configure"
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 $ac_includes_default
14267 int
14268 main ()
14269 {
14270 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14271 test_array [0] = 0
14272
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279   (eval $ac_compile) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_hi=-1 ac_mid=-1
14290   while :; do
14291     cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298 $ac_includes_default
14299 int
14300 main ()
14301 {
14302 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14303 test_array [0] = 0
14304
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311   (eval $ac_compile) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -s conftest.$ac_objext'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   ac_lo=$ac_mid; break
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ac_hi=`expr '(' $ac_mid ')' - 1`
14327                        if test $ac_mid -le $ac_hi; then
14328                          ac_lo= ac_hi=
14329                          break
14330                        fi
14331                        ac_mid=`expr 2 '*' $ac_mid`
14332 fi
14333 rm -f conftest.$ac_objext conftest.$ac_ext
14334   done
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ac_lo= ac_hi=
14340 fi
14341 rm -f conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14344 # Binary search between lo and hi bounds.
14345 while test "x$ac_lo" != "x$ac_hi"; do
14346   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14347   cat >conftest.$ac_ext <<_ACEOF
14348 #line $LINENO "configure"
14349 /* confdefs.h.  */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h.  */
14354 $ac_includes_default
14355 int
14356 main ()
14357 {
14358 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14359 test_array [0] = 0
14360
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367   (eval $ac_compile) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } &&
14371          { ac_try='test -s conftest.$ac_objext'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_hi=$ac_mid
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_lo=`expr '(' $ac_mid ')' + 1`
14383 fi
14384 rm -f conftest.$ac_objext conftest.$ac_ext
14385 done
14386 case $ac_lo in
14387 ?*) ac_cv_sizeof_short=$ac_lo;;
14388 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14389 See \`config.log' for more details." >&5
14390 echo "$as_me: error: cannot compute sizeof (short), 77
14391 See \`config.log' for more details." >&2;}
14392    { (exit 1); exit 1; }; } ;;
14393 esac
14394 else
14395   if test "$cross_compiling" = yes; then
14396   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14397 See \`config.log' for more details." >&5
14398 echo "$as_me: error: cannot run test program while cross compiling
14399 See \`config.log' for more details." >&2;}
14400    { (exit 1); exit 1; }; }
14401 else
14402   cat >conftest.$ac_ext <<_ACEOF
14403 #line $LINENO "configure"
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409 $ac_includes_default
14410 long longval () { return (long) (sizeof (short)); }
14411 unsigned long ulongval () { return (long) (sizeof (short)); }
14412 #include <stdio.h>
14413 #include <stdlib.h>
14414 int
14415 main ()
14416 {
14417
14418   FILE *f = fopen ("conftest.val", "w");
14419   if (! f)
14420     exit (1);
14421   if (((long) (sizeof (short))) < 0)
14422     {
14423       long i = longval ();
14424       if (i != ((long) (sizeof (short))))
14425         exit (1);
14426       fprintf (f, "%ld\n", i);
14427     }
14428   else
14429     {
14430       unsigned long i = ulongval ();
14431       if (i != ((long) (sizeof (short))))
14432         exit (1);
14433       fprintf (f, "%lu\n", i);
14434     }
14435   exit (ferror (f) || fclose (f) != 0);
14436
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443   (eval $ac_link) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; }; then
14452   ac_cv_sizeof_short=`cat conftest.val`
14453 else
14454   echo "$as_me: program exited with status $ac_status" >&5
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ( exit $ac_status )
14459 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14460 See \`config.log' for more details." >&5
14461 echo "$as_me: error: cannot compute sizeof (short), 77
14462 See \`config.log' for more details." >&2;}
14463    { (exit 1); exit 1; }; }
14464 fi
14465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14466 fi
14467 fi
14468 rm -f conftest.val
14469 else
14470   ac_cv_sizeof_short=0
14471 fi
14472 fi
14473 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14474 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14475 cat >>confdefs.h <<_ACEOF
14476 #define SIZEOF_SHORT $ac_cv_sizeof_short
14477 _ACEOF
14478
14479
14480 echo "$as_me:$LINENO: checking for void *" >&5
14481 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14482 if test "${ac_cv_type_void_p+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   cat >conftest.$ac_ext <<_ACEOF
14486 #line $LINENO "configure"
14487 /* confdefs.h.  */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h.  */
14492 $ac_includes_default
14493 int
14494 main ()
14495 {
14496 if ((void * *) 0)
14497   return 0;
14498 if (sizeof (void *))
14499   return 0;
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506   (eval $ac_compile) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); } &&
14510          { ac_try='test -s conftest.$ac_objext'
14511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512   (eval $ac_try) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   ac_cv_type_void_p=yes
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_cv_type_void_p=no
14522 fi
14523 rm -f conftest.$ac_objext conftest.$ac_ext
14524 fi
14525 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14526 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14527
14528 echo "$as_me:$LINENO: checking size of void *" >&5
14529 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14530 if test "${ac_cv_sizeof_void_p+set}" = set; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   if test "$ac_cv_type_void_p" = yes; then
14534   # The cast to unsigned long works around a bug in the HP C Compiler
14535   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14536   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14537   # This bug is HP SR number 8606223364.
14538   if test "$cross_compiling" = yes; then
14539   # Depending upon the size, compute the lo and hi bounds.
14540 cat >conftest.$ac_ext <<_ACEOF
14541 #line $LINENO "configure"
14542 /* confdefs.h.  */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h.  */
14547 $ac_includes_default
14548 int
14549 main ()
14550 {
14551 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14552 test_array [0] = 0
14553
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560   (eval $ac_compile) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } &&
14564          { ac_try='test -s conftest.$ac_objext'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   ac_lo=0 ac_mid=0
14571   while :; do
14572     cat >conftest.$ac_ext <<_ACEOF
14573 #line $LINENO "configure"
14574 /* confdefs.h.  */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h.  */
14579 $ac_includes_default
14580 int
14581 main ()
14582 {
14583 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14584 test_array [0] = 0
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602   ac_hi=$ac_mid; break
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_lo=`expr $ac_mid + 1`
14608                     if test $ac_lo -le $ac_mid; then
14609                       ac_lo= ac_hi=
14610                       break
14611                     fi
14612                     ac_mid=`expr 2 '*' $ac_mid + 1`
14613 fi
14614 rm -f conftest.$ac_objext conftest.$ac_ext
14615   done
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 cat >conftest.$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 $ac_includes_default
14628 int
14629 main ()
14630 {
14631 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14632 test_array [0] = 0
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640   (eval $ac_compile) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } &&
14644          { ac_try='test -s conftest.$ac_objext'
14645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646   (eval $ac_try) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; }; then
14650   ac_hi=-1 ac_mid=-1
14651   while :; do
14652     cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 $ac_includes_default
14660 int
14661 main ()
14662 {
14663 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14664 test_array [0] = 0
14665
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 rm -f conftest.$ac_objext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14672   (eval $ac_compile) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); } &&
14676          { ac_try='test -s conftest.$ac_objext'
14677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678   (eval $ac_try) 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   ac_lo=$ac_mid; break
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 ac_hi=`expr '(' $ac_mid ')' - 1`
14688                        if test $ac_mid -le $ac_hi; then
14689                          ac_lo= ac_hi=
14690                          break
14691                        fi
14692                        ac_mid=`expr 2 '*' $ac_mid`
14693 fi
14694 rm -f conftest.$ac_objext conftest.$ac_ext
14695   done
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 ac_lo= ac_hi=
14701 fi
14702 rm -f conftest.$ac_objext conftest.$ac_ext
14703 fi
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14705 # Binary search between lo and hi bounds.
14706 while test "x$ac_lo" != "x$ac_hi"; do
14707   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14708   cat >conftest.$ac_ext <<_ACEOF
14709 #line $LINENO "configure"
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715 $ac_includes_default
14716 int
14717 main ()
14718 {
14719 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14720 test_array [0] = 0
14721
14722   ;
14723   return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest.$ac_objext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728   (eval $ac_compile) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } &&
14732          { ac_try='test -s conftest.$ac_objext'
14733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734   (eval $ac_try) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; }; then
14738   ac_hi=$ac_mid
14739 else
14740   echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ac_lo=`expr '(' $ac_mid ')' + 1`
14744 fi
14745 rm -f conftest.$ac_objext conftest.$ac_ext
14746 done
14747 case $ac_lo in
14748 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14749 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14750 See \`config.log' for more details." >&5
14751 echo "$as_me: error: cannot compute sizeof (void *), 77
14752 See \`config.log' for more details." >&2;}
14753    { (exit 1); exit 1; }; } ;;
14754 esac
14755 else
14756   if test "$cross_compiling" = yes; then
14757   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14758 See \`config.log' for more details." >&5
14759 echo "$as_me: error: cannot run test program while cross compiling
14760 See \`config.log' for more details." >&2;}
14761    { (exit 1); exit 1; }; }
14762 else
14763   cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 $ac_includes_default
14771 long longval () { return (long) (sizeof (void *)); }
14772 unsigned long ulongval () { return (long) (sizeof (void *)); }
14773 #include <stdio.h>
14774 #include <stdlib.h>
14775 int
14776 main ()
14777 {
14778
14779   FILE *f = fopen ("conftest.val", "w");
14780   if (! f)
14781     exit (1);
14782   if (((long) (sizeof (void *))) < 0)
14783     {
14784       long i = longval ();
14785       if (i != ((long) (sizeof (void *))))
14786         exit (1);
14787       fprintf (f, "%ld\n", i);
14788     }
14789   else
14790     {
14791       unsigned long i = ulongval ();
14792       if (i != ((long) (sizeof (void *))))
14793         exit (1);
14794       fprintf (f, "%lu\n", i);
14795     }
14796   exit (ferror (f) || fclose (f) != 0);
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest$ac_exeext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804   (eval $ac_link) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; }; then
14813   ac_cv_sizeof_void_p=`cat conftest.val`
14814 else
14815   echo "$as_me: program exited with status $ac_status" >&5
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ( exit $ac_status )
14820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14821 See \`config.log' for more details." >&5
14822 echo "$as_me: error: cannot compute sizeof (void *), 77
14823 See \`config.log' for more details." >&2;}
14824    { (exit 1); exit 1; }; }
14825 fi
14826 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14827 fi
14828 fi
14829 rm -f conftest.val
14830 else
14831   ac_cv_sizeof_void_p=0
14832 fi
14833 fi
14834 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14835 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14836 cat >>confdefs.h <<_ACEOF
14837 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14838 _ACEOF
14839
14840
14841 echo "$as_me:$LINENO: checking for int" >&5
14842 echo $ECHO_N "checking for int... $ECHO_C" >&6
14843 if test "${ac_cv_type_int+set}" = set; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846   cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 $ac_includes_default
14854 int
14855 main ()
14856 {
14857 if ((int *) 0)
14858   return 0;
14859 if (sizeof (int))
14860   return 0;
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867   (eval $ac_compile) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); } &&
14871          { ac_try='test -s conftest.$ac_objext'
14872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873   (eval $ac_try) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); }; }; then
14877   ac_cv_type_int=yes
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882 ac_cv_type_int=no
14883 fi
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14887 echo "${ECHO_T}$ac_cv_type_int" >&6
14888
14889 echo "$as_me:$LINENO: checking size of int" >&5
14890 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14891 if test "${ac_cv_sizeof_int+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   if test "$ac_cv_type_int" = yes; then
14895   # The cast to unsigned long works around a bug in the HP C Compiler
14896   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14897   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14898   # This bug is HP SR number 8606223364.
14899   if test "$cross_compiling" = yes; then
14900   # Depending upon the size, compute the lo and hi bounds.
14901 cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 $ac_includes_default
14909 int
14910 main ()
14911 {
14912 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14913 test_array [0] = 0
14914
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921   (eval $ac_compile) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -s conftest.$ac_objext'
14926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927   (eval $ac_try) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; }; then
14931   ac_lo=0 ac_mid=0
14932   while :; do
14933     cat >conftest.$ac_ext <<_ACEOF
14934 #line $LINENO "configure"
14935 /* confdefs.h.  */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h.  */
14940 $ac_includes_default
14941 int
14942 main ()
14943 {
14944 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14945 test_array [0] = 0
14946
14947   ;
14948   return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest.$ac_objext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953   (eval $ac_compile) 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } &&
14957          { ac_try='test -s conftest.$ac_objext'
14958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959   (eval $ac_try) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; }; then
14963   ac_hi=$ac_mid; break
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_lo=`expr $ac_mid + 1`
14969                     if test $ac_lo -le $ac_mid; then
14970                       ac_lo= ac_hi=
14971                       break
14972                     fi
14973                     ac_mid=`expr 2 '*' $ac_mid + 1`
14974 fi
14975 rm -f conftest.$ac_objext conftest.$ac_ext
14976   done
14977 else
14978   echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 cat >conftest.$ac_ext <<_ACEOF
14982 #line $LINENO "configure"
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988 $ac_includes_default
14989 int
14990 main ()
14991 {
14992 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14993 test_array [0] = 0
14994
14995   ;
14996   return 0;
14997 }
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001   (eval $ac_compile) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); } &&
15005          { ac_try='test -s conftest.$ac_objext'
15006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007   (eval $ac_try) 2>&5
15008   ac_status=$?
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); }; }; then
15011   ac_hi=-1 ac_mid=-1
15012   while :; do
15013     cat >conftest.$ac_ext <<_ACEOF
15014 #line $LINENO "configure"
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020 $ac_includes_default
15021 int
15022 main ()
15023 {
15024 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15025 test_array [0] = 0
15026
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033   (eval $ac_compile) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } &&
15037          { ac_try='test -s conftest.$ac_objext'
15038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039   (eval $ac_try) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; }; then
15043   ac_lo=$ac_mid; break
15044 else
15045   echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048 ac_hi=`expr '(' $ac_mid ')' - 1`
15049                        if test $ac_mid -le $ac_hi; then
15050                          ac_lo= ac_hi=
15051                          break
15052                        fi
15053                        ac_mid=`expr 2 '*' $ac_mid`
15054 fi
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15056   done
15057 else
15058   echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061 ac_lo= ac_hi=
15062 fi
15063 rm -f conftest.$ac_objext conftest.$ac_ext
15064 fi
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15066 # Binary search between lo and hi bounds.
15067 while test "x$ac_lo" != "x$ac_hi"; do
15068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15069   cat >conftest.$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 $ac_includes_default
15077 int
15078 main ()
15079 {
15080 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15081 test_array [0] = 0
15082
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089   (eval $ac_compile) 2>&5
15090   ac_status=$?
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } &&
15093          { ac_try='test -s conftest.$ac_objext'
15094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095   (eval $ac_try) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); }; }; then
15099   ac_hi=$ac_mid
15100 else
15101   echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 ac_lo=`expr '(' $ac_mid ')' + 1`
15105 fi
15106 rm -f conftest.$ac_objext conftest.$ac_ext
15107 done
15108 case $ac_lo in
15109 ?*) ac_cv_sizeof_int=$ac_lo;;
15110 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15111 See \`config.log' for more details." >&5
15112 echo "$as_me: error: cannot compute sizeof (int), 77
15113 See \`config.log' for more details." >&2;}
15114    { (exit 1); exit 1; }; } ;;
15115 esac
15116 else
15117   if test "$cross_compiling" = yes; then
15118   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15119 See \`config.log' for more details." >&5
15120 echo "$as_me: error: cannot run test program while cross compiling
15121 See \`config.log' for more details." >&2;}
15122    { (exit 1); exit 1; }; }
15123 else
15124   cat >conftest.$ac_ext <<_ACEOF
15125 #line $LINENO "configure"
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131 $ac_includes_default
15132 long longval () { return (long) (sizeof (int)); }
15133 unsigned long ulongval () { return (long) (sizeof (int)); }
15134 #include <stdio.h>
15135 #include <stdlib.h>
15136 int
15137 main ()
15138 {
15139
15140   FILE *f = fopen ("conftest.val", "w");
15141   if (! f)
15142     exit (1);
15143   if (((long) (sizeof (int))) < 0)
15144     {
15145       long i = longval ();
15146       if (i != ((long) (sizeof (int))))
15147         exit (1);
15148       fprintf (f, "%ld\n", i);
15149     }
15150   else
15151     {
15152       unsigned long i = ulongval ();
15153       if (i != ((long) (sizeof (int))))
15154         exit (1);
15155       fprintf (f, "%lu\n", i);
15156     }
15157   exit (ferror (f) || fclose (f) != 0);
15158
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest$ac_exeext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15165   (eval $ac_link) 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   ac_cv_sizeof_int=`cat conftest.val`
15175 else
15176   echo "$as_me: program exited with status $ac_status" >&5
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ( exit $ac_status )
15181 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15182 See \`config.log' for more details." >&5
15183 echo "$as_me: error: cannot compute sizeof (int), 77
15184 See \`config.log' for more details." >&2;}
15185    { (exit 1); exit 1; }; }
15186 fi
15187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15188 fi
15189 fi
15190 rm -f conftest.val
15191 else
15192   ac_cv_sizeof_int=0
15193 fi
15194 fi
15195 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15196 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15197 cat >>confdefs.h <<_ACEOF
15198 #define SIZEOF_INT $ac_cv_sizeof_int
15199 _ACEOF
15200
15201
15202 echo "$as_me:$LINENO: checking for long" >&5
15203 echo $ECHO_N "checking for long... $ECHO_C" >&6
15204 if test "${ac_cv_type_long+set}" = set; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207   cat >conftest.$ac_ext <<_ACEOF
15208 #line $LINENO "configure"
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 int
15216 main ()
15217 {
15218 if ((long *) 0)
15219   return 0;
15220 if (sizeof (long))
15221   return 0;
15222   ;
15223   return 0;
15224 }
15225 _ACEOF
15226 rm -f conftest.$ac_objext
15227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228   (eval $ac_compile) 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); } &&
15232          { ac_try='test -s conftest.$ac_objext'
15233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234   (eval $ac_try) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; }; then
15238   ac_cv_type_long=yes
15239 else
15240   echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_cv_type_long=no
15244 fi
15245 rm -f conftest.$ac_objext conftest.$ac_ext
15246 fi
15247 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15248 echo "${ECHO_T}$ac_cv_type_long" >&6
15249
15250 echo "$as_me:$LINENO: checking size of long" >&5
15251 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15252 if test "${ac_cv_sizeof_long+set}" = set; then
15253   echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255   if test "$ac_cv_type_long" = yes; then
15256   # The cast to unsigned long works around a bug in the HP C Compiler
15257   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15258   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15259   # This bug is HP SR number 8606223364.
15260   if test "$cross_compiling" = yes; then
15261   # Depending upon the size, compute the lo and hi bounds.
15262 cat >conftest.$ac_ext <<_ACEOF
15263 #line $LINENO "configure"
15264 /* confdefs.h.  */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h.  */
15269 $ac_includes_default
15270 int
15271 main ()
15272 {
15273 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15274 test_array [0] = 0
15275
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282   (eval $ac_compile) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } &&
15286          { ac_try='test -s conftest.$ac_objext'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; }; then
15292   ac_lo=0 ac_mid=0
15293   while :; do
15294     cat >conftest.$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301 $ac_includes_default
15302 int
15303 main ()
15304 {
15305 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15306 test_array [0] = 0
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314   (eval $ac_compile) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15324   ac_hi=$ac_mid; break
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_lo=`expr $ac_mid + 1`
15330                     if test $ac_lo -le $ac_mid; then
15331                       ac_lo= ac_hi=
15332                       break
15333                     fi
15334                     ac_mid=`expr 2 '*' $ac_mid + 1`
15335 fi
15336 rm -f conftest.$ac_objext conftest.$ac_ext
15337   done
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 cat >conftest.$ac_ext <<_ACEOF
15343 #line $LINENO "configure"
15344 /* confdefs.h.  */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h.  */
15349 $ac_includes_default
15350 int
15351 main ()
15352 {
15353 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15354 test_array [0] = 0
15355
15356   ;
15357   return 0;
15358 }
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362   (eval $ac_compile) 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } &&
15366          { ac_try='test -s conftest.$ac_objext'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; }; then
15372   ac_hi=-1 ac_mid=-1
15373   while :; do
15374     cat >conftest.$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 $ac_includes_default
15382 int
15383 main ()
15384 {
15385 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15386 test_array [0] = 0
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394   (eval $ac_compile) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_lo=$ac_mid; break
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_hi=`expr '(' $ac_mid ')' - 1`
15410                        if test $ac_mid -le $ac_hi; then
15411                          ac_lo= ac_hi=
15412                          break
15413                        fi
15414                        ac_mid=`expr 2 '*' $ac_mid`
15415 fi
15416 rm -f conftest.$ac_objext conftest.$ac_ext
15417   done
15418 else
15419   echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.$ac_ext >&5
15421
15422 ac_lo= ac_hi=
15423 fi
15424 rm -f conftest.$ac_objext conftest.$ac_ext
15425 fi
15426 rm -f conftest.$ac_objext conftest.$ac_ext
15427 # Binary search between lo and hi bounds.
15428 while test "x$ac_lo" != "x$ac_hi"; do
15429   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15430   cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15432 /* confdefs.h.  */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h.  */
15437 $ac_includes_default
15438 int
15439 main ()
15440 {
15441 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15442 test_array [0] = 0
15443
15444   ;
15445   return 0;
15446 }
15447 _ACEOF
15448 rm -f conftest.$ac_objext
15449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15450   (eval $ac_compile) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); } &&
15454          { ac_try='test -s conftest.$ac_objext'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; }; then
15460   ac_hi=$ac_mid
15461 else
15462   echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 ac_lo=`expr '(' $ac_mid ')' + 1`
15466 fi
15467 rm -f conftest.$ac_objext conftest.$ac_ext
15468 done
15469 case $ac_lo in
15470 ?*) ac_cv_sizeof_long=$ac_lo;;
15471 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15472 See \`config.log' for more details." >&5
15473 echo "$as_me: error: cannot compute sizeof (long), 77
15474 See \`config.log' for more details." >&2;}
15475    { (exit 1); exit 1; }; } ;;
15476 esac
15477 else
15478   if test "$cross_compiling" = yes; then
15479   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15480 See \`config.log' for more details." >&5
15481 echo "$as_me: error: cannot run test program while cross compiling
15482 See \`config.log' for more details." >&2;}
15483    { (exit 1); exit 1; }; }
15484 else
15485   cat >conftest.$ac_ext <<_ACEOF
15486 #line $LINENO "configure"
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 $ac_includes_default
15493 long longval () { return (long) (sizeof (long)); }
15494 unsigned long ulongval () { return (long) (sizeof (long)); }
15495 #include <stdio.h>
15496 #include <stdlib.h>
15497 int
15498 main ()
15499 {
15500
15501   FILE *f = fopen ("conftest.val", "w");
15502   if (! f)
15503     exit (1);
15504   if (((long) (sizeof (long))) < 0)
15505     {
15506       long i = longval ();
15507       if (i != ((long) (sizeof (long))))
15508         exit (1);
15509       fprintf (f, "%ld\n", i);
15510     }
15511   else
15512     {
15513       unsigned long i = ulongval ();
15514       if (i != ((long) (sizeof (long))))
15515         exit (1);
15516       fprintf (f, "%lu\n", i);
15517     }
15518   exit (ferror (f) || fclose (f) != 0);
15519
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest$ac_exeext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15526   (eval $ac_link) 2>&5
15527   ac_status=$?
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531   (eval $ac_try) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; }; then
15535   ac_cv_sizeof_long=`cat conftest.val`
15536 else
15537   echo "$as_me: program exited with status $ac_status" >&5
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 ( exit $ac_status )
15542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15543 See \`config.log' for more details." >&5
15544 echo "$as_me: error: cannot compute sizeof (long), 77
15545 See \`config.log' for more details." >&2;}
15546    { (exit 1); exit 1; }; }
15547 fi
15548 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15549 fi
15550 fi
15551 rm -f conftest.val
15552 else
15553   ac_cv_sizeof_long=0
15554 fi
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15557 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15558 cat >>confdefs.h <<_ACEOF
15559 #define SIZEOF_LONG $ac_cv_sizeof_long
15560 _ACEOF
15561
15562
15563
15564 case "${host}" in
15565     arm-*-linux* )
15566         echo "$as_me:$LINENO: checking for long long" >&5
15567 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15568 if test "${ac_cv_type_long_long+set}" = set; then
15569   echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571   cat >conftest.$ac_ext <<_ACEOF
15572 #line $LINENO "configure"
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578 $ac_includes_default
15579 int
15580 main ()
15581 {
15582 if ((long long *) 0)
15583   return 0;
15584 if (sizeof (long long))
15585   return 0;
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592   (eval $ac_compile) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } &&
15596          { ac_try='test -s conftest.$ac_objext'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   ac_cv_type_long_long=yes
15603 else
15604   echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 ac_cv_type_long_long=no
15608 fi
15609 rm -f conftest.$ac_objext conftest.$ac_ext
15610 fi
15611 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15612 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15613
15614 echo "$as_me:$LINENO: checking size of long long" >&5
15615 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15616 if test "${ac_cv_sizeof_long_long+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   if test "$ac_cv_type_long_long" = yes; then
15620   # The cast to unsigned long works around a bug in the HP C Compiler
15621   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15622   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15623   # This bug is HP SR number 8606223364.
15624   if test "$cross_compiling" = yes; then
15625   # Depending upon the size, compute the lo and hi bounds.
15626 cat >conftest.$ac_ext <<_ACEOF
15627 #line $LINENO "configure"
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633 $ac_includes_default
15634 int
15635 main ()
15636 {
15637 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15638 test_array [0] = 0
15639
15640   ;
15641   return 0;
15642 }
15643 _ACEOF
15644 rm -f conftest.$ac_objext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646   (eval $ac_compile) 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -s conftest.$ac_objext'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; }; then
15656   ac_lo=0 ac_mid=0
15657   while :; do
15658     cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 $ac_includes_default
15666 int
15667 main ()
15668 {
15669 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15670 test_array [0] = 0
15671
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -s conftest.$ac_objext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_hi=$ac_mid; break
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_lo=`expr $ac_mid + 1`
15694                     if test $ac_lo -le $ac_mid; then
15695                       ac_lo= ac_hi=
15696                       break
15697                     fi
15698                     ac_mid=`expr 2 '*' $ac_mid + 1`
15699 fi
15700 rm -f conftest.$ac_objext conftest.$ac_ext
15701   done
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 cat >conftest.$ac_ext <<_ACEOF
15707 #line $LINENO "configure"
15708 /* confdefs.h.  */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h.  */
15713 $ac_includes_default
15714 int
15715 main ()
15716 {
15717 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15718 test_array [0] = 0
15719
15720   ;
15721   return 0;
15722 }
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726   (eval $ac_compile) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } &&
15730          { ac_try='test -s conftest.$ac_objext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   ac_hi=-1 ac_mid=-1
15737   while :; do
15738     cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 $ac_includes_default
15746 int
15747 main ()
15748 {
15749 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15750 test_array [0] = 0
15751
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758   (eval $ac_compile) 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } &&
15762          { ac_try='test -s conftest.$ac_objext'
15763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764   (eval $ac_try) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; }; then
15768   ac_lo=$ac_mid; break
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773 ac_hi=`expr '(' $ac_mid ')' - 1`
15774                        if test $ac_mid -le $ac_hi; then
15775                          ac_lo= ac_hi=
15776                          break
15777                        fi
15778                        ac_mid=`expr 2 '*' $ac_mid`
15779 fi
15780 rm -f conftest.$ac_objext conftest.$ac_ext
15781   done
15782 else
15783   echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15785
15786 ac_lo= ac_hi=
15787 fi
15788 rm -f conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 rm -f conftest.$ac_objext conftest.$ac_ext
15791 # Binary search between lo and hi bounds.
15792 while test "x$ac_lo" != "x$ac_hi"; do
15793   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15794   cat >conftest.$ac_ext <<_ACEOF
15795 #line $LINENO "configure"
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801 $ac_includes_default
15802 int
15803 main ()
15804 {
15805 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15806 test_array [0] = 0
15807
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814   (eval $ac_compile) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -s conftest.$ac_objext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_hi=$ac_mid
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_lo=`expr '(' $ac_mid ')' + 1`
15830 fi
15831 rm -f conftest.$ac_objext conftest.$ac_ext
15832 done
15833 case $ac_lo in
15834 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15836 See \`config.log' for more details." >&5
15837 echo "$as_me: error: cannot compute sizeof (long long), 77
15838 See \`config.log' for more details." >&2;}
15839    { (exit 1); exit 1; }; } ;;
15840 esac
15841 else
15842   if test "$cross_compiling" = yes; then
15843   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15844 See \`config.log' for more details." >&5
15845 echo "$as_me: error: cannot run test program while cross compiling
15846 See \`config.log' for more details." >&2;}
15847    { (exit 1); exit 1; }; }
15848 else
15849   cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 $ac_includes_default
15857 long longval () { return (long) (sizeof (long long)); }
15858 unsigned long ulongval () { return (long) (sizeof (long long)); }
15859 #include <stdio.h>
15860 #include <stdlib.h>
15861 int
15862 main ()
15863 {
15864
15865   FILE *f = fopen ("conftest.val", "w");
15866   if (! f)
15867     exit (1);
15868   if (((long) (sizeof (long long))) < 0)
15869     {
15870       long i = longval ();
15871       if (i != ((long) (sizeof (long long))))
15872         exit (1);
15873       fprintf (f, "%ld\n", i);
15874     }
15875   else
15876     {
15877       unsigned long i = ulongval ();
15878       if (i != ((long) (sizeof (long long))))
15879         exit (1);
15880       fprintf (f, "%lu\n", i);
15881     }
15882   exit (ferror (f) || fclose (f) != 0);
15883
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890   (eval $ac_link) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
15899   ac_cv_sizeof_long_long=`cat conftest.val`
15900 else
15901   echo "$as_me: program exited with status $ac_status" >&5
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ( exit $ac_status )
15906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15907 See \`config.log' for more details." >&5
15908 echo "$as_me: error: cannot compute sizeof (long long), 77
15909 See \`config.log' for more details." >&2;}
15910    { (exit 1); exit 1; }; }
15911 fi
15912 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15913 fi
15914 fi
15915 rm -f conftest.val
15916 else
15917   ac_cv_sizeof_long_long=0
15918 fi
15919 fi
15920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15921 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15922 cat >>confdefs.h <<_ACEOF
15923 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15924 _ACEOF
15925
15926
15927     ;;
15928     *-hp-hpux* )
15929         echo "$as_me:$LINENO: checking for long long" >&5
15930 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15931 if test "${ac_cv_type_long_long+set}" = set; then
15932   echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934   cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 $ac_includes_default
15942 int
15943 main ()
15944 {
15945 if ((long long *) 0)
15946   return 0;
15947 if (sizeof (long long))
15948   return 0;
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15955   (eval $ac_compile) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } &&
15959          { ac_try='test -s conftest.$ac_objext'
15960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961   (eval $ac_try) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }; }; then
15965   ac_cv_type_long_long=yes
15966 else
15967   echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_cv_type_long_long=no
15971 fi
15972 rm -f conftest.$ac_objext conftest.$ac_ext
15973 fi
15974 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15975 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15976
15977 echo "$as_me:$LINENO: checking size of long long" >&5
15978 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15979 if test "${ac_cv_sizeof_long_long+set}" = set; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982   if test "$ac_cv_type_long_long" = yes; then
15983   # The cast to unsigned long works around a bug in the HP C Compiler
15984   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15985   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15986   # This bug is HP SR number 8606223364.
15987   if test "$cross_compiling" = yes; then
15988   # Depending upon the size, compute the lo and hi bounds.
15989 cat >conftest.$ac_ext <<_ACEOF
15990 #line $LINENO "configure"
15991 /* confdefs.h.  */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h.  */
15996 $ac_includes_default
15997 int
15998 main ()
15999 {
16000 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16001 test_array [0] = 0
16002
16003   ;
16004   return 0;
16005 }
16006 _ACEOF
16007 rm -f conftest.$ac_objext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16009   (eval $ac_compile) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -s conftest.$ac_objext'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; }; then
16019   ac_lo=0 ac_mid=0
16020   while :; do
16021     cat >conftest.$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 $ac_includes_default
16029 int
16030 main ()
16031 {
16032 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16033 test_array [0] = 0
16034
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16041   (eval $ac_compile) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -s conftest.$ac_objext'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_hi=$ac_mid; break
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_lo=`expr $ac_mid + 1`
16057                     if test $ac_lo -le $ac_mid; then
16058                       ac_lo= ac_hi=
16059                       break
16060                     fi
16061                     ac_mid=`expr 2 '*' $ac_mid + 1`
16062 fi
16063 rm -f conftest.$ac_objext conftest.$ac_ext
16064   done
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 cat >conftest.$ac_ext <<_ACEOF
16070 #line $LINENO "configure"
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076 $ac_includes_default
16077 int
16078 main ()
16079 {
16080 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16081 test_array [0] = 0
16082
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089   (eval $ac_compile) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -s conftest.$ac_objext'
16094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095   (eval $ac_try) 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; }; then
16099   ac_hi=-1 ac_mid=-1
16100   while :; do
16101     cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 /* confdefs.h.  */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h.  */
16108 $ac_includes_default
16109 int
16110 main ()
16111 {
16112 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16113 test_array [0] = 0
16114
16115   ;
16116   return 0;
16117 }
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121   (eval $ac_compile) 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); } &&
16125          { ac_try='test -s conftest.$ac_objext'
16126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127   (eval $ac_try) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; }; then
16131   ac_lo=$ac_mid; break
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 ac_hi=`expr '(' $ac_mid ')' - 1`
16137                        if test $ac_mid -le $ac_hi; then
16138                          ac_lo= ac_hi=
16139                          break
16140                        fi
16141                        ac_mid=`expr 2 '*' $ac_mid`
16142 fi
16143 rm -f conftest.$ac_objext conftest.$ac_ext
16144   done
16145 else
16146   echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 ac_lo= ac_hi=
16150 fi
16151 rm -f conftest.$ac_objext conftest.$ac_ext
16152 fi
16153 rm -f conftest.$ac_objext conftest.$ac_ext
16154 # Binary search between lo and hi bounds.
16155 while test "x$ac_lo" != "x$ac_hi"; do
16156   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16157   cat >conftest.$ac_ext <<_ACEOF
16158 #line $LINENO "configure"
16159 /* confdefs.h.  */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h.  */
16164 $ac_includes_default
16165 int
16166 main ()
16167 {
16168 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16169 test_array [0] = 0
16170
16171   ;
16172   return 0;
16173 }
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177   (eval $ac_compile) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } &&
16181          { ac_try='test -s conftest.$ac_objext'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ac_hi=$ac_mid
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_lo=`expr '(' $ac_mid ')' + 1`
16193 fi
16194 rm -f conftest.$ac_objext conftest.$ac_ext
16195 done
16196 case $ac_lo in
16197 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16199 See \`config.log' for more details." >&5
16200 echo "$as_me: error: cannot compute sizeof (long long), 77
16201 See \`config.log' for more details." >&2;}
16202    { (exit 1); exit 1; }; } ;;
16203 esac
16204 else
16205   if test "$cross_compiling" = yes; then
16206   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16207 See \`config.log' for more details." >&5
16208 echo "$as_me: error: cannot run test program while cross compiling
16209 See \`config.log' for more details." >&2;}
16210    { (exit 1); exit 1; }; }
16211 else
16212   cat >conftest.$ac_ext <<_ACEOF
16213 #line $LINENO "configure"
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 $ac_includes_default
16220 long longval () { return (long) (sizeof (long long)); }
16221 unsigned long ulongval () { return (long) (sizeof (long long)); }
16222 #include <stdio.h>
16223 #include <stdlib.h>
16224 int
16225 main ()
16226 {
16227
16228   FILE *f = fopen ("conftest.val", "w");
16229   if (! f)
16230     exit (1);
16231   if (((long) (sizeof (long long))) < 0)
16232     {
16233       long i = longval ();
16234       if (i != ((long) (sizeof (long long))))
16235         exit (1);
16236       fprintf (f, "%ld\n", i);
16237     }
16238   else
16239     {
16240       unsigned long i = ulongval ();
16241       if (i != ((long) (sizeof (long long))))
16242         exit (1);
16243       fprintf (f, "%lu\n", i);
16244     }
16245   exit (ferror (f) || fclose (f) != 0);
16246
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253   (eval $ac_link) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; }; then
16262   ac_cv_sizeof_long_long=`cat conftest.val`
16263 else
16264   echo "$as_me: program exited with status $ac_status" >&5
16265 echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16267
16268 ( exit $ac_status )
16269 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16270 See \`config.log' for more details." >&5
16271 echo "$as_me: error: cannot compute sizeof (long long), 77
16272 See \`config.log' for more details." >&2;}
16273    { (exit 1); exit 1; }; }
16274 fi
16275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 fi
16278 rm -f conftest.val
16279 else
16280   ac_cv_sizeof_long_long=0
16281 fi
16282 fi
16283 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16284 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16285 cat >>confdefs.h <<_ACEOF
16286 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16287 _ACEOF
16288
16289
16290         if test "$ac_cv_sizeof_long_long" != "0"; then
16291                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16292         fi
16293     ;;
16294     * )
16295         echo "$as_me:$LINENO: checking for long long" >&5
16296 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16297 if test "${ac_cv_type_long_long+set}" = set; then
16298   echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300   cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307 $ac_includes_default
16308 int
16309 main ()
16310 {
16311 if ((long long *) 0)
16312   return 0;
16313 if (sizeof (long long))
16314   return 0;
16315   ;
16316   return 0;
16317 }
16318 _ACEOF
16319 rm -f conftest.$ac_objext
16320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16321   (eval $ac_compile) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } &&
16325          { ac_try='test -s conftest.$ac_objext'
16326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327   (eval $ac_try) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); }; }; then
16331   ac_cv_type_long_long=yes
16332 else
16333   echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 ac_cv_type_long_long=no
16337 fi
16338 rm -f conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16341 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16342
16343 echo "$as_me:$LINENO: checking size of long long" >&5
16344 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16345 if test "${ac_cv_sizeof_long_long+set}" = set; then
16346   echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348   if test "$ac_cv_type_long_long" = yes; then
16349   # The cast to unsigned long works around a bug in the HP C Compiler
16350   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16351   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16352   # This bug is HP SR number 8606223364.
16353   if test "$cross_compiling" = yes; then
16354   # Depending upon the size, compute the lo and hi bounds.
16355 cat >conftest.$ac_ext <<_ACEOF
16356 #line $LINENO "configure"
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 $ac_includes_default
16363 int
16364 main ()
16365 {
16366 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16367 test_array [0] = 0
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375   (eval $ac_compile) 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); } &&
16379          { ac_try='test -s conftest.$ac_objext'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; }; then
16385   ac_lo=0 ac_mid=0
16386   while :; do
16387     cat >conftest.$ac_ext <<_ACEOF
16388 #line $LINENO "configure"
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394 $ac_includes_default
16395 int
16396 main ()
16397 {
16398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16399 test_array [0] = 0
16400
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 rm -f conftest.$ac_objext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16407   (eval $ac_compile) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); } &&
16411          { ac_try='test -s conftest.$ac_objext'
16412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413   (eval $ac_try) 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); }; }; then
16417   ac_hi=$ac_mid; break
16418 else
16419   echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 ac_lo=`expr $ac_mid + 1`
16423                     if test $ac_lo -le $ac_mid; then
16424                       ac_lo= ac_hi=
16425                       break
16426                     fi
16427                     ac_mid=`expr 2 '*' $ac_mid + 1`
16428 fi
16429 rm -f conftest.$ac_objext conftest.$ac_ext
16430   done
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 cat >conftest.$ac_ext <<_ACEOF
16436 #line $LINENO "configure"
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 $ac_includes_default
16443 int
16444 main ()
16445 {
16446 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16447 test_array [0] = 0
16448
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455   (eval $ac_compile) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); } &&
16459          { ac_try='test -s conftest.$ac_objext'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; }; then
16465   ac_hi=-1 ac_mid=-1
16466   while :; do
16467     cat >conftest.$ac_ext <<_ACEOF
16468 #line $LINENO "configure"
16469 /* confdefs.h.  */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h.  */
16474 $ac_includes_default
16475 int
16476 main ()
16477 {
16478 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16479 test_array [0] = 0
16480
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487   (eval $ac_compile) 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); } &&
16491          { ac_try='test -s conftest.$ac_objext'
16492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493   (eval $ac_try) 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; }; then
16497   ac_lo=$ac_mid; break
16498 else
16499   echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ac_hi=`expr '(' $ac_mid ')' - 1`
16503                        if test $ac_mid -le $ac_hi; then
16504                          ac_lo= ac_hi=
16505                          break
16506                        fi
16507                        ac_mid=`expr 2 '*' $ac_mid`
16508 fi
16509 rm -f conftest.$ac_objext conftest.$ac_ext
16510   done
16511 else
16512   echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16514
16515 ac_lo= ac_hi=
16516 fi
16517 rm -f conftest.$ac_objext conftest.$ac_ext
16518 fi
16519 rm -f conftest.$ac_objext conftest.$ac_ext
16520 # Binary search between lo and hi bounds.
16521 while test "x$ac_lo" != "x$ac_hi"; do
16522   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16523   cat >conftest.$ac_ext <<_ACEOF
16524 #line $LINENO "configure"
16525 /* confdefs.h.  */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h.  */
16530 $ac_includes_default
16531 int
16532 main ()
16533 {
16534 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16535 test_array [0] = 0
16536
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543   (eval $ac_compile) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); } &&
16547          { ac_try='test -s conftest.$ac_objext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_hi=$ac_mid
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 ac_lo=`expr '(' $ac_mid ')' + 1`
16559 fi
16560 rm -f conftest.$ac_objext conftest.$ac_ext
16561 done
16562 case $ac_lo in
16563 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16564 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16565 See \`config.log' for more details." >&5
16566 echo "$as_me: error: cannot compute sizeof (long long), 77
16567 See \`config.log' for more details." >&2;}
16568    { (exit 1); exit 1; }; } ;;
16569 esac
16570 else
16571   if test "$cross_compiling" = yes; then
16572   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16573 See \`config.log' for more details." >&5
16574 echo "$as_me: error: cannot run test program while cross compiling
16575 See \`config.log' for more details." >&2;}
16576    { (exit 1); exit 1; }; }
16577 else
16578   cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 /* confdefs.h.  */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h.  */
16585 $ac_includes_default
16586 long longval () { return (long) (sizeof (long long)); }
16587 unsigned long ulongval () { return (long) (sizeof (long long)); }
16588 #include <stdio.h>
16589 #include <stdlib.h>
16590 int
16591 main ()
16592 {
16593
16594   FILE *f = fopen ("conftest.val", "w");
16595   if (! f)
16596     exit (1);
16597   if (((long) (sizeof (long long))) < 0)
16598     {
16599       long i = longval ();
16600       if (i != ((long) (sizeof (long long))))
16601         exit (1);
16602       fprintf (f, "%ld\n", i);
16603     }
16604   else
16605     {
16606       unsigned long i = ulongval ();
16607       if (i != ((long) (sizeof (long long))))
16608         exit (1);
16609       fprintf (f, "%lu\n", i);
16610     }
16611   exit (ferror (f) || fclose (f) != 0);
16612
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619   (eval $ac_link) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624   (eval $ac_try) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   ac_cv_sizeof_long_long=`cat conftest.val`
16629 else
16630   echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ( exit $ac_status )
16635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16636 See \`config.log' for more details." >&5
16637 echo "$as_me: error: cannot compute sizeof (long long), 77
16638 See \`config.log' for more details." >&2;}
16639    { (exit 1); exit 1; }; }
16640 fi
16641 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16642 fi
16643 fi
16644 rm -f conftest.val
16645 else
16646   ac_cv_sizeof_long_long=0
16647 fi
16648 fi
16649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16650 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16651 cat >>confdefs.h <<_ACEOF
16652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16653 _ACEOF
16654
16655
16656 esac
16657
16658 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16659 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16660 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16661   echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663
16664     if test "$cross_compiling" = yes; then
16665
16666             case "${host}" in
16667               *-pc-msdosdjgpp )
16668                 wx_cv_sizeof_wchar_t=0
16669                 ;;
16670               * )
16671                 wx_cv_sizeof_wchar_t=4
16672                 ;;
16673             esac
16674
16675
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 #line $LINENO "configure"
16679 /* confdefs.h.  */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h.  */
16684
16685             /* DJGPP only has fake wchar_t: */
16686             #ifdef __DJGPP__
16687             #  error "fake wchar_t"
16688             #endif
16689             #ifdef HAVE_WCHAR_H
16690             #  ifdef __CYGWIN__
16691             #    include <stddef.h>
16692             #  endif
16693             #  include <wchar.h>
16694             #endif
16695             #ifdef HAVE_STDLIB_H
16696             #  include <stdlib.h>
16697             #endif
16698             #include <stdio.h>
16699             int main()
16700             {
16701                 FILE *f=fopen("conftestval", "w");
16702                 if (!f) exit(1);
16703                 fprintf(f, "%i", sizeof(wchar_t));
16704                 exit(0);
16705             }
16706
16707 _ACEOF
16708 rm -f conftest$ac_exeext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710   (eval $ac_link) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   wx_cv_sizeof_wchar_t=`cat conftestval`
16720 else
16721   echo "$as_me: program exited with status $ac_status" >&5
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 ( exit $ac_status )
16726 wx_cv_sizeof_wchar_t=0
16727 fi
16728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16729 fi
16730
16731 fi
16732 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16733 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
16734
16735 cat >>confdefs.h <<_ACEOF
16736 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
16737 _ACEOF
16738
16739
16740 # Check whether --enable-largefile or --disable-largefile was given.
16741 if test "${enable_largefile+set}" = set; then
16742   enableval="$enable_largefile"
16743
16744 fi;
16745 if test "$enable_largefile" != no; then
16746             wx_largefile=no
16747
16748     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16749 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16750 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753
16754           cat >conftest.$ac_ext <<_ACEOF
16755 #line $LINENO "configure"
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 #define _FILE_OFFSET_BITS 64
16762                           #include <sys/types.h>
16763 int
16764 main ()
16765 {
16766 typedef struct {
16767     unsigned int field: sizeof(off_t) == 8;
16768 } wxlf;
16769
16770   ;
16771   return 0;
16772 }
16773 _ACEOF
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776   (eval $ac_compile) 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } &&
16780          { ac_try='test -s conftest.$ac_objext'
16781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782   (eval $ac_try) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; }; then
16786   ac_cv_sys_file_offset_bits=64
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ac_cv_sys_file_offset_bits=no
16792 fi
16793 rm -f conftest.$ac_objext conftest.$ac_ext
16794
16795
16796 fi
16797 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16799
16800     if test "$ac_cv_sys_file_offset_bits" != no; then
16801         wx_largefile=yes
16802         cat >>confdefs.h <<_ACEOF
16803 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16804 _ACEOF
16805
16806     fi
16807
16808     if test "x$wx_largefile" != "xyes"; then
16809
16810     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16811 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16812 if test "${ac_cv_sys_large_files+set}" = set; then
16813   echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815
16816           cat >conftest.$ac_ext <<_ACEOF
16817 #line $LINENO "configure"
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823 #define _LARGE_FILES 1
16824                           #include <sys/types.h>
16825 int
16826 main ()
16827 {
16828 typedef struct {
16829     unsigned int field: sizeof(off_t) == 8;
16830 } wxlf;
16831
16832   ;
16833   return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } &&
16842          { ac_try='test -s conftest.$ac_objext'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; }; then
16848   ac_cv_sys_large_files=1
16849 else
16850   echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 ac_cv_sys_large_files=no
16854 fi
16855 rm -f conftest.$ac_objext conftest.$ac_ext
16856
16857
16858 fi
16859 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16860 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16861
16862     if test "$ac_cv_sys_large_files" != no; then
16863         wx_largefile=yes
16864         cat >>confdefs.h <<_ACEOF
16865 #define _LARGE_FILES $ac_cv_sys_large_files
16866 _ACEOF
16867
16868     fi
16869
16870     fi
16871
16872     echo "$as_me:$LINENO: checking if large file support is available" >&5
16873 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
16874     if test "x$wx_largefile" = "xyes"; then
16875         cat >>confdefs.h <<\_ACEOF
16876 #define HAVE_LARGEFILE_SUPPORT 1
16877 _ACEOF
16878
16879     fi
16880     echo "$as_me:$LINENO: result: $wx_largefile" >&5
16881 echo "${ECHO_T}$wx_largefile" >&6
16882 fi
16883
16884
16885 if test "x$wx_largefile" = "xyes"; then
16886     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16887         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
16888     else
16889         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
16890     fi
16891     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
16892 fi
16893
16894 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16895 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16896 if test "${ac_cv_c_bigendian+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   ac_cv_c_bigendian=unknown
16900 # See if sys/param.h defines the BYTE_ORDER macro.
16901 cat >conftest.$ac_ext <<_ACEOF
16902 #line $LINENO "configure"
16903 /* confdefs.h.  */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h.  */
16908 #include <sys/types.h>
16909 #include <sys/param.h>
16910 int
16911 main ()
16912 {
16913
16914 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16915  bogus endian macros
16916 #endif
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923   (eval $ac_compile) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } &&
16927          { ac_try='test -s conftest.$ac_objext'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; }; then
16933   # It does; now see whether it defined to BIG_ENDIAN or not.
16934 cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941 #include <sys/types.h>
16942 #include <sys/param.h>
16943 int
16944 main ()
16945 {
16946
16947 #if BYTE_ORDER != BIG_ENDIAN
16948  not big endian
16949 #endif
16950   ;
16951   return 0;
16952 }
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956   (eval $ac_compile) 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } &&
16960          { ac_try='test -s conftest.$ac_objext'
16961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962   (eval $ac_try) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }; }; then
16966   ac_cv_c_bigendian=yes
16967 else
16968   echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971 ac_cv_c_bigendian=no
16972 fi
16973 rm -f conftest.$ac_objext conftest.$ac_ext
16974 else
16975   echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 fi
16979 rm -f conftest.$ac_objext conftest.$ac_ext
16980 if test $ac_cv_c_bigendian = unknown; then
16981 if test "$cross_compiling" = yes; then
16982   ac_cv_c_bigendian=unknown
16983 else
16984   cat >conftest.$ac_ext <<_ACEOF
16985 #line $LINENO "configure"
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 main () {
16992   /* Are we little or big endian?  From Harbison&Steele.  */
16993   union
16994   {
16995     long l;
16996     char c[sizeof (long)];
16997   } u;
16998   u.l = 1;
16999   exit (u.c[sizeof (long) - 1] == 1);
17000 }
17001 _ACEOF
17002 rm -f conftest$ac_exeext
17003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17004   (eval $ac_link) 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009   (eval $ac_try) 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; }; then
17013   ac_cv_c_bigendian=no
17014 else
17015   echo "$as_me: program exited with status $ac_status" >&5
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17018
17019 ( exit $ac_status )
17020 ac_cv_c_bigendian=yes
17021 fi
17022 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17023 fi
17024 fi
17025 fi
17026 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17027 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17028 if test $ac_cv_c_bigendian = unknown; then
17029   { 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
17030 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;}
17031 fi
17032 if test $ac_cv_c_bigendian = yes; then
17033   cat >>confdefs.h <<\_ACEOF
17034 #define WORDS_BIGENDIAN 1
17035 _ACEOF
17036
17037 fi
17038
17039
17040
17041 ac_ext=cc
17042 ac_cpp='$CXXCPP $CPPFLAGS'
17043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17046 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17047 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17048 if test -z "$CXXCPP"; then
17049   if test "${ac_cv_prog_CXXCPP+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052       # Double quotes because CXXCPP needs to be expanded
17053     for CXXCPP in "$CXX -E" "/lib/cpp"
17054     do
17055       ac_preproc_ok=false
17056 for ac_cxx_preproc_warn_flag in '' yes
17057 do
17058   # Use a header file that comes with gcc, so configuring glibc
17059   # with a fresh cross-compiler works.
17060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17061   # <limits.h> exists even on freestanding compilers.
17062   # On the NeXT, cc -E runs the code through the compiler's parser,
17063   # not just through cpp. "Syntax error" is here to catch this case.
17064   cat >conftest.$ac_ext <<_ACEOF
17065 #line $LINENO "configure"
17066 /* confdefs.h.  */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h.  */
17071 #ifdef __STDC__
17072 # include <limits.h>
17073 #else
17074 # include <assert.h>
17075 #endif
17076                      Syntax error
17077 _ACEOF
17078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17080   ac_status=$?
17081   grep -v '^ *+' conftest.er1 >conftest.err
17082   rm -f conftest.er1
17083   cat conftest.err >&5
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); } >/dev/null; then
17086   if test -s conftest.err; then
17087     ac_cpp_err=$ac_cxx_preproc_warn_flag
17088   else
17089     ac_cpp_err=
17090   fi
17091 else
17092   ac_cpp_err=yes
17093 fi
17094 if test -z "$ac_cpp_err"; then
17095   :
17096 else
17097   echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100   # Broken: fails on valid input.
17101 continue
17102 fi
17103 rm -f conftest.err conftest.$ac_ext
17104
17105   # OK, works on sane cases.  Now check whether non-existent headers
17106   # can be detected and how.
17107   cat >conftest.$ac_ext <<_ACEOF
17108 #line $LINENO "configure"
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114 #include <ac_nonexistent.h>
17115 _ACEOF
17116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17118   ac_status=$?
17119   grep -v '^ *+' conftest.er1 >conftest.err
17120   rm -f conftest.er1
17121   cat conftest.err >&5
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); } >/dev/null; then
17124   if test -s conftest.err; then
17125     ac_cpp_err=$ac_cxx_preproc_warn_flag
17126   else
17127     ac_cpp_err=
17128   fi
17129 else
17130   ac_cpp_err=yes
17131 fi
17132 if test -z "$ac_cpp_err"; then
17133   # Broken: success on invalid input.
17134 continue
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139   # Passes both tests.
17140 ac_preproc_ok=:
17141 break
17142 fi
17143 rm -f conftest.err conftest.$ac_ext
17144
17145 done
17146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17147 rm -f conftest.err conftest.$ac_ext
17148 if $ac_preproc_ok; then
17149   break
17150 fi
17151
17152     done
17153     ac_cv_prog_CXXCPP=$CXXCPP
17154
17155 fi
17156   CXXCPP=$ac_cv_prog_CXXCPP
17157 else
17158   ac_cv_prog_CXXCPP=$CXXCPP
17159 fi
17160 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17161 echo "${ECHO_T}$CXXCPP" >&6
17162 ac_preproc_ok=false
17163 for ac_cxx_preproc_warn_flag in '' yes
17164 do
17165   # Use a header file that comes with gcc, so configuring glibc
17166   # with a fresh cross-compiler works.
17167   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17168   # <limits.h> exists even on freestanding compilers.
17169   # On the NeXT, cc -E runs the code through the compiler's parser,
17170   # not just through cpp. "Syntax error" is here to catch this case.
17171   cat >conftest.$ac_ext <<_ACEOF
17172 #line $LINENO "configure"
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178 #ifdef __STDC__
17179 # include <limits.h>
17180 #else
17181 # include <assert.h>
17182 #endif
17183                      Syntax error
17184 _ACEOF
17185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17187   ac_status=$?
17188   grep -v '^ *+' conftest.er1 >conftest.err
17189   rm -f conftest.er1
17190   cat conftest.err >&5
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); } >/dev/null; then
17193   if test -s conftest.err; then
17194     ac_cpp_err=$ac_cxx_preproc_warn_flag
17195   else
17196     ac_cpp_err=
17197   fi
17198 else
17199   ac_cpp_err=yes
17200 fi
17201 if test -z "$ac_cpp_err"; then
17202   :
17203 else
17204   echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207   # Broken: fails on valid input.
17208 continue
17209 fi
17210 rm -f conftest.err conftest.$ac_ext
17211
17212   # OK, works on sane cases.  Now check whether non-existent headers
17213   # can be detected and how.
17214   cat >conftest.$ac_ext <<_ACEOF
17215 #line $LINENO "configure"
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221 #include <ac_nonexistent.h>
17222 _ACEOF
17223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17225   ac_status=$?
17226   grep -v '^ *+' conftest.er1 >conftest.err
17227   rm -f conftest.er1
17228   cat conftest.err >&5
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } >/dev/null; then
17231   if test -s conftest.err; then
17232     ac_cpp_err=$ac_cxx_preproc_warn_flag
17233   else
17234     ac_cpp_err=
17235   fi
17236 else
17237   ac_cpp_err=yes
17238 fi
17239 if test -z "$ac_cpp_err"; then
17240   # Broken: success on invalid input.
17241 continue
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246   # Passes both tests.
17247 ac_preproc_ok=:
17248 break
17249 fi
17250 rm -f conftest.err conftest.$ac_ext
17251
17252 done
17253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17254 rm -f conftest.err conftest.$ac_ext
17255 if $ac_preproc_ok; then
17256   :
17257 else
17258   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17259 See \`config.log' for more details." >&5
17260 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17261 See \`config.log' for more details." >&2;}
17262    { (exit 1); exit 1; }; }
17263 fi
17264
17265 ac_ext=cc
17266 ac_cpp='$CXXCPP $CPPFLAGS'
17267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17270
17271
17272
17273   if test "$cross_compiling" = "yes"; then
17274     cat >>confdefs.h <<\_ACEOF
17275 #define wxUSE_IOSTREAMH 1
17276 _ACEOF
17277
17278   else
17279
17280
17281     ac_ext=cc
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17286
17287
17288
17289 for ac_header in iostream
17290 do
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293   echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296   echo $ECHO_N "(cached) $ECHO_C" >&6
17297 fi
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300 else
17301   # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 $ac_includes_default
17312 #include <$ac_header>
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316   (eval $ac_compile) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -s conftest.$ac_objext'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_header_compiler=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_header_compiler=no
17332 fi
17333 rm -f conftest.$ac_objext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6
17336
17337 # Is the header present?
17338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347 #include <$ac_header>
17348 _ACEOF
17349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } >/dev/null; then
17357   if test -s conftest.err; then
17358     ac_cpp_err=$ac_cxx_preproc_warn_flag
17359   else
17360     ac_cpp_err=
17361   fi
17362 else
17363   ac_cpp_err=yes
17364 fi
17365 if test -z "$ac_cpp_err"; then
17366   ac_header_preproc=yes
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371   ac_header_preproc=no
17372 fi
17373 rm -f conftest.err conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6
17376
17377 # So?  What about this header?
17378 case $ac_header_compiler:$ac_header_preproc in
17379   yes:no )
17380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17384     (
17385       cat <<\_ASBOX
17386 ## ------------------------------------ ##
17387 ## Report this to bug-autoconf@gnu.org. ##
17388 ## ------------------------------------ ##
17389 _ASBOX
17390     ) |
17391       sed "s/^/$as_me: WARNING:     /" >&2
17392     ;;
17393   no:yes )
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17400     (
17401       cat <<\_ASBOX
17402 ## ------------------------------------ ##
17403 ## Report this to bug-autoconf@gnu.org. ##
17404 ## ------------------------------------ ##
17405 _ASBOX
17406     ) |
17407       sed "s/^/$as_me: WARNING:     /" >&2
17408     ;;
17409 esac
17410 echo "$as_me:$LINENO: checking for $ac_header" >&5
17411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   eval "$as_ac_Header=$ac_header_preproc"
17416 fi
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17419
17420 fi
17421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422   cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17424 _ACEOF
17425
17426 fi
17427
17428 done
17429
17430
17431     if test "$ac_cv_header_iostream" = "yes" ; then
17432       :
17433     else
17434       cat >>confdefs.h <<\_ACEOF
17435 #define wxUSE_IOSTREAMH 1
17436 _ACEOF
17437
17438     fi
17439
17440     ac_ext=c
17441 ac_cpp='$CPP $CPPFLAGS'
17442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17445
17446   fi
17447
17448
17449
17450   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17451 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17452 if test "${wx_cv_cpp_bool+set}" = set; then
17453   echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455
17456
17457
17458     ac_ext=cc
17459 ac_cpp='$CXXCPP $CPPFLAGS'
17460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17463
17464
17465     cat >conftest.$ac_ext <<_ACEOF
17466 #line $LINENO "configure"
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472
17473
17474 int
17475 main ()
17476 {
17477
17478         bool b = true;
17479
17480         return 0;
17481
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488   (eval $ac_compile) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); } &&
17492          { ac_try='test -s conftest.$ac_objext'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498
17499         wx_cv_cpp_bool=yes
17500
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505
17506         wx_cv_cpp_bool=no
17507
17508
17509 fi
17510 rm -f conftest.$ac_objext conftest.$ac_ext
17511
17512     ac_ext=c
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517
17518
17519 fi
17520 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17521 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17522
17523   if test "$wx_cv_cpp_bool" = "yes"; then
17524     cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_BOOL 1
17526 _ACEOF
17527
17528   fi
17529
17530
17531
17532   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17533 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17534 if test "${wx_cv_explicit+set}" = set; then
17535   echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537
17538
17539
17540     ac_ext=cc
17541 ac_cpp='$CXXCPP $CPPFLAGS'
17542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17545
17546
17547             cat >conftest.$ac_ext <<_ACEOF
17548 #line $LINENO "configure"
17549 /* confdefs.h.  */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h.  */
17554
17555         class Foo { public: explicit Foo(int) {} };
17556
17557 int
17558 main ()
17559 {
17560
17561         return 0;
17562
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569   (eval $ac_compile) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -s conftest.$ac_objext'
17574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575   (eval $ac_try) 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); }; }; then
17579
17580         cat >conftest.$ac_ext <<_ACEOF
17581 #line $LINENO "configure"
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587
17588                 class Foo { public: explicit Foo(int) {} };
17589                 static void TakeFoo(const Foo& foo) { }
17590
17591 int
17592 main ()
17593 {
17594
17595                 TakeFoo(17);
17596                 return 0;
17597
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604   (eval $ac_compile) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } &&
17608          { ac_try='test -s conftest.$ac_objext'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   wx_cv_explicit=no
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619 wx_cv_explicit=yes
17620
17621 fi
17622 rm -f conftest.$ac_objext conftest.$ac_ext
17623
17624 else
17625   echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 wx_cv_explicit=no
17629
17630 fi
17631 rm -f conftest.$ac_objext conftest.$ac_ext
17632
17633     ac_ext=c
17634 ac_cpp='$CPP $CPPFLAGS'
17635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17638
17639
17640 fi
17641 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17642 echo "${ECHO_T}$wx_cv_explicit" >&6
17643
17644   if test "$wx_cv_explicit" = "yes"; then
17645     cat >>confdefs.h <<\_ACEOF
17646 #define HAVE_EXPLICIT 1
17647 _ACEOF
17648
17649   fi
17650
17651
17652 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17653 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17654 if test "${ac_cv_cxx_const_cast+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657
17658
17659  ac_ext=cc
17660 ac_cpp='$CXXCPP $CPPFLAGS'
17661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17664
17665  cat >conftest.$ac_ext <<_ACEOF
17666 #line $LINENO "configure"
17667 /* confdefs.h.  */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h.  */
17672
17673 int
17674 main ()
17675 {
17676 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
17677   ;
17678   return 0;
17679 }
17680 _ACEOF
17681 rm -f conftest.$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683   (eval $ac_compile) 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); } &&
17687          { ac_try='test -s conftest.$ac_objext'
17688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689   (eval $ac_try) 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; }; then
17693   ac_cv_cxx_const_cast=yes
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698 ac_cv_cxx_const_cast=no
17699 fi
17700 rm -f conftest.$ac_objext conftest.$ac_ext
17701  ac_ext=c
17702 ac_cpp='$CPP $CPPFLAGS'
17703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706
17707
17708 fi
17709 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17710 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
17711 if test "$ac_cv_cxx_const_cast" = yes; then
17712
17713 cat >>confdefs.h <<\_ACEOF
17714 #define HAVE_CONST_CAST
17715 _ACEOF
17716
17717 fi
17718
17719
17720 if test "$wxUSE_STL" = "yes"; then
17721     ac_ext=cc
17722 ac_cpp='$CXXCPP $CPPFLAGS'
17723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17726
17727
17728         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17729 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17730     cat >conftest.$ac_ext <<_ACEOF
17731 #line $LINENO "configure"
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737 #include <string>
17738                     #include <functional>
17739                     #include <algorithm>
17740                     #include <vector>
17741                     #include <list>
17742 int
17743 main ()
17744 {
17745 std::vector<int> moo;
17746                      std::list<int> foo;
17747                      std::vector<int>::iterator it =
17748                          std::find_if(moo.begin(), moo.end(),
17749                                       std::bind2nd(std::less<int>(), 3));
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17756   (eval $ac_compile) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } &&
17760          { ac_try='test -s conftest.$ac_objext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   echo "$as_me:$LINENO: result: yes" >&5
17767 echo "${ECHO_T}yes" >&6
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772 echo "$as_me:$LINENO: result: no" >&5
17773 echo "${ECHO_T}no" >&6
17774                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17775 echo "$as_me: error: Basic STL functionality missing" >&2;}
17776    { (exit 1); exit 1; }; }
17777 fi
17778 rm -f conftest.$ac_objext conftest.$ac_ext
17779
17780         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17781 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17782     cat >conftest.$ac_ext <<_ACEOF
17783 #line $LINENO "configure"
17784 /* confdefs.h.  */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h.  */
17789 #include <string>
17790 int
17791 main ()
17792 {
17793 std::wstring foo;
17794   ;
17795   return 0;
17796 }
17797 _ACEOF
17798 rm -f conftest.$ac_objext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800   (eval $ac_compile) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -s conftest.$ac_objext'
17805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806   (eval $ac_try) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }; }; then
17810   echo "$as_me:$LINENO: result: yes" >&5
17811 echo "${ECHO_T}yes" >&6
17812                     cat >>confdefs.h <<\_ACEOF
17813 #define HAVE_STD_WSTRING 1
17814 _ACEOF
17815
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 echo "$as_me:$LINENO: result: no" >&5
17821 echo "${ECHO_T}no" >&6
17822 fi
17823 rm -f conftest.$ac_objext conftest.$ac_ext
17824
17825         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17826 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17827     cat >conftest.$ac_ext <<_ACEOF
17828 #line $LINENO "configure"
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 #include <string>
17835 int
17836 main ()
17837 {
17838 std::string foo, bar;
17839                     foo.compare(bar);
17840                     foo.compare(1, 1, bar);
17841                     foo.compare(1, 1, bar, 1, 1);
17842                     foo.compare("");
17843                     foo.compare(1, 1, "");
17844                     foo.compare(1, 1, "", 2);
17845   ;
17846   return 0;
17847 }
17848 _ACEOF
17849 rm -f conftest.$ac_objext
17850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17851   (eval $ac_compile) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -s conftest.$ac_objext'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; }; then
17861   echo "$as_me:$LINENO: result: yes" >&5
17862 echo "${ECHO_T}yes" >&6
17863                     cat >>confdefs.h <<\_ACEOF
17864 #define HAVE_STD_STRING_COMPARE 1
17865 _ACEOF
17866
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6
17873 fi
17874 rm -f conftest.$ac_objext conftest.$ac_ext
17875
17876     ac_ext=c
17877 ac_cpp='$CPP $CPPFLAGS'
17878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17881
17882 fi
17883
17884
17885 SEARCH_INCLUDE="\
17886     /usr/local/include        \
17887                               \
17888     /usr/Motif-1.2/include    \
17889     /usr/Motif-2.1/include    \
17890                               \
17891     /usr/include/Motif1.2     \
17892     /opt/xpm/include/X11      \
17893     /opt/GBxpm/include/       \
17894     /opt/GBxpm/X11/include/   \
17895                               \
17896     /usr/Motif1.2/include     \
17897     /usr/dt/include           \
17898     /usr/openwin/include      \
17899                               \
17900     /usr/include/Xm           \
17901                               \
17902     /usr/X11R6/include        \
17903     /usr/X11R6.4/include      \
17904     /usr/X11R5/include        \
17905     /usr/X11R4/include        \
17906                               \
17907     /usr/include/X11R6        \
17908     /usr/include/X11R5        \
17909     /usr/include/X11R4        \
17910                               \
17911     /usr/local/X11R6/include  \
17912     /usr/local/X11R5/include  \
17913     /usr/local/X11R4/include  \
17914                               \
17915     /usr/local/include/X11R6  \
17916     /usr/local/include/X11R5  \
17917     /usr/local/include/X11R4  \
17918                               \
17919     /usr/X11/include          \
17920     /usr/include/X11          \
17921     /usr/local/X11/include    \
17922     /usr/local/include/X11    \
17923                               \
17924     /usr/X386/include         \
17925     /usr/x386/include         \
17926     /usr/XFree86/include/X11  \
17927                               \
17928     X:/XFree86/include        \
17929     X:/XFree86/include/X11    \
17930                               \
17931     /usr/include/gtk          \
17932     /usr/local/include/gtk    \
17933     /usr/include/glib         \
17934     /usr/local/include/glib   \
17935                               \
17936     /usr/include/qt           \
17937     /usr/local/include/qt     \
17938                               \
17939     /usr/include/windows      \
17940     /usr/include/wine         \
17941     /usr/local/include/wine   \
17942                               \
17943     /usr/unsupported/include  \
17944     /usr/athena/include       \
17945     /usr/local/x11r5/include  \
17946     /usr/lpp/Xamples/include  \
17947                               \
17948     /usr/openwin/share/include"
17949
17950 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17951
17952
17953 cat >confcache <<\_ACEOF
17954 # This file is a shell script that caches the results of configure
17955 # tests run on this system so they can be shared between configure
17956 # scripts and configure runs, see configure's option --config-cache.
17957 # It is not useful on other systems.  If it contains results you don't
17958 # want to keep, you may remove or edit it.
17959 #
17960 # config.status only pays attention to the cache file if you give it
17961 # the --recheck option to rerun configure.
17962 #
17963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17965 # following values.
17966
17967 _ACEOF
17968
17969 # The following way of writing the cache mishandles newlines in values,
17970 # but we know of no workaround that is simple, portable, and efficient.
17971 # So, don't put newlines in cache variables' values.
17972 # Ultrix sh set writes to stderr and can't be redirected directly,
17973 # and sets the high bit in the cache file unless we assign to the vars.
17974 {
17975   (set) 2>&1 |
17976     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17977     *ac_space=\ *)
17978       # `set' does not quote correctly, so add quotes (double-quote
17979       # substitution turns \\\\ into \\, and sed turns \\ into \).
17980       sed -n \
17981         "s/'/'\\\\''/g;
17982           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17983       ;;
17984     *)
17985       # `set' quotes correctly as required by POSIX, so do not add quotes.
17986       sed -n \
17987         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17988       ;;
17989     esac;
17990 } |
17991   sed '
17992      t clear
17993      : clear
17994      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17995      t end
17996      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17997      : end' >>confcache
17998 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17999   if test -w $cache_file; then
18000     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18001     cat confcache >$cache_file
18002   else
18003     echo "not updating unwritable cache $cache_file"
18004   fi
18005 fi
18006 rm -f confcache
18007
18008 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18009     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18010 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18011 if test "${wx_cv_lib_glibc21+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014
18015         cat >conftest.$ac_ext <<_ACEOF
18016 #line $LINENO "configure"
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022 #include <features.h>
18023 int
18024 main ()
18025 {
18026
18027                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18028                     #error not glibc2.1
18029                 #endif
18030
18031   ;
18032   return 0;
18033 }
18034 _ACEOF
18035 rm -f conftest.$ac_objext
18036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18037   (eval $ac_compile) 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); } &&
18041          { ac_try='test -s conftest.$ac_objext'
18042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043   (eval $ac_try) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; }; then
18047
18048                 wx_cv_lib_glibc21=yes
18049
18050 else
18051   echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054
18055                 wx_cv_lib_glibc21=no
18056
18057
18058 fi
18059 rm -f conftest.$ac_objext conftest.$ac_ext
18060
18061 fi
18062 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18063 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18064     if test "$wx_cv_lib_glibc21" = "yes"; then
18065         cat >>confdefs.h <<\_ACEOF
18066 #define wxHAVE_GLIBC2 1
18067 _ACEOF
18068
18069     fi
18070 fi
18071
18072 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18073     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18074         cat >>confdefs.h <<\_ACEOF
18075 #define _GNU_SOURCE 1
18076 _ACEOF
18077
18078     fi
18079 fi
18080
18081
18082
18083 REGEX_INCLUDE=
18084 if test "$wxUSE_REGEX" != "no"; then
18085     cat >>confdefs.h <<\_ACEOF
18086 #define wxUSE_REGEX 1
18087 _ACEOF
18088
18089
18090     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18091                         if test "${ac_cv_header_regex_h+set}" = set; then
18092   echo "$as_me:$LINENO: checking for regex.h" >&5
18093 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18094 if test "${ac_cv_header_regex_h+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 fi
18097 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18098 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18099 else
18100   # Is the header compilable?
18101 echo "$as_me:$LINENO: checking regex.h usability" >&5
18102 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18103 cat >conftest.$ac_ext <<_ACEOF
18104 #line $LINENO "configure"
18105 /* confdefs.h.  */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h.  */
18110 $ac_includes_default
18111 #include <regex.h>
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115   (eval $ac_compile) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } &&
18119          { ac_try='test -s conftest.$ac_objext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   ac_header_compiler=yes
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_header_compiler=no
18131 fi
18132 rm -f conftest.$ac_objext conftest.$ac_ext
18133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18134 echo "${ECHO_T}$ac_header_compiler" >&6
18135
18136 # Is the header present?
18137 echo "$as_me:$LINENO: checking regex.h presence" >&5
18138 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18139 cat >conftest.$ac_ext <<_ACEOF
18140 #line $LINENO "configure"
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 #include <regex.h>
18147 _ACEOF
18148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18150   ac_status=$?
18151   grep -v '^ *+' conftest.er1 >conftest.err
18152   rm -f conftest.er1
18153   cat conftest.err >&5
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); } >/dev/null; then
18156   if test -s conftest.err; then
18157     ac_cpp_err=$ac_c_preproc_warn_flag
18158   else
18159     ac_cpp_err=
18160   fi
18161 else
18162   ac_cpp_err=yes
18163 fi
18164 if test -z "$ac_cpp_err"; then
18165   ac_header_preproc=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170   ac_header_preproc=no
18171 fi
18172 rm -f conftest.err conftest.$ac_ext
18173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18174 echo "${ECHO_T}$ac_header_preproc" >&6
18175
18176 # So?  What about this header?
18177 case $ac_header_compiler:$ac_header_preproc in
18178   yes:no )
18179     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18180 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18181     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18182 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18183     (
18184       cat <<\_ASBOX
18185 ## ------------------------------------ ##
18186 ## Report this to bug-autoconf@gnu.org. ##
18187 ## ------------------------------------ ##
18188 _ASBOX
18189     ) |
18190       sed "s/^/$as_me: WARNING:     /" >&2
18191     ;;
18192   no:yes )
18193     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18194 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18195     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18196 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18197     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18198 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18199     (
18200       cat <<\_ASBOX
18201 ## ------------------------------------ ##
18202 ## Report this to bug-autoconf@gnu.org. ##
18203 ## ------------------------------------ ##
18204 _ASBOX
18205     ) |
18206       sed "s/^/$as_me: WARNING:     /" >&2
18207     ;;
18208 esac
18209 echo "$as_me:$LINENO: checking for regex.h" >&5
18210 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18211 if test "${ac_cv_header_regex_h+set}" = set; then
18212   echo $ECHO_N "(cached) $ECHO_C" >&6
18213 else
18214   ac_cv_header_regex_h=$ac_header_preproc
18215 fi
18216 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18217 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18218
18219 fi
18220 if test $ac_cv_header_regex_h = yes; then
18221
18222 for ac_func in regcomp
18223 do
18224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18225 echo "$as_me:$LINENO: checking for $ac_func" >&5
18226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18227 if eval "test \"\${$as_ac_var+set}\" = set"; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230   cat >conftest.$ac_ext <<_ACEOF
18231 #line $LINENO "configure"
18232 /* confdefs.h.  */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h.  */
18237 /* System header to define __stub macros and hopefully few prototypes,
18238     which can conflict with char $ac_func (); below.
18239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240     <limits.h> exists even on freestanding compilers.  */
18241 #ifdef __STDC__
18242 # include <limits.h>
18243 #else
18244 # include <assert.h>
18245 #endif
18246 /* Override any gcc2 internal prototype to avoid an error.  */
18247 #ifdef __cplusplus
18248 extern "C"
18249 {
18250 #endif
18251 /* We use char because int might match the return type of a gcc2
18252    builtin and then its argument prototype would still apply.  */
18253 char $ac_func ();
18254 /* The GNU C library defines this for functions which it implements
18255     to always fail with ENOSYS.  Some functions are actually named
18256     something starting with __ and the normal name is an alias.  */
18257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18258 choke me
18259 #else
18260 char (*f) () = $ac_func;
18261 #endif
18262 #ifdef __cplusplus
18263 }
18264 #endif
18265
18266 int
18267 main ()
18268 {
18269 return f != $ac_func;
18270   ;
18271   return 0;
18272 }
18273 _ACEOF
18274 rm -f conftest.$ac_objext conftest$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276   (eval $ac_link) 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } &&
18280          { ac_try='test -s conftest$ac_exeext'
18281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; }; then
18286   eval "$as_ac_var=yes"
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291 eval "$as_ac_var=no"
18292 fi
18293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18294 fi
18295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18297 if test `eval echo '${'$as_ac_var'}'` = yes; then
18298   cat >>confdefs.h <<_ACEOF
18299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18300 _ACEOF
18301
18302 fi
18303 done
18304
18305 fi
18306
18307
18308
18309         if test "x$ac_cv_func_regcomp" != "xyes"; then
18310             if test "$wxUSE_REGEX" = "sys" ; then
18311                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18312 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18313    { (exit 1); exit 1; }; }
18314             else
18315                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18316 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18317                 wxUSE_REGEX=builtin
18318             fi
18319         else
18320                         wxUSE_REGEX=sys
18321         fi
18322     fi
18323
18324     if test "$wxUSE_REGEX" = "builtin" ; then
18325         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
18326     fi
18327 fi
18328
18329
18330 ZLIB_INCLUDE=
18331 ZLIB_LINK=
18332 if test "$wxUSE_ZLIB" != "no" ; then
18333     cat >>confdefs.h <<\_ACEOF
18334 #define wxUSE_ZLIB 1
18335 _ACEOF
18336
18337
18338     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18339                                                 if test "$USE_DARWIN" = 1; then
18340             system_zlib_h_ok="yes"
18341         else
18342                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18343 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18344 if test "${ac_cv_header_zlib_h+set}" = set; then
18345   echo $ECHO_N "(cached) $ECHO_C" >&6
18346 else
18347   if test "$cross_compiling" = yes; then
18348                       unset ac_cv_header_zlib_h
18349
18350 else
18351   cat >conftest.$ac_ext <<_ACEOF
18352 #line $LINENO "configure"
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358
18359                         #include <zlib.h>
18360                         #include <stdio.h>
18361
18362                         int main()
18363                         {
18364                             FILE *f=fopen("conftestval", "w");
18365                             if (!f) exit(1);
18366                             fprintf(f, "%s",
18367                                     ZLIB_VERSION[0] == '1' &&
18368                                     (ZLIB_VERSION[2] > '1' ||
18369                                     (ZLIB_VERSION[2] == '1' &&
18370                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18371                             exit(0);
18372                         }
18373
18374 _ACEOF
18375 rm -f conftest$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377   (eval $ac_link) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
18386   ac_cv_header_zlib_h=`cat conftestval`
18387 else
18388   echo "$as_me: program exited with status $ac_status" >&5
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ( exit $ac_status )
18393 ac_cv_header_zlib_h=no
18394 fi
18395 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18396 fi
18397
18398 fi
18399 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18400 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18401                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18402   echo "$as_me:$LINENO: checking for zlib.h" >&5
18403 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18404 if test "${ac_cv_header_zlib_h+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 fi
18407 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18408 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18409 else
18410   # Is the header compilable?
18411 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18412 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18413 cat >conftest.$ac_ext <<_ACEOF
18414 #line $LINENO "configure"
18415 /* confdefs.h.  */
18416 _ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h.  */
18420 $ac_includes_default
18421 #include <zlib.h>
18422 _ACEOF
18423 rm -f conftest.$ac_objext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18425   (eval $ac_compile) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } &&
18429          { ac_try='test -s conftest.$ac_objext'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_header_compiler=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_header_compiler=no
18441 fi
18442 rm -f conftest.$ac_objext conftest.$ac_ext
18443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18444 echo "${ECHO_T}$ac_header_compiler" >&6
18445
18446 # Is the header present?
18447 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18448 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18449 cat >conftest.$ac_ext <<_ACEOF
18450 #line $LINENO "configure"
18451 /* confdefs.h.  */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h.  */
18456 #include <zlib.h>
18457 _ACEOF
18458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } >/dev/null; then
18466   if test -s conftest.err; then
18467     ac_cpp_err=$ac_c_preproc_warn_flag
18468   else
18469     ac_cpp_err=
18470   fi
18471 else
18472   ac_cpp_err=yes
18473 fi
18474 if test -z "$ac_cpp_err"; then
18475   ac_header_preproc=yes
18476 else
18477   echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480   ac_header_preproc=no
18481 fi
18482 rm -f conftest.err conftest.$ac_ext
18483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18484 echo "${ECHO_T}$ac_header_preproc" >&6
18485
18486 # So?  What about this header?
18487 case $ac_header_compiler:$ac_header_preproc in
18488   yes:no )
18489     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18490 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18491     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18492 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18493     (
18494       cat <<\_ASBOX
18495 ## ------------------------------------ ##
18496 ## Report this to bug-autoconf@gnu.org. ##
18497 ## ------------------------------------ ##
18498 _ASBOX
18499     ) |
18500       sed "s/^/$as_me: WARNING:     /" >&2
18501     ;;
18502   no:yes )
18503     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18504 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18505     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18506 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18507     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18508 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18509     (
18510       cat <<\_ASBOX
18511 ## ------------------------------------ ##
18512 ## Report this to bug-autoconf@gnu.org. ##
18513 ## ------------------------------------ ##
18514 _ASBOX
18515     ) |
18516       sed "s/^/$as_me: WARNING:     /" >&2
18517     ;;
18518 esac
18519 echo "$as_me:$LINENO: checking for zlib.h" >&5
18520 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18521 if test "${ac_cv_header_zlib_h+set}" = set; then
18522   echo $ECHO_N "(cached) $ECHO_C" >&6
18523 else
18524   ac_cv_header_zlib_h=$ac_header_preproc
18525 fi
18526 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18527 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18528
18529 fi
18530
18531
18532
18533             system_zlib_h_ok=$ac_cv_header_zlib_h
18534         fi
18535
18536         if test "$system_zlib_h_ok" = "yes"; then
18537             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18538 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18539 if test "${ac_cv_lib_z_deflate+set}" = set; then
18540   echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542   ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lz  $LIBS"
18544 cat >conftest.$ac_ext <<_ACEOF
18545 #line $LINENO "configure"
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551
18552 /* Override any gcc2 internal prototype to avoid an error.  */
18553 #ifdef __cplusplus
18554 extern "C"
18555 #endif
18556 /* We use char because int might match the return type of a gcc2
18557    builtin and then its argument prototype would still apply.  */
18558 char deflate ();
18559 int
18560 main ()
18561 {
18562 deflate ();
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18569   (eval $ac_link) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); } &&
18573          { ac_try='test -s conftest$ac_exeext'
18574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575   (eval $ac_try) 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; }; then
18579   ac_cv_lib_z_deflate=yes
18580 else
18581   echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18583
18584 ac_cv_lib_z_deflate=no
18585 fi
18586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18587 LIBS=$ac_check_lib_save_LIBS
18588 fi
18589 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18590 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18591 if test $ac_cv_lib_z_deflate = yes; then
18592   ZLIB_LINK=" -lz"
18593 fi
18594
18595         fi
18596
18597         if test "x$ZLIB_LINK" = "x" ; then
18598             if test "$wxUSE_ZLIB" = "sys" ; then
18599                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18600 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18601    { (exit 1); exit 1; }; }
18602             else
18603                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18604 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
18605                 wxUSE_ZLIB=builtin
18606             fi
18607         else
18608                         wxUSE_ZLIB=sys
18609         fi
18610     fi
18611
18612     if test "$wxUSE_ZLIB" = "builtin" ; then
18613         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18614     fi
18615 fi
18616
18617
18618 PNG_INCLUDE=
18619 PNG_LINK=
18620 if test "$wxUSE_LIBPNG" != "no" ; then
18621     cat >>confdefs.h <<\_ACEOF
18622 #define wxUSE_LIBPNG 1
18623 _ACEOF
18624
18625
18626     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
18627         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18628 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
18629         wxUSE_LIBPNG=sys
18630     fi
18631
18632                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
18633         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18634 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
18635         wxUSE_LIBPNG=builtin
18636     fi
18637
18638     if test "$wxUSE_MGL" != 1 ; then
18639                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
18640                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18641 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18642 if test "${ac_cv_header_png_h+set}" = set; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   if test "$cross_compiling" = yes; then
18646                       unset ac_cv_header_png_h
18647
18648 else
18649   cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656
18657                         #include <png.h>
18658                         #include <stdio.h>
18659
18660                         int main()
18661                         {
18662                             FILE *f=fopen("conftestval", "w");
18663                             if (!f) exit(1);
18664                             fprintf(f, "%s",
18665                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
18666                             exit(0);
18667                         }
18668
18669 _ACEOF
18670 rm -f conftest$ac_exeext
18671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18672   (eval $ac_link) 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677   (eval $ac_try) 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_header_png_h=`cat conftestval`
18682 else
18683   echo "$as_me: program exited with status $ac_status" >&5
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 ( exit $ac_status )
18688 ac_cv_header_png_h=no
18689 fi
18690 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18691 fi
18692
18693 fi
18694 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18695 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18696             if test "${ac_cv_header_png_h+set}" = set; then
18697   echo "$as_me:$LINENO: checking for png.h" >&5
18698 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18699 if test "${ac_cv_header_png_h+set}" = set; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 fi
18702 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18703 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18704 else
18705   # Is the header compilable?
18706 echo "$as_me:$LINENO: checking png.h usability" >&5
18707 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18708 cat >conftest.$ac_ext <<_ACEOF
18709 #line $LINENO "configure"
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715 $ac_includes_default
18716 #include <png.h>
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18720   (eval $ac_compile) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); } &&
18724          { ac_try='test -s conftest.$ac_objext'
18725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726   (eval $ac_try) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; }; then
18730   ac_header_compiler=yes
18731 else
18732   echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 ac_header_compiler=no
18736 fi
18737 rm -f conftest.$ac_objext conftest.$ac_ext
18738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18739 echo "${ECHO_T}$ac_header_compiler" >&6
18740
18741 # Is the header present?
18742 echo "$as_me:$LINENO: checking png.h presence" >&5
18743 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18744 cat >conftest.$ac_ext <<_ACEOF
18745 #line $LINENO "configure"
18746 /* confdefs.h.  */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h.  */
18751 #include <png.h>
18752 _ACEOF
18753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18755   ac_status=$?
18756   grep -v '^ *+' conftest.er1 >conftest.err
18757   rm -f conftest.er1
18758   cat conftest.err >&5
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } >/dev/null; then
18761   if test -s conftest.err; then
18762     ac_cpp_err=$ac_c_preproc_warn_flag
18763   else
18764     ac_cpp_err=
18765   fi
18766 else
18767   ac_cpp_err=yes
18768 fi
18769 if test -z "$ac_cpp_err"; then
18770   ac_header_preproc=yes
18771 else
18772   echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775   ac_header_preproc=no
18776 fi
18777 rm -f conftest.err conftest.$ac_ext
18778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18779 echo "${ECHO_T}$ac_header_preproc" >&6
18780
18781 # So?  What about this header?
18782 case $ac_header_compiler:$ac_header_preproc in
18783   yes:no )
18784     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18785 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18786     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18787 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18788     (
18789       cat <<\_ASBOX
18790 ## ------------------------------------ ##
18791 ## Report this to bug-autoconf@gnu.org. ##
18792 ## ------------------------------------ ##
18793 _ASBOX
18794     ) |
18795       sed "s/^/$as_me: WARNING:     /" >&2
18796     ;;
18797   no:yes )
18798     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18799 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18800     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18801 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18802     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18803 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18804     (
18805       cat <<\_ASBOX
18806 ## ------------------------------------ ##
18807 ## Report this to bug-autoconf@gnu.org. ##
18808 ## ------------------------------------ ##
18809 _ASBOX
18810     ) |
18811       sed "s/^/$as_me: WARNING:     /" >&2
18812     ;;
18813 esac
18814 echo "$as_me:$LINENO: checking for png.h" >&5
18815 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18816 if test "${ac_cv_header_png_h+set}" = set; then
18817   echo $ECHO_N "(cached) $ECHO_C" >&6
18818 else
18819   ac_cv_header_png_h=$ac_header_preproc
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18822 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18823
18824 fi
18825
18826
18827
18828             if test "$ac_cv_header_png_h" = "yes"; then
18829                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18830 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18831 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834   ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-lpng -lz -lm $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 #line $LINENO "configure"
18838 /* confdefs.h.  */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h.  */
18843
18844 /* Override any gcc2 internal prototype to avoid an error.  */
18845 #ifdef __cplusplus
18846 extern "C"
18847 #endif
18848 /* We use char because int might match the return type of a gcc2
18849    builtin and then its argument prototype would still apply.  */
18850 char png_check_sig ();
18851 int
18852 main ()
18853 {
18854 png_check_sig ();
18855   ;
18856   return 0;
18857 }
18858 _ACEOF
18859 rm -f conftest.$ac_objext conftest$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861   (eval $ac_link) 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); } &&
18865          { ac_try='test -s conftest$ac_exeext'
18866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867   (eval $ac_try) 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; }; then
18871   ac_cv_lib_png_png_check_sig=yes
18872 else
18873   echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875
18876 ac_cv_lib_png_png_check_sig=no
18877 fi
18878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18879 LIBS=$ac_check_lib_save_LIBS
18880 fi
18881 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18882 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18883 if test $ac_cv_lib_png_png_check_sig = yes; then
18884   PNG_LINK=" -lpng"
18885 fi
18886
18887             fi
18888
18889             if test "x$PNG_LINK" = "x" ; then
18890                 if test "$wxUSE_LIBPNG" = "sys" ; then
18891                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18892 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18893    { (exit 1); exit 1; }; }
18894                 else
18895                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18896 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
18897                     wxUSE_LIBPNG=builtin
18898                 fi
18899             else
18900                                 wxUSE_LIBPNG=sys
18901             fi
18902         fi
18903     fi
18904
18905     if test "$wxUSE_LIBPNG" = "builtin" ; then
18906         PNG_INCLUDE="-I\${top_srcdir}/src/png"
18907     fi
18908
18909     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
18910 fi
18911
18912
18913 JPEG_INCLUDE=
18914 JPEG_LINK=
18915 if test "$wxUSE_LIBJPEG" != "no" ; then
18916     cat >>confdefs.h <<\_ACEOF
18917 #define wxUSE_LIBJPEG 1
18918 _ACEOF
18919
18920
18921     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
18922         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18923 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
18924         wxUSE_LIBJPEG=sys
18925     fi
18926
18927     if test "$wxUSE_MGL" != 1 ; then
18928                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
18929                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18930 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18931             if test "${ac_cv_header_jpeglib_h+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934   cat >conftest.$ac_ext <<_ACEOF
18935 #line $LINENO "configure"
18936 /* confdefs.h.  */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h.  */
18941
18942                         #undef HAVE_STDLIB_H
18943                         #include <stdio.h>
18944                         #include <jpeglib.h>
18945
18946 int
18947 main ()
18948 {
18949
18950
18951   ;
18952   return 0;
18953 }
18954 _ACEOF
18955 rm -f conftest.$ac_objext
18956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18957   (eval $ac_compile) 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -s conftest.$ac_objext'
18962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963   (eval $ac_try) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; }; then
18967   ac_cv_header_jpeglib_h=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 ac_cv_header_jpeglib_h=no
18973
18974 fi
18975 rm -f conftest.$ac_objext conftest.$ac_ext
18976
18977 fi
18978
18979             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18980 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18981
18982             if test "$ac_cv_header_jpeglib_h" = "yes"; then
18983                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18984 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18985 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   ac_check_lib_save_LIBS=$LIBS
18989 LIBS="-ljpeg  $LIBS"
18990 cat >conftest.$ac_ext <<_ACEOF
18991 #line $LINENO "configure"
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997
18998 /* Override any gcc2 internal prototype to avoid an error.  */
18999 #ifdef __cplusplus
19000 extern "C"
19001 #endif
19002 /* We use char because int might match the return type of a gcc2
19003    builtin and then its argument prototype would still apply.  */
19004 char jpeg_read_header ();
19005 int
19006 main ()
19007 {
19008 jpeg_read_header ();
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19015   (eval $ac_link) 2>&5
19016   ac_status=$?
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); } &&
19019          { ac_try='test -s conftest$ac_exeext'
19020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021   (eval $ac_try) 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); }; }; then
19025   ac_cv_lib_jpeg_jpeg_read_header=yes
19026 else
19027   echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19029
19030 ac_cv_lib_jpeg_jpeg_read_header=no
19031 fi
19032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19033 LIBS=$ac_check_lib_save_LIBS
19034 fi
19035 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19036 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19037 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19038   JPEG_LINK=" -ljpeg"
19039 fi
19040
19041             fi
19042
19043             if test "x$JPEG_LINK" = "x" ; then
19044                 if test "$wxUSE_LIBJPEG" = "sys" ; then
19045                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19046 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19047    { (exit 1); exit 1; }; }
19048                 else
19049                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19050 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19051                     wxUSE_LIBJPEG=builtin
19052                 fi
19053             else
19054                                 wxUSE_LIBJPEG=sys
19055             fi
19056         fi
19057     fi
19058
19059     if test "$wxUSE_LIBJPEG" = "builtin" ; then
19060         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19061     fi
19062 fi
19063
19064
19065 TIFF_INCLUDE=
19066 TIFF_LINK=
19067 TIFF_PREREQ_LINKS=-lm
19068 if test "$wxUSE_LIBTIFF" != "no" ; then
19069     cat >>confdefs.h <<\_ACEOF
19070 #define wxUSE_LIBTIFF 1
19071 _ACEOF
19072
19073
19074     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19075                         if test "$wxUSE_LIBJPEG" = "sys"; then
19076             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19077         fi
19078         if test "$wxUSE_ZLIB" = "sys"; then
19079             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19080         fi
19081         if test "${ac_cv_header_tiffio_h+set}" = set; then
19082   echo "$as_me:$LINENO: checking for tiffio.h" >&5
19083 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19084 if test "${ac_cv_header_tiffio_h+set}" = set; then
19085   echo $ECHO_N "(cached) $ECHO_C" >&6
19086 fi
19087 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19088 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19089 else
19090   # Is the header compilable?
19091 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19092 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19093 cat >conftest.$ac_ext <<_ACEOF
19094 #line $LINENO "configure"
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100 $ac_includes_default
19101 #include <tiffio.h>
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105   (eval $ac_compile) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); } &&
19109          { ac_try='test -s conftest.$ac_objext'
19110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111   (eval $ac_try) 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); }; }; then
19115   ac_header_compiler=yes
19116 else
19117   echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 ac_header_compiler=no
19121 fi
19122 rm -f conftest.$ac_objext conftest.$ac_ext
19123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19124 echo "${ECHO_T}$ac_header_compiler" >&6
19125
19126 # Is the header present?
19127 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19128 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19130 #line $LINENO "configure"
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #include <tiffio.h>
19137 _ACEOF
19138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } >/dev/null; then
19146   if test -s conftest.err; then
19147     ac_cpp_err=$ac_c_preproc_warn_flag
19148   else
19149     ac_cpp_err=
19150   fi
19151 else
19152   ac_cpp_err=yes
19153 fi
19154 if test -z "$ac_cpp_err"; then
19155   ac_header_preproc=yes
19156 else
19157   echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19159
19160   ac_header_preproc=no
19161 fi
19162 rm -f conftest.err conftest.$ac_ext
19163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19164 echo "${ECHO_T}$ac_header_preproc" >&6
19165
19166 # So?  What about this header?
19167 case $ac_header_compiler:$ac_header_preproc in
19168   yes:no )
19169     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19170 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19171     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19172 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19173     (
19174       cat <<\_ASBOX
19175 ## ------------------------------------ ##
19176 ## Report this to bug-autoconf@gnu.org. ##
19177 ## ------------------------------------ ##
19178 _ASBOX
19179     ) |
19180       sed "s/^/$as_me: WARNING:     /" >&2
19181     ;;
19182   no:yes )
19183     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19184 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19185     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19186 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19187     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19188 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19189     (
19190       cat <<\_ASBOX
19191 ## ------------------------------------ ##
19192 ## Report this to bug-autoconf@gnu.org. ##
19193 ## ------------------------------------ ##
19194 _ASBOX
19195     ) |
19196       sed "s/^/$as_me: WARNING:     /" >&2
19197     ;;
19198 esac
19199 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19200 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19201 if test "${ac_cv_header_tiffio_h+set}" = set; then
19202   echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204   ac_cv_header_tiffio_h=$ac_header_preproc
19205 fi
19206 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19207 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19208
19209 fi
19210 if test $ac_cv_header_tiffio_h = yes; then
19211   echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19212 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19213 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19214   echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216   ac_check_lib_save_LIBS=$LIBS
19217 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
19218 cat >conftest.$ac_ext <<_ACEOF
19219 #line $LINENO "configure"
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225
19226 /* Override any gcc2 internal prototype to avoid an error.  */
19227 #ifdef __cplusplus
19228 extern "C"
19229 #endif
19230 /* We use char because int might match the return type of a gcc2
19231    builtin and then its argument prototype would still apply.  */
19232 char TIFFError ();
19233 int
19234 main ()
19235 {
19236 TIFFError ();
19237   ;
19238   return 0;
19239 }
19240 _ACEOF
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243   (eval $ac_link) 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); } &&
19247          { ac_try='test -s conftest$ac_exeext'
19248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249   (eval $ac_try) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; }; then
19253   ac_cv_lib_tiff_TIFFError=yes
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258 ac_cv_lib_tiff_TIFFError=no
19259 fi
19260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19261 LIBS=$ac_check_lib_save_LIBS
19262 fi
19263 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19264 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19265 if test $ac_cv_lib_tiff_TIFFError = yes; then
19266   TIFF_LINK=" -ltiff"
19267 fi
19268
19269
19270 fi
19271
19272
19273
19274         if test "x$TIFF_LINK" = "x" ; then
19275             if test "$wxUSE_LIBTIFF" = "sys" ; then
19276                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19277 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19278    { (exit 1); exit 1; }; }
19279             else
19280                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19281 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19282                 wxUSE_LIBTIFF=builtin
19283             fi
19284         else
19285                         wxUSE_LIBTIFF=sys
19286         fi
19287     fi
19288
19289     if test "$wxUSE_LIBTIFF" = "builtin" ; then
19290         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
19291     fi
19292 fi
19293
19294
19295 if test "$wxUSE_EXPAT" != "no"; then
19296     wxUSE_XML=yes
19297     cat >>confdefs.h <<\_ACEOF
19298 #define wxUSE_EXPAT 1
19299 _ACEOF
19300
19301     cat >>confdefs.h <<\_ACEOF
19302 #define wxUSE_XML 1
19303 _ACEOF
19304
19305
19306     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19307         if test "${ac_cv_header_expat_h+set}" = set; then
19308   echo "$as_me:$LINENO: checking for expat.h" >&5
19309 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19310 if test "${ac_cv_header_expat_h+set}" = set; then
19311   echo $ECHO_N "(cached) $ECHO_C" >&6
19312 fi
19313 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19314 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19315 else
19316   # Is the header compilable?
19317 echo "$as_me:$LINENO: checking expat.h usability" >&5
19318 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19320 #line $LINENO "configure"
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326 $ac_includes_default
19327 #include <expat.h>
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19331   (eval $ac_compile) 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } &&
19335          { ac_try='test -s conftest.$ac_objext'
19336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337   (eval $ac_try) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; }; then
19341   ac_header_compiler=yes
19342 else
19343   echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346 ac_header_compiler=no
19347 fi
19348 rm -f conftest.$ac_objext conftest.$ac_ext
19349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19350 echo "${ECHO_T}$ac_header_compiler" >&6
19351
19352 # Is the header present?
19353 echo "$as_me:$LINENO: checking expat.h presence" >&5
19354 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19355 cat >conftest.$ac_ext <<_ACEOF
19356 #line $LINENO "configure"
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 #include <expat.h>
19363 _ACEOF
19364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } >/dev/null; then
19372   if test -s conftest.err; then
19373     ac_cpp_err=$ac_c_preproc_warn_flag
19374   else
19375     ac_cpp_err=
19376   fi
19377 else
19378   ac_cpp_err=yes
19379 fi
19380 if test -z "$ac_cpp_err"; then
19381   ac_header_preproc=yes
19382 else
19383   echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19385
19386   ac_header_preproc=no
19387 fi
19388 rm -f conftest.err conftest.$ac_ext
19389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19390 echo "${ECHO_T}$ac_header_preproc" >&6
19391
19392 # So?  What about this header?
19393 case $ac_header_compiler:$ac_header_preproc in
19394   yes:no )
19395     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19396 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19397     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19398 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19399     (
19400       cat <<\_ASBOX
19401 ## ------------------------------------ ##
19402 ## Report this to bug-autoconf@gnu.org. ##
19403 ## ------------------------------------ ##
19404 _ASBOX
19405     ) |
19406       sed "s/^/$as_me: WARNING:     /" >&2
19407     ;;
19408   no:yes )
19409     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19410 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19411     { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19412 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19413     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19414 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19415     (
19416       cat <<\_ASBOX
19417 ## ------------------------------------ ##
19418 ## Report this to bug-autoconf@gnu.org. ##
19419 ## ------------------------------------ ##
19420 _ASBOX
19421     ) |
19422       sed "s/^/$as_me: WARNING:     /" >&2
19423     ;;
19424 esac
19425 echo "$as_me:$LINENO: checking for expat.h" >&5
19426 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19427 if test "${ac_cv_header_expat_h+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   ac_cv_header_expat_h=$ac_header_preproc
19431 fi
19432 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19433 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19434
19435 fi
19436 if test $ac_cv_header_expat_h = yes; then
19437   found_expat_h=1
19438 fi
19439
19440
19441         if test "x$found_expat_h" = "x1"; then
19442                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19443 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19444 if test "${wx_cv_expat_is_not_broken+set}" = set; then
19445   echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447
19448
19449
19450                 ac_ext=cc
19451 ac_cpp='$CXXCPP $CPPFLAGS'
19452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19455
19456                 cat >conftest.$ac_ext <<_ACEOF
19457 #line $LINENO "configure"
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 #include <expat.h>
19464 int
19465 main ()
19466 {
19467
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474   (eval $ac_compile) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); } &&
19478          { ac_try='test -s conftest.$ac_objext'
19479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480   (eval $ac_try) 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; }; then
19484   wx_cv_expat_is_not_broken=yes
19485 else
19486   echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 wx_cv_expat_is_not_broken=no
19490
19491 fi
19492 rm -f conftest.$ac_objext conftest.$ac_ext
19493                 ac_ext=c
19494 ac_cpp='$CPP $CPPFLAGS'
19495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19498
19499
19500
19501 fi
19502 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19503 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19504             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19505                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
19506 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19507 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lexpat  $LIBS"
19512 cat >conftest.$ac_ext <<_ACEOF
19513 #line $LINENO "configure"
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519
19520 /* Override any gcc2 internal prototype to avoid an error.  */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 /* We use char because int might match the return type of a gcc2
19525    builtin and then its argument prototype would still apply.  */
19526 char XML_ParserCreate ();
19527 int
19528 main ()
19529 {
19530 XML_ParserCreate ();
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19537   (eval $ac_link) 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -s conftest$ac_exeext'
19542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543   (eval $ac_try) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; }; then
19547   ac_cv_lib_expat_XML_ParserCreate=yes
19548 else
19549   echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 ac_cv_lib_expat_XML_ParserCreate=no
19553 fi
19554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19555 LIBS=$ac_check_lib_save_LIBS
19556 fi
19557 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19558 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19559 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19560   EXPAT_LINK=" -lexpat"
19561 fi
19562
19563             fi
19564         fi
19565         if test "x$EXPAT_LINK" = "x" ; then
19566             if test "$wxUSE_EXPAT" = "sys" ; then
19567                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19568 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19569    { (exit 1); exit 1; }; }
19570             else
19571                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19572 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19573                 wxUSE_EXPAT=builtin
19574             fi
19575         else
19576                         wxUSE_EXPAT=sys
19577         fi
19578     fi
19579     if test "$wxUSE_EXPAT" = "builtin" ; then
19580
19581
19582 subdirs="$subdirs src/expat"
19583
19584     fi
19585 fi
19586
19587
19588
19589 AFMINSTALL=
19590 WIN32INSTALL=
19591
19592 TOOLKIT=
19593 TOOLKIT_INCLUDE=
19594 WIDGET_SET=
19595
19596 if test "$USE_WIN32" = 1 ; then
19597
19598 for ac_header in w32api.h
19599 do
19600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602   echo "$as_me:$LINENO: checking for $ac_header" >&5
19603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 fi
19607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19609 else
19610   # Is the header compilable?
19611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19614 #line $LINENO "configure"
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 $ac_includes_default
19621 #include <$ac_header>
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19625   (eval $ac_compile) 2>&5
19626   ac_status=$?
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -s conftest.$ac_objext'
19630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631   (eval $ac_try) 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; }; then
19635   ac_header_compiler=yes
19636 else
19637   echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 ac_header_compiler=no
19641 fi
19642 rm -f conftest.$ac_objext conftest.$ac_ext
19643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19644 echo "${ECHO_T}$ac_header_compiler" >&6
19645
19646 # Is the header present?
19647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19650 #line $LINENO "configure"
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 #include <$ac_header>
19657 _ACEOF
19658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19660   ac_status=$?
19661   grep -v '^ *+' conftest.er1 >conftest.err
19662   rm -f conftest.er1
19663   cat conftest.err >&5
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); } >/dev/null; then
19666   if test -s conftest.err; then
19667     ac_cpp_err=$ac_c_preproc_warn_flag
19668   else
19669     ac_cpp_err=
19670   fi
19671 else
19672   ac_cpp_err=yes
19673 fi
19674 if test -z "$ac_cpp_err"; then
19675   ac_header_preproc=yes
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680   ac_header_preproc=no
19681 fi
19682 rm -f conftest.err conftest.$ac_ext
19683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19684 echo "${ECHO_T}$ac_header_preproc" >&6
19685
19686 # So?  What about this header?
19687 case $ac_header_compiler:$ac_header_preproc in
19688   yes:no )
19689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19693     (
19694       cat <<\_ASBOX
19695 ## ------------------------------------ ##
19696 ## Report this to bug-autoconf@gnu.org. ##
19697 ## ------------------------------------ ##
19698 _ASBOX
19699     ) |
19700       sed "s/^/$as_me: WARNING:     /" >&2
19701     ;;
19702   no:yes )
19703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19705     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19709     (
19710       cat <<\_ASBOX
19711 ## ------------------------------------ ##
19712 ## Report this to bug-autoconf@gnu.org. ##
19713 ## ------------------------------------ ##
19714 _ASBOX
19715     ) |
19716       sed "s/^/$as_me: WARNING:     /" >&2
19717     ;;
19718 esac
19719 echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724   eval "$as_ac_Header=$ac_header_preproc"
19725 fi
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728
19729 fi
19730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19731   cat >>confdefs.h <<_ACEOF
19732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19733 _ACEOF
19734
19735 fi
19736
19737 done
19738
19739     if test "${ac_cv_header_windows_h+set}" = set; then
19740   echo "$as_me:$LINENO: checking for windows.h" >&5
19741 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19742 if test "${ac_cv_header_windows_h+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 fi
19745 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19746 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19747 else
19748   # Is the header compilable?
19749 echo "$as_me:$LINENO: checking windows.h usability" >&5
19750 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19751 cat >conftest.$ac_ext <<_ACEOF
19752 #line $LINENO "configure"
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758 $ac_includes_default
19759 #include <windows.h>
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763   (eval $ac_compile) 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); } &&
19767          { ac_try='test -s conftest.$ac_objext'
19768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769   (eval $ac_try) 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }; }; then
19773   ac_header_compiler=yes
19774 else
19775   echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778 ac_header_compiler=no
19779 fi
19780 rm -f conftest.$ac_objext conftest.$ac_ext
19781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19782 echo "${ECHO_T}$ac_header_compiler" >&6
19783
19784 # Is the header present?
19785 echo "$as_me:$LINENO: checking windows.h presence" >&5
19786 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19787 cat >conftest.$ac_ext <<_ACEOF
19788 #line $LINENO "configure"
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 #include <windows.h>
19795 _ACEOF
19796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } >/dev/null; then
19804   if test -s conftest.err; then
19805     ac_cpp_err=$ac_c_preproc_warn_flag
19806   else
19807     ac_cpp_err=
19808   fi
19809 else
19810   ac_cpp_err=yes
19811 fi
19812 if test -z "$ac_cpp_err"; then
19813   ac_header_preproc=yes
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818   ac_header_preproc=no
19819 fi
19820 rm -f conftest.err conftest.$ac_ext
19821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19822 echo "${ECHO_T}$ac_header_preproc" >&6
19823
19824 # So?  What about this header?
19825 case $ac_header_compiler:$ac_header_preproc in
19826   yes:no )
19827     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19828 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19829     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19830 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19831     (
19832       cat <<\_ASBOX
19833 ## ------------------------------------ ##
19834 ## Report this to bug-autoconf@gnu.org. ##
19835 ## ------------------------------------ ##
19836 _ASBOX
19837     ) |
19838       sed "s/^/$as_me: WARNING:     /" >&2
19839     ;;
19840   no:yes )
19841     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19842 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19843     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19844 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19845     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19846 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19847     (
19848       cat <<\_ASBOX
19849 ## ------------------------------------ ##
19850 ## Report this to bug-autoconf@gnu.org. ##
19851 ## ------------------------------------ ##
19852 _ASBOX
19853     ) |
19854       sed "s/^/$as_me: WARNING:     /" >&2
19855     ;;
19856 esac
19857 echo "$as_me:$LINENO: checking for windows.h" >&5
19858 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19859 if test "${ac_cv_header_windows_h+set}" = set; then
19860   echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862   ac_cv_header_windows_h=$ac_header_preproc
19863 fi
19864 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19865 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19866
19867 fi
19868 if test $ac_cv_header_windows_h = yes; then
19869   :
19870 else
19871
19872         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19873 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19874    { (exit 1); exit 1; }; }
19875
19876 fi
19877
19878
19879
19880             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
19881
19882     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19883         LIBS="$LIBS -loleacc"
19884     fi
19885
19886     case "${host}" in
19887         *-*-cygwin* )
19888                         LIBS="$LIBS -lkernel32 -luser32"
19889             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
19890     esac
19891
19892         if test "$wxUSE_ODBC" = "sys" ; then
19893         wxUSE_ODBC = "yes"
19894     fi
19895     if test "$wxUSE_ODBC" = "yes" ; then
19896         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
19897         cat >>confdefs.h <<\_ACEOF
19898 #define wxUSE_ODBC 1
19899 _ACEOF
19900
19901     fi
19902
19903     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19904     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
19905
19906         WIN32INSTALL=win32install
19907 fi
19908
19909 if test "$wxUSE_GUI" = "yes"; then
19910     USE_GUI=1
19911
19912     GUI_TK_LIBRARY=
19913
19914     WXGTK12=
19915     WXGTK127=
19916     WXGTK20=
19917
19918     if test "$wxUSE_MSW" = 1 ; then
19919         TOOLKIT=MSW
19920         GUIDIST=MSW_DIST
19921     fi
19922
19923     if test "$wxUSE_GTK" = 1; then
19924         echo "$as_me:$LINENO: checking for GTK+ version" >&5
19925 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
19926
19927         gtk_version_cached=1
19928         if test "${wx_cv_lib_gtk+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931
19932                                                 gtk_version_cached=0
19933                 echo "$as_me:$LINENO: result: " >&5
19934 echo "${ECHO_T}" >&6
19935
19936                                                 GTK_MODULES=
19937                 if test "$wxUSE_THREADS" = "yes"; then
19938                     GTK_MODULES=gthread
19939                 fi
19940
19941                                                 wx_cv_lib_gtk=
19942                 if test "x$wxUSE_GTK2" = "xyes"; then
19943                     # Check whether --enable-gtktest or --disable-gtktest was given.
19944 if test "${enable_gtktest+set}" = set; then
19945   enableval="$enable_gtktest"
19946
19947 else
19948   enable_gtktest=yes
19949 fi;
19950
19951   pkg_config_args=gtk+-2.0
19952   for module in . $GTK_MODULES
19953   do
19954       case "$module" in
19955          gthread)
19956              pkg_config_args="$pkg_config_args gthread-2.0"
19957          ;;
19958       esac
19959   done
19960
19961   no_gtk=""
19962
19963   # Extract the first word of "pkg-config", so it can be a program name with args.
19964 set dummy pkg-config; ac_word=$2
19965 echo "$as_me:$LINENO: checking for $ac_word" >&5
19966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19967 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   case $PKG_CONFIG in
19971   [\\/]* | ?:[\\/]*)
19972   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19973   ;;
19974   *)
19975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19976 for as_dir in $PATH
19977 do
19978   IFS=$as_save_IFS
19979   test -z "$as_dir" && as_dir=.
19980   for ac_exec_ext in '' $ac_executable_extensions; do
19981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19982     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19984     break 2
19985   fi
19986 done
19987 done
19988
19989   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19990   ;;
19991 esac
19992 fi
19993 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19994
19995 if test -n "$PKG_CONFIG"; then
19996   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19997 echo "${ECHO_T}$PKG_CONFIG" >&6
19998 else
19999   echo "$as_me:$LINENO: result: no" >&5
20000 echo "${ECHO_T}no" >&6
20001 fi
20002
20003
20004   if test x$PKG_CONFIG != xno ; then
20005     if pkg-config --atleast-pkgconfig-version 0.7 ; then
20006       :
20007     else
20008       echo *** pkg-config too old; version 0.7 or better required.
20009       no_gtk=yes
20010       PKG_CONFIG=no
20011     fi
20012   else
20013     no_gtk=yes
20014   fi
20015
20016   min_gtk_version=2.0.0
20017   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20018 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
20019
20020   if test x$PKG_CONFIG != xno ; then
20021     ## don't try to run the test against uninstalled libtool libs
20022     if $PKG_CONFIG --uninstalled $pkg_config_args; then
20023           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20024           enable_gtktest=no
20025     fi
20026
20027     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20028           :
20029     else
20030           no_gtk=yes
20031     fi
20032   fi
20033
20034   if test x"$no_gtk" = x ; then
20035     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20036     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20037     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20038            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20039     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20040            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20041     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20042            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20043     if test "x$enable_gtktest" = "xyes" ; then
20044       ac_save_CFLAGS="$CFLAGS"
20045       ac_save_LIBS="$LIBS"
20046       CFLAGS="$CFLAGS $GTK_CFLAGS"
20047       LIBS="$GTK_LIBS $LIBS"
20048       rm -f conf.gtktest
20049       if test "$cross_compiling" = yes; then
20050   echo $ac_n "cross compiling; assumed OK... $ac_c"
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 #line $LINENO "configure"
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059
20060 #include <gtk/gtk.h>
20061 #include <stdio.h>
20062 #include <stdlib.h>
20063
20064 int
20065 main ()
20066 {
20067   int major, minor, micro;
20068   char *tmp_version;
20069
20070   system ("touch conf.gtktest");
20071
20072   /* HP/UX 9 (%@#!) writes to sscanf strings */
20073   tmp_version = g_strdup("$min_gtk_version");
20074   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20075      printf("%s, bad version string\n", "$min_gtk_version");
20076      exit(1);
20077    }
20078
20079   if ((gtk_major_version != $gtk_config_major_version) ||
20080       (gtk_minor_version != $gtk_config_minor_version) ||
20081       (gtk_micro_version != $gtk_config_micro_version))
20082     {
20083       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20084              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20085              gtk_major_version, gtk_minor_version, gtk_micro_version);
20086       printf ("*** was found! If pkg-config was correct, then it is best\n");
20087       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20088       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20089       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20090       printf("*** required on your system.\n");
20091       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20092       printf("*** to point to the correct configuration files\n");
20093     }
20094   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20095            (gtk_minor_version != GTK_MINOR_VERSION) ||
20096            (gtk_micro_version != GTK_MICRO_VERSION))
20097     {
20098       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20099              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20100       printf("*** library (version %d.%d.%d)\n",
20101              gtk_major_version, gtk_minor_version, gtk_micro_version);
20102     }
20103   else
20104     {
20105       if ((gtk_major_version > major) ||
20106         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20107         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20108       {
20109         return 0;
20110        }
20111      else
20112       {
20113         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20114                gtk_major_version, gtk_minor_version, gtk_micro_version);
20115         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20116                major, minor, micro);
20117         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20118         printf("***\n");
20119         printf("*** If you have already installed a sufficiently new version, this error\n");
20120         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20121         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20122         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20123         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20124         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20125         printf("*** so that the correct libraries are found at run-time))\n");
20126       }
20127     }
20128   return 1;
20129 }
20130
20131 _ACEOF
20132 rm -f conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134   (eval $ac_link) 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143   :
20144 else
20145   echo "$as_me: program exited with status $ac_status" >&5
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20148
20149 ( exit $ac_status )
20150 no_gtk=yes
20151 fi
20152 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20153 fi
20154        CFLAGS="$ac_save_CFLAGS"
20155        LIBS="$ac_save_LIBS"
20156      fi
20157   fi
20158   if test "x$no_gtk" = x ; then
20159      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20160 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20161      wx_cv_lib_gtk=2.0
20162   else
20163      echo "$as_me:$LINENO: result: no" >&5
20164 echo "${ECHO_T}no" >&6
20165      if test "$PKG_CONFIG" = "no" ; then
20166        echo "*** A new enough version of pkg-config was not found."
20167        echo "*** See http://pkgconfig.sourceforge.net"
20168      else
20169        if test -f conf.gtktest ; then
20170         :
20171        else
20172           echo "*** Could not run GTK+ test program, checking why..."
20173           ac_save_CFLAGS="$CFLAGS"
20174           ac_save_LIBS="$LIBS"
20175           CFLAGS="$CFLAGS $GTK_CFLAGS"
20176           LIBS="$LIBS $GTK_LIBS"
20177           cat >conftest.$ac_ext <<_ACEOF
20178 #line $LINENO "configure"
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184
20185 #include <gtk/gtk.h>
20186 #include <stdio.h>
20187
20188 int
20189 main ()
20190 {
20191  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20192   ;
20193   return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20198   (eval $ac_link) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } &&
20202          { ac_try='test -s conftest$ac_exeext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208    echo "*** The test program compiled, but did not run. This usually means"
20209           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20210           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20211           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20212           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20213           echo "*** is required on your system"
20214           echo "***"
20215           echo "*** If you have an old version installed, it is best to remove it, although"
20216           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221  echo "*** The test program failed to compile or link. See the file config.log for the"
20222           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
20223 fi
20224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20225           CFLAGS="$ac_save_CFLAGS"
20226           LIBS="$ac_save_LIBS"
20227        fi
20228      fi
20229      GTK_CFLAGS=""
20230      GTK_LIBS=""
20231      :
20232   fi
20233
20234
20235   rm -f conf.gtktest
20236
20237                 else
20238
20239 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20240 if test "${with_gtk_prefix+set}" = set; then
20241   withval="$with_gtk_prefix"
20242   gtk_config_prefix="$withval"
20243 else
20244   gtk_config_prefix=""
20245 fi;
20246
20247 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20248 if test "${with_gtk_exec_prefix+set}" = set; then
20249   withval="$with_gtk_exec_prefix"
20250   gtk_config_exec_prefix="$withval"
20251 else
20252   gtk_config_exec_prefix=""
20253 fi;
20254 # Check whether --enable-gtktest or --disable-gtktest was given.
20255 if test "${enable_gtktest+set}" = set; then
20256   enableval="$enable_gtktest"
20257
20258 else
20259   enable_gtktest=yes
20260 fi;
20261
20262   for module in . $GTK_MODULES
20263   do
20264       case "$module" in
20265          gthread)
20266              gtk_config_args="$gtk_config_args gthread"
20267          ;;
20268       esac
20269   done
20270
20271   if test x$gtk_config_exec_prefix != x ; then
20272      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20273      if test x${GTK_CONFIG+set} != xset ; then
20274         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20275      fi
20276   fi
20277   if test x$gtk_config_prefix != x ; then
20278      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20279      if test x${GTK_CONFIG+set} != xset ; then
20280         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20281      fi
20282   fi
20283
20284   # Extract the first word of "gtk-config", so it can be a program name with args.
20285 set dummy gtk-config; ac_word=$2
20286 echo "$as_me:$LINENO: checking for $ac_word" >&5
20287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20288 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20289   echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291   case $GTK_CONFIG in
20292   [\\/]* | ?:[\\/]*)
20293   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20294   ;;
20295   *)
20296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297 for as_dir in $PATH
20298 do
20299   IFS=$as_save_IFS
20300   test -z "$as_dir" && as_dir=.
20301   for ac_exec_ext in '' $ac_executable_extensions; do
20302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20303     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20305     break 2
20306   fi
20307 done
20308 done
20309
20310   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20311   ;;
20312 esac
20313 fi
20314 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20315
20316 if test -n "$GTK_CONFIG"; then
20317   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20318 echo "${ECHO_T}$GTK_CONFIG" >&6
20319 else
20320   echo "$as_me:$LINENO: result: no" >&5
20321 echo "${ECHO_T}no" >&6
20322 fi
20323
20324   min_gtk_version=1.2.7
20325   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20326 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20327   no_gtk=""
20328   if test "$GTK_CONFIG" = "no" ; then
20329     no_gtk=yes
20330   else
20331     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20332     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20333     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20334            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20335     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20336            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20337     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20338            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20339     if test "x$enable_gtktest" = "xyes" ; then
20340       ac_save_CFLAGS="$CFLAGS"
20341       ac_save_LIBS="$LIBS"
20342       CFLAGS="$CFLAGS $GTK_CFLAGS"
20343       LIBS="$GTK_LIBS $LIBS"
20344       rm -f conf.gtktest
20345       if test "$cross_compiling" = yes; then
20346   echo $ac_n "cross compiling; assumed OK... $ac_c"
20347 else
20348   cat >conftest.$ac_ext <<_ACEOF
20349 #line $LINENO "configure"
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355
20356 #include <gtk/gtk.h>
20357 #include <stdio.h>
20358 #include <stdlib.h>
20359
20360 int
20361 main ()
20362 {
20363   int major, minor, micro;
20364   char *tmp_version;
20365
20366   system ("touch conf.gtktest");
20367
20368   /* HP/UX 9 (%@#!) writes to sscanf strings */
20369   tmp_version = g_strdup("$min_gtk_version");
20370   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20371      printf("%s, bad version string\n", "$min_gtk_version");
20372      exit(1);
20373    }
20374
20375   if ((gtk_major_version != $gtk_config_major_version) ||
20376       (gtk_minor_version != $gtk_config_minor_version) ||
20377       (gtk_micro_version != $gtk_config_micro_version))
20378     {
20379       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20380              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20381              gtk_major_version, gtk_minor_version, gtk_micro_version);
20382       printf ("*** was found! If gtk-config was correct, then it is best\n");
20383       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20384       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20385       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20386       printf("*** required on your system.\n");
20387       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20388       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20389       printf("*** before re-running configure\n");
20390     }
20391 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20392   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20393            (gtk_minor_version != GTK_MINOR_VERSION) ||
20394            (gtk_micro_version != GTK_MICRO_VERSION))
20395     {
20396       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20397              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20398       printf("*** library (version %d.%d.%d)\n",
20399              gtk_major_version, gtk_minor_version, gtk_micro_version);
20400     }
20401 #endif /* defined (GTK_MAJOR_VERSION) ... */
20402   else
20403     {
20404       if ((gtk_major_version > major) ||
20405         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20406         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20407       {
20408         return 0;
20409        }
20410      else
20411       {
20412         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20413                gtk_major_version, gtk_minor_version, gtk_micro_version);
20414         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20415                major, minor, micro);
20416         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20417         printf("***\n");
20418         printf("*** If you have already installed a sufficiently new version, this error\n");
20419         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20420         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20421         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20422         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20423         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20424         printf("*** so that the correct libraries are found at run-time))\n");
20425       }
20426     }
20427   return 1;
20428 }
20429
20430 _ACEOF
20431 rm -f conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433   (eval $ac_link) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   :
20443 else
20444   echo "$as_me: program exited with status $ac_status" >&5
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ( exit $ac_status )
20449 no_gtk=yes
20450 fi
20451 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20452 fi
20453        CFLAGS="$ac_save_CFLAGS"
20454        LIBS="$ac_save_LIBS"
20455      fi
20456   fi
20457   if test "x$no_gtk" = x ; then
20458      echo "$as_me:$LINENO: result: yes" >&5
20459 echo "${ECHO_T}yes" >&6
20460      wx_cv_lib_gtk=1.2.7
20461   else
20462      echo "$as_me:$LINENO: result: no" >&5
20463 echo "${ECHO_T}no" >&6
20464      if test "$GTK_CONFIG" = "no" ; then
20465        echo "*** The gtk-config script installed by GTK could not be found"
20466        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20467        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20468        echo "*** full path to gtk-config."
20469      else
20470        if test -f conf.gtktest ; then
20471         :
20472        else
20473           echo "*** Could not run GTK test program, checking why..."
20474           CFLAGS="$CFLAGS $GTK_CFLAGS"
20475           LIBS="$LIBS $GTK_LIBS"
20476           cat >conftest.$ac_ext <<_ACEOF
20477 #line $LINENO "configure"
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483
20484 #include <gtk/gtk.h>
20485 #include <stdio.h>
20486
20487 int
20488 main ()
20489 {
20490  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 rm -f conftest.$ac_objext conftest$ac_exeext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497   (eval $ac_link) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); } &&
20501          { ac_try='test -s conftest$ac_exeext'
20502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503   (eval $ac_try) 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507    echo "*** The test program compiled, but did not run. This usually means"
20508           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20509           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20510           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20511           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20512           echo "*** is required on your system"
20513           echo "***"
20514           echo "*** If you have an old version installed, it is best to remove it, although"
20515           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20516           echo "***"
20517           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20518           echo "*** came with the system with the command"
20519           echo "***"
20520           echo "***    rpm --erase --nodeps gtk gtk-devel"
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525  echo "*** The test program failed to compile or link. See the file config.log for the"
20526           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20527           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20528           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20529 fi
20530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20531           CFLAGS="$ac_save_CFLAGS"
20532           LIBS="$ac_save_LIBS"
20533        fi
20534      fi
20535      GTK_CFLAGS=""
20536      GTK_LIBS=""
20537      :
20538   fi
20539
20540
20541   rm -f conf.gtktest
20542
20543
20544                     if test -z "$wx_cv_lib_gtk"; then
20545
20546 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20547 if test "${with_gtk_prefix+set}" = set; then
20548   withval="$with_gtk_prefix"
20549   gtk_config_prefix="$withval"
20550 else
20551   gtk_config_prefix=""
20552 fi;
20553
20554 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20555 if test "${with_gtk_exec_prefix+set}" = set; then
20556   withval="$with_gtk_exec_prefix"
20557   gtk_config_exec_prefix="$withval"
20558 else
20559   gtk_config_exec_prefix=""
20560 fi;
20561 # Check whether --enable-gtktest or --disable-gtktest was given.
20562 if test "${enable_gtktest+set}" = set; then
20563   enableval="$enable_gtktest"
20564
20565 else
20566   enable_gtktest=yes
20567 fi;
20568
20569   for module in . $GTK_MODULES
20570   do
20571       case "$module" in
20572          gthread)
20573              gtk_config_args="$gtk_config_args gthread"
20574          ;;
20575       esac
20576   done
20577
20578   if test x$gtk_config_exec_prefix != x ; then
20579      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20580      if test x${GTK_CONFIG+set} != xset ; then
20581         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20582      fi
20583   fi
20584   if test x$gtk_config_prefix != x ; then
20585      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20586      if test x${GTK_CONFIG+set} != xset ; then
20587         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20588      fi
20589   fi
20590
20591   # Extract the first word of "gtk-config", so it can be a program name with args.
20592 set dummy gtk-config; ac_word=$2
20593 echo "$as_me:$LINENO: checking for $ac_word" >&5
20594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20595 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20596   echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598   case $GTK_CONFIG in
20599   [\\/]* | ?:[\\/]*)
20600   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20601   ;;
20602   *)
20603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20604 for as_dir in $PATH
20605 do
20606   IFS=$as_save_IFS
20607   test -z "$as_dir" && as_dir=.
20608   for ac_exec_ext in '' $ac_executable_extensions; do
20609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20610     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20612     break 2
20613   fi
20614 done
20615 done
20616
20617   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20618   ;;
20619 esac
20620 fi
20621 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20622
20623 if test -n "$GTK_CONFIG"; then
20624   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20625 echo "${ECHO_T}$GTK_CONFIG" >&6
20626 else
20627   echo "$as_me:$LINENO: result: no" >&5
20628 echo "${ECHO_T}no" >&6
20629 fi
20630
20631   min_gtk_version=1.2.3
20632   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20633 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20634   no_gtk=""
20635   if test "$GTK_CONFIG" = "no" ; then
20636     no_gtk=yes
20637   else
20638     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20639     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20640     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20641            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20642     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20643            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20644     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20645            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20646     if test "x$enable_gtktest" = "xyes" ; then
20647       ac_save_CFLAGS="$CFLAGS"
20648       ac_save_LIBS="$LIBS"
20649       CFLAGS="$CFLAGS $GTK_CFLAGS"
20650       LIBS="$GTK_LIBS $LIBS"
20651       rm -f conf.gtktest
20652       if test "$cross_compiling" = yes; then
20653   echo $ac_n "cross compiling; assumed OK... $ac_c"
20654 else
20655   cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662
20663 #include <gtk/gtk.h>
20664 #include <stdio.h>
20665 #include <stdlib.h>
20666
20667 int
20668 main ()
20669 {
20670   int major, minor, micro;
20671   char *tmp_version;
20672
20673   system ("touch conf.gtktest");
20674
20675   /* HP/UX 9 (%@#!) writes to sscanf strings */
20676   tmp_version = g_strdup("$min_gtk_version");
20677   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20678      printf("%s, bad version string\n", "$min_gtk_version");
20679      exit(1);
20680    }
20681
20682   if ((gtk_major_version != $gtk_config_major_version) ||
20683       (gtk_minor_version != $gtk_config_minor_version) ||
20684       (gtk_micro_version != $gtk_config_micro_version))
20685     {
20686       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20687              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20688              gtk_major_version, gtk_minor_version, gtk_micro_version);
20689       printf ("*** was found! If gtk-config was correct, then it is best\n");
20690       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20691       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20692       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20693       printf("*** required on your system.\n");
20694       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20695       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20696       printf("*** before re-running configure\n");
20697     }
20698 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20699   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20700            (gtk_minor_version != GTK_MINOR_VERSION) ||
20701            (gtk_micro_version != GTK_MICRO_VERSION))
20702     {
20703       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20704              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20705       printf("*** library (version %d.%d.%d)\n",
20706              gtk_major_version, gtk_minor_version, gtk_micro_version);
20707     }
20708 #endif /* defined (GTK_MAJOR_VERSION) ... */
20709   else
20710     {
20711       if ((gtk_major_version > major) ||
20712         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20713         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20714       {
20715         return 0;
20716        }
20717      else
20718       {
20719         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20720                gtk_major_version, gtk_minor_version, gtk_micro_version);
20721         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20722                major, minor, micro);
20723         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20724         printf("***\n");
20725         printf("*** If you have already installed a sufficiently new version, this error\n");
20726         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20727         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20728         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20729         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20730         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20731         printf("*** so that the correct libraries are found at run-time))\n");
20732       }
20733     }
20734   return 1;
20735 }
20736
20737 _ACEOF
20738 rm -f conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740   (eval $ac_link) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; }; then
20749   :
20750 else
20751   echo "$as_me: program exited with status $ac_status" >&5
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ( exit $ac_status )
20756 no_gtk=yes
20757 fi
20758 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20759 fi
20760        CFLAGS="$ac_save_CFLAGS"
20761        LIBS="$ac_save_LIBS"
20762      fi
20763   fi
20764   if test "x$no_gtk" = x ; then
20765      echo "$as_me:$LINENO: result: yes" >&5
20766 echo "${ECHO_T}yes" >&6
20767      wx_cv_lib_gtk=1.2.3
20768   else
20769      echo "$as_me:$LINENO: result: no" >&5
20770 echo "${ECHO_T}no" >&6
20771      if test "$GTK_CONFIG" = "no" ; then
20772        echo "*** The gtk-config script installed by GTK could not be found"
20773        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20774        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20775        echo "*** full path to gtk-config."
20776      else
20777        if test -f conf.gtktest ; then
20778         :
20779        else
20780           echo "*** Could not run GTK test program, checking why..."
20781           CFLAGS="$CFLAGS $GTK_CFLAGS"
20782           LIBS="$LIBS $GTK_LIBS"
20783           cat >conftest.$ac_ext <<_ACEOF
20784 #line $LINENO "configure"
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790
20791 #include <gtk/gtk.h>
20792 #include <stdio.h>
20793
20794 int
20795 main ()
20796 {
20797  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20798   ;
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804   (eval $ac_link) 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -s conftest$ac_exeext'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814    echo "*** The test program compiled, but did not run. This usually means"
20815           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20816           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20817           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20818           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20819           echo "*** is required on your system"
20820           echo "***"
20821           echo "*** If you have an old version installed, it is best to remove it, although"
20822           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20823           echo "***"
20824           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20825           echo "*** came with the system with the command"
20826           echo "***"
20827           echo "***    rpm --erase --nodeps gtk gtk-devel"
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832  echo "*** The test program failed to compile or link. See the file config.log for the"
20833           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20834           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20835           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20836 fi
20837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20838           CFLAGS="$ac_save_CFLAGS"
20839           LIBS="$ac_save_LIBS"
20840        fi
20841      fi
20842      GTK_CFLAGS=""
20843      GTK_LIBS=""
20844      :
20845   fi
20846
20847
20848   rm -f conf.gtktest
20849
20850                     fi
20851                 fi
20852
20853                 if test -z "$wx_cv_lib_gtk"; then
20854                                         wx_cv_lib_gtk=none
20855                 else
20856                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
20857                     wx_cv_libs_gtk=$GTK_LIBS
20858                 fi
20859
20860
20861 fi
20862
20863
20864                         if test "$gtk_version_cached" = 1; then
20865             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20866 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
20867         fi
20868
20869         case "$wx_cv_lib_gtk" in
20870             2.0)    WXGTK20=1
20871                     TOOLKIT_VERSION=2
20872                     ;;
20873             1.2.7)  WXGTK127=1
20874                     WXGTK12=1
20875                     ;;
20876             1.2.3)  WXGTK12=1
20877                     ;;
20878             *)      { { echo "$as_me:$LINENO: error:
20879 Please check that gtk-config is in path, the directory
20880 where GTK+ libraries are installed (returned by
20881 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20882 equivalent variable and GTK+ is version 1.2.3 or above.
20883                             " >&5
20884 echo "$as_me: error:
20885 Please check that gtk-config is in path, the directory
20886 where GTK+ libraries are installed (returned by
20887 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20888 equivalent variable and GTK+ is version 1.2.3 or above.
20889                             " >&2;}
20890    { (exit 1); exit 1; }; }
20891                     ;;
20892         esac
20893
20894         if test "$WXGTK20" = 1; then
20895             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20896
20897   succeeded=no
20898
20899   if test -z "$PKG_CONFIG"; then
20900     # Extract the first word of "pkg-config", so it can be a program name with args.
20901 set dummy pkg-config; ac_word=$2
20902 echo "$as_me:$LINENO: checking for $ac_word" >&5
20903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20904 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20905   echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907   case $PKG_CONFIG in
20908   [\\/]* | ?:[\\/]*)
20909   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20910   ;;
20911   *)
20912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20913 for as_dir in $PATH
20914 do
20915   IFS=$as_save_IFS
20916   test -z "$as_dir" && as_dir=.
20917   for ac_exec_ext in '' $ac_executable_extensions; do
20918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20919     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20921     break 2
20922   fi
20923 done
20924 done
20925
20926   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20927   ;;
20928 esac
20929 fi
20930 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20931
20932 if test -n "$PKG_CONFIG"; then
20933   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20934 echo "${ECHO_T}$PKG_CONFIG" >&6
20935 else
20936   echo "$as_me:$LINENO: result: no" >&5
20937 echo "${ECHO_T}no" >&6
20938 fi
20939
20940   fi
20941
20942   if test "$PKG_CONFIG" = "no" ; then
20943      echo "*** The pkg-config script could not be found. Make sure it is"
20944      echo "*** in your path, or set the PKG_CONFIG environment variable"
20945      echo "*** to the full path to pkg-config."
20946      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20947   else
20948      PKG_CONFIG_MIN_VERSION=0.9.0
20949      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20950         echo "$as_me:$LINENO: checking for pangoft2" >&5
20951 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
20952
20953         if $PKG_CONFIG --exists "pangoft2" ; then
20954             echo "$as_me:$LINENO: result: yes" >&5
20955 echo "${ECHO_T}yes" >&6
20956             succeeded=yes
20957
20958             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20959 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20960             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20961             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20962 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20963
20964             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20965 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20966             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20967             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20968 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20969         else
20970             PANGOFT2_CFLAGS=""
20971             PANGOFT2_LIBS=""
20972             ## If we have a custom action on failure, don't print errors, but
20973             ## do set a variable so people can do so.
20974             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20975
20976         fi
20977
20978
20979
20980      else
20981         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20982         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20983      fi
20984   fi
20985
20986   if test $succeeded = yes; then
20987
20988                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20989                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
20990
20991   else
20992
20993                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20994 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
20995                         wxUSE_PRINTING_ARCHITECTURE="no"
20996
20997
20998   fi
20999
21000             fi
21001         else
21002             if test "$wxUSE_UNICODE" = "yes"; then
21003                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21004 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
21005                 wxUSE_UNICODE=no
21006             fi
21007         fi
21008
21009                         if test "$USE_DARWIN" != 1; then
21010
21011 for ac_func in poll
21012 do
21013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21014 echo "$as_me:$LINENO: checking for $ac_func" >&5
21015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21016 if eval "test \"\${$as_ac_var+set}\" = set"; then
21017   echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019   cat >conftest.$ac_ext <<_ACEOF
21020 #line $LINENO "configure"
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026 /* System header to define __stub macros and hopefully few prototypes,
21027     which can conflict with char $ac_func (); below.
21028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21029     <limits.h> exists even on freestanding compilers.  */
21030 #ifdef __STDC__
21031 # include <limits.h>
21032 #else
21033 # include <assert.h>
21034 #endif
21035 /* Override any gcc2 internal prototype to avoid an error.  */
21036 #ifdef __cplusplus
21037 extern "C"
21038 {
21039 #endif
21040 /* We use char because int might match the return type of a gcc2
21041    builtin and then its argument prototype would still apply.  */
21042 char $ac_func ();
21043 /* The GNU C library defines this for functions which it implements
21044     to always fail with ENOSYS.  Some functions are actually named
21045     something starting with __ and the normal name is an alias.  */
21046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21047 choke me
21048 #else
21049 char (*f) () = $ac_func;
21050 #endif
21051 #ifdef __cplusplus
21052 }
21053 #endif
21054
21055 int
21056 main ()
21057 {
21058 return f != $ac_func;
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext conftest$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065   (eval $ac_link) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -s conftest$ac_exeext'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; }; then
21075   eval "$as_ac_var=yes"
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 eval "$as_ac_var=no"
21081 fi
21082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21083 fi
21084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21086 if test `eval echo '${'$as_ac_var'}'` = yes; then
21087   cat >>confdefs.h <<_ACEOF
21088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21089 _ACEOF
21090
21091 fi
21092 done
21093
21094         fi
21095
21096         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
21097         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21098
21099         AFMINSTALL=afminstall
21100         TOOLKIT=GTK
21101         GUIDIST=GTK_DIST
21102
21103                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21104 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21105 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21106   echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108   ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lgdk  $LIBS"
21110 cat >conftest.$ac_ext <<_ACEOF
21111 #line $LINENO "configure"
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117
21118 /* Override any gcc2 internal prototype to avoid an error.  */
21119 #ifdef __cplusplus
21120 extern "C"
21121 #endif
21122 /* We use char because int might match the return type of a gcc2
21123    builtin and then its argument prototype would still apply.  */
21124 char gdk_im_open ();
21125 int
21126 main ()
21127 {
21128 gdk_im_open ();
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135   (eval $ac_link) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } &&
21139          { ac_try='test -s conftest$ac_exeext'
21140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141   (eval $ac_try) 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); }; }; then
21145   ac_cv_lib_gdk_gdk_im_open=yes
21146 else
21147   echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 ac_cv_lib_gdk_gdk_im_open=no
21151 fi
21152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21153 LIBS=$ac_check_lib_save_LIBS
21154 fi
21155 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21156 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21157 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21158   cat >>confdefs.h <<\_ACEOF
21159 #define HAVE_XIM 1
21160 _ACEOF
21161
21162 fi
21163
21164     fi
21165
21166     if test "$wxUSE_MGL" = 1; then
21167        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21168 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21169         if test "x$MGL_ROOT" = x ; then
21170             echo "$as_me:$LINENO: result: not found" >&5
21171 echo "${ECHO_T}not found" >&6
21172             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21173 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21174    { (exit 1); exit 1; }; }
21175         else
21176             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21177 echo "${ECHO_T}$MGL_ROOT" >&6
21178         fi
21179
21180         echo "$as_me:$LINENO: checking for libmgl location" >&5
21181 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21182                         case "${host}" in
21183             *-*-linux* )
21184               if test "x$wxUSE_SHARED" = xyes ; then
21185                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21186               else
21187                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21188               fi
21189               ;;
21190             *-pc-msdosdjgpp )
21191               mgl_os_candidates="dos32/dj2"
21192               ;;
21193             *)
21194               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21195 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21196    { (exit 1); exit 1; }; }
21197         esac
21198
21199         mgl_lib_type=""
21200         mgl_os=""
21201
21202         for mgl_os_i in $mgl_os_candidates ; do
21203             if test "x$mgl_os" = x ; then
21204                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21205                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21206                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21207                         mgl_lib_type=debug
21208                         mgl_os=$mgl_os_i
21209                     fi
21210                 fi
21211                 if test "x$mgl_lib_type" = x ; then
21212                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21213                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21214                         mgl_lib_type=release
21215                         mgl_os=$mgl_os_i
21216                     fi
21217                 fi
21218             fi
21219         done
21220
21221         if test "x$mgl_os" = x ; then
21222             echo "$as_me:$LINENO: result: not found" >&5
21223 echo "${ECHO_T}not found" >&6
21224             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21225 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21226    { (exit 1); exit 1; }; }
21227         fi
21228         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21229 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
21230
21231         wxUSE_UNIVERSAL="yes"
21232
21233         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21234         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21235
21236         AFMINSTALL=afminstall
21237         TOOLKIT=MGL
21238         GUIDIST=MGL_DIST
21239     fi
21240
21241     if test "$wxUSE_MICROWIN" = 1; then
21242         echo "$as_me:$LINENO: checking for MicroWindows" >&5
21243 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21244         if test "x$MICROWINDOWS" = x ; then
21245             echo "$as_me:$LINENO: result: not found" >&5
21246 echo "${ECHO_T}not found" >&6
21247             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21248 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21249    { (exit 1); exit 1; }; }
21250         else
21251             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21252 echo "${ECHO_T}$MICROWINDOWS" >&6
21253         fi
21254
21255         if test -f $MICROWINDOWS/lib/libmwin.a; then
21256             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21257 echo "${ECHO_T}MicroWindows' libraries found." >&6
21258         else
21259             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21260 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21261    { (exit 1); exit 1; }; }
21262         fi
21263
21264         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21265         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21266
21267         wxUSE_UNIVERSAL="yes"
21268
21269         AFMINSTALL=afminstall
21270         TOOLKIT=MICROWIN
21271         GUIDIST=MICROWIN_DIST
21272
21273         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21274     fi
21275
21276     if test "$wxUSE_X11" = 1; then
21277                         echo "$as_me:$LINENO: checking for X" >&5
21278 echo $ECHO_N "checking for X... $ECHO_C" >&6
21279
21280
21281 # Check whether --with-x or --without-x was given.
21282 if test "${with_x+set}" = set; then
21283   withval="$with_x"
21284
21285 fi;
21286 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21287 if test "x$with_x" = xno; then
21288   # The user explicitly disabled X.
21289   have_x=disabled
21290 else
21291   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21292     # Both variables are already set.
21293     have_x=yes
21294   else
21295     if test "${ac_cv_have_x+set}" = set; then
21296   echo $ECHO_N "(cached) $ECHO_C" >&6
21297 else
21298   # One or both of the vars are not set, and there is no cached value.
21299 ac_x_includes=no ac_x_libraries=no
21300 rm -fr conftest.dir
21301 if mkdir conftest.dir; then
21302   cd conftest.dir
21303   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21304   cat >Imakefile <<'_ACEOF'
21305 acfindx:
21306         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21307 _ACEOF
21308   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21309     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21310     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21311     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21312     for ac_extension in a so sl; do
21313       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21314          test -f $ac_im_libdir/libX11.$ac_extension; then
21315         ac_im_usrlibdir=$ac_im_libdir; break
21316       fi
21317     done
21318     # Screen out bogus values from the imake configuration.  They are
21319     # bogus both because they are the default anyway, and because
21320     # using them would break gcc on systems where it needs fixed includes.
21321     case $ac_im_incroot in
21322         /usr/include) ;;
21323         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21324     esac
21325     case $ac_im_usrlibdir in
21326         /usr/lib | /lib) ;;
21327         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21328     esac
21329   fi
21330   cd ..
21331   rm -fr conftest.dir
21332 fi
21333
21334 # Standard set of common directories for X headers.
21335 # Check X11 before X11Rn because it is often a symlink to the current release.
21336 ac_x_header_dirs='
21337 /usr/X11/include
21338 /usr/X11R6/include
21339 /usr/X11R5/include
21340 /usr/X11R4/include
21341
21342 /usr/include/X11
21343 /usr/include/X11R6
21344 /usr/include/X11R5
21345 /usr/include/X11R4
21346
21347 /usr/local/X11/include
21348 /usr/local/X11R6/include
21349 /usr/local/X11R5/include
21350 /usr/local/X11R4/include
21351
21352 /usr/local/include/X11
21353 /usr/local/include/X11R6
21354 /usr/local/include/X11R5
21355 /usr/local/include/X11R4
21356
21357 /usr/X386/include
21358 /usr/x386/include
21359 /usr/XFree86/include/X11
21360
21361 /usr/include
21362 /usr/local/include
21363 /usr/unsupported/include
21364 /usr/athena/include
21365 /usr/local/x11r5/include
21366 /usr/lpp/Xamples/include
21367
21368 /usr/openwin/include
21369 /usr/openwin/share/include'
21370
21371 if test "$ac_x_includes" = no; then
21372   # Guess where to find include files, by looking for Intrinsic.h.
21373   # First, try using that file with no special directory specified.
21374   cat >conftest.$ac_ext <<_ACEOF
21375 #line $LINENO "configure"
21376 /* confdefs.h.  */
21377 _ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h.  */
21381 #include <X11/Intrinsic.h>
21382 _ACEOF
21383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21385   ac_status=$?
21386   grep -v '^ *+' conftest.er1 >conftest.err
21387   rm -f conftest.er1
21388   cat conftest.err >&5
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } >/dev/null; then
21391   if test -s conftest.err; then
21392     ac_cpp_err=$ac_c_preproc_warn_flag
21393   else
21394     ac_cpp_err=
21395   fi
21396 else
21397   ac_cpp_err=yes
21398 fi
21399 if test -z "$ac_cpp_err"; then
21400   # We can compile using X headers with no special include directory.
21401 ac_x_includes=
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406   for ac_dir in $ac_x_header_dirs; do
21407   if test -r "$ac_dir/X11/Intrinsic.h"; then
21408     ac_x_includes=$ac_dir
21409     break
21410   fi
21411 done
21412 fi
21413 rm -f conftest.err conftest.$ac_ext
21414 fi # $ac_x_includes = no
21415
21416 if test "$ac_x_libraries" = no; then
21417   # Check for the libraries.
21418   # See if we find them without any special options.
21419   # Don't add to $LIBS permanently.
21420   ac_save_LIBS=$LIBS
21421   LIBS="-lXt $LIBS"
21422   cat >conftest.$ac_ext <<_ACEOF
21423 #line $LINENO "configure"
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 #include <X11/Intrinsic.h>
21430 int
21431 main ()
21432 {
21433 XtMalloc (0)
21434   ;
21435   return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext conftest$ac_exeext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440   (eval $ac_link) 2>&5
21441   ac_status=$?
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } &&
21444          { ac_try='test -s conftest$ac_exeext'
21445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446   (eval $ac_try) 2>&5
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); }; }; then
21450   LIBS=$ac_save_LIBS
21451 # We can link X programs with no special library path.
21452 ac_x_libraries=
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 LIBS=$ac_save_LIBS
21458 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21459 do
21460   # Don't even attempt the hair of trying to link an X program!
21461   for ac_extension in a so sl; do
21462     if test -r $ac_dir/libXt.$ac_extension; then
21463       ac_x_libraries=$ac_dir
21464       break 2
21465     fi
21466   done
21467 done
21468 fi
21469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21470 fi # $ac_x_libraries = no
21471
21472 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21473   # Didn't find X anywhere.  Cache the known absence of X.
21474   ac_cv_have_x="have_x=no"
21475 else
21476   # Record where we found X for the cache.
21477   ac_cv_have_x="have_x=yes \
21478                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21479 fi
21480 fi
21481
21482   fi
21483   eval "$ac_cv_have_x"
21484 fi # $with_x != no
21485
21486 if test "$have_x" != yes; then
21487   echo "$as_me:$LINENO: result: $have_x" >&5
21488 echo "${ECHO_T}$have_x" >&6
21489   no_x=yes
21490 else
21491   # If each of the values was on the command line, it overrides each guess.
21492   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21493   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21494   # Update the cache value to reflect the command line values.
21495   ac_cv_have_x="have_x=yes \
21496                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21497   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21498 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21499 fi
21500
21501 if test "$no_x" = yes; then
21502   # Not all programs may use this symbol, but it does not hurt to define it.
21503
21504 cat >>confdefs.h <<\_ACEOF
21505 #define X_DISPLAY_MISSING 1
21506 _ACEOF
21507
21508   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21509 else
21510   if test -n "$x_includes"; then
21511     X_CFLAGS="$X_CFLAGS -I$x_includes"
21512   fi
21513
21514   # It would also be nice to do this for all -L options, not just this one.
21515   if test -n "$x_libraries"; then
21516     X_LIBS="$X_LIBS -L$x_libraries"
21517     # For Solaris; some versions of Sun CC require a space after -R and
21518     # others require no space.  Words are not sufficient . . . .
21519     case `(uname -sr) 2>/dev/null` in
21520     "SunOS 5"*)
21521       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21522 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21523       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21524       cat >conftest.$ac_ext <<_ACEOF
21525 #line $LINENO "configure"
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531
21532 int
21533 main ()
21534 {
21535
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21542   (eval $ac_link) 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); } &&
21546          { ac_try='test -s conftest$ac_exeext'
21547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548   (eval $ac_try) 2>&5
21549   ac_status=$?
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); }; }; then
21552   ac_R_nospace=yes
21553 else
21554   echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557 ac_R_nospace=no
21558 fi
21559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21560       if test $ac_R_nospace = yes; then
21561         echo "$as_me:$LINENO: result: no" >&5
21562 echo "${ECHO_T}no" >&6
21563         X_LIBS="$X_LIBS -R$x_libraries"
21564       else
21565         LIBS="$ac_xsave_LIBS -R $x_libraries"
21566         cat >conftest.$ac_ext <<_ACEOF
21567 #line $LINENO "configure"
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573
21574 int
21575 main ()
21576 {
21577
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584   (eval $ac_link) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } &&
21588          { ac_try='test -s conftest$ac_exeext'
21589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); }; }; then
21594   ac_R_space=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 ac_R_space=no
21600 fi
21601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21602         if test $ac_R_space = yes; then
21603           echo "$as_me:$LINENO: result: yes" >&5
21604 echo "${ECHO_T}yes" >&6
21605           X_LIBS="$X_LIBS -R $x_libraries"
21606         else
21607           echo "$as_me:$LINENO: result: neither works" >&5
21608 echo "${ECHO_T}neither works" >&6
21609         fi
21610       fi
21611       LIBS=$ac_xsave_LIBS
21612     esac
21613   fi
21614
21615   # Check for system-dependent libraries X programs must link with.
21616   # Do this before checking for the system-independent R6 libraries
21617   # (-lICE), since we may need -lsocket or whatever for X linking.
21618
21619   if test "$ISC" = yes; then
21620     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21621   else
21622     # Martyn Johnson says this is needed for Ultrix, if the X
21623     # libraries were built with DECnet support.  And Karl Berry says
21624     # the Alpha needs dnet_stub (dnet does not exist).
21625     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21626     cat >conftest.$ac_ext <<_ACEOF
21627 #line $LINENO "configure"
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633
21634 /* Override any gcc2 internal prototype to avoid an error.  */
21635 #ifdef __cplusplus
21636 extern "C"
21637 #endif
21638 /* We use char because int might match the return type of a gcc2
21639    builtin and then its argument prototype would still apply.  */
21640 char XOpenDisplay ();
21641 int
21642 main ()
21643 {
21644 XOpenDisplay ();
21645   ;
21646   return 0;
21647 }
21648 _ACEOF
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21651   (eval $ac_link) 2>&5
21652   ac_status=$?
21653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654   (exit $ac_status); } &&
21655          { ac_try='test -s conftest$ac_exeext'
21656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657   (eval $ac_try) 2>&5
21658   ac_status=$?
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); }; }; then
21661   :
21662 else
21663   echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21665
21666 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21667 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21668 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21669   echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671   ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-ldnet  $LIBS"
21673 cat >conftest.$ac_ext <<_ACEOF
21674 #line $LINENO "configure"
21675 /* confdefs.h.  */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h.  */
21680
21681 /* Override any gcc2 internal prototype to avoid an error.  */
21682 #ifdef __cplusplus
21683 extern "C"
21684 #endif
21685 /* We use char because int might match the return type of a gcc2
21686    builtin and then its argument prototype would still apply.  */
21687 char dnet_ntoa ();
21688 int
21689 main ()
21690 {
21691 dnet_ntoa ();
21692   ;
21693   return 0;
21694 }
21695 _ACEOF
21696 rm -f conftest.$ac_objext conftest$ac_exeext
21697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21698   (eval $ac_link) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } &&
21702          { ac_try='test -s conftest$ac_exeext'
21703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704   (eval $ac_try) 2>&5
21705   ac_status=$?
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); }; }; then
21708   ac_cv_lib_dnet_dnet_ntoa=yes
21709 else
21710   echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_cv_lib_dnet_dnet_ntoa=no
21714 fi
21715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21716 LIBS=$ac_check_lib_save_LIBS
21717 fi
21718 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21719 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21720 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21721   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21722 fi
21723
21724     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21725       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21726 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21727 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21728   echo $ECHO_N "(cached) $ECHO_C" >&6
21729 else
21730   ac_check_lib_save_LIBS=$LIBS
21731 LIBS="-ldnet_stub  $LIBS"
21732 cat >conftest.$ac_ext <<_ACEOF
21733 #line $LINENO "configure"
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739
21740 /* Override any gcc2 internal prototype to avoid an error.  */
21741 #ifdef __cplusplus
21742 extern "C"
21743 #endif
21744 /* We use char because int might match the return type of a gcc2
21745    builtin and then its argument prototype would still apply.  */
21746 char dnet_ntoa ();
21747 int
21748 main ()
21749 {
21750 dnet_ntoa ();
21751   ;
21752   return 0;
21753 }
21754 _ACEOF
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21757   (eval $ac_link) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } &&
21761          { ac_try='test -s conftest$ac_exeext'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; }; then
21767   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21768 else
21769   echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ac_cv_lib_dnet_stub_dnet_ntoa=no
21773 fi
21774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21775 LIBS=$ac_check_lib_save_LIBS
21776 fi
21777 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21778 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21779 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21780   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21781 fi
21782
21783     fi
21784 fi
21785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21786     LIBS="$ac_xsave_LIBS"
21787
21788     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21789     # to get the SysV transport functions.
21790     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21791     # needs -lnsl.
21792     # The nsl library prevents programs from opening the X display
21793     # on Irix 5.2, according to T.E. Dickey.
21794     # The functions gethostbyname, getservbyname, and inet_addr are
21795     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21796     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21797 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21798 if test "${ac_cv_func_gethostbyname+set}" = set; then
21799   echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801   cat >conftest.$ac_ext <<_ACEOF
21802 #line $LINENO "configure"
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808 /* System header to define __stub macros and hopefully few prototypes,
21809     which can conflict with char gethostbyname (); below.
21810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21811     <limits.h> exists even on freestanding compilers.  */
21812 #ifdef __STDC__
21813 # include <limits.h>
21814 #else
21815 # include <assert.h>
21816 #endif
21817 /* Override any gcc2 internal prototype to avoid an error.  */
21818 #ifdef __cplusplus
21819 extern "C"
21820 {
21821 #endif
21822 /* We use char because int might match the return type of a gcc2
21823    builtin and then its argument prototype would still apply.  */
21824 char gethostbyname ();
21825 /* The GNU C library defines this for functions which it implements
21826     to always fail with ENOSYS.  Some functions are actually named
21827     something starting with __ and the normal name is an alias.  */
21828 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21829 choke me
21830 #else
21831 char (*f) () = gethostbyname;
21832 #endif
21833 #ifdef __cplusplus
21834 }
21835 #endif
21836
21837 int
21838 main ()
21839 {
21840 return f != gethostbyname;
21841   ;
21842   return 0;
21843 }
21844 _ACEOF
21845 rm -f conftest.$ac_objext conftest$ac_exeext
21846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21847   (eval $ac_link) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); } &&
21851          { ac_try='test -s conftest$ac_exeext'
21852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853   (eval $ac_try) 2>&5
21854   ac_status=$?
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); }; }; then
21857   ac_cv_func_gethostbyname=yes
21858 else
21859   echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_cv_func_gethostbyname=no
21863 fi
21864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21865 fi
21866 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21867 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21868
21869     if test $ac_cv_func_gethostbyname = no; then
21870       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21871 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21872 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21873   echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875   ac_check_lib_save_LIBS=$LIBS
21876 LIBS="-lnsl  $LIBS"
21877 cat >conftest.$ac_ext <<_ACEOF
21878 #line $LINENO "configure"
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884
21885 /* Override any gcc2 internal prototype to avoid an error.  */
21886 #ifdef __cplusplus
21887 extern "C"
21888 #endif
21889 /* We use char because int might match the return type of a gcc2
21890    builtin and then its argument prototype would still apply.  */
21891 char gethostbyname ();
21892 int
21893 main ()
21894 {
21895 gethostbyname ();
21896   ;
21897   return 0;
21898 }
21899 _ACEOF
21900 rm -f conftest.$ac_objext conftest$ac_exeext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902   (eval $ac_link) 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } &&
21906          { ac_try='test -s conftest$ac_exeext'
21907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908   (eval $ac_try) 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; }; then
21912   ac_cv_lib_nsl_gethostbyname=yes
21913 else
21914   echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 ac_cv_lib_nsl_gethostbyname=no
21918 fi
21919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21920 LIBS=$ac_check_lib_save_LIBS
21921 fi
21922 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21923 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21924 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21925   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21926 fi
21927
21928       if test $ac_cv_lib_nsl_gethostbyname = no; then
21929         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21930 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21931 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lbsd  $LIBS"
21936 cat >conftest.$ac_ext <<_ACEOF
21937 #line $LINENO "configure"
21938 /* confdefs.h.  */
21939 _ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h.  */
21943
21944 /* Override any gcc2 internal prototype to avoid an error.  */
21945 #ifdef __cplusplus
21946 extern "C"
21947 #endif
21948 /* We use char because int might match the return type of a gcc2
21949    builtin and then its argument prototype would still apply.  */
21950 char gethostbyname ();
21951 int
21952 main ()
21953 {
21954 gethostbyname ();
21955   ;
21956   return 0;
21957 }
21958 _ACEOF
21959 rm -f conftest.$ac_objext conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961   (eval $ac_link) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } &&
21965          { ac_try='test -s conftest$ac_exeext'
21966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967   (eval $ac_try) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; }; then
21971   ac_cv_lib_bsd_gethostbyname=yes
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ac_cv_lib_bsd_gethostbyname=no
21977 fi
21978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21979 LIBS=$ac_check_lib_save_LIBS
21980 fi
21981 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21982 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21983 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21984   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21985 fi
21986
21987       fi
21988     fi
21989
21990     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21991     # socket/setsockopt and other routines are undefined under SCO ODT
21992     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21993     # on later versions), says Simon Leinen: it contains gethostby*
21994     # variants that don't use the name server (or something).  -lsocket
21995     # must be given before -lnsl if both are needed.  We assume that
21996     # if connect needs -lnsl, so does gethostbyname.
21997     echo "$as_me:$LINENO: checking for connect" >&5
21998 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21999 if test "${ac_cv_func_connect+set}" = set; then
22000   echo $ECHO_N "(cached) $ECHO_C" >&6
22001 else
22002   cat >conftest.$ac_ext <<_ACEOF
22003 #line $LINENO "configure"
22004 /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009 /* System header to define __stub macros and hopefully few prototypes,
22010     which can conflict with char connect (); below.
22011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22012     <limits.h> exists even on freestanding compilers.  */
22013 #ifdef __STDC__
22014 # include <limits.h>
22015 #else
22016 # include <assert.h>
22017 #endif
22018 /* Override any gcc2 internal prototype to avoid an error.  */
22019 #ifdef __cplusplus
22020 extern "C"
22021 {
22022 #endif
22023 /* We use char because int might match the return type of a gcc2
22024    builtin and then its argument prototype would still apply.  */
22025 char connect ();
22026 /* The GNU C library defines this for functions which it implements
22027     to always fail with ENOSYS.  Some functions are actually named
22028     something starting with __ and the normal name is an alias.  */
22029 #if defined (__stub_connect) || defined (__stub___connect)
22030 choke me
22031 #else
22032 char (*f) () = connect;
22033 #endif
22034 #ifdef __cplusplus
22035 }
22036 #endif
22037
22038 int
22039 main ()
22040 {
22041 return f != connect;
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22048   (eval $ac_link) 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } &&
22052          { ac_try='test -s conftest$ac_exeext'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; }; then
22058   ac_cv_func_connect=yes
22059 else
22060   echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 ac_cv_func_connect=no
22064 fi
22065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22066 fi
22067 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22068 echo "${ECHO_T}$ac_cv_func_connect" >&6
22069
22070     if test $ac_cv_func_connect = no; then
22071       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22072 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22073 if test "${ac_cv_lib_socket_connect+set}" = set; then
22074   echo $ECHO_N "(cached) $ECHO_C" >&6
22075 else
22076   ac_check_lib_save_LIBS=$LIBS
22077 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22078 cat >conftest.$ac_ext <<_ACEOF
22079 #line $LINENO "configure"
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085
22086 /* Override any gcc2 internal prototype to avoid an error.  */
22087 #ifdef __cplusplus
22088 extern "C"
22089 #endif
22090 /* We use char because int might match the return type of a gcc2
22091    builtin and then its argument prototype would still apply.  */
22092 char connect ();
22093 int
22094 main ()
22095 {
22096 connect ();
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext conftest$ac_exeext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22103   (eval $ac_link) 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } &&
22107          { ac_try='test -s conftest$ac_exeext'
22108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109   (eval $ac_try) 2>&5
22110   ac_status=$?
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); }; }; then
22113   ac_cv_lib_socket_connect=yes
22114 else
22115   echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118 ac_cv_lib_socket_connect=no
22119 fi
22120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22121 LIBS=$ac_check_lib_save_LIBS
22122 fi
22123 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22124 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22125 if test $ac_cv_lib_socket_connect = yes; then
22126   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22127 fi
22128
22129     fi
22130
22131     # Guillermo Gomez says -lposix is necessary on A/UX.
22132     echo "$as_me:$LINENO: checking for remove" >&5
22133 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22134 if test "${ac_cv_func_remove+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   cat >conftest.$ac_ext <<_ACEOF
22138 #line $LINENO "configure"
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 /* System header to define __stub macros and hopefully few prototypes,
22145     which can conflict with char remove (); below.
22146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22147     <limits.h> exists even on freestanding compilers.  */
22148 #ifdef __STDC__
22149 # include <limits.h>
22150 #else
22151 # include <assert.h>
22152 #endif
22153 /* Override any gcc2 internal prototype to avoid an error.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 {
22157 #endif
22158 /* We use char because int might match the return type of a gcc2
22159    builtin and then its argument prototype would still apply.  */
22160 char remove ();
22161 /* The GNU C library defines this for functions which it implements
22162     to always fail with ENOSYS.  Some functions are actually named
22163     something starting with __ and the normal name is an alias.  */
22164 #if defined (__stub_remove) || defined (__stub___remove)
22165 choke me
22166 #else
22167 char (*f) () = remove;
22168 #endif
22169 #ifdef __cplusplus
22170 }
22171 #endif
22172
22173 int
22174 main ()
22175 {
22176 return f != remove;
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 rm -f conftest.$ac_objext conftest$ac_exeext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183   (eval $ac_link) 2>&5
22184   ac_status=$?
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } &&
22187          { ac_try='test -s conftest$ac_exeext'
22188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189   (eval $ac_try) 2>&5
22190   ac_status=$?
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); }; }; then
22193   ac_cv_func_remove=yes
22194 else
22195   echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22197
22198 ac_cv_func_remove=no
22199 fi
22200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22201 fi
22202 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22203 echo "${ECHO_T}$ac_cv_func_remove" >&6
22204
22205     if test $ac_cv_func_remove = no; then
22206       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22207 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22208 if test "${ac_cv_lib_posix_remove+set}" = set; then
22209   echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211   ac_check_lib_save_LIBS=$LIBS
22212 LIBS="-lposix  $LIBS"
22213 cat >conftest.$ac_ext <<_ACEOF
22214 #line $LINENO "configure"
22215 /* confdefs.h.  */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h.  */
22220
22221 /* Override any gcc2 internal prototype to avoid an error.  */
22222 #ifdef __cplusplus
22223 extern "C"
22224 #endif
22225 /* We use char because int might match the return type of a gcc2
22226    builtin and then its argument prototype would still apply.  */
22227 char remove ();
22228 int
22229 main ()
22230 {
22231 remove ();
22232   ;
22233   return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22238   (eval $ac_link) 2>&5
22239   ac_status=$?
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } &&
22242          { ac_try='test -s conftest$ac_exeext'
22243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244   (eval $ac_try) 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); }; }; then
22248   ac_cv_lib_posix_remove=yes
22249 else
22250   echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253 ac_cv_lib_posix_remove=no
22254 fi
22255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22257 fi
22258 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22259 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22260 if test $ac_cv_lib_posix_remove = yes; then
22261   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22262 fi
22263
22264     fi
22265
22266     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22267     echo "$as_me:$LINENO: checking for shmat" >&5
22268 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22269 if test "${ac_cv_func_shmat+set}" = set; then
22270   echo $ECHO_N "(cached) $ECHO_C" >&6
22271 else
22272   cat >conftest.$ac_ext <<_ACEOF
22273 #line $LINENO "configure"
22274 /* confdefs.h.  */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h.  */
22279 /* System header to define __stub macros and hopefully few prototypes,
22280     which can conflict with char shmat (); below.
22281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22282     <limits.h> exists even on freestanding compilers.  */
22283 #ifdef __STDC__
22284 # include <limits.h>
22285 #else
22286 # include <assert.h>
22287 #endif
22288 /* Override any gcc2 internal prototype to avoid an error.  */
22289 #ifdef __cplusplus
22290 extern "C"
22291 {
22292 #endif
22293 /* We use char because int might match the return type of a gcc2
22294    builtin and then its argument prototype would still apply.  */
22295 char shmat ();
22296 /* The GNU C library defines this for functions which it implements
22297     to always fail with ENOSYS.  Some functions are actually named
22298     something starting with __ and the normal name is an alias.  */
22299 #if defined (__stub_shmat) || defined (__stub___shmat)
22300 choke me
22301 #else
22302 char (*f) () = shmat;
22303 #endif
22304 #ifdef __cplusplus
22305 }
22306 #endif
22307
22308 int
22309 main ()
22310 {
22311 return f != shmat;
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 rm -f conftest.$ac_objext conftest$ac_exeext
22317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22318   (eval $ac_link) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); } &&
22322          { ac_try='test -s conftest$ac_exeext'
22323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324   (eval $ac_try) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328   ac_cv_func_shmat=yes
22329 else
22330   echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333 ac_cv_func_shmat=no
22334 fi
22335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22336 fi
22337 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22338 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22339
22340     if test $ac_cv_func_shmat = no; then
22341       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22342 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22343 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   ac_check_lib_save_LIBS=$LIBS
22347 LIBS="-lipc  $LIBS"
22348 cat >conftest.$ac_ext <<_ACEOF
22349 #line $LINENO "configure"
22350 /* confdefs.h.  */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h.  */
22355
22356 /* Override any gcc2 internal prototype to avoid an error.  */
22357 #ifdef __cplusplus
22358 extern "C"
22359 #endif
22360 /* We use char because int might match the return type of a gcc2
22361    builtin and then its argument prototype would still apply.  */
22362 char shmat ();
22363 int
22364 main ()
22365 {
22366 shmat ();
22367   ;
22368   return 0;
22369 }
22370 _ACEOF
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22373   (eval $ac_link) 2>&5
22374   ac_status=$?
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -s conftest$ac_exeext'
22378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379   (eval $ac_try) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; }; then
22383   ac_cv_lib_ipc_shmat=yes
22384 else
22385   echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388 ac_cv_lib_ipc_shmat=no
22389 fi
22390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22391 LIBS=$ac_check_lib_save_LIBS
22392 fi
22393 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22394 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22395 if test $ac_cv_lib_ipc_shmat = yes; then
22396   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22397 fi
22398
22399     fi
22400   fi
22401
22402   # Check for libraries that X11R6 Xt/Xaw programs need.
22403   ac_save_LDFLAGS=$LDFLAGS
22404   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22405   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22406   # check for ICE first), but we must link in the order -lSM -lICE or
22407   # we get undefined symbols.  So assume we have SM if we have ICE.
22408   # These have to be linked with before -lX11, unlike the other
22409   # libraries we check for below, so use a different variable.
22410   # John Interrante, Karl Berry
22411   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22412 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22413 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22414   echo $ECHO_N "(cached) $ECHO_C" >&6
22415 else
22416   ac_check_lib_save_LIBS=$LIBS
22417 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22418 cat >conftest.$ac_ext <<_ACEOF
22419 #line $LINENO "configure"
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425
22426 /* Override any gcc2 internal prototype to avoid an error.  */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 /* We use char because int might match the return type of a gcc2
22431    builtin and then its argument prototype would still apply.  */
22432 char IceConnectionNumber ();
22433 int
22434 main ()
22435 {
22436 IceConnectionNumber ();
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443   (eval $ac_link) 2>&5
22444   ac_status=$?
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } &&
22447          { ac_try='test -s conftest$ac_exeext'
22448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449   (eval $ac_try) 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; }; then
22453   ac_cv_lib_ICE_IceConnectionNumber=yes
22454 else
22455   echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458 ac_cv_lib_ICE_IceConnectionNumber=no
22459 fi
22460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22461 LIBS=$ac_check_lib_save_LIBS
22462 fi
22463 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22464 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22465 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22466   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22467 fi
22468
22469   LDFLAGS=$ac_save_LDFLAGS
22470
22471 fi
22472
22473
22474         if test "$no_x" = "yes"; then
22475           { { echo "$as_me:$LINENO: error: X11 not found" >&5
22476 echo "$as_me: error: X11 not found" >&2;}
22477    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
22478         fi
22479
22480         GUI_TK_LIBRARY="$X_LIBS"
22481         TOOLKIT_INCLUDE="$X_CFLAGS"
22482         AFMINSTALL=afminstall
22483         COMPILED_X_PROGRAM=0
22484
22485         if test "$wxUSE_NANOX" = "yes"; then
22486             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22487 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
22488             if test "x$MICROWIN" = x ; then
22489                 echo "$as_me:$LINENO: result: not found" >&5
22490 echo "${ECHO_T}not found" >&6
22491                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22492 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22493    { (exit 1); exit 1; }; }
22494             else
22495                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22496 echo "${ECHO_T}$MICROWIN" >&6
22497                 cat >>confdefs.h <<\_ACEOF
22498 #define wxUSE_NANOX 1
22499 _ACEOF
22500
22501             fi
22502         fi
22503
22504         xpm_link=
22505         echo "$as_me:$LINENO: checking for Xpm library" >&5
22506 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22507
22508 ac_find_libraries=
22509 for ac_dir in $SEARCH_LIB /usr/lib;
22510   do
22511     for ac_extension in a so sl dylib; do
22512       if test -f "$ac_dir/libXpm.$ac_extension"; then
22513         ac_find_libraries=$ac_dir
22514         break 2
22515       fi
22516     done
22517   done
22518
22519         if test "$ac_find_libraries" != "" ; then
22520
22521   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22522   result=$?
22523   if test $result = 0; then
22524     ac_path_to_link=""
22525   else
22526     ac_path_to_link=" -L$ac_find_libraries"
22527   fi
22528
22529             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22530             xpm_link=" -lXpm"
22531             cat >>confdefs.h <<\_ACEOF
22532 #define wxHAVE_LIB_XPM 1
22533 _ACEOF
22534
22535             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22536 echo "${ECHO_T}found at $ac_find_libraries" >&6
22537         else
22538             cat >conftest.$ac_ext <<_ACEOF
22539 #line $LINENO "configure"
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545
22546                     #include <X11/xpm.h>
22547
22548 int
22549 main ()
22550 {
22551
22552                     int version;
22553                     version = XpmLibraryVersion();
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext
22560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22561   (eval $ac_compile) 2>&5
22562   ac_status=$?
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); } &&
22565          { ac_try='test -s conftest.$ac_objext'
22566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567   (eval $ac_try) 2>&5
22568   ac_status=$?
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); }; }; then
22571
22572                     xpm_link=" -lXpm"
22573                     cat >>confdefs.h <<\_ACEOF
22574 #define wxHAVE_LIB_XPM 1
22575 _ACEOF
22576
22577                     echo "$as_me:$LINENO: result: found in default search path" >&5
22578 echo "${ECHO_T}found in default search path" >&6
22579                     COMPILED_X_PROGRAM=0
22580
22581 else
22582   echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585
22586                     echo "$as_me:$LINENO: result: no" >&5
22587 echo "${ECHO_T}no" >&6
22588                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22589 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22590
22591
22592 fi
22593 rm -f conftest.$ac_objext conftest.$ac_ext
22594         fi
22595
22596         echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22597 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22598 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601   ac_check_lib_save_LIBS=$LIBS
22602 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
22603 cat >conftest.$ac_ext <<_ACEOF
22604 #line $LINENO "configure"
22605 /* confdefs.h.  */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h.  */
22610
22611 /* Override any gcc2 internal prototype to avoid an error.  */
22612 #ifdef __cplusplus
22613 extern "C"
22614 #endif
22615 /* We use char because int might match the return type of a gcc2
22616    builtin and then its argument prototype would still apply.  */
22617 char XShapeQueryExtension ();
22618 int
22619 main ()
22620 {
22621 XShapeQueryExtension ();
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest.$ac_objext conftest$ac_exeext
22627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22628   (eval $ac_link) 2>&5
22629   ac_status=$?
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); } &&
22632          { ac_try='test -s conftest$ac_exeext'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; }; then
22638   ac_cv_lib_Xext_XShapeQueryExtension=yes
22639 else
22640   echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22642
22643 ac_cv_lib_Xext_XShapeQueryExtension=no
22644 fi
22645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22646 LIBS=$ac_check_lib_save_LIBS
22647 fi
22648 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22649 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22650 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
22651
22652                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22653                       wxHAVE_XEXT_LIB=1
22654
22655 fi
22656
22657
22658         if test "$wxUSE_UNICODE" = "yes"; then
22659
22660   succeeded=no
22661
22662   if test -z "$PKG_CONFIG"; then
22663     # Extract the first word of "pkg-config", so it can be a program name with args.
22664 set dummy pkg-config; ac_word=$2
22665 echo "$as_me:$LINENO: checking for $ac_word" >&5
22666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22668   echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670   case $PKG_CONFIG in
22671   [\\/]* | ?:[\\/]*)
22672   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22673   ;;
22674   *)
22675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22676 for as_dir in $PATH
22677 do
22678   IFS=$as_save_IFS
22679   test -z "$as_dir" && as_dir=.
22680   for ac_exec_ext in '' $ac_executable_extensions; do
22681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22682     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22684     break 2
22685   fi
22686 done
22687 done
22688
22689   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22690   ;;
22691 esac
22692 fi
22693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22694
22695 if test -n "$PKG_CONFIG"; then
22696   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22697 echo "${ECHO_T}$PKG_CONFIG" >&6
22698 else
22699   echo "$as_me:$LINENO: result: no" >&5
22700 echo "${ECHO_T}no" >&6
22701 fi
22702
22703   fi
22704
22705   if test "$PKG_CONFIG" = "no" ; then
22706      echo "*** The pkg-config script could not be found. Make sure it is"
22707      echo "*** in your path, or set the PKG_CONFIG environment variable"
22708      echo "*** to the full path to pkg-config."
22709      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22710   else
22711      PKG_CONFIG_MIN_VERSION=0.9.0
22712      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22713         echo "$as_me:$LINENO: checking for pangox" >&5
22714 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
22715
22716         if $PKG_CONFIG --exists "pangox" ; then
22717             echo "$as_me:$LINENO: result: yes" >&5
22718 echo "${ECHO_T}yes" >&6
22719             succeeded=yes
22720
22721             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22722 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
22723             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
22724             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22725 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
22726
22727             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22728 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
22729             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
22730             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22731 echo "${ECHO_T}$PANGOX_LIBS" >&6
22732         else
22733             PANGOX_CFLAGS=""
22734             PANGOX_LIBS=""
22735             ## If we have a custom action on failure, don't print errors, but
22736             ## do set a variable so people can do so.
22737             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
22738
22739         fi
22740
22741
22742
22743      else
22744         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22745         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22746      fi
22747   fi
22748
22749   if test $succeeded = yes; then
22750
22751                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22752                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
22753
22754   else
22755
22756                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22757 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22758    { (exit 1); exit 1; }; }
22759
22760
22761   fi
22762
22763
22764   succeeded=no
22765
22766   if test -z "$PKG_CONFIG"; then
22767     # Extract the first word of "pkg-config", so it can be a program name with args.
22768 set dummy pkg-config; ac_word=$2
22769 echo "$as_me:$LINENO: checking for $ac_word" >&5
22770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22771 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22772   echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774   case $PKG_CONFIG in
22775   [\\/]* | ?:[\\/]*)
22776   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22777   ;;
22778   *)
22779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22780 for as_dir in $PATH
22781 do
22782   IFS=$as_save_IFS
22783   test -z "$as_dir" && as_dir=.
22784   for ac_exec_ext in '' $ac_executable_extensions; do
22785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22786     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22788     break 2
22789   fi
22790 done
22791 done
22792
22793   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22794   ;;
22795 esac
22796 fi
22797 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22798
22799 if test -n "$PKG_CONFIG"; then
22800   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22801 echo "${ECHO_T}$PKG_CONFIG" >&6
22802 else
22803   echo "$as_me:$LINENO: result: no" >&5
22804 echo "${ECHO_T}no" >&6
22805 fi
22806
22807   fi
22808
22809   if test "$PKG_CONFIG" = "no" ; then
22810      echo "*** The pkg-config script could not be found. Make sure it is"
22811      echo "*** in your path, or set the PKG_CONFIG environment variable"
22812      echo "*** to the full path to pkg-config."
22813      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22814   else
22815      PKG_CONFIG_MIN_VERSION=0.9.0
22816      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22817         echo "$as_me:$LINENO: checking for pangoft2" >&5
22818 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22819
22820         if $PKG_CONFIG --exists "pangoft2" ; then
22821             echo "$as_me:$LINENO: result: yes" >&5
22822 echo "${ECHO_T}yes" >&6
22823             succeeded=yes
22824
22825             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22826 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22827             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22828             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22829 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22830
22831             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22832 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22833             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22834             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22835 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22836         else
22837             PANGOFT2_CFLAGS=""
22838             PANGOFT2_LIBS=""
22839             ## If we have a custom action on failure, don't print errors, but
22840             ## do set a variable so people can do so.
22841             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22842
22843         fi
22844
22845
22846
22847      else
22848         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22849         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22850      fi
22851   fi
22852
22853   if test $succeeded = yes; then
22854
22855                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22856                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22857
22858   else
22859
22860                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22861 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22862                         wxUSE_PRINTING_ARCHITECTURE="no"
22863
22864
22865   fi
22866
22867
22868   succeeded=no
22869
22870   if test -z "$PKG_CONFIG"; then
22871     # Extract the first word of "pkg-config", so it can be a program name with args.
22872 set dummy pkg-config; ac_word=$2
22873 echo "$as_me:$LINENO: checking for $ac_word" >&5
22874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22875 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22876   echo $ECHO_N "(cached) $ECHO_C" >&6
22877 else
22878   case $PKG_CONFIG in
22879   [\\/]* | ?:[\\/]*)
22880   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22881   ;;
22882   *)
22883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22884 for as_dir in $PATH
22885 do
22886   IFS=$as_save_IFS
22887   test -z "$as_dir" && as_dir=.
22888   for ac_exec_ext in '' $ac_executable_extensions; do
22889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22890     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22892     break 2
22893   fi
22894 done
22895 done
22896
22897   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22898   ;;
22899 esac
22900 fi
22901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22902
22903 if test -n "$PKG_CONFIG"; then
22904   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22905 echo "${ECHO_T}$PKG_CONFIG" >&6
22906 else
22907   echo "$as_me:$LINENO: result: no" >&5
22908 echo "${ECHO_T}no" >&6
22909 fi
22910
22911   fi
22912
22913   if test "$PKG_CONFIG" = "no" ; then
22914      echo "*** The pkg-config script could not be found. Make sure it is"
22915      echo "*** in your path, or set the PKG_CONFIG environment variable"
22916      echo "*** to the full path to pkg-config."
22917      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22918   else
22919      PKG_CONFIG_MIN_VERSION=0.9.0
22920      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22921         echo "$as_me:$LINENO: checking for pangoxft" >&5
22922 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
22923
22924         if $PKG_CONFIG --exists "pangoxft" ; then
22925             echo "$as_me:$LINENO: result: yes" >&5
22926 echo "${ECHO_T}yes" >&6
22927             succeeded=yes
22928
22929             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22930 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
22931             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
22932             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22933 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
22934
22935             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22936 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
22937             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
22938             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22939 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
22940         else
22941             PANGOXFT_CFLAGS=""
22942             PANGOXFT_LIBS=""
22943             ## If we have a custom action on failure, don't print errors, but
22944             ## do set a variable so people can do so.
22945             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
22946
22947         fi
22948
22949
22950
22951      else
22952         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22953         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22954      fi
22955   fi
22956
22957   if test $succeeded = yes; then
22958
22959                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22960                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
22961
22962   else
22963
22964                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22965 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22966
22967
22968   fi
22969
22970         fi
22971
22972         wxUSE_UNIVERSAL="yes"
22973
22974         if test "$wxUSE_NANOX" = "yes"; then
22975             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
22976             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"
22977             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22978         else
22979             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22980         fi
22981
22982         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22983         TOOLKIT=X11
22984         GUIDIST=X11_DIST
22985     fi
22986
22987     if test "$wxUSE_MOTIF" = 1; then
22988                         if test "$no_x" = yes; then
22989   # Not all programs may use this symbol, but it does not hurt to define it.
22990
22991 cat >>confdefs.h <<\_ACEOF
22992 #define X_DISPLAY_MISSING 1
22993 _ACEOF
22994
22995   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22996 else
22997   if test -n "$x_includes"; then
22998     X_CFLAGS="$X_CFLAGS -I$x_includes"
22999   fi
23000
23001   # It would also be nice to do this for all -L options, not just this one.
23002   if test -n "$x_libraries"; then
23003     X_LIBS="$X_LIBS -L$x_libraries"
23004     # For Solaris; some versions of Sun CC require a space after -R and
23005     # others require no space.  Words are not sufficient . . . .
23006     case `(uname -sr) 2>/dev/null` in
23007     "SunOS 5"*)
23008       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23009 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23010       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23011       cat >conftest.$ac_ext <<_ACEOF
23012 #line $LINENO "configure"
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018
23019 int
23020 main ()
23021 {
23022
23023   ;
23024   return 0;
23025 }
23026 _ACEOF
23027 rm -f conftest.$ac_objext conftest$ac_exeext
23028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23029   (eval $ac_link) 2>&5
23030   ac_status=$?
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } &&
23033          { ac_try='test -s conftest$ac_exeext'
23034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035   (eval $ac_try) 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; }; then
23039   ac_R_nospace=yes
23040 else
23041   echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044 ac_R_nospace=no
23045 fi
23046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23047       if test $ac_R_nospace = yes; then
23048         echo "$as_me:$LINENO: result: no" >&5
23049 echo "${ECHO_T}no" >&6
23050         X_LIBS="$X_LIBS -R$x_libraries"
23051       else
23052         LIBS="$ac_xsave_LIBS -R $x_libraries"
23053         cat >conftest.$ac_ext <<_ACEOF
23054 #line $LINENO "configure"
23055 /* confdefs.h.  */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h.  */
23060
23061 int
23062 main ()
23063 {
23064
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext conftest$ac_exeext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23071   (eval $ac_link) 2>&5
23072   ac_status=$?
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -s conftest$ac_exeext'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ac_R_space=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 ac_R_space=no
23087 fi
23088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23089         if test $ac_R_space = yes; then
23090           echo "$as_me:$LINENO: result: yes" >&5
23091 echo "${ECHO_T}yes" >&6
23092           X_LIBS="$X_LIBS -R $x_libraries"
23093         else
23094           echo "$as_me:$LINENO: result: neither works" >&5
23095 echo "${ECHO_T}neither works" >&6
23096         fi
23097       fi
23098       LIBS=$ac_xsave_LIBS
23099     esac
23100   fi
23101
23102   # Check for system-dependent libraries X programs must link with.
23103   # Do this before checking for the system-independent R6 libraries
23104   # (-lICE), since we may need -lsocket or whatever for X linking.
23105
23106   if test "$ISC" = yes; then
23107     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23108   else
23109     # Martyn Johnson says this is needed for Ultrix, if the X
23110     # libraries were built with DECnet support.  And Karl Berry says
23111     # the Alpha needs dnet_stub (dnet does not exist).
23112     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23113     cat >conftest.$ac_ext <<_ACEOF
23114 #line $LINENO "configure"
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120
23121 /* Override any gcc2 internal prototype to avoid an error.  */
23122 #ifdef __cplusplus
23123 extern "C"
23124 #endif
23125 /* We use char because int might match the return type of a gcc2
23126    builtin and then its argument prototype would still apply.  */
23127 char XOpenDisplay ();
23128 int
23129 main ()
23130 {
23131 XOpenDisplay ();
23132   ;
23133   return 0;
23134 }
23135 _ACEOF
23136 rm -f conftest.$ac_objext conftest$ac_exeext
23137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23138   (eval $ac_link) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } &&
23142          { ac_try='test -s conftest$ac_exeext'
23143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144   (eval $ac_try) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; }; then
23148   :
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23154 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23155 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23156   echo $ECHO_N "(cached) $ECHO_C" >&6
23157 else
23158   ac_check_lib_save_LIBS=$LIBS
23159 LIBS="-ldnet  $LIBS"
23160 cat >conftest.$ac_ext <<_ACEOF
23161 #line $LINENO "configure"
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167
23168 /* Override any gcc2 internal prototype to avoid an error.  */
23169 #ifdef __cplusplus
23170 extern "C"
23171 #endif
23172 /* We use char because int might match the return type of a gcc2
23173    builtin and then its argument prototype would still apply.  */
23174 char dnet_ntoa ();
23175 int
23176 main ()
23177 {
23178 dnet_ntoa ();
23179   ;
23180   return 0;
23181 }
23182 _ACEOF
23183 rm -f conftest.$ac_objext conftest$ac_exeext
23184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23185   (eval $ac_link) 2>&5
23186   ac_status=$?
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); } &&
23189          { ac_try='test -s conftest$ac_exeext'
23190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191   (eval $ac_try) 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; }; then
23195   ac_cv_lib_dnet_dnet_ntoa=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200 ac_cv_lib_dnet_dnet_ntoa=no
23201 fi
23202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23203 LIBS=$ac_check_lib_save_LIBS
23204 fi
23205 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23206 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23207 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23208   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23209 fi
23210
23211     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23212       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23213 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23214 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23215   echo $ECHO_N "(cached) $ECHO_C" >&6
23216 else
23217   ac_check_lib_save_LIBS=$LIBS
23218 LIBS="-ldnet_stub  $LIBS"
23219 cat >conftest.$ac_ext <<_ACEOF
23220 #line $LINENO "configure"
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226
23227 /* Override any gcc2 internal prototype to avoid an error.  */
23228 #ifdef __cplusplus
23229 extern "C"
23230 #endif
23231 /* We use char because int might match the return type of a gcc2
23232    builtin and then its argument prototype would still apply.  */
23233 char dnet_ntoa ();
23234 int
23235 main ()
23236 {
23237 dnet_ntoa ();
23238   ;
23239   return 0;
23240 }
23241 _ACEOF
23242 rm -f conftest.$ac_objext conftest$ac_exeext
23243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23244   (eval $ac_link) 2>&5
23245   ac_status=$?
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } &&
23248          { ac_try='test -s conftest$ac_exeext'
23249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250   (eval $ac_try) 2>&5
23251   ac_status=$?
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); }; }; then
23254   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23255 else
23256   echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259 ac_cv_lib_dnet_stub_dnet_ntoa=no
23260 fi
23261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23262 LIBS=$ac_check_lib_save_LIBS
23263 fi
23264 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23265 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23266 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23267   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23268 fi
23269
23270     fi
23271 fi
23272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23273     LIBS="$ac_xsave_LIBS"
23274
23275     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23276     # to get the SysV transport functions.
23277     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23278     # needs -lnsl.
23279     # The nsl library prevents programs from opening the X display
23280     # on Irix 5.2, according to T.E. Dickey.
23281     # The functions gethostbyname, getservbyname, and inet_addr are
23282     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23283     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23284 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23285 if test "${ac_cv_func_gethostbyname+set}" = set; then
23286   echo $ECHO_N "(cached) $ECHO_C" >&6
23287 else
23288   cat >conftest.$ac_ext <<_ACEOF
23289 #line $LINENO "configure"
23290 /* confdefs.h.  */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h.  */
23295 /* System header to define __stub macros and hopefully few prototypes,
23296     which can conflict with char gethostbyname (); below.
23297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23298     <limits.h> exists even on freestanding compilers.  */
23299 #ifdef __STDC__
23300 # include <limits.h>
23301 #else
23302 # include <assert.h>
23303 #endif
23304 /* Override any gcc2 internal prototype to avoid an error.  */
23305 #ifdef __cplusplus
23306 extern "C"
23307 {
23308 #endif
23309 /* We use char because int might match the return type of a gcc2
23310    builtin and then its argument prototype would still apply.  */
23311 char gethostbyname ();
23312 /* The GNU C library defines this for functions which it implements
23313     to always fail with ENOSYS.  Some functions are actually named
23314     something starting with __ and the normal name is an alias.  */
23315 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23316 choke me
23317 #else
23318 char (*f) () = gethostbyname;
23319 #endif
23320 #ifdef __cplusplus
23321 }
23322 #endif
23323
23324 int
23325 main ()
23326 {
23327 return f != gethostbyname;
23328   ;
23329   return 0;
23330 }
23331 _ACEOF
23332 rm -f conftest.$ac_objext conftest$ac_exeext
23333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23334   (eval $ac_link) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } &&
23338          { ac_try='test -s conftest$ac_exeext'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; }; then
23344   ac_cv_func_gethostbyname=yes
23345 else
23346   echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_func_gethostbyname=no
23350 fi
23351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23352 fi
23353 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23354 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23355
23356     if test $ac_cv_func_gethostbyname = no; then
23357       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23358 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23359 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23360   echo $ECHO_N "(cached) $ECHO_C" >&6
23361 else
23362   ac_check_lib_save_LIBS=$LIBS
23363 LIBS="-lnsl  $LIBS"
23364 cat >conftest.$ac_ext <<_ACEOF
23365 #line $LINENO "configure"
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371
23372 /* Override any gcc2 internal prototype to avoid an error.  */
23373 #ifdef __cplusplus
23374 extern "C"
23375 #endif
23376 /* We use char because int might match the return type of a gcc2
23377    builtin and then its argument prototype would still apply.  */
23378 char gethostbyname ();
23379 int
23380 main ()
23381 {
23382 gethostbyname ();
23383   ;
23384   return 0;
23385 }
23386 _ACEOF
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23389   (eval $ac_link) 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_lib_nsl_gethostbyname=yes
23400 else
23401   echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23403
23404 ac_cv_lib_nsl_gethostbyname=no
23405 fi
23406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23407 LIBS=$ac_check_lib_save_LIBS
23408 fi
23409 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23410 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23411 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23412   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23413 fi
23414
23415       if test $ac_cv_lib_nsl_gethostbyname = no; then
23416         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23417 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23418 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23419   echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421   ac_check_lib_save_LIBS=$LIBS
23422 LIBS="-lbsd  $LIBS"
23423 cat >conftest.$ac_ext <<_ACEOF
23424 #line $LINENO "configure"
23425 /* confdefs.h.  */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h.  */
23430
23431 /* Override any gcc2 internal prototype to avoid an error.  */
23432 #ifdef __cplusplus
23433 extern "C"
23434 #endif
23435 /* We use char because int might match the return type of a gcc2
23436    builtin and then its argument prototype would still apply.  */
23437 char gethostbyname ();
23438 int
23439 main ()
23440 {
23441 gethostbyname ();
23442   ;
23443   return 0;
23444 }
23445 _ACEOF
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23448   (eval $ac_link) 2>&5
23449   ac_status=$?
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); } &&
23452          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23458   ac_cv_lib_bsd_gethostbyname=yes
23459 else
23460   echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ac_cv_lib_bsd_gethostbyname=no
23464 fi
23465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23466 LIBS=$ac_check_lib_save_LIBS
23467 fi
23468 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23469 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23470 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23471   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23472 fi
23473
23474       fi
23475     fi
23476
23477     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23478     # socket/setsockopt and other routines are undefined under SCO ODT
23479     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23480     # on later versions), says Simon Leinen: it contains gethostby*
23481     # variants that don't use the name server (or something).  -lsocket
23482     # must be given before -lnsl if both are needed.  We assume that
23483     # if connect needs -lnsl, so does gethostbyname.
23484     echo "$as_me:$LINENO: checking for connect" >&5
23485 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23486 if test "${ac_cv_func_connect+set}" = set; then
23487   echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489   cat >conftest.$ac_ext <<_ACEOF
23490 #line $LINENO "configure"
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496 /* System header to define __stub macros and hopefully few prototypes,
23497     which can conflict with char connect (); below.
23498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23499     <limits.h> exists even on freestanding compilers.  */
23500 #ifdef __STDC__
23501 # include <limits.h>
23502 #else
23503 # include <assert.h>
23504 #endif
23505 /* Override any gcc2 internal prototype to avoid an error.  */
23506 #ifdef __cplusplus
23507 extern "C"
23508 {
23509 #endif
23510 /* We use char because int might match the return type of a gcc2
23511    builtin and then its argument prototype would still apply.  */
23512 char connect ();
23513 /* The GNU C library defines this for functions which it implements
23514     to always fail with ENOSYS.  Some functions are actually named
23515     something starting with __ and the normal name is an alias.  */
23516 #if defined (__stub_connect) || defined (__stub___connect)
23517 choke me
23518 #else
23519 char (*f) () = connect;
23520 #endif
23521 #ifdef __cplusplus
23522 }
23523 #endif
23524
23525 int
23526 main ()
23527 {
23528 return f != connect;
23529   ;
23530   return 0;
23531 }
23532 _ACEOF
23533 rm -f conftest.$ac_objext conftest$ac_exeext
23534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23535   (eval $ac_link) 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } &&
23539          { ac_try='test -s conftest$ac_exeext'
23540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541   (eval $ac_try) 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; }; then
23545   ac_cv_func_connect=yes
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 ac_cv_func_connect=no
23551 fi
23552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23553 fi
23554 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23555 echo "${ECHO_T}$ac_cv_func_connect" >&6
23556
23557     if test $ac_cv_func_connect = no; then
23558       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23559 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23560 if test "${ac_cv_lib_socket_connect+set}" = set; then
23561   echo $ECHO_N "(cached) $ECHO_C" >&6
23562 else
23563   ac_check_lib_save_LIBS=$LIBS
23564 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23565 cat >conftest.$ac_ext <<_ACEOF
23566 #line $LINENO "configure"
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572
23573 /* Override any gcc2 internal prototype to avoid an error.  */
23574 #ifdef __cplusplus
23575 extern "C"
23576 #endif
23577 /* We use char because int might match the return type of a gcc2
23578    builtin and then its argument prototype would still apply.  */
23579 char connect ();
23580 int
23581 main ()
23582 {
23583 connect ();
23584   ;
23585   return 0;
23586 }
23587 _ACEOF
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23590   (eval $ac_link) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); } &&
23594          { ac_try='test -s conftest$ac_exeext'
23595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); }; }; then
23600   ac_cv_lib_socket_connect=yes
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 ac_cv_lib_socket_connect=no
23606 fi
23607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23608 LIBS=$ac_check_lib_save_LIBS
23609 fi
23610 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23611 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23612 if test $ac_cv_lib_socket_connect = yes; then
23613   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23614 fi
23615
23616     fi
23617
23618     # Guillermo Gomez says -lposix is necessary on A/UX.
23619     echo "$as_me:$LINENO: checking for remove" >&5
23620 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23621 if test "${ac_cv_func_remove+set}" = set; then
23622   echo $ECHO_N "(cached) $ECHO_C" >&6
23623 else
23624   cat >conftest.$ac_ext <<_ACEOF
23625 #line $LINENO "configure"
23626 /* confdefs.h.  */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h.  */
23631 /* System header to define __stub macros and hopefully few prototypes,
23632     which can conflict with char remove (); below.
23633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23634     <limits.h> exists even on freestanding compilers.  */
23635 #ifdef __STDC__
23636 # include <limits.h>
23637 #else
23638 # include <assert.h>
23639 #endif
23640 /* Override any gcc2 internal prototype to avoid an error.  */
23641 #ifdef __cplusplus
23642 extern "C"
23643 {
23644 #endif
23645 /* We use char because int might match the return type of a gcc2
23646    builtin and then its argument prototype would still apply.  */
23647 char remove ();
23648 /* The GNU C library defines this for functions which it implements
23649     to always fail with ENOSYS.  Some functions are actually named
23650     something starting with __ and the normal name is an alias.  */
23651 #if defined (__stub_remove) || defined (__stub___remove)
23652 choke me
23653 #else
23654 char (*f) () = remove;
23655 #endif
23656 #ifdef __cplusplus
23657 }
23658 #endif
23659
23660 int
23661 main ()
23662 {
23663 return f != remove;
23664   ;
23665   return 0;
23666 }
23667 _ACEOF
23668 rm -f conftest.$ac_objext conftest$ac_exeext
23669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23670   (eval $ac_link) 2>&5
23671   ac_status=$?
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } &&
23674          { ac_try='test -s conftest$ac_exeext'
23675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23676   (eval $ac_try) 2>&5
23677   ac_status=$?
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); }; }; then
23680   ac_cv_func_remove=yes
23681 else
23682   echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685 ac_cv_func_remove=no
23686 fi
23687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23688 fi
23689 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23690 echo "${ECHO_T}$ac_cv_func_remove" >&6
23691
23692     if test $ac_cv_func_remove = no; then
23693       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23694 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23695 if test "${ac_cv_lib_posix_remove+set}" = set; then
23696   echo $ECHO_N "(cached) $ECHO_C" >&6
23697 else
23698   ac_check_lib_save_LIBS=$LIBS
23699 LIBS="-lposix  $LIBS"
23700 cat >conftest.$ac_ext <<_ACEOF
23701 #line $LINENO "configure"
23702 /* confdefs.h.  */
23703 _ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h.  */
23707
23708 /* Override any gcc2 internal prototype to avoid an error.  */
23709 #ifdef __cplusplus
23710 extern "C"
23711 #endif
23712 /* We use char because int might match the return type of a gcc2
23713    builtin and then its argument prototype would still apply.  */
23714 char remove ();
23715 int
23716 main ()
23717 {
23718 remove ();
23719   ;
23720   return 0;
23721 }
23722 _ACEOF
23723 rm -f conftest.$ac_objext conftest$ac_exeext
23724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23725   (eval $ac_link) 2>&5
23726   ac_status=$?
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); } &&
23729          { ac_try='test -s conftest$ac_exeext'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; }; then
23735   ac_cv_lib_posix_remove=yes
23736 else
23737   echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ac_cv_lib_posix_remove=no
23741 fi
23742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23743 LIBS=$ac_check_lib_save_LIBS
23744 fi
23745 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23746 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23747 if test $ac_cv_lib_posix_remove = yes; then
23748   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23749 fi
23750
23751     fi
23752
23753     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23754     echo "$as_me:$LINENO: checking for shmat" >&5
23755 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23756 if test "${ac_cv_func_shmat+set}" = set; then
23757   echo $ECHO_N "(cached) $ECHO_C" >&6
23758 else
23759   cat >conftest.$ac_ext <<_ACEOF
23760 #line $LINENO "configure"
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 /* System header to define __stub macros and hopefully few prototypes,
23767     which can conflict with char shmat (); below.
23768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23769     <limits.h> exists even on freestanding compilers.  */
23770 #ifdef __STDC__
23771 # include <limits.h>
23772 #else
23773 # include <assert.h>
23774 #endif
23775 /* Override any gcc2 internal prototype to avoid an error.  */
23776 #ifdef __cplusplus
23777 extern "C"
23778 {
23779 #endif
23780 /* We use char because int might match the return type of a gcc2
23781    builtin and then its argument prototype would still apply.  */
23782 char shmat ();
23783 /* The GNU C library defines this for functions which it implements
23784     to always fail with ENOSYS.  Some functions are actually named
23785     something starting with __ and the normal name is an alias.  */
23786 #if defined (__stub_shmat) || defined (__stub___shmat)
23787 choke me
23788 #else
23789 char (*f) () = shmat;
23790 #endif
23791 #ifdef __cplusplus
23792 }
23793 #endif
23794
23795 int
23796 main ()
23797 {
23798 return f != shmat;
23799   ;
23800   return 0;
23801 }
23802 _ACEOF
23803 rm -f conftest.$ac_objext conftest$ac_exeext
23804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23805   (eval $ac_link) 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); } &&
23809          { ac_try='test -s conftest$ac_exeext'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; }; then
23815   ac_cv_func_shmat=yes
23816 else
23817   echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 ac_cv_func_shmat=no
23821 fi
23822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23823 fi
23824 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23825 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23826
23827     if test $ac_cv_func_shmat = no; then
23828       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23829 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23830 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23831   echo $ECHO_N "(cached) $ECHO_C" >&6
23832 else
23833   ac_check_lib_save_LIBS=$LIBS
23834 LIBS="-lipc  $LIBS"
23835 cat >conftest.$ac_ext <<_ACEOF
23836 #line $LINENO "configure"
23837 /* confdefs.h.  */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h.  */
23842
23843 /* Override any gcc2 internal prototype to avoid an error.  */
23844 #ifdef __cplusplus
23845 extern "C"
23846 #endif
23847 /* We use char because int might match the return type of a gcc2
23848    builtin and then its argument prototype would still apply.  */
23849 char shmat ();
23850 int
23851 main ()
23852 {
23853 shmat ();
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23860   (eval $ac_link) 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_ipc_shmat=yes
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ac_cv_lib_ipc_shmat=no
23876 fi
23877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23878 LIBS=$ac_check_lib_save_LIBS
23879 fi
23880 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23881 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23882 if test $ac_cv_lib_ipc_shmat = yes; then
23883   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23884 fi
23885
23886     fi
23887   fi
23888
23889   # Check for libraries that X11R6 Xt/Xaw programs need.
23890   ac_save_LDFLAGS=$LDFLAGS
23891   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23892   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23893   # check for ICE first), but we must link in the order -lSM -lICE or
23894   # we get undefined symbols.  So assume we have SM if we have ICE.
23895   # These have to be linked with before -lX11, unlike the other
23896   # libraries we check for below, so use a different variable.
23897   # John Interrante, Karl Berry
23898   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23899 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23900 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23901   echo $ECHO_N "(cached) $ECHO_C" >&6
23902 else
23903   ac_check_lib_save_LIBS=$LIBS
23904 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23905 cat >conftest.$ac_ext <<_ACEOF
23906 #line $LINENO "configure"
23907 /* confdefs.h.  */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h.  */
23912
23913 /* Override any gcc2 internal prototype to avoid an error.  */
23914 #ifdef __cplusplus
23915 extern "C"
23916 #endif
23917 /* We use char because int might match the return type of a gcc2
23918    builtin and then its argument prototype would still apply.  */
23919 char IceConnectionNumber ();
23920 int
23921 main ()
23922 {
23923 IceConnectionNumber ();
23924   ;
23925   return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext conftest$ac_exeext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23930   (eval $ac_link) 2>&5
23931   ac_status=$?
23932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933   (exit $ac_status); } &&
23934          { ac_try='test -s conftest$ac_exeext'
23935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936   (eval $ac_try) 2>&5
23937   ac_status=$?
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); }; }; then
23940   ac_cv_lib_ICE_IceConnectionNumber=yes
23941 else
23942   echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23944
23945 ac_cv_lib_ICE_IceConnectionNumber=no
23946 fi
23947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23948 LIBS=$ac_check_lib_save_LIBS
23949 fi
23950 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23951 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23952 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23953   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23954 fi
23955
23956   LDFLAGS=$ac_save_LDFLAGS
23957
23958 fi
23959
23960
23961         if test "$no_x" = "yes"; then
23962           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23963 echo "$as_me: error: X11 not found" >&2;}
23964    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23965         fi
23966
23967                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23968         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
23969         AFMINSTALL=afminstall
23970         COMPILED_X_PROGRAM=0
23971
23972         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23973 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23974
23975 ac_find_includes=
23976 for ac_dir in $SEARCH_INCLUDE /usr/include;
23977   do
23978     if test -f "$ac_dir/Xm/Xm.h"; then
23979       ac_find_includes=$ac_dir
23980       break
23981     fi
23982   done
23983
23984         if test "$ac_find_includes" != "" ; then
23985             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23986 echo "${ECHO_T}found in $ac_find_includes" >&6
23987
23988     if test "x$ac_find_includes" = "x/usr/include"; then
23989     ac_path_to_include=""
23990   else
23991     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23992     result=$?
23993     if test $result = 0; then
23994       ac_path_to_include=""
23995     else
23996       ac_path_to_include=" -I$ac_find_includes"
23997     fi
23998   fi
23999
24000             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
24001         else
24002             cat >conftest.$ac_ext <<_ACEOF
24003 #line $LINENO "configure"
24004 /* confdefs.h.  */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h.  */
24009
24010                     #include <Xm/Xm.h>
24011
24012 int
24013 main ()
24014 {
24015
24016                     int version;
24017                     version = xmUseVersion;
24018
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025   (eval $ac_compile) 2>&5
24026   ac_status=$?
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } &&
24029          { ac_try='test -s conftest.$ac_objext'
24030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031   (eval $ac_try) 2>&5
24032   ac_status=$?
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); }; }; then
24035
24036                     echo "$as_me:$LINENO: result: found in default search path" >&5
24037 echo "${ECHO_T}found in default search path" >&6
24038                     COMPILED_X_PROGRAM=1
24039
24040 else
24041   echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24043
24044
24045                     echo "$as_me:$LINENO: result: no" >&5
24046 echo "${ECHO_T}no" >&6
24047                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24048 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24049    { (exit 1); exit 1; }; }
24050
24051
24052 fi
24053 rm -f conftest.$ac_objext conftest.$ac_ext
24054         fi
24055
24056         if test "$COMPILED_X_PROGRAM" = 0; then
24057             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24058 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24059
24060 ac_find_libraries=
24061 for ac_dir in $SEARCH_LIB /usr/lib;
24062   do
24063     for ac_extension in a so sl dylib; do
24064       if test -f "$ac_dir/libXm.$ac_extension"; then
24065         ac_find_libraries=$ac_dir
24066         break 2
24067       fi
24068     done
24069   done
24070
24071             if test "$ac_find_libraries" != "" ; then
24072                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24073 echo "${ECHO_T}found at $ac_find_libraries" >&6
24074
24075
24076   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24077   result=$?
24078   if test $result = 0; then
24079     ac_path_to_link=""
24080   else
24081     ac_path_to_link=" -L$ac_find_libraries"
24082   fi
24083
24084                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24085             else
24086                                                                 save_CFLAGS=$CFLAGS
24087                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24088
24089                 cat >conftest.$ac_ext <<_ACEOF
24090 #line $LINENO "configure"
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096
24097                         #include <Xm/Xm.h>
24098
24099 int
24100 main ()
24101 {
24102
24103                         int version;
24104                         version = xmUseVersion;
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24112   (eval $ac_compile) 2>&5
24113   ac_status=$?
24114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); } &&
24116          { ac_try='test -s conftest.$ac_objext'
24117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24118   (eval $ac_try) 2>&5
24119   ac_status=$?
24120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); }; }; then
24122
24123                         echo "$as_me:$LINENO: result: found in default search path" >&5
24124 echo "${ECHO_T}found in default search path" >&6
24125                         COMPILED_X_PROGRAM=1
24126
24127 else
24128   echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131
24132                         echo "$as_me:$LINENO: result: no" >&5
24133 echo "${ECHO_T}no" >&6
24134                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24135 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24136    { (exit 1); exit 1; }; }
24137
24138
24139 fi
24140 rm -f conftest.$ac_objext conftest.$ac_ext
24141
24142                 CFLAGS=$save_CFLAGS
24143             fi
24144         fi
24145
24146         xpm_link=
24147         echo "$as_me:$LINENO: checking for Xpm library" >&5
24148 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24149
24150 ac_find_libraries=
24151 for ac_dir in $SEARCH_LIB /usr/lib;
24152   do
24153     for ac_extension in a so sl dylib; do
24154       if test -f "$ac_dir/libXpm.$ac_extension"; then
24155         ac_find_libraries=$ac_dir
24156         break 2
24157       fi
24158     done
24159   done
24160
24161         if test "$ac_find_libraries" != "" ; then
24162
24163   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24164   result=$?
24165   if test $result = 0; then
24166     ac_path_to_link=""
24167   else
24168     ac_path_to_link=" -L$ac_find_libraries"
24169   fi
24170
24171             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24172
24173             xpm_link=" -lXpm"
24174             cat >>confdefs.h <<\_ACEOF
24175 #define wxHAVE_LIB_XPM 1
24176 _ACEOF
24177
24178             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24179 echo "${ECHO_T}found at $ac_find_libraries" >&6
24180         else
24181             save_CFLAGS=$CFLAGS
24182             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24183
24184             cat >conftest.$ac_ext <<_ACEOF
24185 #line $LINENO "configure"
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191
24192                     #include <X11/xpm.h>
24193
24194 int
24195 main ()
24196 {
24197
24198                     int version;
24199                     version = XpmLibraryVersion();
24200
24201   ;
24202   return 0;
24203 }
24204 _ACEOF
24205 rm -f conftest.$ac_objext
24206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24207   (eval $ac_compile) 2>&5
24208   ac_status=$?
24209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210   (exit $ac_status); } &&
24211          { ac_try='test -s conftest.$ac_objext'
24212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24213   (eval $ac_try) 2>&5
24214   ac_status=$?
24215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216   (exit $ac_status); }; }; then
24217
24218                     xpm_link=" -lXpm"
24219                     cat >>confdefs.h <<\_ACEOF
24220 #define wxHAVE_LIB_XPM 1
24221 _ACEOF
24222
24223                     echo "$as_me:$LINENO: result: found in default search path" >&5
24224 echo "${ECHO_T}found in default search path" >&6
24225                     COMPILED_X_PROGRAM=0
24226
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231
24232                     echo "$as_me:$LINENO: result: no" >&5
24233 echo "${ECHO_T}no" >&6
24234                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24235 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24236
24237
24238 fi
24239 rm -f conftest.$ac_objext conftest.$ac_ext
24240
24241             CFLAGS=$save_CFLAGS
24242         fi
24243
24244         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24245 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
24246         libp_link=""
24247         libsm_ice_link=""
24248         libs_found=0
24249         for libp in "" " -lXp"; do
24250             if test "$libs_found" = "0"; then
24251                 for libsm_ice in " -lSM -lICE"; do
24252                     if test "$libs_found" = "0"; then
24253                         save_LIBS="$LIBS"
24254                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
24255                         save_CFLAGS=$CFLAGS
24256                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24257
24258                         cat >conftest.$ac_ext <<_ACEOF
24259 #line $LINENO "configure"
24260 /* confdefs.h.  */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h.  */
24265
24266                                 #include <Xm/Xm.h>
24267                                 #include <Xm/List.h>
24268
24269 int
24270 main ()
24271 {
24272
24273                                 XmString string = NULL;
24274                                 Widget w = NULL;
24275                                 int position = 0;
24276                                 XmListAddItem(w, string, position);
24277
24278   ;
24279   return 0;
24280 }
24281 _ACEOF
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24284   (eval $ac_link) 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } &&
24288          { ac_try='test -s conftest$ac_exeext'
24289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290   (eval $ac_try) 2>&5
24291   ac_status=$?
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); }; }; then
24294
24295                                 libp_link="$libp"
24296                                 libsm_ice_link="$libsm_ice"
24297                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24298 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24299                                 libs_found=1
24300
24301 else
24302   echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24304
24305
24306
24307 fi
24308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24309
24310                         LIBS="$save_LIBS"
24311                         CFLAGS=$save_CFLAGS
24312                     fi
24313                 done
24314             fi
24315         done
24316
24317         if test "$libs_found" = "0"; then
24318             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24319 echo "${ECHO_T}can't find the right libraries" >&6
24320             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24321 echo "$as_me: error: can't link a simple motif program" >&2;}
24322    { (exit 1); exit 1; }; }
24323         fi
24324
24325         save_CFLAGS=$CFLAGS
24326         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24327         echo "$as_me:$LINENO: checking for Motif 2" >&5
24328 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24329         cat >conftest.$ac_ext <<_ACEOF
24330 #line $LINENO "configure"
24331 /* confdefs.h.  */
24332 _ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h.  */
24336
24337                         #include <Xm/Xm.h>
24338
24339 int
24340 main ()
24341 {
24342
24343                         #if XmVersion < 2000
24344                         #error "Not Motif 2"
24345                         #endif
24346
24347   ;
24348   return 0;
24349 }
24350 _ACEOF
24351 rm -f conftest.$ac_objext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24353   (eval $ac_compile) 2>&5
24354   ac_status=$?
24355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); } &&
24357          { ac_try='test -s conftest.$ac_objext'
24358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24359   (eval $ac_try) 2>&5
24360   ac_status=$?
24361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362   (exit $ac_status); }; }; then
24363
24364                         cat >>confdefs.h <<\_ACEOF
24365 #define __WXMOTIF20__ 1
24366 _ACEOF
24367
24368                         echo "$as_me:$LINENO: result: found" >&5
24369 echo "${ECHO_T}found" >&6
24370
24371 else
24372   echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375
24376                         cat >>confdefs.h <<\_ACEOF
24377 #define __WXMOTIF20__ 0
24378 _ACEOF
24379
24380                         echo "$as_me:$LINENO: result: not found" >&5
24381 echo "${ECHO_T}not found" >&6
24382
24383 fi
24384 rm -f conftest.$ac_objext conftest.$ac_ext
24385         CFLAGS=$save_CFLAGS
24386
24387         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
24388         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
24389         TOOLKIT=MOTIF
24390         GUIDIST=MOTIF_DIST
24391         wxHAVE_XEXT_LIB=1
24392     fi
24393
24394     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24395        test "$wxHAVE_XEXT_LIB" = 1; then
24396         save_CFLAGS="$CFLAGS"
24397         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24398
24399         echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24400 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24401         cat >conftest.$ac_ext <<_ACEOF
24402 #line $LINENO "configure"
24403 /* confdefs.h.  */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h.  */
24408
24409                         #include <X11/Xlib.h>
24410                         #include <X11/extensions/shape.h>
24411
24412 int
24413 main ()
24414 {
24415
24416                         int dummy1, dummy2;
24417                         XShapeQueryExtension((Display*)NULL,
24418                                              (int*)NULL, (int*)NULL);
24419
24420   ;
24421   return 0;
24422 }
24423 _ACEOF
24424 rm -f conftest.$ac_objext
24425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24426   (eval $ac_compile) 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } &&
24430          { ac_try='test -s conftest.$ac_objext'
24431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432   (eval $ac_try) 2>&5
24433   ac_status=$?
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); }; }; then
24436
24437                         cat >>confdefs.h <<\_ACEOF
24438 #define HAVE_XSHAPE 1
24439 _ACEOF
24440
24441                         echo "$as_me:$LINENO: result: found" >&5
24442 echo "${ECHO_T}found" >&6
24443
24444 else
24445   echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24447
24448
24449                         echo "$as_me:$LINENO: result: not found" >&5
24450 echo "${ECHO_T}not found" >&6
24451
24452 fi
24453 rm -f conftest.$ac_objext conftest.$ac_ext
24454         CFLAGS="$save_CFLAGS"
24455     fi
24456
24457     if test "$wxUSE_MAC" = 1; then
24458         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
24459
24460         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
24461         TOOLKIT=MAC
24462                 GUIDIST=MACX_DIST
24463                         WXBASEPORT="_carbon"
24464     fi
24465
24466     if test "$wxUSE_COCOA" = 1; then
24467         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24468         TOOLKIT=COCOA
24469         GUIDIST=COCOA_DIST
24470     fi
24471
24472     if test "$wxUSE_PM" = 1; then
24473         TOOLKIT=PM
24474         GUIDIST=GTK_DIST
24475         { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24476 echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
24477         wxUSE_THREADS="no"
24478     fi
24479
24480         if test "$TOOLKIT" = "PM" ; then
24481         TOOLKIT_DIR="os2"
24482     else
24483         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24484     fi
24485
24486         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24487
24488     if test "$wxUSE_UNIVERSAL" = "yes"; then
24489         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24490
24491                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24492         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24493
24494         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24495         if test "$wxUSE_X11" = 1; then
24496             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24497         else
24498             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24499         fi
24500         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24501         WIDGET_SET=univ
24502     else
24503         ALL_OBJECTS="\$(GUIOBJS)"
24504         ALL_SOURCES="\$(ALL_SOURCES)"
24505         ALL_HEADERS="\$(ALL_HEADERS)"
24506     fi
24507
24508     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24509
24510     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24511         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24512     fi
24513
24514     if test "$wxUSE_HTML" = "yes"; then
24515         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24516     fi
24517
24518     if test "$wxUSE_LIBJPEG" = "builtin" ; then
24519         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24520     fi
24521     if test "$wxUSE_LIBTIFF" = "builtin" ; then
24522         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24523     fi
24524     if test "$wxUSE_LIBPNG" = "builtin" ; then
24525         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24526     fi
24527
24528         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24529     DISTDIR="wx\$(TOOLKIT)"
24530 else
24531     USE_GUI=0
24532
24533             TOOLKIT_DIR="base"
24534
24535         if test "$USE_WIN32" = 1 ; then
24536         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24537         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24538
24539                         TOOLKIT="MSW"
24540     else
24541         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24542         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24543     fi
24544
24545     ALL_SOURCES="\$(ALL_SOURCES)"
24546     ALL_HEADERS="\$(ALL_HEADERS)"
24547
24548     PORT_FILES="\${top_srcdir}/src/files.lst"
24549
24550         GUIDIST="BASE_DIST"
24551     DISTDIR="wxBase"
24552 fi
24553
24554
24555
24556
24557 IODBC_C_SRC=""
24558
24559
24560 if test "$TOOLKIT" != "MSW" ; then
24561
24562     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
24563
24564         if test "${ac_cv_header_sql_h+set}" = set; then
24565   echo "$as_me:$LINENO: checking for sql.h" >&5
24566 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24567 if test "${ac_cv_header_sql_h+set}" = set; then
24568   echo $ECHO_N "(cached) $ECHO_C" >&6
24569 fi
24570 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24571 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24572 else
24573   # Is the header compilable?
24574 echo "$as_me:$LINENO: checking sql.h usability" >&5
24575 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24576 cat >conftest.$ac_ext <<_ACEOF
24577 #line $LINENO "configure"
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 $ac_includes_default
24584 #include <sql.h>
24585 _ACEOF
24586 rm -f conftest.$ac_objext
24587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24588   (eval $ac_compile) 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); } &&
24592          { ac_try='test -s conftest.$ac_objext'
24593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24594   (eval $ac_try) 2>&5
24595   ac_status=$?
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); }; }; then
24598   ac_header_compiler=yes
24599 else
24600   echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603 ac_header_compiler=no
24604 fi
24605 rm -f conftest.$ac_objext conftest.$ac_ext
24606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24607 echo "${ECHO_T}$ac_header_compiler" >&6
24608
24609 # Is the header present?
24610 echo "$as_me:$LINENO: checking sql.h presence" >&5
24611 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24612 cat >conftest.$ac_ext <<_ACEOF
24613 #line $LINENO "configure"
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619 #include <sql.h>
24620 _ACEOF
24621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } >/dev/null; then
24629   if test -s conftest.err; then
24630     ac_cpp_err=$ac_c_preproc_warn_flag
24631   else
24632     ac_cpp_err=
24633   fi
24634 else
24635   ac_cpp_err=yes
24636 fi
24637 if test -z "$ac_cpp_err"; then
24638   ac_header_preproc=yes
24639 else
24640   echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24642
24643   ac_header_preproc=no
24644 fi
24645 rm -f conftest.err conftest.$ac_ext
24646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24647 echo "${ECHO_T}$ac_header_preproc" >&6
24648
24649 # So?  What about this header?
24650 case $ac_header_compiler:$ac_header_preproc in
24651   yes:no )
24652     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24653 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24654     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24655 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24656     (
24657       cat <<\_ASBOX
24658 ## ------------------------------------ ##
24659 ## Report this to bug-autoconf@gnu.org. ##
24660 ## ------------------------------------ ##
24661 _ASBOX
24662     ) |
24663       sed "s/^/$as_me: WARNING:     /" >&2
24664     ;;
24665   no:yes )
24666     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24667 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24668     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24669 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24670     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24671 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24672     (
24673       cat <<\_ASBOX
24674 ## ------------------------------------ ##
24675 ## Report this to bug-autoconf@gnu.org. ##
24676 ## ------------------------------------ ##
24677 _ASBOX
24678     ) |
24679       sed "s/^/$as_me: WARNING:     /" >&2
24680     ;;
24681 esac
24682 echo "$as_me:$LINENO: checking for sql.h" >&5
24683 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24684 if test "${ac_cv_header_sql_h+set}" = set; then
24685   echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687   ac_cv_header_sql_h=$ac_header_preproc
24688 fi
24689 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24690 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24691
24692 fi
24693 if test $ac_cv_header_sql_h = yes; then
24694   found_sql_h=1
24695 fi
24696
24697
24698         if test "x$found_sql_h" = "x1" ; then
24699             echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24700 echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24701 if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
24702   echo $ECHO_N "(cached) $ECHO_C" >&6
24703 else
24704   ac_check_lib_save_LIBS=$LIBS
24705 LIBS="-lSQLAllocEnv  $LIBS"
24706 cat >conftest.$ac_ext <<_ACEOF
24707 #line $LINENO "configure"
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713
24714 /* Override any gcc2 internal prototype to avoid an error.  */
24715 #ifdef __cplusplus
24716 extern "C"
24717 #endif
24718 /* We use char because int might match the return type of a gcc2
24719    builtin and then its argument prototype would still apply.  */
24720 char iodbc ();
24721 int
24722 main ()
24723 {
24724 iodbc ();
24725   ;
24726   return 0;
24727 }
24728 _ACEOF
24729 rm -f conftest.$ac_objext conftest$ac_exeext
24730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24731   (eval $ac_link) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); } &&
24735          { ac_try='test -s conftest$ac_exeext'
24736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; }; then
24741   ac_cv_lib_SQLAllocEnv_iodbc=yes
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746 ac_cv_lib_SQLAllocEnv_iodbc=no
24747 fi
24748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24749 LIBS=$ac_check_lib_save_LIBS
24750 fi
24751 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24752 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24753 if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24754   ODBC_LINK=" -liodbc"
24755 else
24756
24757                 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24758 echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24759 if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24760   echo $ECHO_N "(cached) $ECHO_C" >&6
24761 else
24762   ac_check_lib_save_LIBS=$LIBS
24763 LIBS="-lSQLAllocEnv  $LIBS"
24764 cat >conftest.$ac_ext <<_ACEOF
24765 #line $LINENO "configure"
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 unixodbc ();
24779 int
24780 main ()
24781 {
24782 unixodbc ();
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>&5
24790   ac_status=$?
24791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792   (exit $ac_status); } &&
24793          { ac_try='test -s conftest$ac_exeext'
24794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795   (eval $ac_try) 2>&5
24796   ac_status=$?
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); }; }; then
24799   ac_cv_lib_SQLAllocEnv_unixodbc=yes
24800 else
24801   echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804 ac_cv_lib_SQLAllocEnv_unixodbc=no
24805 fi
24806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24807 LIBS=$ac_check_lib_save_LIBS
24808 fi
24809 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24810 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24811 if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24812   ODBC_LINK=" -lunixodbc"
24813 else
24814
24815                     echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24816 echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24817 if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24818   echo $ECHO_N "(cached) $ECHO_C" >&6
24819 else
24820   ac_check_lib_save_LIBS=$LIBS
24821 LIBS="-lSQLAllocEnv  $LIBS"
24822 cat >conftest.$ac_ext <<_ACEOF
24823 #line $LINENO "configure"
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830 /* Override any gcc2 internal prototype to avoid an error.  */
24831 #ifdef __cplusplus
24832 extern "C"
24833 #endif
24834 /* We use char because int might match the return type of a gcc2
24835    builtin and then its argument prototype would still apply.  */
24836 char odbc ();
24837 int
24838 main ()
24839 {
24840 odbc ();
24841   ;
24842   return 0;
24843 }
24844 _ACEOF
24845 rm -f conftest.$ac_objext conftest$ac_exeext
24846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24847   (eval $ac_link) 2>&5
24848   ac_status=$?
24849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850   (exit $ac_status); } &&
24851          { ac_try='test -s conftest$ac_exeext'
24852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); }; }; then
24857   ac_cv_lib_SQLAllocEnv_odbc=yes
24858 else
24859   echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24861
24862 ac_cv_lib_SQLAllocEnv_odbc=no
24863 fi
24864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24865 LIBS=$ac_check_lib_save_LIBS
24866 fi
24867 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24868 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24869 if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24870   ODBC_LINK=" -lodbc"
24871 fi
24872
24873
24874 fi
24875
24876
24877 fi
24878
24879         fi
24880         if test "x$ODBC_LINK" = "x" ; then
24881             if test "$wxUSE_ODBC" = "sys" ; then
24882                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24883 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24884    { (exit 1); exit 1; }; }
24885             else
24886                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24887 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24888                 wxUSE_ODBC=builtin
24889             fi
24890         else
24891                         wxUSE_ODBC=sys
24892         fi
24893     fi
24894     if test "$wxUSE_ODBC" != "no" ; then
24895         cat >>confdefs.h <<\_ACEOF
24896 #define wxUSE_ODBC 1
24897 _ACEOF
24898
24899         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24900
24901                 WXODBCFLAG="-D_IODBC_"
24902     fi
24903 fi
24904
24905 if test "$wxUSE_REGEX" = "builtin" ; then
24906     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
24907 fi
24908 if test "$wxUSE_ZLIB" = "builtin" ; then
24909     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
24910 fi
24911
24912
24913 USE_OPENGL=0
24914 if test "$wxUSE_OPENGL" = "yes"; then
24915     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
24916         OPENGL_LIBS="-framework OpenGL -framework AGL"
24917     elif test "$wxUSE_MSW" = 1; then
24918         OPENGL_LIBS="-lopengl32 -lglu32"
24919     else
24920
24921
24922 ac_find_includes=
24923 for ac_dir in $SEARCH_INCLUDE /usr/include;
24924   do
24925     if test -f "$ac_dir/GL/gl.h"; then
24926       ac_find_includes=$ac_dir
24927       break
24928     fi
24929   done
24930
24931         if test "$ac_find_includes" != "" ; then
24932             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24933 echo "${ECHO_T}found in $ac_find_includes" >&6
24934
24935     if test "x$ac_find_includes" = "x/usr/include"; then
24936     ac_path_to_include=""
24937   else
24938     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24939     result=$?
24940     if test $result = 0; then
24941       ac_path_to_include=""
24942     else
24943       ac_path_to_include=" -I$ac_find_includes"
24944     fi
24945   fi
24946
24947             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24948         fi
24949
24950         if test "${ac_cv_header_GL_gl_h+set}" = set; then
24951   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24952 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24953 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24954   echo $ECHO_N "(cached) $ECHO_C" >&6
24955 fi
24956 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24957 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24958 else
24959   # Is the header compilable?
24960 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24961 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24962 cat >conftest.$ac_ext <<_ACEOF
24963 #line $LINENO "configure"
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969 $ac_includes_default
24970 #include <GL/gl.h>
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24974   (eval $ac_compile) 2>&5
24975   ac_status=$?
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); } &&
24978          { ac_try='test -s conftest.$ac_objext'
24979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980   (eval $ac_try) 2>&5
24981   ac_status=$?
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); }; }; then
24984   ac_header_compiler=yes
24985 else
24986   echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989 ac_header_compiler=no
24990 fi
24991 rm -f conftest.$ac_objext conftest.$ac_ext
24992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24993 echo "${ECHO_T}$ac_header_compiler" >&6
24994
24995 # Is the header present?
24996 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24997 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24998 cat >conftest.$ac_ext <<_ACEOF
24999 #line $LINENO "configure"
25000 /* confdefs.h.  */
25001 _ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h.  */
25005 #include <GL/gl.h>
25006 _ACEOF
25007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25009   ac_status=$?
25010   grep -v '^ *+' conftest.er1 >conftest.err
25011   rm -f conftest.er1
25012   cat conftest.err >&5
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); } >/dev/null; then
25015   if test -s conftest.err; then
25016     ac_cpp_err=$ac_c_preproc_warn_flag
25017   else
25018     ac_cpp_err=
25019   fi
25020 else
25021   ac_cpp_err=yes
25022 fi
25023 if test -z "$ac_cpp_err"; then
25024   ac_header_preproc=yes
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029   ac_header_preproc=no
25030 fi
25031 rm -f conftest.err conftest.$ac_ext
25032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25033 echo "${ECHO_T}$ac_header_preproc" >&6
25034
25035 # So?  What about this header?
25036 case $ac_header_compiler:$ac_header_preproc in
25037   yes:no )
25038     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25039 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25040     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25041 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25042     (
25043       cat <<\_ASBOX
25044 ## ------------------------------------ ##
25045 ## Report this to bug-autoconf@gnu.org. ##
25046 ## ------------------------------------ ##
25047 _ASBOX
25048     ) |
25049       sed "s/^/$as_me: WARNING:     /" >&2
25050     ;;
25051   no:yes )
25052     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25053 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25054     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25055 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25056     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25057 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25058     (
25059       cat <<\_ASBOX
25060 ## ------------------------------------ ##
25061 ## Report this to bug-autoconf@gnu.org. ##
25062 ## ------------------------------------ ##
25063 _ASBOX
25064     ) |
25065       sed "s/^/$as_me: WARNING:     /" >&2
25066     ;;
25067 esac
25068 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25069 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25070 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25071   echo $ECHO_N "(cached) $ECHO_C" >&6
25072 else
25073   ac_cv_header_GL_gl_h=$ac_header_preproc
25074 fi
25075 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25076 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25077
25078 fi
25079 if test $ac_cv_header_GL_gl_h = yes; then
25080
25081                 found_gl=0
25082
25083                 echo "$as_me:$LINENO: checking for -lGL" >&5
25084 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25085
25086 ac_find_libraries=
25087 for ac_dir in $SEARCH_LIB /usr/lib;
25088   do
25089     for ac_extension in a so sl dylib; do
25090       if test -f "$ac_dir/libGL.$ac_extension"; then
25091         ac_find_libraries=$ac_dir
25092         break 2
25093       fi
25094     done
25095   done
25096
25097                 if test "$ac_find_libraries" != "" ; then
25098
25099   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25100   result=$?
25101   if test $result = 0; then
25102     ac_path_to_link=""
25103   else
25104     ac_path_to_link=" -L$ac_find_libraries"
25105   fi
25106
25107                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
25108                         LDFLAGS_GL="$ac_path_to_link"
25109                     fi
25110
25111
25112 ac_find_libraries=
25113 for ac_dir in $SEARCH_LIB /usr/lib;
25114   do
25115     for ac_extension in a so sl dylib; do
25116       if test -f "$ac_dir/libGLU.$ac_extension"; then
25117         ac_find_libraries=$ac_dir
25118         break 2
25119       fi
25120     done
25121   done
25122
25123                     if test "$ac_find_libraries" != "" ; then
25124
25125   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25126   result=$?
25127   if test $result = 0; then
25128     ac_path_to_link=""
25129   else
25130     ac_path_to_link=" -L$ac_find_libraries"
25131   fi
25132
25133                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
25134                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
25135                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25136                         fi
25137
25138                         found_gl=1
25139                         OPENGL_LIBS="-lGL -lGLU"
25140                         echo "$as_me:$LINENO: result: yes" >&5
25141 echo "${ECHO_T}yes" >&6
25142                     fi
25143                 fi
25144
25145                 if test "$found_gl" != 1; then
25146                     echo "$as_me:$LINENO: result: no" >&5
25147 echo "${ECHO_T}no" >&6
25148                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25149 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25150
25151 ac_find_libraries=
25152 for ac_dir in $SEARCH_LIB /usr/lib;
25153   do
25154     for ac_extension in a so sl dylib; do
25155       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25156         ac_find_libraries=$ac_dir
25157         break 2
25158       fi
25159     done
25160   done
25161
25162                     if test "$ac_find_libraries" != "" ; then
25163
25164   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25165   result=$?
25166   if test $result = 0; then
25167     ac_path_to_link=""
25168   else
25169     ac_path_to_link=" -L$ac_find_libraries"
25170   fi
25171
25172                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25173                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
25174                         echo "$as_me:$LINENO: result: yes" >&5
25175 echo "${ECHO_T}yes" >&6
25176                     else
25177                         echo "$as_me:$LINENO: result: no" >&5
25178 echo "${ECHO_T}no" >&6
25179                     fi
25180                 fi
25181
25182 fi
25183
25184
25185
25186         if test "x$OPENGL_LIBS" = "x"; then
25187                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25188 echo "$as_me: error: OpenGL libraries not available" >&2;}
25189    { (exit 1); exit 1; }; }
25190         fi
25191     fi
25192
25193     if test "$wxUSE_OPENGL" = "yes"; then
25194         USE_OPENGL=1
25195         cat >>confdefs.h <<\_ACEOF
25196 #define wxUSE_OPENGL 1
25197 _ACEOF
25198
25199         cat >>confdefs.h <<\_ACEOF
25200 #define wxUSE_GLCANVAS 1
25201 _ACEOF
25202
25203         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
25204     fi
25205 fi
25206
25207 if test -z "$TOOLKIT_VPATH" ; then
25208     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
25209 fi
25210
25211 if test -n "$TOOLKIT" ; then
25212     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25213 fi
25214
25215 UNICODE=0
25216 lib_unicode_suffix=
25217 if test "$wxUSE_UNICODE" = "yes"; then
25218     lib_unicode_suffix=u
25219     UNICODE=1
25220 fi
25221
25222 lib_debug_suffix=
25223 DEBUG_FLAG=0
25224 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25225     lib_debug_suffix=d
25226     DEBUG_FLAG=1
25227 fi
25228
25229 DEBUG_INFO=0
25230 if test "$wxUSE_DEBUG_INFO" = "yes"; then
25231     DEBUG_INFO=1
25232 fi
25233
25234 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
25235
25236 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25237 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
25238
25239 if test "$cross_compiling" = "yes"; then
25240     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25241     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
25242     HOST_SUFFIX="-${host_alias}"
25243 fi
25244
25245 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25246 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
25247 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25248 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
25249
25250 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25251 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25252
25253 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25254 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25255 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25256 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25257
25258 case "${host}" in
25259     *-*-cygwin* | *-*-mingw32* )
25260         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25261         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25262         ;;
25263
25264     *-*-darwin* )
25265
25266         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25267         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25268
25269         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25270         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25271         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25272         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25273
25274                         if test "$wxUSE_MAC" = 1; then
25275                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25276             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
25277         fi
25278         ;;
25279 esac
25280
25281 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25282 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25283
25284 WXCONFIG_LIBS="-l${WX_LIBRARY}"
25285 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25286
25287 if test "$wxUSE_OPENGL" = "yes"; then
25288     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25289     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25290 fi
25291
25292
25293
25294 if test "$wxUSE_SHARED" = "yes"; then
25295     case "${host}" in
25296       *-pc-os2_emx | *-pc-os2-emx | \
25297       *-pc-msdosdjgpp )
25298                 wxUSE_SHARED=no
25299         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25300 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
25301       ;;
25302     esac
25303 fi
25304
25305 SHARED=0
25306 if test "$wxUSE_SHARED" = "yes"; then
25307     SHARED=1
25308
25309
25310   found_versioning=no
25311
25312
25313     if test $found_versioning = no ; then
25314       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25315 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25316 if test "${wx_cv_version_script+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319
25320         echo "VER_1 { *; };" >conftest.sym
25321         echo "int main() { return 0; }" >conftest.cpp
25322
25323         if { ac_try='
25324                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
25325                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327   (eval $ac_try) 2>&5
25328   ac_status=$?
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); }; } ; then
25331           if test -s conftest.stderr ; then
25332               wx_cv_version_script=no
25333           else
25334               wx_cv_version_script=yes
25335           fi
25336         else
25337           wx_cv_version_script=no
25338         fi
25339         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
25340
25341 fi
25342 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25343 echo "${ECHO_T}$wx_cv_version_script" >&6
25344       if test $wx_cv_version_script = yes ; then
25345         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
25346       fi
25347   fi
25348
25349
25350     case "${host}" in
25351       *-*-linux* | *-*-gnu* )
25352         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25353         ;;
25354
25355       *-*-solaris2* )
25356         if test "$GCC" = yes ; then
25357                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
25358
25359                                     saveLdflags="$LDFLAGS"
25360             LDFLAGS="$saveLdflags -Wl,-rpath,/"
25361             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25362 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25363             cat >conftest.$ac_ext <<_ACEOF
25364 #line $LINENO "configure"
25365 /* confdefs.h.  */
25366 _ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h.  */
25370
25371 int
25372 main ()
25373 {
25374
25375   ;
25376   return 0;
25377 }
25378 _ACEOF
25379 rm -f conftest.$ac_objext conftest$ac_exeext
25380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25381   (eval $ac_link) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } &&
25385          { ac_try='test -s conftest$ac_exeext'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; }; then
25391
25392                     echo "$as_me:$LINENO: result: yes" >&5
25393 echo "${ECHO_T}yes" >&6
25394                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25395
25396 else
25397   echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400
25401                     echo "$as_me:$LINENO: result: no" >&5
25402 echo "${ECHO_T}no" >&6
25403                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25404 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
25405                     LDFLAGS="$saveLdflags -Wl,-R,/"
25406                     cat >conftest.$ac_ext <<_ACEOF
25407 #line $LINENO "configure"
25408 /* confdefs.h.  */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h.  */
25413
25414 int
25415 main ()
25416 {
25417
25418   ;
25419   return 0;
25420 }
25421 _ACEOF
25422 rm -f conftest.$ac_objext conftest$ac_exeext
25423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25424   (eval $ac_link) 2>&5
25425   ac_status=$?
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); } &&
25428          { ac_try='test -s conftest$ac_exeext'
25429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430   (eval $ac_try) 2>&5
25431   ac_status=$?
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); }; }; then
25434
25435                              echo "$as_me:$LINENO: result: yes" >&5
25436 echo "${ECHO_T}yes" >&6
25437                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25438 else
25439   echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25441
25442
25443                             echo "$as_me:$LINENO: result: no" >&5
25444 echo "${ECHO_T}no" >&6
25445
25446 fi
25447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25448
25449 fi
25450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25451             LDFLAGS="$saveLdflags"
25452         else
25453             SHARED_LD="${CXX} -G -o"
25454             PIC_FLAG="-KPIC"
25455             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
25456         fi
25457       ;;
25458
25459       powerpc-*-darwin* )
25460         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25461         cat <<EOF >change-install-names
25462 #!/bin/sh
25463 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25464 inst_cmd="install_name_tool "
25465 for i in \${libnames} ; do
25466     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25467 done
25468 \${inst_cmd} \${3}
25469 EOF
25470         chmod +x change-install-names
25471       ;;
25472
25473     esac
25474
25475         if test "x$WX_TARGET_LIBRARY" = "x"; then
25476         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25477         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25478     fi
25479
25480         WX_TARGET_LIBRARY_TYPE="so"
25481     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
25482 fi
25483
25484 if test "$wxUSE_SHARED" = "no"; then
25485
25486         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25487                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25488     fi
25489
25490     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
25491         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25492     fi
25493
25494     if test "$wxUSE_OPENGL" = "yes"; then
25495         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25496         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25497     else
25498         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25499     fi
25500
25501     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25502     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25503
25504     WX_TARGET_LIBRARY_TYPE="a"
25505     INSTALL_LIBRARY='$(INSTALL_DATA)'
25506
25507             STATIC_FLAG="yes"
25508 else
25509     STATIC_FLAG="no"
25510 fi
25511
25512 MACRESCOMP="@#"
25513 MACSETFILE="@#"
25514 MACRESWXCONFIG="#"
25515 if test "$wxUSE_MAC" = 1; then
25516         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
25517     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25518     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25519     # Extract the first word of "Rez", so it can be a program name with args.
25520 set dummy Rez; ac_word=$2
25521 echo "$as_me:$LINENO: checking for $ac_word" >&5
25522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25523 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25524   echo $ECHO_N "(cached) $ECHO_C" >&6
25525 else
25526   if test -n "$RESCOMP"; then
25527   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25528 else
25529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25530 for as_dir in $PATH
25531 do
25532   IFS=$as_save_IFS
25533   test -z "$as_dir" && as_dir=.
25534   for ac_exec_ext in '' $ac_executable_extensions; do
25535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25536     ac_cv_prog_RESCOMP="Rez"
25537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25538     break 2
25539   fi
25540 done
25541 done
25542
25543   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25544 fi
25545 fi
25546 RESCOMP=$ac_cv_prog_RESCOMP
25547 if test -n "$RESCOMP"; then
25548   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25549 echo "${ECHO_T}$RESCOMP" >&6
25550 else
25551   echo "$as_me:$LINENO: result: no" >&5
25552 echo "${ECHO_T}no" >&6
25553 fi
25554
25555     # Extract the first word of "DeRez", so it can be a program name with args.
25556 set dummy DeRez; ac_word=$2
25557 echo "$as_me:$LINENO: checking for $ac_word" >&5
25558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25559 if test "${ac_cv_prog_DEREZ+set}" = set; then
25560   echo $ECHO_N "(cached) $ECHO_C" >&6
25561 else
25562   if test -n "$DEREZ"; then
25563   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25564 else
25565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25566 for as_dir in $PATH
25567 do
25568   IFS=$as_save_IFS
25569   test -z "$as_dir" && as_dir=.
25570   for ac_exec_ext in '' $ac_executable_extensions; do
25571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25572     ac_cv_prog_DEREZ="DeRez"
25573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25574     break 2
25575   fi
25576 done
25577 done
25578
25579   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25580 fi
25581 fi
25582 DEREZ=$ac_cv_prog_DEREZ
25583 if test -n "$DEREZ"; then
25584   echo "$as_me:$LINENO: result: $DEREZ" >&5
25585 echo "${ECHO_T}$DEREZ" >&6
25586 else
25587   echo "$as_me:$LINENO: result: no" >&5
25588 echo "${ECHO_T}no" >&6
25589 fi
25590
25591     # Extract the first word of "SetFile", so it can be a program name with args.
25592 set dummy SetFile; ac_word=$2
25593 echo "$as_me:$LINENO: checking for $ac_word" >&5
25594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25595 if test "${ac_cv_prog_SETFILE+set}" = set; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 else
25598   if test -n "$SETFILE"; then
25599   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25600 else
25601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25603 do
25604   IFS=$as_save_IFS
25605   test -z "$as_dir" && as_dir=.
25606   for ac_exec_ext in '' $ac_executable_extensions; do
25607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25608     ac_cv_prog_SETFILE="SetFile"
25609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25610     break 2
25611   fi
25612 done
25613 done
25614
25615   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25616 fi
25617 fi
25618 SETFILE=$ac_cv_prog_SETFILE
25619 if test -n "$SETFILE"; then
25620   echo "$as_me:$LINENO: result: $SETFILE" >&5
25621 echo "${ECHO_T}$SETFILE" >&6
25622 else
25623   echo "$as_me:$LINENO: result: no" >&5
25624 echo "${ECHO_T}no" >&6
25625 fi
25626
25627     MACOSX_BUNDLE="bundle"
25628             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25629     MACSETFILE="\$(SETFILE)"
25630     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25631 elif test "$wxUSE_COCOA" = 1; then
25632     # Extract the first word of "Rez", so it can be a program name with args.
25633 set dummy Rez; ac_word=$2
25634 echo "$as_me:$LINENO: checking for $ac_word" >&5
25635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25636 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25637   echo $ECHO_N "(cached) $ECHO_C" >&6
25638 else
25639   if test -n "$RESCOMP"; then
25640   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25641 else
25642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25643 for as_dir in $PATH
25644 do
25645   IFS=$as_save_IFS
25646   test -z "$as_dir" && as_dir=.
25647   for ac_exec_ext in '' $ac_executable_extensions; do
25648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25649     ac_cv_prog_RESCOMP="Rez"
25650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25651     break 2
25652   fi
25653 done
25654 done
25655
25656   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25657 fi
25658 fi
25659 RESCOMP=$ac_cv_prog_RESCOMP
25660 if test -n "$RESCOMP"; then
25661   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25662 echo "${ECHO_T}$RESCOMP" >&6
25663 else
25664   echo "$as_me:$LINENO: result: no" >&5
25665 echo "${ECHO_T}no" >&6
25666 fi
25667
25668     # Extract the first word of "DeRez", so it can be a program name with args.
25669 set dummy DeRez; ac_word=$2
25670 echo "$as_me:$LINENO: checking for $ac_word" >&5
25671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25672 if test "${ac_cv_prog_DEREZ+set}" = set; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   if test -n "$DEREZ"; then
25676   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25677 else
25678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25679 for as_dir in $PATH
25680 do
25681   IFS=$as_save_IFS
25682   test -z "$as_dir" && as_dir=.
25683   for ac_exec_ext in '' $ac_executable_extensions; do
25684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25685     ac_cv_prog_DEREZ="DeRez"
25686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25687     break 2
25688   fi
25689 done
25690 done
25691
25692   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25693 fi
25694 fi
25695 DEREZ=$ac_cv_prog_DEREZ
25696 if test -n "$DEREZ"; then
25697   echo "$as_me:$LINENO: result: $DEREZ" >&5
25698 echo "${ECHO_T}$DEREZ" >&6
25699 else
25700   echo "$as_me:$LINENO: result: no" >&5
25701 echo "${ECHO_T}no" >&6
25702 fi
25703
25704     # Extract the first word of "SetFile", so it can be a program name with args.
25705 set dummy SetFile; ac_word=$2
25706 echo "$as_me:$LINENO: checking for $ac_word" >&5
25707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25708 if test "${ac_cv_prog_SETFILE+set}" = set; then
25709   echo $ECHO_N "(cached) $ECHO_C" >&6
25710 else
25711   if test -n "$SETFILE"; then
25712   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25713 else
25714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25715 for as_dir in $PATH
25716 do
25717   IFS=$as_save_IFS
25718   test -z "$as_dir" && as_dir=.
25719   for ac_exec_ext in '' $ac_executable_extensions; do
25720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25721     ac_cv_prog_SETFILE="SetFile"
25722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25723     break 2
25724   fi
25725 done
25726 done
25727
25728   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25729 fi
25730 fi
25731 SETFILE=$ac_cv_prog_SETFILE
25732 if test -n "$SETFILE"; then
25733   echo "$as_me:$LINENO: result: $SETFILE" >&5
25734 echo "${ECHO_T}$SETFILE" >&6
25735 else
25736   echo "$as_me:$LINENO: result: no" >&5
25737 echo "${ECHO_T}no" >&6
25738 fi
25739
25740     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25741     MACSETFILE="\$(SETFILE)"
25742     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25743 else
25744     if test "$wxUSE_PM" = 1; then
25745         MACRESCOMP="emxbind -ep"
25746     fi
25747 fi
25748
25749
25750 echo "$as_me:$LINENO: checking for mode_t" >&5
25751 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25752 if test "${ac_cv_type_mode_t+set}" = set; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755   cat >conftest.$ac_ext <<_ACEOF
25756 #line $LINENO "configure"
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762 $ac_includes_default
25763 int
25764 main ()
25765 {
25766 if ((mode_t *) 0)
25767   return 0;
25768 if (sizeof (mode_t))
25769   return 0;
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 rm -f conftest.$ac_objext
25775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25776   (eval $ac_compile) 2>&5
25777   ac_status=$?
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } &&
25780          { ac_try='test -s conftest.$ac_objext'
25781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782   (eval $ac_try) 2>&5
25783   ac_status=$?
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); }; }; then
25786   ac_cv_type_mode_t=yes
25787 else
25788   echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25790
25791 ac_cv_type_mode_t=no
25792 fi
25793 rm -f conftest.$ac_objext conftest.$ac_ext
25794 fi
25795 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25796 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25797 if test $ac_cv_type_mode_t = yes; then
25798   :
25799 else
25800
25801 cat >>confdefs.h <<_ACEOF
25802 #define mode_t int
25803 _ACEOF
25804
25805 fi
25806
25807 echo "$as_me:$LINENO: checking for off_t" >&5
25808 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25809 if test "${ac_cv_type_off_t+set}" = set; then
25810   echo $ECHO_N "(cached) $ECHO_C" >&6
25811 else
25812   cat >conftest.$ac_ext <<_ACEOF
25813 #line $LINENO "configure"
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819 $ac_includes_default
25820 int
25821 main ()
25822 {
25823 if ((off_t *) 0)
25824   return 0;
25825 if (sizeof (off_t))
25826   return 0;
25827   ;
25828   return 0;
25829 }
25830 _ACEOF
25831 rm -f conftest.$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833   (eval $ac_compile) 2>&5
25834   ac_status=$?
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); } &&
25837          { ac_try='test -s conftest.$ac_objext'
25838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839   (eval $ac_try) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; }; then
25843   ac_cv_type_off_t=yes
25844 else
25845   echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25847
25848 ac_cv_type_off_t=no
25849 fi
25850 rm -f conftest.$ac_objext conftest.$ac_ext
25851 fi
25852 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25853 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25854 if test $ac_cv_type_off_t = yes; then
25855   :
25856 else
25857
25858 cat >>confdefs.h <<_ACEOF
25859 #define off_t long
25860 _ACEOF
25861
25862 fi
25863
25864 echo "$as_me:$LINENO: checking for pid_t" >&5
25865 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25866 if test "${ac_cv_type_pid_t+set}" = set; then
25867   echo $ECHO_N "(cached) $ECHO_C" >&6
25868 else
25869   cat >conftest.$ac_ext <<_ACEOF
25870 #line $LINENO "configure"
25871 /* confdefs.h.  */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h.  */
25876 $ac_includes_default
25877 int
25878 main ()
25879 {
25880 if ((pid_t *) 0)
25881   return 0;
25882 if (sizeof (pid_t))
25883   return 0;
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext
25889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25890   (eval $ac_compile) 2>&5
25891   ac_status=$?
25892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893   (exit $ac_status); } &&
25894          { ac_try='test -s conftest.$ac_objext'
25895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896   (eval $ac_try) 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; }; then
25900   ac_cv_type_pid_t=yes
25901 else
25902   echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25904
25905 ac_cv_type_pid_t=no
25906 fi
25907 rm -f conftest.$ac_objext conftest.$ac_ext
25908 fi
25909 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25910 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25911 if test $ac_cv_type_pid_t = yes; then
25912   :
25913 else
25914
25915 cat >>confdefs.h <<_ACEOF
25916 #define pid_t int
25917 _ACEOF
25918
25919 fi
25920
25921 echo "$as_me:$LINENO: checking for size_t" >&5
25922 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25923 if test "${ac_cv_type_size_t+set}" = set; then
25924   echo $ECHO_N "(cached) $ECHO_C" >&6
25925 else
25926   cat >conftest.$ac_ext <<_ACEOF
25927 #line $LINENO "configure"
25928 /* confdefs.h.  */
25929 _ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h.  */
25933 $ac_includes_default
25934 int
25935 main ()
25936 {
25937 if ((size_t *) 0)
25938   return 0;
25939 if (sizeof (size_t))
25940   return 0;
25941   ;
25942   return 0;
25943 }
25944 _ACEOF
25945 rm -f conftest.$ac_objext
25946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25947   (eval $ac_compile) 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } &&
25951          { ac_try='test -s conftest.$ac_objext'
25952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25953   (eval $ac_try) 2>&5
25954   ac_status=$?
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); }; }; then
25957   ac_cv_type_size_t=yes
25958 else
25959   echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25961
25962 ac_cv_type_size_t=no
25963 fi
25964 rm -f conftest.$ac_objext conftest.$ac_ext
25965 fi
25966 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25967 echo "${ECHO_T}$ac_cv_type_size_t" >&6
25968 if test $ac_cv_type_size_t = yes; then
25969   :
25970 else
25971
25972 cat >>confdefs.h <<_ACEOF
25973 #define size_t unsigned
25974 _ACEOF
25975
25976 fi
25977
25978 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25979 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25980 if test "${ac_cv_type_uid_t+set}" = set; then
25981   echo $ECHO_N "(cached) $ECHO_C" >&6
25982 else
25983   cat >conftest.$ac_ext <<_ACEOF
25984 #line $LINENO "configure"
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990 #include <sys/types.h>
25991
25992 _ACEOF
25993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25994   $EGREP "uid_t" >/dev/null 2>&1; then
25995   ac_cv_type_uid_t=yes
25996 else
25997   ac_cv_type_uid_t=no
25998 fi
25999 rm -f conftest*
26000
26001 fi
26002 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26003 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26004 if test $ac_cv_type_uid_t = no; then
26005
26006 cat >>confdefs.h <<\_ACEOF
26007 #define uid_t int
26008 _ACEOF
26009
26010
26011 cat >>confdefs.h <<\_ACEOF
26012 #define gid_t int
26013 _ACEOF
26014
26015 fi
26016
26017
26018
26019
26020 ac_ext=cc
26021 ac_cpp='$CXXCPP $CPPFLAGS'
26022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26025
26026 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26027 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26028 if test "${wx_cv_size_t_is_uint+set}" = set; then
26029   echo $ECHO_N "(cached) $ECHO_C" >&6
26030 else
26031
26032                             cat >conftest.$ac_ext <<_ACEOF
26033 #line $LINENO "configure"
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 #include <stddef.h>
26040 int
26041 main ()
26042 {
26043
26044             return 0; }
26045
26046             struct Foo { void foo(size_t); void foo(unsigned int); };
26047
26048             int bar() {
26049
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 rm -f conftest.$ac_objext
26055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26056   (eval $ac_compile) 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } &&
26060          { ac_try='test -s conftest.$ac_objext'
26061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062   (eval $ac_try) 2>&5
26063   ac_status=$?
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); }; }; then
26066   wx_cv_size_t_is_uint=no
26067 else
26068   echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26070
26071 wx_cv_size_t_is_uint=yes
26072
26073 fi
26074 rm -f conftest.$ac_objext conftest.$ac_ext
26075
26076
26077 fi
26078 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26079 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
26080
26081 if test "$wx_cv_size_t_is_uint" = "yes"; then
26082     cat >>confdefs.h <<\_ACEOF
26083 #define wxSIZE_T_IS_UINT 1
26084 _ACEOF
26085
26086 else
26087     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26088 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26089 if test "${wx_cv_size_t_is_ulong+set}" = set; then
26090   echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26092   cat >conftest.$ac_ext <<_ACEOF
26093 #line $LINENO "configure"
26094 /* confdefs.h.  */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h.  */
26099 #include <stddef.h>
26100 int
26101 main ()
26102 {
26103
26104                 return 0; }
26105
26106                 struct Foo { void foo(size_t); void foo(unsigned long); };
26107
26108                 int bar() {
26109
26110   ;
26111   return 0;
26112 }
26113 _ACEOF
26114 rm -f conftest.$ac_objext
26115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26116   (eval $ac_compile) 2>&5
26117   ac_status=$?
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); } &&
26120          { ac_try='test -s conftest.$ac_objext'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; }; then
26126   wx_cv_size_t_is_ulong=no
26127 else
26128   echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26130
26131 wx_cv_size_t_is_ulong=yes
26132
26133 fi
26134 rm -f conftest.$ac_objext conftest.$ac_ext
26135
26136 fi
26137 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26138 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
26139
26140     if test "$wx_cv_size_t_is_ulong" = "yes"; then
26141         cat >>confdefs.h <<\_ACEOF
26142 #define wxSIZE_T_IS_ULONG 1
26143 _ACEOF
26144
26145     fi
26146 fi
26147
26148 ac_ext=c
26149 ac_cpp='$CPP $CPPFLAGS'
26150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153
26154
26155
26156 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26157 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26158 if test "${wx_cv_struct_pw_gecos+set}" = set; then
26159   echo $ECHO_N "(cached) $ECHO_C" >&6
26160 else
26161
26162         cat >conftest.$ac_ext <<_ACEOF
26163 #line $LINENO "configure"
26164 /* confdefs.h.  */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h.  */
26169 #include <pwd.h>
26170 int
26171 main ()
26172 {
26173
26174                 char *p;
26175                 struct passwd *pw;
26176                 p = pw->pw_gecos;
26177
26178   ;
26179   return 0;
26180 }
26181 _ACEOF
26182 rm -f conftest.$ac_objext
26183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26184   (eval $ac_compile) 2>&5
26185   ac_status=$?
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); } &&
26188          { ac_try='test -s conftest.$ac_objext'
26189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190   (eval $ac_try) 2>&5
26191   ac_status=$?
26192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193   (exit $ac_status); }; }; then
26194
26195                 wx_cv_struct_pw_gecos=yes
26196
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201
26202                 wx_cv_struct_pw_gecos=no
26203
26204
26205 fi
26206 rm -f conftest.$ac_objext conftest.$ac_ext
26207
26208
26209 fi
26210 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26211 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
26212
26213 if test "$wx_cv_struct_pw_gecos" = "yes"; then
26214     cat >>confdefs.h <<\_ACEOF
26215 #define HAVE_PW_GECOS 1
26216 _ACEOF
26217
26218 fi
26219
26220
26221 if test "$wx_cv_sizeof_wchar_t" != "0"; then
26222     cat >>confdefs.h <<\_ACEOF
26223 #define wxUSE_WCHAR_T 1
26224 _ACEOF
26225
26226
26227         WCSLEN_FOUND=0
26228     WCHAR_LINK=
26229
26230 for ac_func in wcslen
26231 do
26232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26233 echo "$as_me:$LINENO: checking for $ac_func" >&5
26234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26235 if eval "test \"\${$as_ac_var+set}\" = set"; then
26236   echo $ECHO_N "(cached) $ECHO_C" >&6
26237 else
26238   cat >conftest.$ac_ext <<_ACEOF
26239 #line $LINENO "configure"
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245 /* System header to define __stub macros and hopefully few prototypes,
26246     which can conflict with char $ac_func (); below.
26247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26248     <limits.h> exists even on freestanding compilers.  */
26249 #ifdef __STDC__
26250 # include <limits.h>
26251 #else
26252 # include <assert.h>
26253 #endif
26254 /* Override any gcc2 internal prototype to avoid an error.  */
26255 #ifdef __cplusplus
26256 extern "C"
26257 {
26258 #endif
26259 /* We use char because int might match the return type of a gcc2
26260    builtin and then its argument prototype would still apply.  */
26261 char $ac_func ();
26262 /* The GNU C library defines this for functions which it implements
26263     to always fail with ENOSYS.  Some functions are actually named
26264     something starting with __ and the normal name is an alias.  */
26265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26266 choke me
26267 #else
26268 char (*f) () = $ac_func;
26269 #endif
26270 #ifdef __cplusplus
26271 }
26272 #endif
26273
26274 int
26275 main ()
26276 {
26277 return f != $ac_func;
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 rm -f conftest.$ac_objext conftest$ac_exeext
26283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26284   (eval $ac_link) 2>&5
26285   ac_status=$?
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); } &&
26288          { ac_try='test -s conftest$ac_exeext'
26289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26290   (eval $ac_try) 2>&5
26291   ac_status=$?
26292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); }; }; then
26294   eval "$as_ac_var=yes"
26295 else
26296   echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26298
26299 eval "$as_ac_var=no"
26300 fi
26301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26302 fi
26303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26305 if test `eval echo '${'$as_ac_var'}'` = yes; then
26306   cat >>confdefs.h <<_ACEOF
26307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26308 _ACEOF
26309  WCSLEN_FOUND=1
26310 fi
26311 done
26312
26313
26314     if test "$WCSLEN_FOUND" = 0; then
26315         if test "$TOOLKIT" = "MSW"; then
26316             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26317 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26318 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26319   echo $ECHO_N "(cached) $ECHO_C" >&6
26320 else
26321   ac_check_lib_save_LIBS=$LIBS
26322 LIBS="-lmsvcrt  $LIBS"
26323 cat >conftest.$ac_ext <<_ACEOF
26324 #line $LINENO "configure"
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330
26331 /* Override any gcc2 internal prototype to avoid an error.  */
26332 #ifdef __cplusplus
26333 extern "C"
26334 #endif
26335 /* We use char because int might match the return type of a gcc2
26336    builtin and then its argument prototype would still apply.  */
26337 char wcslen ();
26338 int
26339 main ()
26340 {
26341 wcslen ();
26342   ;
26343   return 0;
26344 }
26345 _ACEOF
26346 rm -f conftest.$ac_objext conftest$ac_exeext
26347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26348   (eval $ac_link) 2>&5
26349   ac_status=$?
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); } &&
26352          { ac_try='test -s conftest$ac_exeext'
26353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354   (eval $ac_try) 2>&5
26355   ac_status=$?
26356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); }; }; then
26358   ac_cv_lib_msvcrt_wcslen=yes
26359 else
26360   echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 ac_cv_lib_msvcrt_wcslen=no
26364 fi
26365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26366 LIBS=$ac_check_lib_save_LIBS
26367 fi
26368 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26369 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26370 if test $ac_cv_lib_msvcrt_wcslen = yes; then
26371   WCHAR_OK=1
26372 fi
26373
26374         else
26375             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26376 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26377 if test "${ac_cv_lib_w_wcslen+set}" = set; then
26378   echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380   ac_check_lib_save_LIBS=$LIBS
26381 LIBS="-lw  $LIBS"
26382 cat >conftest.$ac_ext <<_ACEOF
26383 #line $LINENO "configure"
26384 /* confdefs.h.  */
26385 _ACEOF
26386 cat confdefs.h >>conftest.$ac_ext
26387 cat >>conftest.$ac_ext <<_ACEOF
26388 /* end confdefs.h.  */
26389
26390 /* Override any gcc2 internal prototype to avoid an error.  */
26391 #ifdef __cplusplus
26392 extern "C"
26393 #endif
26394 /* We use char because int might match the return type of a gcc2
26395    builtin and then its argument prototype would still apply.  */
26396 char wcslen ();
26397 int
26398 main ()
26399 {
26400 wcslen ();
26401   ;
26402   return 0;
26403 }
26404 _ACEOF
26405 rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26407   (eval $ac_link) 2>&5
26408   ac_status=$?
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } &&
26411          { ac_try='test -s conftest$ac_exeext'
26412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413   (eval $ac_try) 2>&5
26414   ac_status=$?
26415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416   (exit $ac_status); }; }; then
26417   ac_cv_lib_w_wcslen=yes
26418 else
26419   echo "$as_me: failed program was:" >&5
26420 sed 's/^/| /' conftest.$ac_ext >&5
26421
26422 ac_cv_lib_w_wcslen=no
26423 fi
26424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26425 LIBS=$ac_check_lib_save_LIBS
26426 fi
26427 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26428 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26429 if test $ac_cv_lib_w_wcslen = yes; then
26430
26431                             WCHAR_LINK=" -lw"
26432                             WCSLEN_FOUND=1
26433
26434 fi
26435
26436         fi
26437     fi
26438
26439     if test "$WCSLEN_FOUND" = 1; then
26440         cat >>confdefs.h <<\_ACEOF
26441 #define HAVE_WCSLEN 1
26442 _ACEOF
26443
26444     fi
26445
26446
26447 for ac_func in wcsrtombs
26448 do
26449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26450 echo "$as_me:$LINENO: checking for $ac_func" >&5
26451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_var+set}\" = set"; then
26453   echo $ECHO_N "(cached) $ECHO_C" >&6
26454 else
26455   cat >conftest.$ac_ext <<_ACEOF
26456 #line $LINENO "configure"
26457 /* confdefs.h.  */
26458 _ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h.  */
26462 /* System header to define __stub macros and hopefully few prototypes,
26463     which can conflict with char $ac_func (); below.
26464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26465     <limits.h> exists even on freestanding compilers.  */
26466 #ifdef __STDC__
26467 # include <limits.h>
26468 #else
26469 # include <assert.h>
26470 #endif
26471 /* Override any gcc2 internal prototype to avoid an error.  */
26472 #ifdef __cplusplus
26473 extern "C"
26474 {
26475 #endif
26476 /* We use char because int might match the return type of a gcc2
26477    builtin and then its argument prototype would still apply.  */
26478 char $ac_func ();
26479 /* The GNU C library defines this for functions which it implements
26480     to always fail with ENOSYS.  Some functions are actually named
26481     something starting with __ and the normal name is an alias.  */
26482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26483 choke me
26484 #else
26485 char (*f) () = $ac_func;
26486 #endif
26487 #ifdef __cplusplus
26488 }
26489 #endif
26490
26491 int
26492 main ()
26493 {
26494 return f != $ac_func;
26495   ;
26496   return 0;
26497 }
26498 _ACEOF
26499 rm -f conftest.$ac_objext conftest$ac_exeext
26500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26501   (eval $ac_link) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); } &&
26505          { ac_try='test -s conftest$ac_exeext'
26506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507   (eval $ac_try) 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); }; }; then
26511   eval "$as_ac_var=yes"
26512 else
26513   echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26515
26516 eval "$as_ac_var=no"
26517 fi
26518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26519 fi
26520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26522 if test `eval echo '${'$as_ac_var'}'` = yes; then
26523   cat >>confdefs.h <<_ACEOF
26524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26525 _ACEOF
26526
26527 fi
26528 done
26529
26530 else
26531     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26532 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
26533 fi
26534
26535
26536
26537 ac_ext=cc
26538 ac_cpp='$CXXCPP $CPPFLAGS'
26539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26542
26543
26544
26545 for ac_func in vsnprintf
26546 do
26547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26548 echo "$as_me:$LINENO: checking for $ac_func" >&5
26549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26550 if eval "test \"\${$as_ac_var+set}\" = set"; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26553   cat >conftest.$ac_ext <<_ACEOF
26554 #line $LINENO "configure"
26555 /* confdefs.h.  */
26556 _ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h.  */
26560 /* System header to define __stub macros and hopefully few prototypes,
26561     which can conflict with char $ac_func (); below.
26562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26563     <limits.h> exists even on freestanding compilers.  */
26564 #ifdef __STDC__
26565 # include <limits.h>
26566 #else
26567 # include <assert.h>
26568 #endif
26569 /* Override any gcc2 internal prototype to avoid an error.  */
26570 #ifdef __cplusplus
26571 extern "C"
26572 {
26573 #endif
26574 /* We use char because int might match the return type of a gcc2
26575    builtin and then its argument prototype would still apply.  */
26576 char $ac_func ();
26577 /* The GNU C library defines this for functions which it implements
26578     to always fail with ENOSYS.  Some functions are actually named
26579     something starting with __ and the normal name is an alias.  */
26580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26581 choke me
26582 #else
26583 char (*f) () = $ac_func;
26584 #endif
26585 #ifdef __cplusplus
26586 }
26587 #endif
26588
26589 int
26590 main ()
26591 {
26592 return f != $ac_func;
26593   ;
26594   return 0;
26595 }
26596 _ACEOF
26597 rm -f conftest.$ac_objext conftest$ac_exeext
26598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26599   (eval $ac_link) 2>&5
26600   ac_status=$?
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } &&
26603          { ac_try='test -s conftest$ac_exeext'
26604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605   (eval $ac_try) 2>&5
26606   ac_status=$?
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); }; }; then
26609   eval "$as_ac_var=yes"
26610 else
26611   echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26613
26614 eval "$as_ac_var=no"
26615 fi
26616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26617 fi
26618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26620 if test `eval echo '${'$as_ac_var'}'` = yes; then
26621   cat >>confdefs.h <<_ACEOF
26622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26623 _ACEOF
26624
26625 fi
26626 done
26627
26628
26629 if test "$ac_cv_func_vsnprintf" = "yes"; then
26630         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26631 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26632 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 else
26635
26636             cat >conftest.$ac_ext <<_ACEOF
26637 #line $LINENO "configure"
26638 /* confdefs.h.  */
26639 _ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h.  */
26643
26644                     #include <stdio.h>
26645                     #include <stdarg.h>
26646
26647 int
26648 main ()
26649 {
26650
26651                     char *buf;
26652                     va_list ap;
26653                     vsnprintf(buf, 10u, "%s", ap);
26654
26655   ;
26656   return 0;
26657 }
26658 _ACEOF
26659 rm -f conftest.$ac_objext
26660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26661   (eval $ac_compile) 2>&5
26662   ac_status=$?
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); } &&
26665          { ac_try='test -s conftest.$ac_objext'
26666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667   (eval $ac_try) 2>&5
26668   ac_status=$?
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); }; }; then
26671   wx_cv_func_vsnprintf_decl=yes
26672 else
26673   echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26675
26676 wx_cv_func_vsnprintf_decl=no
26677
26678 fi
26679 rm -f conftest.$ac_objext conftest.$ac_ext
26680
26681
26682 fi
26683 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26684 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
26685
26686     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
26687         cat >>confdefs.h <<\_ACEOF
26688 #define HAVE_VSNPRINTF_DECL 1
26689 _ACEOF
26690
26691     fi
26692 fi
26693
26694 if test "$wxUSE_UNICODE" = yes; then
26695
26696
26697
26698 for ac_func in fputwc wprintf vswprintf
26699 do
26700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26701 echo "$as_me:$LINENO: checking for $ac_func" >&5
26702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26703 if eval "test \"\${$as_ac_var+set}\" = set"; then
26704   echo $ECHO_N "(cached) $ECHO_C" >&6
26705 else
26706   cat >conftest.$ac_ext <<_ACEOF
26707 #line $LINENO "configure"
26708 /* confdefs.h.  */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h.  */
26713 /* System header to define __stub macros and hopefully few prototypes,
26714     which can conflict with char $ac_func (); below.
26715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26716     <limits.h> exists even on freestanding compilers.  */
26717 #ifdef __STDC__
26718 # include <limits.h>
26719 #else
26720 # include <assert.h>
26721 #endif
26722 /* Override any gcc2 internal prototype to avoid an error.  */
26723 #ifdef __cplusplus
26724 extern "C"
26725 {
26726 #endif
26727 /* We use char because int might match the return type of a gcc2
26728    builtin and then its argument prototype would still apply.  */
26729 char $ac_func ();
26730 /* The GNU C library defines this for functions which it implements
26731     to always fail with ENOSYS.  Some functions are actually named
26732     something starting with __ and the normal name is an alias.  */
26733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26734 choke me
26735 #else
26736 char (*f) () = $ac_func;
26737 #endif
26738 #ifdef __cplusplus
26739 }
26740 #endif
26741
26742 int
26743 main ()
26744 {
26745 return f != $ac_func;
26746   ;
26747   return 0;
26748 }
26749 _ACEOF
26750 rm -f conftest.$ac_objext conftest$ac_exeext
26751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26752   (eval $ac_link) 2>&5
26753   ac_status=$?
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } &&
26756          { ac_try='test -s conftest$ac_exeext'
26757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758   (eval $ac_try) 2>&5
26759   ac_status=$?
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); }; }; then
26762   eval "$as_ac_var=yes"
26763 else
26764   echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26766
26767 eval "$as_ac_var=no"
26768 fi
26769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26770 fi
26771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26773 if test `eval echo '${'$as_ac_var'}'` = yes; then
26774   cat >>confdefs.h <<_ACEOF
26775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26776 _ACEOF
26777
26778 fi
26779 done
26780
26781
26782                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26783 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26784     cat >conftest.$ac_ext <<_ACEOF
26785 #line $LINENO "configure"
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791 #include <wchar.h>
26792 int
26793 main ()
26794 {
26795 &_vsnwprintf;
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 rm -f conftest.$ac_objext
26801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26802   (eval $ac_compile) 2>&5
26803   ac_status=$?
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); } &&
26806          { ac_try='test -s conftest.$ac_objext'
26807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808   (eval $ac_try) 2>&5
26809   ac_status=$?
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); }; }; then
26812   echo "$as_me:$LINENO: result: yes" >&5
26813 echo "${ECHO_T}yes" >&6
26814                     cat >>confdefs.h <<\_ACEOF
26815 #define HAVE__VSNWPRINTF 1
26816 _ACEOF
26817
26818 else
26819   echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26821
26822 echo "$as_me:$LINENO: result: no" >&5
26823 echo "${ECHO_T}no" >&6
26824 fi
26825 rm -f conftest.$ac_objext conftest.$ac_ext;
26826 fi
26827
26828 ac_ext=c
26829 ac_cpp='$CPP $CPPFLAGS'
26830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26833
26834
26835
26836
26837 if test "$TOOLKIT" != "MSW"; then
26838
26839
26840
26841
26842 ac_ext=cc
26843 ac_cpp='$CXXCPP $CPPFLAGS'
26844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26847
26848
26849
26850
26851 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26852 if test "${with_libiconv_prefix+set}" = set; then
26853   withval="$with_libiconv_prefix"
26854
26855     for dir in `echo "$withval" | tr : ' '`; do
26856       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26857       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26858     done
26859
26860 fi;
26861
26862   echo "$as_me:$LINENO: checking for iconv" >&5
26863 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26864 if test "${am_cv_func_iconv+set}" = set; then
26865   echo $ECHO_N "(cached) $ECHO_C" >&6
26866 else
26867
26868     am_cv_func_iconv="no, consider installing GNU libiconv"
26869     am_cv_lib_iconv=no
26870     cat >conftest.$ac_ext <<_ACEOF
26871 #line $LINENO "configure"
26872 /* confdefs.h.  */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h.  */
26877 #include <stdlib.h>
26878 #include <iconv.h>
26879 int
26880 main ()
26881 {
26882 iconv_t cd = iconv_open("","");
26883        iconv(cd,NULL,NULL,NULL,NULL);
26884        iconv_close(cd);
26885   ;
26886   return 0;
26887 }
26888 _ACEOF
26889 rm -f conftest.$ac_objext conftest$ac_exeext
26890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26891   (eval $ac_link) 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); } &&
26895          { ac_try='test -s conftest$ac_exeext'
26896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897   (eval $ac_try) 2>&5
26898   ac_status=$?
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); }; }; then
26901   am_cv_func_iconv=yes
26902 else
26903   echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26905
26906 fi
26907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26908     if test "$am_cv_func_iconv" != yes; then
26909       am_save_LIBS="$LIBS"
26910       LIBS="$LIBS -liconv"
26911       cat >conftest.$ac_ext <<_ACEOF
26912 #line $LINENO "configure"
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 #include <stdlib.h>
26919 #include <iconv.h>
26920 int
26921 main ()
26922 {
26923 iconv_t cd = iconv_open("","");
26924          iconv(cd,NULL,NULL,NULL,NULL);
26925          iconv_close(cd);
26926   ;
26927   return 0;
26928 }
26929 _ACEOF
26930 rm -f conftest.$ac_objext conftest$ac_exeext
26931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26932   (eval $ac_link) 2>&5
26933   ac_status=$?
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); } &&
26936          { ac_try='test -s conftest$ac_exeext'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; }; then
26942   am_cv_lib_iconv=yes
26943         am_cv_func_iconv=yes
26944 else
26945   echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948 fi
26949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26950       LIBS="$am_save_LIBS"
26951     fi
26952
26953 fi
26954 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26955 echo "${ECHO_T}$am_cv_func_iconv" >&6
26956   if test "$am_cv_func_iconv" = yes; then
26957
26958 cat >>confdefs.h <<\_ACEOF
26959 #define HAVE_ICONV 1
26960 _ACEOF
26961
26962     echo "$as_me:$LINENO: checking if iconv needs const" >&5
26963 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26964 if test "${wx_cv_func_iconv_const+set}" = set; then
26965   echo $ECHO_N "(cached) $ECHO_C" >&6
26966 else
26967   cat >conftest.$ac_ext <<_ACEOF
26968 #line $LINENO "configure"
26969 /* confdefs.h.  */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h.  */
26974
26975 #include <stdlib.h>
26976 #include <iconv.h>
26977 extern
26978 #ifdef __cplusplus
26979 "C"
26980 #endif
26981 #if defined(__STDC__) || defined(__cplusplus)
26982 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26983 #else
26984 size_t iconv();
26985 #endif
26986
26987 int
26988 main ()
26989 {
26990
26991   ;
26992   return 0;
26993 }
26994 _ACEOF
26995 rm -f conftest.$ac_objext
26996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26997   (eval $ac_compile) 2>&5
26998   ac_status=$?
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); } &&
27001          { ac_try='test -s conftest.$ac_objext'
27002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003   (eval $ac_try) 2>&5
27004   ac_status=$?
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); }; }; then
27007   wx_cv_func_iconv_const="no"
27008 else
27009   echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27011
27012 wx_cv_func_iconv_const="yes"
27013
27014 fi
27015 rm -f conftest.$ac_objext conftest.$ac_ext
27016
27017 fi
27018 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27019 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
27020
27021     iconv_const=
27022     if test "x$wx_cv_func_iconv_const" = "xyes"; then
27023         iconv_const="const"
27024     fi
27025
27026
27027 cat >>confdefs.h <<_ACEOF
27028 #define ICONV_CONST $iconv_const
27029 _ACEOF
27030
27031   fi
27032   LIBICONV=
27033   if test "$am_cv_lib_iconv" = yes; then
27034     LIBICONV="-liconv"
27035   fi
27036
27037
27038 LIBS="$LIBICONV $LIBS"
27039 ac_ext=c
27040 ac_cpp='$CPP $CPPFLAGS'
27041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27044
27045
27046 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
27047
27048 for ac_func in sigaction
27049 do
27050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27051 echo "$as_me:$LINENO: checking for $ac_func" >&5
27052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27053 if eval "test \"\${$as_ac_var+set}\" = set"; then
27054   echo $ECHO_N "(cached) $ECHO_C" >&6
27055 else
27056   cat >conftest.$ac_ext <<_ACEOF
27057 #line $LINENO "configure"
27058 /* confdefs.h.  */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h.  */
27063 /* System header to define __stub macros and hopefully few prototypes,
27064     which can conflict with char $ac_func (); below.
27065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27066     <limits.h> exists even on freestanding compilers.  */
27067 #ifdef __STDC__
27068 # include <limits.h>
27069 #else
27070 # include <assert.h>
27071 #endif
27072 /* Override any gcc2 internal prototype to avoid an error.  */
27073 #ifdef __cplusplus
27074 extern "C"
27075 {
27076 #endif
27077 /* We use char because int might match the return type of a gcc2
27078    builtin and then its argument prototype would still apply.  */
27079 char $ac_func ();
27080 /* The GNU C library defines this for functions which it implements
27081     to always fail with ENOSYS.  Some functions are actually named
27082     something starting with __ and the normal name is an alias.  */
27083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27084 choke me
27085 #else
27086 char (*f) () = $ac_func;
27087 #endif
27088 #ifdef __cplusplus
27089 }
27090 #endif
27091
27092 int
27093 main ()
27094 {
27095 return f != $ac_func;
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 rm -f conftest.$ac_objext conftest$ac_exeext
27101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27102   (eval $ac_link) 2>&5
27103   ac_status=$?
27104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); } &&
27106          { ac_try='test -s conftest$ac_exeext'
27107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108   (eval $ac_try) 2>&5
27109   ac_status=$?
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); }; }; then
27112   eval "$as_ac_var=yes"
27113 else
27114   echo "$as_me: failed program was:" >&5
27115 sed 's/^/| /' conftest.$ac_ext >&5
27116
27117 eval "$as_ac_var=no"
27118 fi
27119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27120 fi
27121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27123 if test `eval echo '${'$as_ac_var'}'` = yes; then
27124   cat >>confdefs.h <<_ACEOF
27125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27126 _ACEOF
27127
27128 fi
27129 done
27130
27131
27132     if test "$ac_cv_func_sigaction" = "no"; then
27133         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27134 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
27135         wxUSE_ON_FATAL_EXCEPTION=no
27136     fi
27137
27138     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
27139
27140
27141       ac_ext=cc
27142 ac_cpp='$CXXCPP $CPPFLAGS'
27143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27146
27147
27148       echo "$as_me:$LINENO: checking for sa_handler type" >&5
27149 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27150 if test "${wx_cv_type_sa_handler+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153
27154         cat >conftest.$ac_ext <<_ACEOF
27155 #line $LINENO "configure"
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161 #include <signal.h>
27162 int
27163 main ()
27164 {
27165
27166                         extern void testSigHandler(int);
27167
27168                         struct sigaction sa;
27169                         sa.sa_handler = testSigHandler;
27170
27171   ;
27172   return 0;
27173 }
27174 _ACEOF
27175 rm -f conftest.$ac_objext
27176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27177   (eval $ac_compile) 2>&5
27178   ac_status=$?
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); } &&
27181          { ac_try='test -s conftest.$ac_objext'
27182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183   (eval $ac_try) 2>&5
27184   ac_status=$?
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; }; then
27187
27188                         wx_cv_type_sa_handler=int
27189
27190 else
27191   echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27193
27194
27195                         wx_cv_type_sa_handler=void
27196
27197 fi
27198 rm -f conftest.$ac_objext conftest.$ac_ext
27199
27200 fi
27201 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27202 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
27203
27204       ac_ext=c
27205 ac_cpp='$CPP $CPPFLAGS'
27206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27209
27210
27211       cat >>confdefs.h <<_ACEOF
27212 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
27213 _ACEOF
27214
27215     fi
27216 fi
27217
27218
27219
27220 for ac_func in mkstemp mktemp
27221 do
27222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27223 echo "$as_me:$LINENO: checking for $ac_func" >&5
27224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27225 if eval "test \"\${$as_ac_var+set}\" = set"; then
27226   echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228   cat >conftest.$ac_ext <<_ACEOF
27229 #line $LINENO "configure"
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 /* System header to define __stub macros and hopefully few prototypes,
27236     which can conflict with char $ac_func (); below.
27237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27238     <limits.h> exists even on freestanding compilers.  */
27239 #ifdef __STDC__
27240 # include <limits.h>
27241 #else
27242 # include <assert.h>
27243 #endif
27244 /* Override any gcc2 internal prototype to avoid an error.  */
27245 #ifdef __cplusplus
27246 extern "C"
27247 {
27248 #endif
27249 /* We use char because int might match the return type of a gcc2
27250    builtin and then its argument prototype would still apply.  */
27251 char $ac_func ();
27252 /* The GNU C library defines this for functions which it implements
27253     to always fail with ENOSYS.  Some functions are actually named
27254     something starting with __ and the normal name is an alias.  */
27255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27256 choke me
27257 #else
27258 char (*f) () = $ac_func;
27259 #endif
27260 #ifdef __cplusplus
27261 }
27262 #endif
27263
27264 int
27265 main ()
27266 {
27267 return f != $ac_func;
27268   ;
27269   return 0;
27270 }
27271 _ACEOF
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27274   (eval $ac_link) 2>&5
27275   ac_status=$?
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); } &&
27278          { ac_try='test -s conftest$ac_exeext'
27279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280   (eval $ac_try) 2>&5
27281   ac_status=$?
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); }; }; then
27284   eval "$as_ac_var=yes"
27285 else
27286   echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27288
27289 eval "$as_ac_var=no"
27290 fi
27291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27292 fi
27293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27295 if test `eval echo '${'$as_ac_var'}'` = yes; then
27296   cat >>confdefs.h <<_ACEOF
27297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27298 _ACEOF
27299  break
27300 fi
27301 done
27302
27303
27304 echo "$as_me:$LINENO: checking for statfs" >&5
27305 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27306 if test "${wx_cv_func_statfs+set}" = set; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309   cat >conftest.$ac_ext <<_ACEOF
27310 #line $LINENO "configure"
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316
27317              #if defined(__BSD__)
27318                #include <sys/param.h>
27319                #include <sys/mount.h>
27320              #else
27321                #include <sys/vfs.h>
27322              #endif
27323
27324 int
27325 main ()
27326 {
27327
27328              long l;
27329              struct statfs fs;
27330              statfs("/", &fs);
27331              l = fs.f_bsize;
27332              l += fs.f_blocks;
27333              l += fs.f_bavail;
27334
27335   ;
27336   return 0;
27337 }
27338 _ACEOF
27339 rm -f conftest.$ac_objext
27340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27341   (eval $ac_compile) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); } &&
27345          { ac_try='test -s conftest.$ac_objext'
27346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347   (eval $ac_try) 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; }; then
27351
27352              wx_cv_func_statfs=yes
27353
27354 else
27355   echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358
27359              wx_cv_func_statfs=no
27360
27361
27362 fi
27363 rm -f conftest.$ac_objext conftest.$ac_ext
27364
27365 fi
27366 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27367 echo "${ECHO_T}$wx_cv_func_statfs" >&6
27368
27369 if test "$wx_cv_func_statfs" = "yes"; then
27370     wx_cv_type_statvfs_t="struct statfs"
27371     cat >>confdefs.h <<\_ACEOF
27372 #define HAVE_STATFS 1
27373 _ACEOF
27374
27375 else
27376     echo "$as_me:$LINENO: checking for statvfs" >&5
27377 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27378 if test "${wx_cv_func_statvfs+set}" = set; then
27379   echo $ECHO_N "(cached) $ECHO_C" >&6
27380 else
27381   cat >conftest.$ac_ext <<_ACEOF
27382 #line $LINENO "configure"
27383 /* confdefs.h.  */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h.  */
27388
27389                 #include <stddef.h>
27390                 #include <sys/statvfs.h>
27391
27392 int
27393 main ()
27394 {
27395
27396                 statvfs("/", NULL);
27397
27398   ;
27399   return 0;
27400 }
27401 _ACEOF
27402 rm -f conftest.$ac_objext
27403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27404   (eval $ac_compile) 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); } &&
27408          { ac_try='test -s conftest.$ac_objext'
27409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410   (eval $ac_try) 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; }; then
27414   wx_cv_func_statvfs=yes
27415 else
27416   echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27418
27419 wx_cv_func_statvfs=no
27420
27421 fi
27422 rm -f conftest.$ac_objext conftest.$ac_ext
27423
27424 fi
27425 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27426 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
27427
27428     if test "$wx_cv_func_statvfs" = "yes"; then
27429
27430
27431         ac_ext=cc
27432 ac_cpp='$CXXCPP $CPPFLAGS'
27433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27436
27437
27438         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27439 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27440 if test "${wx_cv_type_statvfs_t+set}" = set; then
27441   echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443   cat >conftest.$ac_ext <<_ACEOF
27444 #line $LINENO "configure"
27445 /* confdefs.h.  */
27446 _ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h.  */
27450
27451                     #include <sys/statvfs.h>
27452
27453 int
27454 main ()
27455 {
27456
27457                     long l;
27458                     statvfs_t fs;
27459                     statvfs("/", &fs);
27460                     l = fs.f_bsize;
27461                     l += fs.f_blocks;
27462                     l += fs.f_bavail;
27463
27464   ;
27465   return 0;
27466 }
27467 _ACEOF
27468 rm -f conftest.$ac_objext
27469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27470   (eval $ac_compile) 2>&5
27471   ac_status=$?
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } &&
27474          { ac_try='test -s conftest.$ac_objext'
27475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476   (eval $ac_try) 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); }; }; then
27480   wx_cv_type_statvfs_t=statvfs_t
27481 else
27482   echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27484
27485
27486                     cat >conftest.$ac_ext <<_ACEOF
27487 #line $LINENO "configure"
27488 /* confdefs.h.  */
27489 _ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h.  */
27493
27494                             #include <sys/statvfs.h>
27495
27496 int
27497 main ()
27498 {
27499
27500                             long l;
27501                             struct statvfs fs;
27502                             statvfs("/", &fs);
27503                             l = fs.f_bsize;
27504                             l += fs.f_blocks;
27505                             l += fs.f_bavail;
27506
27507   ;
27508   return 0;
27509 }
27510 _ACEOF
27511 rm -f conftest.$ac_objext
27512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27513   (eval $ac_compile) 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   wx_cv_type_statvfs_t="struct statvfs"
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528 wx_cv_type_statvfs_t="unknown"
27529
27530 fi
27531 rm -f conftest.$ac_objext conftest.$ac_ext
27532
27533
27534 fi
27535 rm -f conftest.$ac_objext conftest.$ac_ext
27536
27537 fi
27538 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27539 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
27540
27541         ac_ext=c
27542 ac_cpp='$CPP $CPPFLAGS'
27543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27546
27547
27548         if test "$wx_cv_type_statvfs_t" != "unknown"; then
27549             cat >>confdefs.h <<\_ACEOF
27550 #define HAVE_STATVFS 1
27551 _ACEOF
27552
27553         fi
27554     else
27555                 wx_cv_type_statvfs_t="unknown"
27556     fi
27557 fi
27558
27559 if test "$wx_cv_type_statvfs_t" != "unknown"; then
27560     cat >>confdefs.h <<_ACEOF
27561 #define WX_STATFS_T $wx_cv_type_statvfs_t
27562 _ACEOF
27563
27564 else
27565     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27566 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
27567 fi
27568
27569 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
27570
27571
27572 for ac_func in fcntl flock
27573 do
27574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27575 echo "$as_me:$LINENO: checking for $ac_func" >&5
27576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27577 if eval "test \"\${$as_ac_var+set}\" = set"; then
27578   echo $ECHO_N "(cached) $ECHO_C" >&6
27579 else
27580   cat >conftest.$ac_ext <<_ACEOF
27581 #line $LINENO "configure"
27582 /* confdefs.h.  */
27583 _ACEOF
27584 cat confdefs.h >>conftest.$ac_ext
27585 cat >>conftest.$ac_ext <<_ACEOF
27586 /* end confdefs.h.  */
27587 /* System header to define __stub macros and hopefully few prototypes,
27588     which can conflict with char $ac_func (); below.
27589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27590     <limits.h> exists even on freestanding compilers.  */
27591 #ifdef __STDC__
27592 # include <limits.h>
27593 #else
27594 # include <assert.h>
27595 #endif
27596 /* Override any gcc2 internal prototype to avoid an error.  */
27597 #ifdef __cplusplus
27598 extern "C"
27599 {
27600 #endif
27601 /* We use char because int might match the return type of a gcc2
27602    builtin and then its argument prototype would still apply.  */
27603 char $ac_func ();
27604 /* The GNU C library defines this for functions which it implements
27605     to always fail with ENOSYS.  Some functions are actually named
27606     something starting with __ and the normal name is an alias.  */
27607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27608 choke me
27609 #else
27610 char (*f) () = $ac_func;
27611 #endif
27612 #ifdef __cplusplus
27613 }
27614 #endif
27615
27616 int
27617 main ()
27618 {
27619 return f != $ac_func;
27620   ;
27621   return 0;
27622 }
27623 _ACEOF
27624 rm -f conftest.$ac_objext conftest$ac_exeext
27625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27626   (eval $ac_link) 2>&5
27627   ac_status=$?
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); } &&
27630          { ac_try='test -s conftest$ac_exeext'
27631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632   (eval $ac_try) 2>&5
27633   ac_status=$?
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); }; }; then
27636   eval "$as_ac_var=yes"
27637 else
27638   echo "$as_me: failed program was:" >&5
27639 sed 's/^/| /' conftest.$ac_ext >&5
27640
27641 eval "$as_ac_var=no"
27642 fi
27643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27644 fi
27645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27647 if test `eval echo '${'$as_ac_var'}'` = yes; then
27648   cat >>confdefs.h <<_ACEOF
27649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27650 _ACEOF
27651  break
27652 fi
27653 done
27654
27655
27656     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
27657         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27658 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
27659         wxUSE_SNGLINST_CHECKER=no
27660     fi
27661 fi
27662
27663
27664 for ac_func in timegm
27665 do
27666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27667 echo "$as_me:$LINENO: checking for $ac_func" >&5
27668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27669 if eval "test \"\${$as_ac_var+set}\" = set"; then
27670   echo $ECHO_N "(cached) $ECHO_C" >&6
27671 else
27672   cat >conftest.$ac_ext <<_ACEOF
27673 #line $LINENO "configure"
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679 /* System header to define __stub macros and hopefully few prototypes,
27680     which can conflict with char $ac_func (); below.
27681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27682     <limits.h> exists even on freestanding compilers.  */
27683 #ifdef __STDC__
27684 # include <limits.h>
27685 #else
27686 # include <assert.h>
27687 #endif
27688 /* Override any gcc2 internal prototype to avoid an error.  */
27689 #ifdef __cplusplus
27690 extern "C"
27691 {
27692 #endif
27693 /* We use char because int might match the return type of a gcc2
27694    builtin and then its argument prototype would still apply.  */
27695 char $ac_func ();
27696 /* The GNU C library defines this for functions which it implements
27697     to always fail with ENOSYS.  Some functions are actually named
27698     something starting with __ and the normal name is an alias.  */
27699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27700 choke me
27701 #else
27702 char (*f) () = $ac_func;
27703 #endif
27704 #ifdef __cplusplus
27705 }
27706 #endif
27707
27708 int
27709 main ()
27710 {
27711 return f != $ac_func;
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 rm -f conftest.$ac_objext conftest$ac_exeext
27717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27718   (eval $ac_link) 2>&5
27719   ac_status=$?
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } &&
27722          { ac_try='test -s conftest$ac_exeext'
27723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724   (eval $ac_try) 2>&5
27725   ac_status=$?
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); }; }; then
27728   eval "$as_ac_var=yes"
27729 else
27730   echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27732
27733 eval "$as_ac_var=no"
27734 fi
27735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27736 fi
27737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27739 if test `eval echo '${'$as_ac_var'}'` = yes; then
27740   cat >>confdefs.h <<_ACEOF
27741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27742 _ACEOF
27743
27744 fi
27745 done
27746
27747
27748
27749
27750 for ac_func in putenv setenv
27751 do
27752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27753 echo "$as_me:$LINENO: checking for $ac_func" >&5
27754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27755 if eval "test \"\${$as_ac_var+set}\" = set"; then
27756   echo $ECHO_N "(cached) $ECHO_C" >&6
27757 else
27758   cat >conftest.$ac_ext <<_ACEOF
27759 #line $LINENO "configure"
27760 /* confdefs.h.  */
27761 _ACEOF
27762 cat confdefs.h >>conftest.$ac_ext
27763 cat >>conftest.$ac_ext <<_ACEOF
27764 /* end confdefs.h.  */
27765 /* System header to define __stub macros and hopefully few prototypes,
27766     which can conflict with char $ac_func (); below.
27767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27768     <limits.h> exists even on freestanding compilers.  */
27769 #ifdef __STDC__
27770 # include <limits.h>
27771 #else
27772 # include <assert.h>
27773 #endif
27774 /* Override any gcc2 internal prototype to avoid an error.  */
27775 #ifdef __cplusplus
27776 extern "C"
27777 {
27778 #endif
27779 /* We use char because int might match the return type of a gcc2
27780    builtin and then its argument prototype would still apply.  */
27781 char $ac_func ();
27782 /* The GNU C library defines this for functions which it implements
27783     to always fail with ENOSYS.  Some functions are actually named
27784     something starting with __ and the normal name is an alias.  */
27785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27786 choke me
27787 #else
27788 char (*f) () = $ac_func;
27789 #endif
27790 #ifdef __cplusplus
27791 }
27792 #endif
27793
27794 int
27795 main ()
27796 {
27797 return f != $ac_func;
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27804   (eval $ac_link) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); } &&
27808          { ac_try='test -s conftest$ac_exeext'
27809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810   (eval $ac_try) 2>&5
27811   ac_status=$?
27812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813   (exit $ac_status); }; }; then
27814   eval "$as_ac_var=yes"
27815 else
27816   echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819 eval "$as_ac_var=no"
27820 fi
27821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27822 fi
27823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27825 if test `eval echo '${'$as_ac_var'}'` = yes; then
27826   cat >>confdefs.h <<_ACEOF
27827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27828 _ACEOF
27829  break
27830 fi
27831 done
27832
27833
27834 HAVE_SOME_SLEEP_FUNC=0
27835 if test "$USE_BEOS" = 1; then
27836             cat >>confdefs.h <<\_ACEOF
27837 #define HAVE_SLEEP 1
27838 _ACEOF
27839
27840     HAVE_SOME_SLEEP_FUNC=1
27841 fi
27842
27843 if test "$USE_DARWIN" = 1; then
27844             cat >>confdefs.h <<\_ACEOF
27845 #define HAVE_USLEEP 1
27846 _ACEOF
27847
27848     HAVE_SOME_SLEEP_FUNC=1
27849 fi
27850
27851 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27852         POSIX4_LINK=
27853
27854 for ac_func in nanosleep
27855 do
27856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27857 echo "$as_me:$LINENO: checking for $ac_func" >&5
27858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27859 if eval "test \"\${$as_ac_var+set}\" = set"; then
27860   echo $ECHO_N "(cached) $ECHO_C" >&6
27861 else
27862   cat >conftest.$ac_ext <<_ACEOF
27863 #line $LINENO "configure"
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869 /* System header to define __stub macros and hopefully few prototypes,
27870     which can conflict with char $ac_func (); below.
27871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27872     <limits.h> exists even on freestanding compilers.  */
27873 #ifdef __STDC__
27874 # include <limits.h>
27875 #else
27876 # include <assert.h>
27877 #endif
27878 /* Override any gcc2 internal prototype to avoid an error.  */
27879 #ifdef __cplusplus
27880 extern "C"
27881 {
27882 #endif
27883 /* We use char because int might match the return type of a gcc2
27884    builtin and then its argument prototype would still apply.  */
27885 char $ac_func ();
27886 /* The GNU C library defines this for functions which it implements
27887     to always fail with ENOSYS.  Some functions are actually named
27888     something starting with __ and the normal name is an alias.  */
27889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27890 choke me
27891 #else
27892 char (*f) () = $ac_func;
27893 #endif
27894 #ifdef __cplusplus
27895 }
27896 #endif
27897
27898 int
27899 main ()
27900 {
27901 return f != $ac_func;
27902   ;
27903   return 0;
27904 }
27905 _ACEOF
27906 rm -f conftest.$ac_objext conftest$ac_exeext
27907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27908   (eval $ac_link) 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } &&
27912          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923 eval "$as_ac_var=no"
27924 fi
27925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27926 fi
27927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27929 if test `eval echo '${'$as_ac_var'}'` = yes; then
27930   cat >>confdefs.h <<_ACEOF
27931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27932 _ACEOF
27933  cat >>confdefs.h <<\_ACEOF
27934 #define HAVE_NANOSLEEP 1
27935 _ACEOF
27936
27937 else
27938
27939             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27940 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27941 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27942   echo $ECHO_N "(cached) $ECHO_C" >&6
27943 else
27944   ac_check_lib_save_LIBS=$LIBS
27945 LIBS="-lposix4  $LIBS"
27946 cat >conftest.$ac_ext <<_ACEOF
27947 #line $LINENO "configure"
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953
27954 /* Override any gcc2 internal prototype to avoid an error.  */
27955 #ifdef __cplusplus
27956 extern "C"
27957 #endif
27958 /* We use char because int might match the return type of a gcc2
27959    builtin and then its argument prototype would still apply.  */
27960 char nanosleep ();
27961 int
27962 main ()
27963 {
27964 nanosleep ();
27965   ;
27966   return 0;
27967 }
27968 _ACEOF
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27971   (eval $ac_link) 2>&5
27972   ac_status=$?
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); } &&
27975          { ac_try='test -s conftest$ac_exeext'
27976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977   (eval $ac_try) 2>&5
27978   ac_status=$?
27979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980   (exit $ac_status); }; }; then
27981   ac_cv_lib_posix4_nanosleep=yes
27982 else
27983   echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27985
27986 ac_cv_lib_posix4_nanosleep=no
27987 fi
27988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27989 LIBS=$ac_check_lib_save_LIBS
27990 fi
27991 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27992 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27993 if test $ac_cv_lib_posix4_nanosleep = yes; then
27994
27995                     cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_NANOSLEEP 1
27997 _ACEOF
27998
27999                     POSIX4_LINK=" -lposix4"
28000
28001 else
28002
28003
28004 for ac_func in usleep
28005 do
28006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28007 echo "$as_me:$LINENO: checking for $ac_func" >&5
28008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28009 if eval "test \"\${$as_ac_var+set}\" = set"; then
28010   echo $ECHO_N "(cached) $ECHO_C" >&6
28011 else
28012   cat >conftest.$ac_ext <<_ACEOF
28013 #line $LINENO "configure"
28014 /* confdefs.h.  */
28015 _ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h.  */
28019 /* System header to define __stub macros and hopefully few prototypes,
28020     which can conflict with char $ac_func (); below.
28021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28022     <limits.h> exists even on freestanding compilers.  */
28023 #ifdef __STDC__
28024 # include <limits.h>
28025 #else
28026 # include <assert.h>
28027 #endif
28028 /* Override any gcc2 internal prototype to avoid an error.  */
28029 #ifdef __cplusplus
28030 extern "C"
28031 {
28032 #endif
28033 /* We use char because int might match the return type of a gcc2
28034    builtin and then its argument prototype would still apply.  */
28035 char $ac_func ();
28036 /* The GNU C library defines this for functions which it implements
28037     to always fail with ENOSYS.  Some functions are actually named
28038     something starting with __ and the normal name is an alias.  */
28039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28040 choke me
28041 #else
28042 char (*f) () = $ac_func;
28043 #endif
28044 #ifdef __cplusplus
28045 }
28046 #endif
28047
28048 int
28049 main ()
28050 {
28051 return f != $ac_func;
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 rm -f conftest.$ac_objext conftest$ac_exeext
28057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28058   (eval $ac_link) 2>&5
28059   ac_status=$?
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); } &&
28062          { ac_try='test -s conftest$ac_exeext'
28063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064   (eval $ac_try) 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; }; then
28068   eval "$as_ac_var=yes"
28069 else
28070   echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28072
28073 eval "$as_ac_var=no"
28074 fi
28075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28076 fi
28077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28079 if test `eval echo '${'$as_ac_var'}'` = yes; then
28080   cat >>confdefs.h <<_ACEOF
28081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28082 _ACEOF
28083  cat >>confdefs.h <<\_ACEOF
28084 #define HAVE_USLEEP 1
28085 _ACEOF
28086
28087 else
28088   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28089 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28090
28091 fi
28092 done
28093
28094
28095
28096 fi
28097
28098
28099
28100 fi
28101 done
28102
28103 fi
28104
28105
28106
28107 for ac_func in uname gethostname
28108 do
28109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28110 echo "$as_me:$LINENO: checking for $ac_func" >&5
28111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28112 if eval "test \"\${$as_ac_var+set}\" = set"; then
28113   echo $ECHO_N "(cached) $ECHO_C" >&6
28114 else
28115   cat >conftest.$ac_ext <<_ACEOF
28116 #line $LINENO "configure"
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122 /* System header to define __stub macros and hopefully few prototypes,
28123     which can conflict with char $ac_func (); below.
28124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28125     <limits.h> exists even on freestanding compilers.  */
28126 #ifdef __STDC__
28127 # include <limits.h>
28128 #else
28129 # include <assert.h>
28130 #endif
28131 /* Override any gcc2 internal prototype to avoid an error.  */
28132 #ifdef __cplusplus
28133 extern "C"
28134 {
28135 #endif
28136 /* We use char because int might match the return type of a gcc2
28137    builtin and then its argument prototype would still apply.  */
28138 char $ac_func ();
28139 /* The GNU C library defines this for functions which it implements
28140     to always fail with ENOSYS.  Some functions are actually named
28141     something starting with __ and the normal name is an alias.  */
28142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28143 choke me
28144 #else
28145 char (*f) () = $ac_func;
28146 #endif
28147 #ifdef __cplusplus
28148 }
28149 #endif
28150
28151 int
28152 main ()
28153 {
28154 return f != $ac_func;
28155   ;
28156   return 0;
28157 }
28158 _ACEOF
28159 rm -f conftest.$ac_objext conftest$ac_exeext
28160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28161   (eval $ac_link) 2>&5
28162   ac_status=$?
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); } &&
28165          { ac_try='test -s conftest$ac_exeext'
28166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167   (eval $ac_try) 2>&5
28168   ac_status=$?
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); }; }; then
28171   eval "$as_ac_var=yes"
28172 else
28173   echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176 eval "$as_ac_var=no"
28177 fi
28178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28179 fi
28180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28182 if test `eval echo '${'$as_ac_var'}'` = yes; then
28183   cat >>confdefs.h <<_ACEOF
28184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28185 _ACEOF
28186  break
28187 fi
28188 done
28189
28190
28191
28192
28193 ac_ext=cc
28194 ac_cpp='$CXXCPP $CPPFLAGS'
28195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28198
28199
28200
28201 for ac_func in strtok_r
28202 do
28203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28204 echo "$as_me:$LINENO: checking for $ac_func" >&5
28205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28206 if eval "test \"\${$as_ac_var+set}\" = set"; then
28207   echo $ECHO_N "(cached) $ECHO_C" >&6
28208 else
28209   cat >conftest.$ac_ext <<_ACEOF
28210 #line $LINENO "configure"
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216 /* System header to define __stub macros and hopefully few prototypes,
28217     which can conflict with char $ac_func (); below.
28218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28219     <limits.h> exists even on freestanding compilers.  */
28220 #ifdef __STDC__
28221 # include <limits.h>
28222 #else
28223 # include <assert.h>
28224 #endif
28225 /* Override any gcc2 internal prototype to avoid an error.  */
28226 #ifdef __cplusplus
28227 extern "C"
28228 {
28229 #endif
28230 /* We use char because int might match the return type of a gcc2
28231    builtin and then its argument prototype would still apply.  */
28232 char $ac_func ();
28233 /* The GNU C library defines this for functions which it implements
28234     to always fail with ENOSYS.  Some functions are actually named
28235     something starting with __ and the normal name is an alias.  */
28236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28237 choke me
28238 #else
28239 char (*f) () = $ac_func;
28240 #endif
28241 #ifdef __cplusplus
28242 }
28243 #endif
28244
28245 int
28246 main ()
28247 {
28248 return f != $ac_func;
28249   ;
28250   return 0;
28251 }
28252 _ACEOF
28253 rm -f conftest.$ac_objext conftest$ac_exeext
28254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28255   (eval $ac_link) 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); } &&
28259          { ac_try='test -s conftest$ac_exeext'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; }; then
28265   eval "$as_ac_var=yes"
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270 eval "$as_ac_var=no"
28271 fi
28272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28273 fi
28274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28276 if test `eval echo '${'$as_ac_var'}'` = yes; then
28277   cat >>confdefs.h <<_ACEOF
28278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28279 _ACEOF
28280
28281 fi
28282 done
28283
28284
28285 ac_ext=c
28286 ac_cpp='$CPP $CPPFLAGS'
28287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28290
28291
28292 INET_LINK=
28293
28294 for ac_func in inet_addr
28295 do
28296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28297 echo "$as_me:$LINENO: checking for $ac_func" >&5
28298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28299 if eval "test \"\${$as_ac_var+set}\" = set"; then
28300   echo $ECHO_N "(cached) $ECHO_C" >&6
28301 else
28302   cat >conftest.$ac_ext <<_ACEOF
28303 #line $LINENO "configure"
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309 /* System header to define __stub macros and hopefully few prototypes,
28310     which can conflict with char $ac_func (); below.
28311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28312     <limits.h> exists even on freestanding compilers.  */
28313 #ifdef __STDC__
28314 # include <limits.h>
28315 #else
28316 # include <assert.h>
28317 #endif
28318 /* Override any gcc2 internal prototype to avoid an error.  */
28319 #ifdef __cplusplus
28320 extern "C"
28321 {
28322 #endif
28323 /* We use char because int might match the return type of a gcc2
28324    builtin and then its argument prototype would still apply.  */
28325 char $ac_func ();
28326 /* The GNU C library defines this for functions which it implements
28327     to always fail with ENOSYS.  Some functions are actually named
28328     something starting with __ and the normal name is an alias.  */
28329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28330 choke me
28331 #else
28332 char (*f) () = $ac_func;
28333 #endif
28334 #ifdef __cplusplus
28335 }
28336 #endif
28337
28338 int
28339 main ()
28340 {
28341 return f != $ac_func;
28342   ;
28343   return 0;
28344 }
28345 _ACEOF
28346 rm -f conftest.$ac_objext conftest$ac_exeext
28347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28348   (eval $ac_link) 2>&5
28349   ac_status=$?
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } &&
28352          { ac_try='test -s conftest$ac_exeext'
28353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28354   (eval $ac_try) 2>&5
28355   ac_status=$?
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); }; }; then
28358   eval "$as_ac_var=yes"
28359 else
28360   echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28362
28363 eval "$as_ac_var=no"
28364 fi
28365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28366 fi
28367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28369 if test `eval echo '${'$as_ac_var'}'` = yes; then
28370   cat >>confdefs.h <<_ACEOF
28371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28372 _ACEOF
28373  cat >>confdefs.h <<\_ACEOF
28374 #define HAVE_INET_ADDR 1
28375 _ACEOF
28376
28377 else
28378
28379         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28380 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28381 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28382   echo $ECHO_N "(cached) $ECHO_C" >&6
28383 else
28384   ac_check_lib_save_LIBS=$LIBS
28385 LIBS="-lnsl  $LIBS"
28386 cat >conftest.$ac_ext <<_ACEOF
28387 #line $LINENO "configure"
28388 /* confdefs.h.  */
28389 _ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h.  */
28393
28394 /* Override any gcc2 internal prototype to avoid an error.  */
28395 #ifdef __cplusplus
28396 extern "C"
28397 #endif
28398 /* We use char because int might match the return type of a gcc2
28399    builtin and then its argument prototype would still apply.  */
28400 char inet_addr ();
28401 int
28402 main ()
28403 {
28404 inet_addr ();
28405   ;
28406   return 0;
28407 }
28408 _ACEOF
28409 rm -f conftest.$ac_objext conftest$ac_exeext
28410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28411   (eval $ac_link) 2>&5
28412   ac_status=$?
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); } &&
28415          { ac_try='test -s conftest$ac_exeext'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; }; then
28421   ac_cv_lib_nsl_inet_addr=yes
28422 else
28423   echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 ac_cv_lib_nsl_inet_addr=no
28427 fi
28428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28429 LIBS=$ac_check_lib_save_LIBS
28430 fi
28431 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28432 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28433 if test $ac_cv_lib_nsl_inet_addr = yes; then
28434   INET_LINK="nsl"
28435 else
28436   echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28437 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28438 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28439   echo $ECHO_N "(cached) $ECHO_C" >&6
28440 else
28441   ac_check_lib_save_LIBS=$LIBS
28442 LIBS="-lresolv  $LIBS"
28443 cat >conftest.$ac_ext <<_ACEOF
28444 #line $LINENO "configure"
28445 /* confdefs.h.  */
28446 _ACEOF
28447 cat confdefs.h >>conftest.$ac_ext
28448 cat >>conftest.$ac_ext <<_ACEOF
28449 /* end confdefs.h.  */
28450
28451 /* Override any gcc2 internal prototype to avoid an error.  */
28452 #ifdef __cplusplus
28453 extern "C"
28454 #endif
28455 /* We use char because int might match the return type of a gcc2
28456    builtin and then its argument prototype would still apply.  */
28457 char inet_addr ();
28458 int
28459 main ()
28460 {
28461 inet_addr ();
28462   ;
28463   return 0;
28464 }
28465 _ACEOF
28466 rm -f conftest.$ac_objext conftest$ac_exeext
28467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28468   (eval $ac_link) 2>&5
28469   ac_status=$?
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); } &&
28472          { ac_try='test -s conftest$ac_exeext'
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   ac_cv_lib_resolv_inet_addr=yes
28479 else
28480   echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483 ac_cv_lib_resolv_inet_addr=no
28484 fi
28485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28486 LIBS=$ac_check_lib_save_LIBS
28487 fi
28488 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28489 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28490 if test $ac_cv_lib_resolv_inet_addr = yes; then
28491   INET_LINK="resolv"
28492 else
28493   echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28494 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28495 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28496   echo $ECHO_N "(cached) $ECHO_C" >&6
28497 else
28498   ac_check_lib_save_LIBS=$LIBS
28499 LIBS="-lsocket  $LIBS"
28500 cat >conftest.$ac_ext <<_ACEOF
28501 #line $LINENO "configure"
28502 /* confdefs.h.  */
28503 _ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h.  */
28507
28508 /* Override any gcc2 internal prototype to avoid an error.  */
28509 #ifdef __cplusplus
28510 extern "C"
28511 #endif
28512 /* We use char because int might match the return type of a gcc2
28513    builtin and then its argument prototype would still apply.  */
28514 char inet_addr ();
28515 int
28516 main ()
28517 {
28518 inet_addr ();
28519   ;
28520   return 0;
28521 }
28522 _ACEOF
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28525   (eval $ac_link) 2>&5
28526   ac_status=$?
28527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); } &&
28529          { ac_try='test -s conftest$ac_exeext'
28530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531   (eval $ac_try) 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; }; then
28535   ac_cv_lib_socket_inet_addr=yes
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540 ac_cv_lib_socket_inet_addr=no
28541 fi
28542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28543 LIBS=$ac_check_lib_save_LIBS
28544 fi
28545 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28546 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28547 if test $ac_cv_lib_socket_inet_addr = yes; then
28548   INET_LINK="socket"
28549
28550 fi
28551
28552
28553 fi
28554
28555
28556 fi
28557
28558
28559
28560 fi
28561 done
28562
28563
28564
28565 for ac_func in inet_aton
28566 do
28567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28568 echo "$as_me:$LINENO: checking for $ac_func" >&5
28569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28570 if eval "test \"\${$as_ac_var+set}\" = set"; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 #line $LINENO "configure"
28575 /* confdefs.h.  */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h.  */
28580 /* System header to define __stub macros and hopefully few prototypes,
28581     which can conflict with char $ac_func (); below.
28582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28583     <limits.h> exists even on freestanding compilers.  */
28584 #ifdef __STDC__
28585 # include <limits.h>
28586 #else
28587 # include <assert.h>
28588 #endif
28589 /* Override any gcc2 internal prototype to avoid an error.  */
28590 #ifdef __cplusplus
28591 extern "C"
28592 {
28593 #endif
28594 /* We use char because int might match the return type of a gcc2
28595    builtin and then its argument prototype would still apply.  */
28596 char $ac_func ();
28597 /* The GNU C library defines this for functions which it implements
28598     to always fail with ENOSYS.  Some functions are actually named
28599     something starting with __ and the normal name is an alias.  */
28600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28601 choke me
28602 #else
28603 char (*f) () = $ac_func;
28604 #endif
28605 #ifdef __cplusplus
28606 }
28607 #endif
28608
28609 int
28610 main ()
28611 {
28612 return f != $ac_func;
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28619   (eval $ac_link) 2>&5
28620   ac_status=$?
28621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622   (exit $ac_status); } &&
28623          { ac_try='test -s conftest$ac_exeext'
28624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625   (eval $ac_try) 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; }; then
28629   eval "$as_ac_var=yes"
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634 eval "$as_ac_var=no"
28635 fi
28636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28637 fi
28638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28640 if test `eval echo '${'$as_ac_var'}'` = yes; then
28641   cat >>confdefs.h <<_ACEOF
28642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28643 _ACEOF
28644  cat >>confdefs.h <<\_ACEOF
28645 #define HAVE_INET_ATON 1
28646 _ACEOF
28647
28648 else
28649
28650                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28651 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28652 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28653 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656   ac_check_lib_save_LIBS=$LIBS
28657 LIBS="-l$INET_LINK  $LIBS"
28658 cat >conftest.$ac_ext <<_ACEOF
28659 #line $LINENO "configure"
28660 /* confdefs.h.  */
28661 _ACEOF
28662 cat confdefs.h >>conftest.$ac_ext
28663 cat >>conftest.$ac_ext <<_ACEOF
28664 /* end confdefs.h.  */
28665
28666 /* Override any gcc2 internal prototype to avoid an error.  */
28667 #ifdef __cplusplus
28668 extern "C"
28669 #endif
28670 /* We use char because int might match the return type of a gcc2
28671    builtin and then its argument prototype would still apply.  */
28672 char inet_aton ();
28673 int
28674 main ()
28675 {
28676 inet_aton ();
28677   ;
28678   return 0;
28679 }
28680 _ACEOF
28681 rm -f conftest.$ac_objext conftest$ac_exeext
28682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28683   (eval $ac_link) 2>&5
28684   ac_status=$?
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -s conftest$ac_exeext'
28688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28689   (eval $ac_try) 2>&5
28690   ac_status=$?
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); }; }; then
28693   eval "$as_ac_Lib=yes"
28694 else
28695   echo "$as_me: failed program was:" >&5
28696 sed 's/^/| /' conftest.$ac_ext >&5
28697
28698 eval "$as_ac_Lib=no"
28699 fi
28700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28701 LIBS=$ac_check_lib_save_LIBS
28702 fi
28703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28704 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28705 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28706   cat >>confdefs.h <<\_ACEOF
28707 #define HAVE_INET_ATON 1
28708 _ACEOF
28709
28710 fi
28711
28712
28713 fi
28714 done
28715
28716
28717 if test "x$INET_LINK" != "x"; then
28718     cat >>confdefs.h <<\_ACEOF
28719 #define HAVE_INET_ADDR 1
28720 _ACEOF
28721
28722     INET_LINK=" -l$INET_LINK"
28723 fi
28724
28725 fi
28726
28727
28728
28729 EXTRALIBS_ESD=
28730 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28731 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28732 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28733   echo $ECHO_N "(cached) $ECHO_C" >&6
28734 else
28735   ac_check_lib_save_LIBS=$LIBS
28736 LIBS="-lesd  $LIBS"
28737 cat >conftest.$ac_ext <<_ACEOF
28738 #line $LINENO "configure"
28739 /* confdefs.h.  */
28740 _ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h.  */
28744
28745 /* Override any gcc2 internal prototype to avoid an error.  */
28746 #ifdef __cplusplus
28747 extern "C"
28748 #endif
28749 /* We use char because int might match the return type of a gcc2
28750    builtin and then its argument prototype would still apply.  */
28751 char esd_close ();
28752 int
28753 main ()
28754 {
28755 esd_close ();
28756   ;
28757   return 0;
28758 }
28759 _ACEOF
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28762   (eval $ac_link) 2>&5
28763   ac_status=$?
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); } &&
28766          { ac_try='test -s conftest$ac_exeext'
28767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768   (eval $ac_try) 2>&5
28769   ac_status=$?
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); }; }; then
28772   ac_cv_lib_esd_esd_close=yes
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777 ac_cv_lib_esd_esd_close=no
28778 fi
28779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28780 LIBS=$ac_check_lib_save_LIBS
28781 fi
28782 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28783 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28784 if test $ac_cv_lib_esd_esd_close = yes; then
28785
28786
28787 for ac_header in esd.h
28788 do
28789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28791   echo "$as_me:$LINENO: checking for $ac_header" >&5
28792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28794   echo $ECHO_N "(cached) $ECHO_C" >&6
28795 fi
28796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28798 else
28799   # Is the header compilable?
28800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28802 cat >conftest.$ac_ext <<_ACEOF
28803 #line $LINENO "configure"
28804 /* confdefs.h.  */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h.  */
28809 $ac_includes_default
28810 #include <$ac_header>
28811 _ACEOF
28812 rm -f conftest.$ac_objext
28813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28814   (eval $ac_compile) 2>&5
28815   ac_status=$?
28816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817   (exit $ac_status); } &&
28818          { ac_try='test -s conftest.$ac_objext'
28819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820   (eval $ac_try) 2>&5
28821   ac_status=$?
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); }; }; then
28824   ac_header_compiler=yes
28825 else
28826   echo "$as_me: failed program was:" >&5
28827 sed 's/^/| /' conftest.$ac_ext >&5
28828
28829 ac_header_compiler=no
28830 fi
28831 rm -f conftest.$ac_objext conftest.$ac_ext
28832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28833 echo "${ECHO_T}$ac_header_compiler" >&6
28834
28835 # Is the header present?
28836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28838 cat >conftest.$ac_ext <<_ACEOF
28839 #line $LINENO "configure"
28840 /* confdefs.h.  */
28841 _ACEOF
28842 cat confdefs.h >>conftest.$ac_ext
28843 cat >>conftest.$ac_ext <<_ACEOF
28844 /* end confdefs.h.  */
28845 #include <$ac_header>
28846 _ACEOF
28847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } >/dev/null; then
28855   if test -s conftest.err; then
28856     ac_cpp_err=$ac_c_preproc_warn_flag
28857   else
28858     ac_cpp_err=
28859   fi
28860 else
28861   ac_cpp_err=yes
28862 fi
28863 if test -z "$ac_cpp_err"; then
28864   ac_header_preproc=yes
28865 else
28866   echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28868
28869   ac_header_preproc=no
28870 fi
28871 rm -f conftest.err conftest.$ac_ext
28872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28873 echo "${ECHO_T}$ac_header_preproc" >&6
28874
28875 # So?  What about this header?
28876 case $ac_header_compiler:$ac_header_preproc in
28877   yes:no )
28878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28882     (
28883       cat <<\_ASBOX
28884 ## ------------------------------------ ##
28885 ## Report this to bug-autoconf@gnu.org. ##
28886 ## ------------------------------------ ##
28887 _ASBOX
28888     ) |
28889       sed "s/^/$as_me: WARNING:     /" >&2
28890     ;;
28891   no:yes )
28892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28894     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28898     (
28899       cat <<\_ASBOX
28900 ## ------------------------------------ ##
28901 ## Report this to bug-autoconf@gnu.org. ##
28902 ## ------------------------------------ ##
28903 _ASBOX
28904     ) |
28905       sed "s/^/$as_me: WARNING:     /" >&2
28906     ;;
28907 esac
28908 echo "$as_me:$LINENO: checking for $ac_header" >&5
28909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28911   echo $ECHO_N "(cached) $ECHO_C" >&6
28912 else
28913   eval "$as_ac_Header=$ac_header_preproc"
28914 fi
28915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28917
28918 fi
28919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28920   cat >>confdefs.h <<_ACEOF
28921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28922 _ACEOF
28923
28924     EXTRALIBS_ESD="-lesd"
28925
28926 fi
28927
28928 done
28929
28930
28931 fi
28932
28933
28934
28935
28936
28937 cat >confcache <<\_ACEOF
28938 # This file is a shell script that caches the results of configure
28939 # tests run on this system so they can be shared between configure
28940 # scripts and configure runs, see configure's option --config-cache.
28941 # It is not useful on other systems.  If it contains results you don't
28942 # want to keep, you may remove or edit it.
28943 #
28944 # config.status only pays attention to the cache file if you give it
28945 # the --recheck option to rerun configure.
28946 #
28947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28949 # following values.
28950
28951 _ACEOF
28952
28953 # The following way of writing the cache mishandles newlines in values,
28954 # but we know of no workaround that is simple, portable, and efficient.
28955 # So, don't put newlines in cache variables' values.
28956 # Ultrix sh set writes to stderr and can't be redirected directly,
28957 # and sets the high bit in the cache file unless we assign to the vars.
28958 {
28959   (set) 2>&1 |
28960     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28961     *ac_space=\ *)
28962       # `set' does not quote correctly, so add quotes (double-quote
28963       # substitution turns \\\\ into \\, and sed turns \\ into \).
28964       sed -n \
28965         "s/'/'\\\\''/g;
28966           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28967       ;;
28968     *)
28969       # `set' quotes correctly as required by POSIX, so do not add quotes.
28970       sed -n \
28971         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28972       ;;
28973     esac;
28974 } |
28975   sed '
28976      t clear
28977      : clear
28978      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28979      t end
28980      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28981      : end' >>confcache
28982 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28983   if test -w $cache_file; then
28984     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28985     cat confcache >$cache_file
28986   else
28987     echo "not updating unwritable cache $cache_file"
28988   fi
28989 fi
28990 rm -f confcache
28991
28992
28993 CPP_MT_FLAG=
28994 if test "$TOOLKIT" != "MSW"; then
28995
28996
28997     THREADS_LINK=
28998     THREADS_CFLAGS=
28999
29000     if test "$wxUSE_THREADS" = "yes" ; then
29001         if test "$USE_BEOS" = 1; then
29002             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29003 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
29004             wxUSE_THREADS="no"
29005         fi
29006     fi
29007
29008     if test "$wxUSE_THREADS" = "yes" ; then
29009
29010
29011                                 THREAD_OPTS="-pthread"
29012         case "${host}" in
29013           *-*-solaris2* | *-*-sunos4* )
29014                 if test "x$GCC" = "xyes"; then
29015                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
29016                 else
29017                     THREAD_OPTS="-mt $THREAD_OPTS"
29018                 fi
29019                 ;;
29020           *-*-freebsd*)
29021                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29022                 ;;
29023           *-*-darwin* | *-*-cygwin* )
29024                                                 THREAD_OPTS=""
29025                 ;;
29026           *-*-aix*)
29027                                 THREAD_OPTS="pthreads"
29028                 ;;
29029           *-hp-hpux* )
29030                                                                 if test "x$GCC" != "xyes"; then
29031                     THREAD_OPTS=""
29032                 fi
29033                 ;;
29034
29035           *-*-irix* )
29036                                                                 if test "x$GCC" = "xyes"; then
29037                     THREAD_OPTS=""
29038                 fi
29039                 ;;
29040
29041           *-*-*UnixWare*)
29042                                 if test "x$GCC" != "xyes"; then
29043                     THREAD_OPTS="-Ethread"
29044                 fi
29045                 ;;
29046         esac
29047
29048                                 THREAD_OPTS="$THREAD_OPTS pthread none"
29049
29050                 THREADS_OK=no
29051         for flag in $THREAD_OPTS; do
29052             case $flag in
29053                 none)
29054                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29055 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
29056                     ;;
29057
29058                 -*)
29059                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29060 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
29061                     THREADS_CFLAGS="$flag"
29062                     ;;
29063
29064                 *)
29065                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29066 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
29067                     THREADS_LINK="-l$flag"
29068                     ;;
29069               esac
29070
29071               save_LIBS="$LIBS"
29072               save_CFLAGS="$CFLAGS"
29073               LIBS="$THREADS_LINK $LIBS"
29074               CFLAGS="$THREADS_CFLAGS $CFLAGS"
29075
29076               cat >conftest.$ac_ext <<_ACEOF
29077 #line $LINENO "configure"
29078 /* confdefs.h.  */
29079 _ACEOF
29080 cat confdefs.h >>conftest.$ac_ext
29081 cat >>conftest.$ac_ext <<_ACEOF
29082 /* end confdefs.h.  */
29083 #include <pthread.h>
29084 int
29085 main ()
29086 {
29087 pthread_create(0,0,0,0);
29088   ;
29089   return 0;
29090 }
29091 _ACEOF
29092 rm -f conftest.$ac_objext conftest$ac_exeext
29093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29094   (eval $ac_link) 2>&5
29095   ac_status=$?
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } &&
29098          { ac_try='test -s conftest$ac_exeext'
29099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100   (eval $ac_try) 2>&5
29101   ac_status=$?
29102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103   (exit $ac_status); }; }; then
29104   THREADS_OK=yes
29105 else
29106   echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29108
29109 fi
29110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29111
29112               LIBS="$save_LIBS"
29113               CFLAGS="$save_CFLAGS"
29114
29115               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29116 echo "${ECHO_T}$THREADS_OK" >&6
29117               if test "x$THREADS_OK" = "xyes"; then
29118                       break;
29119               fi
29120
29121               THREADS_LINK=""
29122               THREADS_CFLAGS=""
29123       done
29124
29125       if test "x$THREADS_OK" != "xyes"; then
29126           wxUSE_THREADS=no
29127           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29128 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
29129       else
29130                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29131           LIBS="$THREADS_LINK $LIBS"
29132
29133           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29134 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
29135           flag=no
29136           case "${host}" in
29137             *-aix*)
29138                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29139                 flag="-D_THREAD_SAFE"
29140                 ;;
29141             *-freebsd*)
29142                 flag="-D_THREAD_SAFE"
29143                 ;;
29144             *-hp-hpux* )
29145                 flag="-D_REENTRANT"
29146                 if test "x$GCC" != "xyes"; then
29147                                         flag="$flag -D_RWSTD_MULTI_THREAD"
29148                 fi
29149                 ;;
29150             *solaris* | alpha*-osf*)
29151                 flag="-D_REENTRANT"
29152                 ;;
29153           esac
29154           echo "$as_me:$LINENO: result: ${flag}" >&5
29155 echo "${ECHO_T}${flag}" >&6
29156           if test "x$flag" != xno; then
29157               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
29158           fi
29159
29160           if test "x$THREADS_CFLAGS" != "x"; then
29161                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
29162             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29163           fi
29164       fi
29165     fi
29166
29167         if test "$wxUSE_THREADS" = "yes" ; then
29168
29169 for ac_func in thr_setconcurrency
29170 do
29171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29172 echo "$as_me:$LINENO: checking for $ac_func" >&5
29173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29174 if eval "test \"\${$as_ac_var+set}\" = set"; then
29175   echo $ECHO_N "(cached) $ECHO_C" >&6
29176 else
29177   cat >conftest.$ac_ext <<_ACEOF
29178 #line $LINENO "configure"
29179 /* confdefs.h.  */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h.  */
29184 /* System header to define __stub macros and hopefully few prototypes,
29185     which can conflict with char $ac_func (); below.
29186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29187     <limits.h> exists even on freestanding compilers.  */
29188 #ifdef __STDC__
29189 # include <limits.h>
29190 #else
29191 # include <assert.h>
29192 #endif
29193 /* Override any gcc2 internal prototype to avoid an error.  */
29194 #ifdef __cplusplus
29195 extern "C"
29196 {
29197 #endif
29198 /* We use char because int might match the return type of a gcc2
29199    builtin and then its argument prototype would still apply.  */
29200 char $ac_func ();
29201 /* The GNU C library defines this for functions which it implements
29202     to always fail with ENOSYS.  Some functions are actually named
29203     something starting with __ and the normal name is an alias.  */
29204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29205 choke me
29206 #else
29207 char (*f) () = $ac_func;
29208 #endif
29209 #ifdef __cplusplus
29210 }
29211 #endif
29212
29213 int
29214 main ()
29215 {
29216 return f != $ac_func;
29217   ;
29218   return 0;
29219 }
29220 _ACEOF
29221 rm -f conftest.$ac_objext conftest$ac_exeext
29222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29223   (eval $ac_link) 2>&5
29224   ac_status=$?
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); } &&
29227          { ac_try='test -s conftest$ac_exeext'
29228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229   (eval $ac_try) 2>&5
29230   ac_status=$?
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); }; }; then
29233   eval "$as_ac_var=yes"
29234 else
29235   echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29237
29238 eval "$as_ac_var=no"
29239 fi
29240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29241 fi
29242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29244 if test `eval echo '${'$as_ac_var'}'` = yes; then
29245   cat >>confdefs.h <<_ACEOF
29246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29247 _ACEOF
29248
29249 fi
29250 done
29251
29252
29253
29254 for ac_header in sched.h
29255 do
29256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29258   echo "$as_me:$LINENO: checking for $ac_header" >&5
29259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29261   echo $ECHO_N "(cached) $ECHO_C" >&6
29262 fi
29263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29265 else
29266   # Is the header compilable?
29267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29269 cat >conftest.$ac_ext <<_ACEOF
29270 #line $LINENO "configure"
29271 /* confdefs.h.  */
29272 _ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h.  */
29276 $ac_includes_default
29277 #include <$ac_header>
29278 _ACEOF
29279 rm -f conftest.$ac_objext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29281   (eval $ac_compile) 2>&5
29282   ac_status=$?
29283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284   (exit $ac_status); } &&
29285          { ac_try='test -s conftest.$ac_objext'
29286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287   (eval $ac_try) 2>&5
29288   ac_status=$?
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); }; }; then
29291   ac_header_compiler=yes
29292 else
29293   echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29295
29296 ac_header_compiler=no
29297 fi
29298 rm -f conftest.$ac_objext conftest.$ac_ext
29299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29300 echo "${ECHO_T}$ac_header_compiler" >&6
29301
29302 # Is the header present?
29303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29305 cat >conftest.$ac_ext <<_ACEOF
29306 #line $LINENO "configure"
29307 /* confdefs.h.  */
29308 _ACEOF
29309 cat confdefs.h >>conftest.$ac_ext
29310 cat >>conftest.$ac_ext <<_ACEOF
29311 /* end confdefs.h.  */
29312 #include <$ac_header>
29313 _ACEOF
29314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29316   ac_status=$?
29317   grep -v '^ *+' conftest.er1 >conftest.err
29318   rm -f conftest.er1
29319   cat conftest.err >&5
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); } >/dev/null; then
29322   if test -s conftest.err; then
29323     ac_cpp_err=$ac_c_preproc_warn_flag
29324   else
29325     ac_cpp_err=
29326   fi
29327 else
29328   ac_cpp_err=yes
29329 fi
29330 if test -z "$ac_cpp_err"; then
29331   ac_header_preproc=yes
29332 else
29333   echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29335
29336   ac_header_preproc=no
29337 fi
29338 rm -f conftest.err conftest.$ac_ext
29339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29340 echo "${ECHO_T}$ac_header_preproc" >&6
29341
29342 # So?  What about this header?
29343 case $ac_header_compiler:$ac_header_preproc in
29344   yes:no )
29345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29349     (
29350       cat <<\_ASBOX
29351 ## ------------------------------------ ##
29352 ## Report this to bug-autoconf@gnu.org. ##
29353 ## ------------------------------------ ##
29354 _ASBOX
29355     ) |
29356       sed "s/^/$as_me: WARNING:     /" >&2
29357     ;;
29358   no:yes )
29359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29361     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29365     (
29366       cat <<\_ASBOX
29367 ## ------------------------------------ ##
29368 ## Report this to bug-autoconf@gnu.org. ##
29369 ## ------------------------------------ ##
29370 _ASBOX
29371     ) |
29372       sed "s/^/$as_me: WARNING:     /" >&2
29373     ;;
29374 esac
29375 echo "$as_me:$LINENO: checking for $ac_header" >&5
29376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29378   echo $ECHO_N "(cached) $ECHO_C" >&6
29379 else
29380   eval "$as_ac_Header=$ac_header_preproc"
29381 fi
29382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29384
29385 fi
29386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29387   cat >>confdefs.h <<_ACEOF
29388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29389 _ACEOF
29390
29391 fi
29392
29393 done
29394
29395       if test "$ac_cv_header_sched_h" = "yes"; then
29396           echo "$as_me:$LINENO: checking for sched_yield" >&5
29397 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29398 if test "${ac_cv_func_sched_yield+set}" = set; then
29399   echo $ECHO_N "(cached) $ECHO_C" >&6
29400 else
29401   cat >conftest.$ac_ext <<_ACEOF
29402 #line $LINENO "configure"
29403 /* confdefs.h.  */
29404 _ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h.  */
29408 /* System header to define __stub macros and hopefully few prototypes,
29409     which can conflict with char sched_yield (); below.
29410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29411     <limits.h> exists even on freestanding compilers.  */
29412 #ifdef __STDC__
29413 # include <limits.h>
29414 #else
29415 # include <assert.h>
29416 #endif
29417 /* Override any gcc2 internal prototype to avoid an error.  */
29418 #ifdef __cplusplus
29419 extern "C"
29420 {
29421 #endif
29422 /* We use char because int might match the return type of a gcc2
29423    builtin and then its argument prototype would still apply.  */
29424 char sched_yield ();
29425 /* The GNU C library defines this for functions which it implements
29426     to always fail with ENOSYS.  Some functions are actually named
29427     something starting with __ and the normal name is an alias.  */
29428 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29429 choke me
29430 #else
29431 char (*f) () = sched_yield;
29432 #endif
29433 #ifdef __cplusplus
29434 }
29435 #endif
29436
29437 int
29438 main ()
29439 {
29440 return f != sched_yield;
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29447   (eval $ac_link) 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); } &&
29451          { ac_try='test -s conftest$ac_exeext'
29452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453   (eval $ac_try) 2>&5
29454   ac_status=$?
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); }; }; then
29457   ac_cv_func_sched_yield=yes
29458 else
29459   echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29461
29462 ac_cv_func_sched_yield=no
29463 fi
29464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29465 fi
29466 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29467 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29468 if test $ac_cv_func_sched_yield = yes; then
29469   cat >>confdefs.h <<\_ACEOF
29470 #define HAVE_SCHED_YIELD 1
29471 _ACEOF
29472
29473 else
29474
29475                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29476 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29477 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29478   echo $ECHO_N "(cached) $ECHO_C" >&6
29479 else
29480   ac_check_lib_save_LIBS=$LIBS
29481 LIBS="-lposix4  $LIBS"
29482 cat >conftest.$ac_ext <<_ACEOF
29483 #line $LINENO "configure"
29484 /* confdefs.h.  */
29485 _ACEOF
29486 cat confdefs.h >>conftest.$ac_ext
29487 cat >>conftest.$ac_ext <<_ACEOF
29488 /* end confdefs.h.  */
29489
29490 /* Override any gcc2 internal prototype to avoid an error.  */
29491 #ifdef __cplusplus
29492 extern "C"
29493 #endif
29494 /* We use char because int might match the return type of a gcc2
29495    builtin and then its argument prototype would still apply.  */
29496 char sched_yield ();
29497 int
29498 main ()
29499 {
29500 sched_yield ();
29501   ;
29502   return 0;
29503 }
29504 _ACEOF
29505 rm -f conftest.$ac_objext conftest$ac_exeext
29506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29507   (eval $ac_link) 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } &&
29511          { ac_try='test -s conftest$ac_exeext'
29512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513   (eval $ac_try) 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; }; then
29517   ac_cv_lib_posix4_sched_yield=yes
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29521
29522 ac_cv_lib_posix4_sched_yield=no
29523 fi
29524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29525 LIBS=$ac_check_lib_save_LIBS
29526 fi
29527 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29528 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29529 if test $ac_cv_lib_posix4_sched_yield = yes; then
29530   cat >>confdefs.h <<\_ACEOF
29531 #define HAVE_SCHED_YIELD 1
29532 _ACEOF
29533  POSIX4_LINK=" -lposix4"
29534 else
29535   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29536 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29537
29538 fi
29539
29540
29541
29542 fi
29543
29544       fi
29545
29546                                           HAVE_PRIOR_FUNCS=0
29547       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29548 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29549 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29550   echo $ECHO_N "(cached) $ECHO_C" >&6
29551 else
29552   cat >conftest.$ac_ext <<_ACEOF
29553 #line $LINENO "configure"
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559 /* System header to define __stub macros and hopefully few prototypes,
29560     which can conflict with char pthread_attr_getschedpolicy (); below.
29561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29562     <limits.h> exists even on freestanding compilers.  */
29563 #ifdef __STDC__
29564 # include <limits.h>
29565 #else
29566 # include <assert.h>
29567 #endif
29568 /* Override any gcc2 internal prototype to avoid an error.  */
29569 #ifdef __cplusplus
29570 extern "C"
29571 {
29572 #endif
29573 /* We use char because int might match the return type of a gcc2
29574    builtin and then its argument prototype would still apply.  */
29575 char pthread_attr_getschedpolicy ();
29576 /* The GNU C library defines this for functions which it implements
29577     to always fail with ENOSYS.  Some functions are actually named
29578     something starting with __ and the normal name is an alias.  */
29579 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29580 choke me
29581 #else
29582 char (*f) () = pthread_attr_getschedpolicy;
29583 #endif
29584 #ifdef __cplusplus
29585 }
29586 #endif
29587
29588 int
29589 main ()
29590 {
29591 return f != pthread_attr_getschedpolicy;
29592   ;
29593   return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext conftest$ac_exeext
29597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29598   (eval $ac_link) 2>&5
29599   ac_status=$?
29600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); } &&
29602          { ac_try='test -s conftest$ac_exeext'
29603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29604   (eval $ac_try) 2>&5
29605   ac_status=$?
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); }; }; then
29608   ac_cv_func_pthread_attr_getschedpolicy=yes
29609 else
29610   echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613 ac_cv_func_pthread_attr_getschedpolicy=no
29614 fi
29615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29616 fi
29617 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29618 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29619 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29620   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29621 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29622 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29623   echo $ECHO_N "(cached) $ECHO_C" >&6
29624 else
29625   cat >conftest.$ac_ext <<_ACEOF
29626 #line $LINENO "configure"
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 /* System header to define __stub macros and hopefully few prototypes,
29633     which can conflict with char pthread_attr_setschedparam (); below.
29634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29635     <limits.h> exists even on freestanding compilers.  */
29636 #ifdef __STDC__
29637 # include <limits.h>
29638 #else
29639 # include <assert.h>
29640 #endif
29641 /* Override any gcc2 internal prototype to avoid an error.  */
29642 #ifdef __cplusplus
29643 extern "C"
29644 {
29645 #endif
29646 /* We use char because int might match the return type of a gcc2
29647    builtin and then its argument prototype would still apply.  */
29648 char pthread_attr_setschedparam ();
29649 /* The GNU C library defines this for functions which it implements
29650     to always fail with ENOSYS.  Some functions are actually named
29651     something starting with __ and the normal name is an alias.  */
29652 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29653 choke me
29654 #else
29655 char (*f) () = pthread_attr_setschedparam;
29656 #endif
29657 #ifdef __cplusplus
29658 }
29659 #endif
29660
29661 int
29662 main ()
29663 {
29664 return f != pthread_attr_setschedparam;
29665   ;
29666   return 0;
29667 }
29668 _ACEOF
29669 rm -f conftest.$ac_objext conftest$ac_exeext
29670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29671   (eval $ac_link) 2>&5
29672   ac_status=$?
29673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); } &&
29675          { ac_try='test -s conftest$ac_exeext'
29676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29677   (eval $ac_try) 2>&5
29678   ac_status=$?
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); }; }; then
29681   ac_cv_func_pthread_attr_setschedparam=yes
29682 else
29683   echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29685
29686 ac_cv_func_pthread_attr_setschedparam=no
29687 fi
29688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29689 fi
29690 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29691 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29692 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29693   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29694 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29695 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29696   echo $ECHO_N "(cached) $ECHO_C" >&6
29697 else
29698   cat >conftest.$ac_ext <<_ACEOF
29699 #line $LINENO "configure"
29700 /* confdefs.h.  */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h.  */
29705 /* System header to define __stub macros and hopefully few prototypes,
29706     which can conflict with char sched_get_priority_max (); below.
29707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29708     <limits.h> exists even on freestanding compilers.  */
29709 #ifdef __STDC__
29710 # include <limits.h>
29711 #else
29712 # include <assert.h>
29713 #endif
29714 /* Override any gcc2 internal prototype to avoid an error.  */
29715 #ifdef __cplusplus
29716 extern "C"
29717 {
29718 #endif
29719 /* We use char because int might match the return type of a gcc2
29720    builtin and then its argument prototype would still apply.  */
29721 char sched_get_priority_max ();
29722 /* The GNU C library defines this for functions which it implements
29723     to always fail with ENOSYS.  Some functions are actually named
29724     something starting with __ and the normal name is an alias.  */
29725 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29726 choke me
29727 #else
29728 char (*f) () = sched_get_priority_max;
29729 #endif
29730 #ifdef __cplusplus
29731 }
29732 #endif
29733
29734 int
29735 main ()
29736 {
29737 return f != sched_get_priority_max;
29738   ;
29739   return 0;
29740 }
29741 _ACEOF
29742 rm -f conftest.$ac_objext conftest$ac_exeext
29743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29744   (eval $ac_link) 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); } &&
29748          { ac_try='test -s conftest$ac_exeext'
29749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750   (eval $ac_try) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; }; then
29754   ac_cv_func_sched_get_priority_max=yes
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759 ac_cv_func_sched_get_priority_max=no
29760 fi
29761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29762 fi
29763 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29764 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29765 if test $ac_cv_func_sched_get_priority_max = yes; then
29766   HAVE_PRIOR_FUNCS=1
29767 else
29768   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29769 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29770 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29771   echo $ECHO_N "(cached) $ECHO_C" >&6
29772 else
29773   ac_check_lib_save_LIBS=$LIBS
29774 LIBS="-lposix4  $LIBS"
29775 cat >conftest.$ac_ext <<_ACEOF
29776 #line $LINENO "configure"
29777 /* confdefs.h.  */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h.  */
29782
29783 /* Override any gcc2 internal prototype to avoid an error.  */
29784 #ifdef __cplusplus
29785 extern "C"
29786 #endif
29787 /* We use char because int might match the return type of a gcc2
29788    builtin and then its argument prototype would still apply.  */
29789 char sched_get_priority_max ();
29790 int
29791 main ()
29792 {
29793 sched_get_priority_max ();
29794   ;
29795   return 0;
29796 }
29797 _ACEOF
29798 rm -f conftest.$ac_objext conftest$ac_exeext
29799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29800   (eval $ac_link) 2>&5
29801   ac_status=$?
29802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803   (exit $ac_status); } &&
29804          { ac_try='test -s conftest$ac_exeext'
29805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806   (eval $ac_try) 2>&5
29807   ac_status=$?
29808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809   (exit $ac_status); }; }; then
29810   ac_cv_lib_posix4_sched_get_priority_max=yes
29811 else
29812   echo "$as_me: failed program was:" >&5
29813 sed 's/^/| /' conftest.$ac_ext >&5
29814
29815 ac_cv_lib_posix4_sched_get_priority_max=no
29816 fi
29817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29818 LIBS=$ac_check_lib_save_LIBS
29819 fi
29820 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29821 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29822 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
29823
29824                                 HAVE_PRIOR_FUNCS=1
29825                                 POSIX4_LINK=" -lposix4"
29826
29827 fi
29828
29829
29830 fi
29831
29832
29833 fi
29834
29835
29836 fi
29837
29838
29839       if test "$HAVE_PRIOR_FUNCS" = 1; then
29840         cat >>confdefs.h <<\_ACEOF
29841 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
29842 _ACEOF
29843
29844       else
29845         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29846 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
29847       fi
29848
29849       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29850 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29851 if test "${ac_cv_func_pthread_cancel+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   cat >conftest.$ac_ext <<_ACEOF
29855 #line $LINENO "configure"
29856 /* confdefs.h.  */
29857 _ACEOF
29858 cat confdefs.h >>conftest.$ac_ext
29859 cat >>conftest.$ac_ext <<_ACEOF
29860 /* end confdefs.h.  */
29861 /* System header to define __stub macros and hopefully few prototypes,
29862     which can conflict with char pthread_cancel (); below.
29863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29864     <limits.h> exists even on freestanding compilers.  */
29865 #ifdef __STDC__
29866 # include <limits.h>
29867 #else
29868 # include <assert.h>
29869 #endif
29870 /* Override any gcc2 internal prototype to avoid an error.  */
29871 #ifdef __cplusplus
29872 extern "C"
29873 {
29874 #endif
29875 /* We use char because int might match the return type of a gcc2
29876    builtin and then its argument prototype would still apply.  */
29877 char pthread_cancel ();
29878 /* The GNU C library defines this for functions which it implements
29879     to always fail with ENOSYS.  Some functions are actually named
29880     something starting with __ and the normal name is an alias.  */
29881 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29882 choke me
29883 #else
29884 char (*f) () = pthread_cancel;
29885 #endif
29886 #ifdef __cplusplus
29887 }
29888 #endif
29889
29890 int
29891 main ()
29892 {
29893 return f != pthread_cancel;
29894   ;
29895   return 0;
29896 }
29897 _ACEOF
29898 rm -f conftest.$ac_objext conftest$ac_exeext
29899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29900   (eval $ac_link) 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); } &&
29904          { ac_try='test -s conftest$ac_exeext'
29905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906   (eval $ac_try) 2>&5
29907   ac_status=$?
29908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909   (exit $ac_status); }; }; then
29910   ac_cv_func_pthread_cancel=yes
29911 else
29912   echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29914
29915 ac_cv_func_pthread_cancel=no
29916 fi
29917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29918 fi
29919 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29920 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29921 if test $ac_cv_func_pthread_cancel = yes; then
29922   cat >>confdefs.h <<\_ACEOF
29923 #define HAVE_PTHREAD_CANCEL 1
29924 _ACEOF
29925
29926 else
29927   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29928 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
29929 fi
29930
29931
29932       echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29933 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29934 if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29935   echo $ECHO_N "(cached) $ECHO_C" >&6
29936 else
29937
29938         cat >conftest.$ac_ext <<_ACEOF
29939 #line $LINENO "configure"
29940 /* confdefs.h.  */
29941 _ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h.  */
29945 #include <pthread.h>
29946 int
29947 main ()
29948 {
29949
29950                         pthread_cleanup_push(NULL, NULL);
29951                         pthread_cleanup_pop(0);
29952
29953   ;
29954   return 0;
29955 }
29956 _ACEOF
29957 rm -f conftest.$ac_objext
29958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29959   (eval $ac_compile) 2>&5
29960   ac_status=$?
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); } &&
29963          { ac_try='test -s conftest.$ac_objext'
29964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965   (eval $ac_try) 2>&5
29966   ac_status=$?
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); }; }; then
29969
29970                         wx_cv_func_pthread_cleanup_push=yes
29971
29972 else
29973   echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29975
29976
29977                         wx_cv_func_pthread_cleanup_push=no
29978
29979 fi
29980 rm -f conftest.$ac_objext conftest.$ac_ext
29981
29982 fi
29983 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29984 echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
29985
29986       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
29987           cat >>confdefs.h <<\_ACEOF
29988 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
29989 _ACEOF
29990
29991       fi
29992
29993
29994       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29995 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29996 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29997   echo $ECHO_N "(cached) $ECHO_C" >&6
29998 else
29999
30000         cat >conftest.$ac_ext <<_ACEOF
30001 #line $LINENO "configure"
30002 /* confdefs.h.  */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h.  */
30007 #include <pthread.h>
30008 int
30009 main ()
30010 {
30011
30012                pthread_mutexattr_t attr;
30013                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
30014
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext
30020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30021   (eval $ac_compile) 2>&5
30022   ac_status=$?
30023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024   (exit $ac_status); } &&
30025          { ac_try='test -s conftest.$ac_objext'
30026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30027   (eval $ac_try) 2>&5
30028   ac_status=$?
30029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); }; }; then
30031
30032                wx_cv_type_pthread_mutexattr_t=yes
30033
30034 else
30035   echo "$as_me: failed program was:" >&5
30036 sed 's/^/| /' conftest.$ac_ext >&5
30037
30038
30039                wx_cv_type_pthread_mutexattr_t=no
30040
30041
30042 fi
30043 rm -f conftest.$ac_objext conftest.$ac_ext
30044
30045 fi
30046 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30047 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
30048
30049       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
30050         cat >>confdefs.h <<\_ACEOF
30051 #define HAVE_PTHREAD_MUTEXATTR_T 1
30052 _ACEOF
30053
30054       else
30055                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30056 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30057 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30058   echo $ECHO_N "(cached) $ECHO_C" >&6
30059 else
30060
30061             cat >conftest.$ac_ext <<_ACEOF
30062 #line $LINENO "configure"
30063 /* confdefs.h.  */
30064 _ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h.  */
30068 #include <pthread.h>
30069 int
30070 main ()
30071 {
30072
30073                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
30074
30075   ;
30076   return 0;
30077 }
30078 _ACEOF
30079 rm -f conftest.$ac_objext
30080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30081   (eval $ac_compile) 2>&5
30082   ac_status=$?
30083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084   (exit $ac_status); } &&
30085          { ac_try='test -s conftest.$ac_objext'
30086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087   (eval $ac_try) 2>&5
30088   ac_status=$?
30089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090   (exit $ac_status); }; }; then
30091
30092                     wx_cv_type_pthread_rec_mutex_init=yes
30093
30094 else
30095   echo "$as_me: failed program was:" >&5
30096 sed 's/^/| /' conftest.$ac_ext >&5
30097
30098
30099                     wx_cv_type_pthread_rec_mutex_init=no
30100
30101
30102 fi
30103 rm -f conftest.$ac_objext conftest.$ac_ext
30104
30105 fi
30106 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30107 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
30108         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
30109           cat >>confdefs.h <<\_ACEOF
30110 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
30111 _ACEOF
30112
30113         else
30114                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30115 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
30116         fi
30117       fi
30118     fi
30119
30120 else
30121     if test "$wxUSE_THREADS" = "yes" ; then
30122       case "${host}" in
30123         *-*-mingw32* )
30124                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30125 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30126 if test "${wx_cv_cflags_mthread+set}" = set; then
30127   echo $ECHO_N "(cached) $ECHO_C" >&6
30128 else
30129
30130                     CFLAGS_OLD="$CFLAGS"
30131                     CFLAGS="$CFLAGS -mthreads"
30132                     cat >conftest.$ac_ext <<_ACEOF
30133 #line $LINENO "configure"
30134 /* confdefs.h.  */
30135 _ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h.  */
30139
30140 int
30141 main ()
30142 {
30143
30144   ;
30145   return 0;
30146 }
30147 _ACEOF
30148 rm -f conftest.$ac_objext
30149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30150   (eval $ac_compile) 2>&5
30151   ac_status=$?
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); } &&
30154          { ac_try='test -s conftest.$ac_objext'
30155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156   (eval $ac_try) 2>&5
30157   ac_status=$?
30158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159   (exit $ac_status); }; }; then
30160   wx_cv_cflags_mthread=yes
30161 else
30162   echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165 wx_cv_cflags_mthread=no
30166
30167 fi
30168 rm -f conftest.$ac_objext conftest.$ac_ext
30169
30170
30171 fi
30172 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30173 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
30174
30175             if test "$wx_cv_cflags_mthread" = "yes"; then
30176                                 CXXFLAGS="$CXXFLAGS -mthreads"
30177                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30178                 LDFLAGS="$LDFLAGS -mthreads"
30179             else
30180                                 CFLAGS="$CFLAGS_OLD"
30181             fi
30182         ;;
30183       esac
30184     fi
30185 fi
30186
30187 if test "$wxUSE_THREADS" = "yes"; then
30188   cat >>confdefs.h <<\_ACEOF
30189 #define wxUSE_THREADS 1
30190 _ACEOF
30191
30192
30193   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
30194 else
30195       if test "$ac_cv_func_strtok_r" = "yes"; then
30196     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30197 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
30198     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30199         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
30200         echo "$as_me:$LINENO: result: yes" >&5
30201 echo "${ECHO_T}yes" >&6
30202     else
30203         echo "$as_me:$LINENO: result: no" >&5
30204 echo "${ECHO_T}no" >&6
30205     fi
30206   fi
30207 fi
30208
30209 if test "$WXGTK20" = 1 ; then
30210   cat >>confdefs.h <<_ACEOF
30211 #define __WXGTK20__ $WXGTK20
30212 _ACEOF
30213
30214   WXGTK12=1
30215 fi
30216
30217 if test "$WXGTK12" = 1 ; then
30218   cat >>confdefs.h <<_ACEOF
30219 #define __WXGTK12__ $WXGTK12
30220 _ACEOF
30221
30222 fi
30223
30224 if test "$WXGTK127" = 1 ; then
30225   cat >>confdefs.h <<_ACEOF
30226 #define __WXGTK127__ $WXGTK127
30227 _ACEOF
30228
30229 fi
30230
30231 WXDEBUG=
30232
30233 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30234     WXDEBUG="-g"
30235     wxUSE_OPTIMISE=no
30236 fi
30237
30238 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30239     wxUSE_DEBUG_INFO=yes
30240     WXDEBUG="-ggdb"
30241 fi
30242
30243 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
30244     cat >>confdefs.h <<\_ACEOF
30245 #define WXDEBUG 1
30246 _ACEOF
30247
30248     WXDEBUG_DEFINE="-D__WXDEBUG__"
30249 else
30250     if test "$wxUSE_GTK" = 1 ; then
30251         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30252     fi
30253 fi
30254
30255 if test "$wxUSE_MEM_TRACING" = "yes" ; then
30256     cat >>confdefs.h <<\_ACEOF
30257 #define wxUSE_MEMORY_TRACING 1
30258 _ACEOF
30259
30260     cat >>confdefs.h <<\_ACEOF
30261 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
30262 _ACEOF
30263
30264     cat >>confdefs.h <<\_ACEOF
30265 #define wxUSE_DEBUG_NEW_ALWAYS 1
30266 _ACEOF
30267
30268     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30269 fi
30270
30271 if test "$wxUSE_DMALLOC" = "yes" ; then
30272     DMALLOC_LIBS="-ldmalloc"
30273 fi
30274
30275 PROFILE=
30276 if test "$wxUSE_PROFILE" = "yes" ; then
30277     PROFILE=" -pg"
30278 fi
30279
30280 CODE_GEN_FLAGS=
30281 CODE_GEN_FLAGS_CXX=
30282 if test "$GCC" = "yes" ; then
30283     if test "$wxUSE_NO_RTTI" = "yes" ; then
30284         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
30285     fi
30286     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30287         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30288     fi
30289     if test "$wxUSE_PERMISSIVE" = "yes" ; then
30290         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30291     fi
30292
30293                                                 case "${host}" in
30294       powerpc*-*-aix* )
30295         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30296         ;;
30297       *-hppa* )
30298         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30299         ;;
30300     esac
30301 fi
30302
30303 OPTIMISE=
30304 if test "$wxUSE_OPTIMISE" = "no" ; then
30305     if test "$GCC" = yes ; then
30306                         OPTIMISE="-O0"
30307     fi
30308 else
30309     if test "$GCC" = yes ; then
30310         OPTIMISE="-O2"
30311
30312                 case "${host}" in
30313             i586-*-*|i686-*-* )
30314             OPTIMISE="${OPTIMISE} "
30315         ;;
30316         esac
30317     else
30318         OPTIMISE="-O"
30319     fi
30320 fi
30321
30322
30323 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
30324     cat >>confdefs.h <<\_ACEOF
30325 #define WXWIN_COMPATIBILITY_2 1
30326 _ACEOF
30327
30328
30329     WXWIN_COMPATIBILITY_2_2="yes"
30330 fi
30331
30332 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
30333     cat >>confdefs.h <<\_ACEOF
30334 #define WXWIN_COMPATIBILITY_2_2 1
30335 _ACEOF
30336
30337
30338     WXWIN_COMPATIBILITY_2_4="yes"
30339 fi
30340
30341 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
30342     cat >>confdefs.h <<\_ACEOF
30343 #define WXWIN_COMPATIBILITY_2_4 1
30344 _ACEOF
30345
30346 fi
30347
30348
30349 if test "$wxUSE_GUI" = "yes"; then
30350   cat >>confdefs.h <<\_ACEOF
30351 #define wxUSE_GUI 1
30352 _ACEOF
30353
30354
30355                       else
30356   cat >>confdefs.h <<\_ACEOF
30357 #define wxUSE_NOGUI 1
30358 _ACEOF
30359
30360 fi
30361
30362
30363 if test "$wxUSE_UNIX" = "yes"; then
30364   cat >>confdefs.h <<\_ACEOF
30365 #define wxUSE_UNIX 1
30366 _ACEOF
30367
30368 fi
30369
30370
30371 if test "$wxUSE_STL" = "yes"; then
30372   cat >>confdefs.h <<\_ACEOF
30373 #define wxUSE_STL 1
30374 _ACEOF
30375
30376 fi
30377
30378 if test "$wxUSE_APPLE_IEEE" = "yes"; then
30379   cat >>confdefs.h <<\_ACEOF
30380 #define wxUSE_APPLE_IEEE 1
30381 _ACEOF
30382
30383 fi
30384
30385 if test "$wxUSE_TIMER" = "yes"; then
30386   cat >>confdefs.h <<\_ACEOF
30387 #define wxUSE_TIMER 1
30388 _ACEOF
30389
30390 fi
30391
30392 if test "$wxUSE_WAVE" = "yes"; then
30393   cat >>confdefs.h <<\_ACEOF
30394 #define wxUSE_WAVE 1
30395 _ACEOF
30396
30397 fi
30398
30399 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
30400   cat >>confdefs.h <<\_ACEOF
30401 #define wxUSE_CMDLINE_PARSER 1
30402 _ACEOF
30403
30404 fi
30405
30406 if test "$wxUSE_STOPWATCH" = "yes"; then
30407   cat >>confdefs.h <<\_ACEOF
30408 #define wxUSE_STOPWATCH 1
30409 _ACEOF
30410
30411 fi
30412
30413 if test "$wxUSE_DATETIME" = "yes"; then
30414   cat >>confdefs.h <<\_ACEOF
30415 #define wxUSE_DATETIME 1
30416 _ACEOF
30417
30418 fi
30419
30420 if test "$wxUSE_FILE" = "yes"; then
30421   cat >>confdefs.h <<\_ACEOF
30422 #define wxUSE_FILE 1
30423 _ACEOF
30424
30425 fi
30426
30427 if test "$wxUSE_FFILE" = "yes"; then
30428   cat >>confdefs.h <<\_ACEOF
30429 #define wxUSE_FFILE 1
30430 _ACEOF
30431
30432 fi
30433
30434 if test "$wxUSE_FILESYSTEM" = "yes"; then
30435   cat >>confdefs.h <<\_ACEOF
30436 #define wxUSE_FILESYSTEM 1
30437 _ACEOF
30438
30439 fi
30440
30441 if test "$wxUSE_FS_ZIP" = "yes"; then
30442   cat >>confdefs.h <<\_ACEOF
30443 #define wxUSE_FS_ZIP 1
30444 _ACEOF
30445
30446 fi
30447
30448 if test "$wxUSE_ZIPSTREAM" = "yes"; then
30449   cat >>confdefs.h <<\_ACEOF
30450 #define wxUSE_ZIPSTREAM 1
30451 _ACEOF
30452
30453 fi
30454
30455 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30456   cat >>confdefs.h <<\_ACEOF
30457 #define wxUSE_ON_FATAL_EXCEPTION 1
30458 _ACEOF
30459
30460 fi
30461
30462 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30463   cat >>confdefs.h <<\_ACEOF
30464 #define wxUSE_SNGLINST_CHECKER 1
30465 _ACEOF
30466
30467 fi
30468
30469 if test "$wxUSE_BUSYINFO" = "yes"; then
30470   cat >>confdefs.h <<\_ACEOF
30471 #define wxUSE_BUSYINFO 1
30472 _ACEOF
30473
30474 fi
30475
30476 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
30477   cat >>confdefs.h <<\_ACEOF
30478 #define wxUSE_STD_IOSTREAM 1
30479 _ACEOF
30480
30481 fi
30482
30483 if test "$wxUSE_TEXTBUFFER" = "yes"; then
30484     cat >>confdefs.h <<\_ACEOF
30485 #define wxUSE_TEXTBUFFER 1
30486 _ACEOF
30487
30488 fi
30489
30490 if test "$wxUSE_TEXTFILE" = "yes"; then
30491   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
30492     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30493 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
30494   else
30495     cat >>confdefs.h <<\_ACEOF
30496 #define wxUSE_TEXTFILE 1
30497 _ACEOF
30498
30499   fi
30500 fi
30501
30502 if test "$wxUSE_CONFIG" = "yes" ; then
30503   if test "$wxUSE_TEXTFILE" != "yes"; then
30504     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30505 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
30506   else
30507     cat >>confdefs.h <<\_ACEOF
30508 #define wxUSE_CONFIG 1
30509 _ACEOF
30510
30511     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30512   fi
30513 fi
30514
30515 if test "$wxUSE_INTL" = "yes" ; then
30516   if test "$wxUSE_FILE" != "yes"; then
30517     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30518 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
30519   else
30520     cat >>confdefs.h <<\_ACEOF
30521 #define wxUSE_INTL 1
30522 _ACEOF
30523
30524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
30525     GUIDIST="$GUIDIST INTL_DIST"
30526   fi
30527 fi
30528
30529 if test "$wxUSE_LOG" = "yes"; then
30530   cat >>confdefs.h <<\_ACEOF
30531 #define wxUSE_LOG 1
30532 _ACEOF
30533
30534
30535     if test "$wxUSE_LOGGUI" = "yes"; then
30536       cat >>confdefs.h <<\_ACEOF
30537 #define wxUSE_LOGGUI 1
30538 _ACEOF
30539
30540     fi
30541
30542     if test "$wxUSE_LOGWINDOW" = "yes"; then
30543       cat >>confdefs.h <<\_ACEOF
30544 #define wxUSE_LOGWINDOW 1
30545 _ACEOF
30546
30547     fi
30548
30549     if test "$wxUSE_LOGDIALOG" = "yes"; then
30550       cat >>confdefs.h <<\_ACEOF
30551 #define wxUSE_LOG_DIALOG 1
30552 _ACEOF
30553
30554     fi
30555 fi
30556
30557 if test "$wxUSE_LONGLONG" = "yes"; then
30558   cat >>confdefs.h <<\_ACEOF
30559 #define wxUSE_LONGLONG 1
30560 _ACEOF
30561
30562 fi
30563
30564 if test "$wxUSE_GEOMETRY" = "yes"; then
30565   cat >>confdefs.h <<\_ACEOF
30566 #define wxUSE_GEOMETRY 1
30567 _ACEOF
30568
30569 fi
30570
30571 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
30572   cat >>confdefs.h <<\_ACEOF
30573 #define wxUSE_DIALUP_MANAGER 1
30574 _ACEOF
30575
30576   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
30577 fi
30578
30579 if test "$wxUSE_STREAMS" = "yes" ; then
30580   cat >>confdefs.h <<\_ACEOF
30581 #define wxUSE_STREAMS 1
30582 _ACEOF
30583
30584 fi
30585
30586
30587 if test "$wxUSE_DATETIME" = "yes"; then
30588
30589 for ac_func in strptime
30590 do
30591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30592 echo "$as_me:$LINENO: checking for $ac_func" >&5
30593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30594 if eval "test \"\${$as_ac_var+set}\" = set"; then
30595   echo $ECHO_N "(cached) $ECHO_C" >&6
30596 else
30597   cat >conftest.$ac_ext <<_ACEOF
30598 #line $LINENO "configure"
30599 /* confdefs.h.  */
30600 _ACEOF
30601 cat confdefs.h >>conftest.$ac_ext
30602 cat >>conftest.$ac_ext <<_ACEOF
30603 /* end confdefs.h.  */
30604 /* System header to define __stub macros and hopefully few prototypes,
30605     which can conflict with char $ac_func (); below.
30606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607     <limits.h> exists even on freestanding compilers.  */
30608 #ifdef __STDC__
30609 # include <limits.h>
30610 #else
30611 # include <assert.h>
30612 #endif
30613 /* Override any gcc2 internal prototype to avoid an error.  */
30614 #ifdef __cplusplus
30615 extern "C"
30616 {
30617 #endif
30618 /* We use char because int might match the return type of a gcc2
30619    builtin and then its argument prototype would still apply.  */
30620 char $ac_func ();
30621 /* The GNU C library defines this for functions which it implements
30622     to always fail with ENOSYS.  Some functions are actually named
30623     something starting with __ and the normal name is an alias.  */
30624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30625 choke me
30626 #else
30627 char (*f) () = $ac_func;
30628 #endif
30629 #ifdef __cplusplus
30630 }
30631 #endif
30632
30633 int
30634 main ()
30635 {
30636 return f != $ac_func;
30637   ;
30638   return 0;
30639 }
30640 _ACEOF
30641 rm -f conftest.$ac_objext conftest$ac_exeext
30642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30643   (eval $ac_link) 2>&5
30644   ac_status=$?
30645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646   (exit $ac_status); } &&
30647          { ac_try='test -s conftest$ac_exeext'
30648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649   (eval $ac_try) 2>&5
30650   ac_status=$?
30651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); }; }; then
30653   eval "$as_ac_var=yes"
30654 else
30655   echo "$as_me: failed program was:" >&5
30656 sed 's/^/| /' conftest.$ac_ext >&5
30657
30658 eval "$as_ac_var=no"
30659 fi
30660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30661 fi
30662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30664 if test `eval echo '${'$as_ac_var'}'` = yes; then
30665   cat >>confdefs.h <<_ACEOF
30666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30667 _ACEOF
30668
30669 fi
30670 done
30671
30672
30673             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30674 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30675 if test "${wx_cv_var_timezone+set}" = set; then
30676   echo $ECHO_N "(cached) $ECHO_C" >&6
30677 else
30678
30679                         cat >conftest.$ac_ext <<_ACEOF
30680 #line $LINENO "configure"
30681 /* confdefs.h.  */
30682 _ACEOF
30683 cat confdefs.h >>conftest.$ac_ext
30684 cat >>conftest.$ac_ext <<_ACEOF
30685 /* end confdefs.h.  */
30686
30687                                 #include <time.h>
30688
30689 int
30690 main ()
30691 {
30692
30693                                 int tz;
30694                                 tz = timezone;
30695
30696   ;
30697   return 0;
30698 }
30699 _ACEOF
30700 rm -f conftest.$ac_objext
30701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30702   (eval $ac_compile) 2>&5
30703   ac_status=$?
30704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); } &&
30706          { ac_try='test -s conftest.$ac_objext'
30707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708   (eval $ac_try) 2>&5
30709   ac_status=$?
30710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711   (exit $ac_status); }; }; then
30712
30713                                 wx_cv_var_timezone=timezone
30714
30715 else
30716   echo "$as_me: failed program was:" >&5
30717 sed 's/^/| /' conftest.$ac_ext >&5
30718
30719
30720                                 cat >conftest.$ac_ext <<_ACEOF
30721 #line $LINENO "configure"
30722 /* confdefs.h.  */
30723 _ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h.  */
30727
30728                                         #include <time.h>
30729
30730 int
30731 main ()
30732 {
30733
30734                                         int tz;
30735                                         tz = _timezone;
30736
30737   ;
30738   return 0;
30739 }
30740 _ACEOF
30741 rm -f conftest.$ac_objext
30742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30743   (eval $ac_compile) 2>&5
30744   ac_status=$?
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); } &&
30747          { ac_try='test -s conftest.$ac_objext'
30748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749   (eval $ac_try) 2>&5
30750   ac_status=$?
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); }; }; then
30753
30754                                         wx_cv_var_timezone=_timezone
30755
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760
30761                                         cat >conftest.$ac_ext <<_ACEOF
30762 #line $LINENO "configure"
30763 /* confdefs.h.  */
30764 _ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h.  */
30768
30769                                                 #include <time.h>
30770
30771 int
30772 main ()
30773 {
30774
30775                                                 int tz;
30776                                                 tz = __timezone;
30777
30778   ;
30779   return 0;
30780 }
30781 _ACEOF
30782 rm -f conftest.$ac_objext
30783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30784   (eval $ac_compile) 2>&5
30785   ac_status=$?
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); } &&
30788          { ac_try='test -s conftest.$ac_objext'
30789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30790   (eval $ac_try) 2>&5
30791   ac_status=$?
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); }; }; then
30794
30795                                                 wx_cv_var_timezone=__timezone
30796
30797 else
30798   echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801
30802                                                 if test "$USE_DOS" = 0 ; then
30803                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30804 echo "$as_me: WARNING: no timezone variable" >&2;}
30805                                                 fi
30806
30807
30808 fi
30809 rm -f conftest.$ac_objext conftest.$ac_ext
30810
30811
30812 fi
30813 rm -f conftest.$ac_objext conftest.$ac_ext
30814
30815
30816 fi
30817 rm -f conftest.$ac_objext conftest.$ac_ext
30818
30819
30820 fi
30821 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30822 echo "${ECHO_T}$wx_cv_var_timezone" >&6
30823
30824         if test "x$wx_cv_var_timezone" != x ; then
30825         cat >>confdefs.h <<_ACEOF
30826 #define WX_TIMEZONE $wx_cv_var_timezone
30827 _ACEOF
30828
30829     fi
30830
30831
30832 for ac_func in localtime
30833 do
30834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30835 echo "$as_me:$LINENO: checking for $ac_func" >&5
30836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30837 if eval "test \"\${$as_ac_var+set}\" = set"; then
30838   echo $ECHO_N "(cached) $ECHO_C" >&6
30839 else
30840   cat >conftest.$ac_ext <<_ACEOF
30841 #line $LINENO "configure"
30842 /* confdefs.h.  */
30843 _ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h.  */
30847 /* System header to define __stub macros and hopefully few prototypes,
30848     which can conflict with char $ac_func (); below.
30849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30850     <limits.h> exists even on freestanding compilers.  */
30851 #ifdef __STDC__
30852 # include <limits.h>
30853 #else
30854 # include <assert.h>
30855 #endif
30856 /* Override any gcc2 internal prototype to avoid an error.  */
30857 #ifdef __cplusplus
30858 extern "C"
30859 {
30860 #endif
30861 /* We use char because int might match the return type of a gcc2
30862    builtin and then its argument prototype would still apply.  */
30863 char $ac_func ();
30864 /* The GNU C library defines this for functions which it implements
30865     to always fail with ENOSYS.  Some functions are actually named
30866     something starting with __ and the normal name is an alias.  */
30867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30868 choke me
30869 #else
30870 char (*f) () = $ac_func;
30871 #endif
30872 #ifdef __cplusplus
30873 }
30874 #endif
30875
30876 int
30877 main ()
30878 {
30879 return f != $ac_func;
30880   ;
30881   return 0;
30882 }
30883 _ACEOF
30884 rm -f conftest.$ac_objext conftest$ac_exeext
30885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30886   (eval $ac_link) 2>&5
30887   ac_status=$?
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); } &&
30890          { ac_try='test -s conftest$ac_exeext'
30891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892   (eval $ac_try) 2>&5
30893   ac_status=$?
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); }; }; then
30896   eval "$as_ac_var=yes"
30897 else
30898   echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30900
30901 eval "$as_ac_var=no"
30902 fi
30903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30904 fi
30905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30907 if test `eval echo '${'$as_ac_var'}'` = yes; then
30908   cat >>confdefs.h <<_ACEOF
30909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30910 _ACEOF
30911
30912 fi
30913 done
30914
30915
30916     if test "$ac_cv_func_localtime" = "yes"; then
30917         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30918 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30919 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922
30923             cat >conftest.$ac_ext <<_ACEOF
30924 #line $LINENO "configure"
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930
30931                     #include <time.h>
30932
30933 int
30934 main ()
30935 {
30936
30937                     struct tm tm;
30938                     tm.tm_gmtoff++;
30939
30940   ;
30941   return 0;
30942 }
30943 _ACEOF
30944 rm -f conftest.$ac_objext
30945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30946   (eval $ac_compile) 2>&5
30947   ac_status=$?
30948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949   (exit $ac_status); } &&
30950          { ac_try='test -s conftest.$ac_objext'
30951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952   (eval $ac_try) 2>&5
30953   ac_status=$?
30954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955   (exit $ac_status); }; }; then
30956
30957                     wx_cv_struct_tm_has_gmtoff=yes
30958
30959 else
30960   echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30962
30963 wx_cv_struct_tm_has_gmtoff=no
30964
30965 fi
30966 rm -f conftest.$ac_objext conftest.$ac_ext
30967
30968 fi
30969 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30970 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
30971     fi
30972
30973     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
30974         cat >>confdefs.h <<\_ACEOF
30975 #define WX_GMTOFF_IN_TM 1
30976 _ACEOF
30977
30978     fi
30979
30980
30981
30982 for ac_func in gettimeofday ftime
30983 do
30984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30985 echo "$as_me:$LINENO: checking for $ac_func" >&5
30986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30987 if eval "test \"\${$as_ac_var+set}\" = set"; then
30988   echo $ECHO_N "(cached) $ECHO_C" >&6
30989 else
30990   cat >conftest.$ac_ext <<_ACEOF
30991 #line $LINENO "configure"
30992 /* confdefs.h.  */
30993 _ACEOF
30994 cat confdefs.h >>conftest.$ac_ext
30995 cat >>conftest.$ac_ext <<_ACEOF
30996 /* end confdefs.h.  */
30997 /* System header to define __stub macros and hopefully few prototypes,
30998     which can conflict with char $ac_func (); below.
30999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31000     <limits.h> exists even on freestanding compilers.  */
31001 #ifdef __STDC__
31002 # include <limits.h>
31003 #else
31004 # include <assert.h>
31005 #endif
31006 /* Override any gcc2 internal prototype to avoid an error.  */
31007 #ifdef __cplusplus
31008 extern "C"
31009 {
31010 #endif
31011 /* We use char because int might match the return type of a gcc2
31012    builtin and then its argument prototype would still apply.  */
31013 char $ac_func ();
31014 /* The GNU C library defines this for functions which it implements
31015     to always fail with ENOSYS.  Some functions are actually named
31016     something starting with __ and the normal name is an alias.  */
31017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31018 choke me
31019 #else
31020 char (*f) () = $ac_func;
31021 #endif
31022 #ifdef __cplusplus
31023 }
31024 #endif
31025
31026 int
31027 main ()
31028 {
31029 return f != $ac_func;
31030   ;
31031   return 0;
31032 }
31033 _ACEOF
31034 rm -f conftest.$ac_objext conftest$ac_exeext
31035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31036   (eval $ac_link) 2>&5
31037   ac_status=$?
31038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039   (exit $ac_status); } &&
31040          { ac_try='test -s conftest$ac_exeext'
31041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042   (eval $ac_try) 2>&5
31043   ac_status=$?
31044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045   (exit $ac_status); }; }; then
31046   eval "$as_ac_var=yes"
31047 else
31048   echo "$as_me: failed program was:" >&5
31049 sed 's/^/| /' conftest.$ac_ext >&5
31050
31051 eval "$as_ac_var=no"
31052 fi
31053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31054 fi
31055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31057 if test `eval echo '${'$as_ac_var'}'` = yes; then
31058   cat >>confdefs.h <<_ACEOF
31059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31060 _ACEOF
31061  break
31062 fi
31063 done
31064
31065
31066     if test "$ac_cv_func_gettimeofday" = "yes"; then
31067         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31068 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31069 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31070   echo $ECHO_N "(cached) $ECHO_C" >&6
31071 else
31072
31073
31074
31075             ac_ext=cc
31076 ac_cpp='$CXXCPP $CPPFLAGS'
31077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31080
31081
31082             cat >conftest.$ac_ext <<_ACEOF
31083 #line $LINENO "configure"
31084 /* confdefs.h.  */
31085 _ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h.  */
31089
31090                     #include <sys/time.h>
31091                     #include <unistd.h>
31092
31093 int
31094 main ()
31095 {
31096
31097                     struct timeval tv;
31098                     gettimeofday(&tv, NULL);
31099
31100   ;
31101   return 0;
31102 }
31103 _ACEOF
31104 rm -f conftest.$ac_objext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31106   (eval $ac_compile) 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); } &&
31110          { ac_try='test -s conftest.$ac_objext'
31111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31112   (eval $ac_try) 2>&5
31113   ac_status=$?
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); }; }; then
31116   wx_cv_func_gettimeofday_has_2_args=yes
31117 else
31118   echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31120
31121 cat >conftest.$ac_ext <<_ACEOF
31122 #line $LINENO "configure"
31123 /* confdefs.h.  */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h.  */
31128
31129                         #include <sys/time.h>
31130                         #include <unistd.h>
31131
31132 int
31133 main ()
31134 {
31135
31136                         struct timeval tv;
31137                         gettimeofday(&tv);
31138
31139   ;
31140   return 0;
31141 }
31142 _ACEOF
31143 rm -f conftest.$ac_objext
31144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31145   (eval $ac_compile) 2>&5
31146   ac_status=$?
31147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148   (exit $ac_status); } &&
31149          { ac_try='test -s conftest.$ac_objext'
31150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31151   (eval $ac_try) 2>&5
31152   ac_status=$?
31153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154   (exit $ac_status); }; }; then
31155   wx_cv_func_gettimeofday_has_2_args=no
31156 else
31157   echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31159
31160
31161                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31162 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
31163                         wx_cv_func_gettimeofday_has_2_args=unknown
31164
31165
31166 fi
31167 rm -f conftest.$ac_objext conftest.$ac_ext
31168
31169 fi
31170 rm -f conftest.$ac_objext conftest.$ac_ext
31171             ac_ext=c
31172 ac_cpp='$CPP $CPPFLAGS'
31173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31176
31177
31178 fi
31179 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31180 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
31181
31182         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
31183             cat >>confdefs.h <<\_ACEOF
31184 #define WX_GETTIMEOFDAY_NO_TZ 1
31185 _ACEOF
31186
31187         fi
31188     fi
31189
31190     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31191 fi
31192
31193
31194 if test "$wxUSE_SOCKETS" = "yes"; then
31195     if test "$wxUSE_MGL" = "1"; then
31196         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31197 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
31198         wxUSE_SOCKETS="no"
31199     fi
31200     if test "$wxUSE_COCOA" = "1"; then
31201         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31202 echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31203         wxUSE_SOCKETS="no"
31204     fi
31205 fi
31206
31207 if test "$wxUSE_SOCKETS" = "yes"; then
31208         if test "$TOOLKIT" != "MSW"; then
31209                 echo "$as_me:$LINENO: checking for socket" >&5
31210 echo $ECHO_N "checking for socket... $ECHO_C" >&6
31211 if test "${ac_cv_func_socket+set}" = set; then
31212   echo $ECHO_N "(cached) $ECHO_C" >&6
31213 else
31214   cat >conftest.$ac_ext <<_ACEOF
31215 #line $LINENO "configure"
31216 /* confdefs.h.  */
31217 _ACEOF
31218 cat confdefs.h >>conftest.$ac_ext
31219 cat >>conftest.$ac_ext <<_ACEOF
31220 /* end confdefs.h.  */
31221 /* System header to define __stub macros and hopefully few prototypes,
31222     which can conflict with char socket (); below.
31223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31224     <limits.h> exists even on freestanding compilers.  */
31225 #ifdef __STDC__
31226 # include <limits.h>
31227 #else
31228 # include <assert.h>
31229 #endif
31230 /* Override any gcc2 internal prototype to avoid an error.  */
31231 #ifdef __cplusplus
31232 extern "C"
31233 {
31234 #endif
31235 /* We use char because int might match the return type of a gcc2
31236    builtin and then its argument prototype would still apply.  */
31237 char socket ();
31238 /* The GNU C library defines this for functions which it implements
31239     to always fail with ENOSYS.  Some functions are actually named
31240     something starting with __ and the normal name is an alias.  */
31241 #if defined (__stub_socket) || defined (__stub___socket)
31242 choke me
31243 #else
31244 char (*f) () = socket;
31245 #endif
31246 #ifdef __cplusplus
31247 }
31248 #endif
31249
31250 int
31251 main ()
31252 {
31253 return f != socket;
31254   ;
31255   return 0;
31256 }
31257 _ACEOF
31258 rm -f conftest.$ac_objext conftest$ac_exeext
31259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31260   (eval $ac_link) 2>&5
31261   ac_status=$?
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } &&
31264          { ac_try='test -s conftest$ac_exeext'
31265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31266   (eval $ac_try) 2>&5
31267   ac_status=$?
31268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269   (exit $ac_status); }; }; then
31270   ac_cv_func_socket=yes
31271 else
31272   echo "$as_me: failed program was:" >&5
31273 sed 's/^/| /' conftest.$ac_ext >&5
31274
31275 ac_cv_func_socket=no
31276 fi
31277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31278 fi
31279 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31280 echo "${ECHO_T}$ac_cv_func_socket" >&6
31281 if test $ac_cv_func_socket = yes; then
31282   :
31283 else
31284   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31285 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31286 if test "${ac_cv_lib_socket_socket+set}" = set; then
31287   echo $ECHO_N "(cached) $ECHO_C" >&6
31288 else
31289   ac_check_lib_save_LIBS=$LIBS
31290 LIBS="-lsocket  $LIBS"
31291 cat >conftest.$ac_ext <<_ACEOF
31292 #line $LINENO "configure"
31293 /* confdefs.h.  */
31294 _ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h.  */
31298
31299 /* Override any gcc2 internal prototype to avoid an error.  */
31300 #ifdef __cplusplus
31301 extern "C"
31302 #endif
31303 /* We use char because int might match the return type of a gcc2
31304    builtin and then its argument prototype would still apply.  */
31305 char socket ();
31306 int
31307 main ()
31308 {
31309 socket ();
31310   ;
31311   return 0;
31312 }
31313 _ACEOF
31314 rm -f conftest.$ac_objext conftest$ac_exeext
31315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31316   (eval $ac_link) 2>&5
31317   ac_status=$?
31318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319   (exit $ac_status); } &&
31320          { ac_try='test -s conftest$ac_exeext'
31321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322   (eval $ac_try) 2>&5
31323   ac_status=$?
31324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325   (exit $ac_status); }; }; then
31326   ac_cv_lib_socket_socket=yes
31327 else
31328   echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31330
31331 ac_cv_lib_socket_socket=no
31332 fi
31333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31334 LIBS=$ac_check_lib_save_LIBS
31335 fi
31336 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31337 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31338 if test $ac_cv_lib_socket_socket = yes; then
31339   if test "$INET_LINK" != " -lsocket"; then
31340                     INET_LINK="$INET_LINK -lsocket"
31341                 fi
31342 else
31343
31344                     { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31345 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
31346                     wxUSE_SOCKETS=no
31347
31348
31349 fi
31350
31351
31352 fi
31353
31354     fi
31355 fi
31356
31357 if test "$wxUSE_SOCKETS" = "yes" ; then
31358                 if test "$TOOLKIT" != "MSW"; then
31359                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31360 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31361 if test "${wx_cv_type_getsockname3+set}" = set; then
31362   echo $ECHO_N "(cached) $ECHO_C" >&6
31363 else
31364
31365                 cat >conftest.$ac_ext <<_ACEOF
31366 #line $LINENO "configure"
31367 /* confdefs.h.  */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h.  */
31372
31373                         #include <sys/types.h>
31374                         #include <sys/socket.h>
31375
31376 int
31377 main ()
31378 {
31379
31380                         socklen_t len;
31381                         getsockname(0, 0, &len);
31382
31383   ;
31384   return 0;
31385 }
31386 _ACEOF
31387 rm -f conftest.$ac_objext
31388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31389   (eval $ac_compile) 2>&5
31390   ac_status=$?
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); } &&
31393          { ac_try='test -s conftest.$ac_objext'
31394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395   (eval $ac_try) 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; }; then
31399   wx_cv_type_getsockname3=socklen_t
31400 else
31401   echo "$as_me: failed program was:" >&5
31402 sed 's/^/| /' conftest.$ac_ext >&5
31403
31404
31405                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
31406                         if test "$GCC" = yes ; then
31407                             CFLAGS="$CFLAGS -Werror"
31408                         fi
31409
31410                         cat >conftest.$ac_ext <<_ACEOF
31411 #line $LINENO "configure"
31412 /* confdefs.h.  */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h.  */
31417
31418                                 #include <sys/types.h>
31419                                 #include <sys/socket.h>
31420
31421 int
31422 main ()
31423 {
31424
31425                                 size_t len;
31426                                 getsockname(0, 0, &len);
31427
31428   ;
31429   return 0;
31430 }
31431 _ACEOF
31432 rm -f conftest.$ac_objext
31433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31434   (eval $ac_compile) 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); } &&
31438          { ac_try='test -s conftest.$ac_objext'
31439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440   (eval $ac_try) 2>&5
31441   ac_status=$?
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); }; }; then
31444   wx_cv_type_getsockname3=size_t
31445 else
31446   echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449 cat >conftest.$ac_ext <<_ACEOF
31450 #line $LINENO "configure"
31451 /* confdefs.h.  */
31452 _ACEOF
31453 cat confdefs.h >>conftest.$ac_ext
31454 cat >>conftest.$ac_ext <<_ACEOF
31455 /* end confdefs.h.  */
31456
31457                                     #include <sys/types.h>
31458                                     #include <sys/socket.h>
31459
31460 int
31461 main ()
31462 {
31463
31464                                     int len;
31465                                     getsockname(0, 0, &len);
31466
31467   ;
31468   return 0;
31469 }
31470 _ACEOF
31471 rm -f conftest.$ac_objext
31472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31473   (eval $ac_compile) 2>&5
31474   ac_status=$?
31475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476   (exit $ac_status); } &&
31477          { ac_try='test -s conftest.$ac_objext'
31478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479   (eval $ac_try) 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); }; }; then
31483   wx_cv_type_getsockname3=int
31484 else
31485   echo "$as_me: failed program was:" >&5
31486 sed 's/^/| /' conftest.$ac_ext >&5
31487
31488 wx_cv_type_getsockname3=unknown
31489
31490 fi
31491 rm -f conftest.$ac_objext conftest.$ac_ext
31492
31493 fi
31494 rm -f conftest.$ac_objext conftest.$ac_ext
31495
31496                         CFLAGS="$CFLAGS_OLD"
31497
31498
31499 fi
31500 rm -f conftest.$ac_objext conftest.$ac_ext
31501
31502 fi
31503 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31504 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
31505
31506         if test "$wx_cv_type_getsockname3" = "unknown"; then
31507             wxUSE_SOCKETS=no
31508             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31509 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
31510         else
31511             cat >>confdefs.h <<_ACEOF
31512 #define SOCKLEN_T $wx_cv_type_getsockname3
31513 _ACEOF
31514
31515         fi
31516     fi
31517 fi
31518
31519 if test "$wxUSE_SOCKETS" = "yes" ; then
31520     cat >>confdefs.h <<\_ACEOF
31521 #define wxUSE_SOCKETS 1
31522 _ACEOF
31523
31524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
31525 fi
31526
31527 if test "$wxUSE_PROTOCOL" = "yes"; then
31528     if test "$wxUSE_SOCKETS" != "yes"; then
31529         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31530 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31531         wxUSE_PROTOCOL=no
31532     fi
31533 fi
31534
31535 if test "$wxUSE_PROTOCOL" = "yes"; then
31536     cat >>confdefs.h <<\_ACEOF
31537 #define wxUSE_PROTOCOL 1
31538 _ACEOF
31539
31540
31541     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31542         cat >>confdefs.h <<\_ACEOF
31543 #define wxUSE_PROTOCOL_HTTP 1
31544 _ACEOF
31545
31546     fi
31547     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31548         cat >>confdefs.h <<\_ACEOF
31549 #define wxUSE_PROTOCOL_FTP 1
31550 _ACEOF
31551
31552     fi
31553     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31554         cat >>confdefs.h <<\_ACEOF
31555 #define wxUSE_PROTOCOL_FILE 1
31556 _ACEOF
31557
31558     fi
31559 else
31560     if test "$wxUSE_FS_INET" = "yes"; then
31561         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31562 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31563         wxUSE_FS_INET="no"
31564     fi
31565 fi
31566
31567 if test "$wxUSE_URL" = "yes"; then
31568     if test "$wxUSE_PROTOCOL" != "yes"; then
31569         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31570 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31571         wxUSE_URL=no
31572     fi
31573     if test "$wxUSE_URL" = "yes"; then
31574         cat >>confdefs.h <<\_ACEOF
31575 #define wxUSE_URL 1
31576 _ACEOF
31577
31578     fi
31579 fi
31580
31581 if test "$wxUSE_FS_INET" = "yes"; then
31582   cat >>confdefs.h <<\_ACEOF
31583 #define wxUSE_FS_INET 1
31584 _ACEOF
31585
31586 fi
31587
31588
31589 if test "$wxUSE_GUI" = "yes"; then
31590
31591     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
31592         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31593 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
31594         wxUSE_JOYSTICK=no
31595      fi
31596
31597          if test "$TOOLKIT" != "MSW"; then
31598         if test "$wxUSE_JOYSTICK" = "yes"; then
31599
31600 for ac_header in linux/joystick.h
31601 do
31602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31604   echo "$as_me:$LINENO: checking for $ac_header" >&5
31605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31607   echo $ECHO_N "(cached) $ECHO_C" >&6
31608 fi
31609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31611 else
31612   # Is the header compilable?
31613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31615 cat >conftest.$ac_ext <<_ACEOF
31616 #line $LINENO "configure"
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622 $ac_includes_default
31623 #include <$ac_header>
31624 _ACEOF
31625 rm -f conftest.$ac_objext
31626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31627   (eval $ac_compile) 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } &&
31631          { ac_try='test -s conftest.$ac_objext'
31632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633   (eval $ac_try) 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; }; then
31637   ac_header_compiler=yes
31638 else
31639   echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31641
31642 ac_header_compiler=no
31643 fi
31644 rm -f conftest.$ac_objext conftest.$ac_ext
31645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31646 echo "${ECHO_T}$ac_header_compiler" >&6
31647
31648 # Is the header present?
31649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31651 cat >conftest.$ac_ext <<_ACEOF
31652 #line $LINENO "configure"
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658 #include <$ac_header>
31659 _ACEOF
31660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31662   ac_status=$?
31663   grep -v '^ *+' conftest.er1 >conftest.err
31664   rm -f conftest.er1
31665   cat conftest.err >&5
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); } >/dev/null; then
31668   if test -s conftest.err; then
31669     ac_cpp_err=$ac_c_preproc_warn_flag
31670   else
31671     ac_cpp_err=
31672   fi
31673 else
31674   ac_cpp_err=yes
31675 fi
31676 if test -z "$ac_cpp_err"; then
31677   ac_header_preproc=yes
31678 else
31679   echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31681
31682   ac_header_preproc=no
31683 fi
31684 rm -f conftest.err conftest.$ac_ext
31685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31686 echo "${ECHO_T}$ac_header_preproc" >&6
31687
31688 # So?  What about this header?
31689 case $ac_header_compiler:$ac_header_preproc in
31690   yes:no )
31691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31695     (
31696       cat <<\_ASBOX
31697 ## ------------------------------------ ##
31698 ## Report this to bug-autoconf@gnu.org. ##
31699 ## ------------------------------------ ##
31700 _ASBOX
31701     ) |
31702       sed "s/^/$as_me: WARNING:     /" >&2
31703     ;;
31704   no:yes )
31705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31707     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31711     (
31712       cat <<\_ASBOX
31713 ## ------------------------------------ ##
31714 ## Report this to bug-autoconf@gnu.org. ##
31715 ## ------------------------------------ ##
31716 _ASBOX
31717     ) |
31718       sed "s/^/$as_me: WARNING:     /" >&2
31719     ;;
31720 esac
31721 echo "$as_me:$LINENO: checking for $ac_header" >&5
31722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31724   echo $ECHO_N "(cached) $ECHO_C" >&6
31725 else
31726   eval "$as_ac_Header=$ac_header_preproc"
31727 fi
31728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31730
31731 fi
31732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31733   cat >>confdefs.h <<_ACEOF
31734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31735 _ACEOF
31736
31737 fi
31738
31739 done
31740
31741             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31742                 wxUSE_JOYSTICK=no
31743                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31744 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
31745             fi
31746         fi
31747     fi
31748
31749     if test "$wxUSE_JOYSTICK" = "yes"; then
31750         cat >>confdefs.h <<\_ACEOF
31751 #define wxUSE_JOYSTICK 1
31752 _ACEOF
31753
31754         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31755     fi
31756 fi
31757
31758
31759 if test "$TOOLKIT" != "MSW"; then
31760
31761     HAVE_DL_FUNCS=0
31762     HAVE_SHL_FUNCS=0
31763     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31764         if test "$USE_DARWIN" = 1; then
31765                         HAVE_DL_FUNCS=1
31766         else
31767
31768 for ac_func in dlopen
31769 do
31770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31771 echo "$as_me:$LINENO: checking for $ac_func" >&5
31772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31773 if eval "test \"\${$as_ac_var+set}\" = set"; then
31774   echo $ECHO_N "(cached) $ECHO_C" >&6
31775 else
31776   cat >conftest.$ac_ext <<_ACEOF
31777 #line $LINENO "configure"
31778 /* confdefs.h.  */
31779 _ACEOF
31780 cat confdefs.h >>conftest.$ac_ext
31781 cat >>conftest.$ac_ext <<_ACEOF
31782 /* end confdefs.h.  */
31783 /* System header to define __stub macros and hopefully few prototypes,
31784     which can conflict with char $ac_func (); below.
31785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31786     <limits.h> exists even on freestanding compilers.  */
31787 #ifdef __STDC__
31788 # include <limits.h>
31789 #else
31790 # include <assert.h>
31791 #endif
31792 /* Override any gcc2 internal prototype to avoid an error.  */
31793 #ifdef __cplusplus
31794 extern "C"
31795 {
31796 #endif
31797 /* We use char because int might match the return type of a gcc2
31798    builtin and then its argument prototype would still apply.  */
31799 char $ac_func ();
31800 /* The GNU C library defines this for functions which it implements
31801     to always fail with ENOSYS.  Some functions are actually named
31802     something starting with __ and the normal name is an alias.  */
31803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31804 choke me
31805 #else
31806 char (*f) () = $ac_func;
31807 #endif
31808 #ifdef __cplusplus
31809 }
31810 #endif
31811
31812 int
31813 main ()
31814 {
31815 return f != $ac_func;
31816   ;
31817   return 0;
31818 }
31819 _ACEOF
31820 rm -f conftest.$ac_objext conftest$ac_exeext
31821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31822   (eval $ac_link) 2>&5
31823   ac_status=$?
31824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825   (exit $ac_status); } &&
31826          { ac_try='test -s conftest$ac_exeext'
31827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31828   (eval $ac_try) 2>&5
31829   ac_status=$?
31830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831   (exit $ac_status); }; }; then
31832   eval "$as_ac_var=yes"
31833 else
31834   echo "$as_me: failed program was:" >&5
31835 sed 's/^/| /' conftest.$ac_ext >&5
31836
31837 eval "$as_ac_var=no"
31838 fi
31839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31840 fi
31841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31843 if test `eval echo '${'$as_ac_var'}'` = yes; then
31844   cat >>confdefs.h <<_ACEOF
31845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31846 _ACEOF
31847
31848                 cat >>confdefs.h <<\_ACEOF
31849 #define HAVE_DLOPEN 1
31850 _ACEOF
31851
31852                 HAVE_DL_FUNCS=1
31853
31854 else
31855
31856                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31859   echo $ECHO_N "(cached) $ECHO_C" >&6
31860 else
31861   ac_check_lib_save_LIBS=$LIBS
31862 LIBS="-ldl  $LIBS"
31863 cat >conftest.$ac_ext <<_ACEOF
31864 #line $LINENO "configure"
31865 /* confdefs.h.  */
31866 _ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h.  */
31870
31871 /* Override any gcc2 internal prototype to avoid an error.  */
31872 #ifdef __cplusplus
31873 extern "C"
31874 #endif
31875 /* We use char because int might match the return type of a gcc2
31876    builtin and then its argument prototype would still apply.  */
31877 char dlopen ();
31878 int
31879 main ()
31880 {
31881 dlopen ();
31882   ;
31883   return 0;
31884 }
31885 _ACEOF
31886 rm -f conftest.$ac_objext conftest$ac_exeext
31887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31888   (eval $ac_link) 2>&5
31889   ac_status=$?
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); } &&
31892          { ac_try='test -s conftest$ac_exeext'
31893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894   (eval $ac_try) 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; }; then
31898   ac_cv_lib_dl_dlopen=yes
31899 else
31900   echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 ac_cv_lib_dl_dlopen=no
31904 fi
31905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31906 LIBS=$ac_check_lib_save_LIBS
31907 fi
31908 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31909 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31910 if test $ac_cv_lib_dl_dlopen = yes; then
31911
31912                                 cat >>confdefs.h <<\_ACEOF
31913 #define HAVE_DLOPEN 1
31914 _ACEOF
31915
31916                                 HAVE_DL_FUNCS=1
31917                                 DL_LINK=" -ldl$DL_LINK"
31918
31919 else
31920
31921
31922 for ac_func in shl_load
31923 do
31924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31925 echo "$as_me:$LINENO: checking for $ac_func" >&5
31926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31927 if eval "test \"\${$as_ac_var+set}\" = set"; then
31928   echo $ECHO_N "(cached) $ECHO_C" >&6
31929 else
31930   cat >conftest.$ac_ext <<_ACEOF
31931 #line $LINENO "configure"
31932 /* confdefs.h.  */
31933 _ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h.  */
31937 /* System header to define __stub macros and hopefully few prototypes,
31938     which can conflict with char $ac_func (); below.
31939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31940     <limits.h> exists even on freestanding compilers.  */
31941 #ifdef __STDC__
31942 # include <limits.h>
31943 #else
31944 # include <assert.h>
31945 #endif
31946 /* Override any gcc2 internal prototype to avoid an error.  */
31947 #ifdef __cplusplus
31948 extern "C"
31949 {
31950 #endif
31951 /* We use char because int might match the return type of a gcc2
31952    builtin and then its argument prototype would still apply.  */
31953 char $ac_func ();
31954 /* The GNU C library defines this for functions which it implements
31955     to always fail with ENOSYS.  Some functions are actually named
31956     something starting with __ and the normal name is an alias.  */
31957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31958 choke me
31959 #else
31960 char (*f) () = $ac_func;
31961 #endif
31962 #ifdef __cplusplus
31963 }
31964 #endif
31965
31966 int
31967 main ()
31968 {
31969 return f != $ac_func;
31970   ;
31971   return 0;
31972 }
31973 _ACEOF
31974 rm -f conftest.$ac_objext conftest$ac_exeext
31975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31976   (eval $ac_link) 2>&5
31977   ac_status=$?
31978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979   (exit $ac_status); } &&
31980          { ac_try='test -s conftest$ac_exeext'
31981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982   (eval $ac_try) 2>&5
31983   ac_status=$?
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); }; }; then
31986   eval "$as_ac_var=yes"
31987 else
31988   echo "$as_me: failed program was:" >&5
31989 sed 's/^/| /' conftest.$ac_ext >&5
31990
31991 eval "$as_ac_var=no"
31992 fi
31993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31994 fi
31995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31997 if test `eval echo '${'$as_ac_var'}'` = yes; then
31998   cat >>confdefs.h <<_ACEOF
31999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32000 _ACEOF
32001
32002                                                 cat >>confdefs.h <<\_ACEOF
32003 #define HAVE_SHL_LOAD 1
32004 _ACEOF
32005
32006                                                 HAVE_SHL_FUNCS=1
32007
32008 else
32009
32010                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32011 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32012 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32013   echo $ECHO_N "(cached) $ECHO_C" >&6
32014 else
32015   ac_check_lib_save_LIBS=$LIBS
32016 LIBS="-lshl_load  $LIBS"
32017 cat >conftest.$ac_ext <<_ACEOF
32018 #line $LINENO "configure"
32019 /* confdefs.h.  */
32020 _ACEOF
32021 cat confdefs.h >>conftest.$ac_ext
32022 cat >>conftest.$ac_ext <<_ACEOF
32023 /* end confdefs.h.  */
32024
32025 /* Override any gcc2 internal prototype to avoid an error.  */
32026 #ifdef __cplusplus
32027 extern "C"
32028 #endif
32029 /* We use char because int might match the return type of a gcc2
32030    builtin and then its argument prototype would still apply.  */
32031 char dld ();
32032 int
32033 main ()
32034 {
32035 dld ();
32036   ;
32037   return 0;
32038 }
32039 _ACEOF
32040 rm -f conftest.$ac_objext conftest$ac_exeext
32041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32042   (eval $ac_link) 2>&5
32043   ac_status=$?
32044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045   (exit $ac_status); } &&
32046          { ac_try='test -s conftest$ac_exeext'
32047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048   (eval $ac_try) 2>&5
32049   ac_status=$?
32050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051   (exit $ac_status); }; }; then
32052   ac_cv_lib_shl_load_dld=yes
32053 else
32054   echo "$as_me: failed program was:" >&5
32055 sed 's/^/| /' conftest.$ac_ext >&5
32056
32057 ac_cv_lib_shl_load_dld=no
32058 fi
32059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32060 LIBS=$ac_check_lib_save_LIBS
32061 fi
32062 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32063 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32064 if test $ac_cv_lib_shl_load_dld = yes; then
32065
32066                                                                 HAVE_SHL_FUNCS=1
32067                                                                 DL_LINK=" -ldld$DL_LINK"
32068
32069 fi
32070
32071
32072 fi
32073 done
32074
32075
32076 fi
32077
32078
32079 fi
32080 done
32081
32082
32083                 if test "$HAVE_DL_FUNCS" = 1; then
32084
32085 for ac_func in dlerror
32086 do
32087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32088 echo "$as_me:$LINENO: checking for $ac_func" >&5
32089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32090 if eval "test \"\${$as_ac_var+set}\" = set"; then
32091   echo $ECHO_N "(cached) $ECHO_C" >&6
32092 else
32093   cat >conftest.$ac_ext <<_ACEOF
32094 #line $LINENO "configure"
32095 /* confdefs.h.  */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h.  */
32100 /* System header to define __stub macros and hopefully few prototypes,
32101     which can conflict with char $ac_func (); below.
32102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32103     <limits.h> exists even on freestanding compilers.  */
32104 #ifdef __STDC__
32105 # include <limits.h>
32106 #else
32107 # include <assert.h>
32108 #endif
32109 /* Override any gcc2 internal prototype to avoid an error.  */
32110 #ifdef __cplusplus
32111 extern "C"
32112 {
32113 #endif
32114 /* We use char because int might match the return type of a gcc2
32115    builtin and then its argument prototype would still apply.  */
32116 char $ac_func ();
32117 /* The GNU C library defines this for functions which it implements
32118     to always fail with ENOSYS.  Some functions are actually named
32119     something starting with __ and the normal name is an alias.  */
32120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32121 choke me
32122 #else
32123 char (*f) () = $ac_func;
32124 #endif
32125 #ifdef __cplusplus
32126 }
32127 #endif
32128
32129 int
32130 main ()
32131 {
32132 return f != $ac_func;
32133   ;
32134   return 0;
32135 }
32136 _ACEOF
32137 rm -f conftest.$ac_objext conftest$ac_exeext
32138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32139   (eval $ac_link) 2>&5
32140   ac_status=$?
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); } &&
32143          { ac_try='test -s conftest$ac_exeext'
32144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145   (eval $ac_try) 2>&5
32146   ac_status=$?
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); }; }; then
32149   eval "$as_ac_var=yes"
32150 else
32151   echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32153
32154 eval "$as_ac_var=no"
32155 fi
32156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32157 fi
32158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32160 if test `eval echo '${'$as_ac_var'}'` = yes; then
32161   cat >>confdefs.h <<_ACEOF
32162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32163 _ACEOF
32164  cat >>confdefs.h <<\_ACEOF
32165 #define HAVE_DLERROR 1
32166 _ACEOF
32167
32168 else
32169   echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32170 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32171 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32172   echo $ECHO_N "(cached) $ECHO_C" >&6
32173 else
32174   ac_check_lib_save_LIBS=$LIBS
32175 LIBS="-ldl  $LIBS"
32176 cat >conftest.$ac_ext <<_ACEOF
32177 #line $LINENO "configure"
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183
32184 /* Override any gcc2 internal prototype to avoid an error.  */
32185 #ifdef __cplusplus
32186 extern "C"
32187 #endif
32188 /* We use char because int might match the return type of a gcc2
32189    builtin and then its argument prototype would still apply.  */
32190 char dlerror ();
32191 int
32192 main ()
32193 {
32194 dlerror ();
32195   ;
32196   return 0;
32197 }
32198 _ACEOF
32199 rm -f conftest.$ac_objext conftest$ac_exeext
32200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32201   (eval $ac_link) 2>&5
32202   ac_status=$?
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } &&
32205          { ac_try='test -s conftest$ac_exeext'
32206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207   (eval $ac_try) 2>&5
32208   ac_status=$?
32209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210   (exit $ac_status); }; }; then
32211   ac_cv_lib_dl_dlerror=yes
32212 else
32213   echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32215
32216 ac_cv_lib_dl_dlerror=no
32217 fi
32218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32219 LIBS=$ac_check_lib_save_LIBS
32220 fi
32221 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32222 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32223 if test $ac_cv_lib_dl_dlerror = yes; then
32224   cat >>confdefs.h <<\_ACEOF
32225 #define HAVE_DLERROR 1
32226 _ACEOF
32227
32228 fi
32229
32230 fi
32231 done
32232
32233         fi
32234         fi
32235
32236         if test "$HAVE_DL_FUNCS" = 0; then
32237             if test "$HAVE_SHL_FUNCS" = 0; then
32238               if test "$USE_UNIX" = 1; then
32239                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32240 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
32241                   wxUSE_DYNAMIC_LOADER=no
32242                   wxUSE_DYNLIB_CLASS=no
32243               else
32244                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32245 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
32246               fi
32247             fi
32248         fi
32249     fi
32250 fi
32251
32252 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
32253     cat >>confdefs.h <<\_ACEOF
32254 #define wxUSE_DYNAMIC_LOADER 1
32255 _ACEOF
32256
32257 fi
32258 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
32259     cat >>confdefs.h <<\_ACEOF
32260 #define wxUSE_DYNLIB_CLASS 1
32261 _ACEOF
32262
32263 fi
32264
32265
32266 if test "$wxUSE_FONTMAP" = "yes" ; then
32267   cat >>confdefs.h <<\_ACEOF
32268 #define wxUSE_FONTMAP 1
32269 _ACEOF
32270
32271 fi
32272
32273 if test "$wxUSE_UNICODE" = "yes" ; then
32274   cat >>confdefs.h <<\_ACEOF
32275 #define wxUSE_UNICODE 1
32276 _ACEOF
32277
32278
32279   if test "$USE_WIN32" != 1; then
32280       wxUSE_UNICODE_MSLU=no
32281   fi
32282
32283   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
32284         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32285 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32286 if test "${ac_cv_lib_unicows_main+set}" = set; then
32287   echo $ECHO_N "(cached) $ECHO_C" >&6
32288 else
32289   ac_check_lib_save_LIBS=$LIBS
32290 LIBS="-lunicows  $LIBS"
32291 cat >conftest.$ac_ext <<_ACEOF
32292 #line $LINENO "configure"
32293 /* confdefs.h.  */
32294 _ACEOF
32295 cat confdefs.h >>conftest.$ac_ext
32296 cat >>conftest.$ac_ext <<_ACEOF
32297 /* end confdefs.h.  */
32298
32299
32300 int
32301 main ()
32302 {
32303 main ();
32304   ;
32305   return 0;
32306 }
32307 _ACEOF
32308 rm -f conftest.$ac_objext conftest$ac_exeext
32309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32310   (eval $ac_link) 2>&5
32311   ac_status=$?
32312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313   (exit $ac_status); } &&
32314          { ac_try='test -s conftest$ac_exeext'
32315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32316   (eval $ac_try) 2>&5
32317   ac_status=$?
32318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); }; }; then
32320   ac_cv_lib_unicows_main=yes
32321 else
32322   echo "$as_me: failed program was:" >&5
32323 sed 's/^/| /' conftest.$ac_ext >&5
32324
32325 ac_cv_lib_unicows_main=no
32326 fi
32327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32328 LIBS=$ac_check_lib_save_LIBS
32329 fi
32330 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32331 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32332 if test $ac_cv_lib_unicows_main = yes; then
32333
32334                 cat >>confdefs.h <<\_ACEOF
32335 #define wxUSE_UNICODE_MSLU 1
32336 _ACEOF
32337
32338
32339 else
32340
32341                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32342                              Applications will only run on Windows NT/2000/XP!" >&5
32343 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32344                              Applications will only run on Windows NT/2000/XP!" >&2;}
32345                 wxUSE_UNICODE_MSLU=no
32346
32347 fi
32348
32349     fi
32350 fi
32351
32352 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
32353   cat >>confdefs.h <<\_ACEOF
32354 #define wxUSE_EXPERIMENTAL_PRINTF 1
32355 _ACEOF
32356
32357 fi
32358
32359
32360 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
32361   cat >>confdefs.h <<\_ACEOF
32362 #define wxUSE_POSTSCRIPT 1
32363 _ACEOF
32364
32365 fi
32366
32367 cat >>confdefs.h <<\_ACEOF
32368 #define wxUSE_AFM_FOR_POSTSCRIPT 1
32369 _ACEOF
32370
32371
32372 cat >>confdefs.h <<\_ACEOF
32373 #define wxUSE_NORMALIZED_PS_FONTS 1
32374 _ACEOF
32375
32376
32377
32378 if test "$wxUSE_CONSTRAINTS" = "yes"; then
32379     cat >>confdefs.h <<\_ACEOF
32380 #define wxUSE_CONSTRAINTS 1
32381 _ACEOF
32382
32383     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32384 fi
32385
32386 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32387    cat >>confdefs.h <<\_ACEOF
32388 #define wxUSE_MDI_ARCHITECTURE 1
32389 _ACEOF
32390
32391    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
32392 fi
32393
32394 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
32395     cat >>confdefs.h <<\_ACEOF
32396 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
32397 _ACEOF
32398
32399     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32400     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32401         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32402     fi
32403 fi
32404
32405 if test "$wxUSE_HELP" = "yes"; then
32406     cat >>confdefs.h <<\_ACEOF
32407 #define wxUSE_HELP 1
32408 _ACEOF
32409
32410     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
32411
32412     if test "$wxUSE_MSW" = 1; then
32413       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
32414         cat >>confdefs.h <<\_ACEOF
32415 #define wxUSE_MS_HTML_HELP 1
32416 _ACEOF
32417
32418       fi
32419     fi
32420
32421     if test "$wxUSE_WXHTML_HELP" = "yes"; then
32422       if test "$wxUSE_HTML" = "yes"; then
32423         cat >>confdefs.h <<\_ACEOF
32424 #define wxUSE_WXHTML_HELP 1
32425 _ACEOF
32426
32427       else
32428         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32429 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
32430         wxUSE_WXHTML_HELP=no
32431       fi
32432     fi
32433 fi
32434
32435 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32436     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32437         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32438 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
32439     else
32440         cat >>confdefs.h <<\_ACEOF
32441 #define wxUSE_PRINTING_ARCHITECTURE 1
32442 _ACEOF
32443
32444     fi
32445     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32446 fi
32447
32448 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
32449     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32450 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32451    { (exit 1); exit 1; }; }
32452 fi
32453
32454
32455 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
32456                           -o "$wxUSE_CLIPBOARD"     = "yes" \
32457                           -o "$wxUSE_OLE"     = "yes" \
32458                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32459
32460 for ac_header in ole2.h
32461 do
32462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32464   echo "$as_me:$LINENO: checking for $ac_header" >&5
32465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32467   echo $ECHO_N "(cached) $ECHO_C" >&6
32468 fi
32469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32471 else
32472   # Is the header compilable?
32473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32475 cat >conftest.$ac_ext <<_ACEOF
32476 #line $LINENO "configure"
32477 /* confdefs.h.  */
32478 _ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h.  */
32482 $ac_includes_default
32483 #include <$ac_header>
32484 _ACEOF
32485 rm -f conftest.$ac_objext
32486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32487   (eval $ac_compile) 2>&5
32488   ac_status=$?
32489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490   (exit $ac_status); } &&
32491          { ac_try='test -s conftest.$ac_objext'
32492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493   (eval $ac_try) 2>&5
32494   ac_status=$?
32495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496   (exit $ac_status); }; }; then
32497   ac_header_compiler=yes
32498 else
32499   echo "$as_me: failed program was:" >&5
32500 sed 's/^/| /' conftest.$ac_ext >&5
32501
32502 ac_header_compiler=no
32503 fi
32504 rm -f conftest.$ac_objext conftest.$ac_ext
32505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32506 echo "${ECHO_T}$ac_header_compiler" >&6
32507
32508 # Is the header present?
32509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32511 cat >conftest.$ac_ext <<_ACEOF
32512 #line $LINENO "configure"
32513 /* confdefs.h.  */
32514 _ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h.  */
32518 #include <$ac_header>
32519 _ACEOF
32520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32522   ac_status=$?
32523   grep -v '^ *+' conftest.er1 >conftest.err
32524   rm -f conftest.er1
32525   cat conftest.err >&5
32526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527   (exit $ac_status); } >/dev/null; then
32528   if test -s conftest.err; then
32529     ac_cpp_err=$ac_c_preproc_warn_flag
32530   else
32531     ac_cpp_err=
32532   fi
32533 else
32534   ac_cpp_err=yes
32535 fi
32536 if test -z "$ac_cpp_err"; then
32537   ac_header_preproc=yes
32538 else
32539   echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32541
32542   ac_header_preproc=no
32543 fi
32544 rm -f conftest.err conftest.$ac_ext
32545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32546 echo "${ECHO_T}$ac_header_preproc" >&6
32547
32548 # So?  What about this header?
32549 case $ac_header_compiler:$ac_header_preproc in
32550   yes:no )
32551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32555     (
32556       cat <<\_ASBOX
32557 ## ------------------------------------ ##
32558 ## Report this to bug-autoconf@gnu.org. ##
32559 ## ------------------------------------ ##
32560 _ASBOX
32561     ) |
32562       sed "s/^/$as_me: WARNING:     /" >&2
32563     ;;
32564   no:yes )
32565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32567     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32571     (
32572       cat <<\_ASBOX
32573 ## ------------------------------------ ##
32574 ## Report this to bug-autoconf@gnu.org. ##
32575 ## ------------------------------------ ##
32576 _ASBOX
32577     ) |
32578       sed "s/^/$as_me: WARNING:     /" >&2
32579     ;;
32580 esac
32581 echo "$as_me:$LINENO: checking for $ac_header" >&5
32582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32584   echo $ECHO_N "(cached) $ECHO_C" >&6
32585 else
32586   eval "$as_ac_Header=$ac_header_preproc"
32587 fi
32588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32590
32591 fi
32592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32593   cat >>confdefs.h <<_ACEOF
32594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32595 _ACEOF
32596
32597 fi
32598
32599 done
32600
32601
32602     if test "$ac_cv_header_ole2_h" = "yes" ; then
32603         if test "$GCC" = yes ; then
32604
32605
32606             ac_ext=cc
32607 ac_cpp='$CXXCPP $CPPFLAGS'
32608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32611
32612
32613             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32614 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32615             cat >conftest.$ac_ext <<_ACEOF
32616 #line $LINENO "configure"
32617 /* confdefs.h.  */
32618 _ACEOF
32619 cat confdefs.h >>conftest.$ac_ext
32620 cat >>conftest.$ac_ext <<_ACEOF
32621 /* end confdefs.h.  */
32622 #include <windows.h>
32623                             #include <ole2.h>
32624 int
32625 main ()
32626 {
32627
32628   ;
32629   return 0;
32630 }
32631 _ACEOF
32632 rm -f conftest.$ac_objext
32633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32634   (eval $ac_compile) 2>&5
32635   ac_status=$?
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); } &&
32638          { ac_try='test -s conftest.$ac_objext'
32639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640   (eval $ac_try) 2>&5
32641   ac_status=$?
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); }; }; then
32644   echo "$as_me:$LINENO: result: no" >&5
32645 echo "${ECHO_T}no" >&6
32646 else
32647   echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32649
32650 echo "$as_me:$LINENO: result: yes" >&5
32651 echo "${ECHO_T}yes" >&6
32652                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32653 fi
32654 rm -f conftest.$ac_objext conftest.$ac_ext
32655             ac_ext=c
32656 ac_cpp='$CPP $CPPFLAGS'
32657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32660
32661             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
32662             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
32663             cat >>confdefs.h <<\_ACEOF
32664 #define wxUSE_OLE 1
32665 _ACEOF
32666
32667
32668         fi
32669
32670                 cat >>confdefs.h <<\_ACEOF
32671 #define wxUSE_DATAOBJ 1
32672 _ACEOF
32673
32674     else
32675         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32676 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
32677
32678         wxUSE_CLIPBOARD=no
32679         wxUSE_DRAG_AND_DROP=no
32680         wxUSE_DATAOBJ=no
32681         wxUSE_OLE=no
32682     fi
32683
32684     if test "$wxUSE_METAFILE" = "yes"; then
32685         cat >>confdefs.h <<\_ACEOF
32686 #define wxUSE_METAFILE 1
32687 _ACEOF
32688
32689
32690                 cat >>confdefs.h <<\_ACEOF
32691 #define wxUSE_ENH_METAFILE 1
32692 _ACEOF
32693
32694     fi
32695 fi
32696
32697 if test "$wxUSE_IPC" = "yes"; then
32698     if test "$wxUSE_SOCKETS" != "yes"; then
32699         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32700 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
32701     fi
32702
32703     cat >>confdefs.h <<\_ACEOF
32704 #define wxUSE_IPC 1
32705 _ACEOF
32706
32707 fi
32708
32709 if test "$wxUSE_CLIPBOARD" = "yes"; then
32710     if test "$wxUSE_MGL" = 1; then
32711         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32712 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
32713         wxUSE_CLIPBOARD=no
32714     fi
32715
32716     if test "$wxUSE_CLIPBOARD" = "yes"; then
32717         cat >>confdefs.h <<\_ACEOF
32718 #define wxUSE_CLIPBOARD 1
32719 _ACEOF
32720
32721
32722                 cat >>confdefs.h <<\_ACEOF
32723 #define wxUSE_DATAOBJ 1
32724 _ACEOF
32725
32726     fi
32727 fi
32728
32729 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32730     if test "$wxUSE_GTK" = 1; then
32731         if test "$WXGTK12" != 1; then
32732             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32733 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
32734             wxUSE_DRAG_AND_DROP=no
32735         fi
32736     fi
32737
32738     if test "$wxUSE_MOTIF" = 1; then
32739         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32740 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
32741         wxUSE_DRAG_AND_DROP=no
32742     fi
32743
32744     if test "$wxUSE_X11" = 1; then
32745         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32746 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
32747         wxUSE_DRAG_AND_DROP=no
32748     fi
32749
32750     if test "$wxUSE_MGL" = 1; then
32751         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32752 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
32753         wxUSE_DRAG_AND_DROP=no
32754     fi
32755
32756     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
32757         cat >>confdefs.h <<\_ACEOF
32758 #define wxUSE_DRAG_AND_DROP 1
32759 _ACEOF
32760
32761         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32762     fi
32763
32764 fi
32765
32766 if test "$wxUSE_SPLINES" = "yes" ; then
32767   cat >>confdefs.h <<\_ACEOF
32768 #define wxUSE_SPLINES 1
32769 _ACEOF
32770
32771 fi
32772
32773
32774 USES_CONTROLS=0
32775 if test "$wxUSE_CONTROLS" = "yes"; then
32776   USES_CONTROLS=1
32777 fi
32778
32779 if test "$wxUSE_ACCEL" = "yes"; then
32780   cat >>confdefs.h <<\_ACEOF
32781 #define wxUSE_ACCEL 1
32782 _ACEOF
32783
32784   USES_CONTROLS=1
32785 fi
32786
32787 if test "$wxUSE_BUTTON" = "yes"; then
32788   cat >>confdefs.h <<\_ACEOF
32789 #define wxUSE_BUTTON 1
32790 _ACEOF
32791
32792   USES_CONTROLS=1
32793 fi
32794
32795 if test "$wxUSE_BMPBUTTON" = "yes"; then
32796   cat >>confdefs.h <<\_ACEOF
32797 #define wxUSE_BMPBUTTON 1
32798 _ACEOF
32799
32800   USES_CONTROLS=1
32801 fi
32802
32803 if test "$wxUSE_CALCTRL" = "yes"; then
32804   cat >>confdefs.h <<\_ACEOF
32805 #define wxUSE_CALENDARCTRL 1
32806 _ACEOF
32807
32808   USES_CONTROLS=1
32809   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
32810 fi
32811
32812 if test "$wxUSE_CARET" = "yes"; then
32813   cat >>confdefs.h <<\_ACEOF
32814 #define wxUSE_CARET 1
32815 _ACEOF
32816
32817   USES_CONTROLS=1
32818   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32819 fi
32820
32821 if test "$wxUSE_COMBOBOX" = "yes"; then
32822   cat >>confdefs.h <<\_ACEOF
32823 #define wxUSE_COMBOBOX 1
32824 _ACEOF
32825
32826   USES_CONTROLS=1
32827 fi
32828
32829 if test "$wxUSE_CHOICE" = "yes"; then
32830   cat >>confdefs.h <<\_ACEOF
32831 #define wxUSE_CHOICE 1
32832 _ACEOF
32833
32834   USES_CONTROLS=1
32835 fi
32836
32837 if test "$wxUSE_CHECKBOX" = "yes"; then
32838   cat >>confdefs.h <<\_ACEOF
32839 #define wxUSE_CHECKBOX 1
32840 _ACEOF
32841
32842   USES_CONTROLS=1
32843 fi
32844
32845 if test "$wxUSE_CHECKLST" = "yes"; then
32846   cat >>confdefs.h <<\_ACEOF
32847 #define wxUSE_CHECKLISTBOX 1
32848 _ACEOF
32849
32850   USES_CONTROLS=1
32851   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32852 fi
32853
32854 if test "$wxUSE_DISPLAY" = "yes"; then
32855     cat >>confdefs.h <<\_ACEOF
32856 #define wxUSE_DISPLAY 1
32857 _ACEOF
32858
32859     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32860 fi
32861
32862 if test "$wxUSE_GAUGE" = "yes"; then
32863   cat >>confdefs.h <<\_ACEOF
32864 #define wxUSE_GAUGE 1
32865 _ACEOF
32866
32867   USES_CONTROLS=1
32868 fi
32869
32870 if test "$wxUSE_GRID" = "yes"; then
32871   cat >>confdefs.h <<\_ACEOF
32872 #define wxUSE_GRID 1
32873 _ACEOF
32874
32875   USES_CONTROLS=1
32876   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
32877 fi
32878
32879 if test "$wxUSE_IMAGLIST" = "yes"; then
32880     cat >>confdefs.h <<\_ACEOF
32881 #define wxUSE_IMAGLIST 1
32882 _ACEOF
32883
32884 fi
32885
32886 if test "$wxUSE_LISTBOX" = "yes"; then
32887     cat >>confdefs.h <<\_ACEOF
32888 #define wxUSE_LISTBOX 1
32889 _ACEOF
32890
32891     USES_CONTROLS=1
32892 fi
32893
32894 if test "$wxUSE_LISTCTRL" = "yes"; then
32895     if test "$wxUSE_IMAGLIST" = "yes"; then
32896         cat >>confdefs.h <<\_ACEOF
32897 #define wxUSE_LISTCTRL 1
32898 _ACEOF
32899
32900         USES_CONTROLS=1
32901         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32902     else
32903         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32904 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
32905     fi
32906 fi
32907
32908 if test "$wxUSE_NOTEBOOK" = "yes"; then
32909     cat >>confdefs.h <<\_ACEOF
32910 #define wxUSE_NOTEBOOK 1
32911 _ACEOF
32912
32913     USES_CONTROLS=1
32914     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32915 fi
32916
32917
32918 if test "$wxUSE_RADIOBOX" = "yes"; then
32919     cat >>confdefs.h <<\_ACEOF
32920 #define wxUSE_RADIOBOX 1
32921 _ACEOF
32922
32923     USES_CONTROLS=1
32924 fi
32925
32926 if test "$wxUSE_RADIOBTN" = "yes"; then
32927     cat >>confdefs.h <<\_ACEOF
32928 #define wxUSE_RADIOBTN 1
32929 _ACEOF
32930
32931     USES_CONTROLS=1
32932 fi
32933
32934 if test "$wxUSE_SASH" = "yes"; then
32935     cat >>confdefs.h <<\_ACEOF
32936 #define wxUSE_SASH 1
32937 _ACEOF
32938
32939     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32940 fi
32941
32942 if test "$wxUSE_SCROLLBAR" = "yes"; then
32943     cat >>confdefs.h <<\_ACEOF
32944 #define wxUSE_SCROLLBAR 1
32945 _ACEOF
32946
32947     USES_CONTROLS=1
32948     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
32949 fi
32950
32951 if test "$wxUSE_SLIDER" = "yes"; then
32952     cat >>confdefs.h <<\_ACEOF
32953 #define wxUSE_SLIDER 1
32954 _ACEOF
32955
32956     USES_CONTROLS=1
32957 fi
32958
32959 if test "$wxUSE_SPINBTN" = "yes"; then
32960     cat >>confdefs.h <<\_ACEOF
32961 #define wxUSE_SPINBTN 1
32962 _ACEOF
32963
32964     USES_CONTROLS=1
32965 fi
32966
32967 if test "$wxUSE_SPINCTRL" = "yes"; then
32968     cat >>confdefs.h <<\_ACEOF
32969 #define wxUSE_SPINCTRL 1
32970 _ACEOF
32971
32972     USES_CONTROLS=1
32973 fi
32974
32975 if test "$wxUSE_SPLITTER" = "yes"; then
32976     cat >>confdefs.h <<\_ACEOF
32977 #define wxUSE_SPLITTER 1
32978 _ACEOF
32979
32980     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32981 fi
32982
32983 if test "$wxUSE_STATBMP" = "yes"; then
32984     cat >>confdefs.h <<\_ACEOF
32985 #define wxUSE_STATBMP 1
32986 _ACEOF
32987
32988     USES_CONTROLS=1
32989 fi
32990
32991 if test "$wxUSE_STATBOX" = "yes"; then
32992     cat >>confdefs.h <<\_ACEOF
32993 #define wxUSE_STATBOX 1
32994 _ACEOF
32995
32996     USES_CONTROLS=1
32997 fi
32998
32999 if test "$wxUSE_STATTEXT" = "yes"; then
33000     cat >>confdefs.h <<\_ACEOF
33001 #define wxUSE_STATTEXT 1
33002 _ACEOF
33003
33004     USES_CONTROLS=1
33005 fi
33006
33007 if test "$wxUSE_STATLINE" = "yes"; then
33008     cat >>confdefs.h <<\_ACEOF
33009 #define wxUSE_STATLINE 1
33010 _ACEOF
33011
33012     USES_CONTROLS=1
33013 fi
33014
33015 if test "$wxUSE_STATUSBAR" = "yes"; then
33016     cat >>confdefs.h <<\_ACEOF
33017 #define wxUSE_STATUSBAR 1
33018 _ACEOF
33019
33020     USES_CONTROLS=1
33021
33022     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
33023 fi
33024
33025 if test "$wxUSE_TABDIALOG" = "yes"; then
33026     cat >>confdefs.h <<\_ACEOF
33027 #define wxUSE_TAB_DIALOG 1
33028 _ACEOF
33029
33030     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33031 fi
33032
33033 if test "$wxUSE_TEXTCTRL" = "yes"; then
33034     cat >>confdefs.h <<\_ACEOF
33035 #define wxUSE_TEXTCTRL 1
33036 _ACEOF
33037
33038     USES_CONTROLS=1
33039     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33040 fi
33041
33042 if test "$wxUSE_TOGGLEBTN" = "yes"; then
33043     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
33044         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33045 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
33046         wxUSE_TOGGLEBTN=no
33047     fi
33048     if test "$wxUSE_UNIVERSAL" = "yes"; then
33049         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33050 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
33051         wxUSE_TOGGLEBTN=no
33052     fi
33053
33054     if test "$wxUSE_TOGGLEBTN" = "yes"; then
33055         cat >>confdefs.h <<\_ACEOF
33056 #define wxUSE_TOGGLEBTN 1
33057 _ACEOF
33058
33059         USES_CONTROLS=1
33060     fi
33061 fi
33062
33063 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
33064     cat >>confdefs.h <<\_ACEOF
33065 #define wxUSE_TOOLBAR_SIMPLE 1
33066 _ACEOF
33067
33068     wxUSE_TOOLBAR="yes"
33069     USES_CONTROLS=1
33070 fi
33071
33072 if test "$wxUSE_TOOLBAR" = "yes"; then
33073     cat >>confdefs.h <<\_ACEOF
33074 #define wxUSE_TOOLBAR 1
33075 _ACEOF
33076
33077     USES_CONTROLS=1
33078
33079         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33080         wxUSE_TOOLBAR_NATIVE="yes"
33081     fi
33082
33083     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
33084         cat >>confdefs.h <<\_ACEOF
33085 #define wxUSE_TOOLBAR_NATIVE 1
33086 _ACEOF
33087
33088         USES_CONTROLS=1
33089     fi
33090
33091     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
33092 fi
33093
33094 if test "$wxUSE_TOOLTIPS" = "yes"; then
33095     if test "$wxUSE_MOTIF" = 1; then
33096         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33097 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
33098     else
33099         if test "$wxUSE_UNIVERSAL" = "yes"; then
33100             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33101 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
33102         else
33103             cat >>confdefs.h <<\_ACEOF
33104 #define wxUSE_TOOLTIPS 1
33105 _ACEOF
33106
33107         fi
33108     fi
33109 fi
33110
33111 if test "$wxUSE_TREECTRL" = "yes"; then
33112     if test "$wxUSE_IMAGLIST" = "yes"; then
33113         cat >>confdefs.h <<\_ACEOF
33114 #define wxUSE_TREECTRL 1
33115 _ACEOF
33116
33117         USES_CONTROLS=1
33118         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33119     else
33120         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33121 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
33122     fi
33123 fi
33124
33125 if test "$wxUSE_POPUPWIN" = "yes"; then
33126     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
33127         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33128 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
33129     else
33130         if test "$wxUSE_MOTIF" = 1; then
33131             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33132 echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
33133         else
33134             if test "$wxUSE_PM" = 1; then
33135                 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33136 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
33137             else
33138                 cat >>confdefs.h <<\_ACEOF
33139 #define wxUSE_POPUPWIN 1
33140 _ACEOF
33141
33142
33143                 USES_CONTROLS=1
33144             fi
33145         fi
33146     fi
33147 fi
33148
33149 if test "$wxUSE_TIPWINDOW" = "yes"; then
33150     if test "$wxUSE_PM" = 1; then
33151         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33152 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
33153     else
33154         cat >>confdefs.h <<\_ACEOF
33155 #define wxUSE_TIPWINDOW 1
33156 _ACEOF
33157
33158     fi
33159 fi
33160
33161 if test "$USES_CONTROLS" = 1; then
33162     cat >>confdefs.h <<\_ACEOF
33163 #define wxUSE_CONTROLS 1
33164 _ACEOF
33165
33166 fi
33167
33168
33169
33170 if test "$wxUSE_DRAGIMAGE" = "yes"; then
33171     cat >>confdefs.h <<\_ACEOF
33172 #define wxUSE_DRAGIMAGE 1
33173 _ACEOF
33174
33175     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33176 fi
33177
33178 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33179     cat >>confdefs.h <<\_ACEOF
33180 #define wxUSE_ACCESSIBILITY 1
33181 _ACEOF
33182
33183     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33184 fi
33185
33186 if test "$wxUSE_MENUS" = "yes"; then
33187     cat >>confdefs.h <<\_ACEOF
33188 #define wxUSE_MENUS 1
33189 _ACEOF
33190
33191     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
33192 fi
33193
33194 if test "$wxUSE_METAFILE" = "yes"; then
33195     cat >>confdefs.h <<\_ACEOF
33196 #define wxUSE_METAFILE 1
33197 _ACEOF
33198
33199 fi
33200
33201 if test "$wxUSE_MIMETYPE" = "yes"; then
33202     cat >>confdefs.h <<\_ACEOF
33203 #define wxUSE_MIMETYPE 1
33204 _ACEOF
33205
33206 fi
33207
33208 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
33209     cat >>confdefs.h <<\_ACEOF
33210 #define wxUSE_SYSTEM_OPTIONS 1
33211 _ACEOF
33212
33213 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33214         "$TOOLKIT" = "MOTIF"; then
33215     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33216 fi
33217
33218 fi
33219
33220 if test "$wxUSE_MINIFRAME" = "yes"; then
33221     cat >>confdefs.h <<\_ACEOF
33222 #define wxUSE_MINIFRAME 1
33223 _ACEOF
33224
33225     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33226 fi
33227
33228 USE_HTML=0
33229 if test "$wxUSE_HTML" = "yes"; then
33230     cat >>confdefs.h <<\_ACEOF
33231 #define wxUSE_HTML 1
33232 _ACEOF
33233
33234     USE_HTML=1
33235     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
33236 fi
33237
33238 if test "$wxUSE_VALIDATORS" = "yes"; then
33239     cat >>confdefs.h <<\_ACEOF
33240 #define wxUSE_VALIDATORS 1
33241 _ACEOF
33242
33243     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33244 fi
33245
33246 if test "$wxUSE_PALETTE" = "yes" ; then
33247   cat >>confdefs.h <<\_ACEOF
33248 #define wxUSE_PALETTE 1
33249 _ACEOF
33250
33251 fi
33252
33253 if test "$wxUSE_IMAGE" = "yes" ; then
33254   cat >>confdefs.h <<\_ACEOF
33255 #define wxUSE_IMAGE 1
33256 _ACEOF
33257
33258 fi
33259
33260 if test "$wxUSE_GIF" = "yes" ; then
33261   cat >>confdefs.h <<\_ACEOF
33262 #define wxUSE_GIF 1
33263 _ACEOF
33264
33265 fi
33266
33267 if test "$wxUSE_PCX" = "yes" ; then
33268   cat >>confdefs.h <<\_ACEOF
33269 #define wxUSE_PCX 1
33270 _ACEOF
33271
33272 fi
33273
33274 if test "$wxUSE_IFF" = "yes" ; then
33275   cat >>confdefs.h <<\_ACEOF
33276 #define wxUSE_IFF 1
33277 _ACEOF
33278
33279 fi
33280
33281 if test "$wxUSE_PNM" = "yes" ; then
33282   cat >>confdefs.h <<\_ACEOF
33283 #define wxUSE_PNM 1
33284 _ACEOF
33285
33286 fi
33287
33288 if test "$wxUSE_XPM" = "yes" ; then
33289   cat >>confdefs.h <<\_ACEOF
33290 #define wxUSE_XPM 1
33291 _ACEOF
33292
33293 fi
33294
33295 if test "$wxUSE_ICO_CUR" = "yes" ; then
33296   cat >>confdefs.h <<\_ACEOF
33297 #define wxUSE_ICO_CUR 1
33298 _ACEOF
33299
33300 fi
33301
33302 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33303     LIBS=" -lunicows $LIBS"
33304 fi
33305
33306
33307 if test "$wxUSE_CHOICEDLG" = "yes"; then
33308     cat >>confdefs.h <<\_ACEOF
33309 #define wxUSE_CHOICEDLG 1
33310 _ACEOF
33311
33312 fi
33313
33314 if test "$wxUSE_COLOURDLG" = "yes"; then
33315     cat >>confdefs.h <<\_ACEOF
33316 #define wxUSE_COLOURDLG 1
33317 _ACEOF
33318
33319 fi
33320
33321 if test "$wxUSE_FILEDLG" = "yes"; then
33322     cat >>confdefs.h <<\_ACEOF
33323 #define wxUSE_FILEDLG 1
33324 _ACEOF
33325
33326 fi
33327
33328 if test "$wxUSE_FINDREPLDLG" = "yes"; then
33329     cat >>confdefs.h <<\_ACEOF
33330 #define wxUSE_FINDREPLDLG 1
33331 _ACEOF
33332
33333 fi
33334
33335 if test "$wxUSE_FONTDLG" = "yes"; then
33336     cat >>confdefs.h <<\_ACEOF
33337 #define wxUSE_FONTDLG 1
33338 _ACEOF
33339
33340 fi
33341
33342 if test "$wxUSE_DIRDLG" = "yes"; then
33343     if test "$wxUSE_TREECTRL" != "yes"; then
33344         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33345 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
33346     else
33347         cat >>confdefs.h <<\_ACEOF
33348 #define wxUSE_DIRDLG 1
33349 _ACEOF
33350
33351     fi
33352 fi
33353
33354 if test "$wxUSE_MSGDLG" = "yes"; then
33355     cat >>confdefs.h <<\_ACEOF
33356 #define wxUSE_MSGDLG 1
33357 _ACEOF
33358
33359 fi
33360
33361 if test "$wxUSE_NUMBERDLG" = "yes"; then
33362     cat >>confdefs.h <<\_ACEOF
33363 #define wxUSE_NUMBERDLG 1
33364 _ACEOF
33365
33366 fi
33367
33368 if test "$wxUSE_PROGRESSDLG" = "yes"; then
33369     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33370        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33371 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
33372     else
33373         cat >>confdefs.h <<\_ACEOF
33374 #define wxUSE_PROGRESSDLG 1
33375 _ACEOF
33376
33377     fi
33378 fi
33379
33380 if test "$wxUSE_SPLASH" = "yes"; then
33381     cat >>confdefs.h <<\_ACEOF
33382 #define wxUSE_SPLASH 1
33383 _ACEOF
33384
33385 fi
33386
33387 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33388     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33389        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33390 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
33391     else
33392         cat >>confdefs.h <<\_ACEOF
33393 #define wxUSE_STARTUP_TIPS 1
33394 _ACEOF
33395
33396     fi
33397 fi
33398
33399 if test "$wxUSE_TEXTDLG" = "yes"; then
33400     cat >>confdefs.h <<\_ACEOF
33401 #define wxUSE_TEXTDLG 1
33402 _ACEOF
33403
33404 fi
33405
33406 if test "$wxUSE_WIZARDDLG" = "yes"; then
33407     cat >>confdefs.h <<\_ACEOF
33408 #define wxUSE_WIZARDDLG 1
33409 _ACEOF
33410
33411     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33412 fi
33413
33414
33415 if test "$cross_compiling" = "yes"; then
33416         OSINFO="\"$host\""
33417 else
33418         OSINFO=`uname -s -r -m`
33419     OSINFO="\"$OSINFO\""
33420 fi
33421
33422 cat >>confdefs.h <<_ACEOF
33423 #define WXWIN_OS_DESCRIPTION $OSINFO
33424 _ACEOF
33425
33426
33427
33428 if test "x$prefix" != "xNONE"; then
33429     wxPREFIX=$prefix
33430 else
33431     wxPREFIX=$ac_default_prefix
33432 fi
33433
33434 cat >>confdefs.h <<_ACEOF
33435 #define wxINSTALL_PREFIX "$wxPREFIX"
33436 _ACEOF
33437
33438
33439 top_builddir_wxconfig=`pwd`
33440
33441
33442
33443 CORE_BASE_LIBS="net base"
33444 CORE_GUI_LIBS="adv core"
33445
33446 if test "$wxUSE_XML" = "yes" ; then
33447     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33448 fi
33449 if test "$wxUSE_ODBC" != "no" ; then
33450     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33451     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
33452 fi
33453 if test "$wxUSE_HTML" = "yes" ; then
33454     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33455 fi
33456
33457
33458
33459
33460
33461
33462
33463
33464 if test "$wxUSE_MAC" = 1 ; then
33465     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33466 fi
33467 if test "$wxUSE_COCOA" = 1 ; then
33468     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33469 fi
33470
33471
33472 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33473
33474 have_cos=0
33475 have_floor=0
33476
33477 for ac_func in cos
33478 do
33479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33480 echo "$as_me:$LINENO: checking for $ac_func" >&5
33481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33482 if eval "test \"\${$as_ac_var+set}\" = set"; then
33483   echo $ECHO_N "(cached) $ECHO_C" >&6
33484 else
33485   cat >conftest.$ac_ext <<_ACEOF
33486 #line $LINENO "configure"
33487 /* confdefs.h.  */
33488 _ACEOF
33489 cat confdefs.h >>conftest.$ac_ext
33490 cat >>conftest.$ac_ext <<_ACEOF
33491 /* end confdefs.h.  */
33492 /* System header to define __stub macros and hopefully few prototypes,
33493     which can conflict with char $ac_func (); below.
33494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33495     <limits.h> exists even on freestanding compilers.  */
33496 #ifdef __STDC__
33497 # include <limits.h>
33498 #else
33499 # include <assert.h>
33500 #endif
33501 /* Override any gcc2 internal prototype to avoid an error.  */
33502 #ifdef __cplusplus
33503 extern "C"
33504 {
33505 #endif
33506 /* We use char because int might match the return type of a gcc2
33507    builtin and then its argument prototype would still apply.  */
33508 char $ac_func ();
33509 /* The GNU C library defines this for functions which it implements
33510     to always fail with ENOSYS.  Some functions are actually named
33511     something starting with __ and the normal name is an alias.  */
33512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33513 choke me
33514 #else
33515 char (*f) () = $ac_func;
33516 #endif
33517 #ifdef __cplusplus
33518 }
33519 #endif
33520
33521 int
33522 main ()
33523 {
33524 return f != $ac_func;
33525   ;
33526   return 0;
33527 }
33528 _ACEOF
33529 rm -f conftest.$ac_objext conftest$ac_exeext
33530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33531   (eval $ac_link) 2>&5
33532   ac_status=$?
33533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534   (exit $ac_status); } &&
33535          { ac_try='test -s conftest$ac_exeext'
33536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537   (eval $ac_try) 2>&5
33538   ac_status=$?
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); }; }; then
33541   eval "$as_ac_var=yes"
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546 eval "$as_ac_var=no"
33547 fi
33548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33549 fi
33550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33552 if test `eval echo '${'$as_ac_var'}'` = yes; then
33553   cat >>confdefs.h <<_ACEOF
33554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33555 _ACEOF
33556  have_cos=1
33557 fi
33558 done
33559
33560
33561 for ac_func in floor
33562 do
33563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33564 echo "$as_me:$LINENO: checking for $ac_func" >&5
33565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33566 if eval "test \"\${$as_ac_var+set}\" = set"; then
33567   echo $ECHO_N "(cached) $ECHO_C" >&6
33568 else
33569   cat >conftest.$ac_ext <<_ACEOF
33570 #line $LINENO "configure"
33571 /* confdefs.h.  */
33572 _ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h.  */
33576 /* System header to define __stub macros and hopefully few prototypes,
33577     which can conflict with char $ac_func (); below.
33578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33579     <limits.h> exists even on freestanding compilers.  */
33580 #ifdef __STDC__
33581 # include <limits.h>
33582 #else
33583 # include <assert.h>
33584 #endif
33585 /* Override any gcc2 internal prototype to avoid an error.  */
33586 #ifdef __cplusplus
33587 extern "C"
33588 {
33589 #endif
33590 /* We use char because int might match the return type of a gcc2
33591    builtin and then its argument prototype would still apply.  */
33592 char $ac_func ();
33593 /* The GNU C library defines this for functions which it implements
33594     to always fail with ENOSYS.  Some functions are actually named
33595     something starting with __ and the normal name is an alias.  */
33596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33597 choke me
33598 #else
33599 char (*f) () = $ac_func;
33600 #endif
33601 #ifdef __cplusplus
33602 }
33603 #endif
33604
33605 int
33606 main ()
33607 {
33608 return f != $ac_func;
33609   ;
33610   return 0;
33611 }
33612 _ACEOF
33613 rm -f conftest.$ac_objext conftest$ac_exeext
33614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33615   (eval $ac_link) 2>&5
33616   ac_status=$?
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); } &&
33619          { ac_try='test -s conftest$ac_exeext'
33620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621   (eval $ac_try) 2>&5
33622   ac_status=$?
33623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624   (exit $ac_status); }; }; then
33625   eval "$as_ac_var=yes"
33626 else
33627   echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33629
33630 eval "$as_ac_var=no"
33631 fi
33632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33633 fi
33634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33636 if test `eval echo '${'$as_ac_var'}'` = yes; then
33637   cat >>confdefs.h <<_ACEOF
33638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33639 _ACEOF
33640  have_floor=1
33641 fi
33642 done
33643
33644 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33645 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
33646 if test "$have_cos" = 1 -a "$have_floor" = 1; then
33647     echo "$as_me:$LINENO: result: yes" >&5
33648 echo "${ECHO_T}yes" >&6
33649 else
33650     echo "$as_me:$LINENO: result: no" >&5
33651 echo "${ECHO_T}no" >&6
33652     LIBS="$LIBS -lm"
33653     # use different functions to avoid configure caching
33654     have_sin=0
33655     have_ceil=0
33656
33657 for ac_func in sin
33658 do
33659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33660 echo "$as_me:$LINENO: checking for $ac_func" >&5
33661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33662 if eval "test \"\${$as_ac_var+set}\" = set"; then
33663   echo $ECHO_N "(cached) $ECHO_C" >&6
33664 else
33665   cat >conftest.$ac_ext <<_ACEOF
33666 #line $LINENO "configure"
33667 /* confdefs.h.  */
33668 _ACEOF
33669 cat confdefs.h >>conftest.$ac_ext
33670 cat >>conftest.$ac_ext <<_ACEOF
33671 /* end confdefs.h.  */
33672 /* System header to define __stub macros and hopefully few prototypes,
33673     which can conflict with char $ac_func (); below.
33674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33675     <limits.h> exists even on freestanding compilers.  */
33676 #ifdef __STDC__
33677 # include <limits.h>
33678 #else
33679 # include <assert.h>
33680 #endif
33681 /* Override any gcc2 internal prototype to avoid an error.  */
33682 #ifdef __cplusplus
33683 extern "C"
33684 {
33685 #endif
33686 /* We use char because int might match the return type of a gcc2
33687    builtin and then its argument prototype would still apply.  */
33688 char $ac_func ();
33689 /* The GNU C library defines this for functions which it implements
33690     to always fail with ENOSYS.  Some functions are actually named
33691     something starting with __ and the normal name is an alias.  */
33692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33693 choke me
33694 #else
33695 char (*f) () = $ac_func;
33696 #endif
33697 #ifdef __cplusplus
33698 }
33699 #endif
33700
33701 int
33702 main ()
33703 {
33704 return f != $ac_func;
33705   ;
33706   return 0;
33707 }
33708 _ACEOF
33709 rm -f conftest.$ac_objext conftest$ac_exeext
33710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33711   (eval $ac_link) 2>&5
33712   ac_status=$?
33713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714   (exit $ac_status); } &&
33715          { ac_try='test -s conftest$ac_exeext'
33716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33717   (eval $ac_try) 2>&5
33718   ac_status=$?
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); }; }; then
33721   eval "$as_ac_var=yes"
33722 else
33723   echo "$as_me: failed program was:" >&5
33724 sed 's/^/| /' conftest.$ac_ext >&5
33725
33726 eval "$as_ac_var=no"
33727 fi
33728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33729 fi
33730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33732 if test `eval echo '${'$as_ac_var'}'` = yes; then
33733   cat >>confdefs.h <<_ACEOF
33734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33735 _ACEOF
33736  have_sin=1
33737 fi
33738 done
33739
33740
33741 for ac_func in ceil
33742 do
33743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33744 echo "$as_me:$LINENO: checking for $ac_func" >&5
33745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33746 if eval "test \"\${$as_ac_var+set}\" = set"; then
33747   echo $ECHO_N "(cached) $ECHO_C" >&6
33748 else
33749   cat >conftest.$ac_ext <<_ACEOF
33750 #line $LINENO "configure"
33751 /* confdefs.h.  */
33752 _ACEOF
33753 cat confdefs.h >>conftest.$ac_ext
33754 cat >>conftest.$ac_ext <<_ACEOF
33755 /* end confdefs.h.  */
33756 /* System header to define __stub macros and hopefully few prototypes,
33757     which can conflict with char $ac_func (); below.
33758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33759     <limits.h> exists even on freestanding compilers.  */
33760 #ifdef __STDC__
33761 # include <limits.h>
33762 #else
33763 # include <assert.h>
33764 #endif
33765 /* Override any gcc2 internal prototype to avoid an error.  */
33766 #ifdef __cplusplus
33767 extern "C"
33768 {
33769 #endif
33770 /* We use char because int might match the return type of a gcc2
33771    builtin and then its argument prototype would still apply.  */
33772 char $ac_func ();
33773 /* The GNU C library defines this for functions which it implements
33774     to always fail with ENOSYS.  Some functions are actually named
33775     something starting with __ and the normal name is an alias.  */
33776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33777 choke me
33778 #else
33779 char (*f) () = $ac_func;
33780 #endif
33781 #ifdef __cplusplus
33782 }
33783 #endif
33784
33785 int
33786 main ()
33787 {
33788 return f != $ac_func;
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>&5
33796   ac_status=$?
33797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798   (exit $ac_status); } &&
33799          { ac_try='test -s conftest$ac_exeext'
33800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801   (eval $ac_try) 2>&5
33802   ac_status=$?
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); }; }; then
33805   eval "$as_ac_var=yes"
33806 else
33807   echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33809
33810 eval "$as_ac_var=no"
33811 fi
33812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33813 fi
33814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33816 if test `eval echo '${'$as_ac_var'}'` = yes; then
33817   cat >>confdefs.h <<_ACEOF
33818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33819 _ACEOF
33820  have_ceil=1
33821 fi
33822 done
33823
33824     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33825 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
33826     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
33827         echo "$as_me:$LINENO: result: yes" >&5
33828 echo "${ECHO_T}yes" >&6
33829     else
33830         echo "$as_me:$LINENO: result: no" >&5
33831 echo "${ECHO_T}no" >&6
33832         # not sure we should warn the user, crash, etc.
33833     fi
33834 fi
33835
33836 if test "$wxUSE_GUI" = "yes"; then
33837
33838
33839             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33840                      drawing dynamic erase event exec font image \
33841                      minimal propsize rotate shaped widgets render"
33842
33843     if test "$wxUSE_MONOLITHIC" != "yes"; then
33844         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33845     fi
33846 else
33847     SAMPLES_SUBDIRS="console"
33848 fi
33849
33850
33851 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
33852 -I\${top_srcdir}/include \
33853 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33854 $TOOLKIT_INCLUDE"
33855
33856 if test "$GXX" = yes ; then
33857         CXXWARNINGS="-Wall"
33858         fi
33859
33860 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33861
33862 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
33863 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33864 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
33865
33866
33867 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
33868 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33869 EXTRALIBS_XML="$EXPAT_LINK"
33870 EXTRALIBS_ODBC="$ODBC_LINK"
33871 if test "$wxUSE_GUI" = "yes"; then
33872     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33873 fi
33874 if test "$wxUSE_OPENGL" = "yes"; then
33875     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33876 fi
33877
33878 LDFLAGS="$LDFLAGS $PROFILE"
33879
33880 if test "$wxUSE_GTK" = 1; then
33881     WXCONFIG_INCLUDE=
33882 else
33883     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33884 fi
33885
33886 WXCONFIG_EXTRALIBS="$LIBS"
33887
33888 if test "$wxUSE_REGEX" = "builtin" ; then
33889     wxconfig_3rdparty="$wxconfig_3rdparty regex"
33890 fi
33891 if test "$wxUSE_EXPAT" = "builtin" ; then
33892     wxconfig_3rdparty="$wxconfig_3rdparty expat"
33893 fi
33894 if test "$wxUSE_ODBC" = "builtin" ; then
33895     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33896 fi
33897 if test "$wxUSE_LIBTIFF" = "builtin" ; then
33898     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33899 fi
33900 if test "$wxUSE_LIBJPEG" = "builtin" ; then
33901     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33902 fi
33903 if test "$wxUSE_LIBPNG" = "builtin" ; then
33904     wxconfig_3rdparty="$wxconfig_3rdparty png"
33905 fi
33906 if test "$wxUSE_ZLIB" = "builtin" ; then
33907     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33908 fi
33909 if test "$wxUSE_ODBC" = "builtin" ; then
33910     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33911 fi
33912
33913 for i in $wxconfig_3rdparty ; do
33914     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33915 done
33916
33917
33918 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33919     WXUNIV=1
33920 else
33921     WXUNIV=0
33922 fi
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932 if test $wxUSE_MONOLITHIC = "yes" ; then
33933     MONOLITHIC=1
33934 else
33935     MONOLITHIC=0
33936 fi
33937
33938 if test $wxUSE_ODBC != "no" ; then
33939     USE_ODBC=1
33940 else
33941     USE_ODBC=0
33942 fi
33943
33944 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33945     OFFICIAL_BUILD=1
33946 else
33947     OFFICIAL_BUILD=0
33948 fi
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
33967
33968
33969
33970
33971
33972
33973
33974     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
33975
33976     if test -n "$ac_tool_prefix"; then
33977   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33979 echo "$as_me:$LINENO: checking for $ac_word" >&5
33980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33981 if test "${ac_cv_prog_RANLIB+set}" = set; then
33982   echo $ECHO_N "(cached) $ECHO_C" >&6
33983 else
33984   if test -n "$RANLIB"; then
33985   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33986 else
33987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33988 for as_dir in $PATH
33989 do
33990   IFS=$as_save_IFS
33991   test -z "$as_dir" && as_dir=.
33992   for ac_exec_ext in '' $ac_executable_extensions; do
33993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33994     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33996     break 2
33997   fi
33998 done
33999 done
34000
34001 fi
34002 fi
34003 RANLIB=$ac_cv_prog_RANLIB
34004 if test -n "$RANLIB"; then
34005   echo "$as_me:$LINENO: result: $RANLIB" >&5
34006 echo "${ECHO_T}$RANLIB" >&6
34007 else
34008   echo "$as_me:$LINENO: result: no" >&5
34009 echo "${ECHO_T}no" >&6
34010 fi
34011
34012 fi
34013 if test -z "$ac_cv_prog_RANLIB"; then
34014   ac_ct_RANLIB=$RANLIB
34015   # Extract the first word of "ranlib", so it can be a program name with args.
34016 set dummy ranlib; ac_word=$2
34017 echo "$as_me:$LINENO: checking for $ac_word" >&5
34018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34020   echo $ECHO_N "(cached) $ECHO_C" >&6
34021 else
34022   if test -n "$ac_ct_RANLIB"; then
34023   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34024 else
34025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34026 for as_dir in $PATH
34027 do
34028   IFS=$as_save_IFS
34029   test -z "$as_dir" && as_dir=.
34030   for ac_exec_ext in '' $ac_executable_extensions; do
34031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34032     ac_cv_prog_ac_ct_RANLIB="ranlib"
34033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34034     break 2
34035   fi
34036 done
34037 done
34038
34039   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34040 fi
34041 fi
34042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34043 if test -n "$ac_ct_RANLIB"; then
34044   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
34046 else
34047   echo "$as_me:$LINENO: result: no" >&5
34048 echo "${ECHO_T}no" >&6
34049 fi
34050
34051   RANLIB=$ac_ct_RANLIB
34052 else
34053   RANLIB="$ac_cv_prog_RANLIB"
34054 fi
34055
34056     # Find a good install program.  We prefer a C program (faster),
34057 # so one script is as good as another.  But avoid the broken or
34058 # incompatible versions:
34059 # SysV /etc/install, /usr/sbin/install
34060 # SunOS /usr/etc/install
34061 # IRIX /sbin/install
34062 # AIX /bin/install
34063 # AmigaOS /C/install, which installs bootblocks on floppy discs
34064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
34066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34067 # ./install, which can be erroneously created by make from ./install.sh.
34068 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34069 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
34070 if test -z "$INSTALL"; then
34071 if test "${ac_cv_path_install+set}" = set; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34075 for as_dir in $PATH
34076 do
34077   IFS=$as_save_IFS
34078   test -z "$as_dir" && as_dir=.
34079   # Account for people who put trailing slashes in PATH elements.
34080 case $as_dir/ in
34081   ./ | .// | /cC/* | \
34082   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34083   /usr/ucb/* ) ;;
34084   *)
34085     # OSF1 and SCO ODT 3.0 have their own names for install.
34086     # Don't use installbsd from OSF since it installs stuff as root
34087     # by default.
34088     for ac_prog in ginstall scoinst install; do
34089       for ac_exec_ext in '' $ac_executable_extensions; do
34090         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34091           if test $ac_prog = install &&
34092             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34093             # AIX install.  It has an incompatible calling convention.
34094             :
34095           elif test $ac_prog = install &&
34096             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34097             # program-specific install script used by HP pwplus--don't use.
34098             :
34099           else
34100             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34101             break 3
34102           fi
34103         fi
34104       done
34105     done
34106     ;;
34107 esac
34108 done
34109
34110
34111 fi
34112   if test "${ac_cv_path_install+set}" = set; then
34113     INSTALL=$ac_cv_path_install
34114   else
34115     # As a last resort, use the slow shell script.  We don't cache a
34116     # path for INSTALL within a source directory, because that will
34117     # break other packages using the cache if that directory is
34118     # removed, or if the path is relative.
34119     INSTALL=$ac_install_sh
34120   fi
34121 fi
34122 echo "$as_me:$LINENO: result: $INSTALL" >&5
34123 echo "${ECHO_T}$INSTALL" >&6
34124
34125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34126 # It thinks the first close brace ends the variable substitution.
34127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34128
34129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
34130
34131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34132
34133     echo "$as_me:$LINENO: checking whether ln -s works" >&5
34134 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34135 LN_S=$as_ln_s
34136 if test "$LN_S" = "ln -s"; then
34137   echo "$as_me:$LINENO: result: yes" >&5
34138 echo "${ECHO_T}yes" >&6
34139 else
34140   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34141 echo "${ECHO_T}no, using $LN_S" >&6
34142 fi
34143
34144
34145     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34146 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34147 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34148 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34149   echo $ECHO_N "(cached) $ECHO_C" >&6
34150 else
34151   cat >conftest.make <<\_ACEOF
34152 all:
34153         @echo 'ac_maketemp="$(MAKE)"'
34154 _ACEOF
34155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34156 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34157 if test -n "$ac_maketemp"; then
34158   eval ac_cv_prog_make_${ac_make}_set=yes
34159 else
34160   eval ac_cv_prog_make_${ac_make}_set=no
34161 fi
34162 rm -f conftest.make
34163 fi
34164 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34165   echo "$as_me:$LINENO: result: yes" >&5
34166 echo "${ECHO_T}yes" >&6
34167   SET_MAKE=
34168 else
34169   echo "$as_me:$LINENO: result: no" >&5
34170 echo "${ECHO_T}no" >&6
34171   SET_MAKE="MAKE=${MAKE-make}"
34172 fi
34173
34174
34175
34176     if test "$build" != "$host" ; then
34177         AR=$host_alias-ar
34178         STRIP=$host_alias-strip
34179     else
34180         # Extract the first word of "ar", so it can be a program name with args.
34181 set dummy ar; ac_word=$2
34182 echo "$as_me:$LINENO: checking for $ac_word" >&5
34183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34184 if test "${ac_cv_prog_AR+set}" = set; then
34185   echo $ECHO_N "(cached) $ECHO_C" >&6
34186 else
34187   if test -n "$AR"; then
34188   ac_cv_prog_AR="$AR" # Let the user override the test.
34189 else
34190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34191 for as_dir in $PATH
34192 do
34193   IFS=$as_save_IFS
34194   test -z "$as_dir" && as_dir=.
34195   for ac_exec_ext in '' $ac_executable_extensions; do
34196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34197     ac_cv_prog_AR="ar"
34198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34199     break 2
34200   fi
34201 done
34202 done
34203
34204   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34205 fi
34206 fi
34207 AR=$ac_cv_prog_AR
34208 if test -n "$AR"; then
34209   echo "$as_me:$LINENO: result: $AR" >&5
34210 echo "${ECHO_T}$AR" >&6
34211 else
34212   echo "$as_me:$LINENO: result: no" >&5
34213 echo "${ECHO_T}no" >&6
34214 fi
34215
34216         # Extract the first word of "strip", so it can be a program name with args.
34217 set dummy strip; ac_word=$2
34218 echo "$as_me:$LINENO: checking for $ac_word" >&5
34219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34220 if test "${ac_cv_prog_STRIP+set}" = set; then
34221   echo $ECHO_N "(cached) $ECHO_C" >&6
34222 else
34223   if test -n "$STRIP"; then
34224   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34225 else
34226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34227 for as_dir in $PATH
34228 do
34229   IFS=$as_save_IFS
34230   test -z "$as_dir" && as_dir=.
34231   for ac_exec_ext in '' $ac_executable_extensions; do
34232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34233     ac_cv_prog_STRIP="strip"
34234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34235     break 2
34236   fi
34237 done
34238 done
34239
34240   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34241 fi
34242 fi
34243 STRIP=$ac_cv_prog_STRIP
34244 if test -n "$STRIP"; then
34245   echo "$as_me:$LINENO: result: $STRIP" >&5
34246 echo "${ECHO_T}$STRIP" >&6
34247 else
34248   echo "$as_me:$LINENO: result: no" >&5
34249 echo "${ECHO_T}no" >&6
34250 fi
34251
34252     fi
34253
34254     case ${host} in
34255         *-hp-hpux* )
34256             INSTALL_DIR="mkdir"
34257             ;;
34258         *)  INSTALL_DIR="$INSTALL -d"
34259             ;;
34260     esac
34261
34262
34263     LDFLAGS_GUI=
34264     case ${host} in
34265         *-*-cygwin* | *-*-mingw32* )
34266         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34267     esac
34268
34269
34270     fi
34271
34272         echo "$as_me:$LINENO: checking if make is GNU make" >&5
34273 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
34274 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
34275   echo $ECHO_N "(cached) $ECHO_C" >&6
34276 else
34277
34278         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34279                 egrep -s GNU > /dev/null); then
34280             bakefile_cv_prog_makeisgnu="yes"
34281         else
34282             bakefile_cv_prog_makeisgnu="no"
34283         fi
34284
34285 fi
34286 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34287 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
34288
34289     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34290         IF_GNU_MAKE=""
34291     else
34292         IF_GNU_MAKE="#"
34293     fi
34294
34295
34296
34297     PLATFORM_UNIX=0
34298     PLATFORM_WIN32=0
34299     PLATFORM_MSDOS=0
34300     PLATFORM_MAC=0
34301     PLATFORM_MACOSX=0
34302
34303     case "${host}" in
34304         *-*-cygwin* | *-*-mingw32* )
34305             PLATFORM_WIN32=1
34306         ;;
34307         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34308             PLATFORM_MSDOS=1
34309         ;;
34310         powerpc-*-darwin* )
34311             PLATFORM_MAC=1
34312             PLATFORM_MACOSX=1
34313         ;;
34314         * )
34315             PLATFORM_UNIX=1
34316         ;;
34317     esac
34318
34319
34320
34321
34322
34323
34324
34325
34326     SO_SUFFIX="so"
34327     SO_SUFFIX_MODULE="so"
34328     EXEEXT=""
34329     DLLPREFIX=lib
34330     DLLPREFIX_MODULE=
34331
34332     case "${host}" in
34333         *-hp-hpux* )
34334             SO_SUFFIX="sl"
34335             SO_SUFFIX_MODULE="sl"
34336         ;;
34337         *-*-aix* )
34338                                                                         SO_SUFFIX="a"
34339             SO_SUFFIX_MODULE="a"
34340         ;;
34341         *-*-cygwin* | *-*-mingw32* )
34342             SO_SUFFIX="dll"
34343             SO_SUFFIX_MODULE="dll"
34344             EXEEXT=".exe"
34345             DLLPREFIX=""
34346         ;;
34347         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34348             EXEEXT=".exe"
34349             DLLPREFIX=""
34350         ;;
34351         powerpc-*-darwin* )
34352             SO_SUFFIX="dylib"
34353             SO_SUFFIX_MODULE="bundle"
34354         ;;
34355     esac
34356
34357
34358
34359
34360
34361
34362
34363
34364         SHARED_LD_CC="\$(CC) -shared -o"
34365     SHARED_LD_CXX="\$(CXX) -shared -o"
34366
34367         if test "x$GCC" = "xyes"; then
34368                 PIC_FLAG="-fPIC"
34369     fi
34370
34371     case "${host}" in
34372       *-hp-hpux* )
34373                 if test "x$GCC" = "xyes"; then
34374                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34375             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34376         else
34377                         LDFLAGS="$LDFLAGS -L/usr/lib"
34378
34379             SHARED_LD_CC="${CC} -b -o"
34380             SHARED_LD_CXX="${CXX} -b -o"
34381             PIC_FLAG="+Z"
34382         fi
34383       ;;
34384
34385       *-*-linux* )
34386         if test "x$GCC" != "xyes"; then
34387             echo "$as_me:$LINENO: checking for Intel compiler" >&5
34388 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34389 if test "${bakefile_cv_prog_icc+set}" = set; then
34390   echo $ECHO_N "(cached) $ECHO_C" >&6
34391 else
34392
34393                 cat >conftest.$ac_ext <<_ACEOF
34394 #line $LINENO "configure"
34395 /* confdefs.h.  */
34396 _ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h.  */
34400
34401 int
34402 main ()
34403 {
34404
34405                         #ifndef __INTEL_COMPILER
34406                         #error Not icc
34407                         #endif
34408
34409   ;
34410   return 0;
34411 }
34412 _ACEOF
34413 rm -f conftest.$ac_objext
34414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34415   (eval $ac_compile) 2>&5
34416   ac_status=$?
34417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418   (exit $ac_status); } &&
34419          { ac_try='test -s conftest.$ac_objext'
34420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34421   (eval $ac_try) 2>&5
34422   ac_status=$?
34423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34424   (exit $ac_status); }; }; then
34425   bakefile_cv_prog_icc=yes
34426 else
34427   echo "$as_me: failed program was:" >&5
34428 sed 's/^/| /' conftest.$ac_ext >&5
34429
34430 bakefile_cv_prog_icc=no
34431
34432 fi
34433 rm -f conftest.$ac_objext conftest.$ac_ext
34434
34435 fi
34436 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34437 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
34438             if test "$bakefile_cv_prog_icc" = "yes"; then
34439                 PIC_FLAG="-KPIC"
34440             fi
34441         fi
34442       ;;
34443
34444       *-*-solaris2* )
34445         if test "x$GCC" != xyes ; then
34446             SHARED_LD_CC="${CC} -G -o"
34447             SHARED_LD_CXX="${CXX} -G -o"
34448             PIC_FLAG="-KPIC"
34449         fi
34450       ;;
34451
34452       *-*-darwin* )
34453                         CFLAGS="$CFLAGS -fno-common"
34454         CXXFLAGS="$CXXFLAGS -fno-common"
34455
34456
34457         cat <<EOF >shared-ld-sh
34458 #!/bin/sh
34459 #-----------------------------------------------------------------------------
34460 #-- Name:        distrib/mac/shared-ld-sh
34461 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
34462 #-- Author:      Gilles Depeyrot
34463 #-- Copyright:   (c) 2002 Gilles Depeyrot
34464 #-- Licence:     any use permitted
34465 #-----------------------------------------------------------------------------
34466
34467 verbose=0
34468 args=""
34469 objects=""
34470 linking_flag="-dynamiclib"
34471
34472 while test \${#} -gt 0; do
34473     case \${1} in
34474
34475        -v)
34476         verbose=1
34477         ;;
34478
34479        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34480         # collect these options and values
34481         args="\${args} \${1} \${2}"
34482         shift
34483         ;;
34484
34485        -l*|-L*|-flat_namespace)
34486         # collect these options
34487         args="\${args} \${1}"
34488         ;;
34489
34490        -dynamiclib|-bundle)
34491         linking_flag="\${1}"
34492         ;;
34493
34494        -*)
34495         echo "shared-ld: unhandled option '\${1}'"
34496         exit 1
34497         ;;
34498
34499         *.o | *.a | *.dylib)
34500         # collect object files
34501         objects="\${objects} \${1}"
34502         ;;
34503
34504         *)
34505         echo "shared-ld: unhandled argument '\${1}'"
34506         exit 1
34507         ;;
34508
34509     esac
34510     shift
34511 done
34512
34513 #
34514 # Link one module containing all the others
34515 #
34516 if test \${verbose} = 1; then
34517     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34518 fi
34519 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34520 status=\$?
34521 if test \${status} != 0; then
34522     exit \${status}
34523 fi
34524
34525 #
34526 # Link the shared library from the single module created
34527 #
34528 if test \${verbose} = 1; then
34529     echo "cc \${linking_flag} master.\$\$.o \${args}"
34530 fi
34531 c++ \${linking_flag} master.\$\$.o \${args}
34532 status=\$?
34533 if test \${status} != 0; then
34534     exit \${status}
34535 fi
34536
34537 #
34538 # Remove intermediate module
34539 #
34540 rm -f master.\$\$.o
34541
34542 exit 0
34543 EOF
34544         chmod +x shared-ld-sh
34545
34546         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34547         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
34548         SHARED_LD_CXX="$SHARED_LD_CC"
34549         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34550         PIC_FLAG="-dynamic -fPIC"
34551                                       ;;
34552
34553       *-*-aix* )
34554                 if test "x$GCC" != "xyes"; then
34555                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34556 set dummy makeC++SharedLib; ac_word=$2
34557 echo "$as_me:$LINENO: checking for $ac_word" >&5
34558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34559 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34560   echo $ECHO_N "(cached) $ECHO_C" >&6
34561 else
34562   if test -n "$AIX_CXX_LD"; then
34563   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34564 else
34565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34566 for as_dir in $PATH
34567 do
34568   IFS=$as_save_IFS
34569   test -z "$as_dir" && as_dir=.
34570   for ac_exec_ext in '' $ac_executable_extensions; do
34571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34572     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34574     break 2
34575   fi
34576 done
34577 done
34578
34579   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34580 fi
34581 fi
34582 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
34583 if test -n "$AIX_CXX_LD"; then
34584   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34585 echo "${ECHO_T}$AIX_CXX_LD" >&6
34586 else
34587   echo "$as_me:$LINENO: result: no" >&5
34588 echo "${ECHO_T}no" >&6
34589 fi
34590
34591                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34592             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34593         fi
34594       ;;
34595
34596       *-*-beos* )
34597                         SHARED_LD_CC="${LD} -shared -o"
34598         SHARED_LD_CXX="${LD} -shared -o"
34599       ;;
34600
34601       *-*-irix* )
34602                 if test "x$GCC" != "xyes"; then
34603             PIC_FLAG="-KPIC"
34604         fi
34605       ;;
34606
34607       *-*-cygwin* | *-*-mingw32* )
34608         PIC_FLAG=""
34609       ;;
34610
34611       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34612       *-*-sunos4* | \
34613       *-*-osf* | \
34614       *-*-dgux5* | \
34615       *-*-sysv5* )
34616               ;;
34617
34618       *)
34619         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34620 echo "$as_me: error: unknown system type $host." >&2;}
34621    { (exit 1); exit 1; }; }
34622     esac
34623
34624     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34625         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34626     fi
34627     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
34628         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
34629     fi
34630
34631
34632
34633
34634
34635
34636
34637
34638     USE_SOVERSION=0
34639     USE_SOVERLINUX=0
34640     USE_SOVERSOLARIS=0
34641     USE_SOSYMLINKS=0
34642     USE_MACVERSION=0
34643     SONAME_FLAG=
34644
34645     case "${host}" in
34646       *-*-linux* )
34647         SONAME_FLAG="-Wl,-soname,"
34648         USE_SOVERSION=1
34649         USE_SOVERLINUX=1
34650         USE_SOSYMLINKS=1
34651       ;;
34652
34653       *-*-solaris2* )
34654         SONAME_FLAG="-h "
34655         USE_SOVERSION=1
34656         USE_SOVERSOLARIS=1
34657         USE_SOSYMLINKS=1
34658       ;;
34659
34660       *-*-darwin* )
34661         USE_MACVERSION=1
34662         USE_SOVERSION=1
34663         USE_SOSYMLINKS=1
34664       ;;
34665     esac
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34676 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34677     DEPS_TRACKING=0
34678
34679     if test "x$GCC" = "xyes"; then
34680         DEPSMODE=gcc
34681         DEPS_TRACKING=1
34682         case "${host}" in
34683             powerpc-*-darwin* )
34684                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34685             ;;
34686             * )
34687                 DEPSFLAG_GCC="-MMD"
34688             ;;
34689         esac
34690         echo "$as_me:$LINENO: result: gcc" >&5
34691 echo "${ECHO_T}gcc" >&6
34692     else
34693         echo "$as_me:$LINENO: result: none" >&5
34694 echo "${ECHO_T}none" >&6
34695     fi
34696
34697     if test $DEPS_TRACKING = 1 ; then
34698         cat <<EOF >bk-deps
34699 #!/bin/sh
34700
34701 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34702 # script. It is used to track C/C++ files dependencies in portable way.
34703 #
34704 # Permission is given to use this file in any way.
34705
34706 DEPSMODE=$DEPSMODE
34707 DEPSDIR=.deps
34708 DEPSFLAG_GCC="$DEPSFLAG_GCC"
34709
34710 mkdir -p \$DEPSDIR
34711
34712 if test \$DEPSMODE = gcc ; then
34713     \${*} \${DEPSFLAG_GCC}
34714     status=\${?}
34715     if test \${status} != 0 ; then
34716         exit \${status}
34717     fi
34718     # move created file to the location we want it in:
34719     while test \${#} -gt 0; do
34720         case "\${1}" in
34721             -o )
34722                 shift
34723                 objfile=\${1}
34724             ;;
34725             -* )
34726             ;;
34727             * )
34728                 srcfile=\${1}
34729             ;;
34730         esac
34731         shift
34732     done
34733     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34734     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
34735     if test -f \$depfile ; then
34736         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34737         rm -f \$depfile
34738     else
34739         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34740         if test -f \$depfile ; then
34741             sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34742             rm -f \$depfile
34743         fi
34744     fi
34745     exit 0
34746 else
34747     \${*}
34748     exit \${?}
34749 fi
34750 EOF
34751         chmod +x bk-deps
34752     fi
34753
34754
34755
34756
34757     RESCOMP=
34758     SETFILE=
34759
34760     case ${host} in
34761         *-*-cygwin* | *-*-mingw32* )
34762                         if test "$build" != "$host" ; then
34763                 RESCOMP=$host_alias-windres
34764             else
34765                 # Extract the first word of "windres", so it can be a program name with args.
34766 set dummy windres; ac_word=$2
34767 echo "$as_me:$LINENO: checking for $ac_word" >&5
34768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34769 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34770   echo $ECHO_N "(cached) $ECHO_C" >&6
34771 else
34772   if test -n "$RESCOMP"; then
34773   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34774 else
34775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34776 for as_dir in $PATH
34777 do
34778   IFS=$as_save_IFS
34779   test -z "$as_dir" && as_dir=.
34780   for ac_exec_ext in '' $ac_executable_extensions; do
34781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34782     ac_cv_prog_RESCOMP="windres"
34783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34784     break 2
34785   fi
34786 done
34787 done
34788
34789   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34790 fi
34791 fi
34792 RESCOMP=$ac_cv_prog_RESCOMP
34793 if test -n "$RESCOMP"; then
34794   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34795 echo "${ECHO_T}$RESCOMP" >&6
34796 else
34797   echo "$as_me:$LINENO: result: no" >&5
34798 echo "${ECHO_T}no" >&6
34799 fi
34800
34801             fi
34802          ;;
34803
34804       *-*-darwin* )
34805             # Extract the first word of "Rez", so it can be a program name with args.
34806 set dummy Rez; ac_word=$2
34807 echo "$as_me:$LINENO: checking for $ac_word" >&5
34808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34809 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34810   echo $ECHO_N "(cached) $ECHO_C" >&6
34811 else
34812   if test -n "$RESCOMP"; then
34813   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34814 else
34815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34816 for as_dir in $PATH
34817 do
34818   IFS=$as_save_IFS
34819   test -z "$as_dir" && as_dir=.
34820   for ac_exec_ext in '' $ac_executable_extensions; do
34821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34822     ac_cv_prog_RESCOMP="Rez"
34823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34824     break 2
34825   fi
34826 done
34827 done
34828
34829   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34830 fi
34831 fi
34832 RESCOMP=$ac_cv_prog_RESCOMP
34833 if test -n "$RESCOMP"; then
34834   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34835 echo "${ECHO_T}$RESCOMP" >&6
34836 else
34837   echo "$as_me:$LINENO: result: no" >&5
34838 echo "${ECHO_T}no" >&6
34839 fi
34840
34841             # Extract the first word of "SetFile", so it can be a program name with args.
34842 set dummy SetFile; ac_word=$2
34843 echo "$as_me:$LINENO: checking for $ac_word" >&5
34844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34845 if test "${ac_cv_prog_SETFILE+set}" = set; then
34846   echo $ECHO_N "(cached) $ECHO_C" >&6
34847 else
34848   if test -n "$SETFILE"; then
34849   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34850 else
34851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34852 for as_dir in $PATH
34853 do
34854   IFS=$as_save_IFS
34855   test -z "$as_dir" && as_dir=.
34856   for ac_exec_ext in '' $ac_executable_extensions; do
34857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34858     ac_cv_prog_SETFILE="SetFile"
34859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34860     break 2
34861   fi
34862 done
34863 done
34864
34865   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34866 fi
34867 fi
34868 SETFILE=$ac_cv_prog_SETFILE
34869 if test -n "$SETFILE"; then
34870   echo "$as_me:$LINENO: result: $SETFILE" >&5
34871 echo "${ECHO_T}$SETFILE" >&6
34872 else
34873   echo "$as_me:$LINENO: result: no" >&5
34874 echo "${ECHO_T}no" >&6
34875 fi
34876
34877         ;;
34878     esac
34879
34880
34881
34882
34883
34884
34885
34886
34887     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34888 if test "${enable_precomp_headers+set}" = set; then
34889   enableval="$enable_precomp_headers"
34890   bk_use_pch="$enableval"
34891 fi;
34892
34893     GCC_PCH=0
34894
34895     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34896         if test "x$GCC" = "xyes"; then
34897                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34898 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34899             cat >conftest.$ac_ext <<_ACEOF
34900 #line $LINENO "configure"
34901 /* confdefs.h.  */
34902 _ACEOF
34903 cat confdefs.h >>conftest.$ac_ext
34904 cat >>conftest.$ac_ext <<_ACEOF
34905 /* end confdefs.h.  */
34906
34907 int
34908 main ()
34909 {
34910
34911                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34912                         #error "no pch support"
34913                     #endif
34914                     #if (__GNUC__ < 3)
34915                         #error "no pch support"
34916                     #endif
34917                     #if (__GNUC__ == 3) && \
34918                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34919                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34920                         #error "no pch support"
34921                     #endif
34922
34923   ;
34924   return 0;
34925 }
34926 _ACEOF
34927 rm -f conftest.$ac_objext
34928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34929   (eval $ac_compile) 2>&5
34930   ac_status=$?
34931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932   (exit $ac_status); } &&
34933          { ac_try='test -s conftest.$ac_objext'
34934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935   (eval $ac_try) 2>&5
34936   ac_status=$?
34937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938   (exit $ac_status); }; }; then
34939
34940                     echo "$as_me:$LINENO: result: yes" >&5
34941 echo "${ECHO_T}yes" >&6
34942                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
34943                     GCC_PCH=1
34944
34945 else
34946   echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34948
34949
34950                     echo "$as_me:$LINENO: result: no" >&5
34951 echo "${ECHO_T}no" >&6
34952
34953 fi
34954 rm -f conftest.$ac_objext conftest.$ac_ext
34955             if test $GCC_PCH = 1 ; then
34956                 cat <<EOF >bk-make-pch
34957 #!/bin/sh
34958
34959 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34960 # script. It is used to generated precompiled headers.
34961 #
34962 # Permission is given to use this file in any way.
34963
34964 outfile="\${1}"
34965 header="\${2}"
34966 shift
34967 shift
34968
34969 compiler=
34970 headerfile=
34971 while test \${#} -gt 0; do
34972     case "\${1}" in
34973         -I* )
34974             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34975             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34976                 headerfile="\${incdir}/\${header}"
34977             fi
34978         ;;
34979     esac
34980     compiler="\${compiler} \${1}"
34981     shift
34982 done
34983
34984 if test "x\${headerfile}" = "x" ; then
34985     echo "error: can't find header \${header} in include paths" >2
34986 else
34987     if test -f \${outfile} ; then
34988         rm -f \${outfile}
34989     else
34990         mkdir -p \`dirname \${outfile}\`
34991     fi
34992     depsfile=".deps/\`basename \${outfile}\`.d"
34993     mkdir -p .deps
34994     # can do this because gcc is >= 3.4:
34995     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34996     exit \${?}
34997 fi
34998 EOF
34999                 chmod +x bk-make-pch
35000             fi
35001         fi
35002     fi
35003
35004
35005
35006
35007
35008     COND_BUILD_DEBUG="#"
35009     if test "x$BUILD" = "xdebug" ; then
35010         COND_BUILD_DEBUG=""
35011     fi
35012
35013     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35014     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35015         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35016     fi
35017
35018     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35019     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35020         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35021     fi
35022
35023     COND_BUILD_RELEASE="#"
35024     if test "x$BUILD" = "xrelease" ; then
35025         COND_BUILD_RELEASE=""
35026     fi
35027
35028     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35029     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35030         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35031     fi
35032
35033     COND_DEBUG_FLAG_1="#"
35034     if test "x$DEBUG_FLAG" = "x1" ; then
35035         COND_DEBUG_FLAG_1=""
35036     fi
35037
35038     COND_DEBUG_INFO_0="#"
35039     if test "x$DEBUG_INFO" = "x0" ; then
35040         COND_DEBUG_INFO_0=""
35041     fi
35042
35043     COND_DEBUG_INFO_1="#"
35044     if test "x$DEBUG_INFO" = "x1" ; then
35045         COND_DEBUG_INFO_1=""
35046     fi
35047
35048     COND_DEPS_TRACKING_0="#"
35049     if test "x$DEPS_TRACKING" = "x0" ; then
35050         COND_DEPS_TRACKING_0=""
35051     fi
35052
35053     COND_DEPS_TRACKING_1="#"
35054     if test "x$DEPS_TRACKING" = "x1" ; then
35055         COND_DEPS_TRACKING_1=""
35056     fi
35057
35058     COND_GCC_PCH_1="#"
35059     if test "x$GCC_PCH" = "x1" ; then
35060         COND_GCC_PCH_1=""
35061     fi
35062
35063     COND_MONOLITHIC_0="#"
35064     if test "x$MONOLITHIC" = "x0" ; then
35065         COND_MONOLITHIC_0=""
35066     fi
35067
35068     COND_MONOLITHIC_0_SHARED_0="#"
35069     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35070         COND_MONOLITHIC_0_SHARED_0=""
35071     fi
35072
35073     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35074     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35075         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
35076     fi
35077
35078     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35079     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35080         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35081     fi
35082
35083     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35084     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35085         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35086     fi
35087
35088     COND_MONOLITHIC_0_SHARED_1="#"
35089     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35090         COND_MONOLITHIC_0_SHARED_1=""
35091     fi
35092
35093     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35094     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35095         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35096     fi
35097
35098     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35099     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35100         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35101     fi
35102
35103     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35104     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35105         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35106     fi
35107
35108     COND_MONOLITHIC_1="#"
35109     if test "x$MONOLITHIC" = "x1" ; then
35110         COND_MONOLITHIC_1=""
35111     fi
35112
35113     COND_MONOLITHIC_1_SHARED_0="#"
35114     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35115         COND_MONOLITHIC_1_SHARED_0=""
35116     fi
35117
35118     COND_MONOLITHIC_1_SHARED_1="#"
35119     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35120         COND_MONOLITHIC_1_SHARED_1=""
35121     fi
35122
35123     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35124     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35125         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35126     fi
35127
35128     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35129     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35130         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35131     fi
35132
35133     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35134     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35135         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35136     fi
35137
35138     COND_PLATFORM_MACOSX_1="#"
35139     if test "x$PLATFORM_MACOSX" = "x1" ; then
35140         COND_PLATFORM_MACOSX_1=""
35141     fi
35142
35143     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35144     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35145         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35146     fi
35147
35148     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35149     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35150         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35151     fi
35152
35153     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35154     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35155         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35156     fi
35157
35158     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35159     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35160         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35161     fi
35162
35163     COND_PLATFORM_MAC_1="#"
35164     if test "x$PLATFORM_MAC" = "x1" ; then
35165         COND_PLATFORM_MAC_1=""
35166     fi
35167
35168     COND_PLATFORM_UNIX_0="#"
35169     if test "x$PLATFORM_UNIX" = "x0" ; then
35170         COND_PLATFORM_UNIX_0=""
35171     fi
35172
35173     COND_PLATFORM_UNIX_1="#"
35174     if test "x$PLATFORM_UNIX" = "x1" ; then
35175         COND_PLATFORM_UNIX_1=""
35176     fi
35177
35178     COND_PLATFORM_WIN32_0="#"
35179     if test "x$PLATFORM_WIN32" = "x0" ; then
35180         COND_PLATFORM_WIN32_0=""
35181     fi
35182
35183     COND_PLATFORM_WIN32_1="#"
35184     if test "x$PLATFORM_WIN32" = "x1" ; then
35185         COND_PLATFORM_WIN32_1=""
35186     fi
35187
35188     COND_SHARED_0="#"
35189     if test "x$SHARED" = "x0" ; then
35190         COND_SHARED_0=""
35191     fi
35192
35193     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35194     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35195         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35196     fi
35197
35198     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35199     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35200         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35201     fi
35202
35203     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35204     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35205         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35206     fi
35207
35208     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35209     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35210         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35211     fi
35212
35213     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35214     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35215         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35216     fi
35217
35218     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35219     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35220         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35221     fi
35222
35223     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35224     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35225         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35226     fi
35227
35228     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35229     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35230         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35231     fi
35232
35233     COND_SHARED_1="#"
35234     if test "x$SHARED" = "x1" ; then
35235         COND_SHARED_1=""
35236     fi
35237
35238     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35239     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35240         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35241     fi
35242
35243     COND_TOOLKIT_COCOA="#"
35244     if test "x$TOOLKIT" = "xCOCOA" ; then
35245         COND_TOOLKIT_COCOA=""
35246     fi
35247
35248     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35249     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35250         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
35251     fi
35252
35253     COND_TOOLKIT_GTK="#"
35254     if test "x$TOOLKIT" = "xGTK" ; then
35255         COND_TOOLKIT_GTK=""
35256     fi
35257
35258     COND_TOOLKIT_GTK_USE_GUI_1="#"
35259     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35260         COND_TOOLKIT_GTK_USE_GUI_1=""
35261     fi
35262
35263     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35264     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35265         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
35266     fi
35267
35268     COND_TOOLKIT_MAC="#"
35269     if test "x$TOOLKIT" = "xMAC" ; then
35270         COND_TOOLKIT_MAC=""
35271     fi
35272
35273     COND_TOOLKIT_MAC_USE_GUI_1="#"
35274     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35275         COND_TOOLKIT_MAC_USE_GUI_1=""
35276     fi
35277
35278     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35279     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35280         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
35281     fi
35282
35283     COND_TOOLKIT_MGL="#"
35284     if test "x$TOOLKIT" = "xMGL" ; then
35285         COND_TOOLKIT_MGL=""
35286     fi
35287
35288     COND_TOOLKIT_MGL_USE_GUI_1="#"
35289     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35290         COND_TOOLKIT_MGL_USE_GUI_1=""
35291     fi
35292
35293     COND_TOOLKIT_MOTIF="#"
35294     if test "x$TOOLKIT" = "xMOTIF" ; then
35295         COND_TOOLKIT_MOTIF=""
35296     fi
35297
35298     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35299     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35300         COND_TOOLKIT_MOTIF_USE_GUI_1=""
35301     fi
35302
35303     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35304     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35305         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
35306     fi
35307
35308     COND_TOOLKIT_MSW="#"
35309     if test "x$TOOLKIT" = "xMSW" ; then
35310         COND_TOOLKIT_MSW=""
35311     fi
35312
35313     COND_TOOLKIT_MSW_USE_GUI_1="#"
35314     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35315         COND_TOOLKIT_MSW_USE_GUI_1=""
35316     fi
35317
35318     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35319     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35320         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
35321     fi
35322
35323     COND_TOOLKIT_OS2="#"
35324     if test "x$TOOLKIT" = "xOS2" ; then
35325         COND_TOOLKIT_OS2=""
35326     fi
35327
35328     COND_TOOLKIT_OS2_USE_GUI_1="#"
35329     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35330         COND_TOOLKIT_OS2_USE_GUI_1=""
35331     fi
35332
35333     COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35334     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35335         COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
35336     fi
35337
35338     COND_TOOLKIT_X11="#"
35339     if test "x$TOOLKIT" = "xX11" ; then
35340         COND_TOOLKIT_X11=""
35341     fi
35342
35343     COND_TOOLKIT_X11_USE_GUI_1="#"
35344     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35345         COND_TOOLKIT_X11_USE_GUI_1=""
35346     fi
35347
35348     COND_UNICODE_1="#"
35349     if test "x$UNICODE" = "x1" ; then
35350         COND_UNICODE_1=""
35351     fi
35352
35353     COND_USE_GUI_0="#"
35354     if test "x$USE_GUI" = "x0" ; then
35355         COND_USE_GUI_0=""
35356     fi
35357
35358     COND_USE_GUI_1="#"
35359     if test "x$USE_GUI" = "x1" ; then
35360         COND_USE_GUI_1=""
35361     fi
35362
35363     COND_USE_GUI_1_WXUNIV_0="#"
35364     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35365         COND_USE_GUI_1_WXUNIV_0=""
35366     fi
35367
35368     COND_USE_GUI_1_WXUNIV_1="#"
35369     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35370         COND_USE_GUI_1_WXUNIV_1=""
35371     fi
35372
35373     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35374     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35375         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35376     fi
35377
35378     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35379     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35380         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35381     fi
35382
35383     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35384     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35385         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35386     fi
35387
35388     COND_USE_SOSYMLINKS_1="#"
35389     if test "x$USE_SOSYMLINKS" = "x1" ; then
35390         COND_USE_SOSYMLINKS_1=""
35391     fi
35392
35393     COND_USE_SOVERLINUX_1="#"
35394     if test "x$USE_SOVERLINUX" = "x1" ; then
35395         COND_USE_SOVERLINUX_1=""
35396     fi
35397
35398     COND_USE_SOVERSION_0="#"
35399     if test "x$USE_SOVERSION" = "x0" ; then
35400         COND_USE_SOVERSION_0=""
35401     fi
35402
35403     COND_USE_SOVERSOLARIS_1="#"
35404     if test "x$USE_SOVERSOLARIS" = "x1" ; then
35405         COND_USE_SOVERSOLARIS_1=""
35406     fi
35407
35408     COND_WXUNIV_1="#"
35409     if test "x$WXUNIV" = "x1" ; then
35410         COND_WXUNIV_1=""
35411     fi
35412
35413     COND_WXUSE_EXPAT_BUILTIN="#"
35414     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35415         COND_WXUSE_EXPAT_BUILTIN=""
35416     fi
35417
35418     COND_WXUSE_LIBJPEG_BUILTIN="#"
35419     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35420         COND_WXUSE_LIBJPEG_BUILTIN=""
35421     fi
35422
35423     COND_WXUSE_LIBPNG_BUILTIN="#"
35424     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35425         COND_WXUSE_LIBPNG_BUILTIN=""
35426     fi
35427
35428     COND_WXUSE_LIBTIFF_BUILTIN="#"
35429     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35430         COND_WXUSE_LIBTIFF_BUILTIN=""
35431     fi
35432
35433     COND_WXUSE_ODBC_BUILTIN="#"
35434     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35435         COND_WXUSE_ODBC_BUILTIN=""
35436     fi
35437
35438     COND_WXUSE_REGEX_BUILTIN="#"
35439     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35440         COND_WXUSE_REGEX_BUILTIN=""
35441     fi
35442
35443     COND_WXUSE_ZLIB_BUILTIN="#"
35444     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35445         COND_WXUSE_ZLIB_BUILTIN=""
35446     fi
35447
35448
35449
35450
35451
35452 if test $GCC_PCH = 1 ; then
35453     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35454 else
35455     case "${host}" in
35456         powerpc-*-darwin* )
35457                                     CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35458             ;;
35459     esac
35460 fi
35461 case "${host}" in
35462     powerpc-*-darwin* )
35463                         CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35464         ;;
35465 esac
35466
35467
35468 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35570 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35571 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35572 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35573   echo $ECHO_N "(cached) $ECHO_C" >&6
35574 else
35575   cat >conftest.make <<\_ACEOF
35576 all:
35577         @echo 'ac_maketemp="$(MAKE)"'
35578 _ACEOF
35579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35580 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35581 if test -n "$ac_maketemp"; then
35582   eval ac_cv_prog_make_${ac_make}_set=yes
35583 else
35584   eval ac_cv_prog_make_${ac_make}_set=no
35585 fi
35586 rm -f conftest.make
35587 fi
35588 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35589   echo "$as_me:$LINENO: result: yes" >&5
35590 echo "${ECHO_T}yes" >&6
35591   SET_MAKE=
35592 else
35593   echo "$as_me:$LINENO: result: no" >&5
35594 echo "${ECHO_T}no" >&6
35595   SET_MAKE="MAKE=${MAKE-make}"
35596 fi
35597
35598
35599 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35600     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35601 fi
35602
35603           ac_config_headers="$ac_config_headers setup.h"
35604
35605
35606                               ac_config_files="$ac_config_files wx-config version-script Makefile"
35607
35608
35609           ac_config_commands="$ac_config_commands default"
35610
35611
35612
35613 if test "$wxUSE_GUI" = "yes"; then
35614     SUBDIRS="samples demos utils contrib"
35615 else         SUBDIRS="samples utils"
35616 fi
35617
35618 for subdir in `echo $SUBDIRS`; do
35619     if test -d ${srcdir}/${subdir} ; then
35620         if test "$wxUSE_GUI" = "yes"; then
35621             if test ${subdir} = "samples"; then
35622                                                 makefiles="samples/Makefile.in $makefiles"
35623                 for sample in `echo $SAMPLES_SUBDIRS`; do
35624                     if test -d $srcdir/samples/$sample; then
35625                         makefiles="samples/$sample/Makefile.in $makefiles"
35626                     fi
35627                 done
35628             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35629             fi
35630         else                                     if test ${subdir} = "samples"; then
35631                 makefiles="samples/Makefile.in samples/console/Makefile.in"
35632             else                 makefiles="utils/HelpGen/Makefile.in \
35633                            utils/HelpGen/src/Makefile.in \
35634                            utils/makegen/Makefile.in"
35635             fi
35636         fi
35637
35638         for mkin in $makefiles ; do
35639             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35640                       ac_config_files="$ac_config_files $mk"
35641
35642         done
35643     fi
35644 done
35645
35646
35647 cat >confcache <<\_ACEOF
35648 # This file is a shell script that caches the results of configure
35649 # tests run on this system so they can be shared between configure
35650 # scripts and configure runs, see configure's option --config-cache.
35651 # It is not useful on other systems.  If it contains results you don't
35652 # want to keep, you may remove or edit it.
35653 #
35654 # config.status only pays attention to the cache file if you give it
35655 # the --recheck option to rerun configure.
35656 #
35657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35659 # following values.
35660
35661 _ACEOF
35662
35663 # The following way of writing the cache mishandles newlines in values,
35664 # but we know of no workaround that is simple, portable, and efficient.
35665 # So, don't put newlines in cache variables' values.
35666 # Ultrix sh set writes to stderr and can't be redirected directly,
35667 # and sets the high bit in the cache file unless we assign to the vars.
35668 {
35669   (set) 2>&1 |
35670     case `(ac_space=' '; set | grep ac_space) 2>&1` in
35671     *ac_space=\ *)
35672       # `set' does not quote correctly, so add quotes (double-quote
35673       # substitution turns \\\\ into \\, and sed turns \\ into \).
35674       sed -n \
35675         "s/'/'\\\\''/g;
35676           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35677       ;;
35678     *)
35679       # `set' quotes correctly as required by POSIX, so do not add quotes.
35680       sed -n \
35681         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35682       ;;
35683     esac;
35684 } |
35685   sed '
35686      t clear
35687      : clear
35688      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35689      t end
35690      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35691      : end' >>confcache
35692 if diff $cache_file confcache >/dev/null 2>&1; then :; else
35693   if test -w $cache_file; then
35694     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35695     cat confcache >$cache_file
35696   else
35697     echo "not updating unwritable cache $cache_file"
35698   fi
35699 fi
35700 rm -f confcache
35701
35702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35703 # Let make expand exec_prefix.
35704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35705
35706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35708 # trailing colons and then remove the whole line if VPATH becomes empty
35709 # (actually we leave an empty line to preserve line numbers).
35710 if test "x$srcdir" = x.; then
35711   ac_vpsub='/^[         ]*VPATH[        ]*=/{
35712 s/:*\$(srcdir):*/:/;
35713 s/:*\${srcdir}:*/:/;
35714 s/:*@srcdir@:*/:/;
35715 s/^\([^=]*=[    ]*\):*/\1/;
35716 s/:*$//;
35717 s/^[^=]*=[      ]*$//;
35718 }'
35719 fi
35720
35721 DEFS=-DHAVE_CONFIG_H
35722
35723 ac_libobjs=
35724 ac_ltlibobjs=
35725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35726   # 1. Remove the extension, and $U if already installed.
35727   ac_i=`echo "$ac_i" |
35728          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35729   # 2. Add them.
35730   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35731   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35732 done
35733 LIBOBJS=$ac_libobjs
35734
35735 LTLIBOBJS=$ac_ltlibobjs
35736
35737
35738
35739 : ${CONFIG_STATUS=./config.status}
35740 ac_clean_files_save=$ac_clean_files
35741 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35742 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35743 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35744 cat >$CONFIG_STATUS <<_ACEOF
35745 #! $SHELL
35746 # Generated by $as_me.
35747 # Run this file to recreate the current configuration.
35748 # Compiler output produced by configure, useful for debugging
35749 # configure, is in config.log if it exists.
35750
35751 debug=false
35752 ac_cs_recheck=false
35753 ac_cs_silent=false
35754 SHELL=\${CONFIG_SHELL-$SHELL}
35755 _ACEOF
35756
35757 cat >>$CONFIG_STATUS <<\_ACEOF
35758 ## --------------------- ##
35759 ## M4sh Initialization.  ##
35760 ## --------------------- ##
35761
35762 # Be Bourne compatible
35763 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35764   emulate sh
35765   NULLCMD=:
35766   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35767   # is contrary to our usage.  Disable this feature.
35768   alias -g '${1+"$@"}'='"$@"'
35769 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35770   set -o posix
35771 fi
35772
35773 # Support unset when possible.
35774 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35775   as_unset=unset
35776 else
35777   as_unset=false
35778 fi
35779
35780
35781 # Work around bugs in pre-3.0 UWIN ksh.
35782 $as_unset ENV MAIL MAILPATH
35783 PS1='$ '
35784 PS2='> '
35785 PS4='+ '
35786
35787 # NLS nuisances.
35788 for as_var in \
35789   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35790   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35791   LC_TELEPHONE LC_TIME
35792 do
35793   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35794     eval $as_var=C; export $as_var
35795   else
35796     $as_unset $as_var
35797   fi
35798 done
35799
35800 # Required to use basename.
35801 if expr a : '\(a\)' >/dev/null 2>&1; then
35802   as_expr=expr
35803 else
35804   as_expr=false
35805 fi
35806
35807 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35808   as_basename=basename
35809 else
35810   as_basename=false
35811 fi
35812
35813
35814 # Name of the executable.
35815 as_me=`$as_basename "$0" ||
35816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35817          X"$0" : 'X\(//\)$' \| \
35818          X"$0" : 'X\(/\)$' \| \
35819          .     : '\(.\)' 2>/dev/null ||
35820 echo X/"$0" |
35821     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35822           /^X\/\(\/\/\)$/{ s//\1/; q; }
35823           /^X\/\(\/\).*/{ s//\1/; q; }
35824           s/.*/./; q'`
35825
35826
35827 # PATH needs CR, and LINENO needs CR and PATH.
35828 # Avoid depending upon Character Ranges.
35829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35832 as_cr_digits='0123456789'
35833 as_cr_alnum=$as_cr_Letters$as_cr_digits
35834
35835 # The user is always right.
35836 if test "${PATH_SEPARATOR+set}" != set; then
35837   echo "#! /bin/sh" >conf$$.sh
35838   echo  "exit 0"   >>conf$$.sh
35839   chmod +x conf$$.sh
35840   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35841     PATH_SEPARATOR=';'
35842   else
35843     PATH_SEPARATOR=:
35844   fi
35845   rm -f conf$$.sh
35846 fi
35847
35848
35849   as_lineno_1=$LINENO
35850   as_lineno_2=$LINENO
35851   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35852   test "x$as_lineno_1" != "x$as_lineno_2" &&
35853   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
35854   # Find who we are.  Look in the path if we contain no path at all
35855   # relative or not.
35856   case $0 in
35857     *[\\/]* ) as_myself=$0 ;;
35858     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35859 for as_dir in $PATH
35860 do
35861   IFS=$as_save_IFS
35862   test -z "$as_dir" && as_dir=.
35863   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35864 done
35865
35866        ;;
35867   esac
35868   # We did not find ourselves, most probably we were run as `sh COMMAND'
35869   # in which case we are not to be found in the path.
35870   if test "x$as_myself" = x; then
35871     as_myself=$0
35872   fi
35873   if test ! -f "$as_myself"; then
35874     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35875 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35876    { (exit 1); exit 1; }; }
35877   fi
35878   case $CONFIG_SHELL in
35879   '')
35880     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35881 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35882 do
35883   IFS=$as_save_IFS
35884   test -z "$as_dir" && as_dir=.
35885   for as_base in sh bash ksh sh5; do
35886          case $as_dir in
35887          /*)
35888            if ("$as_dir/$as_base" -c '
35889   as_lineno_1=$LINENO
35890   as_lineno_2=$LINENO
35891   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35892   test "x$as_lineno_1" != "x$as_lineno_2" &&
35893   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
35894              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35895              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35896              CONFIG_SHELL=$as_dir/$as_base
35897              export CONFIG_SHELL
35898              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35899            fi;;
35900          esac
35901        done
35902 done
35903 ;;
35904   esac
35905
35906   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35907   # uniformly replaced by the line number.  The first 'sed' inserts a
35908   # line-number line before each line; the second 'sed' does the real
35909   # work.  The second script uses 'N' to pair each line-number line
35910   # with the numbered line, and appends trailing '-' during
35911   # substitution so that $LINENO is not a special case at line end.
35912   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35913   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
35914   sed '=' <$as_myself |
35915     sed '
35916       N
35917       s,$,-,
35918       : loop
35919       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35920       t loop
35921       s,-$,,
35922       s,^['$as_cr_digits']*\n,,
35923     ' >$as_me.lineno &&
35924   chmod +x $as_me.lineno ||
35925     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35926 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35927    { (exit 1); exit 1; }; }
35928
35929   # Don't try to exec as it changes $[0], causing all sort of problems
35930   # (the dirname of $[0] is not the place where we might find the
35931   # original and so on.  Autoconf is especially sensible to this).
35932   . ./$as_me.lineno
35933   # Exit status is that of the last command.
35934   exit
35935 }
35936
35937
35938 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35939   *c*,-n*) ECHO_N= ECHO_C='
35940 ' ECHO_T='      ' ;;
35941   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35942   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
35943 esac
35944
35945 if expr a : '\(a\)' >/dev/null 2>&1; then
35946   as_expr=expr
35947 else
35948   as_expr=false
35949 fi
35950
35951 rm -f conf$$ conf$$.exe conf$$.file
35952 echo >conf$$.file
35953 if ln -s conf$$.file conf$$ 2>/dev/null; then
35954   # We could just check for DJGPP; but this test a) works b) is more generic
35955   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35956   if test -f conf$$.exe; then
35957     # Don't use ln at all; we don't have any links
35958     as_ln_s='cp -p'
35959   else
35960     as_ln_s='ln -s'
35961   fi
35962 elif ln conf$$.file conf$$ 2>/dev/null; then
35963   as_ln_s=ln
35964 else
35965   as_ln_s='cp -p'
35966 fi
35967 rm -f conf$$ conf$$.exe conf$$.file
35968
35969 if mkdir -p . 2>/dev/null; then
35970   as_mkdir_p=:
35971 else
35972   as_mkdir_p=false
35973 fi
35974
35975 as_executable_p="test -f"
35976
35977 # Sed expression to map a string onto a valid CPP name.
35978 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35979
35980 # Sed expression to map a string onto a valid variable name.
35981 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35982
35983
35984 # IFS
35985 # We need space, tab and new line, in precisely that order.
35986 as_nl='
35987 '
35988 IFS="   $as_nl"
35989
35990 # CDPATH.
35991 $as_unset CDPATH
35992
35993 exec 6>&1
35994
35995 # Open the log real soon, to keep \$[0] and so on meaningful, and to
35996 # report actual input values of CONFIG_FILES etc. instead of their
35997 # values after options handling.  Logging --version etc. is OK.
35998 exec 5>>config.log
35999 {
36000   echo
36001   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36002 ## Running $as_me. ##
36003 _ASBOX
36004 } >&5
36005 cat >&5 <<_CSEOF
36006
36007 This file was extended by wxWindows $as_me 2.5.0, which was
36008 generated by GNU Autoconf 2.57.  Invocation command line was
36009
36010   CONFIG_FILES    = $CONFIG_FILES
36011   CONFIG_HEADERS  = $CONFIG_HEADERS
36012   CONFIG_LINKS    = $CONFIG_LINKS
36013   CONFIG_COMMANDS = $CONFIG_COMMANDS
36014   $ $0 $@
36015
36016 _CSEOF
36017 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36018 echo >&5
36019 _ACEOF
36020
36021 # Files that config.status was made for.
36022 if test -n "$ac_config_files"; then
36023   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36024 fi
36025
36026 if test -n "$ac_config_headers"; then
36027   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36028 fi
36029
36030 if test -n "$ac_config_links"; then
36031   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36032 fi
36033
36034 if test -n "$ac_config_commands"; then
36035   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36036 fi
36037
36038 cat >>$CONFIG_STATUS <<\_ACEOF
36039
36040 ac_cs_usage="\
36041 \`$as_me' instantiates files from templates according to the
36042 current configuration.
36043
36044 Usage: $0 [OPTIONS] [FILE]...
36045
36046   -h, --help       print this help, then exit
36047   -V, --version    print version number, then exit
36048   -q, --quiet      do not print progress messages
36049   -d, --debug      don't remove temporary files
36050       --recheck    update $as_me by reconfiguring in the same conditions
36051   --file=FILE[:TEMPLATE]
36052                    instantiate the configuration file FILE
36053   --header=FILE[:TEMPLATE]
36054                    instantiate the configuration header FILE
36055
36056 Configuration files:
36057 $config_files
36058
36059 Configuration headers:
36060 $config_headers
36061
36062 Configuration commands:
36063 $config_commands
36064
36065 Report bugs to <bug-autoconf@gnu.org>."
36066 _ACEOF
36067
36068 cat >>$CONFIG_STATUS <<_ACEOF
36069 ac_cs_version="\\
36070 wxWindows config.status 2.5.0
36071 configured by $0, generated by GNU Autoconf 2.57,
36072   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36073
36074 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36075 Free Software Foundation, Inc.
36076 This config.status script is free software; the Free Software Foundation
36077 gives unlimited permission to copy, distribute and modify it."
36078 srcdir=$srcdir
36079 INSTALL="$INSTALL"
36080 _ACEOF
36081
36082 cat >>$CONFIG_STATUS <<\_ACEOF
36083 # If no file are specified by the user, then we need to provide default
36084 # value.  By we need to know if files were specified by the user.
36085 ac_need_defaults=:
36086 while test $# != 0
36087 do
36088   case $1 in
36089   --*=*)
36090     ac_option=`expr "x$1" : 'x\([^=]*\)='`
36091     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36092     ac_shift=:
36093     ;;
36094   -*)
36095     ac_option=$1
36096     ac_optarg=$2
36097     ac_shift=shift
36098     ;;
36099   *) # This is not an option, so the user has probably given explicit
36100      # arguments.
36101      ac_option=$1
36102      ac_need_defaults=false;;
36103   esac
36104
36105   case $ac_option in
36106   # Handling of the options.
36107 _ACEOF
36108 cat >>$CONFIG_STATUS <<\_ACEOF
36109   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36110     ac_cs_recheck=: ;;
36111   --version | --vers* | -V )
36112     echo "$ac_cs_version"; exit 0 ;;
36113   --he | --h)
36114     # Conflict between --help and --header
36115     { { echo "$as_me:$LINENO: error: ambiguous option: $1
36116 Try \`$0 --help' for more information." >&5
36117 echo "$as_me: error: ambiguous option: $1
36118 Try \`$0 --help' for more information." >&2;}
36119    { (exit 1); exit 1; }; };;
36120   --help | --hel | -h )
36121     echo "$ac_cs_usage"; exit 0 ;;
36122   --debug | --d* | -d )
36123     debug=: ;;
36124   --file | --fil | --fi | --f )
36125     $ac_shift
36126     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36127     ac_need_defaults=false;;
36128   --header | --heade | --head | --hea )
36129     $ac_shift
36130     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36131     ac_need_defaults=false;;
36132   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36133   | -silent | --silent | --silen | --sile | --sil | --si | --s)
36134     ac_cs_silent=: ;;
36135
36136   # This is an error.
36137   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36138 Try \`$0 --help' for more information." >&5
36139 echo "$as_me: error: unrecognized option: $1
36140 Try \`$0 --help' for more information." >&2;}
36141    { (exit 1); exit 1; }; } ;;
36142
36143   *) ac_config_targets="$ac_config_targets $1" ;;
36144
36145   esac
36146   shift
36147 done
36148
36149 ac_configure_extra_args=
36150
36151 if $ac_cs_silent; then
36152   exec 6>/dev/null
36153   ac_configure_extra_args="$ac_configure_extra_args --silent"
36154 fi
36155
36156 _ACEOF
36157 cat >>$CONFIG_STATUS <<_ACEOF
36158 if \$ac_cs_recheck; then
36159   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36160   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36161 fi
36162
36163 _ACEOF
36164
36165 cat >>$CONFIG_STATUS <<_ACEOF
36166 #
36167 # INIT-COMMANDS section.
36168 #
36169
36170
36171             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36172             LN_S="${LN_S}"
36173
36174
36175
36176 _ACEOF
36177
36178
36179
36180 cat >>$CONFIG_STATUS <<\_ACEOF
36181 for ac_config_target in $ac_config_targets
36182 do
36183   case "$ac_config_target" in
36184   # Handling of arguments.
36185   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36186   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36187   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36188   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
36189   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36190   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36191   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36192 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36193    { (exit 1); exit 1; }; };;
36194   esac
36195 done
36196
36197 # If the user did not use the arguments to specify the items to instantiate,
36198 # then the envvar interface is used.  Set only those that are not.
36199 # We use the long form for the default assignment because of an extremely
36200 # bizarre bug on SunOS 4.1.3.
36201 if $ac_need_defaults; then
36202   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36203   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36204   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36205 fi
36206
36207 # Have a temporary directory for convenience.  Make it in the build tree
36208 # simply because there is no reason to put it here, and in addition,
36209 # creating and moving files from /tmp can sometimes cause problems.
36210 # Create a temporary directory, and hook for its removal unless debugging.
36211 $debug ||
36212 {
36213   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36214   trap '{ (exit 1); exit 1; }' 1 2 13 15
36215 }
36216
36217 # Create a (secure) tmp directory for tmp files.
36218
36219 {
36220   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36221   test -n "$tmp" && test -d "$tmp"
36222 }  ||
36223 {
36224   tmp=./confstat$$-$RANDOM
36225   (umask 077 && mkdir $tmp)
36226 } ||
36227 {
36228    echo "$me: cannot create a temporary directory in ." >&2
36229    { (exit 1); exit 1; }
36230 }
36231
36232 _ACEOF
36233
36234 cat >>$CONFIG_STATUS <<_ACEOF
36235
36236 #
36237 # CONFIG_FILES section.
36238 #
36239
36240 # No need to generate the scripts if there are no CONFIG_FILES.
36241 # This happens for instance when ./config.status config.h
36242 if test -n "\$CONFIG_FILES"; then
36243   # Protect against being on the right side of a sed subst in config.status.
36244   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36245    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36246 s,@SHELL@,$SHELL,;t t
36247 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36248 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36249 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36250 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36251 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36252 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36253 s,@exec_prefix@,$exec_prefix,;t t
36254 s,@prefix@,$prefix,;t t
36255 s,@program_transform_name@,$program_transform_name,;t t
36256 s,@bindir@,$bindir,;t t
36257 s,@sbindir@,$sbindir,;t t
36258 s,@libexecdir@,$libexecdir,;t t
36259 s,@datadir@,$datadir,;t t
36260 s,@sysconfdir@,$sysconfdir,;t t
36261 s,@sharedstatedir@,$sharedstatedir,;t t
36262 s,@localstatedir@,$localstatedir,;t t
36263 s,@libdir@,$libdir,;t t
36264 s,@includedir@,$includedir,;t t
36265 s,@oldincludedir@,$oldincludedir,;t t
36266 s,@infodir@,$infodir,;t t
36267 s,@mandir@,$mandir,;t t
36268 s,@build_alias@,$build_alias,;t t
36269 s,@host_alias@,$host_alias,;t t
36270 s,@target_alias@,$target_alias,;t t
36271 s,@DEFS@,$DEFS,;t t
36272 s,@ECHO_C@,$ECHO_C,;t t
36273 s,@ECHO_N@,$ECHO_N,;t t
36274 s,@ECHO_T@,$ECHO_T,;t t
36275 s,@LIBS@,$LIBS,;t t
36276 s,@build@,$build,;t t
36277 s,@build_cpu@,$build_cpu,;t t
36278 s,@build_vendor@,$build_vendor,;t t
36279 s,@build_os@,$build_os,;t t
36280 s,@host@,$host,;t t
36281 s,@host_cpu@,$host_cpu,;t t
36282 s,@host_vendor@,$host_vendor,;t t
36283 s,@host_os@,$host_os,;t t
36284 s,@target@,$target,;t t
36285 s,@target_cpu@,$target_cpu,;t t
36286 s,@target_vendor@,$target_vendor,;t t
36287 s,@target_os@,$target_os,;t t
36288 s,@CC@,$CC,;t t
36289 s,@CFLAGS@,$CFLAGS,;t t
36290 s,@LDFLAGS@,$LDFLAGS,;t t
36291 s,@CPPFLAGS@,$CPPFLAGS,;t t
36292 s,@ac_ct_CC@,$ac_ct_CC,;t t
36293 s,@EXEEXT@,$EXEEXT,;t t
36294 s,@OBJEXT@,$OBJEXT,;t t
36295 s,@CPP@,$CPP,;t t
36296 s,@EGREP@,$EGREP,;t t
36297 s,@CXX@,$CXX,;t t
36298 s,@CXXFLAGS@,$CXXFLAGS,;t t
36299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36300 s,@RANLIB@,$RANLIB,;t t
36301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36302 s,@AR@,$AR,;t t
36303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36306 s,@STRIP@,$STRIP,;t t
36307 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36308 s,@YACC@,$YACC,;t t
36309 s,@LEX@,$LEX,;t t
36310 s,@LEXLIB@,$LEXLIB,;t t
36311 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36312 s,@LN_S@,$LN_S,;t t
36313 s,@CXXCPP@,$CXXCPP,;t t
36314 s,@subdirs@,$subdirs,;t t
36315 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36316 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36317 s,@GTK_LIBS@,$GTK_LIBS,;t t
36318 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36319 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36320 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36321 s,@X_CFLAGS@,$X_CFLAGS,;t t
36322 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36323 s,@X_LIBS@,$X_LIBS,;t t
36324 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36325 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36326 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36327 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36328 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
36329 s,@RESCOMP@,$RESCOMP,;t t
36330 s,@DEREZ@,$DEREZ,;t t
36331 s,@SETFILE@,$SETFILE,;t t
36332 s,@LIBICONV@,$LIBICONV,;t t
36333 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36334 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36335 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
36336 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36337 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
36338 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
36339 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36340 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36341 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36342 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
36343 s,@VENDOR@,$VENDOR,;t t
36344 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
36345 s,@WXUNIV@,$WXUNIV,;t t
36346 s,@MONOLITHIC@,$MONOLITHIC,;t t
36347 s,@EXTRALIBS@,$EXTRALIBS,;t t
36348 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
36349 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
36350 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
36351 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
36352 s,@UNICODE@,$UNICODE,;t t
36353 s,@BUILD@,$BUILD,;t t
36354 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36355 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
36356 s,@SHARED@,$SHARED,;t t
36357 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36358 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36359 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
36360 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
36361 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
36362 s,@SET_MAKE@,$SET_MAKE,;t t
36363 s,@MAKE_SET@,$MAKE_SET,;t t
36364 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
36365 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
36366 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36367 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36368 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36369 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36370 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36371 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
36372 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
36373 s,@DLLPREFIX@,$DLLPREFIX,;t t
36374 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
36375 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
36376 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36377 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
36378 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36379 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
36380 s,@PIC_FLAG@,$PIC_FLAG,;t t
36381 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36382 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36383 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36384 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36385 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36386 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
36387 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
36388 s,@GCC_PCH@,$GCC_PCH,;t t
36389 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
36390 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36391 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
36392 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
36393 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36394 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36395 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36396 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
36397 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
36398 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
36399 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
36400 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
36401 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36402 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
36403 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
36404 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
36405 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
36406 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
36407 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
36408 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
36409 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
36410 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36411 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
36412 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36413 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
36414 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
36415 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
36416 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36417 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36418 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
36419 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
36420 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
36421 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
36422 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36423 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36424 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
36425 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
36426 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
36427 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36428 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36429 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36430 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36431 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36432 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36433 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
36434 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
36435 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
36436 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36437 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36438 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36439 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
36440 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
36441 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
36442 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
36443 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36444 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36445 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
36446 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36447 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36448 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
36449 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
36450 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36451 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
36452 s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
36453 s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
36454 s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36455 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36456 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
36457 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36458 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36459 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
36460 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36461 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
36462 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36463 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36464 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36465 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36466 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36467 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36468 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
36469 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
36470 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
36471 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36472 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36473 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36474 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36475 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36476 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
36477 s,@LEX_STEM@,$LEX_STEM,;t t
36478 s,@PATH_IFS@,$PATH_IFS,;t t
36479 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36480 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36481 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36482 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36483 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
36484 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36485 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
36486 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36487 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36488 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36489 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36490 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36491 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36492 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36493 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36494 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36495 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36496 s,@WX_ALL@,$WX_ALL,;t t
36497 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36498 s,@SHARED_LD@,$SHARED_LD,;t t
36499 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36500 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36501 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36502 s,@USE_GUI@,$USE_GUI,;t t
36503 s,@AFMINSTALL@,$AFMINSTALL,;t t
36504 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36505 s,@TOOLKIT@,$TOOLKIT,;t t
36506 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36507 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36508 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36509 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36510 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36511 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36512 s,@cross_compiling@,$cross_compiling,;t t
36513 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
36514 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36515 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36516 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36517 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36518 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36519 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
36520 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
36521 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36522 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
36523 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36524 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36525 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36526 s,@GUIDIST@,$GUIDIST,;t t
36527 s,@PORT_FILES@,$PORT_FILES,;t t
36528 s,@DISTDIR@,$DISTDIR,;t t
36529 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36530 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36531 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36532 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36533 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36534 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36535 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36536 s,@RESFLAGS@,$RESFLAGS,;t t
36537 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36538 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36539 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36540 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36541 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36542 s,@MACRESCOMP@,$MACRESCOMP,;t t
36543 s,@MACSETFILE@,$MACSETFILE,;t t
36544 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36545 s,@GCC@,$GCC,;t t
36546 s,@DLLTOOL@,$DLLTOOL,;t t
36547 s,@AS@,$AS,;t t
36548 s,@NM@,$NM,;t t
36549 s,@LD@,$LD,;t t
36550 s,@MAKEINFO@,$MAKEINFO,;t t
36551 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
36552 s,@LIBOBJS@,$LIBOBJS,;t t
36553 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36554 CEOF
36555
36556 _ACEOF
36557
36558   cat >>$CONFIG_STATUS <<\_ACEOF
36559   # Split the substitutions into bite-sized pieces for seds with
36560   # small command number limits, like on Digital OSF/1 and HP-UX.
36561   ac_max_sed_lines=48
36562   ac_sed_frag=1 # Number of current file.
36563   ac_beg=1 # First line for current file.
36564   ac_end=$ac_max_sed_lines # Line after last line for current file.
36565   ac_more_lines=:
36566   ac_sed_cmds=
36567   while $ac_more_lines; do
36568     if test $ac_beg -gt 1; then
36569       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36570     else
36571       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36572     fi
36573     if test ! -s $tmp/subs.frag; then
36574       ac_more_lines=false
36575     else
36576       # The purpose of the label and of the branching condition is to
36577       # speed up the sed processing (if there are no `@' at all, there
36578       # is no need to browse any of the substitutions).
36579       # These are the two extra sed commands mentioned above.
36580       (echo ':t
36581   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36582       if test -z "$ac_sed_cmds"; then
36583         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36584       else
36585         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36586       fi
36587       ac_sed_frag=`expr $ac_sed_frag + 1`
36588       ac_beg=$ac_end
36589       ac_end=`expr $ac_end + $ac_max_sed_lines`
36590     fi
36591   done
36592   if test -z "$ac_sed_cmds"; then
36593     ac_sed_cmds=cat
36594   fi
36595 fi # test -n "$CONFIG_FILES"
36596
36597 _ACEOF
36598 cat >>$CONFIG_STATUS <<\_ACEOF
36599 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36600   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36601   case $ac_file in
36602   - | *:- | *:-:* ) # input from stdin
36603         cat >$tmp/stdin
36604         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36605         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36606   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36607         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36608   * )   ac_file_in=$ac_file.in ;;
36609   esac
36610
36611   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36612   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36614          X"$ac_file" : 'X\(//\)[^/]' \| \
36615          X"$ac_file" : 'X\(//\)$' \| \
36616          X"$ac_file" : 'X\(/\)' \| \
36617          .     : '\(.\)' 2>/dev/null ||
36618 echo X"$ac_file" |
36619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36620           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36621           /^X\(\/\/\)$/{ s//\1/; q; }
36622           /^X\(\/\).*/{ s//\1/; q; }
36623           s/.*/./; q'`
36624   { if $as_mkdir_p; then
36625     mkdir -p "$ac_dir"
36626   else
36627     as_dir="$ac_dir"
36628     as_dirs=
36629     while test ! -d "$as_dir"; do
36630       as_dirs="$as_dir $as_dirs"
36631       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36633          X"$as_dir" : 'X\(//\)[^/]' \| \
36634          X"$as_dir" : 'X\(//\)$' \| \
36635          X"$as_dir" : 'X\(/\)' \| \
36636          .     : '\(.\)' 2>/dev/null ||
36637 echo X"$as_dir" |
36638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36639           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36640           /^X\(\/\/\)$/{ s//\1/; q; }
36641           /^X\(\/\).*/{ s//\1/; q; }
36642           s/.*/./; q'`
36643     done
36644     test ! -n "$as_dirs" || mkdir $as_dirs
36645   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36647    { (exit 1); exit 1; }; }; }
36648
36649   ac_builddir=.
36650
36651 if test "$ac_dir" != .; then
36652   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36653   # A "../" for each directory in $ac_dir_suffix.
36654   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36655 else
36656   ac_dir_suffix= ac_top_builddir=
36657 fi
36658
36659 case $srcdir in
36660   .)  # No --srcdir option.  We are building in place.
36661     ac_srcdir=.
36662     if test -z "$ac_top_builddir"; then
36663        ac_top_srcdir=.
36664     else
36665        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36666     fi ;;
36667   [\\/]* | ?:[\\/]* )  # Absolute path.
36668     ac_srcdir=$srcdir$ac_dir_suffix;
36669     ac_top_srcdir=$srcdir ;;
36670   *) # Relative path.
36671     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36672     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36673 esac
36674 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36675 # absolute.
36676 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36677 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36678 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36679 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36680
36681
36682   case $INSTALL in
36683   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36684   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36685   esac
36686
36687   if test x"$ac_file" != x-; then
36688     { echo "$as_me:$LINENO: creating $ac_file" >&5
36689 echo "$as_me: creating $ac_file" >&6;}
36690     rm -f "$ac_file"
36691   fi
36692   # Let's still pretend it is `configure' which instantiates (i.e., don't
36693   # use $as_me), people would be surprised to read:
36694   #    /* config.h.  Generated by config.status.  */
36695   if test x"$ac_file" = x-; then
36696     configure_input=
36697   else
36698     configure_input="$ac_file.  "
36699   fi
36700   configure_input=$configure_input"Generated from `echo $ac_file_in |
36701                                      sed 's,.*/,,'` by configure."
36702
36703   # First look for the input files in the build tree, otherwise in the
36704   # src tree.
36705   ac_file_inputs=`IFS=:
36706     for f in $ac_file_in; do
36707       case $f in
36708       -) echo $tmp/stdin ;;
36709       [\\/$]*)
36710          # Absolute (can't be DOS-style, as IFS=:)
36711          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36712 echo "$as_me: error: cannot find input file: $f" >&2;}
36713    { (exit 1); exit 1; }; }
36714          echo $f;;
36715       *) # Relative
36716          if test -f "$f"; then
36717            # Build tree
36718            echo $f
36719          elif test -f "$srcdir/$f"; then
36720            # Source tree
36721            echo $srcdir/$f
36722          else
36723            # /dev/null tree
36724            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36725 echo "$as_me: error: cannot find input file: $f" >&2;}
36726    { (exit 1); exit 1; }; }
36727          fi;;
36728       esac
36729     done` || { (exit 1); exit 1; }
36730 _ACEOF
36731 cat >>$CONFIG_STATUS <<_ACEOF
36732   sed "$ac_vpsub
36733 $extrasub
36734 _ACEOF
36735 cat >>$CONFIG_STATUS <<\_ACEOF
36736 :t
36737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36738 s,@configure_input@,$configure_input,;t t
36739 s,@srcdir@,$ac_srcdir,;t t
36740 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36741 s,@top_srcdir@,$ac_top_srcdir,;t t
36742 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36743 s,@builddir@,$ac_builddir,;t t
36744 s,@abs_builddir@,$ac_abs_builddir,;t t
36745 s,@top_builddir@,$ac_top_builddir,;t t
36746 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36747 s,@INSTALL@,$ac_INSTALL,;t t
36748 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36749   rm -f $tmp/stdin
36750   if test x"$ac_file" != x-; then
36751     mv $tmp/out $ac_file
36752   else
36753     cat $tmp/out
36754     rm -f $tmp/out
36755   fi
36756
36757 done
36758 _ACEOF
36759 cat >>$CONFIG_STATUS <<\_ACEOF
36760
36761 #
36762 # CONFIG_HEADER section.
36763 #
36764
36765 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36766 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36767 #
36768 # ac_d sets the value in "#define NAME VALUE" lines.
36769 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
36770 ac_dB='[        ].*$,\1#\2'
36771 ac_dC=' '
36772 ac_dD=',;t'
36773 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36774 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
36775 ac_uB='$,\1#\2define\3'
36776 ac_uC=' '
36777 ac_uD=',;t'
36778
36779 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36780   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36781   case $ac_file in
36782   - | *:- | *:-:* ) # input from stdin
36783         cat >$tmp/stdin
36784         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36785         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36786   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36787         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36788   * )   ac_file_in=$ac_file.in ;;
36789   esac
36790
36791   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36792 echo "$as_me: creating $ac_file" >&6;}
36793
36794   # First look for the input files in the build tree, otherwise in the
36795   # src tree.
36796   ac_file_inputs=`IFS=:
36797     for f in $ac_file_in; do
36798       case $f in
36799       -) echo $tmp/stdin ;;
36800       [\\/$]*)
36801          # Absolute (can't be DOS-style, as IFS=:)
36802          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36803 echo "$as_me: error: cannot find input file: $f" >&2;}
36804    { (exit 1); exit 1; }; }
36805          echo $f;;
36806       *) # Relative
36807          if test -f "$f"; then
36808            # Build tree
36809            echo $f
36810          elif test -f "$srcdir/$f"; then
36811            # Source tree
36812            echo $srcdir/$f
36813          else
36814            # /dev/null tree
36815            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36816 echo "$as_me: error: cannot find input file: $f" >&2;}
36817    { (exit 1); exit 1; }; }
36818          fi;;
36819       esac
36820     done` || { (exit 1); exit 1; }
36821   # Remove the trailing spaces.
36822   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
36823
36824 _ACEOF
36825
36826 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36827 # `conftest.undefs', that substitutes the proper values into
36828 # config.h.in to produce config.h.  The first handles `#define'
36829 # templates, and the second `#undef' templates.
36830 # And first: Protect against being on the right side of a sed subst in
36831 # config.status.  Protect against being in an unquoted here document
36832 # in config.status.
36833 rm -f conftest.defines conftest.undefs
36834 # Using a here document instead of a string reduces the quoting nightmare.
36835 # Putting comments in sed scripts is not portable.
36836 #
36837 # `end' is used to avoid that the second main sed command (meant for
36838 # 0-ary CPP macros) applies to n-ary macro definitions.
36839 # See the Autoconf documentation for `clear'.
36840 cat >confdef2sed.sed <<\_ACEOF
36841 s/[\\&,]/\\&/g
36842 s,[\\$`],\\&,g
36843 t clear
36844 : clear
36845 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36846 t end
36847 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36848 : end
36849 _ACEOF
36850 # If some macros were called several times there might be several times
36851 # the same #defines, which is useless.  Nevertheless, we may not want to
36852 # sort them, since we want the *last* AC-DEFINE to be honored.
36853 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36854 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36855 rm -f confdef2sed.sed
36856
36857 # This sed command replaces #undef with comments.  This is necessary, for
36858 # example, in the case of _POSIX_SOURCE, which is predefined and required
36859 # on some systems where configure will not decide to define it.
36860 cat >>conftest.undefs <<\_ACEOF
36861 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36862 _ACEOF
36863
36864 # Break up conftest.defines because some shells have a limit on the size
36865 # of here documents, and old seds have small limits too (100 cmds).
36866 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36867 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36868 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36869 echo '  :' >>$CONFIG_STATUS
36870 rm -f conftest.tail
36871 while grep . conftest.defines >/dev/null
36872 do
36873   # Write a limited-size here document to $tmp/defines.sed.
36874   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36875   # Speed up: don't consider the non `#define' lines.
36876   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
36877   # Work around the forget-to-reset-the-flag bug.
36878   echo 't clr' >>$CONFIG_STATUS
36879   echo ': clr' >>$CONFIG_STATUS
36880   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36881   echo 'CEOF
36882   sed -f $tmp/defines.sed $tmp/in >$tmp/out
36883   rm -f $tmp/in
36884   mv $tmp/out $tmp/in
36885 ' >>$CONFIG_STATUS
36886   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36887   rm -f conftest.defines
36888   mv conftest.tail conftest.defines
36889 done
36890 rm -f conftest.defines
36891 echo '  fi # grep' >>$CONFIG_STATUS
36892 echo >>$CONFIG_STATUS
36893
36894 # Break up conftest.undefs because some shells have a limit on the size
36895 # of here documents, and old seds have small limits too (100 cmds).
36896 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
36897 rm -f conftest.tail
36898 while grep . conftest.undefs >/dev/null
36899 do
36900   # Write a limited-size here document to $tmp/undefs.sed.
36901   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36902   # Speed up: don't consider the non `#undef'
36903   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
36904   # Work around the forget-to-reset-the-flag bug.
36905   echo 't clr' >>$CONFIG_STATUS
36906   echo ': clr' >>$CONFIG_STATUS
36907   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
36908   echo 'CEOF
36909   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36910   rm -f $tmp/in
36911   mv $tmp/out $tmp/in
36912 ' >>$CONFIG_STATUS
36913   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36914   rm -f conftest.undefs
36915   mv conftest.tail conftest.undefs
36916 done
36917 rm -f conftest.undefs
36918
36919 cat >>$CONFIG_STATUS <<\_ACEOF
36920   # Let's still pretend it is `configure' which instantiates (i.e., don't
36921   # use $as_me), people would be surprised to read:
36922   #    /* config.h.  Generated by config.status.  */
36923   if test x"$ac_file" = x-; then
36924     echo "/* Generated by configure.  */" >$tmp/config.h
36925   else
36926     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
36927   fi
36928   cat $tmp/in >>$tmp/config.h
36929   rm -f $tmp/in
36930   if test x"$ac_file" != x-; then
36931     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36932       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36933 echo "$as_me: $ac_file is unchanged" >&6;}
36934     else
36935       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36937          X"$ac_file" : 'X\(//\)[^/]' \| \
36938          X"$ac_file" : 'X\(//\)$' \| \
36939          X"$ac_file" : 'X\(/\)' \| \
36940          .     : '\(.\)' 2>/dev/null ||
36941 echo X"$ac_file" |
36942     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36943           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36944           /^X\(\/\/\)$/{ s//\1/; q; }
36945           /^X\(\/\).*/{ s//\1/; q; }
36946           s/.*/./; q'`
36947       { if $as_mkdir_p; then
36948     mkdir -p "$ac_dir"
36949   else
36950     as_dir="$ac_dir"
36951     as_dirs=
36952     while test ! -d "$as_dir"; do
36953       as_dirs="$as_dir $as_dirs"
36954       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36956          X"$as_dir" : 'X\(//\)[^/]' \| \
36957          X"$as_dir" : 'X\(//\)$' \| \
36958          X"$as_dir" : 'X\(/\)' \| \
36959          .     : '\(.\)' 2>/dev/null ||
36960 echo X"$as_dir" |
36961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36962           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36963           /^X\(\/\/\)$/{ s//\1/; q; }
36964           /^X\(\/\).*/{ s//\1/; q; }
36965           s/.*/./; q'`
36966     done
36967     test ! -n "$as_dirs" || mkdir $as_dirs
36968   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36969 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36970    { (exit 1); exit 1; }; }; }
36971
36972       rm -f $ac_file
36973       mv $tmp/config.h $ac_file
36974     fi
36975   else
36976     cat $tmp/config.h
36977     rm -f $tmp/config.h
36978   fi
36979 done
36980 _ACEOF
36981 cat >>$CONFIG_STATUS <<\_ACEOF
36982
36983 #
36984 # CONFIG_COMMANDS section.
36985 #
36986 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36987   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36988   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36989   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36990 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36991          X"$ac_dest" : 'X\(//\)[^/]' \| \
36992          X"$ac_dest" : 'X\(//\)$' \| \
36993          X"$ac_dest" : 'X\(/\)' \| \
36994          .     : '\(.\)' 2>/dev/null ||
36995 echo X"$ac_dest" |
36996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36997           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36998           /^X\(\/\/\)$/{ s//\1/; q; }
36999           /^X\(\/\).*/{ s//\1/; q; }
37000           s/.*/./; q'`
37001   ac_builddir=.
37002
37003 if test "$ac_dir" != .; then
37004   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37005   # A "../" for each directory in $ac_dir_suffix.
37006   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37007 else
37008   ac_dir_suffix= ac_top_builddir=
37009 fi
37010
37011 case $srcdir in
37012   .)  # No --srcdir option.  We are building in place.
37013     ac_srcdir=.
37014     if test -z "$ac_top_builddir"; then
37015        ac_top_srcdir=.
37016     else
37017        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37018     fi ;;
37019   [\\/]* | ?:[\\/]* )  # Absolute path.
37020     ac_srcdir=$srcdir$ac_dir_suffix;
37021     ac_top_srcdir=$srcdir ;;
37022   *) # Relative path.
37023     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37024     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37025 esac
37026 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37027 # absolute.
37028 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37029 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37030 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37031 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37032
37033
37034   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37035 echo "$as_me: executing $ac_dest commands" >&6;}
37036   case $ac_dest in
37037     default )
37038                                                                                                 if test ! -h wx-config; then
37039                 chmod +x wx-config
37040                 mv wx-config wx${TOOLCHAIN_NAME}-config
37041                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
37042             fi
37043
37044             if test ! -d lib; then
37045               mkdir lib
37046             fi
37047             if test ! -d lib/wx; then
37048               mkdir lib/wx
37049             fi
37050             if test ! -d lib/wx/include; then
37051               mkdir lib/wx/include
37052             fi
37053             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37054               mkdir lib/wx/include/${TOOLCHAIN_NAME}
37055             fi
37056             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37057               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
37058             fi
37059             if test -f setup.h; then
37060               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
37061             fi
37062            ;;
37063   esac
37064 done
37065 _ACEOF
37066
37067 cat >>$CONFIG_STATUS <<\_ACEOF
37068
37069 { (exit 0); exit 0; }
37070 _ACEOF
37071 chmod +x $CONFIG_STATUS
37072 ac_clean_files=$ac_clean_files_save
37073
37074
37075 # configure is writing to config.log, and then calls config.status.
37076 # config.status does its own redirection, appending to config.log.
37077 # Unfortunately, on DOS this fails, as config.log is still kept open
37078 # by configure, so config.status won't be able to write to it; its
37079 # output is simply discarded.  So we exec the FD to /dev/null,
37080 # effectively closing config.log, so it can be properly (re)opened and
37081 # appended to by config.status.  When coming back to configure, we
37082 # need to make the FD available again.
37083 if test "$no_create" != yes; then
37084   ac_cs_success=:
37085   ac_config_status_args=
37086   test "$silent" = yes &&
37087     ac_config_status_args="$ac_config_status_args --quiet"
37088   exec 5>/dev/null
37089   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37090   exec 5>>config.log
37091   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37092   # would make configure fail if this is the last instruction.
37093   $ac_cs_success || { (exit 1); exit 1; }
37094 fi
37095
37096 #
37097 # CONFIG_SUBDIRS section.
37098 #
37099 if test "$no_recursion" != yes; then
37100
37101   # Remove --cache-file and --srcdir arguments so they do not pile up.
37102   ac_sub_configure_args=
37103   ac_prev=
37104   for ac_arg in $ac_configure_args; do
37105     if test -n "$ac_prev"; then
37106       ac_prev=
37107       continue
37108     fi
37109     case $ac_arg in
37110     -cache-file | --cache-file | --cache-fil | --cache-fi \
37111     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37112       ac_prev=cache_file ;;
37113     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37114     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37115     | --c=*)
37116       ;;
37117     --config-cache | -C)
37118       ;;
37119     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37120       ac_prev=srcdir ;;
37121     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37122       ;;
37123     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37124       ac_prev=prefix ;;
37125     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37126       ;;
37127     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37128     esac
37129   done
37130
37131   # Always prepend --prefix to ensure using the same prefix
37132   # in subdir configurations.
37133   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37134
37135   ac_popdir=`pwd`
37136   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37137
37138     # Do not complain, so a configure script can configure whichever
37139     # parts of a large source tree are present.
37140     test -d $srcdir/$ac_dir || continue
37141
37142     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37143 echo "$as_me: configuring in $ac_dir" >&6;}
37144     { if $as_mkdir_p; then
37145     mkdir -p "$ac_dir"
37146   else
37147     as_dir="$ac_dir"
37148     as_dirs=
37149     while test ! -d "$as_dir"; do
37150       as_dirs="$as_dir $as_dirs"
37151       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37153          X"$as_dir" : 'X\(//\)[^/]' \| \
37154          X"$as_dir" : 'X\(//\)$' \| \
37155          X"$as_dir" : 'X\(/\)' \| \
37156          .     : '\(.\)' 2>/dev/null ||
37157 echo X"$as_dir" |
37158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37160           /^X\(\/\/\)$/{ s//\1/; q; }
37161           /^X\(\/\).*/{ s//\1/; q; }
37162           s/.*/./; q'`
37163     done
37164     test ! -n "$as_dirs" || mkdir $as_dirs
37165   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37167    { (exit 1); exit 1; }; }; }
37168
37169     ac_builddir=.
37170
37171 if test "$ac_dir" != .; then
37172   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37173   # A "../" for each directory in $ac_dir_suffix.
37174   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37175 else
37176   ac_dir_suffix= ac_top_builddir=
37177 fi
37178
37179 case $srcdir in
37180   .)  # No --srcdir option.  We are building in place.
37181     ac_srcdir=.
37182     if test -z "$ac_top_builddir"; then
37183        ac_top_srcdir=.
37184     else
37185        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37186     fi ;;
37187   [\\/]* | ?:[\\/]* )  # Absolute path.
37188     ac_srcdir=$srcdir$ac_dir_suffix;
37189     ac_top_srcdir=$srcdir ;;
37190   *) # Relative path.
37191     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37192     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37193 esac
37194 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37195 # absolute.
37196 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37197 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37198 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37199 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37200
37201
37202     cd $ac_dir
37203
37204     # Check for guested configure; otherwise get Cygnus style configure.
37205     if test -f $ac_srcdir/configure.gnu; then
37206       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37207     elif test -f $ac_srcdir/configure; then
37208       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37209     elif test -f $ac_srcdir/configure.in; then
37210       ac_sub_configure=$ac_configure
37211     else
37212       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37213 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37214       ac_sub_configure=
37215     fi
37216
37217     # The recursion is here.
37218     if test -n "$ac_sub_configure"; then
37219       # Make the cache file name correct relative to the subdirectory.
37220       case $cache_file in
37221       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37222       *) # Relative path.
37223         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37224       esac
37225
37226       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37227 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37228       # The eval makes quoting arguments work.
37229       eval $ac_sub_configure $ac_sub_configure_args \
37230            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37231         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37232 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37233    { (exit 1); exit 1; }; }
37234     fi
37235
37236     cd $ac_popdir
37237   done
37238 fi
37239
37240
37241 echo
37242 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37243 echo ""
37244 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
37245 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
37246
37247 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
37248 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
37249 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
37250
37251 echo "  What level of wxWindows compatibility should be enabled?"
37252 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
37253 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
37254 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
37255
37256 echo "  Which libraries should wxWindows use?"
37257 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
37258 echo "                                       png                ${wxUSE_LIBPNG-none}"
37259 echo "                                       regex              ${wxUSE_REGEX}"
37260 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
37261 echo "                                       zlib               ${wxUSE_ZLIB}"
37262 echo "                                       odbc               ${wxUSE_ODBC}"
37263 echo "                                       expat              ${wxUSE_EXPAT}"
37264
37265 echo ""
37266