fixes to wxBase compilation
[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_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 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 AIX_CXX_LD RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF WXUNIV MONOLITHIC EXTRALIBS UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TYPE COND_WXUSE_ZLIB_BUILTIN COND_UNICODE_1 COND_BUILD_DEBUG COND_WXUSE_REGEX_BUILTIN COND_USE_SOSYMLINKS_1 COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_SHARED_1_MONOLITHIC_1 COND_WXUSE_ODBC_BUILTIN COND_TOOLKIT_GTK COND_TOOLKIT_MOTIF COND_TOOLKIT_MSW COND_TOOLKIT_MAC COND_TOOLKIT_COCOA COND_TOOLKIT_OS2 COND_TOOLKIT_X11 COND_TOOLKIT_MGL COND_WXUNIV_1 COND_WXUSE_LIBTIFF_BUILTIN COND_PLATFORM_UNIX_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_WIN32_1 COND_USE_SOVERSION_1_PLATFORM_MACOSX_0 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1 COND_PLATFORM_WIN32_0 COND_MONOLITHIC_1 COND_MONOLITHIC_0 COND_USE_GUI_1 COND_DEPS_TYPE_GCC COND_USE_GUI_0 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_SHARED_0_MONOLITHIC_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSOLARIS_1 COND_PLATFORM_MAC_1 COND_SHARED_0 COND_SHARED_1 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 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 CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX SONAME_FLAGS SONAME_FLAGS_GL WX_TARGET_LIBRARY_SONAME 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_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS 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 ESD_LINK LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775 ac_env_CXX_set=${CXX+set}
776 ac_env_CXX_value=$CXX
777 ac_cv_env_CXX_set=${CXX+set}
778 ac_cv_env_CXX_value=$CXX
779 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780 ac_env_CXXFLAGS_value=$CXXFLAGS
781 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783 ac_env_CXXCPP_set=${CXXCPP+set}
784 ac_env_CXXCPP_value=$CXXCPP
785 ac_cv_env_CXXCPP_set=${CXXCPP+set}
786 ac_cv_env_CXXCPP_value=$CXXCPP
787
788 #
789 # Report the --help message.
790 #
791 if test "$ac_init_help" = "long"; then
792   # Omit some internal or obsolete options to make the list less imposing.
793   # This message is too long to be a string in the A/UX 3.1 sh.
794   cat <<_ACEOF
795 \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
796
797 Usage: $0 [OPTION]... [VAR=VALUE]...
798
799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
800 VAR=VALUE.  See below for descriptions of some of the useful variables.
801
802 Defaults for the options are specified in brackets.
803
804 Configuration:
805   -h, --help              display this help and exit
806       --help=short        display options specific to this package
807       --help=recursive    display the short help of all the included packages
808   -V, --version           display version information and exit
809   -q, --quiet, --silent   do not print \`checking...' messages
810       --cache-file=FILE   cache test results in FILE [disabled]
811   -C, --config-cache      alias for \`--cache-file=config.cache'
812   -n, --no-create         do not create output files
813       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
814
815 _ACEOF
816
817   cat <<_ACEOF
818 Installation directories:
819   --prefix=PREFIX         install architecture-independent files in PREFIX
820                           [$ac_default_prefix]
821   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
822                           [PREFIX]
823
824 By default, \`make install' will install all the files in
825 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
826 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
827 for instance \`--prefix=\$HOME'.
828
829 For better control, use the options below.
830
831 Fine tuning of the installation directories:
832   --bindir=DIR           user executables [EPREFIX/bin]
833   --sbindir=DIR          system admin executables [EPREFIX/sbin]
834   --libexecdir=DIR       program executables [EPREFIX/libexec]
835   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
836   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
837   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
838   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
839   --libdir=DIR           object code libraries [EPREFIX/lib]
840   --includedir=DIR       C header files [PREFIX/include]
841   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
842   --infodir=DIR          info documentation [PREFIX/info]
843   --mandir=DIR           man documentation [PREFIX/man]
844 _ACEOF
845
846   cat <<\_ACEOF
847
848 X features:
849   --x-includes=DIR    X include files are in DIR
850   --x-libraries=DIR   X library files are in DIR
851
852 System types:
853   --build=BUILD     configure for building on BUILD [guessed]
854   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
855   --target=TARGET   configure for building compilers for TARGET [HOST]
856 _ACEOF
857 fi
858
859 if test -n "$ac_init_help"; then
860   case $ac_init_help in
861      short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
862    esac
863   cat <<\_ACEOF
864
865 Optional Features:
866   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
867   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
868   --enable-gui            use GUI classes
869   --enable-universal      use wxWindows GUI controls instead of native ones
870   --enable-nanox          use NanoX
871   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
872   --enable-shared         create shared library code
873   --enable-soname         set the DT_SONAME field in ELF shared libraries
874   --enable-optimise       create optimised code
875   --enable-debug          same as debug_flag and debug_info
876   --enable-precomp        enable use of precompiled headers (Mac OS X/Darwin)
877   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
878   --enable-debug_info     create code with debugging information
879   --enable-debug_gdb      create code with extra GDB debugging information
880   --enable-debug_cntxt    use wxDebugContext
881   --enable-mem_tracing    create code with memory tracing
882   --enable-profile        create code with profiling information
883   --enable-no_rtti        create code without RTTI information
884   --enable-no_exceptions  create code without C++ exceptions handling
885   --enable-permissive     compile code disregarding strict ANSI
886   --enable-no_deps        create code without dependency information
887   --enable-compat20       enable wxWindows 2.0 compatibility
888   --enable-compat22       enable wxWindows 2.2 compatibility
889   --disable-compat24      disable wxWindows 2.4 compatibility
890   --enable-rpath=DIR      output the rpath flag from wx-config
891   --enable-intl           use internationalization system
892   --enable-config         use wxConfig (and derived) classes
893   --enable-protocols      use wxProtocol and derived classes
894   --enable-ftp            use wxFTP (requires wxProtocol
895   --enable-http           use wxHTTP (requires wxProtocol
896   --enable-fileproto      use wxFileProto class (requires wxProtocol
897   --enable-sockets        use socket/network classes
898   --enable-ole            use OLE classes
899   --enable-dataobj        use data object classes
900   --enable-ipc            use interprocess communication (wxSocket etc.)
901   --enable-cmdline        use wxCmdLineParser class
902   --enable-datetime       use wxDateTime class
903   --enable-stopwatch      use wxStopWatch class
904   --enable-dialupman      use dialup network classes
905   --enable-apple_ieee     use the Apple IEEE codec
906   --enable-timer          use wxTimer class
907   --enable-wave           use wxWave class
908   --enable-fraction       use wxFraction class
909   --enable-dynlib         use wxLibrary class for DLL loading
910   --enable-dynamicloader  use (new) wxDynamicLibrary class
911   --enable-longlong       use wxLongLong class
912   --enable-geometry       use geometry class
913   --enable-log            use logging system
914   --enable-streams        use wxStream etc classes
915   --enable-file           use wxFile classes
916   --enable-ffile          use wxFFile classes
917   --enable-textbuf        use wxTextBuffer class
918   --enable-textfile       use wxTextFile class
919   --enable-fontmap        use font encodings conversion classes
920   --enable-unicode        compile wxString with Unicode support
921   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)
922   --enable-wxprintfv      use wxWindows implementation of vprintf()
923   --enable-std_iostreams  use standard C++ stream classes
924   --enable-filesystem     use virtual file systems classes
925   --enable-fs_inet        use virtual HTTP/FTP filesystems
926   --enable-fs_zip         use virtual ZIP filesystems
927   --enable-zipstream      use wxZipInputStream
928   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException
929   --enable-snglinst       use wxSingleInstanceChecker class
930   --enable-mimetype       use wxMimeTypesManager
931   --enable-sysoptions     use wxSystemOptions
932   --enable-url            use wxURL class
933   --enable-protocol       use wxProtocol class
934   --enable-protocol-http  HTTP support in wxProtocol
935   --enable-protocol-ftp   FTP support in wxProtocol
936   --enable-protocol-file  FILE support in wxProtocol
937   --enable-threads        use threads
938   --enable-docview        use document view architecture
939   --enable-help           use help subsystem
940   --enable-mshtmlhelp     use MS HTML Help (win32)
941   --enable-html           use wxHTML sub-library
942   --enable-htmlhelp       use wxHTML-based help
943   --enable-constraints    use layout-constraints system
944   --enable-printarch      use printing architecture
945   --enable-mdi            use multiple document interface architecture
946   --enable-loggui         use standard GUI logger
947   --enable-logwin         use wxLogWindow
948   --enable-logdialog      use wxLogDialog
949   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
950   --enable-prologio       not available; see contrib
951   --enable-resources      not available; see contrib
952   --enable-clipboard      use wxClipboard class
953   --enable-dnd            use Drag'n'Drop classes
954   --enable-metafile       use win32 metafiles
955   --enable-controls       use all usual controls
956   --enable-accel          use accelerators
957   --enable-button         use wxButton class
958   --enable-bmpbutton      use wxBitmapButton class
959   --enable-calendar       use wxCalendarCtrl class
960   --enable-caret          use wxCaret class
961   --enable-checkbox       use wxCheckBox class
962   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
963   --enable-choice         use wxChoice class
964   --enable-combobox       use wxComboBox class
965   --enable-display        use wxDisplay class
966   --enable-gauge          use wxGauge class
967   --enable-grid           use wxGrid class
968   --enable-imaglist       use wxImageList class
969   --enable-listbox        use wxListBox class
970   --enable-listctrl       use wxListCtrl class
971   --enable-notebook       use wxNotebook class
972   --enable-radiobox       use wxRadioBox class
973   --enable-radiobtn       use wxRadioButton class
974   --enable-sash           use wxSashWindow class
975   --enable-scrollbar      use wxScrollBar class and scrollable windows
976   --enable-slider         use wxSlider class
977   --enable-spinbtn        use wxSpinButton class
978   --enable-spinctrl       use wxSpinCtrl class
979   --enable-splitter       use wxSplitterWindow class
980   --enable-statbmp        use wxStaticBitmap class
981   --enable-statbox        use wxStaticBox class
982   --enable-statline       use wxStaticLine class
983   --enable-stattext       use wxStaticText class
984   --enable-statusbar      use wxStatusBar class
985   --enable-tabdialog      use wxTabControl class
986   --enable-textctrl       use wxTextCtrl class
987   --enable-togglebtn      use wxToggleButton class
988   --enable-toolbar        use wxToolBar class
989   --enable-tbarnative     use native wxToolBar class
990   --enable-tbarsmpl       use wxToolBarSimple class
991   --enable-treectrl       use wxTreeCtrl class
992   --enable-tipwindow      use wxTipWindow class
993   --enable-popupwin       use wxPopUpWindow class
994   --enable-commondlg      use all common dialogs
995   --enable-choicedlg      use wxChoiceDialog
996   --enable-coldlg         use wxColourDialog
997   --enable-filedlg        use wxFileDialog
998   --enable-finddlg        use wxFindReplaceDialog
999   --enable-fontdlg        use wxFontDialog
1000   --enable-dirdlg         use wxDirDialog
1001   --enable-msgdlg         use wxMessageDialog
1002   --enable-numberdlg      use wxNumberEntryDialog
1003   --enable-splash         use wxSplashScreen
1004   --enable-textdlg        use wxTextDialog
1005   --enable-tipdlg         use startup tips
1006   --enable-progressdlg    use wxProgressDialog
1007   --enable-wizarddlg      use wxWizard
1008   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1009   --enable-miniframe      use wxMiniFrame class
1010   --enable-tooltips       use wxToolTip class
1011   --enable-splines        use spline drawing code
1012   --enable-validators     use wxValidator and derived classes
1013   --enable-busyinfo       use wxBusyInfo
1014   --enable-joystick       use wxJoystick (Linux only)
1015   --enable-metafiles      use wxMetaFile (Windows only)
1016   --enable-dragimage      use wxDragImage
1017   --enable-accessibility  enable accessibility support
1018   --enable-palette        use wxPalette class
1019   --enable-image          use wxImage class
1020   --enable-gif            use gif images (GIF file format)
1021   --enable-pcx            use pcx images (PCX file format)
1022   --enable-iff            use iff images (IFF file format)
1023   --enable-pnm            use pnm images (PNM file format)
1024   --enable-xpm            use xpm images (XPM file format)
1025   --enable-icocur         use Windows ICO and CUR formats
1026   --disable-largefile     omit support for large files
1027   --disable-gtktest       do not try to compile and run a test GTK+ program
1028   --disable-gtktest       Do not try to compile and run a test GTK program
1029
1030 Optional Packages:
1031   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1032   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1033   --with-gtk              use GTK+
1034   --with-motif            use Motif/Lesstif
1035   --with-mac              use Mac OS X
1036   --with-cocoa            use Cocoa
1037   --with-wine             use Wine
1038   --with-msw              use MS-Windows
1039   --with-pm               use OS/2 Presentation Manager
1040   --with-mgl              use SciTech MGL
1041   --with-microwin         use MicroWindows
1042   --with-x11              use X11
1043   --with-libpng           use libpng (PNG image format)
1044   --with-libjpeg          use libjpeg (JPEG file format)
1045   --with-libtiff          use libtiff (TIFF file format)
1046   --with-opengl           use OpenGL (or Mesa)
1047   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1048   --with-regex            enable support for wxRegEx class
1049   --with-zlib             use zlib for LZW compression
1050   --with-odbc             use the IODBC and wxODBC classes
1051   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1052   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1053   --with-x                use the X Window System
1054   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1055
1056 Some influential environment variables:
1057   CC          C compiler command
1058   CFLAGS      C compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CPP         C preprocessor
1064   CXX         C++ compiler command
1065   CXXFLAGS    C++ compiler flags
1066   CXXCPP      C++ preprocessor
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <wx-dev@lists.wxwindows.org>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 wxWindows configure 2.5.0
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by wxWindows $as_me 2.5.0, which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
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 ac_aux_dir=
1489 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513 # Make sure we can run config.sub.
1514 $ac_config_sub sun4 >/dev/null 2>&1 ||
1515   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 echo "$as_me:$LINENO: checking build system type" >&5
1520 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521 if test "${ac_cv_build+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   ac_cv_build_alias=$build_alias
1525 test -z "$ac_cv_build_alias" &&
1526   ac_cv_build_alias=`$ac_config_guess`
1527 test -z "$ac_cv_build_alias" &&
1528   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530    { (exit 1); exit 1; }; }
1531 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534    { (exit 1); exit 1; }; }
1535
1536 fi
1537 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538 echo "${ECHO_T}$ac_cv_build" >&6
1539 build=$ac_cv_build
1540 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543
1544
1545 echo "$as_me:$LINENO: checking host system type" >&5
1546 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547 if test "${ac_cv_host+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   ac_cv_host_alias=$host_alias
1551 test -z "$ac_cv_host_alias" &&
1552   ac_cv_host_alias=$ac_cv_build_alias
1553 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 fi
1559 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560 echo "${ECHO_T}$ac_cv_host" >&6
1561 host=$ac_cv_host
1562 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567 echo "$as_me:$LINENO: checking target system type" >&5
1568 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1569 if test "${ac_cv_target+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   ac_cv_target_alias=$target_alias
1573 test "x$ac_cv_target_alias" = "x" &&
1574   ac_cv_target_alias=$ac_cv_host_alias
1575 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1576   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1578    { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1582 echo "${ECHO_T}$ac_cv_target" >&6
1583 target=$ac_cv_target
1584 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 # The aliases save the names the user supplied, while $host etc.
1590 # will get canonicalized.
1591 test -n "$target_alias" &&
1592   test "$program_prefix$program_suffix$program_transform_name" = \
1593     NONENONEs,x,x, &&
1594   program_prefix=${target_alias}-
1595
1596
1597
1598 WX_MAJOR_VERSION_NUMBER=2
1599 WX_MINOR_VERSION_NUMBER=5
1600 WX_RELEASE_NUMBER=0
1601
1602 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1603 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1604
1605 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1606
1607 WX_CURRENT=0
1608 WX_REVISION=0
1609 WX_AGE=0
1610
1611
1612
1613 USE_UNIX=1
1614 USE_WIN32=0
1615 USE_DOS=0
1616 USE_BEOS=0
1617 USE_MAC=0
1618
1619 USE_AIX=
1620 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1621 USE_GNU=                            USE_HPUX=
1622 USE_LINUX=
1623 USE_NETBSD=
1624 USE_OPENBSD=
1625 USE_OSF=                            USE_SGI=
1626 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1627 USE_ULTRIX=
1628 USE_UNIXWARE=
1629
1630 USE_ALPHA=
1631
1632 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1633
1634 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1635
1636 DEFAULT_wxUSE_COCOA=0
1637 DEFAULT_wxUSE_GTK=0
1638 DEFAULT_wxUSE_MAC=0
1639 DEFAULT_wxUSE_MGL=0
1640 DEFAULT_wxUSE_MICROWIN=0
1641 DEFAULT_wxUSE_MOTIF=0
1642 DEFAULT_wxUSE_MSW=0
1643 DEFAULT_wxUSE_PM=0
1644 DEFAULT_wxUSE_X11=0
1645
1646 DEFAULT_DEFAULT_wxUSE_COCOA=0
1647 DEFAULT_DEFAULT_wxUSE_GTK=0
1648 DEFAULT_DEFAULT_wxUSE_MAC=0
1649 DEFAULT_DEFAULT_wxUSE_MGL=0
1650 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1651 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1652 DEFAULT_DEFAULT_wxUSE_MSW=0
1653 DEFAULT_DEFAULT_wxUSE_PM=0
1654 DEFAULT_DEFAULT_wxUSE_X11=0
1655
1656 PROGRAM_EXT=
1657 SO_SUFFIX=so
1658 SAMPLES_RPATH_FLAG=
1659
1660 case "${host}" in
1661   *-hp-hpux* )
1662     USE_HPUX=1
1663     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1664     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1665     SO_SUFFIX=sl
1666     cat >>confdefs.h <<\_ACEOF
1667 #define __HPUX__ 1
1668 _ACEOF
1669
1670   ;;
1671   *-*-linux* )
1672     USE_LINUX=1
1673     cat >>confdefs.h <<\_ACEOF
1674 #define __LINUX__ 1
1675 _ACEOF
1676
1677     TMP=`uname -m`
1678     if test "x$TMP" = "xalpha"; then
1679       USE_ALPHA=1
1680       cat >>confdefs.h <<\_ACEOF
1681 #define __ALPHA__ 1
1682 _ACEOF
1683
1684     fi
1685     DEFAULT_DEFAULT_wxUSE_GTK=1
1686   ;;
1687   *-*-gnu* )
1688     USE_GNU=1
1689     cat >>confdefs.h <<\_ACEOF
1690 #define __GNU__ 1
1691 _ACEOF
1692
1693     TMP=`uname -m`
1694     if test "x$TMP" = "xalpha"; then
1695       USE_ALPHA=1
1696       cat >>confdefs.h <<\_ACEOF
1697 #define __ALPHA__ 1
1698 _ACEOF
1699
1700     fi
1701     DEFAULT_DEFAULT_wxUSE_GTK=1
1702   ;;
1703   *-*-irix5* | *-*-irix6* )
1704     USE_SGI=1
1705     USE_SVR4=1
1706     cat >>confdefs.h <<\_ACEOF
1707 #define __SGI__ 1
1708 _ACEOF
1709
1710     cat >>confdefs.h <<\_ACEOF
1711 #define __SVR4__ 1
1712 _ACEOF
1713
1714     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1715   ;;
1716   *-*-solaris2* )
1717     USE_SUN=1
1718     USE_SOLARIS=1
1719     USE_SVR4=1
1720     cat >>confdefs.h <<\_ACEOF
1721 #define __SUN__ 1
1722 _ACEOF
1723
1724     cat >>confdefs.h <<\_ACEOF
1725 #define __SOLARIS__ 1
1726 _ACEOF
1727
1728     cat >>confdefs.h <<\_ACEOF
1729 #define __SVR4__ 1
1730 _ACEOF
1731
1732     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734   ;;
1735   *-*-sunos4* )
1736     USE_SUN=1
1737     USE_SUNOS=1
1738     USE_BSD=1
1739     cat >>confdefs.h <<\_ACEOF
1740 #define __SUN__ 1
1741 _ACEOF
1742
1743     cat >>confdefs.h <<\_ACEOF
1744 #define __SUNOS__ 1
1745 _ACEOF
1746
1747     cat >>confdefs.h <<\_ACEOF
1748 #define __BSD__ 1
1749 _ACEOF
1750
1751     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1752   ;;
1753   *-*-freebsd*)
1754     USE_BSD=1
1755     USE_FREEBSD=1
1756     cat >>confdefs.h <<\_ACEOF
1757 #define __FREEBSD__ 1
1758 _ACEOF
1759
1760     cat >>confdefs.h <<\_ACEOF
1761 #define __BSD__ 1
1762 _ACEOF
1763
1764     DEFAULT_DEFAULT_wxUSE_GTK=1
1765   ;;
1766   *-*-openbsd*)
1767     USE_BSD=1
1768     USE_OPENBSD=1
1769     cat >>confdefs.h <<\_ACEOF
1770 #define __OPENBSD__ 1
1771 _ACEOF
1772
1773     cat >>confdefs.h <<\_ACEOF
1774 #define __BSD__ 1
1775 _ACEOF
1776
1777     DEFAULT_DEFAULT_wxUSE_GTK=1
1778   ;;
1779   *-*-netbsd*)
1780     USE_BSD=1
1781     USE_NETBSD=1
1782     cat >>confdefs.h <<\_ACEOF
1783 #define __NETBSD__ 1
1784 _ACEOF
1785
1786     cat >>confdefs.h <<\_ACEOF
1787 #define __BSD__ 1
1788 _ACEOF
1789
1790     DEFAULT_DEFAULT_wxUSE_GTK=1
1791   ;;
1792   *-*-osf* )
1793     USE_ALPHA=1
1794     USE_OSF=1
1795     cat >>confdefs.h <<\_ACEOF
1796 #define __ALPHA__ 1
1797 _ACEOF
1798
1799     cat >>confdefs.h <<\_ACEOF
1800 #define __OSF__ 1
1801 _ACEOF
1802
1803     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1804     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1805   ;;
1806   *-*-dgux5* )
1807     USE_ALPHA=1
1808     USE_SVR4=1
1809     cat >>confdefs.h <<\_ACEOF
1810 #define __ALPHA__ 1
1811 _ACEOF
1812
1813     cat >>confdefs.h <<\_ACEOF
1814 #define __SVR4__ 1
1815 _ACEOF
1816
1817     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818   ;;
1819   *-*-sysv5* )
1820     USE_SYSV=1
1821     USE_SVR4=1
1822     cat >>confdefs.h <<\_ACEOF
1823 #define __SYSV__ 1
1824 _ACEOF
1825
1826     cat >>confdefs.h <<\_ACEOF
1827 #define __SVR4__ 1
1828 _ACEOF
1829
1830     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1831   ;;
1832   *-*-aix* )
1833     USE_AIX=1
1834     USE_SYSV=1
1835     USE_SVR4=1
1836                         SO_SUFFIX=a
1837     cat >>confdefs.h <<\_ACEOF
1838 #define __AIX__ 1
1839 _ACEOF
1840
1841     cat >>confdefs.h <<\_ACEOF
1842 #define __SYSV__ 1
1843 _ACEOF
1844
1845     cat >>confdefs.h <<\_ACEOF
1846 #define __SVR4__ 1
1847 _ACEOF
1848
1849     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1850   ;;
1851
1852   *-*-*UnixWare*)
1853     USE_SYSV=1
1854     USE_SVR4=1
1855     USE_UNIXWARE=1
1856     cat >>confdefs.h <<\_ACEOF
1857 #define __UNIXWARE__ 1
1858 _ACEOF
1859
1860   ;;
1861
1862   *-*-cygwin* | *-*-mingw32* )
1863                 SO_SUFFIX=dll
1864     PROGRAM_EXT=".exe"
1865     RESCOMP=windres
1866     DEFAULT_DEFAULT_wxUSE_MSW=1
1867   ;;
1868
1869   *-pc-msdosdjgpp )
1870     USE_UNIX=0
1871     USE_DOS=1
1872     cat >>confdefs.h <<\_ACEOF
1873 #define __DOS__ 1
1874 _ACEOF
1875
1876     PROGRAM_EXT=".exe"
1877     DEFAULT_DEFAULT_wxUSE_MGL=1
1878         LIBS="$LIBS -lstdc++"
1879   ;;
1880
1881   *-pc-os2_emx | *-pc-os2-emx )
1882     cat >>confdefs.h <<\_ACEOF
1883 #define __EMX__ 1
1884 _ACEOF
1885
1886     PROGRAM_EXT=".exe"
1887     DEFAULT_DEFAULT_wxUSE_PM=1
1888   ;;
1889
1890   powerpc-*-darwin* )
1891         USE_BSD=1
1892     USE_DARWIN=1
1893     SO_SUFFIX=dylib
1894     cat >>confdefs.h <<\_ACEOF
1895 #define __BSD__ 1
1896 _ACEOF
1897
1898     cat >>confdefs.h <<\_ACEOF
1899 #define __DARWIN__ 1
1900 _ACEOF
1901
1902     cat >>confdefs.h <<\_ACEOF
1903 #define __POWERPC__ 1
1904 _ACEOF
1905
1906     cat >>confdefs.h <<\_ACEOF
1907 #define TARGET_CARBON 1
1908 _ACEOF
1909
1910     DEFAULT_DEFAULT_wxUSE_MAC=1
1911   ;;
1912
1913   *-*-beos* )
1914         USE_BEOS=1
1915     cat >>confdefs.h <<\_ACEOF
1916 #define __BEOS__ 1
1917 _ACEOF
1918
1919   ;;
1920
1921   *)
1922     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1923 echo "$as_me: error: unknown system type ${host}." >&2;}
1924    { (exit 1); exit 1; }; }
1925 esac
1926
1927
1928
1929
1930           wx_arg_cache_file="configarg.cache"
1931           echo "loading argument cache $wx_arg_cache_file"
1932           rm -f ${wx_arg_cache_file}.tmp
1933           touch ${wx_arg_cache_file}.tmp
1934           touch ${wx_arg_cache_file}
1935
1936
1937 DEBUG_CONFIGURE=0
1938 if test $DEBUG_CONFIGURE = 1; then
1939   DEFAULT_wxUSE_UNIVERSAL=no
1940
1941   DEFAULT_wxUSE_NANOX=no
1942
1943   DEFAULT_wxUSE_THREADS=yes
1944
1945   DEFAULT_wxUSE_SHARED=yes
1946   DEFAULT_wxUSE_SONAME=no
1947   DEFAULT_wxUSE_OPTIMISE=no
1948   DEFAULT_wxUSE_PROFILE=no
1949   DEFAULT_wxUSE_NO_DEPS=no
1950   DEFAULT_wxUSE_NO_RTTI=no
1951   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1952   DEFAULT_wxUSE_PERMISSIVE=no
1953   DEFAULT_wxUSE_DEBUG_FLAG=yes
1954   DEFAULT_wxUSE_DEBUG_INFO=yes
1955   DEFAULT_wxUSE_DEBUG_GDB=yes
1956   DEFAULT_wxUSE_MEM_TRACING=no
1957   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1958   DEFAULT_wxUSE_DMALLOC=no
1959   DEFAULT_wxUSE_PRECOMP=no
1960   DEFAULT_wxUSE_APPLE_IEEE=no
1961
1962   DEFAULT_wxUSE_LOG=yes
1963   DEFAULT_wxUSE_LOGWINDOW=no
1964   DEFAULT_wxUSE_LOGGUI=no
1965   DEFAULT_wxUSE_LOGDIALOG=no
1966
1967   DEFAULT_wxUSE_GUI=yes
1968   DEFAULT_wxUSE_CONTROLS=no
1969
1970   DEFAULT_wxUSE_REGEX=no
1971   DEFAULT_wxUSE_ZLIB=no
1972   DEFAULT_wxUSE_LIBPNG=no
1973   DEFAULT_wxUSE_LIBJPEG=no
1974   DEFAULT_wxUSE_LIBTIFF=no
1975   DEFAULT_wxUSE_ODBC=no
1976   DEFAULT_wxUSE_OPENGL=no
1977
1978   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1979   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1980   DEFAULT_wxUSE_STD_IOSTREAM=no
1981   DEFAULT_wxUSE_CMDLINE_PARSER=no
1982   DEFAULT_wxUSE_DATETIME=no
1983   DEFAULT_wxUSE_TIMER=no
1984   DEFAULT_wxUSE_STOPWATCH=no
1985   DEFAULT_wxUSE_FILE=no
1986   DEFAULT_wxUSE_FFILE=no
1987   DEFAULT_wxUSE_TEXTBUFFER=no
1988   DEFAULT_wxUSE_TEXTFILE=no
1989   DEFAULT_wxUSE_WAVE=no
1990   DEFAULT_wxUSE_INTL=no
1991   DEFAULT_wxUSE_CONFIG=no
1992   DEFAULT_wxUSE_FONTMAP=no
1993   DEFAULT_wxUSE_STREAMS=no
1994   DEFAULT_wxUSE_SOCKETS=no
1995   DEFAULT_wxUSE_OLE=no
1996   DEFAULT_wxUSE_DATAOBJ=no
1997   DEFAULT_wxUSE_DIALUP_MANAGER=no
1998   DEFAULT_wxUSE_JOYSTICK=no
1999   DEFAULT_wxUSE_DYNLIB_CLASS=no
2000   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2001   DEFAULT_wxUSE_LONGLONG=no
2002   DEFAULT_wxUSE_GEOMETRY=no
2003
2004   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2005   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2006   DEFAULT_wxUSE_POSTSCRIPT=no
2007
2008   DEFAULT_wxUSE_CLIPBOARD=no
2009   DEFAULT_wxUSE_TOOLTIPS=no
2010   DEFAULT_wxUSE_DRAG_AND_DROP=no
2011   DEFAULT_wxUSE_DRAGIMAGE=no
2012   DEFAULT_wxUSE_SPLINES=no
2013
2014   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2015   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2016   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2017
2018   DEFAULT_wxUSE_RESOURCES=no
2019   DEFAULT_wxUSE_CONSTRAINTS=no
2020   DEFAULT_wxUSE_IPC=no
2021   DEFAULT_wxUSE_HELP=no
2022   DEFAULT_wxUSE_MS_HTML_HELP=no
2023   DEFAULT_wxUSE_WXHTML_HELP=no
2024   DEFAULT_wxUSE_TREELAYOUT=no
2025   DEFAULT_wxUSE_METAFILE=no
2026   DEFAULT_wxUSE_MIMETYPE=no
2027   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2028   DEFAULT_wxUSE_PROTOCOL=no
2029   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2030   DEFAULT_wxUSE_PROTOCOL_FTP=no
2031   DEFAULT_wxUSE_PROTOCOL_FILE=no
2032   DEFAULT_wxUSE_URL=no
2033
2034   DEFAULT_wxUSE_COMMONDLGS=no
2035   DEFAULT_wxUSE_CHOICEDLG=no
2036   DEFAULT_wxUSE_COLOURDLG=no
2037   DEFAULT_wxUSE_DIRDLG=no
2038   DEFAULT_wxUSE_FILEDLG=no
2039   DEFAULT_wxUSE_FINDREPLDLG=no
2040   DEFAULT_wxUSE_FONTDLG=no
2041   DEFAULT_wxUSE_MSGDLG=no
2042   DEFAULT_wxUSE_NUMBERDLG=no
2043   DEFAULT_wxUSE_TEXTDLG=no
2044   DEFAULT_wxUSE_SPLASH=no
2045   DEFAULT_wxUSE_STARTUP_TIPS=no
2046   DEFAULT_wxUSE_PROGRESSDLG=no
2047   DEFAULT_wxUSE_WIZARDDLG=no
2048
2049   DEFAULT_wxUSE_MENUS=no
2050   DEFAULT_wxUSE_MINIFRAME=no
2051   DEFAULT_wxUSE_HTML=no
2052   DEFAULT_wxUSE_FILESYSTEM=no
2053   DEFAULT_wxUSE_FS_INET=no
2054   DEFAULT_wxUSE_FS_ZIP=no
2055   DEFAULT_wxUSE_BUSYINFO=no
2056   DEFAULT_wxUSE_ZIPSTREAM=no
2057   DEFAULT_wxUSE_VALIDATORS=no
2058
2059   DEFAULT_wxUSE_ACCEL=no
2060   DEFAULT_wxUSE_BUTTON=no
2061   DEFAULT_wxUSE_BMPBUTTON=no
2062   DEFAULT_wxUSE_CALCTRL=no
2063   DEFAULT_wxUSE_CARET=no
2064   DEFAULT_wxUSE_CHECKBOX=no
2065   DEFAULT_wxUSE_CHECKLST=no
2066   DEFAULT_wxUSE_CHOICE=no
2067   DEFAULT_wxUSE_COMBOBOX=no
2068   DEFAULT_wxUSE_DISPLAY=no
2069   DEFAULT_wxUSE_GAUGE=no
2070   DEFAULT_wxUSE_GRID=no
2071   DEFAULT_wxUSE_IMAGLIST=no
2072   DEFAULT_wxUSE_LISTBOX=no
2073   DEFAULT_wxUSE_LISTCTRL=no
2074   DEFAULT_wxUSE_NOTEBOOK=no
2075   DEFAULT_wxUSE_RADIOBOX=no
2076   DEFAULT_wxUSE_RADIOBTN=no
2077   DEFAULT_wxUSE_SASH=no
2078   DEFAULT_wxUSE_SCROLLBAR=no
2079   DEFAULT_wxUSE_SLIDER=no
2080   DEFAULT_wxUSE_SPINBTN=no
2081   DEFAULT_wxUSE_SPINCTRL=no
2082   DEFAULT_wxUSE_SPLITTER=no
2083   DEFAULT_wxUSE_STATBMP=no
2084   DEFAULT_wxUSE_STATBOX=no
2085   DEFAULT_wxUSE_STATLINE=no
2086   DEFAULT_wxUSE_STATTEXT=no
2087   DEFAULT_wxUSE_STATUSBAR=yes
2088   DEFAULT_wxUSE_TABDIALOG=no
2089   DEFAULT_wxUSE_TEXTCTRL=no
2090   DEFAULT_wxUSE_TOGGLEBTN=no
2091   DEFAULT_wxUSE_TOOLBAR=no
2092   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2093   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2094   DEFAULT_wxUSE_TREECTRL=no
2095   DEFAULT_wxUSE_POPUPWIN=no
2096   DEFAULT_wxUSE_TIPWINDOW=no
2097
2098   DEFAULT_wxUSE_UNICODE=no
2099   DEFAULT_wxUSE_UNICODE_MSLU=no
2100   DEFAULT_wxUSE_WCSRTOMBS=no
2101
2102   DEFAULT_wxUSE_PALETTE=no
2103   DEFAULT_wxUSE_IMAGE=no
2104   DEFAULT_wxUSE_GIF=no
2105   DEFAULT_wxUSE_PCX=no
2106   DEFAULT_wxUSE_PNM=no
2107   DEFAULT_wxUSE_IFF=no
2108   DEFAULT_wxUSE_XPM=no
2109   DEFAULT_wxUSE_ICO_CUR=no
2110   DEFAULT_wxUSE_ACCESSIBILITY=no
2111 else
2112   DEFAULT_wxUSE_UNIVERSAL=no
2113
2114   DEFAULT_wxUSE_NANOX=no
2115
2116   DEFAULT_wxUSE_THREADS=yes
2117
2118   DEFAULT_wxUSE_SHARED=yes
2119   DEFAULT_wxUSE_SONAME=no
2120   DEFAULT_wxUSE_OPTIMISE=yes
2121   DEFAULT_wxUSE_PROFILE=no
2122   DEFAULT_wxUSE_NO_DEPS=no
2123   DEFAULT_wxUSE_NO_RTTI=no
2124   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2125   DEFAULT_wxUSE_PERMISSIVE=no
2126   DEFAULT_wxUSE_DEBUG_FLAG=no
2127   DEFAULT_wxUSE_DEBUG_INFO=no
2128   DEFAULT_wxUSE_DEBUG_GDB=no
2129   DEFAULT_wxUSE_MEM_TRACING=no
2130   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2131   DEFAULT_wxUSE_DMALLOC=no
2132   DEFAULT_wxUSE_PRECOMP=no
2133   DEFAULT_wxUSE_APPLE_IEEE=yes
2134
2135   DEFAULT_wxUSE_LOG=yes
2136   DEFAULT_wxUSE_LOGWINDOW=yes
2137   DEFAULT_wxUSE_LOGGUI=yes
2138   DEFAULT_wxUSE_LOGDIALOG=yes
2139
2140   DEFAULT_wxUSE_GUI=yes
2141
2142   DEFAULT_wxUSE_REGEX=yes
2143   DEFAULT_wxUSE_ZLIB=yes
2144   DEFAULT_wxUSE_LIBPNG=yes
2145   DEFAULT_wxUSE_LIBJPEG=yes
2146   DEFAULT_wxUSE_LIBTIFF=yes
2147   DEFAULT_wxUSE_ODBC=no
2148   DEFAULT_wxUSE_OPENGL=no
2149
2150   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2151   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2152   DEFAULT_wxUSE_STD_IOSTREAM=no
2153   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2154   DEFAULT_wxUSE_DATETIME=yes
2155   DEFAULT_wxUSE_TIMER=yes
2156   DEFAULT_wxUSE_STOPWATCH=yes
2157   DEFAULT_wxUSE_FILE=yes
2158   DEFAULT_wxUSE_FFILE=yes
2159   DEFAULT_wxUSE_TEXTBUFFER=yes
2160   DEFAULT_wxUSE_TEXTFILE=yes
2161   DEFAULT_wxUSE_WAVE=no
2162   DEFAULT_wxUSE_INTL=yes
2163   DEFAULT_wxUSE_CONFIG=yes
2164   DEFAULT_wxUSE_FONTMAP=yes
2165   DEFAULT_wxUSE_STREAMS=yes
2166   DEFAULT_wxUSE_SOCKETS=yes
2167   DEFAULT_wxUSE_OLE=yes
2168   DEFAULT_wxUSE_DATAOBJ=yes
2169   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2170   DEFAULT_wxUSE_JOYSTICK=yes
2171   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2172   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2173   DEFAULT_wxUSE_LONGLONG=yes
2174   DEFAULT_wxUSE_GEOMETRY=yes
2175
2176   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2177   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2178   DEFAULT_wxUSE_POSTSCRIPT=yes
2179
2180   DEFAULT_wxUSE_CLIPBOARD=yes
2181   DEFAULT_wxUSE_TOOLTIPS=yes
2182   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2183   DEFAULT_wxUSE_DRAGIMAGE=yes
2184   DEFAULT_wxUSE_SPLINES=yes
2185
2186   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2187   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2188   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2189
2190   DEFAULT_wxUSE_RESOURCES=no
2191   DEFAULT_wxUSE_CONSTRAINTS=yes
2192   DEFAULT_wxUSE_IPC=yes
2193   DEFAULT_wxUSE_HELP=yes
2194   DEFAULT_wxUSE_MS_HTML_HELP=yes
2195   DEFAULT_wxUSE_WXHTML_HELP=yes
2196   DEFAULT_wxUSE_TREELAYOUT=yes
2197   DEFAULT_wxUSE_METAFILE=yes
2198   DEFAULT_wxUSE_MIMETYPE=yes
2199   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2200   DEFAULT_wxUSE_PROTOCOL=yes
2201   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2202   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2203   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2204   DEFAULT_wxUSE_URL=yes
2205
2206   DEFAULT_wxUSE_COMMONDLGS=yes
2207   DEFAULT_wxUSE_CHOICEDLG=yes
2208   DEFAULT_wxUSE_COLOURDLG=yes
2209   DEFAULT_wxUSE_DIRDLG=yes
2210   DEFAULT_wxUSE_FILEDLG=yes
2211   DEFAULT_wxUSE_FINDREPLDLG=yes
2212   DEFAULT_wxUSE_FONTDLG=yes
2213   DEFAULT_wxUSE_MSGDLG=yes
2214   DEFAULT_wxUSE_NUMBERDLG=yes
2215   DEFAULT_wxUSE_TEXTDLG=yes
2216   DEFAULT_wxUSE_SPLASH=yes
2217   DEFAULT_wxUSE_STARTUP_TIPS=yes
2218   DEFAULT_wxUSE_PROGRESSDLG=yes
2219   DEFAULT_wxUSE_WIZARDDLG=yes
2220
2221   DEFAULT_wxUSE_MENUS=yes
2222   DEFAULT_wxUSE_MINIFRAME=yes
2223   DEFAULT_wxUSE_HTML=yes
2224   DEFAULT_wxUSE_FILESYSTEM=yes
2225   DEFAULT_wxUSE_FS_INET=yes
2226   DEFAULT_wxUSE_FS_ZIP=yes
2227   DEFAULT_wxUSE_BUSYINFO=yes
2228   DEFAULT_wxUSE_ZIPSTREAM=yes
2229   DEFAULT_wxUSE_VALIDATORS=yes
2230
2231   DEFAULT_wxUSE_ACCEL=yes
2232   DEFAULT_wxUSE_BUTTON=yes
2233   DEFAULT_wxUSE_BMPBUTTON=yes
2234   DEFAULT_wxUSE_CALCTRL=yes
2235   DEFAULT_wxUSE_CARET=yes
2236   DEFAULT_wxUSE_CHECKBOX=yes
2237   DEFAULT_wxUSE_CHECKLST=yes
2238   DEFAULT_wxUSE_CHOICE=yes
2239   DEFAULT_wxUSE_COMBOBOX=yes
2240   DEFAULT_wxUSE_DISPLAY=no
2241   DEFAULT_wxUSE_GAUGE=yes
2242   DEFAULT_wxUSE_GRID=yes
2243   DEFAULT_wxUSE_IMAGLIST=yes
2244   DEFAULT_wxUSE_LISTBOX=yes
2245   DEFAULT_wxUSE_LISTCTRL=yes
2246   DEFAULT_wxUSE_NOTEBOOK=yes
2247   DEFAULT_wxUSE_RADIOBOX=yes
2248   DEFAULT_wxUSE_RADIOBTN=yes
2249   DEFAULT_wxUSE_SASH=yes
2250   DEFAULT_wxUSE_SCROLLBAR=yes
2251   DEFAULT_wxUSE_SLIDER=yes
2252   DEFAULT_wxUSE_SPINBTN=yes
2253   DEFAULT_wxUSE_SPINCTRL=yes
2254   DEFAULT_wxUSE_SPLITTER=yes
2255   DEFAULT_wxUSE_STATBMP=yes
2256   DEFAULT_wxUSE_STATBOX=yes
2257   DEFAULT_wxUSE_STATLINE=yes
2258   DEFAULT_wxUSE_STATTEXT=yes
2259   DEFAULT_wxUSE_STATUSBAR=yes
2260   DEFAULT_wxUSE_TABDIALOG=no
2261   DEFAULT_wxUSE_TEXTCTRL=yes
2262   DEFAULT_wxUSE_TOGGLEBTN=yes
2263   DEFAULT_wxUSE_TOOLBAR=yes
2264   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2265   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2266   DEFAULT_wxUSE_TREECTRL=yes
2267   DEFAULT_wxUSE_POPUPWIN=yes
2268   DEFAULT_wxUSE_TIPWINDOW=yes
2269
2270   DEFAULT_wxUSE_UNICODE=no
2271   DEFAULT_wxUSE_UNICODE_MSLU=yes
2272   DEFAULT_wxUSE_WCSRTOMBS=no
2273
2274   DEFAULT_wxUSE_PALETTE=yes
2275   DEFAULT_wxUSE_IMAGE=yes
2276   DEFAULT_wxUSE_GIF=yes
2277   DEFAULT_wxUSE_PCX=yes
2278   DEFAULT_wxUSE_IFF=no
2279   DEFAULT_wxUSE_PNM=yes
2280   DEFAULT_wxUSE_XPM=yes
2281   DEFAULT_wxUSE_ICO_CUR=yes
2282   DEFAULT_wxUSE_ACCESSIBILITY=no
2283 fi
2284
2285
2286
2287 for toolkit in `echo $ALL_TOOLKITS`; do
2288   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2289   if test "x$LINE" != "x" ; then
2290     has_toolkit_in_cache=1
2291     eval "DEFAULT_$LINE"
2292     eval "CACHE_$toolkit=1"
2293   fi
2294 done
2295
2296
2297
2298           enablestring=
2299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2300 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2301           no_cache=0
2302           # Check whether --enable-gui or --disable-gui was given.
2303 if test "${enable_gui+set}" = set; then
2304   enableval="$enable_gui"
2305
2306                           if test "$enableval" = yes; then
2307                             ac_cv_use_gui='wxUSE_GUI=yes'
2308                           else
2309                             ac_cv_use_gui='wxUSE_GUI=no'
2310                           fi
2311
2312 else
2313
2314                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2315                           if test "x$LINE" != x ; then
2316                             eval "DEFAULT_$LINE"
2317                           else
2318                             no_cache=1
2319                           fi
2320
2321                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2322
2323 fi;
2324
2325           eval "$ac_cv_use_gui"
2326           if test "$no_cache" != 1; then
2327             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2328           fi
2329
2330           if test "$wxUSE_GUI" = yes; then
2331             echo "$as_me:$LINENO: result: yes" >&5
2332 echo "${ECHO_T}yes" >&6
2333           else
2334             echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2336           fi
2337
2338
2339 if test "$wxUSE_GUI" = "yes"; then
2340
2341
2342           enablestring=
2343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2344 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2345           no_cache=0
2346           # Check whether --enable-universal or --disable-universal was given.
2347 if test "${enable_universal+set}" = set; then
2348   enableval="$enable_universal"
2349
2350                           if test "$enableval" = yes; then
2351                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2352                           else
2353                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2354                           fi
2355
2356 else
2357
2358                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2359                           if test "x$LINE" != x ; then
2360                             eval "DEFAULT_$LINE"
2361                           else
2362                             no_cache=1
2363                           fi
2364
2365                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2366
2367 fi;
2368
2369           eval "$ac_cv_use_universal"
2370           if test "$no_cache" != 1; then
2371             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2372           fi
2373
2374           if test "$wxUSE_UNIVERSAL" = yes; then
2375             echo "$as_me:$LINENO: result: yes" >&5
2376 echo "${ECHO_T}yes" >&6
2377           else
2378             echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2380           fi
2381
2382
2383 # Check whether --with-gtk or --without-gtk was given.
2384 if test "${with_gtk+set}" = set; then
2385   withval="$with_gtk"
2386   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2387 fi;
2388
2389 # Check whether --with-motif or --without-motif was given.
2390 if test "${with_motif+set}" = set; then
2391   withval="$with_motif"
2392   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2393 fi;
2394
2395 # Check whether --with-mac or --without-mac was given.
2396 if test "${with_mac+set}" = set; then
2397   withval="$with_mac"
2398   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2399 fi;
2400
2401 # Check whether --with-cocoa or --without-cocoa was given.
2402 if test "${with_cocoa+set}" = set; then
2403   withval="$with_cocoa"
2404   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2405 fi;
2406
2407 # Check whether --with-wine or --without-wine was given.
2408 if test "${with_wine+set}" = set; then
2409   withval="$with_wine"
2410   wxUSE_WINE="$withval" CACHE_WINE=1
2411 fi;
2412
2413 # Check whether --with-msw or --without-msw was given.
2414 if test "${with_msw+set}" = set; then
2415   withval="$with_msw"
2416   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2417 fi;
2418
2419 # Check whether --with-pm or --without-pm was given.
2420 if test "${with_pm+set}" = set; then
2421   withval="$with_pm"
2422   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2423 fi;
2424
2425 # Check whether --with-mgl or --without-mgl was given.
2426 if test "${with_mgl+set}" = set; then
2427   withval="$with_mgl"
2428   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2429 fi;
2430
2431 # Check whether --with-microwin or --without-microwin was given.
2432 if test "${with_microwin+set}" = set; then
2433   withval="$with_microwin"
2434   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2435 fi;
2436
2437 # Check whether --with-x11 or --without-x11 was given.
2438 if test "${with_x11+set}" = set; then
2439   withval="$with_x11"
2440   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2441 fi;
2442
2443           enablestring=
2444           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2445 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2446           no_cache=0
2447           # Check whether --enable-nanox or --disable-nanox was given.
2448 if test "${enable_nanox+set}" = set; then
2449   enableval="$enable_nanox"
2450
2451                           if test "$enableval" = yes; then
2452                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2453                           else
2454                             ac_cv_use_nanox='wxUSE_NANOX=no'
2455                           fi
2456
2457 else
2458
2459                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2460                           if test "x$LINE" != x ; then
2461                             eval "DEFAULT_$LINE"
2462                           else
2463                             no_cache=1
2464                           fi
2465
2466                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2467
2468 fi;
2469
2470           eval "$ac_cv_use_nanox"
2471           if test "$no_cache" != 1; then
2472             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2473           fi
2474
2475           if test "$wxUSE_NANOX" = yes; then
2476             echo "$as_me:$LINENO: result: yes" >&5
2477 echo "${ECHO_T}yes" >&6
2478           else
2479             echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2481           fi
2482
2483
2484
2485           enablestring=
2486           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2487 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2488           no_cache=0
2489           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2490 if test "${enable_gtk2+set}" = set; then
2491   enableval="$enable_gtk2"
2492
2493                           if test "$enableval" = yes; then
2494                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2495                           else
2496                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2497                           fi
2498
2499 else
2500
2501                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2502                           if test "x$LINE" != x ; then
2503                             eval "DEFAULT_$LINE"
2504                           else
2505                             no_cache=1
2506                           fi
2507
2508                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2509
2510 fi;
2511
2512           eval "$ac_cv_use_gtk2"
2513           if test "$no_cache" != 1; then
2514             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2515           fi
2516
2517           if test "$wxUSE_GTK2" = yes; then
2518             echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2520           else
2521             echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6
2523           fi
2524
2525
2526
2527           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2528 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2529           no_cache=0
2530
2531 # Check whether --with-libpng or --without-libpng was given.
2532 if test "${with_libpng+set}" = set; then
2533   withval="$with_libpng"
2534
2535                         if test "$withval" = yes; then
2536                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2537                         elif test "$withval" = no; then
2538                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2539                         elif test "$withval" = sys; then
2540                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2541                         elif test "$withval" = builtin; then
2542                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2543                         else
2544                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2545 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2546    { (exit 1); exit 1; }; }
2547                         fi
2548
2549 else
2550
2551                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2552                         if test "x$LINE" != x ; then
2553                           eval "DEFAULT_$LINE"
2554                         else
2555                           no_cache=1
2556                         fi
2557
2558                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2559
2560 fi;
2561
2562           eval "$ac_cv_use_libpng"
2563           if test "$no_cache" != 1; then
2564             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2565           fi
2566
2567           if test "$wxUSE_LIBPNG" = yes; then
2568             echo "$as_me:$LINENO: result: yes" >&5
2569 echo "${ECHO_T}yes" >&6
2570           elif test "$wxUSE_LIBPNG" = no; then
2571             echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6
2573           elif test "$wxUSE_LIBPNG" = sys; then
2574             echo "$as_me:$LINENO: result: system version" >&5
2575 echo "${ECHO_T}system version" >&6
2576           elif test "$wxUSE_LIBPNG" = builtin; then
2577             echo "$as_me:$LINENO: result: builtin version" >&5
2578 echo "${ECHO_T}builtin version" >&6
2579           else
2580             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2581 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2582    { (exit 1); exit 1; }; }
2583           fi
2584
2585
2586           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2587 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2588           no_cache=0
2589
2590 # Check whether --with-libjpeg or --without-libjpeg was given.
2591 if test "${with_libjpeg+set}" = set; then
2592   withval="$with_libjpeg"
2593
2594                         if test "$withval" = yes; then
2595                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2596                         elif test "$withval" = no; then
2597                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2598                         elif test "$withval" = sys; then
2599                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2600                         elif test "$withval" = builtin; then
2601                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2602                         else
2603                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2604 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2605    { (exit 1); exit 1; }; }
2606                         fi
2607
2608 else
2609
2610                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2611                         if test "x$LINE" != x ; then
2612                           eval "DEFAULT_$LINE"
2613                         else
2614                           no_cache=1
2615                         fi
2616
2617                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2618
2619 fi;
2620
2621           eval "$ac_cv_use_libjpeg"
2622           if test "$no_cache" != 1; then
2623             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2624           fi
2625
2626           if test "$wxUSE_LIBJPEG" = yes; then
2627             echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2629           elif test "$wxUSE_LIBJPEG" = no; then
2630             echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2632           elif test "$wxUSE_LIBJPEG" = sys; then
2633             echo "$as_me:$LINENO: result: system version" >&5
2634 echo "${ECHO_T}system version" >&6
2635           elif test "$wxUSE_LIBJPEG" = builtin; then
2636             echo "$as_me:$LINENO: result: builtin version" >&5
2637 echo "${ECHO_T}builtin version" >&6
2638           else
2639             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2640 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2641    { (exit 1); exit 1; }; }
2642           fi
2643
2644
2645           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2646 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2647           no_cache=0
2648
2649 # Check whether --with-libtiff or --without-libtiff was given.
2650 if test "${with_libtiff+set}" = set; then
2651   withval="$with_libtiff"
2652
2653                         if test "$withval" = yes; then
2654                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2655                         elif test "$withval" = no; then
2656                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2657                         elif test "$withval" = sys; then
2658                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2659                         elif test "$withval" = builtin; then
2660                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2661                         else
2662                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2663 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2664    { (exit 1); exit 1; }; }
2665                         fi
2666
2667 else
2668
2669                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2670                         if test "x$LINE" != x ; then
2671                           eval "DEFAULT_$LINE"
2672                         else
2673                           no_cache=1
2674                         fi
2675
2676                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2677
2678 fi;
2679
2680           eval "$ac_cv_use_libtiff"
2681           if test "$no_cache" != 1; then
2682             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2683           fi
2684
2685           if test "$wxUSE_LIBTIFF" = yes; then
2686             echo "$as_me:$LINENO: result: yes" >&5
2687 echo "${ECHO_T}yes" >&6
2688           elif test "$wxUSE_LIBTIFF" = no; then
2689             echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2691           elif test "$wxUSE_LIBTIFF" = sys; then
2692             echo "$as_me:$LINENO: result: system version" >&5
2693 echo "${ECHO_T}system version" >&6
2694           elif test "$wxUSE_LIBTIFF" = builtin; then
2695             echo "$as_me:$LINENO: result: builtin version" >&5
2696 echo "${ECHO_T}builtin version" >&6
2697           else
2698             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2699 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2700    { (exit 1); exit 1; }; }
2701           fi
2702
2703
2704           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2705 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2706           no_cache=0
2707
2708 # Check whether --with-opengl or --without-opengl was given.
2709 if test "${with_opengl+set}" = set; then
2710   withval="$with_opengl"
2711
2712                         if test "$withval" = yes; then
2713                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2714                         else
2715                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2716                         fi
2717
2718 else
2719
2720                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2721                         if test "x$LINE" != x ; then
2722                           eval "DEFAULT_$LINE"
2723                         else
2724                           no_cache=1
2725                         fi
2726
2727                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2728
2729 fi;
2730
2731           eval "$ac_cv_use_opengl"
2732           if test "$no_cache" != 1; then
2733             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2734           fi
2735
2736           if test "$wxUSE_OPENGL" = yes; then
2737             echo "$as_me:$LINENO: result: yes" >&5
2738 echo "${ECHO_T}yes" >&6
2739           else
2740             echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742           fi
2743
2744
2745 fi
2746
2747
2748           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2749 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2750           no_cache=0
2751
2752 # Check whether --with-dmalloc or --without-dmalloc was given.
2753 if test "${with_dmalloc+set}" = set; then
2754   withval="$with_dmalloc"
2755
2756                         if test "$withval" = yes; then
2757                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2758                         else
2759                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2760                         fi
2761
2762 else
2763
2764                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2765                         if test "x$LINE" != x ; then
2766                           eval "DEFAULT_$LINE"
2767                         else
2768                           no_cache=1
2769                         fi
2770
2771                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2772
2773 fi;
2774
2775           eval "$ac_cv_use_dmalloc"
2776           if test "$no_cache" != 1; then
2777             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2778           fi
2779
2780           if test "$wxUSE_DMALLOC" = yes; then
2781             echo "$as_me:$LINENO: result: yes" >&5
2782 echo "${ECHO_T}yes" >&6
2783           else
2784             echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2786           fi
2787
2788
2789           echo "$as_me:$LINENO: checking for --with-regex" >&5
2790 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
2791           no_cache=0
2792
2793 # Check whether --with-regex or --without-regex was given.
2794 if test "${with_regex+set}" = set; then
2795   withval="$with_regex"
2796
2797                         if test "$withval" = yes; then
2798                           ac_cv_use_regex='wxUSE_REGEX=yes'
2799                         elif test "$withval" = no; then
2800                           ac_cv_use_regex='wxUSE_REGEX=no'
2801                         elif test "$withval" = sys; then
2802                           ac_cv_use_regex='wxUSE_REGEX=sys'
2803                         elif test "$withval" = builtin; then
2804                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2805                         else
2806                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2807 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2808    { (exit 1); exit 1; }; }
2809                         fi
2810
2811 else
2812
2813                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2814                         if test "x$LINE" != x ; then
2815                           eval "DEFAULT_$LINE"
2816                         else
2817                           no_cache=1
2818                         fi
2819
2820                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2821
2822 fi;
2823
2824           eval "$ac_cv_use_regex"
2825           if test "$no_cache" != 1; then
2826             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2827           fi
2828
2829           if test "$wxUSE_REGEX" = yes; then
2830             echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832           elif test "$wxUSE_REGEX" = no; then
2833             echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835           elif test "$wxUSE_REGEX" = sys; then
2836             echo "$as_me:$LINENO: result: system version" >&5
2837 echo "${ECHO_T}system version" >&6
2838           elif test "$wxUSE_REGEX" = builtin; then
2839             echo "$as_me:$LINENO: result: builtin version" >&5
2840 echo "${ECHO_T}builtin version" >&6
2841           else
2842             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2843 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2844    { (exit 1); exit 1; }; }
2845           fi
2846
2847
2848           echo "$as_me:$LINENO: checking for --with-zlib" >&5
2849 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
2850           no_cache=0
2851
2852 # Check whether --with-zlib or --without-zlib was given.
2853 if test "${with_zlib+set}" = set; then
2854   withval="$with_zlib"
2855
2856                         if test "$withval" = yes; then
2857                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2858                         elif test "$withval" = no; then
2859                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2860                         elif test "$withval" = sys; then
2861                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2862                         elif test "$withval" = builtin; then
2863                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2864                         else
2865                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2866 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2867    { (exit 1); exit 1; }; }
2868                         fi
2869
2870 else
2871
2872                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2873                         if test "x$LINE" != x ; then
2874                           eval "DEFAULT_$LINE"
2875                         else
2876                           no_cache=1
2877                         fi
2878
2879                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2880
2881 fi;
2882
2883           eval "$ac_cv_use_zlib"
2884           if test "$no_cache" != 1; then
2885             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2886           fi
2887
2888           if test "$wxUSE_ZLIB" = yes; then
2889             echo "$as_me:$LINENO: result: yes" >&5
2890 echo "${ECHO_T}yes" >&6
2891           elif test "$wxUSE_ZLIB" = no; then
2892             echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2894           elif test "$wxUSE_ZLIB" = sys; then
2895             echo "$as_me:$LINENO: result: system version" >&5
2896 echo "${ECHO_T}system version" >&6
2897           elif test "$wxUSE_ZLIB" = builtin; then
2898             echo "$as_me:$LINENO: result: builtin version" >&5
2899 echo "${ECHO_T}builtin version" >&6
2900           else
2901             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2902 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2903    { (exit 1); exit 1; }; }
2904           fi
2905
2906
2907           echo "$as_me:$LINENO: checking for --with-odbc" >&5
2908 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
2909           no_cache=0
2910
2911 # Check whether --with-odbc or --without-odbc was given.
2912 if test "${with_odbc+set}" = set; then
2913   withval="$with_odbc"
2914
2915                         if test "$withval" = yes; then
2916                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2917                         elif test "$withval" = no; then
2918                           ac_cv_use_odbc='wxUSE_ODBC=no'
2919                         elif test "$withval" = sys; then
2920                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2921                         elif test "$withval" = builtin; then
2922                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2923                         else
2924                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2925 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2926    { (exit 1); exit 1; }; }
2927                         fi
2928
2929 else
2930
2931                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2932                         if test "x$LINE" != x ; then
2933                           eval "DEFAULT_$LINE"
2934                         else
2935                           no_cache=1
2936                         fi
2937
2938                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2939
2940 fi;
2941
2942           eval "$ac_cv_use_odbc"
2943           if test "$no_cache" != 1; then
2944             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2945           fi
2946
2947           if test "$wxUSE_ODBC" = yes; then
2948             echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6
2950           elif test "$wxUSE_ODBC" = no; then
2951             echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2953           elif test "$wxUSE_ODBC" = sys; then
2954             echo "$as_me:$LINENO: result: system version" >&5
2955 echo "${ECHO_T}system version" >&6
2956           elif test "$wxUSE_ODBC" = builtin; then
2957             echo "$as_me:$LINENO: result: builtin version" >&5
2958 echo "${ECHO_T}builtin version" >&6
2959           else
2960             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2961 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2962    { (exit 1); exit 1; }; }
2963           fi
2964
2965
2966
2967
2968           enablestring=
2969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
2970 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
2971           no_cache=0
2972           # Check whether --enable-shared or --disable-shared was given.
2973 if test "${enable_shared+set}" = set; then
2974   enableval="$enable_shared"
2975
2976                           if test "$enableval" = yes; then
2977                             ac_cv_use_shared='wxUSE_SHARED=yes'
2978                           else
2979                             ac_cv_use_shared='wxUSE_SHARED=no'
2980                           fi
2981
2982 else
2983
2984                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2985                           if test "x$LINE" != x ; then
2986                             eval "DEFAULT_$LINE"
2987                           else
2988                             no_cache=1
2989                           fi
2990
2991                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2992
2993 fi;
2994
2995           eval "$ac_cv_use_shared"
2996           if test "$no_cache" != 1; then
2997             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2998           fi
2999
3000           if test "$wxUSE_SHARED" = yes; then
3001             echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6
3003           else
3004             echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3006           fi
3007
3008
3009           enablestring=
3010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-soname" >&5
3011 echo $ECHO_N "checking for --${enablestring:-enable}-soname... $ECHO_C" >&6
3012           no_cache=0
3013           # Check whether --enable-soname or --disable-soname was given.
3014 if test "${enable_soname+set}" = set; then
3015   enableval="$enable_soname"
3016
3017                           if test "$enableval" = yes; then
3018                             ac_cv_use_soname='wxUSE_SONAME=yes'
3019                           else
3020                             ac_cv_use_soname='wxUSE_SONAME=no'
3021                           fi
3022
3023 else
3024
3025                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
3026                           if test "x$LINE" != x ; then
3027                             eval "DEFAULT_$LINE"
3028                           else
3029                             no_cache=1
3030                           fi
3031
3032                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
3033
3034 fi;
3035
3036           eval "$ac_cv_use_soname"
3037           if test "$no_cache" != 1; then
3038             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
3039           fi
3040
3041           if test "$wxUSE_SONAME" = yes; then
3042             echo "$as_me:$LINENO: result: yes" >&5
3043 echo "${ECHO_T}yes" >&6
3044           else
3045             echo "$as_me:$LINENO: result: no" >&5
3046 echo "${ECHO_T}no" >&6
3047           fi
3048
3049
3050           enablestring=
3051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3052 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3053           no_cache=0
3054           # Check whether --enable-optimise or --disable-optimise was given.
3055 if test "${enable_optimise+set}" = set; then
3056   enableval="$enable_optimise"
3057
3058                           if test "$enableval" = yes; then
3059                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3060                           else
3061                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3062                           fi
3063
3064 else
3065
3066                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3067                           if test "x$LINE" != x ; then
3068                             eval "DEFAULT_$LINE"
3069                           else
3070                             no_cache=1
3071                           fi
3072
3073                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3074
3075 fi;
3076
3077           eval "$ac_cv_use_optimise"
3078           if test "$no_cache" != 1; then
3079             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3080           fi
3081
3082           if test "$wxUSE_OPTIMISE" = yes; then
3083             echo "$as_me:$LINENO: result: yes" >&5
3084 echo "${ECHO_T}yes" >&6
3085           else
3086             echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3088           fi
3089
3090
3091           enablestring=
3092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3093 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3094           no_cache=0
3095           # Check whether --enable-debug or --disable-debug was given.
3096 if test "${enable_debug+set}" = set; then
3097   enableval="$enable_debug"
3098
3099                           if test "$enableval" = yes; then
3100                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3101                           else
3102                             ac_cv_use_debug='wxUSE_DEBUG=no'
3103                           fi
3104
3105 else
3106
3107                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3108                           if test "x$LINE" != x ; then
3109                             eval "DEFAULT_$LINE"
3110                           else
3111                             no_cache=1
3112                           fi
3113
3114                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3115
3116 fi;
3117
3118           eval "$ac_cv_use_debug"
3119           if test "$no_cache" != 1; then
3120             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3121           fi
3122
3123           if test "$wxUSE_DEBUG" = yes; then
3124             echo "$as_me:$LINENO: result: yes" >&5
3125 echo "${ECHO_T}yes" >&6
3126           else
3127             echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129           fi
3130
3131
3132
3133           enablestring=
3134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5
3135 echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6
3136           no_cache=0
3137           # Check whether --enable-precomp or --disable-precomp was given.
3138 if test "${enable_precomp+set}" = set; then
3139   enableval="$enable_precomp"
3140
3141                           if test "$enableval" = yes; then
3142                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
3143                           else
3144                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
3145                           fi
3146
3147 else
3148
3149                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
3150                           if test "x$LINE" != x ; then
3151                             eval "DEFAULT_$LINE"
3152                           else
3153                             no_cache=1
3154                           fi
3155
3156                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
3157
3158 fi;
3159
3160           eval "$ac_cv_use_precomp"
3161           if test "$no_cache" != 1; then
3162             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3163           fi
3164
3165           if test "$wxUSE_PRECOMP" = yes; then
3166             echo "$as_me:$LINENO: result: yes" >&5
3167 echo "${ECHO_T}yes" >&6
3168           else
3169             echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3171           fi
3172
3173
3174 if test "$wxUSE_DEBUG" = "yes"; then
3175   DEFAULT_wxUSE_DEBUG_FLAG=yes
3176   DEFAULT_wxUSE_DEBUG_INFO=yes
3177 elif test "$wxUSE_DEBUG" = "no"; then
3178   DEFAULT_wxUSE_DEBUG_FLAG=no
3179   DEFAULT_wxUSE_DEBUG_INFO=no
3180 fi
3181
3182
3183           enablestring=
3184           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3185 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3186           no_cache=0
3187           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3188 if test "${enable_debug_flag+set}" = set; then
3189   enableval="$enable_debug_flag"
3190
3191                           if test "$enableval" = yes; then
3192                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3193                           else
3194                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3195                           fi
3196
3197 else
3198
3199                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3200                           if test "x$LINE" != x ; then
3201                             eval "DEFAULT_$LINE"
3202                           else
3203                             no_cache=1
3204                           fi
3205
3206                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3207
3208 fi;
3209
3210           eval "$ac_cv_use_debug_flag"
3211           if test "$no_cache" != 1; then
3212             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3213           fi
3214
3215           if test "$wxUSE_DEBUG_FLAG" = yes; then
3216             echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6
3218           else
3219             echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221           fi
3222
3223
3224           enablestring=
3225           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3226 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3227           no_cache=0
3228           # Check whether --enable-debug_info or --disable-debug_info was given.
3229 if test "${enable_debug_info+set}" = set; then
3230   enableval="$enable_debug_info"
3231
3232                           if test "$enableval" = yes; then
3233                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3234                           else
3235                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3236                           fi
3237
3238 else
3239
3240                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3241                           if test "x$LINE" != x ; then
3242                             eval "DEFAULT_$LINE"
3243                           else
3244                             no_cache=1
3245                           fi
3246
3247                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3248
3249 fi;
3250
3251           eval "$ac_cv_use_debug_info"
3252           if test "$no_cache" != 1; then
3253             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3254           fi
3255
3256           if test "$wxUSE_DEBUG_INFO" = yes; then
3257             echo "$as_me:$LINENO: result: yes" >&5
3258 echo "${ECHO_T}yes" >&6
3259           else
3260             echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262           fi
3263
3264
3265           enablestring=
3266           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3267 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3268           no_cache=0
3269           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3270 if test "${enable_debug_gdb+set}" = set; then
3271   enableval="$enable_debug_gdb"
3272
3273                           if test "$enableval" = yes; then
3274                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3275                           else
3276                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3277                           fi
3278
3279 else
3280
3281                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3282                           if test "x$LINE" != x ; then
3283                             eval "DEFAULT_$LINE"
3284                           else
3285                             no_cache=1
3286                           fi
3287
3288                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3289
3290 fi;
3291
3292           eval "$ac_cv_use_debug_gdb"
3293           if test "$no_cache" != 1; then
3294             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3295           fi
3296
3297           if test "$wxUSE_DEBUG_GDB" = yes; then
3298             echo "$as_me:$LINENO: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6
3300           else
3301             echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303           fi
3304
3305
3306           enablestring=
3307           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3308 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3309           no_cache=0
3310           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3311 if test "${enable_debug_cntxt+set}" = set; then
3312   enableval="$enable_debug_cntxt"
3313
3314                           if test "$enableval" = yes; then
3315                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3316                           else
3317                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3318                           fi
3319
3320 else
3321
3322                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3323                           if test "x$LINE" != x ; then
3324                             eval "DEFAULT_$LINE"
3325                           else
3326                             no_cache=1
3327                           fi
3328
3329                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3330
3331 fi;
3332
3333           eval "$ac_cv_use_debug_cntxt"
3334           if test "$no_cache" != 1; then
3335             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3336           fi
3337
3338           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3339             echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6
3341           else
3342             echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344           fi
3345
3346
3347           enablestring=
3348           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3349 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3350           no_cache=0
3351           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3352 if test "${enable_mem_tracing+set}" = set; then
3353   enableval="$enable_mem_tracing"
3354
3355                           if test "$enableval" = yes; then
3356                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3357                           else
3358                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3359                           fi
3360
3361 else
3362
3363                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3364                           if test "x$LINE" != x ; then
3365                             eval "DEFAULT_$LINE"
3366                           else
3367                             no_cache=1
3368                           fi
3369
3370                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3371
3372 fi;
3373
3374           eval "$ac_cv_use_mem_tracing"
3375           if test "$no_cache" != 1; then
3376             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3377           fi
3378
3379           if test "$wxUSE_MEM_TRACING" = yes; then
3380             echo "$as_me:$LINENO: result: yes" >&5
3381 echo "${ECHO_T}yes" >&6
3382           else
3383             echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385           fi
3386
3387
3388           enablestring=
3389           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3390 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3391           no_cache=0
3392           # Check whether --enable-profile or --disable-profile was given.
3393 if test "${enable_profile+set}" = set; then
3394   enableval="$enable_profile"
3395
3396                           if test "$enableval" = yes; then
3397                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3398                           else
3399                             ac_cv_use_profile='wxUSE_PROFILE=no'
3400                           fi
3401
3402 else
3403
3404                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3405                           if test "x$LINE" != x ; then
3406                             eval "DEFAULT_$LINE"
3407                           else
3408                             no_cache=1
3409                           fi
3410
3411                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3412
3413 fi;
3414
3415           eval "$ac_cv_use_profile"
3416           if test "$no_cache" != 1; then
3417             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3418           fi
3419
3420           if test "$wxUSE_PROFILE" = yes; then
3421             echo "$as_me:$LINENO: result: yes" >&5
3422 echo "${ECHO_T}yes" >&6
3423           else
3424             echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426           fi
3427
3428
3429           enablestring=
3430           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3431 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3432           no_cache=0
3433           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3434 if test "${enable_no_rtti+set}" = set; then
3435   enableval="$enable_no_rtti"
3436
3437                           if test "$enableval" = yes; then
3438                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3439                           else
3440                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3441                           fi
3442
3443 else
3444
3445                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3446                           if test "x$LINE" != x ; then
3447                             eval "DEFAULT_$LINE"
3448                           else
3449                             no_cache=1
3450                           fi
3451
3452                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3453
3454 fi;
3455
3456           eval "$ac_cv_use_no_rtti"
3457           if test "$no_cache" != 1; then
3458             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3459           fi
3460
3461           if test "$wxUSE_NO_RTTI" = yes; then
3462             echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464           else
3465             echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467           fi
3468
3469
3470           enablestring=
3471           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3472 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3473           no_cache=0
3474           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3475 if test "${enable_no_exceptions+set}" = set; then
3476   enableval="$enable_no_exceptions"
3477
3478                           if test "$enableval" = yes; then
3479                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3480                           else
3481                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3482                           fi
3483
3484 else
3485
3486                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3487                           if test "x$LINE" != x ; then
3488                             eval "DEFAULT_$LINE"
3489                           else
3490                             no_cache=1
3491                           fi
3492
3493                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3494
3495 fi;
3496
3497           eval "$ac_cv_use_no_exceptions"
3498           if test "$no_cache" != 1; then
3499             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3500           fi
3501
3502           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3503             echo "$as_me:$LINENO: result: yes" >&5
3504 echo "${ECHO_T}yes" >&6
3505           else
3506             echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508           fi
3509
3510
3511           enablestring=
3512           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3513 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3514           no_cache=0
3515           # Check whether --enable-permissive or --disable-permissive was given.
3516 if test "${enable_permissive+set}" = set; then
3517   enableval="$enable_permissive"
3518
3519                           if test "$enableval" = yes; then
3520                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3521                           else
3522                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3523                           fi
3524
3525 else
3526
3527                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3528                           if test "x$LINE" != x ; then
3529                             eval "DEFAULT_$LINE"
3530                           else
3531                             no_cache=1
3532                           fi
3533
3534                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3535
3536 fi;
3537
3538           eval "$ac_cv_use_permissive"
3539           if test "$no_cache" != 1; then
3540             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3541           fi
3542
3543           if test "$wxUSE_PERMISSIVE" = yes; then
3544             echo "$as_me:$LINENO: result: yes" >&5
3545 echo "${ECHO_T}yes" >&6
3546           else
3547             echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549           fi
3550
3551
3552           enablestring=
3553           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3554 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3555           no_cache=0
3556           # Check whether --enable-no_deps or --disable-no_deps was given.
3557 if test "${enable_no_deps+set}" = set; then
3558   enableval="$enable_no_deps"
3559
3560                           if test "$enableval" = yes; then
3561                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3562                           else
3563                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3564                           fi
3565
3566 else
3567
3568                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3569                           if test "x$LINE" != x ; then
3570                             eval "DEFAULT_$LINE"
3571                           else
3572                             no_cache=1
3573                           fi
3574
3575                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3576
3577 fi;
3578
3579           eval "$ac_cv_use_no_deps"
3580           if test "$no_cache" != 1; then
3581             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3582           fi
3583
3584           if test "$wxUSE_NO_DEPS" = yes; then
3585             echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6
3587           else
3588             echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590           fi
3591
3592
3593
3594           enablestring=
3595           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3596 echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
3597           no_cache=0
3598           # Check whether --enable-compat20 or --disable-compat20 was given.
3599 if test "${enable_compat20+set}" = set; then
3600   enableval="$enable_compat20"
3601
3602                           if test "$enableval" = yes; then
3603                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3604                           else
3605                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3606                           fi
3607
3608 else
3609
3610                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3611                           if test "x$LINE" != x ; then
3612                             eval "DEFAULT_$LINE"
3613                           else
3614                             no_cache=1
3615                           fi
3616
3617                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3618
3619 fi;
3620
3621           eval "$ac_cv_use_compat20"
3622           if test "$no_cache" != 1; then
3623             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3624           fi
3625
3626           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3627             echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6
3629           else
3630             echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3632           fi
3633
3634
3635           enablestring=
3636           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3637 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3638           no_cache=0
3639           # Check whether --enable-compat22 or --disable-compat22 was given.
3640 if test "${enable_compat22+set}" = set; then
3641   enableval="$enable_compat22"
3642
3643                           if test "$enableval" = yes; then
3644                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3645                           else
3646                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3647                           fi
3648
3649 else
3650
3651                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3652                           if test "x$LINE" != x ; then
3653                             eval "DEFAULT_$LINE"
3654                           else
3655                             no_cache=1
3656                           fi
3657
3658                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3659
3660 fi;
3661
3662           eval "$ac_cv_use_compat22"
3663           if test "$no_cache" != 1; then
3664             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3665           fi
3666
3667           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3668             echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6
3670           else
3671             echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3673           fi
3674
3675
3676           enablestring=disable
3677           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3678 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3679           no_cache=0
3680           # Check whether --enable-compat24 or --disable-compat24 was given.
3681 if test "${enable_compat24+set}" = set; then
3682   enableval="$enable_compat24"
3683
3684                           if test "$enableval" = yes; then
3685                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3686                           else
3687                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3688                           fi
3689
3690 else
3691
3692                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3693                           if test "x$LINE" != x ; then
3694                             eval "DEFAULT_$LINE"
3695                           else
3696                             no_cache=1
3697                           fi
3698
3699                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3700
3701 fi;
3702
3703           eval "$ac_cv_use_compat24"
3704           if test "$no_cache" != 1; then
3705             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3706           fi
3707
3708           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3709             echo "$as_me:$LINENO: result: yes" >&5
3710 echo "${ECHO_T}yes" >&6
3711           else
3712             echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3714           fi
3715
3716
3717 # Check whether --enable-rpath or --disable-rpath was given.
3718 if test "${enable_rpath+set}" = set; then
3719   enableval="$enable_rpath"
3720   wxRPATH_DIR="$enableval"
3721 fi;
3722
3723 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3724    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3725 fi
3726
3727
3728
3729
3730           enablestring=
3731           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3732 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3733           no_cache=0
3734           # Check whether --enable-intl or --disable-intl was given.
3735 if test "${enable_intl+set}" = set; then
3736   enableval="$enable_intl"
3737
3738                           if test "$enableval" = yes; then
3739                             ac_cv_use_intl='wxUSE_INTL=yes'
3740                           else
3741                             ac_cv_use_intl='wxUSE_INTL=no'
3742                           fi
3743
3744 else
3745
3746                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3747                           if test "x$LINE" != x ; then
3748                             eval "DEFAULT_$LINE"
3749                           else
3750                             no_cache=1
3751                           fi
3752
3753                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3754
3755 fi;
3756
3757           eval "$ac_cv_use_intl"
3758           if test "$no_cache" != 1; then
3759             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3760           fi
3761
3762           if test "$wxUSE_INTL" = yes; then
3763             echo "$as_me:$LINENO: result: yes" >&5
3764 echo "${ECHO_T}yes" >&6
3765           else
3766             echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768           fi
3769
3770
3771           enablestring=
3772           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3773 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3774           no_cache=0
3775           # Check whether --enable-config or --disable-config was given.
3776 if test "${enable_config+set}" = set; then
3777   enableval="$enable_config"
3778
3779                           if test "$enableval" = yes; then
3780                             ac_cv_use_config='wxUSE_CONFIG=yes'
3781                           else
3782                             ac_cv_use_config='wxUSE_CONFIG=no'
3783                           fi
3784
3785 else
3786
3787                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3788                           if test "x$LINE" != x ; then
3789                             eval "DEFAULT_$LINE"
3790                           else
3791                             no_cache=1
3792                           fi
3793
3794                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3795
3796 fi;
3797
3798           eval "$ac_cv_use_config"
3799           if test "$no_cache" != 1; then
3800             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3801           fi
3802
3803           if test "$wxUSE_CONFIG" = yes; then
3804             echo "$as_me:$LINENO: result: yes" >&5
3805 echo "${ECHO_T}yes" >&6
3806           else
3807             echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3809           fi
3810
3811
3812
3813           enablestring=
3814           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3815 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
3816           no_cache=0
3817           # Check whether --enable-protocols or --disable-protocols was given.
3818 if test "${enable_protocols+set}" = set; then
3819   enableval="$enable_protocols"
3820
3821                           if test "$enableval" = yes; then
3822                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3823                           else
3824                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3825                           fi
3826
3827 else
3828
3829                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3830                           if test "x$LINE" != x ; then
3831                             eval "DEFAULT_$LINE"
3832                           else
3833                             no_cache=1
3834                           fi
3835
3836                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3837
3838 fi;
3839
3840           eval "$ac_cv_use_protocols"
3841           if test "$no_cache" != 1; then
3842             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3843           fi
3844
3845           if test "$wxUSE_PROTOCOL" = yes; then
3846             echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3848           else
3849             echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3851           fi
3852
3853
3854           enablestring=
3855           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3856 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
3857           no_cache=0
3858           # Check whether --enable-ftp or --disable-ftp was given.
3859 if test "${enable_ftp+set}" = set; then
3860   enableval="$enable_ftp"
3861
3862                           if test "$enableval" = yes; then
3863                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3864                           else
3865                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3866                           fi
3867
3868 else
3869
3870                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3871                           if test "x$LINE" != x ; then
3872                             eval "DEFAULT_$LINE"
3873                           else
3874                             no_cache=1
3875                           fi
3876
3877                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3878
3879 fi;
3880
3881           eval "$ac_cv_use_ftp"
3882           if test "$no_cache" != 1; then
3883             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3884           fi
3885
3886           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3887             echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6
3889           else
3890             echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3892           fi
3893
3894
3895           enablestring=
3896           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3897 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
3898           no_cache=0
3899           # Check whether --enable-http or --disable-http was given.
3900 if test "${enable_http+set}" = set; then
3901   enableval="$enable_http"
3902
3903                           if test "$enableval" = yes; then
3904                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3905                           else
3906                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3907                           fi
3908
3909 else
3910
3911                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3912                           if test "x$LINE" != x ; then
3913                             eval "DEFAULT_$LINE"
3914                           else
3915                             no_cache=1
3916                           fi
3917
3918                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3919
3920 fi;
3921
3922           eval "$ac_cv_use_http"
3923           if test "$no_cache" != 1; then
3924             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3925           fi
3926
3927           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3928             echo "$as_me:$LINENO: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6
3930           else
3931             echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933           fi
3934
3935
3936           enablestring=
3937           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3938 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
3939           no_cache=0
3940           # Check whether --enable-fileproto or --disable-fileproto was given.
3941 if test "${enable_fileproto+set}" = set; then
3942   enableval="$enable_fileproto"
3943
3944                           if test "$enableval" = yes; then
3945                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3946                           else
3947                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3948                           fi
3949
3950 else
3951
3952                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3953                           if test "x$LINE" != x ; then
3954                             eval "DEFAULT_$LINE"
3955                           else
3956                             no_cache=1
3957                           fi
3958
3959                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3960
3961 fi;
3962
3963           eval "$ac_cv_use_fileproto"
3964           if test "$no_cache" != 1; then
3965             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3966           fi
3967
3968           if test "$wxUSE_PROTOCOL_FILE" = yes; then
3969             echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971           else
3972             echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974           fi
3975
3976
3977           enablestring=
3978           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
3979 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
3980           no_cache=0
3981           # Check whether --enable-sockets or --disable-sockets was given.
3982 if test "${enable_sockets+set}" = set; then
3983   enableval="$enable_sockets"
3984
3985                           if test "$enableval" = yes; then
3986                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3987                           else
3988                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
3989                           fi
3990
3991 else
3992
3993                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3994                           if test "x$LINE" != x ; then
3995                             eval "DEFAULT_$LINE"
3996                           else
3997                             no_cache=1
3998                           fi
3999
4000                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4001
4002 fi;
4003
4004           eval "$ac_cv_use_sockets"
4005           if test "$no_cache" != 1; then
4006             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4007           fi
4008
4009           if test "$wxUSE_SOCKETS" = yes; then
4010             echo "$as_me:$LINENO: result: yes" >&5
4011 echo "${ECHO_T}yes" >&6
4012           else
4013             echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4015           fi
4016
4017
4018           enablestring=
4019           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4020 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4021           no_cache=0
4022           # Check whether --enable-ole or --disable-ole was given.
4023 if test "${enable_ole+set}" = set; then
4024   enableval="$enable_ole"
4025
4026                           if test "$enableval" = yes; then
4027                             ac_cv_use_ole='wxUSE_OLE=yes'
4028                           else
4029                             ac_cv_use_ole='wxUSE_OLE=no'
4030                           fi
4031
4032 else
4033
4034                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4035                           if test "x$LINE" != x ; then
4036                             eval "DEFAULT_$LINE"
4037                           else
4038                             no_cache=1
4039                           fi
4040
4041                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4042
4043 fi;
4044
4045           eval "$ac_cv_use_ole"
4046           if test "$no_cache" != 1; then
4047             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4048           fi
4049
4050           if test "$wxUSE_OLE" = yes; then
4051             echo "$as_me:$LINENO: result: yes" >&5
4052 echo "${ECHO_T}yes" >&6
4053           else
4054             echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056           fi
4057
4058
4059           enablestring=
4060           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4061 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4062           no_cache=0
4063           # Check whether --enable-dataobj or --disable-dataobj was given.
4064 if test "${enable_dataobj+set}" = set; then
4065   enableval="$enable_dataobj"
4066
4067                           if test "$enableval" = yes; then
4068                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4069                           else
4070                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4071                           fi
4072
4073 else
4074
4075                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4076                           if test "x$LINE" != x ; then
4077                             eval "DEFAULT_$LINE"
4078                           else
4079                             no_cache=1
4080                           fi
4081
4082                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4083
4084 fi;
4085
4086           eval "$ac_cv_use_dataobj"
4087           if test "$no_cache" != 1; then
4088             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4089           fi
4090
4091           if test "$wxUSE_DATAOBJ" = yes; then
4092             echo "$as_me:$LINENO: result: yes" >&5
4093 echo "${ECHO_T}yes" >&6
4094           else
4095             echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097           fi
4098
4099
4100
4101           enablestring=
4102           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4103 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4104           no_cache=0
4105           # Check whether --enable-ipc or --disable-ipc was given.
4106 if test "${enable_ipc+set}" = set; then
4107   enableval="$enable_ipc"
4108
4109                           if test "$enableval" = yes; then
4110                             ac_cv_use_ipc='wxUSE_IPC=yes'
4111                           else
4112                             ac_cv_use_ipc='wxUSE_IPC=no'
4113                           fi
4114
4115 else
4116
4117                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4118                           if test "x$LINE" != x ; then
4119                             eval "DEFAULT_$LINE"
4120                           else
4121                             no_cache=1
4122                           fi
4123
4124                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4125
4126 fi;
4127
4128           eval "$ac_cv_use_ipc"
4129           if test "$no_cache" != 1; then
4130             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4131           fi
4132
4133           if test "$wxUSE_IPC" = yes; then
4134             echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6
4136           else
4137             echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139           fi
4140
4141
4142
4143           enablestring=
4144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4145 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4146           no_cache=0
4147           # Check whether --enable-cmdline or --disable-cmdline was given.
4148 if test "${enable_cmdline+set}" = set; then
4149   enableval="$enable_cmdline"
4150
4151                           if test "$enableval" = yes; then
4152                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4153                           else
4154                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4155                           fi
4156
4157 else
4158
4159                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4160                           if test "x$LINE" != x ; then
4161                             eval "DEFAULT_$LINE"
4162                           else
4163                             no_cache=1
4164                           fi
4165
4166                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4167
4168 fi;
4169
4170           eval "$ac_cv_use_cmdline"
4171           if test "$no_cache" != 1; then
4172             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4173           fi
4174
4175           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4176             echo "$as_me:$LINENO: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4178           else
4179             echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181           fi
4182
4183
4184           enablestring=
4185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4186 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4187           no_cache=0
4188           # Check whether --enable-datetime or --disable-datetime was given.
4189 if test "${enable_datetime+set}" = set; then
4190   enableval="$enable_datetime"
4191
4192                           if test "$enableval" = yes; then
4193                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4194                           else
4195                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4196                           fi
4197
4198 else
4199
4200                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4201                           if test "x$LINE" != x ; then
4202                             eval "DEFAULT_$LINE"
4203                           else
4204                             no_cache=1
4205                           fi
4206
4207                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4208
4209 fi;
4210
4211           eval "$ac_cv_use_datetime"
4212           if test "$no_cache" != 1; then
4213             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4214           fi
4215
4216           if test "$wxUSE_DATETIME" = yes; then
4217             echo "$as_me:$LINENO: result: yes" >&5
4218 echo "${ECHO_T}yes" >&6
4219           else
4220             echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222           fi
4223
4224
4225           enablestring=
4226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4227 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
4228           no_cache=0
4229           # Check whether --enable-stopwatch or --disable-stopwatch was given.
4230 if test "${enable_stopwatch+set}" = set; then
4231   enableval="$enable_stopwatch"
4232
4233                           if test "$enableval" = yes; then
4234                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4235                           else
4236                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4237                           fi
4238
4239 else
4240
4241                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4242                           if test "x$LINE" != x ; then
4243                             eval "DEFAULT_$LINE"
4244                           else
4245                             no_cache=1
4246                           fi
4247
4248                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
4249
4250 fi;
4251
4252           eval "$ac_cv_use_stopwatch"
4253           if test "$no_cache" != 1; then
4254             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4255           fi
4256
4257           if test "$wxUSE_STOPWATCH" = yes; then
4258             echo "$as_me:$LINENO: result: yes" >&5
4259 echo "${ECHO_T}yes" >&6
4260           else
4261             echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263           fi
4264
4265
4266           enablestring=
4267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4268 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4269           no_cache=0
4270           # Check whether --enable-dialupman or --disable-dialupman was given.
4271 if test "${enable_dialupman+set}" = set; then
4272   enableval="$enable_dialupman"
4273
4274                           if test "$enableval" = yes; then
4275                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4276                           else
4277                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4278                           fi
4279
4280 else
4281
4282                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4283                           if test "x$LINE" != x ; then
4284                             eval "DEFAULT_$LINE"
4285                           else
4286                             no_cache=1
4287                           fi
4288
4289                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4290
4291 fi;
4292
4293           eval "$ac_cv_use_dialupman"
4294           if test "$no_cache" != 1; then
4295             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4296           fi
4297
4298           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4299             echo "$as_me:$LINENO: result: yes" >&5
4300 echo "${ECHO_T}yes" >&6
4301           else
4302             echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304           fi
4305
4306
4307           enablestring=
4308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4309 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4310           no_cache=0
4311           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4312 if test "${enable_apple_ieee+set}" = set; then
4313   enableval="$enable_apple_ieee"
4314
4315                           if test "$enableval" = yes; then
4316                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4317                           else
4318                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4319                           fi
4320
4321 else
4322
4323                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4324                           if test "x$LINE" != x ; then
4325                             eval "DEFAULT_$LINE"
4326                           else
4327                             no_cache=1
4328                           fi
4329
4330                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4331
4332 fi;
4333
4334           eval "$ac_cv_use_apple_ieee"
4335           if test "$no_cache" != 1; then
4336             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4337           fi
4338
4339           if test "$wxUSE_APPLE_IEEE" = yes; then
4340             echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4342           else
4343             echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345           fi
4346
4347
4348           enablestring=
4349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4350 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
4351           no_cache=0
4352           # Check whether --enable-timer or --disable-timer was given.
4353 if test "${enable_timer+set}" = set; then
4354   enableval="$enable_timer"
4355
4356                           if test "$enableval" = yes; then
4357                             ac_cv_use_timer='wxUSE_TIMER=yes'
4358                           else
4359                             ac_cv_use_timer='wxUSE_TIMER=no'
4360                           fi
4361
4362 else
4363
4364                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
4365                           if test "x$LINE" != x ; then
4366                             eval "DEFAULT_$LINE"
4367                           else
4368                             no_cache=1
4369                           fi
4370
4371                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
4372
4373 fi;
4374
4375           eval "$ac_cv_use_timer"
4376           if test "$no_cache" != 1; then
4377             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
4378           fi
4379
4380           if test "$wxUSE_TIMER" = yes; then
4381             echo "$as_me:$LINENO: result: yes" >&5
4382 echo "${ECHO_T}yes" >&6
4383           else
4384             echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386           fi
4387
4388
4389           enablestring=
4390           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4391 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
4392           no_cache=0
4393           # Check whether --enable-wave or --disable-wave was given.
4394 if test "${enable_wave+set}" = set; then
4395   enableval="$enable_wave"
4396
4397                           if test "$enableval" = yes; then
4398                             ac_cv_use_wave='wxUSE_WAVE=yes'
4399                           else
4400                             ac_cv_use_wave='wxUSE_WAVE=no'
4401                           fi
4402
4403 else
4404
4405                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4406                           if test "x$LINE" != x ; then
4407                             eval "DEFAULT_$LINE"
4408                           else
4409                             no_cache=1
4410                           fi
4411
4412                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
4413
4414 fi;
4415
4416           eval "$ac_cv_use_wave"
4417           if test "$no_cache" != 1; then
4418             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4419           fi
4420
4421           if test "$wxUSE_WAVE" = yes; then
4422             echo "$as_me:$LINENO: result: yes" >&5
4423 echo "${ECHO_T}yes" >&6
4424           else
4425             echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427           fi
4428
4429
4430           enablestring=
4431           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4432 echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
4433           no_cache=0
4434           # Check whether --enable-fraction or --disable-fraction was given.
4435 if test "${enable_fraction+set}" = set; then
4436   enableval="$enable_fraction"
4437
4438                           if test "$enableval" = yes; then
4439                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
4440                           else
4441                             ac_cv_use_fraction='wxUSE_FRACTION=no'
4442                           fi
4443
4444 else
4445
4446                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4447                           if test "x$LINE" != x ; then
4448                             eval "DEFAULT_$LINE"
4449                           else
4450                             no_cache=1
4451                           fi
4452
4453                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
4454
4455 fi;
4456
4457           eval "$ac_cv_use_fraction"
4458           if test "$no_cache" != 1; then
4459             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4460           fi
4461
4462           if test "$wxUSE_FRACTION" = yes; then
4463             echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4465           else
4466             echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468           fi
4469
4470
4471           enablestring=
4472           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4473 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4474           no_cache=0
4475           # Check whether --enable-dynlib or --disable-dynlib was given.
4476 if test "${enable_dynlib+set}" = set; then
4477   enableval="$enable_dynlib"
4478
4479                           if test "$enableval" = yes; then
4480                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4481                           else
4482                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4483                           fi
4484
4485 else
4486
4487                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4488                           if test "x$LINE" != x ; then
4489                             eval "DEFAULT_$LINE"
4490                           else
4491                             no_cache=1
4492                           fi
4493
4494                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4495
4496 fi;
4497
4498           eval "$ac_cv_use_dynlib"
4499           if test "$no_cache" != 1; then
4500             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4501           fi
4502
4503           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4504             echo "$as_me:$LINENO: result: yes" >&5
4505 echo "${ECHO_T}yes" >&6
4506           else
4507             echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6
4509           fi
4510
4511
4512           enablestring=
4513           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4514 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4515           no_cache=0
4516           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4517 if test "${enable_dynamicloader+set}" = set; then
4518   enableval="$enable_dynamicloader"
4519
4520                           if test "$enableval" = yes; then
4521                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4522                           else
4523                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4524                           fi
4525
4526 else
4527
4528                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4529                           if test "x$LINE" != x ; then
4530                             eval "DEFAULT_$LINE"
4531                           else
4532                             no_cache=1
4533                           fi
4534
4535                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4536
4537 fi;
4538
4539           eval "$ac_cv_use_dynamicloader"
4540           if test "$no_cache" != 1; then
4541             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4542           fi
4543
4544           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4545             echo "$as_me:$LINENO: result: yes" >&5
4546 echo "${ECHO_T}yes" >&6
4547           else
4548             echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550           fi
4551
4552
4553           enablestring=
4554           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4555 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
4556           no_cache=0
4557           # Check whether --enable-longlong or --disable-longlong was given.
4558 if test "${enable_longlong+set}" = set; then
4559   enableval="$enable_longlong"
4560
4561                           if test "$enableval" = yes; then
4562                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4563                           else
4564                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
4565                           fi
4566
4567 else
4568
4569                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4570                           if test "x$LINE" != x ; then
4571                             eval "DEFAULT_$LINE"
4572                           else
4573                             no_cache=1
4574                           fi
4575
4576                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4577
4578 fi;
4579
4580           eval "$ac_cv_use_longlong"
4581           if test "$no_cache" != 1; then
4582             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4583           fi
4584
4585           if test "$wxUSE_LONGLONG" = yes; then
4586             echo "$as_me:$LINENO: result: yes" >&5
4587 echo "${ECHO_T}yes" >&6
4588           else
4589             echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4591           fi
4592
4593
4594           enablestring=
4595           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4596 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4597           no_cache=0
4598           # Check whether --enable-geometry or --disable-geometry was given.
4599 if test "${enable_geometry+set}" = set; then
4600   enableval="$enable_geometry"
4601
4602                           if test "$enableval" = yes; then
4603                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4604                           else
4605                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4606                           fi
4607
4608 else
4609
4610                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4611                           if test "x$LINE" != x ; then
4612                             eval "DEFAULT_$LINE"
4613                           else
4614                             no_cache=1
4615                           fi
4616
4617                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4618
4619 fi;
4620
4621           eval "$ac_cv_use_geometry"
4622           if test "$no_cache" != 1; then
4623             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4624           fi
4625
4626           if test "$wxUSE_GEOMETRY" = yes; then
4627             echo "$as_me:$LINENO: result: yes" >&5
4628 echo "${ECHO_T}yes" >&6
4629           else
4630             echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632           fi
4633
4634
4635           enablestring=
4636           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4637 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4638           no_cache=0
4639           # Check whether --enable-log or --disable-log was given.
4640 if test "${enable_log+set}" = set; then
4641   enableval="$enable_log"
4642
4643                           if test "$enableval" = yes; then
4644                             ac_cv_use_log='wxUSE_LOG=yes'
4645                           else
4646                             ac_cv_use_log='wxUSE_LOG=no'
4647                           fi
4648
4649 else
4650
4651                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4652                           if test "x$LINE" != x ; then
4653                             eval "DEFAULT_$LINE"
4654                           else
4655                             no_cache=1
4656                           fi
4657
4658                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4659
4660 fi;
4661
4662           eval "$ac_cv_use_log"
4663           if test "$no_cache" != 1; then
4664             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4665           fi
4666
4667           if test "$wxUSE_LOG" = yes; then
4668             echo "$as_me:$LINENO: result: yes" >&5
4669 echo "${ECHO_T}yes" >&6
4670           else
4671             echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4673           fi
4674
4675
4676           enablestring=
4677           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4678 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
4679           no_cache=0
4680           # Check whether --enable-streams or --disable-streams was given.
4681 if test "${enable_streams+set}" = set; then
4682   enableval="$enable_streams"
4683
4684                           if test "$enableval" = yes; then
4685                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4686                           else
4687                             ac_cv_use_streams='wxUSE_STREAMS=no'
4688                           fi
4689
4690 else
4691
4692                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4693                           if test "x$LINE" != x ; then
4694                             eval "DEFAULT_$LINE"
4695                           else
4696                             no_cache=1
4697                           fi
4698
4699                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4700
4701 fi;
4702
4703           eval "$ac_cv_use_streams"
4704           if test "$no_cache" != 1; then
4705             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4706           fi
4707
4708           if test "$wxUSE_STREAMS" = yes; then
4709             echo "$as_me:$LINENO: result: yes" >&5
4710 echo "${ECHO_T}yes" >&6
4711           else
4712             echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6
4714           fi
4715
4716
4717           enablestring=
4718           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4719 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4720           no_cache=0
4721           # Check whether --enable-file or --disable-file was given.
4722 if test "${enable_file+set}" = set; then
4723   enableval="$enable_file"
4724
4725                           if test "$enableval" = yes; then
4726                             ac_cv_use_file='wxUSE_FILE=yes'
4727                           else
4728                             ac_cv_use_file='wxUSE_FILE=no'
4729                           fi
4730
4731 else
4732
4733                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4734                           if test "x$LINE" != x ; then
4735                             eval "DEFAULT_$LINE"
4736                           else
4737                             no_cache=1
4738                           fi
4739
4740                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4741
4742 fi;
4743
4744           eval "$ac_cv_use_file"
4745           if test "$no_cache" != 1; then
4746             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4747           fi
4748
4749           if test "$wxUSE_FILE" = yes; then
4750             echo "$as_me:$LINENO: result: yes" >&5
4751 echo "${ECHO_T}yes" >&6
4752           else
4753             echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4755           fi
4756
4757
4758           enablestring=
4759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4760 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4761           no_cache=0
4762           # Check whether --enable-ffile or --disable-ffile was given.
4763 if test "${enable_ffile+set}" = set; then
4764   enableval="$enable_ffile"
4765
4766                           if test "$enableval" = yes; then
4767                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4768                           else
4769                             ac_cv_use_ffile='wxUSE_FFILE=no'
4770                           fi
4771
4772 else
4773
4774                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4775                           if test "x$LINE" != x ; then
4776                             eval "DEFAULT_$LINE"
4777                           else
4778                             no_cache=1
4779                           fi
4780
4781                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4782
4783 fi;
4784
4785           eval "$ac_cv_use_ffile"
4786           if test "$no_cache" != 1; then
4787             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4788           fi
4789
4790           if test "$wxUSE_FFILE" = yes; then
4791             echo "$as_me:$LINENO: result: yes" >&5
4792 echo "${ECHO_T}yes" >&6
4793           else
4794             echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4796           fi
4797
4798
4799           enablestring=
4800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4801 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
4802           no_cache=0
4803           # Check whether --enable-textbuf or --disable-textbuf was given.
4804 if test "${enable_textbuf+set}" = set; then
4805   enableval="$enable_textbuf"
4806
4807                           if test "$enableval" = yes; then
4808                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4809                           else
4810                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4811                           fi
4812
4813 else
4814
4815                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4816                           if test "x$LINE" != x ; then
4817                             eval "DEFAULT_$LINE"
4818                           else
4819                             no_cache=1
4820                           fi
4821
4822                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4823
4824 fi;
4825
4826           eval "$ac_cv_use_textbuf"
4827           if test "$no_cache" != 1; then
4828             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4829           fi
4830
4831           if test "$wxUSE_TEXTBUFFER" = yes; then
4832             echo "$as_me:$LINENO: result: yes" >&5
4833 echo "${ECHO_T}yes" >&6
4834           else
4835             echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837           fi
4838
4839
4840           enablestring=
4841           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4842 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
4843           no_cache=0
4844           # Check whether --enable-textfile or --disable-textfile was given.
4845 if test "${enable_textfile+set}" = set; then
4846   enableval="$enable_textfile"
4847
4848                           if test "$enableval" = yes; then
4849                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4850                           else
4851                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4852                           fi
4853
4854 else
4855
4856                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4857                           if test "x$LINE" != x ; then
4858                             eval "DEFAULT_$LINE"
4859                           else
4860                             no_cache=1
4861                           fi
4862
4863                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4864
4865 fi;
4866
4867           eval "$ac_cv_use_textfile"
4868           if test "$no_cache" != 1; then
4869             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4870           fi
4871
4872           if test "$wxUSE_TEXTFILE" = yes; then
4873             echo "$as_me:$LINENO: result: yes" >&5
4874 echo "${ECHO_T}yes" >&6
4875           else
4876             echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4878           fi
4879
4880
4881           enablestring=
4882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4883 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4884           no_cache=0
4885           # Check whether --enable-fontmap or --disable-fontmap was given.
4886 if test "${enable_fontmap+set}" = set; then
4887   enableval="$enable_fontmap"
4888
4889                           if test "$enableval" = yes; then
4890                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4891                           else
4892                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4893                           fi
4894
4895 else
4896
4897                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4898                           if test "x$LINE" != x ; then
4899                             eval "DEFAULT_$LINE"
4900                           else
4901                             no_cache=1
4902                           fi
4903
4904                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4905
4906 fi;
4907
4908           eval "$ac_cv_use_fontmap"
4909           if test "$no_cache" != 1; then
4910             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4911           fi
4912
4913           if test "$wxUSE_FONTMAP" = yes; then
4914             echo "$as_me:$LINENO: result: yes" >&5
4915 echo "${ECHO_T}yes" >&6
4916           else
4917             echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4919           fi
4920
4921
4922           enablestring=
4923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4924 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4925           no_cache=0
4926           # Check whether --enable-unicode or --disable-unicode was given.
4927 if test "${enable_unicode+set}" = set; then
4928   enableval="$enable_unicode"
4929
4930                           if test "$enableval" = yes; then
4931                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4932                           else
4933                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4934                           fi
4935
4936 else
4937
4938                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4939                           if test "x$LINE" != x ; then
4940                             eval "DEFAULT_$LINE"
4941                           else
4942                             no_cache=1
4943                           fi
4944
4945                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4946
4947 fi;
4948
4949           eval "$ac_cv_use_unicode"
4950           if test "$no_cache" != 1; then
4951             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4952           fi
4953
4954           if test "$wxUSE_UNICODE" = yes; then
4955             echo "$as_me:$LINENO: result: yes" >&5
4956 echo "${ECHO_T}yes" >&6
4957           else
4958             echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4960           fi
4961
4962
4963           enablestring=
4964           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4965 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
4966           no_cache=0
4967           # Check whether --enable-mslu or --disable-mslu was given.
4968 if test "${enable_mslu+set}" = set; then
4969   enableval="$enable_mslu"
4970
4971                           if test "$enableval" = yes; then
4972                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4973                           else
4974                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4975                           fi
4976
4977 else
4978
4979                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4980                           if test "x$LINE" != x ; then
4981                             eval "DEFAULT_$LINE"
4982                           else
4983                             no_cache=1
4984                           fi
4985
4986                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4987
4988 fi;
4989
4990           eval "$ac_cv_use_mslu"
4991           if test "$no_cache" != 1; then
4992             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4993           fi
4994
4995           if test "$wxUSE_UNICODE_MSLU" = yes; then
4996             echo "$as_me:$LINENO: result: yes" >&5
4997 echo "${ECHO_T}yes" >&6
4998           else
4999             echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6
5001           fi
5002
5003
5004           enablestring=
5005           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5006 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5007           no_cache=0
5008           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5009 if test "${enable_wxprintfv+set}" = set; then
5010   enableval="$enable_wxprintfv"
5011
5012                           if test "$enableval" = yes; then
5013                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5014                           else
5015                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5016                           fi
5017
5018 else
5019
5020                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5021                           if test "x$LINE" != x ; then
5022                             eval "DEFAULT_$LINE"
5023                           else
5024                             no_cache=1
5025                           fi
5026
5027                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5028
5029 fi;
5030
5031           eval "$ac_cv_use_wxprintfv"
5032           if test "$no_cache" != 1; then
5033             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5034           fi
5035
5036           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5037             echo "$as_me:$LINENO: result: yes" >&5
5038 echo "${ECHO_T}yes" >&6
5039           else
5040             echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5042           fi
5043
5044
5045           enablestring=
5046           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5047 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5048           no_cache=0
5049           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5050 if test "${enable_std_iostreams+set}" = set; then
5051   enableval="$enable_std_iostreams"
5052
5053                           if test "$enableval" = yes; then
5054                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5055                           else
5056                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5057                           fi
5058
5059 else
5060
5061                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5062                           if test "x$LINE" != x ; then
5063                             eval "DEFAULT_$LINE"
5064                           else
5065                             no_cache=1
5066                           fi
5067
5068                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5069
5070 fi;
5071
5072           eval "$ac_cv_use_std_iostreams"
5073           if test "$no_cache" != 1; then
5074             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5075           fi
5076
5077           if test "$wxUSE_STD_IOSTREAM" = yes; then
5078             echo "$as_me:$LINENO: result: yes" >&5
5079 echo "${ECHO_T}yes" >&6
5080           else
5081             echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5083           fi
5084
5085
5086           enablestring=
5087           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5088 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5089           no_cache=0
5090           # Check whether --enable-filesystem or --disable-filesystem was given.
5091 if test "${enable_filesystem+set}" = set; then
5092   enableval="$enable_filesystem"
5093
5094                           if test "$enableval" = yes; then
5095                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5096                           else
5097                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5098                           fi
5099
5100 else
5101
5102                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5103                           if test "x$LINE" != x ; then
5104                             eval "DEFAULT_$LINE"
5105                           else
5106                             no_cache=1
5107                           fi
5108
5109                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5110
5111 fi;
5112
5113           eval "$ac_cv_use_filesystem"
5114           if test "$no_cache" != 1; then
5115             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5116           fi
5117
5118           if test "$wxUSE_FILESYSTEM" = yes; then
5119             echo "$as_me:$LINENO: result: yes" >&5
5120 echo "${ECHO_T}yes" >&6
5121           else
5122             echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5124           fi
5125
5126
5127           enablestring=
5128           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5129 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5130           no_cache=0
5131           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5132 if test "${enable_fs_inet+set}" = set; then
5133   enableval="$enable_fs_inet"
5134
5135                           if test "$enableval" = yes; then
5136                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5137                           else
5138                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5139                           fi
5140
5141 else
5142
5143                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5144                           if test "x$LINE" != x ; then
5145                             eval "DEFAULT_$LINE"
5146                           else
5147                             no_cache=1
5148                           fi
5149
5150                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5151
5152 fi;
5153
5154           eval "$ac_cv_use_fs_inet"
5155           if test "$no_cache" != 1; then
5156             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5157           fi
5158
5159           if test "$wxUSE_FS_INET" = yes; then
5160             echo "$as_me:$LINENO: result: yes" >&5
5161 echo "${ECHO_T}yes" >&6
5162           else
5163             echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5165           fi
5166
5167
5168           enablestring=
5169           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5170 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5171           no_cache=0
5172           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5173 if test "${enable_fs_zip+set}" = set; then
5174   enableval="$enable_fs_zip"
5175
5176                           if test "$enableval" = yes; then
5177                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5178                           else
5179                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5180                           fi
5181
5182 else
5183
5184                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5185                           if test "x$LINE" != x ; then
5186                             eval "DEFAULT_$LINE"
5187                           else
5188                             no_cache=1
5189                           fi
5190
5191                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5192
5193 fi;
5194
5195           eval "$ac_cv_use_fs_zip"
5196           if test "$no_cache" != 1; then
5197             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5198           fi
5199
5200           if test "$wxUSE_FS_ZIP" = yes; then
5201             echo "$as_me:$LINENO: result: yes" >&5
5202 echo "${ECHO_T}yes" >&6
5203           else
5204             echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5206           fi
5207
5208
5209           enablestring=
5210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5211 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5212           no_cache=0
5213           # Check whether --enable-zipstream or --disable-zipstream was given.
5214 if test "${enable_zipstream+set}" = set; then
5215   enableval="$enable_zipstream"
5216
5217                           if test "$enableval" = yes; then
5218                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5219                           else
5220                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5221                           fi
5222
5223 else
5224
5225                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5226                           if test "x$LINE" != x ; then
5227                             eval "DEFAULT_$LINE"
5228                           else
5229                             no_cache=1
5230                           fi
5231
5232                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5233
5234 fi;
5235
5236           eval "$ac_cv_use_zipstream"
5237           if test "$no_cache" != 1; then
5238             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5239           fi
5240
5241           if test "$wxUSE_ZIPSTREAM" = yes; then
5242             echo "$as_me:$LINENO: result: yes" >&5
5243 echo "${ECHO_T}yes" >&6
5244           else
5245             echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247           fi
5248
5249
5250
5251           enablestring=
5252           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5253 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5254           no_cache=0
5255           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5256 if test "${enable_catch_segvs+set}" = set; then
5257   enableval="$enable_catch_segvs"
5258
5259                           if test "$enableval" = yes; then
5260                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5261                           else
5262                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5263                           fi
5264
5265 else
5266
5267                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5268                           if test "x$LINE" != x ; then
5269                             eval "DEFAULT_$LINE"
5270                           else
5271                             no_cache=1
5272                           fi
5273
5274                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5275
5276 fi;
5277
5278           eval "$ac_cv_use_catch_segvs"
5279           if test "$no_cache" != 1; then
5280             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5281           fi
5282
5283           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5284             echo "$as_me:$LINENO: result: yes" >&5
5285 echo "${ECHO_T}yes" >&6
5286           else
5287             echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5289           fi
5290
5291
5292           enablestring=
5293           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5294 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5295           no_cache=0
5296           # Check whether --enable-snglinst or --disable-snglinst was given.
5297 if test "${enable_snglinst+set}" = set; then
5298   enableval="$enable_snglinst"
5299
5300                           if test "$enableval" = yes; then
5301                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5302                           else
5303                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5304                           fi
5305
5306 else
5307
5308                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5309                           if test "x$LINE" != x ; then
5310                             eval "DEFAULT_$LINE"
5311                           else
5312                             no_cache=1
5313                           fi
5314
5315                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5316
5317 fi;
5318
5319           eval "$ac_cv_use_snglinst"
5320           if test "$no_cache" != 1; then
5321             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5322           fi
5323
5324           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5325             echo "$as_me:$LINENO: result: yes" >&5
5326 echo "${ECHO_T}yes" >&6
5327           else
5328             echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330           fi
5331
5332
5333
5334           enablestring=
5335           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5336 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5337           no_cache=0
5338           # Check whether --enable-mimetype or --disable-mimetype was given.
5339 if test "${enable_mimetype+set}" = set; then
5340   enableval="$enable_mimetype"
5341
5342                           if test "$enableval" = yes; then
5343                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5344                           else
5345                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5346                           fi
5347
5348 else
5349
5350                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5351                           if test "x$LINE" != x ; then
5352                             eval "DEFAULT_$LINE"
5353                           else
5354                             no_cache=1
5355                           fi
5356
5357                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5358
5359 fi;
5360
5361           eval "$ac_cv_use_mimetype"
5362           if test "$no_cache" != 1; then
5363             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5364           fi
5365
5366           if test "$wxUSE_MIMETYPE" = yes; then
5367             echo "$as_me:$LINENO: result: yes" >&5
5368 echo "${ECHO_T}yes" >&6
5369           else
5370             echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5372           fi
5373
5374
5375           enablestring=
5376           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5377 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5378           no_cache=0
5379           # Check whether --enable-system_options or --disable-system_options was given.
5380 if test "${enable_system_options+set}" = set; then
5381   enableval="$enable_system_options"
5382
5383                           if test "$enableval" = yes; then
5384                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5385                           else
5386                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5387                           fi
5388
5389 else
5390
5391                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5392                           if test "x$LINE" != x ; then
5393                             eval "DEFAULT_$LINE"
5394                           else
5395                             no_cache=1
5396                           fi
5397
5398                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5399
5400 fi;
5401
5402           eval "$ac_cv_use_system_options"
5403           if test "$no_cache" != 1; then
5404             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5405           fi
5406
5407           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5408             echo "$as_me:$LINENO: result: yes" >&5
5409 echo "${ECHO_T}yes" >&6
5410           else
5411             echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5413           fi
5414
5415
5416
5417           enablestring=
5418           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5419 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5420           no_cache=0
5421           # Check whether --enable-url or --disable-url was given.
5422 if test "${enable_url+set}" = set; then
5423   enableval="$enable_url"
5424
5425                           if test "$enableval" = yes; then
5426                             ac_cv_use_url='wxUSE_URL=yes'
5427                           else
5428                             ac_cv_use_url='wxUSE_URL=no'
5429                           fi
5430
5431 else
5432
5433                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5434                           if test "x$LINE" != x ; then
5435                             eval "DEFAULT_$LINE"
5436                           else
5437                             no_cache=1
5438                           fi
5439
5440                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5441
5442 fi;
5443
5444           eval "$ac_cv_use_url"
5445           if test "$no_cache" != 1; then
5446             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5447           fi
5448
5449           if test "$wxUSE_URL" = yes; then
5450             echo "$as_me:$LINENO: result: yes" >&5
5451 echo "${ECHO_T}yes" >&6
5452           else
5453             echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455           fi
5456
5457
5458           enablestring=
5459           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5460 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5461           no_cache=0
5462           # Check whether --enable-protocol or --disable-protocol was given.
5463 if test "${enable_protocol+set}" = set; then
5464   enableval="$enable_protocol"
5465
5466                           if test "$enableval" = yes; then
5467                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5468                           else
5469                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5470                           fi
5471
5472 else
5473
5474                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5475                           if test "x$LINE" != x ; then
5476                             eval "DEFAULT_$LINE"
5477                           else
5478                             no_cache=1
5479                           fi
5480
5481                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5482
5483 fi;
5484
5485           eval "$ac_cv_use_protocol"
5486           if test "$no_cache" != 1; then
5487             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5488           fi
5489
5490           if test "$wxUSE_PROTOCOL" = yes; then
5491             echo "$as_me:$LINENO: result: yes" >&5
5492 echo "${ECHO_T}yes" >&6
5493           else
5494             echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496           fi
5497
5498
5499           enablestring=
5500           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5501 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5502           no_cache=0
5503           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5504 if test "${enable_protocol_http+set}" = set; then
5505   enableval="$enable_protocol_http"
5506
5507                           if test "$enableval" = yes; then
5508                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5509                           else
5510                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5511                           fi
5512
5513 else
5514
5515                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5516                           if test "x$LINE" != x ; then
5517                             eval "DEFAULT_$LINE"
5518                           else
5519                             no_cache=1
5520                           fi
5521
5522                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5523
5524 fi;
5525
5526           eval "$ac_cv_use_protocol_http"
5527           if test "$no_cache" != 1; then
5528             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5529           fi
5530
5531           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5532             echo "$as_me:$LINENO: result: yes" >&5
5533 echo "${ECHO_T}yes" >&6
5534           else
5535             echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537           fi
5538
5539
5540           enablestring=
5541           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5542 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5543           no_cache=0
5544           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5545 if test "${enable_protocol_ftp+set}" = set; then
5546   enableval="$enable_protocol_ftp"
5547
5548                           if test "$enableval" = yes; then
5549                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5550                           else
5551                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5552                           fi
5553
5554 else
5555
5556                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5557                           if test "x$LINE" != x ; then
5558                             eval "DEFAULT_$LINE"
5559                           else
5560                             no_cache=1
5561                           fi
5562
5563                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5564
5565 fi;
5566
5567           eval "$ac_cv_use_protocol_ftp"
5568           if test "$no_cache" != 1; then
5569             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5570           fi
5571
5572           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5573             echo "$as_me:$LINENO: result: yes" >&5
5574 echo "${ECHO_T}yes" >&6
5575           else
5576             echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578           fi
5579
5580
5581           enablestring=
5582           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5583 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5584           no_cache=0
5585           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5586 if test "${enable_protocol_file+set}" = set; then
5587   enableval="$enable_protocol_file"
5588
5589                           if test "$enableval" = yes; then
5590                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5591                           else
5592                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5593                           fi
5594
5595 else
5596
5597                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5598                           if test "x$LINE" != x ; then
5599                             eval "DEFAULT_$LINE"
5600                           else
5601                             no_cache=1
5602                           fi
5603
5604                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5605
5606 fi;
5607
5608           eval "$ac_cv_use_protocol_file"
5609           if test "$no_cache" != 1; then
5610             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5611           fi
5612
5613           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5614             echo "$as_me:$LINENO: result: yes" >&5
5615 echo "${ECHO_T}yes" >&6
5616           else
5617             echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6
5619           fi
5620
5621
5622
5623
5624
5625           enablestring=
5626           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5627 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5628           no_cache=0
5629           # Check whether --enable-threads or --disable-threads was given.
5630 if test "${enable_threads+set}" = set; then
5631   enableval="$enable_threads"
5632
5633                           if test "$enableval" = yes; then
5634                             ac_cv_use_threads='wxUSE_THREADS=yes'
5635                           else
5636                             ac_cv_use_threads='wxUSE_THREADS=no'
5637                           fi
5638
5639 else
5640
5641                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5642                           if test "x$LINE" != x ; then
5643                             eval "DEFAULT_$LINE"
5644                           else
5645                             no_cache=1
5646                           fi
5647
5648                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5649
5650 fi;
5651
5652           eval "$ac_cv_use_threads"
5653           if test "$no_cache" != 1; then
5654             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5655           fi
5656
5657           if test "$wxUSE_THREADS" = yes; then
5658             echo "$as_me:$LINENO: result: yes" >&5
5659 echo "${ECHO_T}yes" >&6
5660           else
5661             echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6
5663           fi
5664
5665
5666 if test "$wxUSE_GUI" = "yes"; then
5667
5668
5669
5670           enablestring=
5671           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5672 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5673           no_cache=0
5674           # Check whether --enable-docview or --disable-docview was given.
5675 if test "${enable_docview+set}" = set; then
5676   enableval="$enable_docview"
5677
5678                           if test "$enableval" = yes; then
5679                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5680                           else
5681                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5682                           fi
5683
5684 else
5685
5686                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5687                           if test "x$LINE" != x ; then
5688                             eval "DEFAULT_$LINE"
5689                           else
5690                             no_cache=1
5691                           fi
5692
5693                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5694
5695 fi;
5696
5697           eval "$ac_cv_use_docview"
5698           if test "$no_cache" != 1; then
5699             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5700           fi
5701
5702           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5703             echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6
5705           else
5706             echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6
5708           fi
5709
5710
5711           enablestring=
5712           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5713 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5714           no_cache=0
5715           # Check whether --enable-help or --disable-help was given.
5716 if test "${enable_help+set}" = set; then
5717   enableval="$enable_help"
5718
5719                           if test "$enableval" = yes; then
5720                             ac_cv_use_help='wxUSE_HELP=yes'
5721                           else
5722                             ac_cv_use_help='wxUSE_HELP=no'
5723                           fi
5724
5725 else
5726
5727                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5728                           if test "x$LINE" != x ; then
5729                             eval "DEFAULT_$LINE"
5730                           else
5731                             no_cache=1
5732                           fi
5733
5734                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5735
5736 fi;
5737
5738           eval "$ac_cv_use_help"
5739           if test "$no_cache" != 1; then
5740             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5741           fi
5742
5743           if test "$wxUSE_HELP" = yes; then
5744             echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6
5746           else
5747             echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5749           fi
5750
5751
5752           enablestring=
5753           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5754 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5755           no_cache=0
5756           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5757 if test "${enable_mshtmlhelp+set}" = set; then
5758   enableval="$enable_mshtmlhelp"
5759
5760                           if test "$enableval" = yes; then
5761                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5762                           else
5763                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5764                           fi
5765
5766 else
5767
5768                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5769                           if test "x$LINE" != x ; then
5770                             eval "DEFAULT_$LINE"
5771                           else
5772                             no_cache=1
5773                           fi
5774
5775                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5776
5777 fi;
5778
5779           eval "$ac_cv_use_mshtmlhelp"
5780           if test "$no_cache" != 1; then
5781             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5782           fi
5783
5784           if test "$wxUSE_MS_HTML_HELP" = yes; then
5785             echo "$as_me:$LINENO: result: yes" >&5
5786 echo "${ECHO_T}yes" >&6
5787           else
5788             echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6
5790           fi
5791
5792
5793           enablestring=
5794           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5795 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
5796           no_cache=0
5797           # Check whether --enable-html or --disable-html was given.
5798 if test "${enable_html+set}" = set; then
5799   enableval="$enable_html"
5800
5801                           if test "$enableval" = yes; then
5802                             ac_cv_use_html='wxUSE_HTML=yes'
5803                           else
5804                             ac_cv_use_html='wxUSE_HTML=no'
5805                           fi
5806
5807 else
5808
5809                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5810                           if test "x$LINE" != x ; then
5811                             eval "DEFAULT_$LINE"
5812                           else
5813                             no_cache=1
5814                           fi
5815
5816                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5817
5818 fi;
5819
5820           eval "$ac_cv_use_html"
5821           if test "$no_cache" != 1; then
5822             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5823           fi
5824
5825           if test "$wxUSE_HTML" = yes; then
5826             echo "$as_me:$LINENO: result: yes" >&5
5827 echo "${ECHO_T}yes" >&6
5828           else
5829             echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6
5831           fi
5832
5833
5834           enablestring=
5835           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5836 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
5837           no_cache=0
5838           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5839 if test "${enable_htmlhelp+set}" = set; then
5840   enableval="$enable_htmlhelp"
5841
5842                           if test "$enableval" = yes; then
5843                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5844                           else
5845                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5846                           fi
5847
5848 else
5849
5850                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5851                           if test "x$LINE" != x ; then
5852                             eval "DEFAULT_$LINE"
5853                           else
5854                             no_cache=1
5855                           fi
5856
5857                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5858
5859 fi;
5860
5861           eval "$ac_cv_use_htmlhelp"
5862           if test "$no_cache" != 1; then
5863             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5864           fi
5865
5866           if test "$wxUSE_WXHTML_HELP" = yes; then
5867             echo "$as_me:$LINENO: result: yes" >&5
5868 echo "${ECHO_T}yes" >&6
5869           else
5870             echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6
5872           fi
5873
5874
5875           enablestring=
5876           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5877 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
5878           no_cache=0
5879           # Check whether --enable-constraints or --disable-constraints was given.
5880 if test "${enable_constraints+set}" = set; then
5881   enableval="$enable_constraints"
5882
5883                           if test "$enableval" = yes; then
5884                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5885                           else
5886                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5887                           fi
5888
5889 else
5890
5891                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5892                           if test "x$LINE" != x ; then
5893                             eval "DEFAULT_$LINE"
5894                           else
5895                             no_cache=1
5896                           fi
5897
5898                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5899
5900 fi;
5901
5902           eval "$ac_cv_use_constraints"
5903           if test "$no_cache" != 1; then
5904             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5905           fi
5906
5907           if test "$wxUSE_CONSTRAINTS" = yes; then
5908             echo "$as_me:$LINENO: result: yes" >&5
5909 echo "${ECHO_T}yes" >&6
5910           else
5911             echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6
5913           fi
5914
5915
5916           enablestring=
5917           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5918 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
5919           no_cache=0
5920           # Check whether --enable-printarch or --disable-printarch was given.
5921 if test "${enable_printarch+set}" = set; then
5922   enableval="$enable_printarch"
5923
5924                           if test "$enableval" = yes; then
5925                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5926                           else
5927                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5928                           fi
5929
5930 else
5931
5932                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5933                           if test "x$LINE" != x ; then
5934                             eval "DEFAULT_$LINE"
5935                           else
5936                             no_cache=1
5937                           fi
5938
5939                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5940
5941 fi;
5942
5943           eval "$ac_cv_use_printarch"
5944           if test "$no_cache" != 1; then
5945             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5946           fi
5947
5948           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5949             echo "$as_me:$LINENO: result: yes" >&5
5950 echo "${ECHO_T}yes" >&6
5951           else
5952             echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5954           fi
5955
5956
5957           enablestring=
5958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
5959 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
5960           no_cache=0
5961           # Check whether --enable-mdi or --disable-mdi was given.
5962 if test "${enable_mdi+set}" = set; then
5963   enableval="$enable_mdi"
5964
5965                           if test "$enableval" = yes; then
5966                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5967                           else
5968                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5969                           fi
5970
5971 else
5972
5973                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5974                           if test "x$LINE" != x ; then
5975                             eval "DEFAULT_$LINE"
5976                           else
5977                             no_cache=1
5978                           fi
5979
5980                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5981
5982 fi;
5983
5984           eval "$ac_cv_use_mdi"
5985           if test "$no_cache" != 1; then
5986             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5987           fi
5988
5989           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5990             echo "$as_me:$LINENO: result: yes" >&5
5991 echo "${ECHO_T}yes" >&6
5992           else
5993             echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5995           fi
5996
5997
5998           enablestring=
5999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6000 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6001           no_cache=0
6002           # Check whether --enable-loggui or --disable-loggui was given.
6003 if test "${enable_loggui+set}" = set; then
6004   enableval="$enable_loggui"
6005
6006                           if test "$enableval" = yes; then
6007                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6008                           else
6009                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6010                           fi
6011
6012 else
6013
6014                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6015                           if test "x$LINE" != x ; then
6016                             eval "DEFAULT_$LINE"
6017                           else
6018                             no_cache=1
6019                           fi
6020
6021                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6022
6023 fi;
6024
6025           eval "$ac_cv_use_loggui"
6026           if test "$no_cache" != 1; then
6027             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6028           fi
6029
6030           if test "$wxUSE_LOGGUI" = yes; then
6031             echo "$as_me:$LINENO: result: yes" >&5
6032 echo "${ECHO_T}yes" >&6
6033           else
6034             echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6
6036           fi
6037
6038
6039           enablestring=
6040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6041 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6042           no_cache=0
6043           # Check whether --enable-logwin or --disable-logwin was given.
6044 if test "${enable_logwin+set}" = set; then
6045   enableval="$enable_logwin"
6046
6047                           if test "$enableval" = yes; then
6048                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6049                           else
6050                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6051                           fi
6052
6053 else
6054
6055                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6056                           if test "x$LINE" != x ; then
6057                             eval "DEFAULT_$LINE"
6058                           else
6059                             no_cache=1
6060                           fi
6061
6062                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6063
6064 fi;
6065
6066           eval "$ac_cv_use_logwin"
6067           if test "$no_cache" != 1; then
6068             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6069           fi
6070
6071           if test "$wxUSE_LOGWINDOW" = yes; then
6072             echo "$as_me:$LINENO: result: yes" >&5
6073 echo "${ECHO_T}yes" >&6
6074           else
6075             echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6
6077           fi
6078
6079
6080           enablestring=
6081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6082 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6083           no_cache=0
6084           # Check whether --enable-logdialog or --disable-logdialog was given.
6085 if test "${enable_logdialog+set}" = set; then
6086   enableval="$enable_logdialog"
6087
6088                           if test "$enableval" = yes; then
6089                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6090                           else
6091                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6092                           fi
6093
6094 else
6095
6096                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6097                           if test "x$LINE" != x ; then
6098                             eval "DEFAULT_$LINE"
6099                           else
6100                             no_cache=1
6101                           fi
6102
6103                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6104
6105 fi;
6106
6107           eval "$ac_cv_use_logdialog"
6108           if test "$no_cache" != 1; then
6109             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6110           fi
6111
6112           if test "$wxUSE_LOGDIALOG" = yes; then
6113             echo "$as_me:$LINENO: result: yes" >&5
6114 echo "${ECHO_T}yes" >&6
6115           else
6116             echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6118           fi
6119
6120
6121
6122           enablestring=
6123           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6124 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6125           no_cache=0
6126           # Check whether --enable-postscript or --disable-postscript was given.
6127 if test "${enable_postscript+set}" = set; then
6128   enableval="$enable_postscript"
6129
6130                           if test "$enableval" = yes; then
6131                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6132                           else
6133                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6134                           fi
6135
6136 else
6137
6138                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6139                           if test "x$LINE" != x ; then
6140                             eval "DEFAULT_$LINE"
6141                           else
6142                             no_cache=1
6143                           fi
6144
6145                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6146
6147 fi;
6148
6149           eval "$ac_cv_use_postscript"
6150           if test "$no_cache" != 1; then
6151             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6152           fi
6153
6154           if test "$wxUSE_POSTSCRIPT" = yes; then
6155             echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6
6157           else
6158             echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6
6160           fi
6161
6162
6163
6164
6165
6166           enablestring=
6167           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6168 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6169           no_cache=0
6170           # Check whether --enable-prologio or --disable-prologio was given.
6171 if test "${enable_prologio+set}" = set; then
6172   enableval="$enable_prologio"
6173
6174                           if test "$enableval" = yes; then
6175                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6176                           else
6177                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6178                           fi
6179
6180 else
6181
6182                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6183                           if test "x$LINE" != x ; then
6184                             eval "DEFAULT_$LINE"
6185                           else
6186                             no_cache=1
6187                           fi
6188
6189                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6190
6191 fi;
6192
6193           eval "$ac_cv_use_prologio"
6194           if test "$no_cache" != 1; then
6195             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6196           fi
6197
6198           if test "$wxUSE_PROLOGIO" = yes; then
6199             echo "$as_me:$LINENO: result: yes" >&5
6200 echo "${ECHO_T}yes" >&6
6201           else
6202             echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6
6204           fi
6205
6206
6207           enablestring=
6208           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6209 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6210           no_cache=0
6211           # Check whether --enable-resources or --disable-resources was given.
6212 if test "${enable_resources+set}" = set; then
6213   enableval="$enable_resources"
6214
6215                           if test "$enableval" = yes; then
6216                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6217                           else
6218                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6219                           fi
6220
6221 else
6222
6223                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6224                           if test "x$LINE" != x ; then
6225                             eval "DEFAULT_$LINE"
6226                           else
6227                             no_cache=1
6228                           fi
6229
6230                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6231
6232 fi;
6233
6234           eval "$ac_cv_use_resources"
6235           if test "$no_cache" != 1; then
6236             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6237           fi
6238
6239           if test "$wxUSE_RESOURCES" = yes; then
6240             echo "$as_me:$LINENO: result: yes" >&5
6241 echo "${ECHO_T}yes" >&6
6242           else
6243             echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6
6245           fi
6246
6247
6248
6249
6250           enablestring=
6251           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6252 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6253           no_cache=0
6254           # Check whether --enable-clipboard or --disable-clipboard was given.
6255 if test "${enable_clipboard+set}" = set; then
6256   enableval="$enable_clipboard"
6257
6258                           if test "$enableval" = yes; then
6259                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6260                           else
6261                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6262                           fi
6263
6264 else
6265
6266                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6267                           if test "x$LINE" != x ; then
6268                             eval "DEFAULT_$LINE"
6269                           else
6270                             no_cache=1
6271                           fi
6272
6273                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6274
6275 fi;
6276
6277           eval "$ac_cv_use_clipboard"
6278           if test "$no_cache" != 1; then
6279             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6280           fi
6281
6282           if test "$wxUSE_CLIPBOARD" = yes; then
6283             echo "$as_me:$LINENO: result: yes" >&5
6284 echo "${ECHO_T}yes" >&6
6285           else
6286             echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6288           fi
6289
6290
6291           enablestring=
6292           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6293 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6294           no_cache=0
6295           # Check whether --enable-dnd or --disable-dnd was given.
6296 if test "${enable_dnd+set}" = set; then
6297   enableval="$enable_dnd"
6298
6299                           if test "$enableval" = yes; then
6300                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6301                           else
6302                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6303                           fi
6304
6305 else
6306
6307                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6308                           if test "x$LINE" != x ; then
6309                             eval "DEFAULT_$LINE"
6310                           else
6311                             no_cache=1
6312                           fi
6313
6314                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6315
6316 fi;
6317
6318           eval "$ac_cv_use_dnd"
6319           if test "$no_cache" != 1; then
6320             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6321           fi
6322
6323           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6324             echo "$as_me:$LINENO: result: yes" >&5
6325 echo "${ECHO_T}yes" >&6
6326           else
6327             echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6329           fi
6330
6331
6332           enablestring=
6333           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6334 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6335           no_cache=0
6336           # Check whether --enable-metafile or --disable-metafile was given.
6337 if test "${enable_metafile+set}" = set; then
6338   enableval="$enable_metafile"
6339
6340                           if test "$enableval" = yes; then
6341                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6342                           else
6343                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6344                           fi
6345
6346 else
6347
6348                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6349                           if test "x$LINE" != x ; then
6350                             eval "DEFAULT_$LINE"
6351                           else
6352                             no_cache=1
6353                           fi
6354
6355                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6356
6357 fi;
6358
6359           eval "$ac_cv_use_metafile"
6360           if test "$no_cache" != 1; then
6361             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6362           fi
6363
6364           if test "$wxUSE_METAFILE" = yes; then
6365             echo "$as_me:$LINENO: result: yes" >&5
6366 echo "${ECHO_T}yes" >&6
6367           else
6368             echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6
6370           fi
6371
6372
6373
6374
6375
6376           enablestring=
6377           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6378 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6379           no_cache=0
6380           # Check whether --enable-controls or --disable-controls was given.
6381 if test "${enable_controls+set}" = set; then
6382   enableval="$enable_controls"
6383
6384                           if test "$enableval" = yes; then
6385                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6386                           else
6387                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6388                           fi
6389
6390 else
6391
6392                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6393                           if test "x$LINE" != x ; then
6394                             eval "DEFAULT_$LINE"
6395                           else
6396                             no_cache=1
6397                           fi
6398
6399                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6400
6401 fi;
6402
6403           eval "$ac_cv_use_controls"
6404           if test "$no_cache" != 1; then
6405             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6406           fi
6407
6408           if test "$wxUSE_CONTROLS" = yes; then
6409             echo "$as_me:$LINENO: result: yes" >&5
6410 echo "${ECHO_T}yes" >&6
6411           else
6412             echo "$as_me:$LINENO: result: no" >&5
6413 echo "${ECHO_T}no" >&6
6414           fi
6415
6416
6417 if test "$wxUSE_CONTROLS" = "yes"; then
6418   DEFAULT_wxUSE_ACCEL=yes
6419   DEFAULT_wxUSE_BMPBUTTON=yes
6420   DEFAULT_wxUSE_BUTTON=yes
6421   DEFAULT_wxUSE_CALCTRL=no
6422   DEFAULT_wxUSE_CARET=yes
6423   DEFAULT_wxUSE_COMBOBOX=yes
6424   DEFAULT_wxUSE_CHECKBOX=yes
6425   DEFAULT_wxUSE_CHECKLISTBOX=yes
6426   DEFAULT_wxUSE_CHOICE=yes
6427   DEFAULT_wxUSE_GAUGE=yes
6428   DEFAULT_wxUSE_GRID=yes
6429   DEFAULT_wxUSE_IMAGLIST=yes
6430   DEFAULT_wxUSE_LISTBOX=yes
6431   DEFAULT_wxUSE_LISTCTRL=yes
6432   DEFAULT_wxUSE_NOTEBOOK=yes
6433   DEFAULT_wxUSE_RADIOBOX=yes
6434   DEFAULT_wxUSE_RADIOBTN=yes
6435   DEFAULT_wxUSE_SASH=yes
6436   DEFAULT_wxUSE_SCROLLBAR=yes
6437   DEFAULT_wxUSE_SLIDER=yes
6438   DEFAULT_wxUSE_SPINBTN=yes
6439   DEFAULT_wxUSE_SPINCTRL=yes
6440   DEFAULT_wxUSE_SPLITTER=yes
6441   DEFAULT_wxUSE_STATBMP=yes
6442   DEFAULT_wxUSE_STATBOX=yes
6443   DEFAULT_wxUSE_STATLINE=yes
6444   DEFAULT_wxUSE_STATUSBAR=yes
6445   DEFAULT_wxUSE_TAB_DIALOG=yes
6446   DEFAULT_wxUSE_TOGGLEBTN=yes
6447   DEFAULT_wxUSE_TOOLBAR=yes
6448   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6449   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6450   DEFAULT_wxUSE_TOOLTIPS=yes
6451   DEFAULT_wxUSE_TREECTRL=yes
6452   DEFAULT_wxUSE_POPUPWIN=yes
6453   DEFAULT_wxUSE_TIPWINDOW=yes
6454 elif test "$wxUSE_CONTROLS" = "no"; then
6455   DEFAULT_wxUSE_ACCEL=no
6456   DEFAULT_wxUSE_BMPBUTTON=no
6457   DEFAULT_wxUSE_BUTTON=no
6458   DEFAULT_wxUSE_CALCTRL=no
6459   DEFAULT_wxUSE_CARET=no
6460   DEFAULT_wxUSE_COMBOBOX=no
6461   DEFAULT_wxUSE_CHECKBOX=no
6462   DEFAULT_wxUSE_CHECKLISTBOX=no
6463   DEFAULT_wxUSE_CHOICE=no
6464   DEFAULT_wxUSE_GAUGE=no
6465   DEFAULT_wxUSE_GRID=no
6466   DEFAULT_wxUSE_IMAGLIST=no
6467   DEFAULT_wxUSE_LISTBOX=no
6468   DEFAULT_wxUSE_LISTCTRL=no
6469   DEFAULT_wxUSE_NOTEBOOK=no
6470   DEFAULT_wxUSE_RADIOBOX=no
6471   DEFAULT_wxUSE_RADIOBTN=no
6472   DEFAULT_wxUSE_SASH=no
6473   DEFAULT_wxUSE_SCROLLBAR=no
6474   DEFAULT_wxUSE_SLIDER=no
6475   DEFAULT_wxUSE_SPINBTN=no
6476   DEFAULT_wxUSE_SPINCTRL=no
6477   DEFAULT_wxUSE_SPLITTER=no
6478   DEFAULT_wxUSE_STATBMP=no
6479   DEFAULT_wxUSE_STATBOX=no
6480   DEFAULT_wxUSE_STATLINE=no
6481   DEFAULT_wxUSE_STATUSBAR=no
6482   DEFAULT_wxUSE_TAB_DIALOG=no
6483   DEFAULT_wxUSE_TOGGLEBTN=no
6484   DEFAULT_wxUSE_TOOLBAR=no
6485   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6486   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6487   DEFAULT_wxUSE_TOOLTIPS=no
6488   DEFAULT_wxUSE_TREECTRL=no
6489   DEFAULT_wxUSE_POPUPWIN=no
6490   DEFAULT_wxUSE_TIPWINDOW=no
6491 fi
6492
6493 ## FIXME: This is a blatant hack
6494 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6495   wxUSE_PRINTING_ARCHITECTURE=no
6496   wxUSE_HELP=no
6497   wxUSE_CLIPBOARD=no
6498   wxUSE_DRAG_AND_DROP=no
6499   wxUSE_DATAOBJ=no
6500   # Generic notebook requires tab dialog
6501   DEFAULT_wxUSE_TABDIALOG=yes
6502   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6503   DEFAULT_wxUSE_GAUGE=no
6504   DEFAULT_wxUSE_SCROLLBAR=no
6505   DEFAULT_wxUSE_COMBOBOX=no
6506   DEFAULT_wxUSE_CALCTRL=no
6507   DEFAULT_wxUSE_SPINBTN=no
6508   DEFAULT_wxUSE_SPINCTRL=no
6509   DEFAULT_wxUSE_TOOLTIPS=no
6510   DEFAULT_wxUSE_DRAGIMAGE=no
6511   DEFAULT_wxUSE_FINDREPLDLG=no
6512   DEFAULT_wxUSE_FONTDLG=no
6513   DEFAULT_wxUSE_GRID=no
6514   DEFAULT_wxUSE_NUMBERDLG=no
6515   DEFAULT_wxUSE_PROGRESSDLG=no
6516   DEFAULT_wxUSE_SASH=no
6517   DEFAULT_wxUSE_SPLITTER=no
6518   DEFAULT_wxUSE_WIZARDDLG=no
6519   DEFAULT_wxUSE_SPLITTER=no
6520   DEFAULT_wxUSE_STARTUP_TIPS=no
6521 fi
6522
6523
6524           enablestring=
6525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6526 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6527           no_cache=0
6528           # Check whether --enable-accel or --disable-accel was given.
6529 if test "${enable_accel+set}" = set; then
6530   enableval="$enable_accel"
6531
6532                           if test "$enableval" = yes; then
6533                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6534                           else
6535                             ac_cv_use_accel='wxUSE_ACCEL=no'
6536                           fi
6537
6538 else
6539
6540                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6541                           if test "x$LINE" != x ; then
6542                             eval "DEFAULT_$LINE"
6543                           else
6544                             no_cache=1
6545                           fi
6546
6547                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6548
6549 fi;
6550
6551           eval "$ac_cv_use_accel"
6552           if test "$no_cache" != 1; then
6553             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6554           fi
6555
6556           if test "$wxUSE_ACCEL" = yes; then
6557             echo "$as_me:$LINENO: result: yes" >&5
6558 echo "${ECHO_T}yes" >&6
6559           else
6560             echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6
6562           fi
6563
6564
6565           enablestring=
6566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6567 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6568           no_cache=0
6569           # Check whether --enable-button or --disable-button was given.
6570 if test "${enable_button+set}" = set; then
6571   enableval="$enable_button"
6572
6573                           if test "$enableval" = yes; then
6574                             ac_cv_use_button='wxUSE_BUTTON=yes'
6575                           else
6576                             ac_cv_use_button='wxUSE_BUTTON=no'
6577                           fi
6578
6579 else
6580
6581                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6582                           if test "x$LINE" != x ; then
6583                             eval "DEFAULT_$LINE"
6584                           else
6585                             no_cache=1
6586                           fi
6587
6588                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6589
6590 fi;
6591
6592           eval "$ac_cv_use_button"
6593           if test "$no_cache" != 1; then
6594             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6595           fi
6596
6597           if test "$wxUSE_BUTTON" = yes; then
6598             echo "$as_me:$LINENO: result: yes" >&5
6599 echo "${ECHO_T}yes" >&6
6600           else
6601             echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6
6603           fi
6604
6605
6606           enablestring=
6607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6608 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6609           no_cache=0
6610           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6611 if test "${enable_bmpbutton+set}" = set; then
6612   enableval="$enable_bmpbutton"
6613
6614                           if test "$enableval" = yes; then
6615                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6616                           else
6617                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6618                           fi
6619
6620 else
6621
6622                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6623                           if test "x$LINE" != x ; then
6624                             eval "DEFAULT_$LINE"
6625                           else
6626                             no_cache=1
6627                           fi
6628
6629                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6630
6631 fi;
6632
6633           eval "$ac_cv_use_bmpbutton"
6634           if test "$no_cache" != 1; then
6635             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6636           fi
6637
6638           if test "$wxUSE_BMPBUTTON" = yes; then
6639             echo "$as_me:$LINENO: result: yes" >&5
6640 echo "${ECHO_T}yes" >&6
6641           else
6642             echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6
6644           fi
6645
6646
6647           enablestring=
6648           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6649 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6650           no_cache=0
6651           # Check whether --enable-calendar or --disable-calendar was given.
6652 if test "${enable_calendar+set}" = set; then
6653   enableval="$enable_calendar"
6654
6655                           if test "$enableval" = yes; then
6656                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6657                           else
6658                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6659                           fi
6660
6661 else
6662
6663                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6664                           if test "x$LINE" != x ; then
6665                             eval "DEFAULT_$LINE"
6666                           else
6667                             no_cache=1
6668                           fi
6669
6670                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6671
6672 fi;
6673
6674           eval "$ac_cv_use_calendar"
6675           if test "$no_cache" != 1; then
6676             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6677           fi
6678
6679           if test "$wxUSE_CALCTRL" = yes; then
6680             echo "$as_me:$LINENO: result: yes" >&5
6681 echo "${ECHO_T}yes" >&6
6682           else
6683             echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6
6685           fi
6686
6687
6688           enablestring=
6689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6690 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6691           no_cache=0
6692           # Check whether --enable-caret or --disable-caret was given.
6693 if test "${enable_caret+set}" = set; then
6694   enableval="$enable_caret"
6695
6696                           if test "$enableval" = yes; then
6697                             ac_cv_use_caret='wxUSE_CARET=yes'
6698                           else
6699                             ac_cv_use_caret='wxUSE_CARET=no'
6700                           fi
6701
6702 else
6703
6704                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6705                           if test "x$LINE" != x ; then
6706                             eval "DEFAULT_$LINE"
6707                           else
6708                             no_cache=1
6709                           fi
6710
6711                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6712
6713 fi;
6714
6715           eval "$ac_cv_use_caret"
6716           if test "$no_cache" != 1; then
6717             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6718           fi
6719
6720           if test "$wxUSE_CARET" = yes; then
6721             echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6
6723           else
6724             echo "$as_me:$LINENO: result: no" >&5
6725 echo "${ECHO_T}no" >&6
6726           fi
6727
6728
6729           enablestring=
6730           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6731 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6732           no_cache=0
6733           # Check whether --enable-checkbox or --disable-checkbox was given.
6734 if test "${enable_checkbox+set}" = set; then
6735   enableval="$enable_checkbox"
6736
6737                           if test "$enableval" = yes; then
6738                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6739                           else
6740                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6741                           fi
6742
6743 else
6744
6745                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6746                           if test "x$LINE" != x ; then
6747                             eval "DEFAULT_$LINE"
6748                           else
6749                             no_cache=1
6750                           fi
6751
6752                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6753
6754 fi;
6755
6756           eval "$ac_cv_use_checkbox"
6757           if test "$no_cache" != 1; then
6758             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6759           fi
6760
6761           if test "$wxUSE_CHECKBOX" = yes; then
6762             echo "$as_me:$LINENO: result: yes" >&5
6763 echo "${ECHO_T}yes" >&6
6764           else
6765             echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6
6767           fi
6768
6769
6770           enablestring=
6771           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6772 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6773           no_cache=0
6774           # Check whether --enable-checklst or --disable-checklst was given.
6775 if test "${enable_checklst+set}" = set; then
6776   enableval="$enable_checklst"
6777
6778                           if test "$enableval" = yes; then
6779                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6780                           else
6781                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6782                           fi
6783
6784 else
6785
6786                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6787                           if test "x$LINE" != x ; then
6788                             eval "DEFAULT_$LINE"
6789                           else
6790                             no_cache=1
6791                           fi
6792
6793                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6794
6795 fi;
6796
6797           eval "$ac_cv_use_checklst"
6798           if test "$no_cache" != 1; then
6799             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6800           fi
6801
6802           if test "$wxUSE_CHECKLST" = yes; then
6803             echo "$as_me:$LINENO: result: yes" >&5
6804 echo "${ECHO_T}yes" >&6
6805           else
6806             echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6
6808           fi
6809
6810
6811           enablestring=
6812           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6813 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
6814           no_cache=0
6815           # Check whether --enable-choice or --disable-choice was given.
6816 if test "${enable_choice+set}" = set; then
6817   enableval="$enable_choice"
6818
6819                           if test "$enableval" = yes; then
6820                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6821                           else
6822                             ac_cv_use_choice='wxUSE_CHOICE=no'
6823                           fi
6824
6825 else
6826
6827                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6828                           if test "x$LINE" != x ; then
6829                             eval "DEFAULT_$LINE"
6830                           else
6831                             no_cache=1
6832                           fi
6833
6834                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6835
6836 fi;
6837
6838           eval "$ac_cv_use_choice"
6839           if test "$no_cache" != 1; then
6840             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6841           fi
6842
6843           if test "$wxUSE_CHOICE" = yes; then
6844             echo "$as_me:$LINENO: result: yes" >&5
6845 echo "${ECHO_T}yes" >&6
6846           else
6847             echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6
6849           fi
6850
6851
6852           enablestring=
6853           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6854 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
6855           no_cache=0
6856           # Check whether --enable-combobox or --disable-combobox was given.
6857 if test "${enable_combobox+set}" = set; then
6858   enableval="$enable_combobox"
6859
6860                           if test "$enableval" = yes; then
6861                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6862                           else
6863                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6864                           fi
6865
6866 else
6867
6868                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6869                           if test "x$LINE" != x ; then
6870                             eval "DEFAULT_$LINE"
6871                           else
6872                             no_cache=1
6873                           fi
6874
6875                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6876
6877 fi;
6878
6879           eval "$ac_cv_use_combobox"
6880           if test "$no_cache" != 1; then
6881             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6882           fi
6883
6884           if test "$wxUSE_COMBOBOX" = yes; then
6885             echo "$as_me:$LINENO: result: yes" >&5
6886 echo "${ECHO_T}yes" >&6
6887           else
6888             echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6
6890           fi
6891
6892
6893           enablestring=
6894           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6895 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
6896           no_cache=0
6897           # Check whether --enable-display or --disable-display was given.
6898 if test "${enable_display+set}" = set; then
6899   enableval="$enable_display"
6900
6901                           if test "$enableval" = yes; then
6902                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6903                           else
6904                             ac_cv_use_display='wxUSE_DISPLAY=no'
6905                           fi
6906
6907 else
6908
6909                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6910                           if test "x$LINE" != x ; then
6911                             eval "DEFAULT_$LINE"
6912                           else
6913                             no_cache=1
6914                           fi
6915
6916                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6917
6918 fi;
6919
6920           eval "$ac_cv_use_display"
6921           if test "$no_cache" != 1; then
6922             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6923           fi
6924
6925           if test "$wxUSE_DISPLAY" = yes; then
6926             echo "$as_me:$LINENO: result: yes" >&5
6927 echo "${ECHO_T}yes" >&6
6928           else
6929             echo "$as_me:$LINENO: result: no" >&5
6930 echo "${ECHO_T}no" >&6
6931           fi
6932
6933
6934           enablestring=
6935           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6936 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
6937           no_cache=0
6938           # Check whether --enable-gauge or --disable-gauge was given.
6939 if test "${enable_gauge+set}" = set; then
6940   enableval="$enable_gauge"
6941
6942                           if test "$enableval" = yes; then
6943                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6944                           else
6945                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6946                           fi
6947
6948 else
6949
6950                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6951                           if test "x$LINE" != x ; then
6952                             eval "DEFAULT_$LINE"
6953                           else
6954                             no_cache=1
6955                           fi
6956
6957                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6958
6959 fi;
6960
6961           eval "$ac_cv_use_gauge"
6962           if test "$no_cache" != 1; then
6963             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6964           fi
6965
6966           if test "$wxUSE_GAUGE" = yes; then
6967             echo "$as_me:$LINENO: result: yes" >&5
6968 echo "${ECHO_T}yes" >&6
6969           else
6970             echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6972           fi
6973
6974
6975           enablestring=
6976           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
6977 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
6978           no_cache=0
6979           # Check whether --enable-grid or --disable-grid was given.
6980 if test "${enable_grid+set}" = set; then
6981   enableval="$enable_grid"
6982
6983                           if test "$enableval" = yes; then
6984                             ac_cv_use_grid='wxUSE_GRID=yes'
6985                           else
6986                             ac_cv_use_grid='wxUSE_GRID=no'
6987                           fi
6988
6989 else
6990
6991                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6992                           if test "x$LINE" != x ; then
6993                             eval "DEFAULT_$LINE"
6994                           else
6995                             no_cache=1
6996                           fi
6997
6998                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6999
7000 fi;
7001
7002           eval "$ac_cv_use_grid"
7003           if test "$no_cache" != 1; then
7004             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7005           fi
7006
7007           if test "$wxUSE_GRID" = yes; then
7008             echo "$as_me:$LINENO: result: yes" >&5
7009 echo "${ECHO_T}yes" >&6
7010           else
7011             echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7013           fi
7014
7015
7016           enablestring=
7017           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7018 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7019           no_cache=0
7020           # Check whether --enable-imaglist or --disable-imaglist was given.
7021 if test "${enable_imaglist+set}" = set; then
7022   enableval="$enable_imaglist"
7023
7024                           if test "$enableval" = yes; then
7025                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7026                           else
7027                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7028                           fi
7029
7030 else
7031
7032                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7033                           if test "x$LINE" != x ; then
7034                             eval "DEFAULT_$LINE"
7035                           else
7036                             no_cache=1
7037                           fi
7038
7039                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7040
7041 fi;
7042
7043           eval "$ac_cv_use_imaglist"
7044           if test "$no_cache" != 1; then
7045             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7046           fi
7047
7048           if test "$wxUSE_IMAGLIST" = yes; then
7049             echo "$as_me:$LINENO: result: yes" >&5
7050 echo "${ECHO_T}yes" >&6
7051           else
7052             echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6
7054           fi
7055
7056
7057           enablestring=
7058           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7059 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7060           no_cache=0
7061           # Check whether --enable-listbox or --disable-listbox was given.
7062 if test "${enable_listbox+set}" = set; then
7063   enableval="$enable_listbox"
7064
7065                           if test "$enableval" = yes; then
7066                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7067                           else
7068                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7069                           fi
7070
7071 else
7072
7073                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7074                           if test "x$LINE" != x ; then
7075                             eval "DEFAULT_$LINE"
7076                           else
7077                             no_cache=1
7078                           fi
7079
7080                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7081
7082 fi;
7083
7084           eval "$ac_cv_use_listbox"
7085           if test "$no_cache" != 1; then
7086             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7087           fi
7088
7089           if test "$wxUSE_LISTBOX" = yes; then
7090             echo "$as_me:$LINENO: result: yes" >&5
7091 echo "${ECHO_T}yes" >&6
7092           else
7093             echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7095           fi
7096
7097
7098           enablestring=
7099           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7100 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7101           no_cache=0
7102           # Check whether --enable-listctrl or --disable-listctrl was given.
7103 if test "${enable_listctrl+set}" = set; then
7104   enableval="$enable_listctrl"
7105
7106                           if test "$enableval" = yes; then
7107                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7108                           else
7109                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7110                           fi
7111
7112 else
7113
7114                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7115                           if test "x$LINE" != x ; then
7116                             eval "DEFAULT_$LINE"
7117                           else
7118                             no_cache=1
7119                           fi
7120
7121                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7122
7123 fi;
7124
7125           eval "$ac_cv_use_listctrl"
7126           if test "$no_cache" != 1; then
7127             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7128           fi
7129
7130           if test "$wxUSE_LISTCTRL" = yes; then
7131             echo "$as_me:$LINENO: result: yes" >&5
7132 echo "${ECHO_T}yes" >&6
7133           else
7134             echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6
7136           fi
7137
7138
7139           enablestring=
7140           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7141 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7142           no_cache=0
7143           # Check whether --enable-notebook or --disable-notebook was given.
7144 if test "${enable_notebook+set}" = set; then
7145   enableval="$enable_notebook"
7146
7147                           if test "$enableval" = yes; then
7148                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7149                           else
7150                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7151                           fi
7152
7153 else
7154
7155                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7156                           if test "x$LINE" != x ; then
7157                             eval "DEFAULT_$LINE"
7158                           else
7159                             no_cache=1
7160                           fi
7161
7162                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7163
7164 fi;
7165
7166           eval "$ac_cv_use_notebook"
7167           if test "$no_cache" != 1; then
7168             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7169           fi
7170
7171           if test "$wxUSE_NOTEBOOK" = yes; then
7172             echo "$as_me:$LINENO: result: yes" >&5
7173 echo "${ECHO_T}yes" >&6
7174           else
7175             echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7177           fi
7178
7179
7180           enablestring=
7181           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7182 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7183           no_cache=0
7184           # Check whether --enable-radiobox or --disable-radiobox was given.
7185 if test "${enable_radiobox+set}" = set; then
7186   enableval="$enable_radiobox"
7187
7188                           if test "$enableval" = yes; then
7189                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7190                           else
7191                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7192                           fi
7193
7194 else
7195
7196                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7197                           if test "x$LINE" != x ; then
7198                             eval "DEFAULT_$LINE"
7199                           else
7200                             no_cache=1
7201                           fi
7202
7203                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7204
7205 fi;
7206
7207           eval "$ac_cv_use_radiobox"
7208           if test "$no_cache" != 1; then
7209             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7210           fi
7211
7212           if test "$wxUSE_RADIOBOX" = yes; then
7213             echo "$as_me:$LINENO: result: yes" >&5
7214 echo "${ECHO_T}yes" >&6
7215           else
7216             echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7218           fi
7219
7220
7221           enablestring=
7222           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7223 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7224           no_cache=0
7225           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7226 if test "${enable_radiobtn+set}" = set; then
7227   enableval="$enable_radiobtn"
7228
7229                           if test "$enableval" = yes; then
7230                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7231                           else
7232                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7233                           fi
7234
7235 else
7236
7237                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7238                           if test "x$LINE" != x ; then
7239                             eval "DEFAULT_$LINE"
7240                           else
7241                             no_cache=1
7242                           fi
7243
7244                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7245
7246 fi;
7247
7248           eval "$ac_cv_use_radiobtn"
7249           if test "$no_cache" != 1; then
7250             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7251           fi
7252
7253           if test "$wxUSE_RADIOBTN" = yes; then
7254             echo "$as_me:$LINENO: result: yes" >&5
7255 echo "${ECHO_T}yes" >&6
7256           else
7257             echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7259           fi
7260
7261
7262           enablestring=
7263           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7264 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7265           no_cache=0
7266           # Check whether --enable-sash or --disable-sash was given.
7267 if test "${enable_sash+set}" = set; then
7268   enableval="$enable_sash"
7269
7270                           if test "$enableval" = yes; then
7271                             ac_cv_use_sash='wxUSE_SASH=yes'
7272                           else
7273                             ac_cv_use_sash='wxUSE_SASH=no'
7274                           fi
7275
7276 else
7277
7278                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7279                           if test "x$LINE" != x ; then
7280                             eval "DEFAULT_$LINE"
7281                           else
7282                             no_cache=1
7283                           fi
7284
7285                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7286
7287 fi;
7288
7289           eval "$ac_cv_use_sash"
7290           if test "$no_cache" != 1; then
7291             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7292           fi
7293
7294           if test "$wxUSE_SASH" = yes; then
7295             echo "$as_me:$LINENO: result: yes" >&5
7296 echo "${ECHO_T}yes" >&6
7297           else
7298             echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7300           fi
7301
7302
7303           enablestring=
7304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7305 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7306           no_cache=0
7307           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7308 if test "${enable_scrollbar+set}" = set; then
7309   enableval="$enable_scrollbar"
7310
7311                           if test "$enableval" = yes; then
7312                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7313                           else
7314                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7315                           fi
7316
7317 else
7318
7319                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7320                           if test "x$LINE" != x ; then
7321                             eval "DEFAULT_$LINE"
7322                           else
7323                             no_cache=1
7324                           fi
7325
7326                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7327
7328 fi;
7329
7330           eval "$ac_cv_use_scrollbar"
7331           if test "$no_cache" != 1; then
7332             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7333           fi
7334
7335           if test "$wxUSE_SCROLLBAR" = yes; then
7336             echo "$as_me:$LINENO: result: yes" >&5
7337 echo "${ECHO_T}yes" >&6
7338           else
7339             echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341           fi
7342
7343
7344           enablestring=
7345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7346 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7347           no_cache=0
7348           # Check whether --enable-slider or --disable-slider was given.
7349 if test "${enable_slider+set}" = set; then
7350   enableval="$enable_slider"
7351
7352                           if test "$enableval" = yes; then
7353                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7354                           else
7355                             ac_cv_use_slider='wxUSE_SLIDER=no'
7356                           fi
7357
7358 else
7359
7360                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7361                           if test "x$LINE" != x ; then
7362                             eval "DEFAULT_$LINE"
7363                           else
7364                             no_cache=1
7365                           fi
7366
7367                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7368
7369 fi;
7370
7371           eval "$ac_cv_use_slider"
7372           if test "$no_cache" != 1; then
7373             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7374           fi
7375
7376           if test "$wxUSE_SLIDER" = yes; then
7377             echo "$as_me:$LINENO: result: yes" >&5
7378 echo "${ECHO_T}yes" >&6
7379           else
7380             echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7382           fi
7383
7384
7385           enablestring=
7386           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7387 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7388           no_cache=0
7389           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7390 if test "${enable_spinbtn+set}" = set; then
7391   enableval="$enable_spinbtn"
7392
7393                           if test "$enableval" = yes; then
7394                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7395                           else
7396                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7397                           fi
7398
7399 else
7400
7401                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7402                           if test "x$LINE" != x ; then
7403                             eval "DEFAULT_$LINE"
7404                           else
7405                             no_cache=1
7406                           fi
7407
7408                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7409
7410 fi;
7411
7412           eval "$ac_cv_use_spinbtn"
7413           if test "$no_cache" != 1; then
7414             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7415           fi
7416
7417           if test "$wxUSE_SPINBTN" = yes; then
7418             echo "$as_me:$LINENO: result: yes" >&5
7419 echo "${ECHO_T}yes" >&6
7420           else
7421             echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7423           fi
7424
7425
7426           enablestring=
7427           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7428 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7429           no_cache=0
7430           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7431 if test "${enable_spinctrl+set}" = set; then
7432   enableval="$enable_spinctrl"
7433
7434                           if test "$enableval" = yes; then
7435                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7436                           else
7437                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7438                           fi
7439
7440 else
7441
7442                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7443                           if test "x$LINE" != x ; then
7444                             eval "DEFAULT_$LINE"
7445                           else
7446                             no_cache=1
7447                           fi
7448
7449                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7450
7451 fi;
7452
7453           eval "$ac_cv_use_spinctrl"
7454           if test "$no_cache" != 1; then
7455             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7456           fi
7457
7458           if test "$wxUSE_SPINCTRL" = yes; then
7459             echo "$as_me:$LINENO: result: yes" >&5
7460 echo "${ECHO_T}yes" >&6
7461           else
7462             echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6
7464           fi
7465
7466
7467           enablestring=
7468           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7469 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7470           no_cache=0
7471           # Check whether --enable-splitter or --disable-splitter was given.
7472 if test "${enable_splitter+set}" = set; then
7473   enableval="$enable_splitter"
7474
7475                           if test "$enableval" = yes; then
7476                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7477                           else
7478                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7479                           fi
7480
7481 else
7482
7483                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7484                           if test "x$LINE" != x ; then
7485                             eval "DEFAULT_$LINE"
7486                           else
7487                             no_cache=1
7488                           fi
7489
7490                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7491
7492 fi;
7493
7494           eval "$ac_cv_use_splitter"
7495           if test "$no_cache" != 1; then
7496             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7497           fi
7498
7499           if test "$wxUSE_SPLITTER" = yes; then
7500             echo "$as_me:$LINENO: result: yes" >&5
7501 echo "${ECHO_T}yes" >&6
7502           else
7503             echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7505           fi
7506
7507
7508           enablestring=
7509           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7510 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7511           no_cache=0
7512           # Check whether --enable-statbmp or --disable-statbmp was given.
7513 if test "${enable_statbmp+set}" = set; then
7514   enableval="$enable_statbmp"
7515
7516                           if test "$enableval" = yes; then
7517                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7518                           else
7519                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7520                           fi
7521
7522 else
7523
7524                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7525                           if test "x$LINE" != x ; then
7526                             eval "DEFAULT_$LINE"
7527                           else
7528                             no_cache=1
7529                           fi
7530
7531                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7532
7533 fi;
7534
7535           eval "$ac_cv_use_statbmp"
7536           if test "$no_cache" != 1; then
7537             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7538           fi
7539
7540           if test "$wxUSE_STATBMP" = yes; then
7541             echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6
7543           else
7544             echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7546           fi
7547
7548
7549           enablestring=
7550           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7551 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7552           no_cache=0
7553           # Check whether --enable-statbox or --disable-statbox was given.
7554 if test "${enable_statbox+set}" = set; then
7555   enableval="$enable_statbox"
7556
7557                           if test "$enableval" = yes; then
7558                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7559                           else
7560                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7561                           fi
7562
7563 else
7564
7565                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7566                           if test "x$LINE" != x ; then
7567                             eval "DEFAULT_$LINE"
7568                           else
7569                             no_cache=1
7570                           fi
7571
7572                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7573
7574 fi;
7575
7576           eval "$ac_cv_use_statbox"
7577           if test "$no_cache" != 1; then
7578             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7579           fi
7580
7581           if test "$wxUSE_STATBOX" = yes; then
7582             echo "$as_me:$LINENO: result: yes" >&5
7583 echo "${ECHO_T}yes" >&6
7584           else
7585             echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587           fi
7588
7589
7590           enablestring=
7591           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7592 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7593           no_cache=0
7594           # Check whether --enable-statline or --disable-statline was given.
7595 if test "${enable_statline+set}" = set; then
7596   enableval="$enable_statline"
7597
7598                           if test "$enableval" = yes; then
7599                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7600                           else
7601                             ac_cv_use_statline='wxUSE_STATLINE=no'
7602                           fi
7603
7604 else
7605
7606                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7607                           if test "x$LINE" != x ; then
7608                             eval "DEFAULT_$LINE"
7609                           else
7610                             no_cache=1
7611                           fi
7612
7613                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7614
7615 fi;
7616
7617           eval "$ac_cv_use_statline"
7618           if test "$no_cache" != 1; then
7619             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7620           fi
7621
7622           if test "$wxUSE_STATLINE" = yes; then
7623             echo "$as_me:$LINENO: result: yes" >&5
7624 echo "${ECHO_T}yes" >&6
7625           else
7626             echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6
7628           fi
7629
7630
7631           enablestring=
7632           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7633 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7634           no_cache=0
7635           # Check whether --enable-stattext or --disable-stattext was given.
7636 if test "${enable_stattext+set}" = set; then
7637   enableval="$enable_stattext"
7638
7639                           if test "$enableval" = yes; then
7640                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7641                           else
7642                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7643                           fi
7644
7645 else
7646
7647                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7648                           if test "x$LINE" != x ; then
7649                             eval "DEFAULT_$LINE"
7650                           else
7651                             no_cache=1
7652                           fi
7653
7654                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7655
7656 fi;
7657
7658           eval "$ac_cv_use_stattext"
7659           if test "$no_cache" != 1; then
7660             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7661           fi
7662
7663           if test "$wxUSE_STATTEXT" = yes; then
7664             echo "$as_me:$LINENO: result: yes" >&5
7665 echo "${ECHO_T}yes" >&6
7666           else
7667             echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6
7669           fi
7670
7671
7672           enablestring=
7673           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7674 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7675           no_cache=0
7676           # Check whether --enable-statusbar or --disable-statusbar was given.
7677 if test "${enable_statusbar+set}" = set; then
7678   enableval="$enable_statusbar"
7679
7680                           if test "$enableval" = yes; then
7681                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7682                           else
7683                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7684                           fi
7685
7686 else
7687
7688                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7689                           if test "x$LINE" != x ; then
7690                             eval "DEFAULT_$LINE"
7691                           else
7692                             no_cache=1
7693                           fi
7694
7695                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7696
7697 fi;
7698
7699           eval "$ac_cv_use_statusbar"
7700           if test "$no_cache" != 1; then
7701             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7702           fi
7703
7704           if test "$wxUSE_STATUSBAR" = yes; then
7705             echo "$as_me:$LINENO: result: yes" >&5
7706 echo "${ECHO_T}yes" >&6
7707           else
7708             echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7710           fi
7711
7712
7713           enablestring=
7714           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7715 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7716           no_cache=0
7717           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7718 if test "${enable_tabdialog+set}" = set; then
7719   enableval="$enable_tabdialog"
7720
7721                           if test "$enableval" = yes; then
7722                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7723                           else
7724                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7725                           fi
7726
7727 else
7728
7729                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7730                           if test "x$LINE" != x ; then
7731                             eval "DEFAULT_$LINE"
7732                           else
7733                             no_cache=1
7734                           fi
7735
7736                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7737
7738 fi;
7739
7740           eval "$ac_cv_use_tabdialog"
7741           if test "$no_cache" != 1; then
7742             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7743           fi
7744
7745           if test "$wxUSE_TABDIALOG" = yes; then
7746             echo "$as_me:$LINENO: result: yes" >&5
7747 echo "${ECHO_T}yes" >&6
7748           else
7749             echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7751           fi
7752
7753
7754           enablestring=
7755           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7756 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
7757           no_cache=0
7758           # Check whether --enable-textctrl or --disable-textctrl was given.
7759 if test "${enable_textctrl+set}" = set; then
7760   enableval="$enable_textctrl"
7761
7762                           if test "$enableval" = yes; then
7763                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7764                           else
7765                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7766                           fi
7767
7768 else
7769
7770                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7771                           if test "x$LINE" != x ; then
7772                             eval "DEFAULT_$LINE"
7773                           else
7774                             no_cache=1
7775                           fi
7776
7777                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7778
7779 fi;
7780
7781           eval "$ac_cv_use_textctrl"
7782           if test "$no_cache" != 1; then
7783             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7784           fi
7785
7786           if test "$wxUSE_TEXTCTRL" = yes; then
7787             echo "$as_me:$LINENO: result: yes" >&5
7788 echo "${ECHO_T}yes" >&6
7789           else
7790             echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6
7792           fi
7793
7794
7795           enablestring=
7796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7797 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
7798           no_cache=0
7799           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7800 if test "${enable_togglebtn+set}" = set; then
7801   enableval="$enable_togglebtn"
7802
7803                           if test "$enableval" = yes; then
7804                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7805                           else
7806                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7807                           fi
7808
7809 else
7810
7811                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7812                           if test "x$LINE" != x ; then
7813                             eval "DEFAULT_$LINE"
7814                           else
7815                             no_cache=1
7816                           fi
7817
7818                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7819
7820 fi;
7821
7822           eval "$ac_cv_use_togglebtn"
7823           if test "$no_cache" != 1; then
7824             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7825           fi
7826
7827           if test "$wxUSE_TOGGLEBTN" = yes; then
7828             echo "$as_me:$LINENO: result: yes" >&5
7829 echo "${ECHO_T}yes" >&6
7830           else
7831             echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7833           fi
7834
7835
7836           enablestring=
7837           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7838 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
7839           no_cache=0
7840           # Check whether --enable-toolbar or --disable-toolbar was given.
7841 if test "${enable_toolbar+set}" = set; then
7842   enableval="$enable_toolbar"
7843
7844                           if test "$enableval" = yes; then
7845                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7846                           else
7847                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7848                           fi
7849
7850 else
7851
7852                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7853                           if test "x$LINE" != x ; then
7854                             eval "DEFAULT_$LINE"
7855                           else
7856                             no_cache=1
7857                           fi
7858
7859                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7860
7861 fi;
7862
7863           eval "$ac_cv_use_toolbar"
7864           if test "$no_cache" != 1; then
7865             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7866           fi
7867
7868           if test "$wxUSE_TOOLBAR" = yes; then
7869             echo "$as_me:$LINENO: result: yes" >&5
7870 echo "${ECHO_T}yes" >&6
7871           else
7872             echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6
7874           fi
7875
7876
7877           enablestring=
7878           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7879 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
7880           no_cache=0
7881           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7882 if test "${enable_tbarnative+set}" = set; then
7883   enableval="$enable_tbarnative"
7884
7885                           if test "$enableval" = yes; then
7886                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7887                           else
7888                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7889                           fi
7890
7891 else
7892
7893                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7894                           if test "x$LINE" != x ; then
7895                             eval "DEFAULT_$LINE"
7896                           else
7897                             no_cache=1
7898                           fi
7899
7900                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7901
7902 fi;
7903
7904           eval "$ac_cv_use_tbarnative"
7905           if test "$no_cache" != 1; then
7906             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7907           fi
7908
7909           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7910             echo "$as_me:$LINENO: result: yes" >&5
7911 echo "${ECHO_T}yes" >&6
7912           else
7913             echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6
7915           fi
7916
7917
7918           enablestring=
7919           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7920 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
7921           no_cache=0
7922           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7923 if test "${enable_tbarsmpl+set}" = set; then
7924   enableval="$enable_tbarsmpl"
7925
7926                           if test "$enableval" = yes; then
7927                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7928                           else
7929                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7930                           fi
7931
7932 else
7933
7934                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7935                           if test "x$LINE" != x ; then
7936                             eval "DEFAULT_$LINE"
7937                           else
7938                             no_cache=1
7939                           fi
7940
7941                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7942
7943 fi;
7944
7945           eval "$ac_cv_use_tbarsmpl"
7946           if test "$no_cache" != 1; then
7947             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7948           fi
7949
7950           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7951             echo "$as_me:$LINENO: result: yes" >&5
7952 echo "${ECHO_T}yes" >&6
7953           else
7954             echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6
7956           fi
7957
7958
7959           enablestring=
7960           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
7961 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
7962           no_cache=0
7963           # Check whether --enable-treectrl or --disable-treectrl was given.
7964 if test "${enable_treectrl+set}" = set; then
7965   enableval="$enable_treectrl"
7966
7967                           if test "$enableval" = yes; then
7968                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7969                           else
7970                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7971                           fi
7972
7973 else
7974
7975                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7976                           if test "x$LINE" != x ; then
7977                             eval "DEFAULT_$LINE"
7978                           else
7979                             no_cache=1
7980                           fi
7981
7982                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7983
7984 fi;
7985
7986           eval "$ac_cv_use_treectrl"
7987           if test "$no_cache" != 1; then
7988             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7989           fi
7990
7991           if test "$wxUSE_TREECTRL" = yes; then
7992             echo "$as_me:$LINENO: result: yes" >&5
7993 echo "${ECHO_T}yes" >&6
7994           else
7995             echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6
7997           fi
7998
7999
8000           enablestring=
8001           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8002 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8003           no_cache=0
8004           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8005 if test "${enable_tipwindow+set}" = set; then
8006   enableval="$enable_tipwindow"
8007
8008                           if test "$enableval" = yes; then
8009                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8010                           else
8011                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8012                           fi
8013
8014 else
8015
8016                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8017                           if test "x$LINE" != x ; then
8018                             eval "DEFAULT_$LINE"
8019                           else
8020                             no_cache=1
8021                           fi
8022
8023                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8024
8025 fi;
8026
8027           eval "$ac_cv_use_tipwindow"
8028           if test "$no_cache" != 1; then
8029             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8030           fi
8031
8032           if test "$wxUSE_TIPWINDOW" = yes; then
8033             echo "$as_me:$LINENO: result: yes" >&5
8034 echo "${ECHO_T}yes" >&6
8035           else
8036             echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8038           fi
8039
8040
8041           enablestring=
8042           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8043 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8044           no_cache=0
8045           # Check whether --enable-popupwin or --disable-popupwin was given.
8046 if test "${enable_popupwin+set}" = set; then
8047   enableval="$enable_popupwin"
8048
8049                           if test "$enableval" = yes; then
8050                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8051                           else
8052                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8053                           fi
8054
8055 else
8056
8057                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8058                           if test "x$LINE" != x ; then
8059                             eval "DEFAULT_$LINE"
8060                           else
8061                             no_cache=1
8062                           fi
8063
8064                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8065
8066 fi;
8067
8068           eval "$ac_cv_use_popupwin"
8069           if test "$no_cache" != 1; then
8070             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8071           fi
8072
8073           if test "$wxUSE_POPUPWIN" = yes; then
8074             echo "$as_me:$LINENO: result: yes" >&5
8075 echo "${ECHO_T}yes" >&6
8076           else
8077             echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6
8079           fi
8080
8081
8082
8083
8084           enablestring=
8085           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8086 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8087           no_cache=0
8088           # Check whether --enable-commondlg or --disable-commondlg was given.
8089 if test "${enable_commondlg+set}" = set; then
8090   enableval="$enable_commondlg"
8091
8092                           if test "$enableval" = yes; then
8093                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8094                           else
8095                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8096                           fi
8097
8098 else
8099
8100                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8101                           if test "x$LINE" != x ; then
8102                             eval "DEFAULT_$LINE"
8103                           else
8104                             no_cache=1
8105                           fi
8106
8107                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8108
8109 fi;
8110
8111           eval "$ac_cv_use_commondlg"
8112           if test "$no_cache" != 1; then
8113             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8114           fi
8115
8116           if test "$wxUSE_COMMONDLGS" = yes; then
8117             echo "$as_me:$LINENO: result: yes" >&5
8118 echo "${ECHO_T}yes" >&6
8119           else
8120             echo "$as_me:$LINENO: result: no" >&5
8121 echo "${ECHO_T}no" >&6
8122           fi
8123
8124
8125           enablestring=
8126           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8127 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8128           no_cache=0
8129           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8130 if test "${enable_choicedlg+set}" = set; then
8131   enableval="$enable_choicedlg"
8132
8133                           if test "$enableval" = yes; then
8134                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8135                           else
8136                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8137                           fi
8138
8139 else
8140
8141                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8142                           if test "x$LINE" != x ; then
8143                             eval "DEFAULT_$LINE"
8144                           else
8145                             no_cache=1
8146                           fi
8147
8148                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8149
8150 fi;
8151
8152           eval "$ac_cv_use_choicedlg"
8153           if test "$no_cache" != 1; then
8154             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8155           fi
8156
8157           if test "$wxUSE_CHOICEDLG" = yes; then
8158             echo "$as_me:$LINENO: result: yes" >&5
8159 echo "${ECHO_T}yes" >&6
8160           else
8161             echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8163           fi
8164
8165
8166           enablestring=
8167           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8168 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8169           no_cache=0
8170           # Check whether --enable-coldlg or --disable-coldlg was given.
8171 if test "${enable_coldlg+set}" = set; then
8172   enableval="$enable_coldlg"
8173
8174                           if test "$enableval" = yes; then
8175                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8176                           else
8177                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8178                           fi
8179
8180 else
8181
8182                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8183                           if test "x$LINE" != x ; then
8184                             eval "DEFAULT_$LINE"
8185                           else
8186                             no_cache=1
8187                           fi
8188
8189                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8190
8191 fi;
8192
8193           eval "$ac_cv_use_coldlg"
8194           if test "$no_cache" != 1; then
8195             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8196           fi
8197
8198           if test "$wxUSE_COLOURDLG" = yes; then
8199             echo "$as_me:$LINENO: result: yes" >&5
8200 echo "${ECHO_T}yes" >&6
8201           else
8202             echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8204           fi
8205
8206
8207           enablestring=
8208           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8209 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8210           no_cache=0
8211           # Check whether --enable-filedlg or --disable-filedlg was given.
8212 if test "${enable_filedlg+set}" = set; then
8213   enableval="$enable_filedlg"
8214
8215                           if test "$enableval" = yes; then
8216                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8217                           else
8218                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8219                           fi
8220
8221 else
8222
8223                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8224                           if test "x$LINE" != x ; then
8225                             eval "DEFAULT_$LINE"
8226                           else
8227                             no_cache=1
8228                           fi
8229
8230                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8231
8232 fi;
8233
8234           eval "$ac_cv_use_filedlg"
8235           if test "$no_cache" != 1; then
8236             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8237           fi
8238
8239           if test "$wxUSE_FILEDLG" = yes; then
8240             echo "$as_me:$LINENO: result: yes" >&5
8241 echo "${ECHO_T}yes" >&6
8242           else
8243             echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6
8245           fi
8246
8247
8248           enablestring=
8249           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8250 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8251           no_cache=0
8252           # Check whether --enable-finddlg or --disable-finddlg was given.
8253 if test "${enable_finddlg+set}" = set; then
8254   enableval="$enable_finddlg"
8255
8256                           if test "$enableval" = yes; then
8257                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8258                           else
8259                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8260                           fi
8261
8262 else
8263
8264                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8265                           if test "x$LINE" != x ; then
8266                             eval "DEFAULT_$LINE"
8267                           else
8268                             no_cache=1
8269                           fi
8270
8271                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8272
8273 fi;
8274
8275           eval "$ac_cv_use_finddlg"
8276           if test "$no_cache" != 1; then
8277             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8278           fi
8279
8280           if test "$wxUSE_FINDREPLDLG" = yes; then
8281             echo "$as_me:$LINENO: result: yes" >&5
8282 echo "${ECHO_T}yes" >&6
8283           else
8284             echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6
8286           fi
8287
8288
8289           enablestring=
8290           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8291 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8292           no_cache=0
8293           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8294 if test "${enable_fontdlg+set}" = set; then
8295   enableval="$enable_fontdlg"
8296
8297                           if test "$enableval" = yes; then
8298                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8299                           else
8300                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8301                           fi
8302
8303 else
8304
8305                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8306                           if test "x$LINE" != x ; then
8307                             eval "DEFAULT_$LINE"
8308                           else
8309                             no_cache=1
8310                           fi
8311
8312                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8313
8314 fi;
8315
8316           eval "$ac_cv_use_fontdlg"
8317           if test "$no_cache" != 1; then
8318             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8319           fi
8320
8321           if test "$wxUSE_FONTDLG" = yes; then
8322             echo "$as_me:$LINENO: result: yes" >&5
8323 echo "${ECHO_T}yes" >&6
8324           else
8325             echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6
8327           fi
8328
8329
8330           enablestring=
8331           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8332 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8333           no_cache=0
8334           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8335 if test "${enable_dirdlg+set}" = set; then
8336   enableval="$enable_dirdlg"
8337
8338                           if test "$enableval" = yes; then
8339                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8340                           else
8341                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8342                           fi
8343
8344 else
8345
8346                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8347                           if test "x$LINE" != x ; then
8348                             eval "DEFAULT_$LINE"
8349                           else
8350                             no_cache=1
8351                           fi
8352
8353                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8354
8355 fi;
8356
8357           eval "$ac_cv_use_dirdlg"
8358           if test "$no_cache" != 1; then
8359             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8360           fi
8361
8362           if test "$wxUSE_DIRDLG" = yes; then
8363             echo "$as_me:$LINENO: result: yes" >&5
8364 echo "${ECHO_T}yes" >&6
8365           else
8366             echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6
8368           fi
8369
8370
8371           enablestring=
8372           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8373 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8374           no_cache=0
8375           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8376 if test "${enable_msgdlg+set}" = set; then
8377   enableval="$enable_msgdlg"
8378
8379                           if test "$enableval" = yes; then
8380                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8381                           else
8382                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8383                           fi
8384
8385 else
8386
8387                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8388                           if test "x$LINE" != x ; then
8389                             eval "DEFAULT_$LINE"
8390                           else
8391                             no_cache=1
8392                           fi
8393
8394                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8395
8396 fi;
8397
8398           eval "$ac_cv_use_msgdlg"
8399           if test "$no_cache" != 1; then
8400             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8401           fi
8402
8403           if test "$wxUSE_MSGDLG" = yes; then
8404             echo "$as_me:$LINENO: result: yes" >&5
8405 echo "${ECHO_T}yes" >&6
8406           else
8407             echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6
8409           fi
8410
8411
8412           enablestring=
8413           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8414 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8415           no_cache=0
8416           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8417 if test "${enable_numberdlg+set}" = set; then
8418   enableval="$enable_numberdlg"
8419
8420                           if test "$enableval" = yes; then
8421                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8422                           else
8423                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8424                           fi
8425
8426 else
8427
8428                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8429                           if test "x$LINE" != x ; then
8430                             eval "DEFAULT_$LINE"
8431                           else
8432                             no_cache=1
8433                           fi
8434
8435                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8436
8437 fi;
8438
8439           eval "$ac_cv_use_numberdlg"
8440           if test "$no_cache" != 1; then
8441             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8442           fi
8443
8444           if test "$wxUSE_NUMBERDLG" = yes; then
8445             echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8447           else
8448             echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6
8450           fi
8451
8452
8453           enablestring=
8454           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8455 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8456           no_cache=0
8457           # Check whether --enable-splash or --disable-splash was given.
8458 if test "${enable_splash+set}" = set; then
8459   enableval="$enable_splash"
8460
8461                           if test "$enableval" = yes; then
8462                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8463                           else
8464                             ac_cv_use_splash='wxUSE_SPLASH=no'
8465                           fi
8466
8467 else
8468
8469                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8470                           if test "x$LINE" != x ; then
8471                             eval "DEFAULT_$LINE"
8472                           else
8473                             no_cache=1
8474                           fi
8475
8476                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8477
8478 fi;
8479
8480           eval "$ac_cv_use_splash"
8481           if test "$no_cache" != 1; then
8482             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8483           fi
8484
8485           if test "$wxUSE_SPLASH" = yes; then
8486             echo "$as_me:$LINENO: result: yes" >&5
8487 echo "${ECHO_T}yes" >&6
8488           else
8489             echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6
8491           fi
8492
8493
8494           enablestring=
8495           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8496 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8497           no_cache=0
8498           # Check whether --enable-textdlg or --disable-textdlg was given.
8499 if test "${enable_textdlg+set}" = set; then
8500   enableval="$enable_textdlg"
8501
8502                           if test "$enableval" = yes; then
8503                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8504                           else
8505                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8506                           fi
8507
8508 else
8509
8510                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8511                           if test "x$LINE" != x ; then
8512                             eval "DEFAULT_$LINE"
8513                           else
8514                             no_cache=1
8515                           fi
8516
8517                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8518
8519 fi;
8520
8521           eval "$ac_cv_use_textdlg"
8522           if test "$no_cache" != 1; then
8523             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8524           fi
8525
8526           if test "$wxUSE_TEXTDLG" = yes; then
8527             echo "$as_me:$LINENO: result: yes" >&5
8528 echo "${ECHO_T}yes" >&6
8529           else
8530             echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6
8532           fi
8533
8534
8535           enablestring=
8536           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8537 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8538           no_cache=0
8539           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8540 if test "${enable_tipdlg+set}" = set; then
8541   enableval="$enable_tipdlg"
8542
8543                           if test "$enableval" = yes; then
8544                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8545                           else
8546                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8547                           fi
8548
8549 else
8550
8551                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8552                           if test "x$LINE" != x ; then
8553                             eval "DEFAULT_$LINE"
8554                           else
8555                             no_cache=1
8556                           fi
8557
8558                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8559
8560 fi;
8561
8562           eval "$ac_cv_use_tipdlg"
8563           if test "$no_cache" != 1; then
8564             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8565           fi
8566
8567           if test "$wxUSE_STARTUP_TIPS" = yes; then
8568             echo "$as_me:$LINENO: result: yes" >&5
8569 echo "${ECHO_T}yes" >&6
8570           else
8571             echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8573           fi
8574
8575
8576           enablestring=
8577           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8578 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8579           no_cache=0
8580           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8581 if test "${enable_progressdlg+set}" = set; then
8582   enableval="$enable_progressdlg"
8583
8584                           if test "$enableval" = yes; then
8585                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8586                           else
8587                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8588                           fi
8589
8590 else
8591
8592                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8593                           if test "x$LINE" != x ; then
8594                             eval "DEFAULT_$LINE"
8595                           else
8596                             no_cache=1
8597                           fi
8598
8599                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8600
8601 fi;
8602
8603           eval "$ac_cv_use_progressdlg"
8604           if test "$no_cache" != 1; then
8605             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8606           fi
8607
8608           if test "$wxUSE_PROGRESSDLG" = yes; then
8609             echo "$as_me:$LINENO: result: yes" >&5
8610 echo "${ECHO_T}yes" >&6
8611           else
8612             echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8614           fi
8615
8616
8617           enablestring=
8618           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8619 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8620           no_cache=0
8621           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8622 if test "${enable_wizarddlg+set}" = set; then
8623   enableval="$enable_wizarddlg"
8624
8625                           if test "$enableval" = yes; then
8626                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8627                           else
8628                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8629                           fi
8630
8631 else
8632
8633                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8634                           if test "x$LINE" != x ; then
8635                             eval "DEFAULT_$LINE"
8636                           else
8637                             no_cache=1
8638                           fi
8639
8640                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8641
8642 fi;
8643
8644           eval "$ac_cv_use_wizarddlg"
8645           if test "$no_cache" != 1; then
8646             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8647           fi
8648
8649           if test "$wxUSE_WIZARDDLG" = yes; then
8650             echo "$as_me:$LINENO: result: yes" >&5
8651 echo "${ECHO_T}yes" >&6
8652           else
8653             echo "$as_me:$LINENO: result: no" >&5
8654 echo "${ECHO_T}no" >&6
8655           fi
8656
8657
8658
8659
8660           enablestring=
8661           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8662 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8663           no_cache=0
8664           # Check whether --enable-menus or --disable-menus was given.
8665 if test "${enable_menus+set}" = set; then
8666   enableval="$enable_menus"
8667
8668                           if test "$enableval" = yes; then
8669                             ac_cv_use_menus='wxUSE_MENUS=yes'
8670                           else
8671                             ac_cv_use_menus='wxUSE_MENUS=no'
8672                           fi
8673
8674 else
8675
8676                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8677                           if test "x$LINE" != x ; then
8678                             eval "DEFAULT_$LINE"
8679                           else
8680                             no_cache=1
8681                           fi
8682
8683                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8684
8685 fi;
8686
8687           eval "$ac_cv_use_menus"
8688           if test "$no_cache" != 1; then
8689             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8690           fi
8691
8692           if test "$wxUSE_MENUS" = yes; then
8693             echo "$as_me:$LINENO: result: yes" >&5
8694 echo "${ECHO_T}yes" >&6
8695           else
8696             echo "$as_me:$LINENO: result: no" >&5
8697 echo "${ECHO_T}no" >&6
8698           fi
8699
8700
8701           enablestring=
8702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8703 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8704           no_cache=0
8705           # Check whether --enable-miniframe or --disable-miniframe was given.
8706 if test "${enable_miniframe+set}" = set; then
8707   enableval="$enable_miniframe"
8708
8709                           if test "$enableval" = yes; then
8710                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8711                           else
8712                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8713                           fi
8714
8715 else
8716
8717                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8718                           if test "x$LINE" != x ; then
8719                             eval "DEFAULT_$LINE"
8720                           else
8721                             no_cache=1
8722                           fi
8723
8724                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8725
8726 fi;
8727
8728           eval "$ac_cv_use_miniframe"
8729           if test "$no_cache" != 1; then
8730             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8731           fi
8732
8733           if test "$wxUSE_MINIFRAME" = yes; then
8734             echo "$as_me:$LINENO: result: yes" >&5
8735 echo "${ECHO_T}yes" >&6
8736           else
8737             echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8739           fi
8740
8741
8742           enablestring=
8743           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8744 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
8745           no_cache=0
8746           # Check whether --enable-tooltips or --disable-tooltips was given.
8747 if test "${enable_tooltips+set}" = set; then
8748   enableval="$enable_tooltips"
8749
8750                           if test "$enableval" = yes; then
8751                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8752                           else
8753                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8754                           fi
8755
8756 else
8757
8758                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8759                           if test "x$LINE" != x ; then
8760                             eval "DEFAULT_$LINE"
8761                           else
8762                             no_cache=1
8763                           fi
8764
8765                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8766
8767 fi;
8768
8769           eval "$ac_cv_use_tooltips"
8770           if test "$no_cache" != 1; then
8771             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8772           fi
8773
8774           if test "$wxUSE_TOOLTIPS" = yes; then
8775             echo "$as_me:$LINENO: result: yes" >&5
8776 echo "${ECHO_T}yes" >&6
8777           else
8778             echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6
8780           fi
8781
8782
8783           enablestring=
8784           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8785 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
8786           no_cache=0
8787           # Check whether --enable-splines or --disable-splines was given.
8788 if test "${enable_splines+set}" = set; then
8789   enableval="$enable_splines"
8790
8791                           if test "$enableval" = yes; then
8792                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8793                           else
8794                             ac_cv_use_splines='wxUSE_SPLINES=no'
8795                           fi
8796
8797 else
8798
8799                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8800                           if test "x$LINE" != x ; then
8801                             eval "DEFAULT_$LINE"
8802                           else
8803                             no_cache=1
8804                           fi
8805
8806                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8807
8808 fi;
8809
8810           eval "$ac_cv_use_splines"
8811           if test "$no_cache" != 1; then
8812             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8813           fi
8814
8815           if test "$wxUSE_SPLINES" = yes; then
8816             echo "$as_me:$LINENO: result: yes" >&5
8817 echo "${ECHO_T}yes" >&6
8818           else
8819             echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6
8821           fi
8822
8823
8824           enablestring=
8825           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8826 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
8827           no_cache=0
8828           # Check whether --enable-validators or --disable-validators was given.
8829 if test "${enable_validators+set}" = set; then
8830   enableval="$enable_validators"
8831
8832                           if test "$enableval" = yes; then
8833                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8834                           else
8835                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8836                           fi
8837
8838 else
8839
8840                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8841                           if test "x$LINE" != x ; then
8842                             eval "DEFAULT_$LINE"
8843                           else
8844                             no_cache=1
8845                           fi
8846
8847                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8848
8849 fi;
8850
8851           eval "$ac_cv_use_validators"
8852           if test "$no_cache" != 1; then
8853             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8854           fi
8855
8856           if test "$wxUSE_VALIDATORS" = yes; then
8857             echo "$as_me:$LINENO: result: yes" >&5
8858 echo "${ECHO_T}yes" >&6
8859           else
8860             echo "$as_me:$LINENO: result: no" >&5
8861 echo "${ECHO_T}no" >&6
8862           fi
8863
8864
8865           enablestring=
8866           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8867 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
8868           no_cache=0
8869           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8870 if test "${enable_busyinfo+set}" = set; then
8871   enableval="$enable_busyinfo"
8872
8873                           if test "$enableval" = yes; then
8874                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8875                           else
8876                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8877                           fi
8878
8879 else
8880
8881                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8882                           if test "x$LINE" != x ; then
8883                             eval "DEFAULT_$LINE"
8884                           else
8885                             no_cache=1
8886                           fi
8887
8888                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8889
8890 fi;
8891
8892           eval "$ac_cv_use_busyinfo"
8893           if test "$no_cache" != 1; then
8894             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8895           fi
8896
8897           if test "$wxUSE_BUSYINFO" = yes; then
8898             echo "$as_me:$LINENO: result: yes" >&5
8899 echo "${ECHO_T}yes" >&6
8900           else
8901             echo "$as_me:$LINENO: result: no" >&5
8902 echo "${ECHO_T}no" >&6
8903           fi
8904
8905
8906           enablestring=
8907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8908 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
8909           no_cache=0
8910           # Check whether --enable-joystick or --disable-joystick was given.
8911 if test "${enable_joystick+set}" = set; then
8912   enableval="$enable_joystick"
8913
8914                           if test "$enableval" = yes; then
8915                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8916                           else
8917                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8918                           fi
8919
8920 else
8921
8922                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8923                           if test "x$LINE" != x ; then
8924                             eval "DEFAULT_$LINE"
8925                           else
8926                             no_cache=1
8927                           fi
8928
8929                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8930
8931 fi;
8932
8933           eval "$ac_cv_use_joystick"
8934           if test "$no_cache" != 1; then
8935             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8936           fi
8937
8938           if test "$wxUSE_JOYSTICK" = yes; then
8939             echo "$as_me:$LINENO: result: yes" >&5
8940 echo "${ECHO_T}yes" >&6
8941           else
8942             echo "$as_me:$LINENO: result: no" >&5
8943 echo "${ECHO_T}no" >&6
8944           fi
8945
8946
8947           enablestring=
8948           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8949 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
8950           no_cache=0
8951           # Check whether --enable-metafile or --disable-metafile was given.
8952 if test "${enable_metafile+set}" = set; then
8953   enableval="$enable_metafile"
8954
8955                           if test "$enableval" = yes; then
8956                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8957                           else
8958                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8959                           fi
8960
8961 else
8962
8963                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8964                           if test "x$LINE" != x ; then
8965                             eval "DEFAULT_$LINE"
8966                           else
8967                             no_cache=1
8968                           fi
8969
8970                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8971
8972 fi;
8973
8974           eval "$ac_cv_use_metafile"
8975           if test "$no_cache" != 1; then
8976             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8977           fi
8978
8979           if test "$wxUSE_METAFILE" = yes; then
8980             echo "$as_me:$LINENO: result: yes" >&5
8981 echo "${ECHO_T}yes" >&6
8982           else
8983             echo "$as_me:$LINENO: result: no" >&5
8984 echo "${ECHO_T}no" >&6
8985           fi
8986
8987
8988           enablestring=
8989           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
8990 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
8991           no_cache=0
8992           # Check whether --enable-dragimage or --disable-dragimage was given.
8993 if test "${enable_dragimage+set}" = set; then
8994   enableval="$enable_dragimage"
8995
8996                           if test "$enableval" = yes; then
8997                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8998                           else
8999                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9000                           fi
9001
9002 else
9003
9004                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9005                           if test "x$LINE" != x ; then
9006                             eval "DEFAULT_$LINE"
9007                           else
9008                             no_cache=1
9009                           fi
9010
9011                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9012
9013 fi;
9014
9015           eval "$ac_cv_use_dragimage"
9016           if test "$no_cache" != 1; then
9017             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9018           fi
9019
9020           if test "$wxUSE_DRAGIMAGE" = yes; then
9021             echo "$as_me:$LINENO: result: yes" >&5
9022 echo "${ECHO_T}yes" >&6
9023           else
9024             echo "$as_me:$LINENO: result: no" >&5
9025 echo "${ECHO_T}no" >&6
9026           fi
9027
9028
9029           enablestring=
9030           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9031 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9032           no_cache=0
9033           # Check whether --enable-accessibility or --disable-accessibility was given.
9034 if test "${enable_accessibility+set}" = set; then
9035   enableval="$enable_accessibility"
9036
9037                           if test "$enableval" = yes; then
9038                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9039                           else
9040                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9041                           fi
9042
9043 else
9044
9045                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9046                           if test "x$LINE" != x ; then
9047                             eval "DEFAULT_$LINE"
9048                           else
9049                             no_cache=1
9050                           fi
9051
9052                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9053
9054 fi;
9055
9056           eval "$ac_cv_use_accessibility"
9057           if test "$no_cache" != 1; then
9058             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9059           fi
9060
9061           if test "$wxUSE_ACCESSIBILITY" = yes; then
9062             echo "$as_me:$LINENO: result: yes" >&5
9063 echo "${ECHO_T}yes" >&6
9064           else
9065             echo "$as_me:$LINENO: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9067           fi
9068
9069
9070
9071
9072           enablestring=
9073           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9074 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9075           no_cache=0
9076           # Check whether --enable-palette or --disable-palette was given.
9077 if test "${enable_palette+set}" = set; then
9078   enableval="$enable_palette"
9079
9080                           if test "$enableval" = yes; then
9081                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9082                           else
9083                             ac_cv_use_palette='wxUSE_PALETTE=no'
9084                           fi
9085
9086 else
9087
9088                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9089                           if test "x$LINE" != x ; then
9090                             eval "DEFAULT_$LINE"
9091                           else
9092                             no_cache=1
9093                           fi
9094
9095                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9096
9097 fi;
9098
9099           eval "$ac_cv_use_palette"
9100           if test "$no_cache" != 1; then
9101             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9102           fi
9103
9104           if test "$wxUSE_PALETTE" = yes; then
9105             echo "$as_me:$LINENO: result: yes" >&5
9106 echo "${ECHO_T}yes" >&6
9107           else
9108             echo "$as_me:$LINENO: result: no" >&5
9109 echo "${ECHO_T}no" >&6
9110           fi
9111
9112
9113           enablestring=
9114           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9115 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9116           no_cache=0
9117           # Check whether --enable-image or --disable-image was given.
9118 if test "${enable_image+set}" = set; then
9119   enableval="$enable_image"
9120
9121                           if test "$enableval" = yes; then
9122                             ac_cv_use_image='wxUSE_IMAGE=yes'
9123                           else
9124                             ac_cv_use_image='wxUSE_IMAGE=no'
9125                           fi
9126
9127 else
9128
9129                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9130                           if test "x$LINE" != x ; then
9131                             eval "DEFAULT_$LINE"
9132                           else
9133                             no_cache=1
9134                           fi
9135
9136                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9137
9138 fi;
9139
9140           eval "$ac_cv_use_image"
9141           if test "$no_cache" != 1; then
9142             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9143           fi
9144
9145           if test "$wxUSE_IMAGE" = yes; then
9146             echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6
9148           else
9149             echo "$as_me:$LINENO: result: no" >&5
9150 echo "${ECHO_T}no" >&6
9151           fi
9152
9153
9154           enablestring=
9155           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9156 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9157           no_cache=0
9158           # Check whether --enable-gif or --disable-gif was given.
9159 if test "${enable_gif+set}" = set; then
9160   enableval="$enable_gif"
9161
9162                           if test "$enableval" = yes; then
9163                             ac_cv_use_gif='wxUSE_GIF=yes'
9164                           else
9165                             ac_cv_use_gif='wxUSE_GIF=no'
9166                           fi
9167
9168 else
9169
9170                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9171                           if test "x$LINE" != x ; then
9172                             eval "DEFAULT_$LINE"
9173                           else
9174                             no_cache=1
9175                           fi
9176
9177                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9178
9179 fi;
9180
9181           eval "$ac_cv_use_gif"
9182           if test "$no_cache" != 1; then
9183             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9184           fi
9185
9186           if test "$wxUSE_GIF" = yes; then
9187             echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6
9189           else
9190             echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9192           fi
9193
9194
9195           enablestring=
9196           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9197 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9198           no_cache=0
9199           # Check whether --enable-pcx or --disable-pcx was given.
9200 if test "${enable_pcx+set}" = set; then
9201   enableval="$enable_pcx"
9202
9203                           if test "$enableval" = yes; then
9204                             ac_cv_use_pcx='wxUSE_PCX=yes'
9205                           else
9206                             ac_cv_use_pcx='wxUSE_PCX=no'
9207                           fi
9208
9209 else
9210
9211                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9212                           if test "x$LINE" != x ; then
9213                             eval "DEFAULT_$LINE"
9214                           else
9215                             no_cache=1
9216                           fi
9217
9218                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9219
9220 fi;
9221
9222           eval "$ac_cv_use_pcx"
9223           if test "$no_cache" != 1; then
9224             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9225           fi
9226
9227           if test "$wxUSE_PCX" = yes; then
9228             echo "$as_me:$LINENO: result: yes" >&5
9229 echo "${ECHO_T}yes" >&6
9230           else
9231             echo "$as_me:$LINENO: result: no" >&5
9232 echo "${ECHO_T}no" >&6
9233           fi
9234
9235
9236           enablestring=
9237           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9238 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9239           no_cache=0
9240           # Check whether --enable-iff or --disable-iff was given.
9241 if test "${enable_iff+set}" = set; then
9242   enableval="$enable_iff"
9243
9244                           if test "$enableval" = yes; then
9245                             ac_cv_use_iff='wxUSE_IFF=yes'
9246                           else
9247                             ac_cv_use_iff='wxUSE_IFF=no'
9248                           fi
9249
9250 else
9251
9252                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9253                           if test "x$LINE" != x ; then
9254                             eval "DEFAULT_$LINE"
9255                           else
9256                             no_cache=1
9257                           fi
9258
9259                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9260
9261 fi;
9262
9263           eval "$ac_cv_use_iff"
9264           if test "$no_cache" != 1; then
9265             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9266           fi
9267
9268           if test "$wxUSE_IFF" = yes; then
9269             echo "$as_me:$LINENO: result: yes" >&5
9270 echo "${ECHO_T}yes" >&6
9271           else
9272             echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9274           fi
9275
9276
9277           enablestring=
9278           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9279 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9280           no_cache=0
9281           # Check whether --enable-pnm or --disable-pnm was given.
9282 if test "${enable_pnm+set}" = set; then
9283   enableval="$enable_pnm"
9284
9285                           if test "$enableval" = yes; then
9286                             ac_cv_use_pnm='wxUSE_PNM=yes'
9287                           else
9288                             ac_cv_use_pnm='wxUSE_PNM=no'
9289                           fi
9290
9291 else
9292
9293                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9294                           if test "x$LINE" != x ; then
9295                             eval "DEFAULT_$LINE"
9296                           else
9297                             no_cache=1
9298                           fi
9299
9300                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9301
9302 fi;
9303
9304           eval "$ac_cv_use_pnm"
9305           if test "$no_cache" != 1; then
9306             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9307           fi
9308
9309           if test "$wxUSE_PNM" = yes; then
9310             echo "$as_me:$LINENO: result: yes" >&5
9311 echo "${ECHO_T}yes" >&6
9312           else
9313             echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9315           fi
9316
9317
9318           enablestring=
9319           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9320 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9321           no_cache=0
9322           # Check whether --enable-xpm or --disable-xpm was given.
9323 if test "${enable_xpm+set}" = set; then
9324   enableval="$enable_xpm"
9325
9326                           if test "$enableval" = yes; then
9327                             ac_cv_use_xpm='wxUSE_XPM=yes'
9328                           else
9329                             ac_cv_use_xpm='wxUSE_XPM=no'
9330                           fi
9331
9332 else
9333
9334                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9335                           if test "x$LINE" != x ; then
9336                             eval "DEFAULT_$LINE"
9337                           else
9338                             no_cache=1
9339                           fi
9340
9341                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9342
9343 fi;
9344
9345           eval "$ac_cv_use_xpm"
9346           if test "$no_cache" != 1; then
9347             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9348           fi
9349
9350           if test "$wxUSE_XPM" = yes; then
9351             echo "$as_me:$LINENO: result: yes" >&5
9352 echo "${ECHO_T}yes" >&6
9353           else
9354             echo "$as_me:$LINENO: result: no" >&5
9355 echo "${ECHO_T}no" >&6
9356           fi
9357
9358
9359           enablestring=
9360           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9361 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9362           no_cache=0
9363           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9364 if test "${enable_ico_cur+set}" = set; then
9365   enableval="$enable_ico_cur"
9366
9367                           if test "$enableval" = yes; then
9368                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9369                           else
9370                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9371                           fi
9372
9373 else
9374
9375                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9376                           if test "x$LINE" != x ; then
9377                             eval "DEFAULT_$LINE"
9378                           else
9379                             no_cache=1
9380                           fi
9381
9382                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9383
9384 fi;
9385
9386           eval "$ac_cv_use_ico_cur"
9387           if test "$no_cache" != 1; then
9388             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9389           fi
9390
9391           if test "$wxUSE_ICO_CUR" = yes; then
9392             echo "$as_me:$LINENO: result: yes" >&5
9393 echo "${ECHO_T}yes" >&6
9394           else
9395             echo "$as_me:$LINENO: result: no" >&5
9396 echo "${ECHO_T}no" >&6
9397           fi
9398
9399
9400 fi
9401
9402 case "${host}" in
9403   *-pc-os2_emx | *-pc-os2-emx )
9404     PATH_IFS=';'
9405     LEX_STEM="lexyy"
9406   ;;
9407   *)
9408     PATH_IFS=':'
9409     LEX_STEM="lex.yy"
9410   ;;
9411 esac
9412
9413
9414
9415           echo "saving argument cache $wx_arg_cache_file"
9416           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9417
9418
9419
9420 echo "$as_me:$LINENO: checking for toolkit" >&5
9421 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9422
9423 # In Wine, we need to default to MSW, not GTK or MOTIF
9424 if test "$wxUSE_WINE" = "yes"; then
9425     DEFAULT_DEFAULT_wxUSE_GTK=0
9426     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9427     DEFAULT_DEFAULT_wxUSE_MSW=1
9428 fi
9429
9430 if test "$wxUSE_GUI" = "yes"; then
9431
9432     if test "$USE_BEOS" = 1; then
9433         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9434 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9435    { (exit 1); exit 1; }; }
9436     fi
9437
9438     if test "$TOOLKIT_GIVEN" = 1; then
9439             for toolkit in `echo $ALL_TOOLKITS`; do
9440         var=wxUSE_$toolkit
9441         eval "value=\$${var}"
9442         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9443       done
9444     else
9445             for toolkit in `echo $ALL_TOOLKITS`; do
9446         if test "$has_toolkit_in_cache" != 1; then
9447           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9448         else
9449           var=DEFAULT_wxUSE_$toolkit
9450         fi
9451         eval "wxUSE_$toolkit=\$${var}"
9452       done
9453     fi
9454
9455             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9456                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9457                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9458
9459         case "${host}" in
9460       *-pc-os2_emx | *-pc-os2-emx )
9461         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9462     esac
9463
9464     case "$NUM_TOOLKITS" in
9465       1)
9466       ;;
9467       0)
9468         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9469 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9470    { (exit 1); exit 1; }; }
9471       ;;
9472       *)
9473         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9474 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9475    { (exit 1); exit 1; }; }
9476     esac
9477
9478         for toolkit in `echo $ALL_TOOLKITS`; do
9479       var=wxUSE_$toolkit
9480       eval "value=\$${var}"
9481       if test "x$value" != x; then
9482         cache_var=CACHE_$toolkit
9483         eval "cache=\$${cache_var}"
9484         if test "$cache" = 1; then
9485           echo "$var=$value" >> ${wx_arg_cache_file}
9486         fi
9487         if test "$value" = 1; then
9488           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
9489           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9490 echo "${ECHO_T}$toolkit_echo" >&6
9491         fi
9492       fi
9493     done
9494 else
9495     echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9496 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9497 fi
9498
9499 wants_win32=0
9500 doesnt_want_win32=0
9501 case "${host}" in
9502   *-*-cygwin*)
9503       if test "$wxUSE_MSW" = 1 ; then
9504         wants_win32=1
9505       else
9506         doesnt_want_win32=1
9507       fi
9508   ;;
9509   *-*-mingw*)
9510       wants_win32=1
9511   ;;
9512 esac
9513
9514 if test "$wxUSE_WINE" = "yes"; then
9515     wants_win32=1
9516         CC=winegcc
9517     CXX=wineg++
9518     RESCOMP=wrc
9519 fi
9520
9521 if test "$wants_win32" = 1 ; then
9522     USE_UNIX=0
9523     USE_WIN32=1
9524     cat >>confdefs.h <<\_ACEOF
9525 #define __WIN32__ 1
9526 _ACEOF
9527
9528     cat >>confdefs.h <<\_ACEOF
9529 #define __WIN95__ 1
9530 _ACEOF
9531
9532     cat >>confdefs.h <<\_ACEOF
9533 #define __WINDOWS__ 1
9534 _ACEOF
9535
9536     cat >>confdefs.h <<\_ACEOF
9537 #define __GNUWIN32__ 1
9538 _ACEOF
9539
9540     cat >>confdefs.h <<\_ACEOF
9541 #define STRICT 1
9542 _ACEOF
9543
9544     cat >>confdefs.h <<\_ACEOF
9545 #define WINVER 0x0400
9546 _ACEOF
9547
9548 fi
9549 if test "$doesnt_want_win32" = 1 ; then
9550     USE_UNIX=1
9551     USE_WIN32=0
9552 fi
9553
9554 if test "$USE_UNIX" = 1 ; then
9555     wxUSE_UNIX=yes
9556     cat >>confdefs.h <<\_ACEOF
9557 #define __UNIX__ 1
9558 _ACEOF
9559
9560 fi
9561
9562
9563 cat >confcache <<\_ACEOF
9564 # This file is a shell script that caches the results of configure
9565 # tests run on this system so they can be shared between configure
9566 # scripts and configure runs, see configure's option --config-cache.
9567 # It is not useful on other systems.  If it contains results you don't
9568 # want to keep, you may remove or edit it.
9569 #
9570 # config.status only pays attention to the cache file if you give it
9571 # the --recheck option to rerun configure.
9572 #
9573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9575 # following values.
9576
9577 _ACEOF
9578
9579 # The following way of writing the cache mishandles newlines in values,
9580 # but we know of no workaround that is simple, portable, and efficient.
9581 # So, don't put newlines in cache variables' values.
9582 # Ultrix sh set writes to stderr and can't be redirected directly,
9583 # and sets the high bit in the cache file unless we assign to the vars.
9584 {
9585   (set) 2>&1 |
9586     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9587     *ac_space=\ *)
9588       # `set' does not quote correctly, so add quotes (double-quote
9589       # substitution turns \\\\ into \\, and sed turns \\ into \).
9590       sed -n \
9591         "s/'/'\\\\''/g;
9592           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9593       ;;
9594     *)
9595       # `set' quotes correctly as required by POSIX, so do not add quotes.
9596       sed -n \
9597         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9598       ;;
9599     esac;
9600 } |
9601   sed '
9602      t clear
9603      : clear
9604      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9605      t end
9606      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9607      : end' >>confcache
9608 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9609   if test -w $cache_file; then
9610     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9611     cat confcache >$cache_file
9612   else
9613     echo "not updating unwritable cache $cache_file"
9614   fi
9615 fi
9616 rm -f confcache
9617
9618 if test "$build" != "$host" ; then
9619     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9620         CC=$host_alias-gcc
9621         CXX=$host_alias-c++
9622         AR=$host_alias-ar
9623         RANLIB=$host_alias-ranlib
9624         DLLTOOL=$host_alias-dlltool
9625         RESCOMP=$host_alias-windres
9626         LD=$host_alias-ld
9627         NM=$host_alias-nm
9628         STRIP=$host_alias-strip
9629     else
9630         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9631 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9632    { (exit 1); exit 1; }; }
9633     fi
9634 fi
9635
9636 CFLAGS=${CFLAGS:=}
9637 ac_ext=c
9638 ac_cpp='$CPP $CPPFLAGS'
9639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9642 if test -n "$ac_tool_prefix"; then
9643   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9645 echo "$as_me:$LINENO: checking for $ac_word" >&5
9646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9647 if test "${ac_cv_prog_CC+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   if test -n "$CC"; then
9651   ac_cv_prog_CC="$CC" # Let the user override the test.
9652 else
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656   IFS=$as_save_IFS
9657   test -z "$as_dir" && as_dir=.
9658   for ac_exec_ext in '' $ac_executable_extensions; do
9659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662     break 2
9663   fi
9664 done
9665 done
9666
9667 fi
9668 fi
9669 CC=$ac_cv_prog_CC
9670 if test -n "$CC"; then
9671   echo "$as_me:$LINENO: result: $CC" >&5
9672 echo "${ECHO_T}$CC" >&6
9673 else
9674   echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9676 fi
9677
9678 fi
9679 if test -z "$ac_cv_prog_CC"; then
9680   ac_ct_CC=$CC
9681   # Extract the first word of "gcc", so it can be a program name with args.
9682 set dummy gcc; ac_word=$2
9683 echo "$as_me:$LINENO: checking for $ac_word" >&5
9684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   if test -n "$ac_ct_CC"; then
9689   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9690 else
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9693 do
9694   IFS=$as_save_IFS
9695   test -z "$as_dir" && as_dir=.
9696   for ac_exec_ext in '' $ac_executable_extensions; do
9697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698     ac_cv_prog_ac_ct_CC="gcc"
9699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700     break 2
9701   fi
9702 done
9703 done
9704
9705 fi
9706 fi
9707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9708 if test -n "$ac_ct_CC"; then
9709   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9710 echo "${ECHO_T}$ac_ct_CC" >&6
9711 else
9712   echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9714 fi
9715
9716   CC=$ac_ct_CC
9717 else
9718   CC="$ac_cv_prog_CC"
9719 fi
9720
9721 if test -z "$CC"; then
9722   if test -n "$ac_tool_prefix"; then
9723   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9724 set dummy ${ac_tool_prefix}cc; ac_word=$2
9725 echo "$as_me:$LINENO: checking for $ac_word" >&5
9726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9727 if test "${ac_cv_prog_CC+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   if test -n "$CC"; then
9731   ac_cv_prog_CC="$CC" # Let the user override the test.
9732 else
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9735 do
9736   IFS=$as_save_IFS
9737   test -z "$as_dir" && as_dir=.
9738   for ac_exec_ext in '' $ac_executable_extensions; do
9739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740     ac_cv_prog_CC="${ac_tool_prefix}cc"
9741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9742     break 2
9743   fi
9744 done
9745 done
9746
9747 fi
9748 fi
9749 CC=$ac_cv_prog_CC
9750 if test -n "$CC"; then
9751   echo "$as_me:$LINENO: result: $CC" >&5
9752 echo "${ECHO_T}$CC" >&6
9753 else
9754   echo "$as_me:$LINENO: result: no" >&5
9755 echo "${ECHO_T}no" >&6
9756 fi
9757
9758 fi
9759 if test -z "$ac_cv_prog_CC"; then
9760   ac_ct_CC=$CC
9761   # Extract the first word of "cc", so it can be a program name with args.
9762 set dummy cc; ac_word=$2
9763 echo "$as_me:$LINENO: checking for $ac_word" >&5
9764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   if test -n "$ac_ct_CC"; then
9769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9770 else
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774   IFS=$as_save_IFS
9775   test -z "$as_dir" && as_dir=.
9776   for ac_exec_ext in '' $ac_executable_extensions; do
9777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778     ac_cv_prog_ac_ct_CC="cc"
9779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780     break 2
9781   fi
9782 done
9783 done
9784
9785 fi
9786 fi
9787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9788 if test -n "$ac_ct_CC"; then
9789   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9790 echo "${ECHO_T}$ac_ct_CC" >&6
9791 else
9792   echo "$as_me:$LINENO: result: no" >&5
9793 echo "${ECHO_T}no" >&6
9794 fi
9795
9796   CC=$ac_ct_CC
9797 else
9798   CC="$ac_cv_prog_CC"
9799 fi
9800
9801 fi
9802 if test -z "$CC"; then
9803   # Extract the first word of "cc", so it can be a program name with args.
9804 set dummy cc; ac_word=$2
9805 echo "$as_me:$LINENO: checking for $ac_word" >&5
9806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9807 if test "${ac_cv_prog_CC+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   if test -n "$CC"; then
9811   ac_cv_prog_CC="$CC" # Let the user override the test.
9812 else
9813   ac_prog_rejected=no
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817   IFS=$as_save_IFS
9818   test -z "$as_dir" && as_dir=.
9819   for ac_exec_ext in '' $ac_executable_extensions; do
9820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9822        ac_prog_rejected=yes
9823        continue
9824      fi
9825     ac_cv_prog_CC="cc"
9826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9827     break 2
9828   fi
9829 done
9830 done
9831
9832 if test $ac_prog_rejected = yes; then
9833   # We found a bogon in the path, so make sure we never use it.
9834   set dummy $ac_cv_prog_CC
9835   shift
9836   if test $# != 0; then
9837     # We chose a different compiler from the bogus one.
9838     # However, it has the same basename, so the bogon will be chosen
9839     # first if we set CC to just the basename; use the full file name.
9840     shift
9841     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9842   fi
9843 fi
9844 fi
9845 fi
9846 CC=$ac_cv_prog_CC
9847 if test -n "$CC"; then
9848   echo "$as_me:$LINENO: result: $CC" >&5
9849 echo "${ECHO_T}$CC" >&6
9850 else
9851   echo "$as_me:$LINENO: result: no" >&5
9852 echo "${ECHO_T}no" >&6
9853 fi
9854
9855 fi
9856 if test -z "$CC"; then
9857   if test -n "$ac_tool_prefix"; then
9858   for ac_prog in cl
9859   do
9860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9862 echo "$as_me:$LINENO: checking for $ac_word" >&5
9863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9864 if test "${ac_cv_prog_CC+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   if test -n "$CC"; then
9868   ac_cv_prog_CC="$CC" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875   for ac_exec_ext in '' $ac_executable_extensions; do
9876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882 done
9883
9884 fi
9885 fi
9886 CC=$ac_cv_prog_CC
9887 if test -n "$CC"; then
9888   echo "$as_me:$LINENO: result: $CC" >&5
9889 echo "${ECHO_T}$CC" >&6
9890 else
9891   echo "$as_me:$LINENO: result: no" >&5
9892 echo "${ECHO_T}no" >&6
9893 fi
9894
9895     test -n "$CC" && break
9896   done
9897 fi
9898 if test -z "$CC"; then
9899   ac_ct_CC=$CC
9900   for ac_prog in cl
9901 do
9902   # Extract the first word of "$ac_prog", so it can be a program name with args.
9903 set dummy $ac_prog; ac_word=$2
9904 echo "$as_me:$LINENO: checking for $ac_word" >&5
9905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909   if test -n "$ac_ct_CC"; then
9910   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9911 else
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9914 do
9915   IFS=$as_save_IFS
9916   test -z "$as_dir" && as_dir=.
9917   for ac_exec_ext in '' $ac_executable_extensions; do
9918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919     ac_cv_prog_ac_ct_CC="$ac_prog"
9920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921     break 2
9922   fi
9923 done
9924 done
9925
9926 fi
9927 fi
9928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9929 if test -n "$ac_ct_CC"; then
9930   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9931 echo "${ECHO_T}$ac_ct_CC" >&6
9932 else
9933   echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9935 fi
9936
9937   test -n "$ac_ct_CC" && break
9938 done
9939
9940   CC=$ac_ct_CC
9941 fi
9942
9943 fi
9944
9945
9946 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9947 See \`config.log' for more details." >&5
9948 echo "$as_me: error: no acceptable C compiler found in \$PATH
9949 See \`config.log' for more details." >&2;}
9950    { (exit 1); exit 1; }; }
9951
9952 # Provide some information about the compiler.
9953 echo "$as_me:$LINENO:" \
9954      "checking for C compiler version" >&5
9955 ac_compiler=`set X $ac_compile; echo $2`
9956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9957   (eval $ac_compiler --version </dev/null >&5) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }
9961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9962   (eval $ac_compiler -v </dev/null >&5) 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }
9966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9967   (eval $ac_compiler -V </dev/null >&5) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }
9971
9972 cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979
9980 int
9981 main ()
9982 {
9983
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 ac_clean_files_save=$ac_clean_files
9989 ac_clean_files="$ac_clean_files a.out a.exe b.out"
9990 # Try to create an executable without -o first, disregard a.out.
9991 # It will help us diagnose broken compilers, and finding out an intuition
9992 # of exeext.
9993 echo "$as_me:$LINENO: checking for C compiler default output" >&5
9994 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9997   (eval $ac_link_default) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; then
10001   # Find the output, starting from the most likely.  This scheme is
10002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10003 # resort.
10004
10005 # Be careful to initialize this variable, since it used to be cached.
10006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10007 ac_cv_exeext=
10008 # b.out is created by i960 compilers.
10009 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10010 do
10011   test -f "$ac_file" || continue
10012   case $ac_file in
10013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10014         ;;
10015     conftest.$ac_ext )
10016         # This is the source file.
10017         ;;
10018     [ab].out )
10019         # We found the default executable, but exeext='' is most
10020         # certainly right.
10021         break;;
10022     *.* )
10023         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10024         # FIXME: I believe we export ac_cv_exeext for Libtool,
10025         # but it would be cool to find out if it's true.  Does anybody
10026         # maintain Libtool? --akim.
10027         export ac_cv_exeext
10028         break;;
10029     * )
10030         break;;
10031   esac
10032 done
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10038 See \`config.log' for more details." >&5
10039 echo "$as_me: error: C compiler cannot create executables
10040 See \`config.log' for more details." >&2;}
10041    { (exit 77); exit 77; }; }
10042 fi
10043
10044 ac_exeext=$ac_cv_exeext
10045 echo "$as_me:$LINENO: result: $ac_file" >&5
10046 echo "${ECHO_T}$ac_file" >&6
10047
10048 # Check the compiler produces executables we can run.  If not, either
10049 # the compiler is broken, or we cross compile.
10050 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10051 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10052 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10053 # If not cross compiling, check that we can run a simple program.
10054 if test "$cross_compiling" != yes; then
10055   if { ac_try='./$ac_file'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061     cross_compiling=no
10062   else
10063     if test "$cross_compiling" = maybe; then
10064         cross_compiling=yes
10065     else
10066         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10067 If you meant to cross compile, use \`--host'.
10068 See \`config.log' for more details." >&5
10069 echo "$as_me: error: cannot run C compiled programs.
10070 If you meant to cross compile, use \`--host'.
10071 See \`config.log' for more details." >&2;}
10072    { (exit 1); exit 1; }; }
10073     fi
10074   fi
10075 fi
10076 echo "$as_me:$LINENO: result: yes" >&5
10077 echo "${ECHO_T}yes" >&6
10078
10079 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10080 ac_clean_files=$ac_clean_files_save
10081 # Check the compiler produces executables we can run.  If not, either
10082 # the compiler is broken, or we cross compile.
10083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10086 echo "${ECHO_T}$cross_compiling" >&6
10087
10088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091   (eval $ac_link) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; then
10095   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10096 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10097 # work properly (i.e., refer to `conftest.exe'), while it won't with
10098 # `rm'.
10099 for ac_file in conftest.exe conftest conftest.*; do
10100   test -f "$ac_file" || continue
10101   case $ac_file in
10102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10103     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10104           export ac_cv_exeext
10105           break;;
10106     * ) break;;
10107   esac
10108 done
10109 else
10110   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10111 See \`config.log' for more details." >&5
10112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10113 See \`config.log' for more details." >&2;}
10114    { (exit 1); exit 1; }; }
10115 fi
10116
10117 rm -f conftest$ac_cv_exeext
10118 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10119 echo "${ECHO_T}$ac_cv_exeext" >&6
10120
10121 rm -f conftest.$ac_ext
10122 EXEEXT=$ac_cv_exeext
10123 ac_exeext=$EXEEXT
10124 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10125 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10126 if test "${ac_cv_objext+set}" = set; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   cat >conftest.$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136
10137 int
10138 main ()
10139 {
10140
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.o conftest.obj
10146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147   (eval $ac_compile) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; then
10151   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10152   case $ac_file in
10153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10154     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10155        break;;
10156   esac
10157 done
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10163 See \`config.log' for more details." >&5
10164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10165 See \`config.log' for more details." >&2;}
10166    { (exit 1); exit 1; }; }
10167 fi
10168
10169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10172 echo "${ECHO_T}$ac_cv_objext" >&6
10173 OBJEXT=$ac_cv_objext
10174 ac_objext=$OBJEXT
10175 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   cat >conftest.$ac_ext <<_ACEOF
10181 #line $LINENO "configure"
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 int
10189 main ()
10190 {
10191 #ifndef __GNUC__
10192        choke me
10193 #endif
10194
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201   (eval $ac_compile) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -s conftest.$ac_objext'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; }; then
10211   ac_compiler_gnu=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_compiler_gnu=no
10217 fi
10218 rm -f conftest.$ac_objext conftest.$ac_ext
10219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10220
10221 fi
10222 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10224 GCC=`test $ac_compiler_gnu = yes && echo yes`
10225 ac_test_CFLAGS=${CFLAGS+set}
10226 ac_save_CFLAGS=$CFLAGS
10227 CFLAGS="-g"
10228 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10230 if test "${ac_cv_prog_cc_g+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 #line $LINENO "configure"
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240
10241 int
10242 main ()
10243 {
10244
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251   (eval $ac_compile) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -s conftest.$ac_objext'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_prog_cc_g=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_prog_cc_g=no
10267 fi
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10269 fi
10270 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10272 if test "$ac_test_CFLAGS" = set; then
10273   CFLAGS=$ac_save_CFLAGS
10274 elif test $ac_cv_prog_cc_g = yes; then
10275   if test "$GCC" = yes; then
10276     CFLAGS="-g -O2"
10277   else
10278     CFLAGS="-g"
10279   fi
10280 else
10281   if test "$GCC" = yes; then
10282     CFLAGS="-O2"
10283   else
10284     CFLAGS=
10285   fi
10286 fi
10287 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10288 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10289 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   ac_cv_prog_cc_stdc=no
10293 ac_save_CC=$CC
10294 cat >conftest.$ac_ext <<_ACEOF
10295 #line $LINENO "configure"
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301 #include <stdarg.h>
10302 #include <stdio.h>
10303 #include <sys/types.h>
10304 #include <sys/stat.h>
10305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10306 struct buf { int x; };
10307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10308 static char *e (p, i)
10309      char **p;
10310      int i;
10311 {
10312   return p[i];
10313 }
10314 static char *f (char * (*g) (char **, int), char **p, ...)
10315 {
10316   char *s;
10317   va_list v;
10318   va_start (v,p);
10319   s = g (p, va_arg (v,int));
10320   va_end (v);
10321   return s;
10322 }
10323 int test (int i, double x);
10324 struct s1 {int (*f) (int a);};
10325 struct s2 {int (*f) (double a);};
10326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10327 int argc;
10328 char **argv;
10329 int
10330 main ()
10331 {
10332 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 # Don't try gcc -ansi; that turns off useful extensions and
10338 # breaks some systems' header files.
10339 # AIX                   -qlanglvl=ansi
10340 # Ultrix and OSF/1      -std1
10341 # HP-UX 10.20 and later -Ae
10342 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10343 # SVR4                  -Xc -D__EXTENSIONS__
10344 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10345 do
10346   CC="$ac_save_CC $ac_arg"
10347   rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349   (eval $ac_compile) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } &&
10353          { ac_try='test -s conftest.$ac_objext'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; }; then
10359   ac_cv_prog_cc_stdc=$ac_arg
10360 break
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365 fi
10366 rm -f conftest.$ac_objext
10367 done
10368 rm -f conftest.$ac_ext conftest.$ac_objext
10369 CC=$ac_save_CC
10370
10371 fi
10372
10373 case "x$ac_cv_prog_cc_stdc" in
10374   x|xno)
10375     echo "$as_me:$LINENO: result: none needed" >&5
10376 echo "${ECHO_T}none needed" >&6 ;;
10377   *)
10378     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10379 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10380     CC="$CC $ac_cv_prog_cc_stdc" ;;
10381 esac
10382
10383 # Some people use a C++ compiler to compile C.  Since we use `exit',
10384 # in C++ we need to declare it.  In case someone uses the same compiler
10385 # for both compiling C and C++ we need to have the C++ compiler decide
10386 # the declaration of exit, since it's the most demanding environment.
10387 cat >conftest.$ac_ext <<_ACEOF
10388 #ifndef __cplusplus
10389   choke me
10390 #endif
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394   (eval $ac_compile) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } &&
10398          { ac_try='test -s conftest.$ac_objext'
10399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400   (eval $ac_try) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); }; }; then
10404   for ac_declaration in \
10405    ''\
10406    '#include <stdlib.h>' \
10407    'extern "C" void std::exit (int) throw (); using std::exit;' \
10408    'extern "C" void std::exit (int); using std::exit;' \
10409    'extern "C" void exit (int) throw ();' \
10410    'extern "C" void exit (int);' \
10411    'void exit (int);'
10412 do
10413   cat >conftest.$ac_ext <<_ACEOF
10414 #line $LINENO "configure"
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420 #include <stdlib.h>
10421 $ac_declaration
10422 int
10423 main ()
10424 {
10425 exit (42);
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432   (eval $ac_compile) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } &&
10436          { ac_try='test -s conftest.$ac_objext'
10437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438   (eval $ac_try) 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; }; then
10442   :
10443 else
10444   echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 continue
10448 fi
10449 rm -f conftest.$ac_objext conftest.$ac_ext
10450   cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457 $ac_declaration
10458 int
10459 main ()
10460 {
10461 exit (42);
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468   (eval $ac_compile) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } &&
10472          { ac_try='test -s conftest.$ac_objext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   break
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 fi
10484 rm -f conftest.$ac_objext conftest.$ac_ext
10485 done
10486 rm -f conftest*
10487 if test -n "$ac_declaration"; then
10488   echo '#ifdef __cplusplus' >>confdefs.h
10489   echo $ac_declaration      >>confdefs.h
10490   echo '#endif'             >>confdefs.h
10491 fi
10492
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 fi
10498 rm -f conftest.$ac_objext conftest.$ac_ext
10499 ac_ext=c
10500 ac_cpp='$CPP $CPPFLAGS'
10501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10504
10505
10506
10507 ac_ext=c
10508 ac_cpp='$CPP $CPPFLAGS'
10509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10513 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10514 # On Suns, sometimes $CPP names a directory.
10515 if test -n "$CPP" && test -d "$CPP"; then
10516   CPP=
10517 fi
10518 if test -z "$CPP"; then
10519   if test "${ac_cv_prog_CPP+set}" = set; then
10520   echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522       # Double quotes because CPP needs to be expanded
10523     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10524     do
10525       ac_preproc_ok=false
10526 for ac_c_preproc_warn_flag in '' yes
10527 do
10528   # Use a header file that comes with gcc, so configuring glibc
10529   # with a fresh cross-compiler works.
10530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531   # <limits.h> exists even on freestanding compilers.
10532   # On the NeXT, cc -E runs the code through the compiler's parser,
10533   # not just through cpp. "Syntax error" is here to catch this case.
10534   cat >conftest.$ac_ext <<_ACEOF
10535 #line $LINENO "configure"
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 #ifdef __STDC__
10542 # include <limits.h>
10543 #else
10544 # include <assert.h>
10545 #endif
10546                      Syntax error
10547 _ACEOF
10548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10550   ac_status=$?
10551   grep -v '^ *+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } >/dev/null; then
10556   if test -s conftest.err; then
10557     ac_cpp_err=$ac_c_preproc_warn_flag
10558   else
10559     ac_cpp_err=
10560   fi
10561 else
10562   ac_cpp_err=yes
10563 fi
10564 if test -z "$ac_cpp_err"; then
10565   :
10566 else
10567   echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570   # Broken: fails on valid input.
10571 continue
10572 fi
10573 rm -f conftest.err conftest.$ac_ext
10574
10575   # OK, works on sane cases.  Now check whether non-existent headers
10576   # can be detected and how.
10577   cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 #include <ac_nonexistent.h>
10585 _ACEOF
10586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10588   ac_status=$?
10589   grep -v '^ *+' conftest.er1 >conftest.err
10590   rm -f conftest.er1
10591   cat conftest.err >&5
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); } >/dev/null; then
10594   if test -s conftest.err; then
10595     ac_cpp_err=$ac_c_preproc_warn_flag
10596   else
10597     ac_cpp_err=
10598   fi
10599 else
10600   ac_cpp_err=yes
10601 fi
10602 if test -z "$ac_cpp_err"; then
10603   # Broken: success on invalid input.
10604 continue
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609   # Passes both tests.
10610 ac_preproc_ok=:
10611 break
10612 fi
10613 rm -f conftest.err conftest.$ac_ext
10614
10615 done
10616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10617 rm -f conftest.err conftest.$ac_ext
10618 if $ac_preproc_ok; then
10619   break
10620 fi
10621
10622     done
10623     ac_cv_prog_CPP=$CPP
10624
10625 fi
10626   CPP=$ac_cv_prog_CPP
10627 else
10628   ac_cv_prog_CPP=$CPP
10629 fi
10630 echo "$as_me:$LINENO: result: $CPP" >&5
10631 echo "${ECHO_T}$CPP" >&6
10632 ac_preproc_ok=false
10633 for ac_c_preproc_warn_flag in '' yes
10634 do
10635   # Use a header file that comes with gcc, so configuring glibc
10636   # with a fresh cross-compiler works.
10637   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10638   # <limits.h> exists even on freestanding compilers.
10639   # On the NeXT, cc -E runs the code through the compiler's parser,
10640   # not just through cpp. "Syntax error" is here to catch this case.
10641   cat >conftest.$ac_ext <<_ACEOF
10642 #line $LINENO "configure"
10643 /* confdefs.h.  */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h.  */
10648 #ifdef __STDC__
10649 # include <limits.h>
10650 #else
10651 # include <assert.h>
10652 #endif
10653                      Syntax error
10654 _ACEOF
10655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } >/dev/null; then
10663   if test -s conftest.err; then
10664     ac_cpp_err=$ac_c_preproc_warn_flag
10665   else
10666     ac_cpp_err=
10667   fi
10668 else
10669   ac_cpp_err=yes
10670 fi
10671 if test -z "$ac_cpp_err"; then
10672   :
10673 else
10674   echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677   # Broken: fails on valid input.
10678 continue
10679 fi
10680 rm -f conftest.err conftest.$ac_ext
10681
10682   # OK, works on sane cases.  Now check whether non-existent headers
10683   # can be detected and how.
10684   cat >conftest.$ac_ext <<_ACEOF
10685 #line $LINENO "configure"
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 #include <ac_nonexistent.h>
10692 _ACEOF
10693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10695   ac_status=$?
10696   grep -v '^ *+' conftest.er1 >conftest.err
10697   rm -f conftest.er1
10698   cat conftest.err >&5
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } >/dev/null; then
10701   if test -s conftest.err; then
10702     ac_cpp_err=$ac_c_preproc_warn_flag
10703   else
10704     ac_cpp_err=
10705   fi
10706 else
10707   ac_cpp_err=yes
10708 fi
10709 if test -z "$ac_cpp_err"; then
10710   # Broken: success on invalid input.
10711 continue
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716   # Passes both tests.
10717 ac_preproc_ok=:
10718 break
10719 fi
10720 rm -f conftest.err conftest.$ac_ext
10721
10722 done
10723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10724 rm -f conftest.err conftest.$ac_ext
10725 if $ac_preproc_ok; then
10726   :
10727 else
10728   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10729 See \`config.log' for more details." >&5
10730 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10731 See \`config.log' for more details." >&2;}
10732    { (exit 1); exit 1; }; }
10733 fi
10734
10735 ac_ext=c
10736 ac_cpp='$CPP $CPPFLAGS'
10737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740
10741
10742 echo "$as_me:$LINENO: checking for egrep" >&5
10743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10744 if test "${ac_cv_prog_egrep+set}" = set; then
10745   echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10748     then ac_cv_prog_egrep='grep -E'
10749     else ac_cv_prog_egrep='egrep'
10750     fi
10751 fi
10752 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10753 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10754  EGREP=$ac_cv_prog_egrep
10755
10756
10757 if test $ac_cv_c_compiler_gnu = yes; then
10758     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10759 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10760 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763     ac_pattern="Autoconf.*'x'"
10764   cat >conftest.$ac_ext <<_ACEOF
10765 #line $LINENO "configure"
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <sgtty.h>
10772 Autoconf TIOCGETP
10773 _ACEOF
10774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10775   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10776   ac_cv_prog_gcc_traditional=yes
10777 else
10778   ac_cv_prog_gcc_traditional=no
10779 fi
10780 rm -f conftest*
10781
10782
10783   if test $ac_cv_prog_gcc_traditional = no; then
10784     cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791 #include <termio.h>
10792 Autoconf TCGETA
10793 _ACEOF
10794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10795   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10796   ac_cv_prog_gcc_traditional=yes
10797 fi
10798 rm -f conftest*
10799
10800   fi
10801 fi
10802 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10803 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10804   if test $ac_cv_prog_gcc_traditional = yes; then
10805     CC="$CC -traditional"
10806   fi
10807 fi
10808
10809
10810
10811
10812 ac_ext=cc
10813 ac_cpp='$CXXCPP $CPPFLAGS'
10814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10817
10818
10819 CXXFLAGS=${CXXFLAGS:=}
10820 ac_ext=cc
10821 ac_cpp='$CXXCPP $CPPFLAGS'
10822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10825 if test -n "$ac_tool_prefix"; then
10826   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10827   do
10828     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10830 echo "$as_me:$LINENO: checking for $ac_word" >&5
10831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10832 if test "${ac_cv_prog_CXX+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   if test -n "$CXX"; then
10836   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10837 else
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10840 do
10841   IFS=$as_save_IFS
10842   test -z "$as_dir" && as_dir=.
10843   for ac_exec_ext in '' $ac_executable_extensions; do
10844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10847     break 2
10848   fi
10849 done
10850 done
10851
10852 fi
10853 fi
10854 CXX=$ac_cv_prog_CXX
10855 if test -n "$CXX"; then
10856   echo "$as_me:$LINENO: result: $CXX" >&5
10857 echo "${ECHO_T}$CXX" >&6
10858 else
10859   echo "$as_me:$LINENO: result: no" >&5
10860 echo "${ECHO_T}no" >&6
10861 fi
10862
10863     test -n "$CXX" && break
10864   done
10865 fi
10866 if test -z "$CXX"; then
10867   ac_ct_CXX=$CXX
10868   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10869 do
10870   # Extract the first word of "$ac_prog", so it can be a program name with args.
10871 set dummy $ac_prog; ac_word=$2
10872 echo "$as_me:$LINENO: checking for $ac_word" >&5
10873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877   if test -n "$ac_ct_CXX"; then
10878   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883   IFS=$as_save_IFS
10884   test -z "$as_dir" && as_dir=.
10885   for ac_exec_ext in '' $ac_executable_extensions; do
10886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887     ac_cv_prog_ac_ct_CXX="$ac_prog"
10888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889     break 2
10890   fi
10891 done
10892 done
10893
10894 fi
10895 fi
10896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10897 if test -n "$ac_ct_CXX"; then
10898   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10899 echo "${ECHO_T}$ac_ct_CXX" >&6
10900 else
10901   echo "$as_me:$LINENO: result: no" >&5
10902 echo "${ECHO_T}no" >&6
10903 fi
10904
10905   test -n "$ac_ct_CXX" && break
10906 done
10907 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10908
10909   CXX=$ac_ct_CXX
10910 fi
10911
10912
10913 # Provide some information about the compiler.
10914 echo "$as_me:$LINENO:" \
10915      "checking for C++ compiler version" >&5
10916 ac_compiler=`set X $ac_compile; echo $2`
10917 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10918   (eval $ac_compiler --version </dev/null >&5) 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }
10922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10923   (eval $ac_compiler -v </dev/null >&5) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }
10927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10928   (eval $ac_compiler -V </dev/null >&5) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }
10932
10933 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10934 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10935 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   cat >conftest.$ac_ext <<_ACEOF
10939 #line $LINENO "configure"
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945
10946 int
10947 main ()
10948 {
10949 #ifndef __GNUC__
10950        choke me
10951 #endif
10952
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 rm -f conftest.$ac_objext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959   (eval $ac_compile) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } &&
10963          { ac_try='test -s conftest.$ac_objext'
10964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965   (eval $ac_try) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   ac_compiler_gnu=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974 ac_compiler_gnu=no
10975 fi
10976 rm -f conftest.$ac_objext conftest.$ac_ext
10977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10978
10979 fi
10980 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10981 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
10982 GXX=`test $ac_compiler_gnu = yes && echo yes`
10983 ac_test_CXXFLAGS=${CXXFLAGS+set}
10984 ac_save_CXXFLAGS=$CXXFLAGS
10985 CXXFLAGS="-g"
10986 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
10988 if test "${ac_cv_prog_cxx_g+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   cat >conftest.$ac_ext <<_ACEOF
10992 #line $LINENO "configure"
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998
10999 int
11000 main ()
11001 {
11002
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009   (eval $ac_compile) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -s conftest.$ac_objext'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_cv_prog_cxx_g=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ac_cv_prog_cxx_g=no
11025 fi
11026 rm -f conftest.$ac_objext conftest.$ac_ext
11027 fi
11028 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11029 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11030 if test "$ac_test_CXXFLAGS" = set; then
11031   CXXFLAGS=$ac_save_CXXFLAGS
11032 elif test $ac_cv_prog_cxx_g = yes; then
11033   if test "$GXX" = yes; then
11034     CXXFLAGS="-g -O2"
11035   else
11036     CXXFLAGS="-g"
11037   fi
11038 else
11039   if test "$GXX" = yes; then
11040     CXXFLAGS="-O2"
11041   else
11042     CXXFLAGS=
11043   fi
11044 fi
11045 for ac_declaration in \
11046    ''\
11047    '#include <stdlib.h>' \
11048    'extern "C" void std::exit (int) throw (); using std::exit;' \
11049    'extern "C" void std::exit (int); using std::exit;' \
11050    'extern "C" void exit (int) throw ();' \
11051    'extern "C" void exit (int);' \
11052    'void exit (int);'
11053 do
11054   cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 #include <stdlib.h>
11062 $ac_declaration
11063 int
11064 main ()
11065 {
11066 exit (42);
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073   (eval $ac_compile) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); } &&
11077          { ac_try='test -s conftest.$ac_objext'
11078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079   (eval $ac_try) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }; then
11083   :
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 continue
11089 fi
11090 rm -f conftest.$ac_objext conftest.$ac_ext
11091   cat >conftest.$ac_ext <<_ACEOF
11092 #line $LINENO "configure"
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 $ac_declaration
11099 int
11100 main ()
11101 {
11102 exit (42);
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11109   (eval $ac_compile) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest.$ac_objext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   break
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 fi
11125 rm -f conftest.$ac_objext conftest.$ac_ext
11126 done
11127 rm -f conftest*
11128 if test -n "$ac_declaration"; then
11129   echo '#ifdef __cplusplus' >>confdefs.h
11130   echo $ac_declaration      >>confdefs.h
11131   echo '#endif'             >>confdefs.h
11132 fi
11133
11134 ac_ext=cc
11135 ac_cpp='$CXXCPP $CPPFLAGS'
11136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11139
11140
11141 ac_ext=c
11142 ac_cpp='$CPP $CPPFLAGS'
11143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11146
11147
11148 if test -n "$ac_tool_prefix"; then
11149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11151 echo "$as_me:$LINENO: checking for $ac_word" >&5
11152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11153 if test "${ac_cv_prog_RANLIB+set}" = set; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156   if test -n "$RANLIB"; then
11157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11158 else
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11161 do
11162   IFS=$as_save_IFS
11163   test -z "$as_dir" && as_dir=.
11164   for ac_exec_ext in '' $ac_executable_extensions; do
11165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11168     break 2
11169   fi
11170 done
11171 done
11172
11173 fi
11174 fi
11175 RANLIB=$ac_cv_prog_RANLIB
11176 if test -n "$RANLIB"; then
11177   echo "$as_me:$LINENO: result: $RANLIB" >&5
11178 echo "${ECHO_T}$RANLIB" >&6
11179 else
11180   echo "$as_me:$LINENO: result: no" >&5
11181 echo "${ECHO_T}no" >&6
11182 fi
11183
11184 fi
11185 if test -z "$ac_cv_prog_RANLIB"; then
11186   ac_ct_RANLIB=$RANLIB
11187   # Extract the first word of "ranlib", so it can be a program name with args.
11188 set dummy ranlib; ac_word=$2
11189 echo "$as_me:$LINENO: checking for $ac_word" >&5
11190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194   if test -n "$ac_ct_RANLIB"; then
11195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11196 else
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200   IFS=$as_save_IFS
11201   test -z "$as_dir" && as_dir=.
11202   for ac_exec_ext in '' $ac_executable_extensions; do
11203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204     ac_cv_prog_ac_ct_RANLIB="ranlib"
11205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206     break 2
11207   fi
11208 done
11209 done
11210
11211   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11212 fi
11213 fi
11214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11215 if test -n "$ac_ct_RANLIB"; then
11216   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11218 else
11219   echo "$as_me:$LINENO: result: no" >&5
11220 echo "${ECHO_T}no" >&6
11221 fi
11222
11223   RANLIB=$ac_ct_RANLIB
11224 else
11225   RANLIB="$ac_cv_prog_RANLIB"
11226 fi
11227
11228
11229 # Extract the first word of "ar", so it can be a program name with args.
11230 set dummy ar; ac_word=$2
11231 echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11233 if test "${ac_cv_prog_AR+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   if test -n "$AR"; then
11237   ac_cv_prog_AR="$AR" # Let the user override the test.
11238 else
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11241 do
11242   IFS=$as_save_IFS
11243   test -z "$as_dir" && as_dir=.
11244   for ac_exec_ext in '' $ac_executable_extensions; do
11245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11246     ac_cv_prog_AR="ar"
11247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11248     break 2
11249   fi
11250 done
11251 done
11252
11253   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11254 fi
11255 fi
11256 AR=$ac_cv_prog_AR
11257 if test -n "$AR"; then
11258   echo "$as_me:$LINENO: result: $AR" >&5
11259 echo "${ECHO_T}$AR" >&6
11260 else
11261   echo "$as_me:$LINENO: result: no" >&5
11262 echo "${ECHO_T}no" >&6
11263 fi
11264
11265
11266 # Find a good install program.  We prefer a C program (faster),
11267 # so one script is as good as another.  But avoid the broken or
11268 # incompatible versions:
11269 # SysV /etc/install, /usr/sbin/install
11270 # SunOS /usr/etc/install
11271 # IRIX /sbin/install
11272 # AIX /bin/install
11273 # AmigaOS /C/install, which installs bootblocks on floppy discs
11274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11277 # ./install, which can be erroneously created by make from ./install.sh.
11278 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11279 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11280 if test -z "$INSTALL"; then
11281 if test "${ac_cv_path_install+set}" = set; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287   IFS=$as_save_IFS
11288   test -z "$as_dir" && as_dir=.
11289   # Account for people who put trailing slashes in PATH elements.
11290 case $as_dir/ in
11291   ./ | .// | /cC/* | \
11292   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11293   /usr/ucb/* ) ;;
11294   *)
11295     # OSF1 and SCO ODT 3.0 have their own names for install.
11296     # Don't use installbsd from OSF since it installs stuff as root
11297     # by default.
11298     for ac_prog in ginstall scoinst install; do
11299       for ac_exec_ext in '' $ac_executable_extensions; do
11300         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11301           if test $ac_prog = install &&
11302             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11303             # AIX install.  It has an incompatible calling convention.
11304             :
11305           elif test $ac_prog = install &&
11306             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11307             # program-specific install script used by HP pwplus--don't use.
11308             :
11309           else
11310             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11311             break 3
11312           fi
11313         fi
11314       done
11315     done
11316     ;;
11317 esac
11318 done
11319
11320
11321 fi
11322   if test "${ac_cv_path_install+set}" = set; then
11323     INSTALL=$ac_cv_path_install
11324   else
11325     # As a last resort, use the slow shell script.  We don't cache a
11326     # path for INSTALL within a source directory, because that will
11327     # break other packages using the cache if that directory is
11328     # removed, or if the path is relative.
11329     INSTALL=$ac_install_sh
11330   fi
11331 fi
11332 echo "$as_me:$LINENO: result: $INSTALL" >&5
11333 echo "${ECHO_T}$INSTALL" >&6
11334
11335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11336 # It thinks the first close brace ends the variable substitution.
11337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11338
11339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11340
11341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11342
11343
11344 case ${INSTALL} in
11345   /* ) # Absolute
11346      ;;
11347   ?:* ) # Drive letter, considered as absolute.
11348      ;;
11349   *)
11350      INSTALL=`pwd`/${INSTALL} ;;
11351 esac
11352
11353 case ${host} in
11354     *-hp-hpux* )
11355         INSTALL_DIR="mkdir"
11356         ;;
11357
11358     *)  INSTALL_DIR="$INSTALL -d"
11359         ;;
11360 esac
11361
11362
11363 case "${host}" in
11364
11365                 powerpc-*-darwin* )
11366         INSTALL_PROGRAM="cp -fp"
11367         INSTALL_DATA="cp -fp"
11368         ;;
11369     *)
11370         ;;
11371 esac
11372
11373 # Extract the first word of "strip", so it can be a program name with args.
11374 set dummy strip; ac_word=$2
11375 echo "$as_me:$LINENO: checking for $ac_word" >&5
11376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11377 if test "${ac_cv_prog_STRIP+set}" = set; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380   if test -n "$STRIP"; then
11381   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388   for ac_exec_ext in '' $ac_executable_extensions; do
11389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390     ac_cv_prog_STRIP="strip"
11391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395 done
11396
11397   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11398 fi
11399 fi
11400 STRIP=$ac_cv_prog_STRIP
11401 if test -n "$STRIP"; then
11402   echo "$as_me:$LINENO: result: $STRIP" >&5
11403 echo "${ECHO_T}$STRIP" >&6
11404 else
11405   echo "$as_me:$LINENO: result: no" >&5
11406 echo "${ECHO_T}no" >&6
11407 fi
11408
11409
11410 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11411 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11412 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415
11416     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11417             egrep -s GNU > /dev/null); then
11418         wx_cv_prog_makeisgnu="yes"
11419     else
11420         wx_cv_prog_makeisgnu="no"
11421     fi
11422
11423 fi
11424 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11425 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11426
11427 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11428     IF_GNU_MAKE=""
11429 else
11430     IF_GNU_MAKE="#"
11431 fi
11432
11433
11434
11435 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11436 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11437 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11438 if test "${wx_cv_prog_makevpath+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441
11442 cat - << EOF > confMake
11443 check : file
11444         cp \$? \$@
11445         cp \$? final_file
11446 EOF
11447
11448 if test ! -d sub ; then
11449   mkdir sub
11450 fi
11451 echo dummy > sub/file
11452 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11453 RESULT=$?
11454 rm -f sub/file check final_file confMake
11455 rmdir sub
11456 if test "$RESULT" = 0; then
11457   wx_cv_prog_makevpath="yes"
11458 else
11459   wx_cv_prog_makevpath="no"
11460 fi
11461
11462 fi
11463 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11464 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11465
11466 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11467 { { echo "$as_me:$LINENO: error:
11468 You need a make-utility that is able to use the variable
11469 VPATH correctly.
11470 If your version of make does not support VPATH correctly,
11471 please install GNU-make (possibly as gmake), and start
11472 configure with the following command:
11473 export MAKE=gmake; ./configure  for sh-type shells
11474 setenv MAKE gmake; ./configure  for csh-type shells
11475 Also please do remember to use gmake in this case every time
11476 you are trying to compile.
11477 " >&5
11478 echo "$as_me: error:
11479 You need a make-utility that is able to use the variable
11480 VPATH correctly.
11481 If your version of make does not support VPATH correctly,
11482 please install GNU-make (possibly as gmake), and start
11483 configure with the following command:
11484 export MAKE=gmake; ./configure  for sh-type shells
11485 setenv MAKE gmake; ./configure  for csh-type shells
11486 Also please do remember to use gmake in this case every time
11487 you are trying to compile.
11488 " >&2;}
11489    { (exit 1); exit 1; }; }
11490 fi fi
11491 for ac_prog in 'bison -y' byacc
11492 do
11493   # Extract the first word of "$ac_prog", so it can be a program name with args.
11494 set dummy $ac_prog; ac_word=$2
11495 echo "$as_me:$LINENO: checking for $ac_word" >&5
11496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11497 if test "${ac_cv_prog_YACC+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   if test -n "$YACC"; then
11501   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506   IFS=$as_save_IFS
11507   test -z "$as_dir" && as_dir=.
11508   for ac_exec_ext in '' $ac_executable_extensions; do
11509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510     ac_cv_prog_YACC="$ac_prog"
11511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512     break 2
11513   fi
11514 done
11515 done
11516
11517 fi
11518 fi
11519 YACC=$ac_cv_prog_YACC
11520 if test -n "$YACC"; then
11521   echo "$as_me:$LINENO: result: $YACC" >&5
11522 echo "${ECHO_T}$YACC" >&6
11523 else
11524   echo "$as_me:$LINENO: result: no" >&5
11525 echo "${ECHO_T}no" >&6
11526 fi
11527
11528   test -n "$YACC" && break
11529 done
11530 test -n "$YACC" || YACC="yacc"
11531
11532
11533 for ac_prog in flex lex
11534 do
11535   # Extract the first word of "$ac_prog", so it can be a program name with args.
11536 set dummy $ac_prog; ac_word=$2
11537 echo "$as_me:$LINENO: checking for $ac_word" >&5
11538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11539 if test "${ac_cv_prog_LEX+set}" = set; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   if test -n "$LEX"; then
11543   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   test -z "$as_dir" && as_dir=.
11550   for ac_exec_ext in '' $ac_executable_extensions; do
11551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552     ac_cv_prog_LEX="$ac_prog"
11553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554     break 2
11555   fi
11556 done
11557 done
11558
11559 fi
11560 fi
11561 LEX=$ac_cv_prog_LEX
11562 if test -n "$LEX"; then
11563   echo "$as_me:$LINENO: result: $LEX" >&5
11564 echo "${ECHO_T}$LEX" >&6
11565 else
11566   echo "$as_me:$LINENO: result: no" >&5
11567 echo "${ECHO_T}no" >&6
11568 fi
11569
11570   test -n "$LEX" && break
11571 done
11572 test -n "$LEX" || LEX=":"
11573
11574 if test -z "$LEXLIB"
11575 then
11576   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11577 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11578 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lfl  $LIBS"
11583 cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 /* confdefs.h.  */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h.  */
11590
11591 /* Override any gcc2 internal prototype to avoid an error.  */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 /* We use char because int might match the return type of a gcc2
11596    builtin and then its argument prototype would still apply.  */
11597 char yywrap ();
11598 int
11599 main ()
11600 {
11601 yywrap ();
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608   (eval $ac_link) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -s conftest$ac_exeext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   ac_cv_lib_fl_yywrap=yes
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ac_cv_lib_fl_yywrap=no
11624 fi
11625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11629 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11630 if test $ac_cv_lib_fl_yywrap = yes; then
11631   LEXLIB="-lfl"
11632 else
11633   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11634 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11635 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-ll  $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647
11648 /* Override any gcc2 internal prototype to avoid an error.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 /* We use char because int might match the return type of a gcc2
11653    builtin and then its argument prototype would still apply.  */
11654 char yywrap ();
11655 int
11656 main ()
11657 {
11658 yywrap ();
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } &&
11669          { ac_try='test -s conftest$ac_exeext'
11670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671   (eval $ac_try) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; }; then
11675   ac_cv_lib_l_yywrap=yes
11676 else
11677   echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ac_cv_lib_l_yywrap=no
11681 fi
11682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11686 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11687 if test $ac_cv_lib_l_yywrap = yes; then
11688   LEXLIB="-ll"
11689 fi
11690
11691 fi
11692
11693 fi
11694
11695 if test "x$LEX" != "x:"; then
11696   echo "$as_me:$LINENO: checking lex output file root" >&5
11697 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11698 if test "${ac_cv_prog_lex_root+set}" = set; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   # The minimal lex program is just a single line: %%.  But some broken lexes
11702 # (Solaris, I think it was) want two %% lines, so accommodate them.
11703 cat >conftest.l <<_ACEOF
11704 %%
11705 %%
11706 _ACEOF
11707 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11708   (eval $LEX conftest.l) 2>&5
11709   ac_status=$?
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); }
11712 if test -f lex.yy.c; then
11713   ac_cv_prog_lex_root=lex.yy
11714 elif test -f lexyy.c; then
11715   ac_cv_prog_lex_root=lexyy
11716 else
11717   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11718 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11719    { (exit 1); exit 1; }; }
11720 fi
11721 fi
11722 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11723 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11724 rm -f conftest.l
11725 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11726
11727 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11728 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11729 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11730   echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732   # POSIX says lex can declare yytext either as a pointer or an array; the
11733 # default is implementation-dependent. Figure out which it is, since
11734 # not all implementations provide the %pointer and %array declarations.
11735 ac_cv_prog_lex_yytext_pointer=no
11736 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11737 ac_save_LIBS=$LIBS
11738 LIBS="$LIBS $LEXLIB"
11739 cat >conftest.$ac_ext <<_ACEOF
11740 `cat $LEX_OUTPUT_ROOT.c`
11741 _ACEOF
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744   (eval $ac_link) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } &&
11748          { ac_try='test -s conftest$ac_exeext'
11749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750   (eval $ac_try) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   ac_cv_prog_lex_yytext_pointer=yes
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 fi
11760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11761 LIBS=$ac_save_LIBS
11762 rm -f "${LEX_OUTPUT_ROOT}.c"
11763
11764 fi
11765 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11766 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11767 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11768
11769 cat >>confdefs.h <<\_ACEOF
11770 #define YYTEXT_POINTER 1
11771 _ACEOF
11772
11773 fi
11774
11775 fi
11776
11777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11779 LN_S=$as_ln_s
11780 if test "$LN_S" = "ln -s"; then
11781   echo "$as_me:$LINENO: result: yes" >&5
11782 echo "${ECHO_T}yes" >&6
11783 else
11784   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11785 echo "${ECHO_T}no, using $LN_S" >&6
11786 fi
11787
11788
11789 case "${host}" in
11790   *-pc-os2_emx | *-pc-os2-emx )
11791             LIBS="$LIBS -lstdcpp"
11792       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11793                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11794 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11795 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   ac_check_lib_save_LIBS=$LIBS
11799 LIBS="-lcExt  $LIBS"
11800 cat >conftest.$ac_ext <<_ACEOF
11801 #line $LINENO "configure"
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807
11808 /* Override any gcc2 internal prototype to avoid an error.  */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 /* We use char because int might match the return type of a gcc2
11813    builtin and then its argument prototype would still apply.  */
11814 char drand48 ();
11815 int
11816 main ()
11817 {
11818 drand48 ();
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11825   (eval $ac_link) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); } &&
11829          { ac_try='test -s conftest$ac_exeext'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   ac_cv_lib_cExt_drand48=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_cv_lib_cExt_drand48=no
11841 fi
11842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11846 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11847 if test $ac_cv_lib_cExt_drand48 = yes; then
11848   LIBS="$LIBS -lcExt"
11849 fi
11850
11851       else
11852                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11853       fi
11854   ;;
11855 esac
11856
11857
11858 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11859     echo "$as_me:$LINENO: checking for strings.h" >&5
11860 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11861 if test "${ac_cv_header_strings_h+set}" = set; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   ac_cv_header_strings_h=no
11865 fi
11866 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11867 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11868     if test "$ac_cv_header_strings_h" = "no"; then
11869         echo "$as_me:$LINENO: result: forced no into cache" >&5
11870 echo "${ECHO_T}forced no into cache" >&6
11871     else
11872         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11873 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11874     fi
11875 fi
11876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11878 if test "${ac_cv_header_stdc+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   cat >conftest.$ac_ext <<_ACEOF
11882 #line $LINENO "configure"
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 #include <stdlib.h>
11889 #include <stdarg.h>
11890 #include <string.h>
11891 #include <float.h>
11892
11893 int
11894 main ()
11895 {
11896
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903   (eval $ac_compile) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } &&
11907          { ac_try='test -s conftest.$ac_objext'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   ac_cv_header_stdc=yes
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_cv_header_stdc=no
11919 fi
11920 rm -f conftest.$ac_objext conftest.$ac_ext
11921
11922 if test $ac_cv_header_stdc = yes; then
11923   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11924   cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 /* confdefs.h.  */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h.  */
11931 #include <string.h>
11932
11933 _ACEOF
11934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11935   $EGREP "memchr" >/dev/null 2>&1; then
11936   :
11937 else
11938   ac_cv_header_stdc=no
11939 fi
11940 rm -f conftest*
11941
11942 fi
11943
11944 if test $ac_cv_header_stdc = yes; then
11945   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11946   cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 #include <stdlib.h>
11954
11955 _ACEOF
11956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957   $EGREP "free" >/dev/null 2>&1; then
11958   :
11959 else
11960   ac_cv_header_stdc=no
11961 fi
11962 rm -f conftest*
11963
11964 fi
11965
11966 if test $ac_cv_header_stdc = yes; then
11967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11968   if test "$cross_compiling" = yes; then
11969   :
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978 #include <ctype.h>
11979 #if ((' ' & 0x0FF) == 0x020)
11980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11982 #else
11983 # define ISLOWER(c) \
11984                    (('a' <= (c) && (c) <= 'i') \
11985                      || ('j' <= (c) && (c) <= 'r') \
11986                      || ('s' <= (c) && (c) <= 'z'))
11987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11988 #endif
11989
11990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11991 int
11992 main ()
11993 {
11994   int i;
11995   for (i = 0; i < 256; i++)
11996     if (XOR (islower (i), ISLOWER (i))
11997         || toupper (i) != TOUPPER (i))
11998       exit(2);
11999   exit (0);
12000 }
12001 _ACEOF
12002 rm -f conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004   (eval $ac_link) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009   (eval $ac_try) 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; }; then
12013   :
12014 else
12015   echo "$as_me: program exited with status $ac_status" >&5
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ( exit $ac_status )
12020 ac_cv_header_stdc=no
12021 fi
12022 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12023 fi
12024 fi
12025 fi
12026 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12027 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12028 if test $ac_cv_header_stdc = yes; then
12029
12030 cat >>confdefs.h <<\_ACEOF
12031 #define STDC_HEADERS 1
12032 _ACEOF
12033
12034 fi
12035
12036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12047                   inttypes.h stdint.h unistd.h
12048 do
12049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12050 echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   cat >conftest.$ac_ext <<_ACEOF
12056 #line $LINENO "configure"
12057 /* confdefs.h.  */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h.  */
12062 $ac_includes_default
12063
12064 #include <$ac_header>
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068   (eval $ac_compile) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   eval "$as_ac_Header=yes"
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 eval "$as_ac_Header=no"
12084 fi
12085 rm -f conftest.$ac_objext conftest.$ac_ext
12086 fi
12087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090   cat >>confdefs.h <<_ACEOF
12091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092 _ACEOF
12093
12094 fi
12095
12096 done
12097
12098
12099
12100 for ac_header in strings.h
12101 do
12102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12104   echo "$as_me:$LINENO: checking for $ac_header" >&5
12105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 fi
12109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12111 else
12112   # Is the header compilable?
12113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12115 cat >conftest.$ac_ext <<_ACEOF
12116 #line $LINENO "configure"
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122 $ac_includes_default
12123 #include <$ac_header>
12124 _ACEOF
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127   (eval $ac_compile) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } &&
12131          { ac_try='test -s conftest.$ac_objext'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   ac_header_compiler=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 ac_header_compiler=no
12143 fi
12144 rm -f conftest.$ac_objext conftest.$ac_ext
12145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12146 echo "${ECHO_T}$ac_header_compiler" >&6
12147
12148 # Is the header present?
12149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12151 cat >conftest.$ac_ext <<_ACEOF
12152 #line $LINENO "configure"
12153 /* confdefs.h.  */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h.  */
12158 #include <$ac_header>
12159 _ACEOF
12160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12162   ac_status=$?
12163   grep -v '^ *+' conftest.er1 >conftest.err
12164   rm -f conftest.er1
12165   cat conftest.err >&5
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } >/dev/null; then
12168   if test -s conftest.err; then
12169     ac_cpp_err=$ac_c_preproc_warn_flag
12170   else
12171     ac_cpp_err=
12172   fi
12173 else
12174   ac_cpp_err=yes
12175 fi
12176 if test -z "$ac_cpp_err"; then
12177   ac_header_preproc=yes
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182   ac_header_preproc=no
12183 fi
12184 rm -f conftest.err conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12186 echo "${ECHO_T}$ac_header_preproc" >&6
12187
12188 # So?  What about this header?
12189 case $ac_header_compiler:$ac_header_preproc in
12190   yes:no )
12191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12195     (
12196       cat <<\_ASBOX
12197 ## ------------------------------------ ##
12198 ## Report this to bug-autoconf@gnu.org. ##
12199 ## ------------------------------------ ##
12200 _ASBOX
12201     ) |
12202       sed "s/^/$as_me: WARNING:     /" >&2
12203     ;;
12204   no:yes )
12205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12211     (
12212       cat <<\_ASBOX
12213 ## ------------------------------------ ##
12214 ## Report this to bug-autoconf@gnu.org. ##
12215 ## ------------------------------------ ##
12216 _ASBOX
12217     ) |
12218       sed "s/^/$as_me: WARNING:     /" >&2
12219     ;;
12220 esac
12221 echo "$as_me:$LINENO: checking for $ac_header" >&5
12222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226   eval "$as_ac_Header=$ac_header_preproc"
12227 fi
12228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12230
12231 fi
12232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12233   cat >>confdefs.h <<_ACEOF
12234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12235 _ACEOF
12236
12237 fi
12238
12239 done
12240
12241
12242
12243 for ac_header in stdlib.h
12244 do
12245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12247   echo "$as_me:$LINENO: checking for $ac_header" >&5
12248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 fi
12252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12254 else
12255   # Is the header compilable?
12256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12258 cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 $ac_includes_default
12266 #include <$ac_header>
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270   (eval $ac_compile) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -s conftest.$ac_objext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   ac_header_compiler=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285 ac_header_compiler=no
12286 fi
12287 rm -f conftest.$ac_objext conftest.$ac_ext
12288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12289 echo "${ECHO_T}$ac_header_compiler" >&6
12290
12291 # Is the header present?
12292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12294 cat >conftest.$ac_ext <<_ACEOF
12295 #line $LINENO "configure"
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301 #include <$ac_header>
12302 _ACEOF
12303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } >/dev/null; then
12311   if test -s conftest.err; then
12312     ac_cpp_err=$ac_c_preproc_warn_flag
12313   else
12314     ac_cpp_err=
12315   fi
12316 else
12317   ac_cpp_err=yes
12318 fi
12319 if test -z "$ac_cpp_err"; then
12320   ac_header_preproc=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325   ac_header_preproc=no
12326 fi
12327 rm -f conftest.err conftest.$ac_ext
12328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12329 echo "${ECHO_T}$ac_header_preproc" >&6
12330
12331 # So?  What about this header?
12332 case $ac_header_compiler:$ac_header_preproc in
12333   yes:no )
12334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12338     (
12339       cat <<\_ASBOX
12340 ## ------------------------------------ ##
12341 ## Report this to bug-autoconf@gnu.org. ##
12342 ## ------------------------------------ ##
12343 _ASBOX
12344     ) |
12345       sed "s/^/$as_me: WARNING:     /" >&2
12346     ;;
12347   no:yes )
12348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12350     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354     (
12355       cat <<\_ASBOX
12356 ## ------------------------------------ ##
12357 ## Report this to bug-autoconf@gnu.org. ##
12358 ## ------------------------------------ ##
12359 _ASBOX
12360     ) |
12361       sed "s/^/$as_me: WARNING:     /" >&2
12362     ;;
12363 esac
12364 echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   eval "$as_ac_Header=$ac_header_preproc"
12370 fi
12371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12373
12374 fi
12375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12376   cat >>confdefs.h <<_ACEOF
12377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12378 _ACEOF
12379
12380 fi
12381
12382 done
12383
12384
12385 for ac_header in malloc.h
12386 do
12387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12389   echo "$as_me:$LINENO: checking for $ac_header" >&5
12390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 fi
12394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12396 else
12397   # Is the header compilable?
12398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12400 cat >conftest.$ac_ext <<_ACEOF
12401 #line $LINENO "configure"
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407 $ac_includes_default
12408 #include <$ac_header>
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412   (eval $ac_compile) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -s conftest.$ac_objext'
12417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422   ac_header_compiler=yes
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427 ac_header_compiler=no
12428 fi
12429 rm -f conftest.$ac_objext conftest.$ac_ext
12430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12431 echo "${ECHO_T}$ac_header_compiler" >&6
12432
12433 # Is the header present?
12434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12437 #line $LINENO "configure"
12438 /* confdefs.h.  */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h.  */
12443 #include <$ac_header>
12444 _ACEOF
12445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } >/dev/null; then
12453   if test -s conftest.err; then
12454     ac_cpp_err=$ac_c_preproc_warn_flag
12455   else
12456     ac_cpp_err=
12457   fi
12458 else
12459   ac_cpp_err=yes
12460 fi
12461 if test -z "$ac_cpp_err"; then
12462   ac_header_preproc=yes
12463 else
12464   echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12466
12467   ac_header_preproc=no
12468 fi
12469 rm -f conftest.err conftest.$ac_ext
12470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471 echo "${ECHO_T}$ac_header_preproc" >&6
12472
12473 # So?  What about this header?
12474 case $ac_header_compiler:$ac_header_preproc in
12475   yes:no )
12476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12480     (
12481       cat <<\_ASBOX
12482 ## ------------------------------------ ##
12483 ## Report this to bug-autoconf@gnu.org. ##
12484 ## ------------------------------------ ##
12485 _ASBOX
12486     ) |
12487       sed "s/^/$as_me: WARNING:     /" >&2
12488     ;;
12489   no:yes )
12490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12496     (
12497       cat <<\_ASBOX
12498 ## ------------------------------------ ##
12499 ## Report this to bug-autoconf@gnu.org. ##
12500 ## ------------------------------------ ##
12501 _ASBOX
12502     ) |
12503       sed "s/^/$as_me: WARNING:     /" >&2
12504     ;;
12505 esac
12506 echo "$as_me:$LINENO: checking for $ac_header" >&5
12507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   eval "$as_ac_Header=$ac_header_preproc"
12512 fi
12513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12515
12516 fi
12517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518   cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520 _ACEOF
12521
12522 fi
12523
12524 done
12525
12526
12527 for ac_header in unistd.h
12528 do
12529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12531   echo "$as_me:$LINENO: checking for $ac_header" >&5
12532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 fi
12536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12538 else
12539   # Is the header compilable?
12540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line $LINENO "configure"
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 $ac_includes_default
12550 #include <$ac_header>
12551 _ACEOF
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554   (eval $ac_compile) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -s conftest.$ac_objext'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; }; then
12564   ac_header_compiler=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 ac_header_compiler=no
12570 fi
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12573 echo "${ECHO_T}$ac_header_compiler" >&6
12574
12575 # Is the header present?
12576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12578 cat >conftest.$ac_ext <<_ACEOF
12579 #line $LINENO "configure"
12580 /* confdefs.h.  */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h.  */
12585 #include <$ac_header>
12586 _ACEOF
12587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } >/dev/null; then
12595   if test -s conftest.err; then
12596     ac_cpp_err=$ac_c_preproc_warn_flag
12597   else
12598     ac_cpp_err=
12599   fi
12600 else
12601   ac_cpp_err=yes
12602 fi
12603 if test -z "$ac_cpp_err"; then
12604   ac_header_preproc=yes
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609   ac_header_preproc=no
12610 fi
12611 rm -f conftest.err conftest.$ac_ext
12612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12613 echo "${ECHO_T}$ac_header_preproc" >&6
12614
12615 # So?  What about this header?
12616 case $ac_header_compiler:$ac_header_preproc in
12617   yes:no )
12618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12622     (
12623       cat <<\_ASBOX
12624 ## ------------------------------------ ##
12625 ## Report this to bug-autoconf@gnu.org. ##
12626 ## ------------------------------------ ##
12627 _ASBOX
12628     ) |
12629       sed "s/^/$as_me: WARNING:     /" >&2
12630     ;;
12631   no:yes )
12632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12634     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12638     (
12639       cat <<\_ASBOX
12640 ## ------------------------------------ ##
12641 ## Report this to bug-autoconf@gnu.org. ##
12642 ## ------------------------------------ ##
12643 _ASBOX
12644     ) |
12645       sed "s/^/$as_me: WARNING:     /" >&2
12646     ;;
12647 esac
12648 echo "$as_me:$LINENO: checking for $ac_header" >&5
12649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   eval "$as_ac_Header=$ac_header_preproc"
12654 fi
12655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12657
12658 fi
12659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12660   cat >>confdefs.h <<_ACEOF
12661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12662 _ACEOF
12663
12664 fi
12665
12666 done
12667
12668
12669 for ac_header in wchar.h
12670 do
12671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12673   echo "$as_me:$LINENO: checking for $ac_header" >&5
12674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12676   echo $ECHO_N "(cached) $ECHO_C" >&6
12677 fi
12678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12680 else
12681   # Is the header compilable?
12682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12684 cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691 $ac_includes_default
12692 #include <$ac_header>
12693 _ACEOF
12694 rm -f conftest.$ac_objext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12696   (eval $ac_compile) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -s conftest.$ac_objext'
12701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702   (eval $ac_try) 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; }; then
12706   ac_header_compiler=yes
12707 else
12708   echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 ac_header_compiler=no
12712 fi
12713 rm -f conftest.$ac_objext conftest.$ac_ext
12714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12715 echo "${ECHO_T}$ac_header_compiler" >&6
12716
12717 # Is the header present?
12718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12720 cat >conftest.$ac_ext <<_ACEOF
12721 #line $LINENO "configure"
12722 /* confdefs.h.  */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h.  */
12727 #include <$ac_header>
12728 _ACEOF
12729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } >/dev/null; then
12737   if test -s conftest.err; then
12738     ac_cpp_err=$ac_c_preproc_warn_flag
12739   else
12740     ac_cpp_err=
12741   fi
12742 else
12743   ac_cpp_err=yes
12744 fi
12745 if test -z "$ac_cpp_err"; then
12746   ac_header_preproc=yes
12747 else
12748   echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751   ac_header_preproc=no
12752 fi
12753 rm -f conftest.err conftest.$ac_ext
12754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12755 echo "${ECHO_T}$ac_header_preproc" >&6
12756
12757 # So?  What about this header?
12758 case $ac_header_compiler:$ac_header_preproc in
12759   yes:no )
12760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764     (
12765       cat <<\_ASBOX
12766 ## ------------------------------------ ##
12767 ## Report this to bug-autoconf@gnu.org. ##
12768 ## ------------------------------------ ##
12769 _ASBOX
12770     ) |
12771       sed "s/^/$as_me: WARNING:     /" >&2
12772     ;;
12773   no:yes )
12774     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12776     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12780     (
12781       cat <<\_ASBOX
12782 ## ------------------------------------ ##
12783 ## Report this to bug-autoconf@gnu.org. ##
12784 ## ------------------------------------ ##
12785 _ASBOX
12786     ) |
12787       sed "s/^/$as_me: WARNING:     /" >&2
12788     ;;
12789 esac
12790 echo "$as_me:$LINENO: checking for $ac_header" >&5
12791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   eval "$as_ac_Header=$ac_header_preproc"
12796 fi
12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12799
12800 fi
12801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12802   cat >>confdefs.h <<_ACEOF
12803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12804 _ACEOF
12805
12806 fi
12807
12808 done
12809
12810
12811 if test "$ac_cv_header_wchar_h" != "yes"; then
12812
12813 for ac_header in wcstr.h
12814 do
12815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12817   echo "$as_me:$LINENO: checking for $ac_header" >&5
12818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 fi
12822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12824 else
12825   # Is the header compilable?
12826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12828 cat >conftest.$ac_ext <<_ACEOF
12829 #line $LINENO "configure"
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835 $ac_includes_default
12836 #include <$ac_header>
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840   (eval $ac_compile) 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } &&
12844          { ac_try='test -s conftest.$ac_objext'
12845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846   (eval $ac_try) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; }; then
12850   ac_header_compiler=yes
12851 else
12852   echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ac_header_compiler=no
12856 fi
12857 rm -f conftest.$ac_objext conftest.$ac_ext
12858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859 echo "${ECHO_T}$ac_header_compiler" >&6
12860
12861 # Is the header present?
12862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12864 cat >conftest.$ac_ext <<_ACEOF
12865 #line $LINENO "configure"
12866 /* confdefs.h.  */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h.  */
12871 #include <$ac_header>
12872 _ACEOF
12873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } >/dev/null; then
12881   if test -s conftest.err; then
12882     ac_cpp_err=$ac_c_preproc_warn_flag
12883   else
12884     ac_cpp_err=
12885   fi
12886 else
12887   ac_cpp_err=yes
12888 fi
12889 if test -z "$ac_cpp_err"; then
12890   ac_header_preproc=yes
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895   ac_header_preproc=no
12896 fi
12897 rm -f conftest.err conftest.$ac_ext
12898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899 echo "${ECHO_T}$ac_header_preproc" >&6
12900
12901 # So?  What about this header?
12902 case $ac_header_compiler:$ac_header_preproc in
12903   yes:no )
12904     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12908     (
12909       cat <<\_ASBOX
12910 ## ------------------------------------ ##
12911 ## Report this to bug-autoconf@gnu.org. ##
12912 ## ------------------------------------ ##
12913 _ASBOX
12914     ) |
12915       sed "s/^/$as_me: WARNING:     /" >&2
12916     ;;
12917   no:yes )
12918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12920     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12924     (
12925       cat <<\_ASBOX
12926 ## ------------------------------------ ##
12927 ## Report this to bug-autoconf@gnu.org. ##
12928 ## ------------------------------------ ##
12929 _ASBOX
12930     ) |
12931       sed "s/^/$as_me: WARNING:     /" >&2
12932     ;;
12933 esac
12934 echo "$as_me:$LINENO: checking for $ac_header" >&5
12935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   eval "$as_ac_Header=$ac_header_preproc"
12940 fi
12941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12943
12944 fi
12945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12946   cat >>confdefs.h <<_ACEOF
12947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12948 _ACEOF
12949
12950 fi
12951
12952 done
12953
12954 fi
12955
12956
12957 for ac_header in fnmatch.h
12958 do
12959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961   echo "$as_me:$LINENO: checking for $ac_header" >&5
12962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 fi
12966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12968 else
12969   # Is the header compilable?
12970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12972 cat >conftest.$ac_ext <<_ACEOF
12973 #line $LINENO "configure"
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979 $ac_includes_default
12980 #include <$ac_header>
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984   (eval $ac_compile) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); } &&
12988          { ac_try='test -s conftest.$ac_objext'
12989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990   (eval $ac_try) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994   ac_header_compiler=yes
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 ac_header_compiler=no
13000 fi
13001 rm -f conftest.$ac_objext conftest.$ac_ext
13002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13003 echo "${ECHO_T}$ac_header_compiler" >&6
13004
13005 # Is the header present?
13006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13008 cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015 #include <$ac_header>
13016 _ACEOF
13017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13019   ac_status=$?
13020   grep -v '^ *+' conftest.er1 >conftest.err
13021   rm -f conftest.er1
13022   cat conftest.err >&5
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } >/dev/null; then
13025   if test -s conftest.err; then
13026     ac_cpp_err=$ac_c_preproc_warn_flag
13027   else
13028     ac_cpp_err=
13029   fi
13030 else
13031   ac_cpp_err=yes
13032 fi
13033 if test -z "$ac_cpp_err"; then
13034   ac_header_preproc=yes
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039   ac_header_preproc=no
13040 fi
13041 rm -f conftest.err conftest.$ac_ext
13042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13043 echo "${ECHO_T}$ac_header_preproc" >&6
13044
13045 # So?  What about this header?
13046 case $ac_header_compiler:$ac_header_preproc in
13047   yes:no )
13048     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052     (
13053       cat <<\_ASBOX
13054 ## ------------------------------------ ##
13055 ## Report this to bug-autoconf@gnu.org. ##
13056 ## ------------------------------------ ##
13057 _ASBOX
13058     ) |
13059       sed "s/^/$as_me: WARNING:     /" >&2
13060     ;;
13061   no:yes )
13062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13064     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13068     (
13069       cat <<\_ASBOX
13070 ## ------------------------------------ ##
13071 ## Report this to bug-autoconf@gnu.org. ##
13072 ## ------------------------------------ ##
13073 _ASBOX
13074     ) |
13075       sed "s/^/$as_me: WARNING:     /" >&2
13076     ;;
13077 esac
13078 echo "$as_me:$LINENO: checking for $ac_header" >&5
13079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083   eval "$as_ac_Header=$ac_header_preproc"
13084 fi
13085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13087
13088 fi
13089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13090   cat >>confdefs.h <<_ACEOF
13091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13092 _ACEOF
13093
13094 fi
13095
13096 done
13097
13098
13099 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13100
13101 for ac_func in fnmatch
13102 do
13103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13104 echo "$as_me:$LINENO: checking for $ac_func" >&5
13105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13106 if eval "test \"\${$as_ac_var+set}\" = set"; then
13107   echo $ECHO_N "(cached) $ECHO_C" >&6
13108 else
13109   cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 /* System header to define __stub macros and hopefully few prototypes,
13117     which can conflict with char $ac_func (); below.
13118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119     <limits.h> exists even on freestanding compilers.  */
13120 #ifdef __STDC__
13121 # include <limits.h>
13122 #else
13123 # include <assert.h>
13124 #endif
13125 /* Override any gcc2 internal prototype to avoid an error.  */
13126 #ifdef __cplusplus
13127 extern "C"
13128 {
13129 #endif
13130 /* We use char because int might match the return type of a gcc2
13131    builtin and then its argument prototype would still apply.  */
13132 char $ac_func ();
13133 /* The GNU C library defines this for functions which it implements
13134     to always fail with ENOSYS.  Some functions are actually named
13135     something starting with __ and the normal name is an alias.  */
13136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13137 choke me
13138 #else
13139 char (*f) () = $ac_func;
13140 #endif
13141 #ifdef __cplusplus
13142 }
13143 #endif
13144
13145 int
13146 main ()
13147 {
13148 return f != $ac_func;
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13155   (eval $ac_link) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } &&
13159          { ac_try='test -s conftest$ac_exeext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   eval "$as_ac_var=yes"
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 eval "$as_ac_var=no"
13171 fi
13172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13173 fi
13174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13176 if test `eval echo '${'$as_ac_var'}'` = yes; then
13177   cat >>confdefs.h <<_ACEOF
13178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 _ACEOF
13180
13181 fi
13182 done
13183
13184 fi
13185
13186
13187 for ac_header in langinfo.h
13188 do
13189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13191   echo "$as_me:$LINENO: checking for $ac_header" >&5
13192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 fi
13196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13198 else
13199   # Is the header compilable?
13200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209 $ac_includes_default
13210 #include <$ac_header>
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214   (eval $ac_compile) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } &&
13218          { ac_try='test -s conftest.$ac_objext'
13219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220   (eval $ac_try) 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); }; }; then
13224   ac_header_compiler=yes
13225 else
13226   echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_header_compiler=no
13230 fi
13231 rm -f conftest.$ac_objext conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13233 echo "${ECHO_T}$ac_header_compiler" >&6
13234
13235 # Is the header present?
13236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13239 #line $LINENO "configure"
13240 /* confdefs.h.  */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h.  */
13245 #include <$ac_header>
13246 _ACEOF
13247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } >/dev/null; then
13255   if test -s conftest.err; then
13256     ac_cpp_err=$ac_c_preproc_warn_flag
13257   else
13258     ac_cpp_err=
13259   fi
13260 else
13261   ac_cpp_err=yes
13262 fi
13263 if test -z "$ac_cpp_err"; then
13264   ac_header_preproc=yes
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269   ac_header_preproc=no
13270 fi
13271 rm -f conftest.err conftest.$ac_ext
13272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13273 echo "${ECHO_T}$ac_header_preproc" >&6
13274
13275 # So?  What about this header?
13276 case $ac_header_compiler:$ac_header_preproc in
13277   yes:no )
13278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13282     (
13283       cat <<\_ASBOX
13284 ## ------------------------------------ ##
13285 ## Report this to bug-autoconf@gnu.org. ##
13286 ## ------------------------------------ ##
13287 _ASBOX
13288     ) |
13289       sed "s/^/$as_me: WARNING:     /" >&2
13290     ;;
13291   no:yes )
13292     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13298     (
13299       cat <<\_ASBOX
13300 ## ------------------------------------ ##
13301 ## Report this to bug-autoconf@gnu.org. ##
13302 ## ------------------------------------ ##
13303 _ASBOX
13304     ) |
13305       sed "s/^/$as_me: WARNING:     /" >&2
13306     ;;
13307 esac
13308 echo "$as_me:$LINENO: checking for $ac_header" >&5
13309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13311   echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313   eval "$as_ac_Header=$ac_header_preproc"
13314 fi
13315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13317
13318 fi
13319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13320   cat >>confdefs.h <<_ACEOF
13321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13322 _ACEOF
13323
13324 fi
13325
13326 done
13327
13328
13329 case "${host}" in
13330   *-pc-os2_emx | *-pc-os2-emx )
13331             if test $ac_cv_header_langinfo_h = "yes"; then
13332           LIBS="$LIBS -lintl"
13333       fi
13334   ;;
13335 esac
13336
13337 if test "$wxUSE_GUI" = "yes"; then
13338     if test "$wxUSE_UNIX" = "yes"; then
13339
13340 for ac_header in X11/XKBlib.h
13341 do
13342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13344   echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 fi
13349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13351 else
13352   # Is the header compilable?
13353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 $ac_includes_default
13363 #include <$ac_header>
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367   (eval $ac_compile) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); } &&
13371          { ac_try='test -s conftest.$ac_objext'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   ac_header_compiler=yes
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382 ac_header_compiler=no
13383 fi
13384 rm -f conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386 echo "${ECHO_T}$ac_header_compiler" >&6
13387
13388 # Is the header present?
13389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13391 cat >conftest.$ac_ext <<_ACEOF
13392 #line $LINENO "configure"
13393 /* confdefs.h.  */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h.  */
13398 #include <$ac_header>
13399 _ACEOF
13400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13402   ac_status=$?
13403   grep -v '^ *+' conftest.er1 >conftest.err
13404   rm -f conftest.er1
13405   cat conftest.err >&5
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } >/dev/null; then
13408   if test -s conftest.err; then
13409     ac_cpp_err=$ac_c_preproc_warn_flag
13410   else
13411     ac_cpp_err=
13412   fi
13413 else
13414   ac_cpp_err=yes
13415 fi
13416 if test -z "$ac_cpp_err"; then
13417   ac_header_preproc=yes
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422   ac_header_preproc=no
13423 fi
13424 rm -f conftest.err conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426 echo "${ECHO_T}$ac_header_preproc" >&6
13427
13428 # So?  What about this header?
13429 case $ac_header_compiler:$ac_header_preproc in
13430   yes:no )
13431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13435     (
13436       cat <<\_ASBOX
13437 ## ------------------------------------ ##
13438 ## Report this to bug-autoconf@gnu.org. ##
13439 ## ------------------------------------ ##
13440 _ASBOX
13441     ) |
13442       sed "s/^/$as_me: WARNING:     /" >&2
13443     ;;
13444   no:yes )
13445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13447     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13451     (
13452       cat <<\_ASBOX
13453 ## ------------------------------------ ##
13454 ## Report this to bug-autoconf@gnu.org. ##
13455 ## ------------------------------------ ##
13456 _ASBOX
13457     ) |
13458       sed "s/^/$as_me: WARNING:     /" >&2
13459     ;;
13460 esac
13461 echo "$as_me:$LINENO: checking for $ac_header" >&5
13462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464   echo $ECHO_N "(cached) $ECHO_C" >&6
13465 else
13466   eval "$as_ac_Header=$ac_header_preproc"
13467 fi
13468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13470
13471 fi
13472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13473   cat >>confdefs.h <<_ACEOF
13474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13475 _ACEOF
13476
13477 fi
13478
13479 done
13480
13481     fi
13482 fi
13483
13484
13485 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13486 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13487 if test "${ac_cv_c_const+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   cat >conftest.$ac_ext <<_ACEOF
13491 #line $LINENO "configure"
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 int
13499 main ()
13500 {
13501 /* FIXME: Include the comments suggested by Paul. */
13502 #ifndef __cplusplus
13503   /* Ultrix mips cc rejects this.  */
13504   typedef int charset[2];
13505   const charset x;
13506   /* SunOS 4.1.1 cc rejects this.  */
13507   char const *const *ccp;
13508   char **p;
13509   /* NEC SVR4.0.2 mips cc rejects this.  */
13510   struct point {int x, y;};
13511   static struct point const zero = {0,0};
13512   /* AIX XL C 1.02.0.0 rejects this.
13513      It does not let you subtract one const X* pointer from another in
13514      an arm of an if-expression whose if-part is not a constant
13515      expression */
13516   const char *g = "string";
13517   ccp = &g + (g ? g-g : 0);
13518   /* HPUX 7.0 cc rejects these. */
13519   ++ccp;
13520   p = (char**) ccp;
13521   ccp = (char const *const *) p;
13522   { /* SCO 3.2v4 cc rejects this.  */
13523     char *t;
13524     char const *s = 0 ? (char *) 0 : (char const *) 0;
13525
13526     *t++ = 0;
13527   }
13528   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13529     int x[] = {25, 17};
13530     const int *foo = &x[0];
13531     ++foo;
13532   }
13533   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13534     typedef const int *iptr;
13535     iptr p = 0;
13536     ++p;
13537   }
13538   { /* AIX XL C 1.02.0.0 rejects this saying
13539        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13540     struct s { int j; const int *ap[3]; };
13541     struct s *b; b->j = 5;
13542   }
13543   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13544     const int foo = 10;
13545   }
13546 #endif
13547
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554   (eval $ac_compile) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); } &&
13558          { ac_try='test -s conftest.$ac_objext'
13559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560   (eval $ac_try) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; }; then
13564   ac_cv_c_const=yes
13565 else
13566   echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_cv_c_const=no
13570 fi
13571 rm -f conftest.$ac_objext conftest.$ac_ext
13572 fi
13573 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13574 echo "${ECHO_T}$ac_cv_c_const" >&6
13575 if test $ac_cv_c_const = no; then
13576
13577 cat >>confdefs.h <<\_ACEOF
13578 #define const
13579 _ACEOF
13580
13581 fi
13582
13583 echo "$as_me:$LINENO: checking for inline" >&5
13584 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13585 if test "${ac_cv_c_inline+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   ac_cv_c_inline=no
13589 for ac_kw in inline __inline__ __inline; do
13590   cat >conftest.$ac_ext <<_ACEOF
13591 #line $LINENO "configure"
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597 #ifndef __cplusplus
13598 typedef int foo_t;
13599 static $ac_kw foo_t static_foo () {return 0; }
13600 $ac_kw foo_t foo () {return 0; }
13601 #endif
13602
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606   (eval $ac_compile) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } &&
13610          { ac_try='test -s conftest.$ac_objext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616   ac_cv_c_inline=$ac_kw; break
13617 else
13618   echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 fi
13622 rm -f conftest.$ac_objext conftest.$ac_ext
13623 done
13624
13625 fi
13626 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13627 echo "${ECHO_T}$ac_cv_c_inline" >&6
13628 case $ac_cv_c_inline in
13629   inline | yes) ;;
13630   no)
13631 cat >>confdefs.h <<\_ACEOF
13632 #define inline
13633 _ACEOF
13634  ;;
13635   *)  cat >>confdefs.h <<_ACEOF
13636 #define inline $ac_cv_c_inline
13637 _ACEOF
13638  ;;
13639 esac
13640
13641
13642 echo "$as_me:$LINENO: checking for char" >&5
13643 echo $ECHO_N "checking for char... $ECHO_C" >&6
13644 if test "${ac_cv_type_char+set}" = set; then
13645   echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647   cat >conftest.$ac_ext <<_ACEOF
13648 #line $LINENO "configure"
13649 /* confdefs.h.  */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h.  */
13654 $ac_includes_default
13655 int
13656 main ()
13657 {
13658 if ((char *) 0)
13659   return 0;
13660 if (sizeof (char))
13661   return 0;
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668   (eval $ac_compile) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -s conftest.$ac_objext'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; }; then
13678   ac_cv_type_char=yes
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683 ac_cv_type_char=no
13684 fi
13685 rm -f conftest.$ac_objext conftest.$ac_ext
13686 fi
13687 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13688 echo "${ECHO_T}$ac_cv_type_char" >&6
13689
13690 echo "$as_me:$LINENO: checking size of char" >&5
13691 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13692 if test "${ac_cv_sizeof_char+set}" = set; then
13693   echo $ECHO_N "(cached) $ECHO_C" >&6
13694 else
13695   if test "$ac_cv_type_char" = yes; then
13696   # The cast to unsigned long works around a bug in the HP C Compiler
13697   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13698   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13699   # This bug is HP SR number 8606223364.
13700   if test "$cross_compiling" = yes; then
13701   # Depending upon the size, compute the lo and hi bounds.
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 $ac_includes_default
13710 int
13711 main ()
13712 {
13713 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13714 test_array [0] = 0
13715
13716   ;
13717   return 0;
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_lo=0 ac_mid=0
13733   while :; do
13734     cat >conftest.$ac_ext <<_ACEOF
13735 #line $LINENO "configure"
13736 /* confdefs.h.  */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h.  */
13741 $ac_includes_default
13742 int
13743 main ()
13744 {
13745 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13746 test_array [0] = 0
13747
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754   (eval $ac_compile) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -s conftest.$ac_objext'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   ac_hi=$ac_mid; break
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 ac_lo=`expr $ac_mid + 1`
13770                     if test $ac_lo -le $ac_mid; then
13771                       ac_lo= ac_hi=
13772                       break
13773                     fi
13774                     ac_mid=`expr 2 '*' $ac_mid + 1`
13775 fi
13776 rm -f conftest.$ac_objext conftest.$ac_ext
13777   done
13778 else
13779   echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 cat >conftest.$ac_ext <<_ACEOF
13783 #line $LINENO "configure"
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 $ac_includes_default
13790 int
13791 main ()
13792 {
13793 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13794 test_array [0] = 0
13795
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802   (eval $ac_compile) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } &&
13806          { ac_try='test -s conftest.$ac_objext'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; }; then
13812   ac_hi=-1 ac_mid=-1
13813   while :; do
13814     cat >conftest.$ac_ext <<_ACEOF
13815 #line $LINENO "configure"
13816 /* confdefs.h.  */
13817 _ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h.  */
13821 $ac_includes_default
13822 int
13823 main ()
13824 {
13825 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13826 test_array [0] = 0
13827
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834   (eval $ac_compile) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); } &&
13838          { ac_try='test -s conftest.$ac_objext'
13839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840   (eval $ac_try) 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; }; then
13844   ac_lo=$ac_mid; break
13845 else
13846   echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 ac_hi=`expr '(' $ac_mid ')' - 1`
13850                        if test $ac_mid -le $ac_hi; then
13851                          ac_lo= ac_hi=
13852                          break
13853                        fi
13854                        ac_mid=`expr 2 '*' $ac_mid`
13855 fi
13856 rm -f conftest.$ac_objext conftest.$ac_ext
13857   done
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 ac_lo= ac_hi=
13863 fi
13864 rm -f conftest.$ac_objext conftest.$ac_ext
13865 fi
13866 rm -f conftest.$ac_objext conftest.$ac_ext
13867 # Binary search between lo and hi bounds.
13868 while test "x$ac_lo" != "x$ac_hi"; do
13869   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13870   cat >conftest.$ac_ext <<_ACEOF
13871 #line $LINENO "configure"
13872 /* confdefs.h.  */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h.  */
13877 $ac_includes_default
13878 int
13879 main ()
13880 {
13881 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13882 test_array [0] = 0
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890   (eval $ac_compile) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_hi=$ac_mid
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_lo=`expr '(' $ac_mid ')' + 1`
13906 fi
13907 rm -f conftest.$ac_objext conftest.$ac_ext
13908 done
13909 case $ac_lo in
13910 ?*) ac_cv_sizeof_char=$ac_lo;;
13911 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13912 See \`config.log' for more details." >&5
13913 echo "$as_me: error: cannot compute sizeof (char), 77
13914 See \`config.log' for more details." >&2;}
13915    { (exit 1); exit 1; }; } ;;
13916 esac
13917 else
13918   if test "$cross_compiling" = yes; then
13919   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13920 See \`config.log' for more details." >&5
13921 echo "$as_me: error: cannot run test program while cross compiling
13922 See \`config.log' for more details." >&2;}
13923    { (exit 1); exit 1; }; }
13924 else
13925   cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932 $ac_includes_default
13933 long longval () { return (long) (sizeof (char)); }
13934 unsigned long ulongval () { return (long) (sizeof (char)); }
13935 #include <stdio.h>
13936 #include <stdlib.h>
13937 int
13938 main ()
13939 {
13940
13941   FILE *f = fopen ("conftest.val", "w");
13942   if (! f)
13943     exit (1);
13944   if (((long) (sizeof (char))) < 0)
13945     {
13946       long i = longval ();
13947       if (i != ((long) (sizeof (char))))
13948         exit (1);
13949       fprintf (f, "%ld\n", i);
13950     }
13951   else
13952     {
13953       unsigned long i = ulongval ();
13954       if (i != ((long) (sizeof (char))))
13955         exit (1);
13956       fprintf (f, "%lu\n", i);
13957     }
13958   exit (ferror (f) || fclose (f) != 0);
13959
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 rm -f conftest$ac_exeext
13965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13966   (eval $ac_link) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; }; then
13975   ac_cv_sizeof_char=`cat conftest.val`
13976 else
13977   echo "$as_me: program exited with status $ac_status" >&5
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981 ( exit $ac_status )
13982 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13983 See \`config.log' for more details." >&5
13984 echo "$as_me: error: cannot compute sizeof (char), 77
13985 See \`config.log' for more details." >&2;}
13986    { (exit 1); exit 1; }; }
13987 fi
13988 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13989 fi
13990 fi
13991 rm -f conftest.val
13992 else
13993   ac_cv_sizeof_char=0
13994 fi
13995 fi
13996 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13997 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13998 cat >>confdefs.h <<_ACEOF
13999 #define SIZEOF_CHAR $ac_cv_sizeof_char
14000 _ACEOF
14001
14002
14003 echo "$as_me:$LINENO: checking for short" >&5
14004 echo $ECHO_N "checking for short... $ECHO_C" >&6
14005 if test "${ac_cv_type_short+set}" = set; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015 $ac_includes_default
14016 int
14017 main ()
14018 {
14019 if ((short *) 0)
14020   return 0;
14021 if (sizeof (short))
14022   return 0;
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 rm -f conftest.$ac_objext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029   (eval $ac_compile) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); } &&
14033          { ac_try='test -s conftest.$ac_objext'
14034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035   (eval $ac_try) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); }; }; then
14039   ac_cv_type_short=yes
14040 else
14041   echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ac_cv_type_short=no
14045 fi
14046 rm -f conftest.$ac_objext conftest.$ac_ext
14047 fi
14048 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14049 echo "${ECHO_T}$ac_cv_type_short" >&6
14050
14051 echo "$as_me:$LINENO: checking size of short" >&5
14052 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14053 if test "${ac_cv_sizeof_short+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   if test "$ac_cv_type_short" = yes; then
14057   # The cast to unsigned long works around a bug in the HP C Compiler
14058   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14059   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14060   # This bug is HP SR number 8606223364.
14061   if test "$cross_compiling" = yes; then
14062   # Depending upon the size, compute the lo and hi bounds.
14063 cat >conftest.$ac_ext <<_ACEOF
14064 #line $LINENO "configure"
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 $ac_includes_default
14071 int
14072 main ()
14073 {
14074 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14075 test_array [0] = 0
14076
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083   (eval $ac_compile) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } &&
14087          { ac_try='test -s conftest.$ac_objext'
14088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089   (eval $ac_try) 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; }; then
14093   ac_lo=0 ac_mid=0
14094   while :; do
14095     cat >conftest.$ac_ext <<_ACEOF
14096 #line $LINENO "configure"
14097 /* confdefs.h.  */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h.  */
14102 $ac_includes_default
14103 int
14104 main ()
14105 {
14106 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14107 test_array [0] = 0
14108
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14115   (eval $ac_compile) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); } &&
14119          { ac_try='test -s conftest.$ac_objext'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; }; then
14125   ac_hi=$ac_mid; break
14126 else
14127   echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 ac_lo=`expr $ac_mid + 1`
14131                     if test $ac_lo -le $ac_mid; then
14132                       ac_lo= ac_hi=
14133                       break
14134                     fi
14135                     ac_mid=`expr 2 '*' $ac_mid + 1`
14136 fi
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14138   done
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143 cat >conftest.$ac_ext <<_ACEOF
14144 #line $LINENO "configure"
14145 /* confdefs.h.  */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h.  */
14150 $ac_includes_default
14151 int
14152 main ()
14153 {
14154 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14155 test_array [0] = 0
14156
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163   (eval $ac_compile) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } &&
14167          { ac_try='test -s conftest.$ac_objext'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; }; then
14173   ac_hi=-1 ac_mid=-1
14174   while :; do
14175     cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14177 /* confdefs.h.  */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h.  */
14182 $ac_includes_default
14183 int
14184 main ()
14185 {
14186 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14187 test_array [0] = 0
14188
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195   (eval $ac_compile) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205   ac_lo=$ac_mid; break
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210 ac_hi=`expr '(' $ac_mid ')' - 1`
14211                        if test $ac_mid -le $ac_hi; then
14212                          ac_lo= ac_hi=
14213                          break
14214                        fi
14215                        ac_mid=`expr 2 '*' $ac_mid`
14216 fi
14217 rm -f conftest.$ac_objext conftest.$ac_ext
14218   done
14219 else
14220   echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_lo= ac_hi=
14224 fi
14225 rm -f conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 rm -f conftest.$ac_objext conftest.$ac_ext
14228 # Binary search between lo and hi bounds.
14229 while test "x$ac_lo" != "x$ac_hi"; do
14230   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14231   cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 $ac_includes_default
14239 int
14240 main ()
14241 {
14242 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14243 test_array [0] = 0
14244
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251   (eval $ac_compile) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_hi=$ac_mid
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_lo=`expr '(' $ac_mid ')' + 1`
14267 fi
14268 rm -f conftest.$ac_objext conftest.$ac_ext
14269 done
14270 case $ac_lo in
14271 ?*) ac_cv_sizeof_short=$ac_lo;;
14272 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14273 See \`config.log' for more details." >&5
14274 echo "$as_me: error: cannot compute sizeof (short), 77
14275 See \`config.log' for more details." >&2;}
14276    { (exit 1); exit 1; }; } ;;
14277 esac
14278 else
14279   if test "$cross_compiling" = yes; then
14280   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14281 See \`config.log' for more details." >&5
14282 echo "$as_me: error: cannot run test program while cross compiling
14283 See \`config.log' for more details." >&2;}
14284    { (exit 1); exit 1; }; }
14285 else
14286   cat >conftest.$ac_ext <<_ACEOF
14287 #line $LINENO "configure"
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 $ac_includes_default
14294 long longval () { return (long) (sizeof (short)); }
14295 unsigned long ulongval () { return (long) (sizeof (short)); }
14296 #include <stdio.h>
14297 #include <stdlib.h>
14298 int
14299 main ()
14300 {
14301
14302   FILE *f = fopen ("conftest.val", "w");
14303   if (! f)
14304     exit (1);
14305   if (((long) (sizeof (short))) < 0)
14306     {
14307       long i = longval ();
14308       if (i != ((long) (sizeof (short))))
14309         exit (1);
14310       fprintf (f, "%ld\n", i);
14311     }
14312   else
14313     {
14314       unsigned long i = ulongval ();
14315       if (i != ((long) (sizeof (short))))
14316         exit (1);
14317       fprintf (f, "%lu\n", i);
14318     }
14319   exit (ferror (f) || fclose (f) != 0);
14320
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest$ac_exeext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14327   (eval $ac_link) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; }; then
14336   ac_cv_sizeof_short=`cat conftest.val`
14337 else
14338   echo "$as_me: program exited with status $ac_status" >&5
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ( exit $ac_status )
14343 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14344 See \`config.log' for more details." >&5
14345 echo "$as_me: error: cannot compute sizeof (short), 77
14346 See \`config.log' for more details." >&2;}
14347    { (exit 1); exit 1; }; }
14348 fi
14349 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 fi
14352 rm -f conftest.val
14353 else
14354   ac_cv_sizeof_short=0
14355 fi
14356 fi
14357 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14358 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14359 cat >>confdefs.h <<_ACEOF
14360 #define SIZEOF_SHORT $ac_cv_sizeof_short
14361 _ACEOF
14362
14363
14364 echo "$as_me:$LINENO: checking for void *" >&5
14365 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14366 if test "${ac_cv_type_void_p+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376 $ac_includes_default
14377 int
14378 main ()
14379 {
14380 if ((void * *) 0)
14381   return 0;
14382 if (sizeof (void *))
14383   return 0;
14384   ;
14385   return 0;
14386 }
14387 _ACEOF
14388 rm -f conftest.$ac_objext
14389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390   (eval $ac_compile) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -s conftest.$ac_objext'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; }; then
14400   ac_cv_type_void_p=yes
14401 else
14402   echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 ac_cv_type_void_p=no
14406 fi
14407 rm -f conftest.$ac_objext conftest.$ac_ext
14408 fi
14409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14411
14412 echo "$as_me:$LINENO: checking size of void *" >&5
14413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14414 if test "${ac_cv_sizeof_void_p+set}" = set; then
14415   echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417   if test "$ac_cv_type_void_p" = yes; then
14418   # The cast to unsigned long works around a bug in the HP C Compiler
14419   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14420   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14421   # This bug is HP SR number 8606223364.
14422   if test "$cross_compiling" = yes; then
14423   # Depending upon the size, compute the lo and hi bounds.
14424 cat >conftest.$ac_ext <<_ACEOF
14425 #line $LINENO "configure"
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 $ac_includes_default
14432 int
14433 main ()
14434 {
14435 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14436 test_array [0] = 0
14437
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444   (eval $ac_compile) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_lo=0 ac_mid=0
14455   while :; do
14456     cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 $ac_includes_default
14464 int
14465 main ()
14466 {
14467 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14468 test_array [0] = 0
14469
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476   (eval $ac_compile) 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } &&
14480          { ac_try='test -s conftest.$ac_objext'
14481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482   (eval $ac_try) 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }; }; then
14486   ac_hi=$ac_mid; break
14487 else
14488   echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ac_lo=`expr $ac_mid + 1`
14492                     if test $ac_lo -le $ac_mid; then
14493                       ac_lo= ac_hi=
14494                       break
14495                     fi
14496                     ac_mid=`expr 2 '*' $ac_mid + 1`
14497 fi
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14499   done
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 cat >conftest.$ac_ext <<_ACEOF
14505 #line $LINENO "configure"
14506 /* confdefs.h.  */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h.  */
14511 $ac_includes_default
14512 int
14513 main ()
14514 {
14515 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14516 test_array [0] = 0
14517
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } &&
14528          { ac_try='test -s conftest.$ac_objext'
14529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; }; then
14534   ac_hi=-1 ac_mid=-1
14535   while :; do
14536     cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 /* confdefs.h.  */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h.  */
14543 $ac_includes_default
14544 int
14545 main ()
14546 {
14547 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14548 test_array [0] = 0
14549
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556   (eval $ac_compile) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -s conftest.$ac_objext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_lo=$ac_mid; break
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_hi=`expr '(' $ac_mid ')' - 1`
14572                        if test $ac_mid -le $ac_hi; then
14573                          ac_lo= ac_hi=
14574                          break
14575                        fi
14576                        ac_mid=`expr 2 '*' $ac_mid`
14577 fi
14578 rm -f conftest.$ac_objext conftest.$ac_ext
14579   done
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 ac_lo= ac_hi=
14585 fi
14586 rm -f conftest.$ac_objext conftest.$ac_ext
14587 fi
14588 rm -f conftest.$ac_objext conftest.$ac_ext
14589 # Binary search between lo and hi bounds.
14590 while test "x$ac_lo" != "x$ac_hi"; do
14591   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14592   cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 $ac_includes_default
14600 int
14601 main ()
14602 {
14603 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14604 test_array [0] = 0
14605
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 rm -f conftest.$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612   (eval $ac_compile) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } &&
14616          { ac_try='test -s conftest.$ac_objext'
14617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618   (eval $ac_try) 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); }; }; then
14622   ac_hi=$ac_mid
14623 else
14624   echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14626
14627 ac_lo=`expr '(' $ac_mid ')' + 1`
14628 fi
14629 rm -f conftest.$ac_objext conftest.$ac_ext
14630 done
14631 case $ac_lo in
14632 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14634 See \`config.log' for more details." >&5
14635 echo "$as_me: error: cannot compute sizeof (void *), 77
14636 See \`config.log' for more details." >&2;}
14637    { (exit 1); exit 1; }; } ;;
14638 esac
14639 else
14640   if test "$cross_compiling" = yes; then
14641   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14642 See \`config.log' for more details." >&5
14643 echo "$as_me: error: cannot run test program while cross compiling
14644 See \`config.log' for more details." >&2;}
14645    { (exit 1); exit 1; }; }
14646 else
14647   cat >conftest.$ac_ext <<_ACEOF
14648 #line $LINENO "configure"
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 $ac_includes_default
14655 long longval () { return (long) (sizeof (void *)); }
14656 unsigned long ulongval () { return (long) (sizeof (void *)); }
14657 #include <stdio.h>
14658 #include <stdlib.h>
14659 int
14660 main ()
14661 {
14662
14663   FILE *f = fopen ("conftest.val", "w");
14664   if (! f)
14665     exit (1);
14666   if (((long) (sizeof (void *))) < 0)
14667     {
14668       long i = longval ();
14669       if (i != ((long) (sizeof (void *))))
14670         exit (1);
14671       fprintf (f, "%ld\n", i);
14672     }
14673   else
14674     {
14675       unsigned long i = ulongval ();
14676       if (i != ((long) (sizeof (void *))))
14677         exit (1);
14678       fprintf (f, "%lu\n", i);
14679     }
14680   exit (ferror (f) || fclose (f) != 0);
14681
14682   ;
14683   return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688   (eval $ac_link) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; }; then
14697   ac_cv_sizeof_void_p=`cat conftest.val`
14698 else
14699   echo "$as_me: program exited with status $ac_status" >&5
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ( exit $ac_status )
14704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14705 See \`config.log' for more details." >&5
14706 echo "$as_me: error: cannot compute sizeof (void *), 77
14707 See \`config.log' for more details." >&2;}
14708    { (exit 1); exit 1; }; }
14709 fi
14710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14711 fi
14712 fi
14713 rm -f conftest.val
14714 else
14715   ac_cv_sizeof_void_p=0
14716 fi
14717 fi
14718 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14719 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14720 cat >>confdefs.h <<_ACEOF
14721 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14722 _ACEOF
14723
14724
14725 echo "$as_me:$LINENO: checking for int" >&5
14726 echo $ECHO_N "checking for int... $ECHO_C" >&6
14727 if test "${ac_cv_type_int+set}" = set; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   cat >conftest.$ac_ext <<_ACEOF
14731 #line $LINENO "configure"
14732 /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737 $ac_includes_default
14738 int
14739 main ()
14740 {
14741 if ((int *) 0)
14742   return 0;
14743 if (sizeof (int))
14744   return 0;
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751   (eval $ac_compile) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -s conftest.$ac_objext'
14756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757   (eval $ac_try) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_cv_type_int=yes
14762 else
14763   echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 ac_cv_type_int=no
14767 fi
14768 rm -f conftest.$ac_objext conftest.$ac_ext
14769 fi
14770 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14771 echo "${ECHO_T}$ac_cv_type_int" >&6
14772
14773 echo "$as_me:$LINENO: checking size of int" >&5
14774 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14775 if test "${ac_cv_sizeof_int+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778   if test "$ac_cv_type_int" = yes; then
14779   # The cast to unsigned long works around a bug in the HP C Compiler
14780   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14781   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14782   # This bug is HP SR number 8606223364.
14783   if test "$cross_compiling" = yes; then
14784   # Depending upon the size, compute the lo and hi bounds.
14785 cat >conftest.$ac_ext <<_ACEOF
14786 #line $LINENO "configure"
14787 /* confdefs.h.  */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h.  */
14792 $ac_includes_default
14793 int
14794 main ()
14795 {
14796 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14797 test_array [0] = 0
14798
14799   ;
14800   return 0;
14801 }
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805   (eval $ac_compile) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } &&
14809          { ac_try='test -s conftest.$ac_objext'
14810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811   (eval $ac_try) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_lo=0 ac_mid=0
14816   while :; do
14817     cat >conftest.$ac_ext <<_ACEOF
14818 #line $LINENO "configure"
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824 $ac_includes_default
14825 int
14826 main ()
14827 {
14828 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14829 test_array [0] = 0
14830
14831   ;
14832   return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837   (eval $ac_compile) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } &&
14841          { ac_try='test -s conftest.$ac_objext'
14842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843   (eval $ac_try) 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; }; then
14847   ac_hi=$ac_mid; break
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ac_lo=`expr $ac_mid + 1`
14853                     if test $ac_lo -le $ac_mid; then
14854                       ac_lo= ac_hi=
14855                       break
14856                     fi
14857                     ac_mid=`expr 2 '*' $ac_mid + 1`
14858 fi
14859 rm -f conftest.$ac_objext conftest.$ac_ext
14860   done
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 /* confdefs.h.  */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h.  */
14872 $ac_includes_default
14873 int
14874 main ()
14875 {
14876 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14877 test_array [0] = 0
14878
14879   ;
14880   return 0;
14881 }
14882 _ACEOF
14883 rm -f conftest.$ac_objext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14885   (eval $ac_compile) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); } &&
14889          { ac_try='test -s conftest.$ac_objext'
14890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891   (eval $ac_try) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; }; then
14895   ac_hi=-1 ac_mid=-1
14896   while :; do
14897     cat >conftest.$ac_ext <<_ACEOF
14898 #line $LINENO "configure"
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 $ac_includes_default
14905 int
14906 main ()
14907 {
14908 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14909 test_array [0] = 0
14910
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917   (eval $ac_compile) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } &&
14921          { ac_try='test -s conftest.$ac_objext'
14922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923   (eval $ac_try) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; }; then
14927   ac_lo=$ac_mid; break
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_hi=`expr '(' $ac_mid ')' - 1`
14933                        if test $ac_mid -le $ac_hi; then
14934                          ac_lo= ac_hi=
14935                          break
14936                        fi
14937                        ac_mid=`expr 2 '*' $ac_mid`
14938 fi
14939 rm -f conftest.$ac_objext conftest.$ac_ext
14940   done
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_lo= ac_hi=
14946 fi
14947 rm -f conftest.$ac_objext conftest.$ac_ext
14948 fi
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14950 # Binary search between lo and hi bounds.
14951 while test "x$ac_lo" != "x$ac_hi"; do
14952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14953   cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 $ac_includes_default
14961 int
14962 main ()
14963 {
14964 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14965 test_array [0] = 0
14966
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest.$ac_objext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973   (eval $ac_compile) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -s conftest.$ac_objext'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; }; then
14983   ac_hi=$ac_mid
14984 else
14985   echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 ac_lo=`expr '(' $ac_mid ')' + 1`
14989 fi
14990 rm -f conftest.$ac_objext conftest.$ac_ext
14991 done
14992 case $ac_lo in
14993 ?*) ac_cv_sizeof_int=$ac_lo;;
14994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14995 See \`config.log' for more details." >&5
14996 echo "$as_me: error: cannot compute sizeof (int), 77
14997 See \`config.log' for more details." >&2;}
14998    { (exit 1); exit 1; }; } ;;
14999 esac
15000 else
15001   if test "$cross_compiling" = yes; then
15002   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15003 See \`config.log' for more details." >&5
15004 echo "$as_me: error: cannot run test program while cross compiling
15005 See \`config.log' for more details." >&2;}
15006    { (exit 1); exit 1; }; }
15007 else
15008   cat >conftest.$ac_ext <<_ACEOF
15009 #line $LINENO "configure"
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015 $ac_includes_default
15016 long longval () { return (long) (sizeof (int)); }
15017 unsigned long ulongval () { return (long) (sizeof (int)); }
15018 #include <stdio.h>
15019 #include <stdlib.h>
15020 int
15021 main ()
15022 {
15023
15024   FILE *f = fopen ("conftest.val", "w");
15025   if (! f)
15026     exit (1);
15027   if (((long) (sizeof (int))) < 0)
15028     {
15029       long i = longval ();
15030       if (i != ((long) (sizeof (int))))
15031         exit (1);
15032       fprintf (f, "%ld\n", i);
15033     }
15034   else
15035     {
15036       unsigned long i = ulongval ();
15037       if (i != ((long) (sizeof (int))))
15038         exit (1);
15039       fprintf (f, "%lu\n", i);
15040     }
15041   exit (ferror (f) || fclose (f) != 0);
15042
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest$ac_exeext
15048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15049   (eval $ac_link) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054   (eval $ac_try) 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; }; then
15058   ac_cv_sizeof_int=`cat conftest.val`
15059 else
15060   echo "$as_me: program exited with status $ac_status" >&5
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ( exit $ac_status )
15065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15066 See \`config.log' for more details." >&5
15067 echo "$as_me: error: cannot compute sizeof (int), 77
15068 See \`config.log' for more details." >&2;}
15069    { (exit 1); exit 1; }; }
15070 fi
15071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15072 fi
15073 fi
15074 rm -f conftest.val
15075 else
15076   ac_cv_sizeof_int=0
15077 fi
15078 fi
15079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15080 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15081 cat >>confdefs.h <<_ACEOF
15082 #define SIZEOF_INT $ac_cv_sizeof_int
15083 _ACEOF
15084
15085
15086 echo "$as_me:$LINENO: checking for long" >&5
15087 echo $ECHO_N "checking for long... $ECHO_C" >&6
15088 if test "${ac_cv_type_long+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098 $ac_includes_default
15099 int
15100 main ()
15101 {
15102 if ((long *) 0)
15103   return 0;
15104 if (sizeof (long))
15105   return 0;
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112   (eval $ac_compile) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -s conftest.$ac_objext'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; }; then
15122   ac_cv_type_long=yes
15123 else
15124   echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 ac_cv_type_long=no
15128 fi
15129 rm -f conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15132 echo "${ECHO_T}$ac_cv_type_long" >&6
15133
15134 echo "$as_me:$LINENO: checking size of long" >&5
15135 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15136 if test "${ac_cv_sizeof_long+set}" = set; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   if test "$ac_cv_type_long" = yes; then
15140   # The cast to unsigned long works around a bug in the HP C Compiler
15141   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15142   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15143   # This bug is HP SR number 8606223364.
15144   if test "$cross_compiling" = yes; then
15145   # Depending upon the size, compute the lo and hi bounds.
15146 cat >conftest.$ac_ext <<_ACEOF
15147 #line $LINENO "configure"
15148 /* confdefs.h.  */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h.  */
15153 $ac_includes_default
15154 int
15155 main ()
15156 {
15157 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15158 test_array [0] = 0
15159
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15166   (eval $ac_compile) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -s conftest.$ac_objext'
15171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172   (eval $ac_try) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; }; then
15176   ac_lo=0 ac_mid=0
15177   while :; do
15178     cat >conftest.$ac_ext <<_ACEOF
15179 #line $LINENO "configure"
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185 $ac_includes_default
15186 int
15187 main ()
15188 {
15189 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15190 test_array [0] = 0
15191
15192   ;
15193   return 0;
15194 }
15195 _ACEOF
15196 rm -f conftest.$ac_objext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15198   (eval $ac_compile) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } &&
15202          { ac_try='test -s conftest.$ac_objext'
15203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204   (eval $ac_try) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; }; then
15208   ac_hi=$ac_mid; break
15209 else
15210   echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 ac_lo=`expr $ac_mid + 1`
15214                     if test $ac_lo -le $ac_mid; then
15215                       ac_lo= ac_hi=
15216                       break
15217                     fi
15218                     ac_mid=`expr 2 '*' $ac_mid + 1`
15219 fi
15220 rm -f conftest.$ac_objext conftest.$ac_ext
15221   done
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 cat >conftest.$ac_ext <<_ACEOF
15227 #line $LINENO "configure"
15228 /* confdefs.h.  */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h.  */
15233 $ac_includes_default
15234 int
15235 main ()
15236 {
15237 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15238 test_array [0] = 0
15239
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246   (eval $ac_compile) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } &&
15250          { ac_try='test -s conftest.$ac_objext'
15251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252   (eval $ac_try) 2>&5
15253   ac_status=$?
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); }; }; then
15256   ac_hi=-1 ac_mid=-1
15257   while :; do
15258     cat >conftest.$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 $ac_includes_default
15266 int
15267 main ()
15268 {
15269 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15270 test_array [0] = 0
15271
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278   (eval $ac_compile) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); } &&
15282          { ac_try='test -s conftest.$ac_objext'
15283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284   (eval $ac_try) 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; }; then
15288   ac_lo=$ac_mid; break
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 ac_hi=`expr '(' $ac_mid ')' - 1`
15294                        if test $ac_mid -le $ac_hi; then
15295                          ac_lo= ac_hi=
15296                          break
15297                        fi
15298                        ac_mid=`expr 2 '*' $ac_mid`
15299 fi
15300 rm -f conftest.$ac_objext conftest.$ac_ext
15301   done
15302 else
15303   echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306 ac_lo= ac_hi=
15307 fi
15308 rm -f conftest.$ac_objext conftest.$ac_ext
15309 fi
15310 rm -f conftest.$ac_objext conftest.$ac_ext
15311 # Binary search between lo and hi bounds.
15312 while test "x$ac_lo" != "x$ac_hi"; do
15313   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15314   cat >conftest.$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 $ac_includes_default
15322 int
15323 main ()
15324 {
15325 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15326 test_array [0] = 0
15327
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15334   (eval $ac_compile) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -s conftest.$ac_objext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   ac_hi=$ac_mid
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_lo=`expr '(' $ac_mid ')' + 1`
15350 fi
15351 rm -f conftest.$ac_objext conftest.$ac_ext
15352 done
15353 case $ac_lo in
15354 ?*) ac_cv_sizeof_long=$ac_lo;;
15355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15356 See \`config.log' for more details." >&5
15357 echo "$as_me: error: cannot compute sizeof (long), 77
15358 See \`config.log' for more details." >&2;}
15359    { (exit 1); exit 1; }; } ;;
15360 esac
15361 else
15362   if test "$cross_compiling" = yes; then
15363   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15364 See \`config.log' for more details." >&5
15365 echo "$as_me: error: cannot run test program while cross compiling
15366 See \`config.log' for more details." >&2;}
15367    { (exit 1); exit 1; }; }
15368 else
15369   cat >conftest.$ac_ext <<_ACEOF
15370 #line $LINENO "configure"
15371 /* confdefs.h.  */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h.  */
15376 $ac_includes_default
15377 long longval () { return (long) (sizeof (long)); }
15378 unsigned long ulongval () { return (long) (sizeof (long)); }
15379 #include <stdio.h>
15380 #include <stdlib.h>
15381 int
15382 main ()
15383 {
15384
15385   FILE *f = fopen ("conftest.val", "w");
15386   if (! f)
15387     exit (1);
15388   if (((long) (sizeof (long))) < 0)
15389     {
15390       long i = longval ();
15391       if (i != ((long) (sizeof (long))))
15392         exit (1);
15393       fprintf (f, "%ld\n", i);
15394     }
15395   else
15396     {
15397       unsigned long i = ulongval ();
15398       if (i != ((long) (sizeof (long))))
15399         exit (1);
15400       fprintf (f, "%lu\n", i);
15401     }
15402   exit (ferror (f) || fclose (f) != 0);
15403
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410   (eval $ac_link) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_cv_sizeof_long=`cat conftest.val`
15420 else
15421   echo "$as_me: program exited with status $ac_status" >&5
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ( exit $ac_status )
15426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15427 See \`config.log' for more details." >&5
15428 echo "$as_me: error: cannot compute sizeof (long), 77
15429 See \`config.log' for more details." >&2;}
15430    { (exit 1); exit 1; }; }
15431 fi
15432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15433 fi
15434 fi
15435 rm -f conftest.val
15436 else
15437   ac_cv_sizeof_long=0
15438 fi
15439 fi
15440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15441 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15442 cat >>confdefs.h <<_ACEOF
15443 #define SIZEOF_LONG $ac_cv_sizeof_long
15444 _ACEOF
15445
15446
15447
15448 case "${host}" in
15449     arm-*-linux* )
15450         echo "$as_me:$LINENO: checking for long long" >&5
15451 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15452 if test "${ac_cv_type_long_long+set}" = set; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455   cat >conftest.$ac_ext <<_ACEOF
15456 #line $LINENO "configure"
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462 $ac_includes_default
15463 int
15464 main ()
15465 {
15466 if ((long long *) 0)
15467   return 0;
15468 if (sizeof (long long))
15469   return 0;
15470   ;
15471   return 0;
15472 }
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476   (eval $ac_compile) 2>&5
15477   ac_status=$?
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } &&
15480          { ac_try='test -s conftest.$ac_objext'
15481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482   (eval $ac_try) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }; }; then
15486   ac_cv_type_long_long=yes
15487 else
15488   echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ac_cv_type_long_long=no
15492 fi
15493 rm -f conftest.$ac_objext conftest.$ac_ext
15494 fi
15495 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15496 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15497
15498 echo "$as_me:$LINENO: checking size of long long" >&5
15499 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15500 if test "${ac_cv_sizeof_long_long+set}" = set; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503   if test "$ac_cv_type_long_long" = yes; then
15504   # The cast to unsigned long works around a bug in the HP C Compiler
15505   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15506   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15507   # This bug is HP SR number 8606223364.
15508   if test "$cross_compiling" = yes; then
15509   # Depending upon the size, compute the lo and hi bounds.
15510 cat >conftest.$ac_ext <<_ACEOF
15511 #line $LINENO "configure"
15512 /* confdefs.h.  */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h.  */
15517 $ac_includes_default
15518 int
15519 main ()
15520 {
15521 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15522 test_array [0] = 0
15523
15524   ;
15525   return 0;
15526 }
15527 _ACEOF
15528 rm -f conftest.$ac_objext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15530   (eval $ac_compile) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); } &&
15534          { ac_try='test -s conftest.$ac_objext'
15535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536   (eval $ac_try) 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; }; then
15540   ac_lo=0 ac_mid=0
15541   while :; do
15542     cat >conftest.$ac_ext <<_ACEOF
15543 #line $LINENO "configure"
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549 $ac_includes_default
15550 int
15551 main ()
15552 {
15553 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15554 test_array [0] = 0
15555
15556   ;
15557   return 0;
15558 }
15559 _ACEOF
15560 rm -f conftest.$ac_objext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562   (eval $ac_compile) 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } &&
15566          { ac_try='test -s conftest.$ac_objext'
15567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568   (eval $ac_try) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }; }; then
15572   ac_hi=$ac_mid; break
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577 ac_lo=`expr $ac_mid + 1`
15578                     if test $ac_lo -le $ac_mid; then
15579                       ac_lo= ac_hi=
15580                       break
15581                     fi
15582                     ac_mid=`expr 2 '*' $ac_mid + 1`
15583 fi
15584 rm -f conftest.$ac_objext conftest.$ac_ext
15585   done
15586 else
15587   echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 cat >conftest.$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597 $ac_includes_default
15598 int
15599 main ()
15600 {
15601 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15602 test_array [0] = 0
15603
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 rm -f conftest.$ac_objext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15610   (eval $ac_compile) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } &&
15614          { ac_try='test -s conftest.$ac_objext'
15615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616   (eval $ac_try) 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620   ac_hi=-1 ac_mid=-1
15621   while :; do
15622     cat >conftest.$ac_ext <<_ACEOF
15623 #line $LINENO "configure"
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 $ac_includes_default
15630 int
15631 main ()
15632 {
15633 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15634 test_array [0] = 0
15635
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642   (eval $ac_compile) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } &&
15646          { ac_try='test -s conftest.$ac_objext'
15647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648   (eval $ac_try) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; }; then
15652   ac_lo=$ac_mid; break
15653 else
15654   echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15656
15657 ac_hi=`expr '(' $ac_mid ')' - 1`
15658                        if test $ac_mid -le $ac_hi; then
15659                          ac_lo= ac_hi=
15660                          break
15661                        fi
15662                        ac_mid=`expr 2 '*' $ac_mid`
15663 fi
15664 rm -f conftest.$ac_objext conftest.$ac_ext
15665   done
15666 else
15667   echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_lo= ac_hi=
15671 fi
15672 rm -f conftest.$ac_objext conftest.$ac_ext
15673 fi
15674 rm -f conftest.$ac_objext conftest.$ac_ext
15675 # Binary search between lo and hi bounds.
15676 while test "x$ac_lo" != "x$ac_hi"; do
15677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15678   cat >conftest.$ac_ext <<_ACEOF
15679 #line $LINENO "configure"
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685 $ac_includes_default
15686 int
15687 main ()
15688 {
15689 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15690 test_array [0] = 0
15691
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698   (eval $ac_compile) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -s conftest.$ac_objext'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   ac_hi=$ac_mid
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 ac_lo=`expr '(' $ac_mid ')' + 1`
15714 fi
15715 rm -f conftest.$ac_objext conftest.$ac_ext
15716 done
15717 case $ac_lo in
15718 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15719 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15720 See \`config.log' for more details." >&5
15721 echo "$as_me: error: cannot compute sizeof (long long), 77
15722 See \`config.log' for more details." >&2;}
15723    { (exit 1); exit 1; }; } ;;
15724 esac
15725 else
15726   if test "$cross_compiling" = yes; then
15727   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15728 See \`config.log' for more details." >&5
15729 echo "$as_me: error: cannot run test program while cross compiling
15730 See \`config.log' for more details." >&2;}
15731    { (exit 1); exit 1; }; }
15732 else
15733   cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 $ac_includes_default
15741 long longval () { return (long) (sizeof (long long)); }
15742 unsigned long ulongval () { return (long) (sizeof (long long)); }
15743 #include <stdio.h>
15744 #include <stdlib.h>
15745 int
15746 main ()
15747 {
15748
15749   FILE *f = fopen ("conftest.val", "w");
15750   if (! f)
15751     exit (1);
15752   if (((long) (sizeof (long long))) < 0)
15753     {
15754       long i = longval ();
15755       if (i != ((long) (sizeof (long long))))
15756         exit (1);
15757       fprintf (f, "%ld\n", i);
15758     }
15759   else
15760     {
15761       unsigned long i = ulongval ();
15762       if (i != ((long) (sizeof (long long))))
15763         exit (1);
15764       fprintf (f, "%lu\n", i);
15765     }
15766   exit (ferror (f) || fclose (f) != 0);
15767
15768   ;
15769   return 0;
15770 }
15771 _ACEOF
15772 rm -f conftest$ac_exeext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15774   (eval $ac_link) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779   (eval $ac_try) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; }; then
15783   ac_cv_sizeof_long_long=`cat conftest.val`
15784 else
15785   echo "$as_me: program exited with status $ac_status" >&5
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 ( exit $ac_status )
15790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15791 See \`config.log' for more details." >&5
15792 echo "$as_me: error: cannot compute sizeof (long long), 77
15793 See \`config.log' for more details." >&2;}
15794    { (exit 1); exit 1; }; }
15795 fi
15796 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15797 fi
15798 fi
15799 rm -f conftest.val
15800 else
15801   ac_cv_sizeof_long_long=0
15802 fi
15803 fi
15804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15805 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15806 cat >>confdefs.h <<_ACEOF
15807 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15808 _ACEOF
15809
15810
15811     ;;
15812     *-hp-hpux* )
15813         echo "$as_me:$LINENO: checking for long long" >&5
15814 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15815 if test "${ac_cv_type_long_long+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   cat >conftest.$ac_ext <<_ACEOF
15819 #line $LINENO "configure"
15820 /* confdefs.h.  */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h.  */
15825 $ac_includes_default
15826 int
15827 main ()
15828 {
15829 if ((long long *) 0)
15830   return 0;
15831 if (sizeof (long long))
15832   return 0;
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839   (eval $ac_compile) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } &&
15843          { ac_try='test -s conftest.$ac_objext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_cv_type_long_long=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_type_long_long=no
15855 fi
15856 rm -f conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15859 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15860
15861 echo "$as_me:$LINENO: checking size of long long" >&5
15862 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15863 if test "${ac_cv_sizeof_long_long+set}" = set; then
15864   echo $ECHO_N "(cached) $ECHO_C" >&6
15865 else
15866   if test "$ac_cv_type_long_long" = yes; then
15867   # The cast to unsigned long works around a bug in the HP C Compiler
15868   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15869   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15870   # This bug is HP SR number 8606223364.
15871   if test "$cross_compiling" = yes; then
15872   # Depending upon the size, compute the lo and hi bounds.
15873 cat >conftest.$ac_ext <<_ACEOF
15874 #line $LINENO "configure"
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880 $ac_includes_default
15881 int
15882 main ()
15883 {
15884 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15885 test_array [0] = 0
15886
15887   ;
15888   return 0;
15889 }
15890 _ACEOF
15891 rm -f conftest.$ac_objext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893   (eval $ac_compile) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } &&
15897          { ac_try='test -s conftest.$ac_objext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   ac_lo=0 ac_mid=0
15904   while :; do
15905     cat >conftest.$ac_ext <<_ACEOF
15906 #line $LINENO "configure"
15907 /* confdefs.h.  */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h.  */
15912 $ac_includes_default
15913 int
15914 main ()
15915 {
15916 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15917 test_array [0] = 0
15918
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925   (eval $ac_compile) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } &&
15929          { ac_try='test -s conftest.$ac_objext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ac_hi=$ac_mid; break
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ac_lo=`expr $ac_mid + 1`
15941                     if test $ac_lo -le $ac_mid; then
15942                       ac_lo= ac_hi=
15943                       break
15944                     fi
15945                     ac_mid=`expr 2 '*' $ac_mid + 1`
15946 fi
15947 rm -f conftest.$ac_objext conftest.$ac_ext
15948   done
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 cat >conftest.$ac_ext <<_ACEOF
15954 #line $LINENO "configure"
15955 /* confdefs.h.  */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h.  */
15960 $ac_includes_default
15961 int
15962 main ()
15963 {
15964 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15965 test_array [0] = 0
15966
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973   (eval $ac_compile) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } &&
15977          { ac_try='test -s conftest.$ac_objext'
15978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979   (eval $ac_try) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983   ac_hi=-1 ac_mid=-1
15984   while :; do
15985     cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992 $ac_includes_default
15993 int
15994 main ()
15995 {
15996 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15997 test_array [0] = 0
15998
15999   ;
16000   return 0;
16001 }
16002 _ACEOF
16003 rm -f conftest.$ac_objext
16004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005   (eval $ac_compile) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } &&
16009          { ac_try='test -s conftest.$ac_objext'
16010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011   (eval $ac_try) 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); }; }; then
16015   ac_lo=$ac_mid; break
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_hi=`expr '(' $ac_mid ')' - 1`
16021                        if test $ac_mid -le $ac_hi; then
16022                          ac_lo= ac_hi=
16023                          break
16024                        fi
16025                        ac_mid=`expr 2 '*' $ac_mid`
16026 fi
16027 rm -f conftest.$ac_objext conftest.$ac_ext
16028   done
16029 else
16030   echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ac_lo= ac_hi=
16034 fi
16035 rm -f conftest.$ac_objext conftest.$ac_ext
16036 fi
16037 rm -f conftest.$ac_objext conftest.$ac_ext
16038 # Binary search between lo and hi bounds.
16039 while test "x$ac_lo" != "x$ac_hi"; do
16040   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16041   cat >conftest.$ac_ext <<_ACEOF
16042 #line $LINENO "configure"
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048 $ac_includes_default
16049 int
16050 main ()
16051 {
16052 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16053 test_array [0] = 0
16054
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061   (eval $ac_compile) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } &&
16065          { ac_try='test -s conftest.$ac_objext'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_hi=$ac_mid
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 ac_lo=`expr '(' $ac_mid ')' + 1`
16077 fi
16078 rm -f conftest.$ac_objext conftest.$ac_ext
16079 done
16080 case $ac_lo in
16081 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16082 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16083 See \`config.log' for more details." >&5
16084 echo "$as_me: error: cannot compute sizeof (long long), 77
16085 See \`config.log' for more details." >&2;}
16086    { (exit 1); exit 1; }; } ;;
16087 esac
16088 else
16089   if test "$cross_compiling" = yes; then
16090   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16091 See \`config.log' for more details." >&5
16092 echo "$as_me: error: cannot run test program while cross compiling
16093 See \`config.log' for more details." >&2;}
16094    { (exit 1); exit 1; }; }
16095 else
16096   cat >conftest.$ac_ext <<_ACEOF
16097 #line $LINENO "configure"
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 long longval () { return (long) (sizeof (long long)); }
16105 unsigned long ulongval () { return (long) (sizeof (long long)); }
16106 #include <stdio.h>
16107 #include <stdlib.h>
16108 int
16109 main ()
16110 {
16111
16112   FILE *f = fopen ("conftest.val", "w");
16113   if (! f)
16114     exit (1);
16115   if (((long) (sizeof (long long))) < 0)
16116     {
16117       long i = longval ();
16118       if (i != ((long) (sizeof (long long))))
16119         exit (1);
16120       fprintf (f, "%ld\n", i);
16121     }
16122   else
16123     {
16124       unsigned long i = ulongval ();
16125       if (i != ((long) (sizeof (long long))))
16126         exit (1);
16127       fprintf (f, "%lu\n", i);
16128     }
16129   exit (ferror (f) || fclose (f) != 0);
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137   (eval $ac_link) 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142   (eval $ac_try) 2>&5
16143   ac_status=$?
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); }; }; then
16146   ac_cv_sizeof_long_long=`cat conftest.val`
16147 else
16148   echo "$as_me: program exited with status $ac_status" >&5
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16151
16152 ( exit $ac_status )
16153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16154 See \`config.log' for more details." >&5
16155 echo "$as_me: error: cannot compute sizeof (long long), 77
16156 See \`config.log' for more details." >&2;}
16157    { (exit 1); exit 1; }; }
16158 fi
16159 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 fi
16162 rm -f conftest.val
16163 else
16164   ac_cv_sizeof_long_long=0
16165 fi
16166 fi
16167 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16168 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16169 cat >>confdefs.h <<_ACEOF
16170 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16171 _ACEOF
16172
16173
16174         if test "$ac_cv_sizeof_long_long" != "0"; then
16175                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16176         fi
16177     ;;
16178     * )
16179         echo "$as_me:$LINENO: checking for long long" >&5
16180 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16181 if test "${ac_cv_type_long_long+set}" = set; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184   cat >conftest.$ac_ext <<_ACEOF
16185 #line $LINENO "configure"
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 $ac_includes_default
16192 int
16193 main ()
16194 {
16195 if ((long long *) 0)
16196   return 0;
16197 if (sizeof (long long))
16198   return 0;
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205   (eval $ac_compile) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } &&
16209          { ac_try='test -s conftest.$ac_objext'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; }; then
16215   ac_cv_type_long_long=yes
16216 else
16217   echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 ac_cv_type_long_long=no
16221 fi
16222 rm -f conftest.$ac_objext conftest.$ac_ext
16223 fi
16224 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16225 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16226
16227 echo "$as_me:$LINENO: checking size of long long" >&5
16228 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16229 if test "${ac_cv_sizeof_long_long+set}" = set; then
16230   echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232   if test "$ac_cv_type_long_long" = yes; then
16233   # The cast to unsigned long works around a bug in the HP C Compiler
16234   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16235   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16236   # This bug is HP SR number 8606223364.
16237   if test "$cross_compiling" = yes; then
16238   # Depending upon the size, compute the lo and hi bounds.
16239 cat >conftest.$ac_ext <<_ACEOF
16240 #line $LINENO "configure"
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 $ac_includes_default
16247 int
16248 main ()
16249 {
16250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16251 test_array [0] = 0
16252
16253   ;
16254   return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16259   (eval $ac_compile) 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); } &&
16263          { ac_try='test -s conftest.$ac_objext'
16264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265   (eval $ac_try) 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; }; then
16269   ac_lo=0 ac_mid=0
16270   while :; do
16271     cat >conftest.$ac_ext <<_ACEOF
16272 #line $LINENO "configure"
16273 /* confdefs.h.  */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h.  */
16278 $ac_includes_default
16279 int
16280 main ()
16281 {
16282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16283 test_array [0] = 0
16284
16285   ;
16286   return 0;
16287 }
16288 _ACEOF
16289 rm -f conftest.$ac_objext
16290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16291   (eval $ac_compile) 2>&5
16292   ac_status=$?
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); } &&
16295          { ac_try='test -s conftest.$ac_objext'
16296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297   (eval $ac_try) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; }; then
16301   ac_hi=$ac_mid; break
16302 else
16303   echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_lo=`expr $ac_mid + 1`
16307                     if test $ac_lo -le $ac_mid; then
16308                       ac_lo= ac_hi=
16309                       break
16310                     fi
16311                     ac_mid=`expr 2 '*' $ac_mid + 1`
16312 fi
16313 rm -f conftest.$ac_objext conftest.$ac_ext
16314   done
16315 else
16316   echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 cat >conftest.$ac_ext <<_ACEOF
16320 #line $LINENO "configure"
16321 /* confdefs.h.  */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h.  */
16326 $ac_includes_default
16327 int
16328 main ()
16329 {
16330 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16331 test_array [0] = 0
16332
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16339   (eval $ac_compile) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } &&
16343          { ac_try='test -s conftest.$ac_objext'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }; then
16349   ac_hi=-1 ac_mid=-1
16350   while :; do
16351     cat >conftest.$ac_ext <<_ACEOF
16352 #line $LINENO "configure"
16353 /* confdefs.h.  */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h.  */
16358 $ac_includes_default
16359 int
16360 main ()
16361 {
16362 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16363 test_array [0] = 0
16364
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371   (eval $ac_compile) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } &&
16375          { ac_try='test -s conftest.$ac_objext'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381   ac_lo=$ac_mid; break
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_hi=`expr '(' $ac_mid ')' - 1`
16387                        if test $ac_mid -le $ac_hi; then
16388                          ac_lo= ac_hi=
16389                          break
16390                        fi
16391                        ac_mid=`expr 2 '*' $ac_mid`
16392 fi
16393 rm -f conftest.$ac_objext conftest.$ac_ext
16394   done
16395 else
16396   echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16398
16399 ac_lo= ac_hi=
16400 fi
16401 rm -f conftest.$ac_objext conftest.$ac_ext
16402 fi
16403 rm -f conftest.$ac_objext conftest.$ac_ext
16404 # Binary search between lo and hi bounds.
16405 while test "x$ac_lo" != "x$ac_hi"; do
16406   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16407   cat >conftest.$ac_ext <<_ACEOF
16408 #line $LINENO "configure"
16409 /* confdefs.h.  */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h.  */
16414 $ac_includes_default
16415 int
16416 main ()
16417 {
16418 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16419 test_array [0] = 0
16420
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 rm -f conftest.$ac_objext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16427   (eval $ac_compile) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } &&
16431          { ac_try='test -s conftest.$ac_objext'
16432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433   (eval $ac_try) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   ac_hi=$ac_mid
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_lo=`expr '(' $ac_mid ')' + 1`
16443 fi
16444 rm -f conftest.$ac_objext conftest.$ac_ext
16445 done
16446 case $ac_lo in
16447 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16448 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16449 See \`config.log' for more details." >&5
16450 echo "$as_me: error: cannot compute sizeof (long long), 77
16451 See \`config.log' for more details." >&2;}
16452    { (exit 1); exit 1; }; } ;;
16453 esac
16454 else
16455   if test "$cross_compiling" = yes; then
16456   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16457 See \`config.log' for more details." >&5
16458 echo "$as_me: error: cannot run test program while cross compiling
16459 See \`config.log' for more details." >&2;}
16460    { (exit 1); exit 1; }; }
16461 else
16462   cat >conftest.$ac_ext <<_ACEOF
16463 #line $LINENO "configure"
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 $ac_includes_default
16470 long longval () { return (long) (sizeof (long long)); }
16471 unsigned long ulongval () { return (long) (sizeof (long long)); }
16472 #include <stdio.h>
16473 #include <stdlib.h>
16474 int
16475 main ()
16476 {
16477
16478   FILE *f = fopen ("conftest.val", "w");
16479   if (! f)
16480     exit (1);
16481   if (((long) (sizeof (long long))) < 0)
16482     {
16483       long i = longval ();
16484       if (i != ((long) (sizeof (long long))))
16485         exit (1);
16486       fprintf (f, "%ld\n", i);
16487     }
16488   else
16489     {
16490       unsigned long i = ulongval ();
16491       if (i != ((long) (sizeof (long long))))
16492         exit (1);
16493       fprintf (f, "%lu\n", i);
16494     }
16495   exit (ferror (f) || fclose (f) != 0);
16496
16497   ;
16498   return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest$ac_exeext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503   (eval $ac_link) 2>&5
16504   ac_status=$?
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; }; then
16512   ac_cv_sizeof_long_long=`cat conftest.val`
16513 else
16514   echo "$as_me: program exited with status $ac_status" >&5
16515 echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518 ( exit $ac_status )
16519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16520 See \`config.log' for more details." >&5
16521 echo "$as_me: error: cannot compute sizeof (long long), 77
16522 See \`config.log' for more details." >&2;}
16523    { (exit 1); exit 1; }; }
16524 fi
16525 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16526 fi
16527 fi
16528 rm -f conftest.val
16529 else
16530   ac_cv_sizeof_long_long=0
16531 fi
16532 fi
16533 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16534 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16535 cat >>confdefs.h <<_ACEOF
16536 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16537 _ACEOF
16538
16539
16540 esac
16541
16542 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16543 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16544 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547
16548     if test "$cross_compiling" = yes; then
16549
16550             case "${host}" in
16551               *-pc-msdosdjgpp )
16552                 wx_cv_sizeof_wchar_t=0
16553                 ;;
16554               * )
16555                 wx_cv_sizeof_wchar_t=4
16556                 ;;
16557             esac
16558
16559
16560 else
16561   cat >conftest.$ac_ext <<_ACEOF
16562 #line $LINENO "configure"
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568
16569             /* DJGPP only has fake wchar_t: */
16570             #ifdef __DJGPP__
16571             #  error "fake wchar_t"
16572             #endif
16573             #ifdef HAVE_WCHAR_H
16574             #  ifdef __CYGWIN__
16575             #    include <stddef.h>
16576             #  endif
16577             #  include <wchar.h>
16578             #endif
16579             #ifdef HAVE_STDLIB_H
16580             #  include <stdlib.h>
16581             #endif
16582             #include <stdio.h>
16583             int main()
16584             {
16585                 FILE *f=fopen("conftestval", "w");
16586                 if (!f) exit(1);
16587                 fprintf(f, "%i", sizeof(wchar_t));
16588                 exit(0);
16589             }
16590
16591 _ACEOF
16592 rm -f conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594   (eval $ac_link) 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599   (eval $ac_try) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }; }; then
16603   wx_cv_sizeof_wchar_t=`cat conftestval`
16604 else
16605   echo "$as_me: program exited with status $ac_status" >&5
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 ( exit $ac_status )
16610 wx_cv_sizeof_wchar_t=0
16611 fi
16612 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16613 fi
16614
16615 fi
16616 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16617 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
16618
16619 cat >>confdefs.h <<_ACEOF
16620 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
16621 _ACEOF
16622
16623
16624 # Check whether --enable-largefile or --disable-largefile was given.
16625 if test "${enable_largefile+set}" = set; then
16626   enableval="$enable_largefile"
16627
16628 fi;
16629 if test "$enable_largefile" != no; then
16630             wx_largefile=no
16631
16632     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16633 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16634 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637
16638           cat >conftest.$ac_ext <<_ACEOF
16639 #line $LINENO "configure"
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645 #define _FILE_OFFSET_BITS 64
16646                           #include <sys/types.h>
16647 int
16648 main ()
16649 {
16650 typedef struct {
16651     unsigned int field: sizeof(off_t) == 8;
16652 } wxlf;
16653
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660   (eval $ac_compile) 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -s conftest.$ac_objext'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_sys_file_offset_bits=64
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 ac_cv_sys_file_offset_bits=no
16676 fi
16677 rm -f conftest.$ac_objext conftest.$ac_ext
16678
16679
16680 fi
16681 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16682 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16683
16684     if test "$ac_cv_sys_file_offset_bits" != no; then
16685         wx_largefile=yes
16686         cat >>confdefs.h <<_ACEOF
16687 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16688 _ACEOF
16689
16690     fi
16691
16692     if test "x$wx_largefile" != "xyes"; then
16693
16694     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16695 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16696 if test "${ac_cv_sys_large_files+set}" = set; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699
16700           cat >conftest.$ac_ext <<_ACEOF
16701 #line $LINENO "configure"
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707 #define _LARGE_FILES 1
16708                           #include <sys/types.h>
16709 int
16710 main ()
16711 {
16712 typedef struct {
16713     unsigned int field: sizeof(off_t) == 8;
16714 } wxlf;
16715
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722   (eval $ac_compile) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -s conftest.$ac_objext'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; }; then
16732   ac_cv_sys_large_files=1
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 ac_cv_sys_large_files=no
16738 fi
16739 rm -f conftest.$ac_objext conftest.$ac_ext
16740
16741
16742 fi
16743 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16744 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16745
16746     if test "$ac_cv_sys_large_files" != no; then
16747         wx_largefile=yes
16748         cat >>confdefs.h <<_ACEOF
16749 #define _LARGE_FILES $ac_cv_sys_large_files
16750 _ACEOF
16751
16752     fi
16753
16754     fi
16755
16756     echo "$as_me:$LINENO: checking if large file support is available" >&5
16757 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
16758     if test "x$wx_largefile" = "xyes"; then
16759         cat >>confdefs.h <<\_ACEOF
16760 #define HAVE_LARGEFILE_SUPPORT 1
16761 _ACEOF
16762
16763     fi
16764     echo "$as_me:$LINENO: result: $wx_largefile" >&5
16765 echo "${ECHO_T}$wx_largefile" >&6
16766 fi
16767
16768
16769 if test "x$wx_largefile" = "xyes"; then
16770     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16771         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
16772     else
16773         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
16774     fi
16775     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
16776 fi
16777
16778 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16779 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16780 if test "${ac_cv_c_bigendian+set}" = set; then
16781   echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783   ac_cv_c_bigendian=unknown
16784 # See if sys/param.h defines the BYTE_ORDER macro.
16785 cat >conftest.$ac_ext <<_ACEOF
16786 #line $LINENO "configure"
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 #include <sys/types.h>
16793 #include <sys/param.h>
16794 int
16795 main ()
16796 {
16797
16798 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16799  bogus endian macros
16800 #endif
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16807   (eval $ac_compile) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -s conftest.$ac_objext'
16812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813   (eval $ac_try) 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; }; then
16817   # It does; now see whether it defined to BIG_ENDIAN or not.
16818 cat >conftest.$ac_ext <<_ACEOF
16819 #line $LINENO "configure"
16820 /* confdefs.h.  */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h.  */
16825 #include <sys/types.h>
16826 #include <sys/param.h>
16827 int
16828 main ()
16829 {
16830
16831 #if BYTE_ORDER != BIG_ENDIAN
16832  not big endian
16833 #endif
16834   ;
16835   return 0;
16836 }
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16840   (eval $ac_compile) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); } &&
16844          { ac_try='test -s conftest.$ac_objext'
16845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846   (eval $ac_try) 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; }; then
16850   ac_cv_c_bigendian=yes
16851 else
16852   echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855 ac_cv_c_bigendian=no
16856 fi
16857 rm -f conftest.$ac_objext conftest.$ac_ext
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 fi
16863 rm -f conftest.$ac_objext conftest.$ac_ext
16864 if test $ac_cv_c_bigendian = unknown; then
16865 if test "$cross_compiling" = yes; then
16866   ac_cv_c_bigendian=unknown
16867 else
16868   cat >conftest.$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 main () {
16876   /* Are we little or big endian?  From Harbison&Steele.  */
16877   union
16878   {
16879     long l;
16880     char c[sizeof (long)];
16881   } u;
16882   u.l = 1;
16883   exit (u.c[sizeof (long) - 1] == 1);
16884 }
16885 _ACEOF
16886 rm -f conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888   (eval $ac_link) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   ac_cv_c_bigendian=no
16898 else
16899   echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ( exit $ac_status )
16904 ac_cv_c_bigendian=yes
16905 fi
16906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16907 fi
16908 fi
16909 fi
16910 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16911 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16912 if test $ac_cv_c_bigendian = unknown; then
16913   { 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
16914 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;}
16915 fi
16916 if test $ac_cv_c_bigendian = yes; then
16917   cat >>confdefs.h <<\_ACEOF
16918 #define WORDS_BIGENDIAN 1
16919 _ACEOF
16920
16921 fi
16922
16923
16924
16925 ac_ext=cc
16926 ac_cpp='$CXXCPP $CPPFLAGS'
16927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16930 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16931 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16932 if test -z "$CXXCPP"; then
16933   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936       # Double quotes because CXXCPP needs to be expanded
16937     for CXXCPP in "$CXX -E" "/lib/cpp"
16938     do
16939       ac_preproc_ok=false
16940 for ac_cxx_preproc_warn_flag in '' yes
16941 do
16942   # Use a header file that comes with gcc, so configuring glibc
16943   # with a fresh cross-compiler works.
16944   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16945   # <limits.h> exists even on freestanding compilers.
16946   # On the NeXT, cc -E runs the code through the compiler's parser,
16947   # not just through cpp. "Syntax error" is here to catch this case.
16948   cat >conftest.$ac_ext <<_ACEOF
16949 #line $LINENO "configure"
16950 /* confdefs.h.  */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h.  */
16955 #ifdef __STDC__
16956 # include <limits.h>
16957 #else
16958 # include <assert.h>
16959 #endif
16960                      Syntax error
16961 _ACEOF
16962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16964   ac_status=$?
16965   grep -v '^ *+' conftest.er1 >conftest.err
16966   rm -f conftest.er1
16967   cat conftest.err >&5
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); } >/dev/null; then
16970   if test -s conftest.err; then
16971     ac_cpp_err=$ac_cxx_preproc_warn_flag
16972   else
16973     ac_cpp_err=
16974   fi
16975 else
16976   ac_cpp_err=yes
16977 fi
16978 if test -z "$ac_cpp_err"; then
16979   :
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984   # Broken: fails on valid input.
16985 continue
16986 fi
16987 rm -f conftest.err conftest.$ac_ext
16988
16989   # OK, works on sane cases.  Now check whether non-existent headers
16990   # can be detected and how.
16991   cat >conftest.$ac_ext <<_ACEOF
16992 #line $LINENO "configure"
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998 #include <ac_nonexistent.h>
16999 _ACEOF
17000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } >/dev/null; then
17008   if test -s conftest.err; then
17009     ac_cpp_err=$ac_cxx_preproc_warn_flag
17010   else
17011     ac_cpp_err=
17012   fi
17013 else
17014   ac_cpp_err=yes
17015 fi
17016 if test -z "$ac_cpp_err"; then
17017   # Broken: success on invalid input.
17018 continue
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023   # Passes both tests.
17024 ac_preproc_ok=:
17025 break
17026 fi
17027 rm -f conftest.err conftest.$ac_ext
17028
17029 done
17030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17031 rm -f conftest.err conftest.$ac_ext
17032 if $ac_preproc_ok; then
17033   break
17034 fi
17035
17036     done
17037     ac_cv_prog_CXXCPP=$CXXCPP
17038
17039 fi
17040   CXXCPP=$ac_cv_prog_CXXCPP
17041 else
17042   ac_cv_prog_CXXCPP=$CXXCPP
17043 fi
17044 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17045 echo "${ECHO_T}$CXXCPP" >&6
17046 ac_preproc_ok=false
17047 for ac_cxx_preproc_warn_flag in '' yes
17048 do
17049   # Use a header file that comes with gcc, so configuring glibc
17050   # with a fresh cross-compiler works.
17051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17052   # <limits.h> exists even on freestanding compilers.
17053   # On the NeXT, cc -E runs the code through the compiler's parser,
17054   # not just through cpp. "Syntax error" is here to catch this case.
17055   cat >conftest.$ac_ext <<_ACEOF
17056 #line $LINENO "configure"
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062 #ifdef __STDC__
17063 # include <limits.h>
17064 #else
17065 # include <assert.h>
17066 #endif
17067                      Syntax error
17068 _ACEOF
17069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } >/dev/null; then
17077   if test -s conftest.err; then
17078     ac_cpp_err=$ac_cxx_preproc_warn_flag
17079   else
17080     ac_cpp_err=
17081   fi
17082 else
17083   ac_cpp_err=yes
17084 fi
17085 if test -z "$ac_cpp_err"; then
17086   :
17087 else
17088   echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17090
17091   # Broken: fails on valid input.
17092 continue
17093 fi
17094 rm -f conftest.err conftest.$ac_ext
17095
17096   # OK, works on sane cases.  Now check whether non-existent headers
17097   # can be detected and how.
17098   cat >conftest.$ac_ext <<_ACEOF
17099 #line $LINENO "configure"
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105 #include <ac_nonexistent.h>
17106 _ACEOF
17107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } >/dev/null; then
17115   if test -s conftest.err; then
17116     ac_cpp_err=$ac_cxx_preproc_warn_flag
17117   else
17118     ac_cpp_err=
17119   fi
17120 else
17121   ac_cpp_err=yes
17122 fi
17123 if test -z "$ac_cpp_err"; then
17124   # Broken: success on invalid input.
17125 continue
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130   # Passes both tests.
17131 ac_preproc_ok=:
17132 break
17133 fi
17134 rm -f conftest.err conftest.$ac_ext
17135
17136 done
17137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17138 rm -f conftest.err conftest.$ac_ext
17139 if $ac_preproc_ok; then
17140   :
17141 else
17142   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17143 See \`config.log' for more details." >&5
17144 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17145 See \`config.log' for more details." >&2;}
17146    { (exit 1); exit 1; }; }
17147 fi
17148
17149 ac_ext=cc
17150 ac_cpp='$CXXCPP $CPPFLAGS'
17151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17154
17155
17156
17157   if test "$cross_compiling" = "yes"; then
17158     cat >>confdefs.h <<\_ACEOF
17159 #define wxUSE_IOSTREAMH 1
17160 _ACEOF
17161
17162   else
17163
17164
17165     ac_ext=cc
17166 ac_cpp='$CXXCPP $CPPFLAGS'
17167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17170
17171
17172
17173 for ac_header in iostream
17174 do
17175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17177   echo "$as_me:$LINENO: checking for $ac_header" >&5
17178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 fi
17182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17184 else
17185   # Is the header compilable?
17186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17188 cat >conftest.$ac_ext <<_ACEOF
17189 #line $LINENO "configure"
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195 $ac_includes_default
17196 #include <$ac_header>
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200   (eval $ac_compile) 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -s conftest.$ac_objext'
17205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206   (eval $ac_try) 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   ac_header_compiler=yes
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 ac_header_compiler=no
17216 fi
17217 rm -f conftest.$ac_objext conftest.$ac_ext
17218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17219 echo "${ECHO_T}$ac_header_compiler" >&6
17220
17221 # Is the header present?
17222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17224 cat >conftest.$ac_ext <<_ACEOF
17225 #line $LINENO "configure"
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 #include <$ac_header>
17232 _ACEOF
17233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } >/dev/null; then
17241   if test -s conftest.err; then
17242     ac_cpp_err=$ac_cxx_preproc_warn_flag
17243   else
17244     ac_cpp_err=
17245   fi
17246 else
17247   ac_cpp_err=yes
17248 fi
17249 if test -z "$ac_cpp_err"; then
17250   ac_header_preproc=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255   ac_header_preproc=no
17256 fi
17257 rm -f conftest.err conftest.$ac_ext
17258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17259 echo "${ECHO_T}$ac_header_preproc" >&6
17260
17261 # So?  What about this header?
17262 case $ac_header_compiler:$ac_header_preproc in
17263   yes:no )
17264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17268     (
17269       cat <<\_ASBOX
17270 ## ------------------------------------ ##
17271 ## Report this to bug-autoconf@gnu.org. ##
17272 ## ------------------------------------ ##
17273 _ASBOX
17274     ) |
17275       sed "s/^/$as_me: WARNING:     /" >&2
17276     ;;
17277   no:yes )
17278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17280     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17284     (
17285       cat <<\_ASBOX
17286 ## ------------------------------------ ##
17287 ## Report this to bug-autoconf@gnu.org. ##
17288 ## ------------------------------------ ##
17289 _ASBOX
17290     ) |
17291       sed "s/^/$as_me: WARNING:     /" >&2
17292     ;;
17293 esac
17294 echo "$as_me:$LINENO: checking for $ac_header" >&5
17295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   eval "$as_ac_Header=$ac_header_preproc"
17300 fi
17301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17303
17304 fi
17305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17306   cat >>confdefs.h <<_ACEOF
17307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17308 _ACEOF
17309
17310 fi
17311
17312 done
17313
17314
17315     if test "$ac_cv_header_iostream" = "yes" ; then
17316       :
17317     else
17318       cat >>confdefs.h <<\_ACEOF
17319 #define wxUSE_IOSTREAMH 1
17320 _ACEOF
17321
17322     fi
17323
17324     ac_ext=c
17325 ac_cpp='$CPP $CPPFLAGS'
17326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17329
17330   fi
17331
17332
17333
17334   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17335 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17336 if test "${wx_cv_cpp_bool+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339
17340
17341
17342     ac_ext=cc
17343 ac_cpp='$CXXCPP $CPPFLAGS'
17344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17347
17348
17349     cat >conftest.$ac_ext <<_ACEOF
17350 #line $LINENO "configure"
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356
17357
17358 int
17359 main ()
17360 {
17361
17362         bool b = true;
17363
17364         return 0;
17365
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17372   (eval $ac_compile) 2>&5
17373   ac_status=$?
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   (exit $ac_status); } &&
17376          { ac_try='test -s conftest.$ac_objext'
17377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378   (eval $ac_try) 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; }; then
17382
17383         wx_cv_cpp_bool=yes
17384
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389
17390         wx_cv_cpp_bool=no
17391
17392
17393 fi
17394 rm -f conftest.$ac_objext conftest.$ac_ext
17395
17396     ac_ext=c
17397 ac_cpp='$CPP $CPPFLAGS'
17398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17401
17402
17403 fi
17404 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17405 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17406
17407   if test "$wx_cv_cpp_bool" = "yes"; then
17408     cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_BOOL 1
17410 _ACEOF
17411
17412   fi
17413
17414
17415
17416   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17417 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17418 if test "${wx_cv_explicit+set}" = set; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421
17422
17423
17424     ac_ext=cc
17425 ac_cpp='$CXXCPP $CPPFLAGS'
17426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17429
17430
17431             cat >conftest.$ac_ext <<_ACEOF
17432 #line $LINENO "configure"
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438
17439         class Foo { public: explicit Foo(int) {} };
17440
17441 int
17442 main ()
17443 {
17444
17445         return 0;
17446
17447   ;
17448   return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453   (eval $ac_compile) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); } &&
17457          { ac_try='test -s conftest.$ac_objext'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; }; then
17463
17464         cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 /* confdefs.h.  */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h.  */
17471
17472                 class Foo { public: explicit Foo(int) {} };
17473                 static void TakeFoo(const Foo& foo) { }
17474
17475 int
17476 main ()
17477 {
17478
17479                 TakeFoo(17);
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   wx_cv_explicit=no
17499 else
17500   echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 wx_cv_explicit=yes
17504
17505 fi
17506 rm -f conftest.$ac_objext conftest.$ac_ext
17507
17508 else
17509   echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 wx_cv_explicit=no
17513
17514 fi
17515 rm -f conftest.$ac_objext conftest.$ac_ext
17516
17517     ac_ext=c
17518 ac_cpp='$CPP $CPPFLAGS'
17519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17522
17523
17524 fi
17525 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17526 echo "${ECHO_T}$wx_cv_explicit" >&6
17527
17528   if test "$wx_cv_explicit" = "yes"; then
17529     cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_EXPLICIT 1
17531 _ACEOF
17532
17533   fi
17534
17535
17536 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17537 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17538 if test "${ac_cv_cxx_const_cast+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541
17542
17543  ac_ext=cc
17544 ac_cpp='$CXXCPP $CPPFLAGS'
17545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17548
17549  cat >conftest.$ac_ext <<_ACEOF
17550 #line $LINENO "configure"
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556
17557 int
17558 main ()
17559 {
17560 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
17561   ;
17562   return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567   (eval $ac_compile) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -s conftest.$ac_objext'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577   ac_cv_cxx_const_cast=yes
17578 else
17579   echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_cv_cxx_const_cast=no
17583 fi
17584 rm -f conftest.$ac_objext conftest.$ac_ext
17585  ac_ext=c
17586 ac_cpp='$CPP $CPPFLAGS'
17587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17590
17591
17592 fi
17593 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17594 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
17595 if test "$ac_cv_cxx_const_cast" = yes; then
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_CONST_CAST
17599 _ACEOF
17600
17601 fi
17602
17603
17604
17605 SEARCH_INCLUDE="\
17606     /usr/local/include        \
17607                               \
17608     /usr/Motif-1.2/include    \
17609     /usr/Motif-2.1/include    \
17610                               \
17611     /usr/include/Motif1.2     \
17612     /opt/xpm/include/X11      \
17613     /opt/GBxpm/include/       \
17614     /opt/GBxpm/X11/include/   \
17615                               \
17616     /usr/Motif1.2/include     \
17617     /usr/dt/include           \
17618     /usr/openwin/include      \
17619                               \
17620     /usr/include/Xm           \
17621                               \
17622     /usr/X11R6/include        \
17623     /usr/X11R6.4/include      \
17624     /usr/X11R5/include        \
17625     /usr/X11R4/include        \
17626                               \
17627     /usr/include/X11R6        \
17628     /usr/include/X11R5        \
17629     /usr/include/X11R4        \
17630                               \
17631     /usr/local/X11R6/include  \
17632     /usr/local/X11R5/include  \
17633     /usr/local/X11R4/include  \
17634                               \
17635     /usr/local/include/X11R6  \
17636     /usr/local/include/X11R5  \
17637     /usr/local/include/X11R4  \
17638                               \
17639     /usr/X11/include          \
17640     /usr/include/X11          \
17641     /usr/local/X11/include    \
17642     /usr/local/include/X11    \
17643                               \
17644     /usr/X386/include         \
17645     /usr/x386/include         \
17646     /usr/XFree86/include/X11  \
17647                               \
17648     X:/XFree86/include        \
17649     X:/XFree86/include/X11    \
17650                               \
17651     /usr/include/gtk          \
17652     /usr/local/include/gtk    \
17653     /usr/include/glib         \
17654     /usr/local/include/glib   \
17655                               \
17656     /usr/include/qt           \
17657     /usr/local/include/qt     \
17658                               \
17659     /usr/include/windows      \
17660     /usr/include/wine         \
17661     /usr/local/include/wine   \
17662                               \
17663     /usr/unsupported/include  \
17664     /usr/athena/include       \
17665     /usr/local/x11r5/include  \
17666     /usr/lpp/Xamples/include  \
17667                               \
17668     /usr/openwin/share/include"
17669
17670 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17671
17672
17673 cat >confcache <<\_ACEOF
17674 # This file is a shell script that caches the results of configure
17675 # tests run on this system so they can be shared between configure
17676 # scripts and configure runs, see configure's option --config-cache.
17677 # It is not useful on other systems.  If it contains results you don't
17678 # want to keep, you may remove or edit it.
17679 #
17680 # config.status only pays attention to the cache file if you give it
17681 # the --recheck option to rerun configure.
17682 #
17683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17685 # following values.
17686
17687 _ACEOF
17688
17689 # The following way of writing the cache mishandles newlines in values,
17690 # but we know of no workaround that is simple, portable, and efficient.
17691 # So, don't put newlines in cache variables' values.
17692 # Ultrix sh set writes to stderr and can't be redirected directly,
17693 # and sets the high bit in the cache file unless we assign to the vars.
17694 {
17695   (set) 2>&1 |
17696     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17697     *ac_space=\ *)
17698       # `set' does not quote correctly, so add quotes (double-quote
17699       # substitution turns \\\\ into \\, and sed turns \\ into \).
17700       sed -n \
17701         "s/'/'\\\\''/g;
17702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17703       ;;
17704     *)
17705       # `set' quotes correctly as required by POSIX, so do not add quotes.
17706       sed -n \
17707         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17708       ;;
17709     esac;
17710 } |
17711   sed '
17712      t clear
17713      : clear
17714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17715      t end
17716      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17717      : end' >>confcache
17718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17719   if test -w $cache_file; then
17720     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17721     cat confcache >$cache_file
17722   else
17723     echo "not updating unwritable cache $cache_file"
17724   fi
17725 fi
17726 rm -f confcache
17727
17728 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
17729     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17730 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17731 if test "${wx_cv_lib_glibc21+set}" = set; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734
17735         cat >conftest.$ac_ext <<_ACEOF
17736 #line $LINENO "configure"
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742 #include <features.h>
17743 int
17744 main ()
17745 {
17746
17747                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17748                     #error not glibc2.1
17749                 #endif
17750
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext
17756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17757   (eval $ac_compile) 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); } &&
17761          { ac_try='test -s conftest.$ac_objext'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; }; then
17767
17768                 wx_cv_lib_glibc21=yes
17769
17770 else
17771   echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774
17775                 wx_cv_lib_glibc21=no
17776
17777
17778 fi
17779 rm -f conftest.$ac_objext conftest.$ac_ext
17780
17781 fi
17782 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17783 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
17784     if test "$wx_cv_lib_glibc21" = "yes"; then
17785         cat >>confdefs.h <<\_ACEOF
17786 #define wxHAVE_GLIBC2 1
17787 _ACEOF
17788
17789     fi
17790 fi
17791
17792 if test "x$wx_cv_lib_glibc21" = "xyes"; then
17793     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
17794         cat >>confdefs.h <<\_ACEOF
17795 #define _GNU_SOURCE 1
17796 _ACEOF
17797
17798     fi
17799 fi
17800
17801
17802
17803 REGEX_INCLUDE=
17804 if test "$wxUSE_REGEX" != "no"; then
17805     cat >>confdefs.h <<\_ACEOF
17806 #define wxUSE_REGEX 1
17807 _ACEOF
17808
17809
17810     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
17811                         if test "${ac_cv_header_regex_h+set}" = set; then
17812   echo "$as_me:$LINENO: checking for regex.h" >&5
17813 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17814 if test "${ac_cv_header_regex_h+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 fi
17817 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17818 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17819 else
17820   # Is the header compilable?
17821 echo "$as_me:$LINENO: checking regex.h usability" >&5
17822 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17824 #line $LINENO "configure"
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830 $ac_includes_default
17831 #include <regex.h>
17832 _ACEOF
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835   (eval $ac_compile) 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } &&
17839          { ac_try='test -s conftest.$ac_objext'
17840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841   (eval $ac_try) 2>&5
17842   ac_status=$?
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); }; }; then
17845   ac_header_compiler=yes
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 ac_header_compiler=no
17851 fi
17852 rm -f conftest.$ac_objext conftest.$ac_ext
17853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17854 echo "${ECHO_T}$ac_header_compiler" >&6
17855
17856 # Is the header present?
17857 echo "$as_me:$LINENO: checking regex.h presence" >&5
17858 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line $LINENO "configure"
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866 #include <regex.h>
17867 _ACEOF
17868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17870   ac_status=$?
17871   grep -v '^ *+' conftest.er1 >conftest.err
17872   rm -f conftest.er1
17873   cat conftest.err >&5
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); } >/dev/null; then
17876   if test -s conftest.err; then
17877     ac_cpp_err=$ac_c_preproc_warn_flag
17878   else
17879     ac_cpp_err=
17880   fi
17881 else
17882   ac_cpp_err=yes
17883 fi
17884 if test -z "$ac_cpp_err"; then
17885   ac_header_preproc=yes
17886 else
17887   echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890   ac_header_preproc=no
17891 fi
17892 rm -f conftest.err conftest.$ac_ext
17893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17894 echo "${ECHO_T}$ac_header_preproc" >&6
17895
17896 # So?  What about this header?
17897 case $ac_header_compiler:$ac_header_preproc in
17898   yes:no )
17899     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17900 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17901     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17902 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17903     (
17904       cat <<\_ASBOX
17905 ## ------------------------------------ ##
17906 ## Report this to bug-autoconf@gnu.org. ##
17907 ## ------------------------------------ ##
17908 _ASBOX
17909     ) |
17910       sed "s/^/$as_me: WARNING:     /" >&2
17911     ;;
17912   no:yes )
17913     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17914 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17915     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17916 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17917     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17918 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17919     (
17920       cat <<\_ASBOX
17921 ## ------------------------------------ ##
17922 ## Report this to bug-autoconf@gnu.org. ##
17923 ## ------------------------------------ ##
17924 _ASBOX
17925     ) |
17926       sed "s/^/$as_me: WARNING:     /" >&2
17927     ;;
17928 esac
17929 echo "$as_me:$LINENO: checking for regex.h" >&5
17930 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17931 if test "${ac_cv_header_regex_h+set}" = set; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   ac_cv_header_regex_h=$ac_header_preproc
17935 fi
17936 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17937 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17938
17939 fi
17940 if test $ac_cv_header_regex_h = yes; then
17941
17942 for ac_func in regcomp
17943 do
17944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17945 echo "$as_me:$LINENO: checking for $ac_func" >&5
17946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17947 if eval "test \"\${$as_ac_var+set}\" = set"; then
17948   echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950   cat >conftest.$ac_ext <<_ACEOF
17951 #line $LINENO "configure"
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 /* System header to define __stub macros and hopefully few prototypes,
17958     which can conflict with char $ac_func (); below.
17959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17960     <limits.h> exists even on freestanding compilers.  */
17961 #ifdef __STDC__
17962 # include <limits.h>
17963 #else
17964 # include <assert.h>
17965 #endif
17966 /* Override any gcc2 internal prototype to avoid an error.  */
17967 #ifdef __cplusplus
17968 extern "C"
17969 {
17970 #endif
17971 /* We use char because int might match the return type of a gcc2
17972    builtin and then its argument prototype would still apply.  */
17973 char $ac_func ();
17974 /* The GNU C library defines this for functions which it implements
17975     to always fail with ENOSYS.  Some functions are actually named
17976     something starting with __ and the normal name is an alias.  */
17977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978 choke me
17979 #else
17980 char (*f) () = $ac_func;
17981 #endif
17982 #ifdef __cplusplus
17983 }
17984 #endif
17985
17986 int
17987 main ()
17988 {
17989 return f != $ac_func;
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996   (eval $ac_link) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } &&
18000          { ac_try='test -s conftest$ac_exeext'
18001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002   (eval $ac_try) 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; }; then
18006   eval "$as_ac_var=yes"
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 eval "$as_ac_var=no"
18012 fi
18013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18014 fi
18015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18017 if test `eval echo '${'$as_ac_var'}'` = yes; then
18018   cat >>confdefs.h <<_ACEOF
18019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18020 _ACEOF
18021
18022 fi
18023 done
18024
18025 fi
18026
18027
18028
18029         if test "x$ac_cv_func_regcomp" != "xyes"; then
18030             if test "$wxUSE_REGEX" = "sys" ; then
18031                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18032 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18033    { (exit 1); exit 1; }; }
18034             else
18035                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18036 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18037                 wxUSE_REGEX=builtin
18038             fi
18039         else
18040                         wxUSE_REGEX=sys
18041         fi
18042     fi
18043
18044     if test "$wxUSE_REGEX" = "builtin" ; then
18045         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
18046     fi
18047 fi
18048
18049
18050 ZLIB_INCLUDE=
18051 ZLIB_LINK=
18052 if test "$wxUSE_ZLIB" != "no" ; then
18053     cat >>confdefs.h <<\_ACEOF
18054 #define wxUSE_ZLIB 1
18055 _ACEOF
18056
18057
18058     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18059                                                 if test "$USE_DARWIN" = 1; then
18060             system_zlib_h_ok="yes"
18061         else
18062                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18063 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18064 if test "${ac_cv_header_zlib_h+set}" = set; then
18065   echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067   if test "$cross_compiling" = yes; then
18068                       unset ac_cv_header_zlib_h
18069
18070 else
18071   cat >conftest.$ac_ext <<_ACEOF
18072 #line $LINENO "configure"
18073 /* confdefs.h.  */
18074 _ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h.  */
18078
18079                         #include <zlib.h>
18080                         #include <stdio.h>
18081
18082                         int main()
18083                         {
18084                             FILE *f=fopen("conftestval", "w");
18085                             if (!f) exit(1);
18086                             fprintf(f, "%s",
18087                                     ZLIB_VERSION[0] == '1' &&
18088                                     (ZLIB_VERSION[2] > '1' ||
18089                                     (ZLIB_VERSION[2] == '1' &&
18090                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18091                             exit(0);
18092                         }
18093
18094 _ACEOF
18095 rm -f conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097   (eval $ac_link) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102   (eval $ac_try) 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; }; then
18106   ac_cv_header_zlib_h=`cat conftestval`
18107 else
18108   echo "$as_me: program exited with status $ac_status" >&5
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 ( exit $ac_status )
18113 ac_cv_header_zlib_h=no
18114 fi
18115 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18116 fi
18117
18118 fi
18119 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18120 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18121                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18122   echo "$as_me:$LINENO: checking for zlib.h" >&5
18123 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18124 if test "${ac_cv_header_zlib_h+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 fi
18127 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18128 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18129 else
18130   # Is the header compilable?
18131 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18132 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18133 cat >conftest.$ac_ext <<_ACEOF
18134 #line $LINENO "configure"
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140 $ac_includes_default
18141 #include <zlib.h>
18142 _ACEOF
18143 rm -f conftest.$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145   (eval $ac_compile) 2>&5
18146   ac_status=$?
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } &&
18149          { ac_try='test -s conftest.$ac_objext'
18150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151   (eval $ac_try) 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; }; then
18155   ac_header_compiler=yes
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 ac_header_compiler=no
18161 fi
18162 rm -f conftest.$ac_objext conftest.$ac_ext
18163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18164 echo "${ECHO_T}$ac_header_compiler" >&6
18165
18166 # Is the header present?
18167 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18168 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18169 cat >conftest.$ac_ext <<_ACEOF
18170 #line $LINENO "configure"
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176 #include <zlib.h>
18177 _ACEOF
18178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } >/dev/null; then
18186   if test -s conftest.err; then
18187     ac_cpp_err=$ac_c_preproc_warn_flag
18188   else
18189     ac_cpp_err=
18190   fi
18191 else
18192   ac_cpp_err=yes
18193 fi
18194 if test -z "$ac_cpp_err"; then
18195   ac_header_preproc=yes
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200   ac_header_preproc=no
18201 fi
18202 rm -f conftest.err conftest.$ac_ext
18203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18204 echo "${ECHO_T}$ac_header_preproc" >&6
18205
18206 # So?  What about this header?
18207 case $ac_header_compiler:$ac_header_preproc in
18208   yes:no )
18209     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18210 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18211     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18212 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18213     (
18214       cat <<\_ASBOX
18215 ## ------------------------------------ ##
18216 ## Report this to bug-autoconf@gnu.org. ##
18217 ## ------------------------------------ ##
18218 _ASBOX
18219     ) |
18220       sed "s/^/$as_me: WARNING:     /" >&2
18221     ;;
18222   no:yes )
18223     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18224 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18225     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18226 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18227     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18228 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18229     (
18230       cat <<\_ASBOX
18231 ## ------------------------------------ ##
18232 ## Report this to bug-autoconf@gnu.org. ##
18233 ## ------------------------------------ ##
18234 _ASBOX
18235     ) |
18236       sed "s/^/$as_me: WARNING:     /" >&2
18237     ;;
18238 esac
18239 echo "$as_me:$LINENO: checking for zlib.h" >&5
18240 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18241 if test "${ac_cv_header_zlib_h+set}" = set; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244   ac_cv_header_zlib_h=$ac_header_preproc
18245 fi
18246 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18247 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18248
18249 fi
18250
18251
18252
18253             system_zlib_h_ok=$ac_cv_header_zlib_h
18254         fi
18255
18256         if test "$system_zlib_h_ok" = "yes"; then
18257             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18258 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18259 if test "${ac_cv_lib_z_deflate+set}" = set; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262   ac_check_lib_save_LIBS=$LIBS
18263 LIBS="-lz  $LIBS"
18264 cat >conftest.$ac_ext <<_ACEOF
18265 #line $LINENO "configure"
18266 /* confdefs.h.  */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h.  */
18271
18272 /* Override any gcc2 internal prototype to avoid an error.  */
18273 #ifdef __cplusplus
18274 extern "C"
18275 #endif
18276 /* We use char because int might match the return type of a gcc2
18277    builtin and then its argument prototype would still apply.  */
18278 char deflate ();
18279 int
18280 main ()
18281 {
18282 deflate ();
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18289   (eval $ac_link) 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); } &&
18293          { ac_try='test -s conftest$ac_exeext'
18294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295   (eval $ac_try) 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; }; then
18299   ac_cv_lib_z_deflate=yes
18300 else
18301   echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 ac_cv_lib_z_deflate=no
18305 fi
18306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18308 fi
18309 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18310 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18311 if test $ac_cv_lib_z_deflate = yes; then
18312   ZLIB_LINK=" -lz"
18313 fi
18314
18315         fi
18316
18317         if test "x$ZLIB_LINK" = "x" ; then
18318             if test "$wxUSE_ZLIB" = "sys" ; then
18319                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18320 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18321    { (exit 1); exit 1; }; }
18322             else
18323                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18324 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
18325                 wxUSE_ZLIB=builtin
18326             fi
18327         else
18328                         wxUSE_ZLIB=sys
18329         fi
18330     fi
18331
18332     if test "$wxUSE_ZLIB" = "builtin" ; then
18333         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18334     fi
18335 fi
18336
18337
18338 PNG_INCLUDE=
18339 PNG_LINK=
18340 if test "$wxUSE_LIBPNG" != "no" ; then
18341     cat >>confdefs.h <<\_ACEOF
18342 #define wxUSE_LIBPNG 1
18343 _ACEOF
18344
18345
18346     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
18347         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18348 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
18349         wxUSE_LIBPNG=sys
18350     fi
18351
18352                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
18353         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18354 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
18355         wxUSE_LIBPNG=builtin
18356     fi
18357
18358     if test "$wxUSE_MGL" != 1 ; then
18359                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
18360                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18361 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18362 if test "${ac_cv_header_png_h+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   if test "$cross_compiling" = yes; then
18366                       unset ac_cv_header_png_h
18367
18368 else
18369   cat >conftest.$ac_ext <<_ACEOF
18370 #line $LINENO "configure"
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376
18377                         #include <png.h>
18378                         #include <stdio.h>
18379
18380                         int main()
18381                         {
18382                             FILE *f=fopen("conftestval", "w");
18383                             if (!f) exit(1);
18384                             fprintf(f, "%s",
18385                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
18386                             exit(0);
18387                         }
18388
18389 _ACEOF
18390 rm -f conftest$ac_exeext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392   (eval $ac_link) 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397   (eval $ac_try) 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); }; }; then
18401   ac_cv_header_png_h=`cat conftestval`
18402 else
18403   echo "$as_me: program exited with status $ac_status" >&5
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407 ( exit $ac_status )
18408 ac_cv_header_png_h=no
18409 fi
18410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18411 fi
18412
18413 fi
18414 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18415 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18416             if test "${ac_cv_header_png_h+set}" = set; then
18417   echo "$as_me:$LINENO: checking for png.h" >&5
18418 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18419 if test "${ac_cv_header_png_h+set}" = set; then
18420   echo $ECHO_N "(cached) $ECHO_C" >&6
18421 fi
18422 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18423 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18424 else
18425   # Is the header compilable?
18426 echo "$as_me:$LINENO: checking png.h usability" >&5
18427 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18428 cat >conftest.$ac_ext <<_ACEOF
18429 #line $LINENO "configure"
18430 /* confdefs.h.  */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h.  */
18435 $ac_includes_default
18436 #include <png.h>
18437 _ACEOF
18438 rm -f conftest.$ac_objext
18439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18440   (eval $ac_compile) 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); } &&
18444          { ac_try='test -s conftest.$ac_objext'
18445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446   (eval $ac_try) 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; }; then
18450   ac_header_compiler=yes
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455 ac_header_compiler=no
18456 fi
18457 rm -f conftest.$ac_objext conftest.$ac_ext
18458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18459 echo "${ECHO_T}$ac_header_compiler" >&6
18460
18461 # Is the header present?
18462 echo "$as_me:$LINENO: checking png.h presence" >&5
18463 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18464 cat >conftest.$ac_ext <<_ACEOF
18465 #line $LINENO "configure"
18466 /* confdefs.h.  */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h.  */
18471 #include <png.h>
18472 _ACEOF
18473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18475   ac_status=$?
18476   grep -v '^ *+' conftest.er1 >conftest.err
18477   rm -f conftest.er1
18478   cat conftest.err >&5
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } >/dev/null; then
18481   if test -s conftest.err; then
18482     ac_cpp_err=$ac_c_preproc_warn_flag
18483   else
18484     ac_cpp_err=
18485   fi
18486 else
18487   ac_cpp_err=yes
18488 fi
18489 if test -z "$ac_cpp_err"; then
18490   ac_header_preproc=yes
18491 else
18492   echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495   ac_header_preproc=no
18496 fi
18497 rm -f conftest.err conftest.$ac_ext
18498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18499 echo "${ECHO_T}$ac_header_preproc" >&6
18500
18501 # So?  What about this header?
18502 case $ac_header_compiler:$ac_header_preproc in
18503   yes:no )
18504     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18505 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18506     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18507 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18508     (
18509       cat <<\_ASBOX
18510 ## ------------------------------------ ##
18511 ## Report this to bug-autoconf@gnu.org. ##
18512 ## ------------------------------------ ##
18513 _ASBOX
18514     ) |
18515       sed "s/^/$as_me: WARNING:     /" >&2
18516     ;;
18517   no:yes )
18518     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18519 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18520     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18521 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18522     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18523 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18524     (
18525       cat <<\_ASBOX
18526 ## ------------------------------------ ##
18527 ## Report this to bug-autoconf@gnu.org. ##
18528 ## ------------------------------------ ##
18529 _ASBOX
18530     ) |
18531       sed "s/^/$as_me: WARNING:     /" >&2
18532     ;;
18533 esac
18534 echo "$as_me:$LINENO: checking for png.h" >&5
18535 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18536 if test "${ac_cv_header_png_h+set}" = set; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539   ac_cv_header_png_h=$ac_header_preproc
18540 fi
18541 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18542 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18543
18544 fi
18545
18546
18547
18548             if test "$ac_cv_header_png_h" = "yes"; then
18549                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18550 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18551 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   ac_check_lib_save_LIBS=$LIBS
18555 LIBS="-lpng -lz -lm $LIBS"
18556 cat >conftest.$ac_ext <<_ACEOF
18557 #line $LINENO "configure"
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 /* Override any gcc2 internal prototype to avoid an error.  */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 /* We use char because int might match the return type of a gcc2
18569    builtin and then its argument prototype would still apply.  */
18570 char png_check_sig ();
18571 int
18572 main ()
18573 {
18574 png_check_sig ();
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581   (eval $ac_link) 2>&5
18582   ac_status=$?
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -s conftest$ac_exeext'
18586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587   (eval $ac_try) 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591   ac_cv_lib_png_png_check_sig=yes
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_cv_lib_png_png_check_sig=no
18597 fi
18598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18600 fi
18601 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18602 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18603 if test $ac_cv_lib_png_png_check_sig = yes; then
18604   PNG_LINK=" -lpng"
18605 fi
18606
18607             fi
18608
18609             if test "x$PNG_LINK" = "x" ; then
18610                 if test "$wxUSE_LIBPNG" = "sys" ; then
18611                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18612 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18613    { (exit 1); exit 1; }; }
18614                 else
18615                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18616 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
18617                     wxUSE_LIBPNG=builtin
18618                 fi
18619             else
18620                                 wxUSE_LIBPNG=sys
18621             fi
18622         fi
18623     fi
18624
18625     if test "$wxUSE_LIBPNG" = "builtin" ; then
18626         PNG_INCLUDE="-I\${top_srcdir}/src/png"
18627     fi
18628
18629     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
18630 fi
18631
18632
18633 JPEG_INCLUDE=
18634 JPEG_LINK=
18635 if test "$wxUSE_LIBJPEG" != "no" ; then
18636     cat >>confdefs.h <<\_ACEOF
18637 #define wxUSE_LIBJPEG 1
18638 _ACEOF
18639
18640
18641     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
18642         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18643 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
18644         wxUSE_LIBJPEG=sys
18645     fi
18646
18647     if test "$wxUSE_MGL" != 1 ; then
18648                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
18649                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18650 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18651             if test "${ac_cv_header_jpeglib_h+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   cat >conftest.$ac_ext <<_ACEOF
18655 #line $LINENO "configure"
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662                         #undef HAVE_STDLIB_H
18663                         #include <stdio.h>
18664                         #include <jpeglib.h>
18665
18666 int
18667 main ()
18668 {
18669
18670
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677   (eval $ac_compile) 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } &&
18681          { ac_try='test -s conftest.$ac_objext'
18682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683   (eval $ac_try) 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; }; then
18687   ac_cv_header_jpeglib_h=yes
18688 else
18689   echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 ac_cv_header_jpeglib_h=no
18693
18694 fi
18695 rm -f conftest.$ac_objext conftest.$ac_ext
18696
18697 fi
18698
18699             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18700 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18701
18702             if test "$ac_cv_header_jpeglib_h" = "yes"; then
18703                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18704 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18705 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-ljpeg  $LIBS"
18710 cat >conftest.$ac_ext <<_ACEOF
18711 #line $LINENO "configure"
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717
18718 /* Override any gcc2 internal prototype to avoid an error.  */
18719 #ifdef __cplusplus
18720 extern "C"
18721 #endif
18722 /* We use char because int might match the return type of a gcc2
18723    builtin and then its argument prototype would still apply.  */
18724 char jpeg_read_header ();
18725 int
18726 main ()
18727 {
18728 jpeg_read_header ();
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18735   (eval $ac_link) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } &&
18739          { ac_try='test -s conftest$ac_exeext'
18740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741   (eval $ac_try) 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; }; then
18745   ac_cv_lib_jpeg_jpeg_read_header=yes
18746 else
18747   echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_cv_lib_jpeg_jpeg_read_header=no
18751 fi
18752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18753 LIBS=$ac_check_lib_save_LIBS
18754 fi
18755 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18756 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18757 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
18758   JPEG_LINK=" -ljpeg"
18759 fi
18760
18761             fi
18762
18763             if test "x$JPEG_LINK" = "x" ; then
18764                 if test "$wxUSE_LIBJPEG" = "sys" ; then
18765                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18766 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18767    { (exit 1); exit 1; }; }
18768                 else
18769                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18770 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
18771                     wxUSE_LIBJPEG=builtin
18772                 fi
18773             else
18774                                 wxUSE_LIBJPEG=sys
18775             fi
18776         fi
18777     fi
18778
18779     if test "$wxUSE_LIBJPEG" = "builtin" ; then
18780         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18781     fi
18782 fi
18783
18784
18785 TIFF_INCLUDE=
18786 TIFF_LINK=
18787 TIFF_PREREQ_LINKS=-lm
18788 if test "$wxUSE_LIBTIFF" != "no" ; then
18789     cat >>confdefs.h <<\_ACEOF
18790 #define wxUSE_LIBTIFF 1
18791 _ACEOF
18792
18793
18794     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
18795                         if test "$wxUSE_LIBJPEG" = "sys"; then
18796             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18797         fi
18798         if test "$wxUSE_ZLIB" = "sys"; then
18799             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18800         fi
18801         if test "${ac_cv_header_tiffio_h+set}" = set; then
18802   echo "$as_me:$LINENO: checking for tiffio.h" >&5
18803 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18804 if test "${ac_cv_header_tiffio_h+set}" = set; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 fi
18807 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18808 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18809 else
18810   # Is the header compilable?
18811 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18812 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18813 cat >conftest.$ac_ext <<_ACEOF
18814 #line $LINENO "configure"
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820 $ac_includes_default
18821 #include <tiffio.h>
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18825   (eval $ac_compile) 2>&5
18826   ac_status=$?
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } &&
18829          { ac_try='test -s conftest.$ac_objext'
18830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831   (eval $ac_try) 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); }; }; then
18835   ac_header_compiler=yes
18836 else
18837   echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18839
18840 ac_header_compiler=no
18841 fi
18842 rm -f conftest.$ac_objext conftest.$ac_ext
18843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18844 echo "${ECHO_T}$ac_header_compiler" >&6
18845
18846 # Is the header present?
18847 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18848 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18849 cat >conftest.$ac_ext <<_ACEOF
18850 #line $LINENO "configure"
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856 #include <tiffio.h>
18857 _ACEOF
18858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } >/dev/null; then
18866   if test -s conftest.err; then
18867     ac_cpp_err=$ac_c_preproc_warn_flag
18868   else
18869     ac_cpp_err=
18870   fi
18871 else
18872   ac_cpp_err=yes
18873 fi
18874 if test -z "$ac_cpp_err"; then
18875   ac_header_preproc=yes
18876 else
18877   echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880   ac_header_preproc=no
18881 fi
18882 rm -f conftest.err conftest.$ac_ext
18883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18884 echo "${ECHO_T}$ac_header_preproc" >&6
18885
18886 # So?  What about this header?
18887 case $ac_header_compiler:$ac_header_preproc in
18888   yes:no )
18889     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18890 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18891     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18892 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18893     (
18894       cat <<\_ASBOX
18895 ## ------------------------------------ ##
18896 ## Report this to bug-autoconf@gnu.org. ##
18897 ## ------------------------------------ ##
18898 _ASBOX
18899     ) |
18900       sed "s/^/$as_me: WARNING:     /" >&2
18901     ;;
18902   no:yes )
18903     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18904 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18905     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18906 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18907     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18908 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18909     (
18910       cat <<\_ASBOX
18911 ## ------------------------------------ ##
18912 ## Report this to bug-autoconf@gnu.org. ##
18913 ## ------------------------------------ ##
18914 _ASBOX
18915     ) |
18916       sed "s/^/$as_me: WARNING:     /" >&2
18917     ;;
18918 esac
18919 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18920 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18921 if test "${ac_cv_header_tiffio_h+set}" = set; then
18922   echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924   ac_cv_header_tiffio_h=$ac_header_preproc
18925 fi
18926 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18927 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18928
18929 fi
18930 if test $ac_cv_header_tiffio_h = yes; then
18931   echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18932 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18933 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18939 #line $LINENO "configure"
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945
18946 /* Override any gcc2 internal prototype to avoid an error.  */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 /* We use char because int might match the return type of a gcc2
18951    builtin and then its argument prototype would still apply.  */
18952 char TIFFError ();
18953 int
18954 main ()
18955 {
18956 TIFFError ();
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963   (eval $ac_link) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } &&
18967          { ac_try='test -s conftest$ac_exeext'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   ac_cv_lib_tiff_TIFFError=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978 ac_cv_lib_tiff_TIFFError=no
18979 fi
18980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18982 fi
18983 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
18984 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
18985 if test $ac_cv_lib_tiff_TIFFError = yes; then
18986   TIFF_LINK=" -ltiff"
18987 fi
18988
18989
18990 fi
18991
18992
18993
18994         if test "x$TIFF_LINK" = "x" ; then
18995             if test "$wxUSE_LIBTIFF" = "sys" ; then
18996                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
18997 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
18998    { (exit 1); exit 1; }; }
18999             else
19000                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19001 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19002                 wxUSE_LIBTIFF=builtin
19003             fi
19004         else
19005                         wxUSE_LIBTIFF=sys
19006         fi
19007     fi
19008
19009     if test "$wxUSE_LIBTIFF" = "builtin" ; then
19010         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
19011     fi
19012 fi
19013
19014
19015 AFMINSTALL=
19016 WIN32INSTALL=
19017
19018 TOOLKIT=
19019 TOOLKIT_INCLUDE=
19020 WIDGET_SET=
19021
19022 if test "$USE_WIN32" = 1 ; then
19023
19024 for ac_header in w32api.h
19025 do
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19028   echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 fi
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19035 else
19036   # Is the header compilable?
19037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19040 #line $LINENO "configure"
19041 /* confdefs.h.  */
19042 _ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h.  */
19046 $ac_includes_default
19047 #include <$ac_header>
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19051   (eval $ac_compile) 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } &&
19055          { ac_try='test -s conftest.$ac_objext'
19056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057   (eval $ac_try) 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; }; then
19061   ac_header_compiler=yes
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 ac_header_compiler=no
19067 fi
19068 rm -f conftest.$ac_objext conftest.$ac_ext
19069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19070 echo "${ECHO_T}$ac_header_compiler" >&6
19071
19072 # Is the header present?
19073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19075 cat >conftest.$ac_ext <<_ACEOF
19076 #line $LINENO "configure"
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082 #include <$ac_header>
19083 _ACEOF
19084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } >/dev/null; then
19092   if test -s conftest.err; then
19093     ac_cpp_err=$ac_c_preproc_warn_flag
19094   else
19095     ac_cpp_err=
19096   fi
19097 else
19098   ac_cpp_err=yes
19099 fi
19100 if test -z "$ac_cpp_err"; then
19101   ac_header_preproc=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106   ac_header_preproc=no
19107 fi
19108 rm -f conftest.err conftest.$ac_ext
19109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19110 echo "${ECHO_T}$ac_header_preproc" >&6
19111
19112 # So?  What about this header?
19113 case $ac_header_compiler:$ac_header_preproc in
19114   yes:no )
19115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19119     (
19120       cat <<\_ASBOX
19121 ## ------------------------------------ ##
19122 ## Report this to bug-autoconf@gnu.org. ##
19123 ## ------------------------------------ ##
19124 _ASBOX
19125     ) |
19126       sed "s/^/$as_me: WARNING:     /" >&2
19127     ;;
19128   no:yes )
19129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135     (
19136       cat <<\_ASBOX
19137 ## ------------------------------------ ##
19138 ## Report this to bug-autoconf@gnu.org. ##
19139 ## ------------------------------------ ##
19140 _ASBOX
19141     ) |
19142       sed "s/^/$as_me: WARNING:     /" >&2
19143     ;;
19144 esac
19145 echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   eval "$as_ac_Header=$ac_header_preproc"
19151 fi
19152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19154
19155 fi
19156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19157   cat >>confdefs.h <<_ACEOF
19158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19159 _ACEOF
19160
19161 fi
19162
19163 done
19164
19165     if test "${ac_cv_header_windows_h+set}" = set; then
19166   echo "$as_me:$LINENO: checking for windows.h" >&5
19167 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19168 if test "${ac_cv_header_windows_h+set}" = set; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 fi
19171 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19172 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19173 else
19174   # Is the header compilable?
19175 echo "$as_me:$LINENO: checking windows.h usability" >&5
19176 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19178 #line $LINENO "configure"
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184 $ac_includes_default
19185 #include <windows.h>
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189   (eval $ac_compile) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -s conftest.$ac_objext'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; }; then
19199   ac_header_compiler=yes
19200 else
19201   echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_header_compiler=no
19205 fi
19206 rm -f conftest.$ac_objext conftest.$ac_ext
19207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 echo "${ECHO_T}$ac_header_compiler" >&6
19209
19210 # Is the header present?
19211 echo "$as_me:$LINENO: checking windows.h presence" >&5
19212 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19213 cat >conftest.$ac_ext <<_ACEOF
19214 #line $LINENO "configure"
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 #include <windows.h>
19221 _ACEOF
19222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19224   ac_status=$?
19225   grep -v '^ *+' conftest.er1 >conftest.err
19226   rm -f conftest.er1
19227   cat conftest.err >&5
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } >/dev/null; then
19230   if test -s conftest.err; then
19231     ac_cpp_err=$ac_c_preproc_warn_flag
19232   else
19233     ac_cpp_err=
19234   fi
19235 else
19236   ac_cpp_err=yes
19237 fi
19238 if test -z "$ac_cpp_err"; then
19239   ac_header_preproc=yes
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244   ac_header_preproc=no
19245 fi
19246 rm -f conftest.err conftest.$ac_ext
19247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19248 echo "${ECHO_T}$ac_header_preproc" >&6
19249
19250 # So?  What about this header?
19251 case $ac_header_compiler:$ac_header_preproc in
19252   yes:no )
19253     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19254 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19255     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19256 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19257     (
19258       cat <<\_ASBOX
19259 ## ------------------------------------ ##
19260 ## Report this to bug-autoconf@gnu.org. ##
19261 ## ------------------------------------ ##
19262 _ASBOX
19263     ) |
19264       sed "s/^/$as_me: WARNING:     /" >&2
19265     ;;
19266   no:yes )
19267     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19268 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19269     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19270 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19271     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19272 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19273     (
19274       cat <<\_ASBOX
19275 ## ------------------------------------ ##
19276 ## Report this to bug-autoconf@gnu.org. ##
19277 ## ------------------------------------ ##
19278 _ASBOX
19279     ) |
19280       sed "s/^/$as_me: WARNING:     /" >&2
19281     ;;
19282 esac
19283 echo "$as_me:$LINENO: checking for windows.h" >&5
19284 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19285 if test "${ac_cv_header_windows_h+set}" = set; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288   ac_cv_header_windows_h=$ac_header_preproc
19289 fi
19290 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19291 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19292
19293 fi
19294 if test $ac_cv_header_windows_h = yes; then
19295   :
19296 else
19297
19298         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19299 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19300    { (exit 1); exit 1; }; }
19301
19302 fi
19303
19304
19305
19306         echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
19307 echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
19308 if test "${wx_cv_w32api_win32_ie+set}" = set; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311
19312       cat >conftest.$ac_ext <<_ACEOF
19313 #line $LINENO "configure"
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319 #include <w32api.h>
19320 int
19321 main ()
19322 {
19323
19324                        #define wxCHECK_W32API_VERSION( major, minor ) \
19325                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
19326                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
19327                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
19328
19329                        #if !wxCHECK_W32API_VERSION(1,1)
19330                        #error You need w32api 1.1 or newer
19331                        #endif
19332
19333   ;
19334   return 0;
19335 }
19336 _ACEOF
19337 rm -f conftest.$ac_objext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19339   (eval $ac_compile) 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } &&
19343          { ac_try='test -s conftest.$ac_objext'
19344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345   (eval $ac_try) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; }; then
19349
19350                         wx_cv_w32api_win32_ie=yes
19351
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356
19357                         wx_cv_w32api_win32_ie=no
19358
19359 fi
19360 rm -f conftest.$ac_objext conftest.$ac_ext
19361
19362 fi
19363 echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
19364 echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
19365     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
19366         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
19367     fi
19368
19369             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
19370
19371     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19372         LIBS="$LIBS -loleacc"
19373     fi
19374
19375     case "${host}" in
19376         *-*-cygwin* )
19377                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
19378             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
19379     esac
19380
19381         if test "$wxUSE_ODBC" = "sys" ; then
19382         wxUSE_ODBC = "yes"
19383     fi
19384     if test "$wxUSE_ODBC" = "yes" ; then
19385         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
19386         cat >>confdefs.h <<\_ACEOF
19387 #define wxUSE_ODBC 1
19388 _ACEOF
19389
19390     fi
19391
19392     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19393     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
19394
19395         WIN32INSTALL=win32install
19396 fi
19397
19398 if test "$USE_DARWIN" = 1; then
19399             if test "$wxUSE_PRECOMP" = "yes"; then
19400         CPPFLAGS="$CPPFLAGS -cpp-precomp"
19401     else
19402         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
19403     fi
19404 fi
19405
19406 if test "$wxUSE_GUI" = "yes"; then
19407     USE_GUI=1
19408
19409     GUI_TK_LIBRARY=
19410
19411     WXGTK12=
19412     WXGTK127=
19413     WXGTK20=
19414
19415     if test "$wxUSE_MSW" = 1 ; then
19416         TOOLKIT=MSW
19417         GUIDIST=MSW_DIST
19418
19419                         LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19420     fi
19421
19422     if test "$wxUSE_GTK" = 1; then
19423         echo "$as_me:$LINENO: checking for GTK+ version" >&5
19424 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
19425
19426         gtk_version_cached=1
19427         if test "${wx_cv_lib_gtk+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430
19431                                                 gtk_version_cached=0
19432                 echo "$as_me:$LINENO: result: " >&5
19433 echo "${ECHO_T}" >&6
19434
19435                                                 GTK_MODULES=
19436                 if test "$wxUSE_THREADS" = "yes"; then
19437                     GTK_MODULES=gthread
19438                 fi
19439
19440                                                 wx_cv_lib_gtk=
19441                 if test "x$wxUSE_GTK2" = "xyes"; then
19442                     # Check whether --enable-gtktest or --disable-gtktest was given.
19443 if test "${enable_gtktest+set}" = set; then
19444   enableval="$enable_gtktest"
19445
19446 else
19447   enable_gtktest=yes
19448 fi;
19449
19450   pkg_config_args=gtk+-2.0
19451   for module in . $GTK_MODULES
19452   do
19453       case "$module" in
19454          gthread)
19455              pkg_config_args="$pkg_config_args gthread-2.0"
19456          ;;
19457       esac
19458   done
19459
19460   no_gtk=""
19461
19462   # Extract the first word of "pkg-config", so it can be a program name with args.
19463 set dummy pkg-config; ac_word=$2
19464 echo "$as_me:$LINENO: checking for $ac_word" >&5
19465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19466 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   case $PKG_CONFIG in
19470   [\\/]* | ?:[\\/]*)
19471   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19472   ;;
19473   *)
19474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19475 for as_dir in $PATH
19476 do
19477   IFS=$as_save_IFS
19478   test -z "$as_dir" && as_dir=.
19479   for ac_exec_ext in '' $ac_executable_extensions; do
19480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19481     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19483     break 2
19484   fi
19485 done
19486 done
19487
19488   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19489   ;;
19490 esac
19491 fi
19492 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19493
19494 if test -n "$PKG_CONFIG"; then
19495   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19496 echo "${ECHO_T}$PKG_CONFIG" >&6
19497 else
19498   echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6
19500 fi
19501
19502
19503   if test x$PKG_CONFIG != xno ; then
19504     if pkg-config --atleast-pkgconfig-version 0.7 ; then
19505       :
19506     else
19507       echo *** pkg-config too old; version 0.7 or better required.
19508       no_gtk=yes
19509       PKG_CONFIG=no
19510     fi
19511   else
19512     no_gtk=yes
19513   fi
19514
19515   min_gtk_version=2.0.0
19516   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19517 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
19518
19519   if test x$PKG_CONFIG != xno ; then
19520     ## don't try to run the test against uninstalled libtool libs
19521     if $PKG_CONFIG --uninstalled $pkg_config_args; then
19522           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19523           enable_gtktest=no
19524     fi
19525
19526     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19527           :
19528     else
19529           no_gtk=yes
19530     fi
19531   fi
19532
19533   if test x"$no_gtk" = x ; then
19534     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19535     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19536     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19537            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19538     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19539            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19540     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19541            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19542     if test "x$enable_gtktest" = "xyes" ; then
19543       ac_save_CFLAGS="$CFLAGS"
19544       ac_save_LIBS="$LIBS"
19545       CFLAGS="$CFLAGS $GTK_CFLAGS"
19546       LIBS="$GTK_LIBS $LIBS"
19547       rm -f conf.gtktest
19548       if test "$cross_compiling" = yes; then
19549   echo $ac_n "cross compiling; assumed OK... $ac_c"
19550 else
19551   cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 /* confdefs.h.  */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h.  */
19558
19559 #include <gtk/gtk.h>
19560 #include <stdio.h>
19561 #include <stdlib.h>
19562
19563 int
19564 main ()
19565 {
19566   int major, minor, micro;
19567   char *tmp_version;
19568
19569   system ("touch conf.gtktest");
19570
19571   /* HP/UX 9 (%@#!) writes to sscanf strings */
19572   tmp_version = g_strdup("$min_gtk_version");
19573   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19574      printf("%s, bad version string\n", "$min_gtk_version");
19575      exit(1);
19576    }
19577
19578   if ((gtk_major_version != $gtk_config_major_version) ||
19579       (gtk_minor_version != $gtk_config_minor_version) ||
19580       (gtk_micro_version != $gtk_config_micro_version))
19581     {
19582       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19583              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19584              gtk_major_version, gtk_minor_version, gtk_micro_version);
19585       printf ("*** was found! If pkg-config was correct, then it is best\n");
19586       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19587       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19588       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19589       printf("*** required on your system.\n");
19590       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19591       printf("*** to point to the correct configuration files\n");
19592     }
19593   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19594            (gtk_minor_version != GTK_MINOR_VERSION) ||
19595            (gtk_micro_version != GTK_MICRO_VERSION))
19596     {
19597       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19598              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19599       printf("*** library (version %d.%d.%d)\n",
19600              gtk_major_version, gtk_minor_version, gtk_micro_version);
19601     }
19602   else
19603     {
19604       if ((gtk_major_version > major) ||
19605         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19606         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19607       {
19608         return 0;
19609        }
19610      else
19611       {
19612         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19613                gtk_major_version, gtk_minor_version, gtk_micro_version);
19614         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19615                major, minor, micro);
19616         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19617         printf("***\n");
19618         printf("*** If you have already installed a sufficiently new version, this error\n");
19619         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19620         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19621         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19622         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19623         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19624         printf("*** so that the correct libraries are found at run-time))\n");
19625       }
19626     }
19627   return 1;
19628 }
19629
19630 _ACEOF
19631 rm -f conftest$ac_exeext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19633   (eval $ac_link) 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   :
19643 else
19644   echo "$as_me: program exited with status $ac_status" >&5
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ( exit $ac_status )
19649 no_gtk=yes
19650 fi
19651 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19652 fi
19653        CFLAGS="$ac_save_CFLAGS"
19654        LIBS="$ac_save_LIBS"
19655      fi
19656   fi
19657   if test "x$no_gtk" = x ; then
19658      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19659 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19660      wx_cv_lib_gtk=2.0
19661   else
19662      echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6
19664      if test "$PKG_CONFIG" = "no" ; then
19665        echo "*** A new enough version of pkg-config was not found."
19666        echo "*** See http://pkgconfig.sourceforge.net"
19667      else
19668        if test -f conf.gtktest ; then
19669         :
19670        else
19671           echo "*** Could not run GTK+ test program, checking why..."
19672           ac_save_CFLAGS="$CFLAGS"
19673           ac_save_LIBS="$LIBS"
19674           CFLAGS="$CFLAGS $GTK_CFLAGS"
19675           LIBS="$LIBS $GTK_LIBS"
19676           cat >conftest.$ac_ext <<_ACEOF
19677 #line $LINENO "configure"
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683
19684 #include <gtk/gtk.h>
19685 #include <stdio.h>
19686
19687 int
19688 main ()
19689 {
19690  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19691   ;
19692   return 0;
19693 }
19694 _ACEOF
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697   (eval $ac_link) 2>&5
19698   ac_status=$?
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); } &&
19701          { ac_try='test -s conftest$ac_exeext'
19702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703   (eval $ac_try) 2>&5
19704   ac_status=$?
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); }; }; then
19707    echo "*** The test program compiled, but did not run. This usually means"
19708           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19709           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19710           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19711           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
19712           echo "*** is required on your system"
19713           echo "***"
19714           echo "*** If you have an old version installed, it is best to remove it, although"
19715           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720  echo "*** The test program failed to compile or link. See the file config.log for the"
19721           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
19722 fi
19723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19724           CFLAGS="$ac_save_CFLAGS"
19725           LIBS="$ac_save_LIBS"
19726        fi
19727      fi
19728      GTK_CFLAGS=""
19729      GTK_LIBS=""
19730      :
19731   fi
19732
19733
19734   rm -f conf.gtktest
19735
19736                 else
19737
19738 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
19739 if test "${with_gtk_prefix+set}" = set; then
19740   withval="$with_gtk_prefix"
19741   gtk_config_prefix="$withval"
19742 else
19743   gtk_config_prefix=""
19744 fi;
19745
19746 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19747 if test "${with_gtk_exec_prefix+set}" = set; then
19748   withval="$with_gtk_exec_prefix"
19749   gtk_config_exec_prefix="$withval"
19750 else
19751   gtk_config_exec_prefix=""
19752 fi;
19753 # Check whether --enable-gtktest or --disable-gtktest was given.
19754 if test "${enable_gtktest+set}" = set; then
19755   enableval="$enable_gtktest"
19756
19757 else
19758   enable_gtktest=yes
19759 fi;
19760
19761   for module in . $GTK_MODULES
19762   do
19763       case "$module" in
19764          gthread)
19765              gtk_config_args="$gtk_config_args gthread"
19766          ;;
19767       esac
19768   done
19769
19770   if test x$gtk_config_exec_prefix != x ; then
19771      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19772      if test x${GTK_CONFIG+set} != xset ; then
19773         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19774      fi
19775   fi
19776   if test x$gtk_config_prefix != x ; then
19777      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19778      if test x${GTK_CONFIG+set} != xset ; then
19779         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19780      fi
19781   fi
19782
19783   # Extract the first word of "gtk-config", so it can be a program name with args.
19784 set dummy gtk-config; ac_word=$2
19785 echo "$as_me:$LINENO: checking for $ac_word" >&5
19786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19787 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19788   echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790   case $GTK_CONFIG in
19791   [\\/]* | ?:[\\/]*)
19792   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19793   ;;
19794   *)
19795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19796 for as_dir in $PATH
19797 do
19798   IFS=$as_save_IFS
19799   test -z "$as_dir" && as_dir=.
19800   for ac_exec_ext in '' $ac_executable_extensions; do
19801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19802     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19804     break 2
19805   fi
19806 done
19807 done
19808
19809   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19810   ;;
19811 esac
19812 fi
19813 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19814
19815 if test -n "$GTK_CONFIG"; then
19816   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19817 echo "${ECHO_T}$GTK_CONFIG" >&6
19818 else
19819   echo "$as_me:$LINENO: result: no" >&5
19820 echo "${ECHO_T}no" >&6
19821 fi
19822
19823   min_gtk_version=1.2.7
19824   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19825 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
19826   no_gtk=""
19827   if test "$GTK_CONFIG" = "no" ; then
19828     no_gtk=yes
19829   else
19830     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19831     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19832     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19833            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19834     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19835            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19836     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19837            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19838     if test "x$enable_gtktest" = "xyes" ; then
19839       ac_save_CFLAGS="$CFLAGS"
19840       ac_save_LIBS="$LIBS"
19841       CFLAGS="$CFLAGS $GTK_CFLAGS"
19842       LIBS="$GTK_LIBS $LIBS"
19843       rm -f conf.gtktest
19844       if test "$cross_compiling" = yes; then
19845   echo $ac_n "cross compiling; assumed OK... $ac_c"
19846 else
19847   cat >conftest.$ac_ext <<_ACEOF
19848 #line $LINENO "configure"
19849 /* confdefs.h.  */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h.  */
19854
19855 #include <gtk/gtk.h>
19856 #include <stdio.h>
19857 #include <stdlib.h>
19858
19859 int
19860 main ()
19861 {
19862   int major, minor, micro;
19863   char *tmp_version;
19864
19865   system ("touch conf.gtktest");
19866
19867   /* HP/UX 9 (%@#!) writes to sscanf strings */
19868   tmp_version = g_strdup("$min_gtk_version");
19869   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19870      printf("%s, bad version string\n", "$min_gtk_version");
19871      exit(1);
19872    }
19873
19874   if ((gtk_major_version != $gtk_config_major_version) ||
19875       (gtk_minor_version != $gtk_config_minor_version) ||
19876       (gtk_micro_version != $gtk_config_micro_version))
19877     {
19878       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19879              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19880              gtk_major_version, gtk_minor_version, gtk_micro_version);
19881       printf ("*** was found! If gtk-config was correct, then it is best\n");
19882       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19883       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19884       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19885       printf("*** required on your system.\n");
19886       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19887       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19888       printf("*** before re-running configure\n");
19889     }
19890 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19891   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19892            (gtk_minor_version != GTK_MINOR_VERSION) ||
19893            (gtk_micro_version != GTK_MICRO_VERSION))
19894     {
19895       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19896              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19897       printf("*** library (version %d.%d.%d)\n",
19898              gtk_major_version, gtk_minor_version, gtk_micro_version);
19899     }
19900 #endif /* defined (GTK_MAJOR_VERSION) ... */
19901   else
19902     {
19903       if ((gtk_major_version > major) ||
19904         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19905         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19906       {
19907         return 0;
19908        }
19909      else
19910       {
19911         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19912                gtk_major_version, gtk_minor_version, gtk_micro_version);
19913         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19914                major, minor, micro);
19915         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19916         printf("***\n");
19917         printf("*** If you have already installed a sufficiently new version, this error\n");
19918         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19919         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19920         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19921         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19922         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19923         printf("*** so that the correct libraries are found at run-time))\n");
19924       }
19925     }
19926   return 1;
19927 }
19928
19929 _ACEOF
19930 rm -f conftest$ac_exeext
19931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19932   (eval $ac_link) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937   (eval $ac_try) 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   :
19942 else
19943   echo "$as_me: program exited with status $ac_status" >&5
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19946
19947 ( exit $ac_status )
19948 no_gtk=yes
19949 fi
19950 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19951 fi
19952        CFLAGS="$ac_save_CFLAGS"
19953        LIBS="$ac_save_LIBS"
19954      fi
19955   fi
19956   if test "x$no_gtk" = x ; then
19957      echo "$as_me:$LINENO: result: yes" >&5
19958 echo "${ECHO_T}yes" >&6
19959      wx_cv_lib_gtk=1.2.7
19960   else
19961      echo "$as_me:$LINENO: result: no" >&5
19962 echo "${ECHO_T}no" >&6
19963      if test "$GTK_CONFIG" = "no" ; then
19964        echo "*** The gtk-config script installed by GTK could not be found"
19965        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19966        echo "*** your path, or set the GTK_CONFIG environment variable to the"
19967        echo "*** full path to gtk-config."
19968      else
19969        if test -f conf.gtktest ; then
19970         :
19971        else
19972           echo "*** Could not run GTK test program, checking why..."
19973           CFLAGS="$CFLAGS $GTK_CFLAGS"
19974           LIBS="$LIBS $GTK_LIBS"
19975           cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982
19983 #include <gtk/gtk.h>
19984 #include <stdio.h>
19985
19986 int
19987 main ()
19988 {
19989  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19990   ;
19991   return 0;
19992 }
19993 _ACEOF
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996   (eval $ac_link) 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -s conftest$ac_exeext'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; }; then
20006    echo "*** The test program compiled, but did not run. This usually means"
20007           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20008           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20009           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20010           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20011           echo "*** is required on your system"
20012           echo "***"
20013           echo "*** If you have an old version installed, it is best to remove it, although"
20014           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20015           echo "***"
20016           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20017           echo "*** came with the system with the command"
20018           echo "***"
20019           echo "***    rpm --erase --nodeps gtk gtk-devel"
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024  echo "*** The test program failed to compile or link. See the file config.log for the"
20025           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20026           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20027           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20028 fi
20029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20030           CFLAGS="$ac_save_CFLAGS"
20031           LIBS="$ac_save_LIBS"
20032        fi
20033      fi
20034      GTK_CFLAGS=""
20035      GTK_LIBS=""
20036      :
20037   fi
20038
20039
20040   rm -f conf.gtktest
20041
20042
20043                     if test -z "$wx_cv_lib_gtk"; then
20044
20045 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20046 if test "${with_gtk_prefix+set}" = set; then
20047   withval="$with_gtk_prefix"
20048   gtk_config_prefix="$withval"
20049 else
20050   gtk_config_prefix=""
20051 fi;
20052
20053 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20054 if test "${with_gtk_exec_prefix+set}" = set; then
20055   withval="$with_gtk_exec_prefix"
20056   gtk_config_exec_prefix="$withval"
20057 else
20058   gtk_config_exec_prefix=""
20059 fi;
20060 # Check whether --enable-gtktest or --disable-gtktest was given.
20061 if test "${enable_gtktest+set}" = set; then
20062   enableval="$enable_gtktest"
20063
20064 else
20065   enable_gtktest=yes
20066 fi;
20067
20068   for module in . $GTK_MODULES
20069   do
20070       case "$module" in
20071          gthread)
20072              gtk_config_args="$gtk_config_args gthread"
20073          ;;
20074       esac
20075   done
20076
20077   if test x$gtk_config_exec_prefix != x ; then
20078      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20079      if test x${GTK_CONFIG+set} != xset ; then
20080         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20081      fi
20082   fi
20083   if test x$gtk_config_prefix != x ; then
20084      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20085      if test x${GTK_CONFIG+set} != xset ; then
20086         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20087      fi
20088   fi
20089
20090   # Extract the first word of "gtk-config", so it can be a program name with args.
20091 set dummy gtk-config; ac_word=$2
20092 echo "$as_me:$LINENO: checking for $ac_word" >&5
20093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20094 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20095   echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097   case $GTK_CONFIG in
20098   [\\/]* | ?:[\\/]*)
20099   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20100   ;;
20101   *)
20102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103 for as_dir in $PATH
20104 do
20105   IFS=$as_save_IFS
20106   test -z "$as_dir" && as_dir=.
20107   for ac_exec_ext in '' $ac_executable_extensions; do
20108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20109     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20111     break 2
20112   fi
20113 done
20114 done
20115
20116   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20117   ;;
20118 esac
20119 fi
20120 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20121
20122 if test -n "$GTK_CONFIG"; then
20123   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20124 echo "${ECHO_T}$GTK_CONFIG" >&6
20125 else
20126   echo "$as_me:$LINENO: result: no" >&5
20127 echo "${ECHO_T}no" >&6
20128 fi
20129
20130   min_gtk_version=1.2.3
20131   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20132 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20133   no_gtk=""
20134   if test "$GTK_CONFIG" = "no" ; then
20135     no_gtk=yes
20136   else
20137     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20138     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20139     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20140            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20141     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20142            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20143     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20144            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20145     if test "x$enable_gtktest" = "xyes" ; then
20146       ac_save_CFLAGS="$CFLAGS"
20147       ac_save_LIBS="$LIBS"
20148       CFLAGS="$CFLAGS $GTK_CFLAGS"
20149       LIBS="$GTK_LIBS $LIBS"
20150       rm -f conf.gtktest
20151       if test "$cross_compiling" = yes; then
20152   echo $ac_n "cross compiling; assumed OK... $ac_c"
20153 else
20154   cat >conftest.$ac_ext <<_ACEOF
20155 #line $LINENO "configure"
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161
20162 #include <gtk/gtk.h>
20163 #include <stdio.h>
20164 #include <stdlib.h>
20165
20166 int
20167 main ()
20168 {
20169   int major, minor, micro;
20170   char *tmp_version;
20171
20172   system ("touch conf.gtktest");
20173
20174   /* HP/UX 9 (%@#!) writes to sscanf strings */
20175   tmp_version = g_strdup("$min_gtk_version");
20176   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20177      printf("%s, bad version string\n", "$min_gtk_version");
20178      exit(1);
20179    }
20180
20181   if ((gtk_major_version != $gtk_config_major_version) ||
20182       (gtk_minor_version != $gtk_config_minor_version) ||
20183       (gtk_micro_version != $gtk_config_micro_version))
20184     {
20185       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20186              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20187              gtk_major_version, gtk_minor_version, gtk_micro_version);
20188       printf ("*** was found! If gtk-config was correct, then it is best\n");
20189       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20190       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20191       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20192       printf("*** required on your system.\n");
20193       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20194       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20195       printf("*** before re-running configure\n");
20196     }
20197 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20198   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20199            (gtk_minor_version != GTK_MINOR_VERSION) ||
20200            (gtk_micro_version != GTK_MICRO_VERSION))
20201     {
20202       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20203              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20204       printf("*** library (version %d.%d.%d)\n",
20205              gtk_major_version, gtk_minor_version, gtk_micro_version);
20206     }
20207 #endif /* defined (GTK_MAJOR_VERSION) ... */
20208   else
20209     {
20210       if ((gtk_major_version > major) ||
20211         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20212         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20213       {
20214         return 0;
20215        }
20216      else
20217       {
20218         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20219                gtk_major_version, gtk_minor_version, gtk_micro_version);
20220         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20221                major, minor, micro);
20222         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20223         printf("***\n");
20224         printf("*** If you have already installed a sufficiently new version, this error\n");
20225         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20226         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20227         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20228         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20229         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20230         printf("*** so that the correct libraries are found at run-time))\n");
20231       }
20232     }
20233   return 1;
20234 }
20235
20236 _ACEOF
20237 rm -f conftest$ac_exeext
20238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20239   (eval $ac_link) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   :
20249 else
20250   echo "$as_me: program exited with status $ac_status" >&5
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 ( exit $ac_status )
20255 no_gtk=yes
20256 fi
20257 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20258 fi
20259        CFLAGS="$ac_save_CFLAGS"
20260        LIBS="$ac_save_LIBS"
20261      fi
20262   fi
20263   if test "x$no_gtk" = x ; then
20264      echo "$as_me:$LINENO: result: yes" >&5
20265 echo "${ECHO_T}yes" >&6
20266      wx_cv_lib_gtk=1.2.3
20267   else
20268      echo "$as_me:$LINENO: result: no" >&5
20269 echo "${ECHO_T}no" >&6
20270      if test "$GTK_CONFIG" = "no" ; then
20271        echo "*** The gtk-config script installed by GTK could not be found"
20272        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20273        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20274        echo "*** full path to gtk-config."
20275      else
20276        if test -f conf.gtktest ; then
20277         :
20278        else
20279           echo "*** Could not run GTK test program, checking why..."
20280           CFLAGS="$CFLAGS $GTK_CFLAGS"
20281           LIBS="$LIBS $GTK_LIBS"
20282           cat >conftest.$ac_ext <<_ACEOF
20283 #line $LINENO "configure"
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289
20290 #include <gtk/gtk.h>
20291 #include <stdio.h>
20292
20293 int
20294 main ()
20295 {
20296  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20297   ;
20298   return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303   (eval $ac_link) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); } &&
20307          { ac_try='test -s conftest$ac_exeext'
20308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309   (eval $ac_try) 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313    echo "*** The test program compiled, but did not run. This usually means"
20314           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20315           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20316           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20317           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20318           echo "*** is required on your system"
20319           echo "***"
20320           echo "*** If you have an old version installed, it is best to remove it, although"
20321           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20322           echo "***"
20323           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20324           echo "*** came with the system with the command"
20325           echo "***"
20326           echo "***    rpm --erase --nodeps gtk gtk-devel"
20327 else
20328   echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331  echo "*** The test program failed to compile or link. See the file config.log for the"
20332           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20333           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20334           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20335 fi
20336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20337           CFLAGS="$ac_save_CFLAGS"
20338           LIBS="$ac_save_LIBS"
20339        fi
20340      fi
20341      GTK_CFLAGS=""
20342      GTK_LIBS=""
20343      :
20344   fi
20345
20346
20347   rm -f conf.gtktest
20348
20349                     fi
20350                 fi
20351
20352                 if test -z "$wx_cv_lib_gtk"; then
20353                                         wx_cv_lib_gtk=none
20354                 else
20355                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
20356                     wx_cv_libs_gtk=$GTK_LIBS
20357                 fi
20358
20359
20360 fi
20361
20362
20363                         if test "$gtk_version_cached" = 1; then
20364             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20365 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
20366         fi
20367
20368         case "$wx_cv_lib_gtk" in
20369             2.0)    WXGTK20=1
20370                     TOOLKIT_VERSION=2
20371                     ;;
20372             1.2.7)  WXGTK127=1
20373                     WXGTK12=1
20374                     ;;
20375             1.2.3)  WXGTK12=1
20376                     ;;
20377             *)      { { echo "$as_me:$LINENO: error:
20378 Please check that gtk-config is in path, the directory
20379 where GTK+ libraries are installed (returned by
20380 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20381 equivalent variable and GTK+ is version 1.2.3 or above.
20382                             " >&5
20383 echo "$as_me: error:
20384 Please check that gtk-config is in path, the directory
20385 where GTK+ libraries are installed (returned by
20386 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20387 equivalent variable and GTK+ is version 1.2.3 or above.
20388                             " >&2;}
20389    { (exit 1); exit 1; }; }
20390                     ;;
20391         esac
20392
20393         if test "$WXGTK20" = 1; then
20394             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20395
20396   succeeded=no
20397
20398   if test -z "$PKG_CONFIG"; then
20399     # Extract the first word of "pkg-config", so it can be a program name with args.
20400 set dummy pkg-config; ac_word=$2
20401 echo "$as_me:$LINENO: checking for $ac_word" >&5
20402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   case $PKG_CONFIG in
20407   [\\/]* | ?:[\\/]*)
20408   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20409   ;;
20410   *)
20411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20412 for as_dir in $PATH
20413 do
20414   IFS=$as_save_IFS
20415   test -z "$as_dir" && as_dir=.
20416   for ac_exec_ext in '' $ac_executable_extensions; do
20417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20418     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20420     break 2
20421   fi
20422 done
20423 done
20424
20425   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20426   ;;
20427 esac
20428 fi
20429 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20430
20431 if test -n "$PKG_CONFIG"; then
20432   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20433 echo "${ECHO_T}$PKG_CONFIG" >&6
20434 else
20435   echo "$as_me:$LINENO: result: no" >&5
20436 echo "${ECHO_T}no" >&6
20437 fi
20438
20439   fi
20440
20441   if test "$PKG_CONFIG" = "no" ; then
20442      echo "*** The pkg-config script could not be found. Make sure it is"
20443      echo "*** in your path, or set the PKG_CONFIG environment variable"
20444      echo "*** to the full path to pkg-config."
20445      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20446   else
20447      PKG_CONFIG_MIN_VERSION=0.9.0
20448      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20449         echo "$as_me:$LINENO: checking for pangoft2" >&5
20450 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
20451
20452         if $PKG_CONFIG --exists "pangoft2" ; then
20453             echo "$as_me:$LINENO: result: yes" >&5
20454 echo "${ECHO_T}yes" >&6
20455             succeeded=yes
20456
20457             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20458 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20459             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20460             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20461 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20462
20463             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20464 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20465             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20466             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20467 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20468         else
20469             PANGOFT2_CFLAGS=""
20470             PANGOFT2_LIBS=""
20471             ## If we have a custom action on failure, don't print errors, but
20472             ## do set a variable so people can do so.
20473             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20474
20475         fi
20476
20477
20478
20479      else
20480         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20481         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20482      fi
20483   fi
20484
20485   if test $succeeded = yes; then
20486
20487                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20488                         LIBS="$LIBS $PANGOFT2_LIBS"
20489
20490   else
20491
20492                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20493 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
20494                         wxUSE_PRINTING_ARCHITECTURE="no"
20495
20496
20497   fi
20498
20499             fi
20500         else
20501             if test "$wxUSE_UNICODE" = "yes"; then
20502                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20503 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
20504                 wxUSE_UNICODE=no
20505             fi
20506         fi
20507
20508                         if test "$USE_DARWIN" != 1; then
20509
20510 for ac_func in poll
20511 do
20512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20513 echo "$as_me:$LINENO: checking for $ac_func" >&5
20514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20515 if eval "test \"\${$as_ac_var+set}\" = set"; then
20516   echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518   cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 /* System header to define __stub macros and hopefully few prototypes,
20526     which can conflict with char $ac_func (); below.
20527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20528     <limits.h> exists even on freestanding compilers.  */
20529 #ifdef __STDC__
20530 # include <limits.h>
20531 #else
20532 # include <assert.h>
20533 #endif
20534 /* Override any gcc2 internal prototype to avoid an error.  */
20535 #ifdef __cplusplus
20536 extern "C"
20537 {
20538 #endif
20539 /* We use char because int might match the return type of a gcc2
20540    builtin and then its argument prototype would still apply.  */
20541 char $ac_func ();
20542 /* The GNU C library defines this for functions which it implements
20543     to always fail with ENOSYS.  Some functions are actually named
20544     something starting with __ and the normal name is an alias.  */
20545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20546 choke me
20547 #else
20548 char (*f) () = $ac_func;
20549 #endif
20550 #ifdef __cplusplus
20551 }
20552 #endif
20553
20554 int
20555 main ()
20556 {
20557 return f != $ac_func;
20558   ;
20559   return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20564   (eval $ac_link) 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } &&
20568          { ac_try='test -s conftest$ac_exeext'
20569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570   (eval $ac_try) 2>&5
20571   ac_status=$?
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); }; }; then
20574   eval "$as_ac_var=yes"
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 eval "$as_ac_var=no"
20580 fi
20581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20582 fi
20583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20585 if test `eval echo '${'$as_ac_var'}'` = yes; then
20586   cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20588 _ACEOF
20589
20590 fi
20591 done
20592
20593         fi
20594
20595         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20596         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
20597
20598         AFMINSTALL=afminstall
20599         TOOLKIT=GTK
20600         GUIDIST=GTK_DIST
20601
20602                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20603 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20604 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lgdk  $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 #line $LINENO "configure"
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616
20617 /* Override any gcc2 internal prototype to avoid an error.  */
20618 #ifdef __cplusplus
20619 extern "C"
20620 #endif
20621 /* We use char because int might match the return type of a gcc2
20622    builtin and then its argument prototype would still apply.  */
20623 char gdk_im_open ();
20624 int
20625 main ()
20626 {
20627 gdk_im_open ();
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634   (eval $ac_link) 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } &&
20638          { ac_try='test -s conftest$ac_exeext'
20639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640   (eval $ac_try) 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   ac_cv_lib_gdk_gdk_im_open=yes
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ac_cv_lib_gdk_gdk_im_open=no
20650 fi
20651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20652 LIBS=$ac_check_lib_save_LIBS
20653 fi
20654 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20655 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20656 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20657   cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_XIM 1
20659 _ACEOF
20660
20661 fi
20662
20663     fi
20664
20665     if test "$wxUSE_MGL" = 1; then
20666        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20667 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
20668         if test "x$MGL_ROOT" = x ; then
20669             echo "$as_me:$LINENO: result: not found" >&5
20670 echo "${ECHO_T}not found" >&6
20671             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20672 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20673    { (exit 1); exit 1; }; }
20674         else
20675             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20676 echo "${ECHO_T}$MGL_ROOT" >&6
20677         fi
20678
20679         echo "$as_me:$LINENO: checking for libmgl location" >&5
20680 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
20681                         case "${host}" in
20682             *-*-linux* )
20683               if test "x$wxUSE_SHARED" = xyes ; then
20684                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20685               else
20686                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20687               fi
20688               ;;
20689             *-pc-msdosdjgpp )
20690               mgl_os_candidates="dos32/dj2"
20691               ;;
20692             *)
20693               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20694 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20695    { (exit 1); exit 1; }; }
20696         esac
20697
20698         mgl_lib_type=""
20699         mgl_os=""
20700
20701         for mgl_os_i in $mgl_os_candidates ; do
20702             if test "x$mgl_os" = x ; then
20703                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20704                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20705                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20706                         mgl_lib_type=debug
20707                         mgl_os=$mgl_os_i
20708                     fi
20709                 fi
20710                 if test "x$mgl_lib_type" = x ; then
20711                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20712                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20713                         mgl_lib_type=release
20714                         mgl_os=$mgl_os_i
20715                     fi
20716                 fi
20717             fi
20718         done
20719
20720         if test "x$mgl_os" = x ; then
20721             echo "$as_me:$LINENO: result: not found" >&5
20722 echo "${ECHO_T}not found" >&6
20723             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20724 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20725    { (exit 1); exit 1; }; }
20726         fi
20727         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20728 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
20729
20730         wxUSE_UNIVERSAL="yes"
20731
20732         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20733         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20734
20735         AFMINSTALL=afminstall
20736         TOOLKIT=MGL
20737         GUIDIST=MGL_DIST
20738     fi
20739
20740     if test "$wxUSE_MICROWIN" = 1; then
20741         echo "$as_me:$LINENO: checking for MicroWindows" >&5
20742 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
20743         if test "x$MICROWINDOWS" = x ; then
20744             echo "$as_me:$LINENO: result: not found" >&5
20745 echo "${ECHO_T}not found" >&6
20746             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20747 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20748    { (exit 1); exit 1; }; }
20749         else
20750             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20751 echo "${ECHO_T}$MICROWINDOWS" >&6
20752         fi
20753
20754         if test -f $MICROWINDOWS/lib/libmwin.a; then
20755             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20756 echo "${ECHO_T}MicroWindows' libraries found." >&6
20757         else
20758             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20759 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20760    { (exit 1); exit 1; }; }
20761         fi
20762
20763         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20764         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20765
20766         wxUSE_UNIVERSAL="yes"
20767
20768         AFMINSTALL=afminstall
20769         TOOLKIT=MICROWIN
20770         GUIDIST=MICROWIN_DIST
20771
20772         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
20773     fi
20774
20775     if test "$wxUSE_X11" = 1; then
20776                         echo "$as_me:$LINENO: checking for X" >&5
20777 echo $ECHO_N "checking for X... $ECHO_C" >&6
20778
20779
20780 # Check whether --with-x or --without-x was given.
20781 if test "${with_x+set}" = set; then
20782   withval="$with_x"
20783
20784 fi;
20785 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20786 if test "x$with_x" = xno; then
20787   # The user explicitly disabled X.
20788   have_x=disabled
20789 else
20790   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20791     # Both variables are already set.
20792     have_x=yes
20793   else
20794     if test "${ac_cv_have_x+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797   # One or both of the vars are not set, and there is no cached value.
20798 ac_x_includes=no ac_x_libraries=no
20799 rm -fr conftest.dir
20800 if mkdir conftest.dir; then
20801   cd conftest.dir
20802   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20803   cat >Imakefile <<'_ACEOF'
20804 acfindx:
20805         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20806 _ACEOF
20807   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20808     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20809     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20810     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20811     for ac_extension in a so sl; do
20812       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20813          test -f $ac_im_libdir/libX11.$ac_extension; then
20814         ac_im_usrlibdir=$ac_im_libdir; break
20815       fi
20816     done
20817     # Screen out bogus values from the imake configuration.  They are
20818     # bogus both because they are the default anyway, and because
20819     # using them would break gcc on systems where it needs fixed includes.
20820     case $ac_im_incroot in
20821         /usr/include) ;;
20822         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20823     esac
20824     case $ac_im_usrlibdir in
20825         /usr/lib | /lib) ;;
20826         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20827     esac
20828   fi
20829   cd ..
20830   rm -fr conftest.dir
20831 fi
20832
20833 # Standard set of common directories for X headers.
20834 # Check X11 before X11Rn because it is often a symlink to the current release.
20835 ac_x_header_dirs='
20836 /usr/X11/include
20837 /usr/X11R6/include
20838 /usr/X11R5/include
20839 /usr/X11R4/include
20840
20841 /usr/include/X11
20842 /usr/include/X11R6
20843 /usr/include/X11R5
20844 /usr/include/X11R4
20845
20846 /usr/local/X11/include
20847 /usr/local/X11R6/include
20848 /usr/local/X11R5/include
20849 /usr/local/X11R4/include
20850
20851 /usr/local/include/X11
20852 /usr/local/include/X11R6
20853 /usr/local/include/X11R5
20854 /usr/local/include/X11R4
20855
20856 /usr/X386/include
20857 /usr/x386/include
20858 /usr/XFree86/include/X11
20859
20860 /usr/include
20861 /usr/local/include
20862 /usr/unsupported/include
20863 /usr/athena/include
20864 /usr/local/x11r5/include
20865 /usr/lpp/Xamples/include
20866
20867 /usr/openwin/include
20868 /usr/openwin/share/include'
20869
20870 if test "$ac_x_includes" = no; then
20871   # Guess where to find include files, by looking for Intrinsic.h.
20872   # First, try using that file with no special directory specified.
20873   cat >conftest.$ac_ext <<_ACEOF
20874 #line $LINENO "configure"
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880 #include <X11/Intrinsic.h>
20881 _ACEOF
20882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } >/dev/null; then
20890   if test -s conftest.err; then
20891     ac_cpp_err=$ac_c_preproc_warn_flag
20892   else
20893     ac_cpp_err=
20894   fi
20895 else
20896   ac_cpp_err=yes
20897 fi
20898 if test -z "$ac_cpp_err"; then
20899   # We can compile using X headers with no special include directory.
20900 ac_x_includes=
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905   for ac_dir in $ac_x_header_dirs; do
20906   if test -r "$ac_dir/X11/Intrinsic.h"; then
20907     ac_x_includes=$ac_dir
20908     break
20909   fi
20910 done
20911 fi
20912 rm -f conftest.err conftest.$ac_ext
20913 fi # $ac_x_includes = no
20914
20915 if test "$ac_x_libraries" = no; then
20916   # Check for the libraries.
20917   # See if we find them without any special options.
20918   # Don't add to $LIBS permanently.
20919   ac_save_LIBS=$LIBS
20920   LIBS="-lXt $LIBS"
20921   cat >conftest.$ac_ext <<_ACEOF
20922 #line $LINENO "configure"
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <X11/Intrinsic.h>
20929 int
20930 main ()
20931 {
20932 XtMalloc (0)
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20939   (eval $ac_link) 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } &&
20943          { ac_try='test -s conftest$ac_exeext'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; }; then
20949   LIBS=$ac_save_LIBS
20950 # We can link X programs with no special library path.
20951 ac_x_libraries=
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 LIBS=$ac_save_LIBS
20957 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20958 do
20959   # Don't even attempt the hair of trying to link an X program!
20960   for ac_extension in a so sl; do
20961     if test -r $ac_dir/libXt.$ac_extension; then
20962       ac_x_libraries=$ac_dir
20963       break 2
20964     fi
20965   done
20966 done
20967 fi
20968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20969 fi # $ac_x_libraries = no
20970
20971 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20972   # Didn't find X anywhere.  Cache the known absence of X.
20973   ac_cv_have_x="have_x=no"
20974 else
20975   # Record where we found X for the cache.
20976   ac_cv_have_x="have_x=yes \
20977                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20978 fi
20979 fi
20980
20981   fi
20982   eval "$ac_cv_have_x"
20983 fi # $with_x != no
20984
20985 if test "$have_x" != yes; then
20986   echo "$as_me:$LINENO: result: $have_x" >&5
20987 echo "${ECHO_T}$have_x" >&6
20988   no_x=yes
20989 else
20990   # If each of the values was on the command line, it overrides each guess.
20991   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20992   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20993   # Update the cache value to reflect the command line values.
20994   ac_cv_have_x="have_x=yes \
20995                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20996   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20997 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20998 fi
20999
21000 if test "$no_x" = yes; then
21001   # Not all programs may use this symbol, but it does not hurt to define it.
21002
21003 cat >>confdefs.h <<\_ACEOF
21004 #define X_DISPLAY_MISSING 1
21005 _ACEOF
21006
21007   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21008 else
21009   if test -n "$x_includes"; then
21010     X_CFLAGS="$X_CFLAGS -I$x_includes"
21011   fi
21012
21013   # It would also be nice to do this for all -L options, not just this one.
21014   if test -n "$x_libraries"; then
21015     X_LIBS="$X_LIBS -L$x_libraries"
21016     # For Solaris; some versions of Sun CC require a space after -R and
21017     # others require no space.  Words are not sufficient . . . .
21018     case `(uname -sr) 2>/dev/null` in
21019     "SunOS 5"*)
21020       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21021 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21022       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21023       cat >conftest.$ac_ext <<_ACEOF
21024 #line $LINENO "configure"
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030
21031 int
21032 main ()
21033 {
21034
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext conftest$ac_exeext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21041   (eval $ac_link) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); } &&
21045          { ac_try='test -s conftest$ac_exeext'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; }; then
21051   ac_R_nospace=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 ac_R_nospace=no
21057 fi
21058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21059       if test $ac_R_nospace = yes; then
21060         echo "$as_me:$LINENO: result: no" >&5
21061 echo "${ECHO_T}no" >&6
21062         X_LIBS="$X_LIBS -R$x_libraries"
21063       else
21064         LIBS="$ac_xsave_LIBS -R $x_libraries"
21065         cat >conftest.$ac_ext <<_ACEOF
21066 #line $LINENO "configure"
21067 /* confdefs.h.  */
21068 _ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h.  */
21072
21073 int
21074 main ()
21075 {
21076
21077   ;
21078   return 0;
21079 }
21080 _ACEOF
21081 rm -f conftest.$ac_objext conftest$ac_exeext
21082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21083   (eval $ac_link) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } &&
21087          { ac_try='test -s conftest$ac_exeext'
21088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089   (eval $ac_try) 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; }; then
21093   ac_R_space=yes
21094 else
21095   echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 ac_R_space=no
21099 fi
21100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21101         if test $ac_R_space = yes; then
21102           echo "$as_me:$LINENO: result: yes" >&5
21103 echo "${ECHO_T}yes" >&6
21104           X_LIBS="$X_LIBS -R $x_libraries"
21105         else
21106           echo "$as_me:$LINENO: result: neither works" >&5
21107 echo "${ECHO_T}neither works" >&6
21108         fi
21109       fi
21110       LIBS=$ac_xsave_LIBS
21111     esac
21112   fi
21113
21114   # Check for system-dependent libraries X programs must link with.
21115   # Do this before checking for the system-independent R6 libraries
21116   # (-lICE), since we may need -lsocket or whatever for X linking.
21117
21118   if test "$ISC" = yes; then
21119     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21120   else
21121     # Martyn Johnson says this is needed for Ultrix, if the X
21122     # libraries were built with DECnet support.  And Karl Berry says
21123     # the Alpha needs dnet_stub (dnet does not exist).
21124     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21125     cat >conftest.$ac_ext <<_ACEOF
21126 #line $LINENO "configure"
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132
21133 /* Override any gcc2 internal prototype to avoid an error.  */
21134 #ifdef __cplusplus
21135 extern "C"
21136 #endif
21137 /* We use char because int might match the return type of a gcc2
21138    builtin and then its argument prototype would still apply.  */
21139 char XOpenDisplay ();
21140 int
21141 main ()
21142 {
21143 XOpenDisplay ();
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 rm -f conftest.$ac_objext conftest$ac_exeext
21149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21150   (eval $ac_link) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); } &&
21154          { ac_try='test -s conftest$ac_exeext'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   :
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21166 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21167 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21168   echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170   ac_check_lib_save_LIBS=$LIBS
21171 LIBS="-ldnet  $LIBS"
21172 cat >conftest.$ac_ext <<_ACEOF
21173 #line $LINENO "configure"
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179
21180 /* Override any gcc2 internal prototype to avoid an error.  */
21181 #ifdef __cplusplus
21182 extern "C"
21183 #endif
21184 /* We use char because int might match the return type of a gcc2
21185    builtin and then its argument prototype would still apply.  */
21186 char dnet_ntoa ();
21187 int
21188 main ()
21189 {
21190 dnet_ntoa ();
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197   (eval $ac_link) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -s conftest$ac_exeext'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   ac_cv_lib_dnet_dnet_ntoa=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_lib_dnet_dnet_ntoa=no
21213 fi
21214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21215 LIBS=$ac_check_lib_save_LIBS
21216 fi
21217 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21218 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21219 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21220   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21221 fi
21222
21223     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21224       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21225 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21226 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21227   echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229   ac_check_lib_save_LIBS=$LIBS
21230 LIBS="-ldnet_stub  $LIBS"
21231 cat >conftest.$ac_ext <<_ACEOF
21232 #line $LINENO "configure"
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238
21239 /* Override any gcc2 internal prototype to avoid an error.  */
21240 #ifdef __cplusplus
21241 extern "C"
21242 #endif
21243 /* We use char because int might match the return type of a gcc2
21244    builtin and then its argument prototype would still apply.  */
21245 char dnet_ntoa ();
21246 int
21247 main ()
21248 {
21249 dnet_ntoa ();
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext conftest$ac_exeext
21255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21256   (eval $ac_link) 2>&5
21257   ac_status=$?
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); } &&
21260          { ac_try='test -s conftest$ac_exeext'
21261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262   (eval $ac_try) 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; }; then
21266   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21267 else
21268   echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21270
21271 ac_cv_lib_dnet_stub_dnet_ntoa=no
21272 fi
21273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21274 LIBS=$ac_check_lib_save_LIBS
21275 fi
21276 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21277 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21278 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21279   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21280 fi
21281
21282     fi
21283 fi
21284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21285     LIBS="$ac_xsave_LIBS"
21286
21287     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21288     # to get the SysV transport functions.
21289     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21290     # needs -lnsl.
21291     # The nsl library prevents programs from opening the X display
21292     # on Irix 5.2, according to T.E. Dickey.
21293     # The functions gethostbyname, getservbyname, and inet_addr are
21294     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21295     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21296 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21297 if test "${ac_cv_func_gethostbyname+set}" = set; then
21298   echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300   cat >conftest.$ac_ext <<_ACEOF
21301 #line $LINENO "configure"
21302 /* confdefs.h.  */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h.  */
21307 /* System header to define __stub macros and hopefully few prototypes,
21308     which can conflict with char gethostbyname (); below.
21309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21310     <limits.h> exists even on freestanding compilers.  */
21311 #ifdef __STDC__
21312 # include <limits.h>
21313 #else
21314 # include <assert.h>
21315 #endif
21316 /* Override any gcc2 internal prototype to avoid an error.  */
21317 #ifdef __cplusplus
21318 extern "C"
21319 {
21320 #endif
21321 /* We use char because int might match the return type of a gcc2
21322    builtin and then its argument prototype would still apply.  */
21323 char gethostbyname ();
21324 /* The GNU C library defines this for functions which it implements
21325     to always fail with ENOSYS.  Some functions are actually named
21326     something starting with __ and the normal name is an alias.  */
21327 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21328 choke me
21329 #else
21330 char (*f) () = gethostbyname;
21331 #endif
21332 #ifdef __cplusplus
21333 }
21334 #endif
21335
21336 int
21337 main ()
21338 {
21339 return f != gethostbyname;
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346   (eval $ac_link) 2>&5
21347   ac_status=$?
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); } &&
21350          { ac_try='test -s conftest$ac_exeext'
21351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352   (eval $ac_try) 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); }; }; then
21356   ac_cv_func_gethostbyname=yes
21357 else
21358   echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21360
21361 ac_cv_func_gethostbyname=no
21362 fi
21363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21364 fi
21365 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21366 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21367
21368     if test $ac_cv_func_gethostbyname = no; then
21369       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21370 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21371 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   ac_check_lib_save_LIBS=$LIBS
21375 LIBS="-lnsl  $LIBS"
21376 cat >conftest.$ac_ext <<_ACEOF
21377 #line $LINENO "configure"
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383
21384 /* Override any gcc2 internal prototype to avoid an error.  */
21385 #ifdef __cplusplus
21386 extern "C"
21387 #endif
21388 /* We use char because int might match the return type of a gcc2
21389    builtin and then its argument prototype would still apply.  */
21390 char gethostbyname ();
21391 int
21392 main ()
21393 {
21394 gethostbyname ();
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401   (eval $ac_link) 2>&5
21402   ac_status=$?
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); } &&
21405          { ac_try='test -s conftest$ac_exeext'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; }; then
21411   ac_cv_lib_nsl_gethostbyname=yes
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416 ac_cv_lib_nsl_gethostbyname=no
21417 fi
21418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21419 LIBS=$ac_check_lib_save_LIBS
21420 fi
21421 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21422 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21423 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21424   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21425 fi
21426
21427       if test $ac_cv_lib_nsl_gethostbyname = no; then
21428         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21429 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21430 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21431   echo $ECHO_N "(cached) $ECHO_C" >&6
21432 else
21433   ac_check_lib_save_LIBS=$LIBS
21434 LIBS="-lbsd  $LIBS"
21435 cat >conftest.$ac_ext <<_ACEOF
21436 #line $LINENO "configure"
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442
21443 /* Override any gcc2 internal prototype to avoid an error.  */
21444 #ifdef __cplusplus
21445 extern "C"
21446 #endif
21447 /* We use char because int might match the return type of a gcc2
21448    builtin and then its argument prototype would still apply.  */
21449 char gethostbyname ();
21450 int
21451 main ()
21452 {
21453 gethostbyname ();
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext conftest$ac_exeext
21459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460   (eval $ac_link) 2>&5
21461   ac_status=$?
21462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463   (exit $ac_status); } &&
21464          { ac_try='test -s conftest$ac_exeext'
21465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466   (eval $ac_try) 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); }; }; then
21470   ac_cv_lib_bsd_gethostbyname=yes
21471 else
21472   echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475 ac_cv_lib_bsd_gethostbyname=no
21476 fi
21477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21479 fi
21480 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21481 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21482 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21483   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21484 fi
21485
21486       fi
21487     fi
21488
21489     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21490     # socket/setsockopt and other routines are undefined under SCO ODT
21491     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21492     # on later versions), says Simon Leinen: it contains gethostby*
21493     # variants that don't use the name server (or something).  -lsocket
21494     # must be given before -lnsl if both are needed.  We assume that
21495     # if connect needs -lnsl, so does gethostbyname.
21496     echo "$as_me:$LINENO: checking for connect" >&5
21497 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21498 if test "${ac_cv_func_connect+set}" = set; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501   cat >conftest.$ac_ext <<_ACEOF
21502 #line $LINENO "configure"
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 /* System header to define __stub macros and hopefully few prototypes,
21509     which can conflict with char connect (); below.
21510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21511     <limits.h> exists even on freestanding compilers.  */
21512 #ifdef __STDC__
21513 # include <limits.h>
21514 #else
21515 # include <assert.h>
21516 #endif
21517 /* Override any gcc2 internal prototype to avoid an error.  */
21518 #ifdef __cplusplus
21519 extern "C"
21520 {
21521 #endif
21522 /* We use char because int might match the return type of a gcc2
21523    builtin and then its argument prototype would still apply.  */
21524 char connect ();
21525 /* The GNU C library defines this for functions which it implements
21526     to always fail with ENOSYS.  Some functions are actually named
21527     something starting with __ and the normal name is an alias.  */
21528 #if defined (__stub_connect) || defined (__stub___connect)
21529 choke me
21530 #else
21531 char (*f) () = connect;
21532 #endif
21533 #ifdef __cplusplus
21534 }
21535 #endif
21536
21537 int
21538 main ()
21539 {
21540 return f != connect;
21541   ;
21542   return 0;
21543 }
21544 _ACEOF
21545 rm -f conftest.$ac_objext conftest$ac_exeext
21546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21547   (eval $ac_link) 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); } &&
21551          { ac_try='test -s conftest$ac_exeext'
21552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553   (eval $ac_try) 2>&5
21554   ac_status=$?
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); }; }; then
21557   ac_cv_func_connect=yes
21558 else
21559   echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 ac_cv_func_connect=no
21563 fi
21564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21565 fi
21566 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21567 echo "${ECHO_T}$ac_cv_func_connect" >&6
21568
21569     if test $ac_cv_func_connect = no; then
21570       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21571 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21572 if test "${ac_cv_lib_socket_connect+set}" = set; then
21573   echo $ECHO_N "(cached) $ECHO_C" >&6
21574 else
21575   ac_check_lib_save_LIBS=$LIBS
21576 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21577 cat >conftest.$ac_ext <<_ACEOF
21578 #line $LINENO "configure"
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584
21585 /* Override any gcc2 internal prototype to avoid an error.  */
21586 #ifdef __cplusplus
21587 extern "C"
21588 #endif
21589 /* We use char because int might match the return type of a gcc2
21590    builtin and then its argument prototype would still apply.  */
21591 char connect ();
21592 int
21593 main ()
21594 {
21595 connect ();
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21602   (eval $ac_link) 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } &&
21606          { ac_try='test -s conftest$ac_exeext'
21607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608   (eval $ac_try) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ac_cv_lib_socket_connect=yes
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 ac_cv_lib_socket_connect=no
21618 fi
21619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21620 LIBS=$ac_check_lib_save_LIBS
21621 fi
21622 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21623 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21624 if test $ac_cv_lib_socket_connect = yes; then
21625   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21626 fi
21627
21628     fi
21629
21630     # Guillermo Gomez says -lposix is necessary on A/UX.
21631     echo "$as_me:$LINENO: checking for remove" >&5
21632 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21633 if test "${ac_cv_func_remove+set}" = set; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   cat >conftest.$ac_ext <<_ACEOF
21637 #line $LINENO "configure"
21638 /* confdefs.h.  */
21639 _ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h.  */
21643 /* System header to define __stub macros and hopefully few prototypes,
21644     which can conflict with char remove (); below.
21645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21646     <limits.h> exists even on freestanding compilers.  */
21647 #ifdef __STDC__
21648 # include <limits.h>
21649 #else
21650 # include <assert.h>
21651 #endif
21652 /* Override any gcc2 internal prototype to avoid an error.  */
21653 #ifdef __cplusplus
21654 extern "C"
21655 {
21656 #endif
21657 /* We use char because int might match the return type of a gcc2
21658    builtin and then its argument prototype would still apply.  */
21659 char remove ();
21660 /* The GNU C library defines this for functions which it implements
21661     to always fail with ENOSYS.  Some functions are actually named
21662     something starting with __ and the normal name is an alias.  */
21663 #if defined (__stub_remove) || defined (__stub___remove)
21664 choke me
21665 #else
21666 char (*f) () = remove;
21667 #endif
21668 #ifdef __cplusplus
21669 }
21670 #endif
21671
21672 int
21673 main ()
21674 {
21675 return f != remove;
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682   (eval $ac_link) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } &&
21686          { ac_try='test -s conftest$ac_exeext'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; }; then
21692   ac_cv_func_remove=yes
21693 else
21694   echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 ac_cv_func_remove=no
21698 fi
21699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21700 fi
21701 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21702 echo "${ECHO_T}$ac_cv_func_remove" >&6
21703
21704     if test $ac_cv_func_remove = no; then
21705       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21706 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21707 if test "${ac_cv_lib_posix_remove+set}" = set; then
21708   echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710   ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lposix  $LIBS"
21712 cat >conftest.$ac_ext <<_ACEOF
21713 #line $LINENO "configure"
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719
21720 /* Override any gcc2 internal prototype to avoid an error.  */
21721 #ifdef __cplusplus
21722 extern "C"
21723 #endif
21724 /* We use char because int might match the return type of a gcc2
21725    builtin and then its argument prototype would still apply.  */
21726 char remove ();
21727 int
21728 main ()
21729 {
21730 remove ();
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737   (eval $ac_link) 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } &&
21741          { ac_try='test -s conftest$ac_exeext'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; }; then
21747   ac_cv_lib_posix_remove=yes
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752 ac_cv_lib_posix_remove=no
21753 fi
21754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21755 LIBS=$ac_check_lib_save_LIBS
21756 fi
21757 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21758 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21759 if test $ac_cv_lib_posix_remove = yes; then
21760   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21761 fi
21762
21763     fi
21764
21765     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21766     echo "$as_me:$LINENO: checking for shmat" >&5
21767 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21768 if test "${ac_cv_func_shmat+set}" = set; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   cat >conftest.$ac_ext <<_ACEOF
21772 #line $LINENO "configure"
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 /* System header to define __stub macros and hopefully few prototypes,
21779     which can conflict with char shmat (); below.
21780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21781     <limits.h> exists even on freestanding compilers.  */
21782 #ifdef __STDC__
21783 # include <limits.h>
21784 #else
21785 # include <assert.h>
21786 #endif
21787 /* Override any gcc2 internal prototype to avoid an error.  */
21788 #ifdef __cplusplus
21789 extern "C"
21790 {
21791 #endif
21792 /* We use char because int might match the return type of a gcc2
21793    builtin and then its argument prototype would still apply.  */
21794 char shmat ();
21795 /* The GNU C library defines this for functions which it implements
21796     to always fail with ENOSYS.  Some functions are actually named
21797     something starting with __ and the normal name is an alias.  */
21798 #if defined (__stub_shmat) || defined (__stub___shmat)
21799 choke me
21800 #else
21801 char (*f) () = shmat;
21802 #endif
21803 #ifdef __cplusplus
21804 }
21805 #endif
21806
21807 int
21808 main ()
21809 {
21810 return f != shmat;
21811   ;
21812   return 0;
21813 }
21814 _ACEOF
21815 rm -f conftest.$ac_objext conftest$ac_exeext
21816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21817   (eval $ac_link) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } &&
21821          { ac_try='test -s conftest$ac_exeext'
21822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823   (eval $ac_try) 2>&5
21824   ac_status=$?
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); }; }; then
21827   ac_cv_func_shmat=yes
21828 else
21829   echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832 ac_cv_func_shmat=no
21833 fi
21834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21835 fi
21836 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21837 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21838
21839     if test $ac_cv_func_shmat = no; then
21840       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21841 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21842 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   ac_check_lib_save_LIBS=$LIBS
21846 LIBS="-lipc  $LIBS"
21847 cat >conftest.$ac_ext <<_ACEOF
21848 #line $LINENO "configure"
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854
21855 /* Override any gcc2 internal prototype to avoid an error.  */
21856 #ifdef __cplusplus
21857 extern "C"
21858 #endif
21859 /* We use char because int might match the return type of a gcc2
21860    builtin and then its argument prototype would still apply.  */
21861 char shmat ();
21862 int
21863 main ()
21864 {
21865 shmat ();
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872   (eval $ac_link) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } &&
21876          { ac_try='test -s conftest$ac_exeext'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882   ac_cv_lib_ipc_shmat=yes
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ac_cv_lib_ipc_shmat=no
21888 fi
21889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21891 fi
21892 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21893 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21894 if test $ac_cv_lib_ipc_shmat = yes; then
21895   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21896 fi
21897
21898     fi
21899   fi
21900
21901   # Check for libraries that X11R6 Xt/Xaw programs need.
21902   ac_save_LDFLAGS=$LDFLAGS
21903   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21904   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21905   # check for ICE first), but we must link in the order -lSM -lICE or
21906   # we get undefined symbols.  So assume we have SM if we have ICE.
21907   # These have to be linked with before -lX11, unlike the other
21908   # libraries we check for below, so use a different variable.
21909   # John Interrante, Karl Berry
21910   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21911 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21912 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915   ac_check_lib_save_LIBS=$LIBS
21916 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21917 cat >conftest.$ac_ext <<_ACEOF
21918 #line $LINENO "configure"
21919 /* confdefs.h.  */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h.  */
21924
21925 /* Override any gcc2 internal prototype to avoid an error.  */
21926 #ifdef __cplusplus
21927 extern "C"
21928 #endif
21929 /* We use char because int might match the return type of a gcc2
21930    builtin and then its argument prototype would still apply.  */
21931 char IceConnectionNumber ();
21932 int
21933 main ()
21934 {
21935 IceConnectionNumber ();
21936   ;
21937   return 0;
21938 }
21939 _ACEOF
21940 rm -f conftest.$ac_objext conftest$ac_exeext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21942   (eval $ac_link) 2>&5
21943   ac_status=$?
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); } &&
21946          { ac_try='test -s conftest$ac_exeext'
21947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948   (eval $ac_try) 2>&5
21949   ac_status=$?
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); }; }; then
21952   ac_cv_lib_ICE_IceConnectionNumber=yes
21953 else
21954   echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957 ac_cv_lib_ICE_IceConnectionNumber=no
21958 fi
21959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21960 LIBS=$ac_check_lib_save_LIBS
21961 fi
21962 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21963 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21964 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21965   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21966 fi
21967
21968   LDFLAGS=$ac_save_LDFLAGS
21969
21970 fi
21971
21972
21973         if test "$no_x" = "yes"; then
21974           { { echo "$as_me:$LINENO: error: X11 not found" >&5
21975 echo "$as_me: error: X11 not found" >&2;}
21976    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21977         fi
21978
21979         GUI_TK_LIBRARY="$X_LIBS"
21980         TOOLKIT_INCLUDE="$X_CFLAGS"
21981         AFMINSTALL=afminstall
21982         COMPILED_X_PROGRAM=0
21983
21984         if test "$wxUSE_NANOX" = "yes"; then
21985             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
21986 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21987             if test "x$MICROWIN" = x ; then
21988                 echo "$as_me:$LINENO: result: not found" >&5
21989 echo "${ECHO_T}not found" >&6
21990                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
21991 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
21992    { (exit 1); exit 1; }; }
21993             else
21994                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
21995 echo "${ECHO_T}$MICROWIN" >&6
21996                 cat >>confdefs.h <<\_ACEOF
21997 #define wxUSE_NANOX 1
21998 _ACEOF
21999
22000             fi
22001         fi
22002
22003         xpm_link=
22004         echo "$as_me:$LINENO: checking for Xpm library" >&5
22005 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22006
22007 ac_find_libraries=
22008 for ac_dir in $SEARCH_LIB /usr/lib;
22009   do
22010     for ac_extension in a so sl dylib; do
22011       if test -f "$ac_dir/libXpm.$ac_extension"; then
22012         ac_find_libraries=$ac_dir
22013         break 2
22014       fi
22015     done
22016   done
22017
22018         if test "$ac_find_libraries" != "" ; then
22019
22020   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22021   result=$?
22022   if test $result = 0; then
22023     ac_path_to_link=""
22024   else
22025     ac_path_to_link=" -L$ac_find_libraries"
22026   fi
22027
22028             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22029             xpm_link=" -lXpm"
22030             cat >>confdefs.h <<\_ACEOF
22031 #define wxHAVE_LIB_XPM 1
22032 _ACEOF
22033
22034             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22035 echo "${ECHO_T}found at $ac_find_libraries" >&6
22036         else
22037             cat >conftest.$ac_ext <<_ACEOF
22038 #line $LINENO "configure"
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044
22045                     #include <X11/xpm.h>
22046
22047 int
22048 main ()
22049 {
22050
22051                     int version;
22052                     version = XpmLibraryVersion();
22053
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060   (eval $ac_compile) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); } &&
22064          { ac_try='test -s conftest.$ac_objext'
22065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066   (eval $ac_try) 2>&5
22067   ac_status=$?
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); }; }; then
22070
22071                     xpm_link=" -lXpm"
22072                     cat >>confdefs.h <<\_ACEOF
22073 #define wxHAVE_LIB_XPM 1
22074 _ACEOF
22075
22076                     echo "$as_me:$LINENO: result: found in default search path" >&5
22077 echo "${ECHO_T}found in default search path" >&6
22078                     COMPILED_X_PROGRAM=0
22079
22080 else
22081   echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084
22085                     echo "$as_me:$LINENO: result: no" >&5
22086 echo "${ECHO_T}no" >&6
22087                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22088 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22089
22090
22091 fi
22092 rm -f conftest.$ac_objext conftest.$ac_ext
22093         fi
22094
22095         echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22096 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22097 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22098   echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100   ac_check_lib_save_LIBS=$LIBS
22101 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
22102 cat >conftest.$ac_ext <<_ACEOF
22103 #line $LINENO "configure"
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109
22110 /* Override any gcc2 internal prototype to avoid an error.  */
22111 #ifdef __cplusplus
22112 extern "C"
22113 #endif
22114 /* We use char because int might match the return type of a gcc2
22115    builtin and then its argument prototype would still apply.  */
22116 char XShapeQueryExtension ();
22117 int
22118 main ()
22119 {
22120 XShapeQueryExtension ();
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22127   (eval $ac_link) 2>&5
22128   ac_status=$?
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } &&
22131          { ac_try='test -s conftest$ac_exeext'
22132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133   (eval $ac_try) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); }; }; then
22137   ac_cv_lib_Xext_XShapeQueryExtension=yes
22138 else
22139   echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142 ac_cv_lib_Xext_XShapeQueryExtension=no
22143 fi
22144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22145 LIBS=$ac_check_lib_save_LIBS
22146 fi
22147 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22148 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22149 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
22150
22151                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22152                       wxHAVE_XEXT_LIB=1
22153
22154 fi
22155
22156
22157         if test "$wxUSE_UNICODE" = "yes"; then
22158
22159   succeeded=no
22160
22161   if test -z "$PKG_CONFIG"; then
22162     # Extract the first word of "pkg-config", so it can be a program name with args.
22163 set dummy pkg-config; ac_word=$2
22164 echo "$as_me:$LINENO: checking for $ac_word" >&5
22165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22166 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169   case $PKG_CONFIG in
22170   [\\/]* | ?:[\\/]*)
22171   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22172   ;;
22173   *)
22174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22175 for as_dir in $PATH
22176 do
22177   IFS=$as_save_IFS
22178   test -z "$as_dir" && as_dir=.
22179   for ac_exec_ext in '' $ac_executable_extensions; do
22180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22181     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22183     break 2
22184   fi
22185 done
22186 done
22187
22188   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22189   ;;
22190 esac
22191 fi
22192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22193
22194 if test -n "$PKG_CONFIG"; then
22195   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22196 echo "${ECHO_T}$PKG_CONFIG" >&6
22197 else
22198   echo "$as_me:$LINENO: result: no" >&5
22199 echo "${ECHO_T}no" >&6
22200 fi
22201
22202   fi
22203
22204   if test "$PKG_CONFIG" = "no" ; then
22205      echo "*** The pkg-config script could not be found. Make sure it is"
22206      echo "*** in your path, or set the PKG_CONFIG environment variable"
22207      echo "*** to the full path to pkg-config."
22208      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22209   else
22210      PKG_CONFIG_MIN_VERSION=0.9.0
22211      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22212         echo "$as_me:$LINENO: checking for pangox" >&5
22213 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
22214
22215         if $PKG_CONFIG --exists "pangox" ; then
22216             echo "$as_me:$LINENO: result: yes" >&5
22217 echo "${ECHO_T}yes" >&6
22218             succeeded=yes
22219
22220             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22221 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
22222             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
22223             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22224 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
22225
22226             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22227 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
22228             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
22229             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22230 echo "${ECHO_T}$PANGOX_LIBS" >&6
22231         else
22232             PANGOX_CFLAGS=""
22233             PANGOX_LIBS=""
22234             ## If we have a custom action on failure, don't print errors, but
22235             ## do set a variable so people can do so.
22236             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
22237
22238         fi
22239
22240
22241
22242      else
22243         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22244         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22245      fi
22246   fi
22247
22248   if test $succeeded = yes; then
22249
22250                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22251                         LIBS="$LIBS $PANGOX_LIBS"
22252
22253   else
22254
22255                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22256 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22257    { (exit 1); exit 1; }; }
22258
22259
22260   fi
22261
22262
22263   succeeded=no
22264
22265   if test -z "$PKG_CONFIG"; then
22266     # Extract the first word of "pkg-config", so it can be a program name with args.
22267 set dummy pkg-config; ac_word=$2
22268 echo "$as_me:$LINENO: checking for $ac_word" >&5
22269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22270 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22271   echo $ECHO_N "(cached) $ECHO_C" >&6
22272 else
22273   case $PKG_CONFIG in
22274   [\\/]* | ?:[\\/]*)
22275   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22276   ;;
22277   *)
22278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22279 for as_dir in $PATH
22280 do
22281   IFS=$as_save_IFS
22282   test -z "$as_dir" && as_dir=.
22283   for ac_exec_ext in '' $ac_executable_extensions; do
22284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22285     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22287     break 2
22288   fi
22289 done
22290 done
22291
22292   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22293   ;;
22294 esac
22295 fi
22296 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22297
22298 if test -n "$PKG_CONFIG"; then
22299   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22300 echo "${ECHO_T}$PKG_CONFIG" >&6
22301 else
22302   echo "$as_me:$LINENO: result: no" >&5
22303 echo "${ECHO_T}no" >&6
22304 fi
22305
22306   fi
22307
22308   if test "$PKG_CONFIG" = "no" ; then
22309      echo "*** The pkg-config script could not be found. Make sure it is"
22310      echo "*** in your path, or set the PKG_CONFIG environment variable"
22311      echo "*** to the full path to pkg-config."
22312      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22313   else
22314      PKG_CONFIG_MIN_VERSION=0.9.0
22315      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22316         echo "$as_me:$LINENO: checking for pangoft2" >&5
22317 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22318
22319         if $PKG_CONFIG --exists "pangoft2" ; then
22320             echo "$as_me:$LINENO: result: yes" >&5
22321 echo "${ECHO_T}yes" >&6
22322             succeeded=yes
22323
22324             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22325 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22326             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22327             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22328 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22329
22330             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22331 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22332             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22333             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22334 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22335         else
22336             PANGOFT2_CFLAGS=""
22337             PANGOFT2_LIBS=""
22338             ## If we have a custom action on failure, don't print errors, but
22339             ## do set a variable so people can do so.
22340             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22341
22342         fi
22343
22344
22345
22346      else
22347         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22348         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22349      fi
22350   fi
22351
22352   if test $succeeded = yes; then
22353
22354                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22355                         LIBS="$LIBS $PANGOFT2_LIBS"
22356
22357   else
22358
22359                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22360 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22361                         wxUSE_PRINTING_ARCHITECTURE="no"
22362
22363
22364   fi
22365
22366
22367   succeeded=no
22368
22369   if test -z "$PKG_CONFIG"; then
22370     # Extract the first word of "pkg-config", so it can be a program name with args.
22371 set dummy pkg-config; ac_word=$2
22372 echo "$as_me:$LINENO: checking for $ac_word" >&5
22373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22374 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   case $PKG_CONFIG in
22378   [\\/]* | ?:[\\/]*)
22379   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22380   ;;
22381   *)
22382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22383 for as_dir in $PATH
22384 do
22385   IFS=$as_save_IFS
22386   test -z "$as_dir" && as_dir=.
22387   for ac_exec_ext in '' $ac_executable_extensions; do
22388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22389     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22391     break 2
22392   fi
22393 done
22394 done
22395
22396   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22397   ;;
22398 esac
22399 fi
22400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22401
22402 if test -n "$PKG_CONFIG"; then
22403   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22404 echo "${ECHO_T}$PKG_CONFIG" >&6
22405 else
22406   echo "$as_me:$LINENO: result: no" >&5
22407 echo "${ECHO_T}no" >&6
22408 fi
22409
22410   fi
22411
22412   if test "$PKG_CONFIG" = "no" ; then
22413      echo "*** The pkg-config script could not be found. Make sure it is"
22414      echo "*** in your path, or set the PKG_CONFIG environment variable"
22415      echo "*** to the full path to pkg-config."
22416      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22417   else
22418      PKG_CONFIG_MIN_VERSION=0.9.0
22419      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22420         echo "$as_me:$LINENO: checking for pangoxft" >&5
22421 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
22422
22423         if $PKG_CONFIG --exists "pangoxft" ; then
22424             echo "$as_me:$LINENO: result: yes" >&5
22425 echo "${ECHO_T}yes" >&6
22426             succeeded=yes
22427
22428             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22429 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
22430             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
22431             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22432 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
22433
22434             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22435 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
22436             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
22437             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22438 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
22439         else
22440             PANGOXFT_CFLAGS=""
22441             PANGOXFT_LIBS=""
22442             ## If we have a custom action on failure, don't print errors, but
22443             ## do set a variable so people can do so.
22444             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
22445
22446         fi
22447
22448
22449
22450      else
22451         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22452         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22453      fi
22454   fi
22455
22456   if test $succeeded = yes; then
22457
22458                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22459                         LIBS="$LIBS $PANGOXFT_LIBS"
22460
22461   else
22462
22463                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22464 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22465
22466
22467   fi
22468
22469         fi
22470
22471         wxUSE_UNIVERSAL="yes"
22472
22473         if test "$wxUSE_NANOX" = "yes"; then
22474             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
22475             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"
22476             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22477         else
22478             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22479         fi
22480
22481         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22482         TOOLKIT=X11
22483         GUIDIST=X11_DIST
22484     fi
22485
22486     if test "$wxUSE_MOTIF" = 1; then
22487                         if test "$no_x" = yes; then
22488   # Not all programs may use this symbol, but it does not hurt to define it.
22489
22490 cat >>confdefs.h <<\_ACEOF
22491 #define X_DISPLAY_MISSING 1
22492 _ACEOF
22493
22494   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22495 else
22496   if test -n "$x_includes"; then
22497     X_CFLAGS="$X_CFLAGS -I$x_includes"
22498   fi
22499
22500   # It would also be nice to do this for all -L options, not just this one.
22501   if test -n "$x_libraries"; then
22502     X_LIBS="$X_LIBS -L$x_libraries"
22503     # For Solaris; some versions of Sun CC require a space after -R and
22504     # others require no space.  Words are not sufficient . . . .
22505     case `(uname -sr) 2>/dev/null` in
22506     "SunOS 5"*)
22507       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22508 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22509       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22510       cat >conftest.$ac_ext <<_ACEOF
22511 #line $LINENO "configure"
22512 /* confdefs.h.  */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h.  */
22517
22518 int
22519 main ()
22520 {
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext conftest$ac_exeext
22527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22528   (eval $ac_link) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -s conftest$ac_exeext'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; }; then
22538   ac_R_nospace=yes
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_R_nospace=no
22544 fi
22545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22546       if test $ac_R_nospace = yes; then
22547         echo "$as_me:$LINENO: result: no" >&5
22548 echo "${ECHO_T}no" >&6
22549         X_LIBS="$X_LIBS -R$x_libraries"
22550       else
22551         LIBS="$ac_xsave_LIBS -R $x_libraries"
22552         cat >conftest.$ac_ext <<_ACEOF
22553 #line $LINENO "configure"
22554 /* confdefs.h.  */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h.  */
22559
22560 int
22561 main ()
22562 {
22563
22564   ;
22565   return 0;
22566 }
22567 _ACEOF
22568 rm -f conftest.$ac_objext conftest$ac_exeext
22569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22570   (eval $ac_link) 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } &&
22574          { ac_try='test -s conftest$ac_exeext'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; }; then
22580   ac_R_space=yes
22581 else
22582   echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 ac_R_space=no
22586 fi
22587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22588         if test $ac_R_space = yes; then
22589           echo "$as_me:$LINENO: result: yes" >&5
22590 echo "${ECHO_T}yes" >&6
22591           X_LIBS="$X_LIBS -R $x_libraries"
22592         else
22593           echo "$as_me:$LINENO: result: neither works" >&5
22594 echo "${ECHO_T}neither works" >&6
22595         fi
22596       fi
22597       LIBS=$ac_xsave_LIBS
22598     esac
22599   fi
22600
22601   # Check for system-dependent libraries X programs must link with.
22602   # Do this before checking for the system-independent R6 libraries
22603   # (-lICE), since we may need -lsocket or whatever for X linking.
22604
22605   if test "$ISC" = yes; then
22606     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22607   else
22608     # Martyn Johnson says this is needed for Ultrix, if the X
22609     # libraries were built with DECnet support.  And Karl Berry says
22610     # the Alpha needs dnet_stub (dnet does not exist).
22611     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22612     cat >conftest.$ac_ext <<_ACEOF
22613 #line $LINENO "configure"
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619
22620 /* Override any gcc2 internal prototype to avoid an error.  */
22621 #ifdef __cplusplus
22622 extern "C"
22623 #endif
22624 /* We use char because int might match the return type of a gcc2
22625    builtin and then its argument prototype would still apply.  */
22626 char XOpenDisplay ();
22627 int
22628 main ()
22629 {
22630 XOpenDisplay ();
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 rm -f conftest.$ac_objext conftest$ac_exeext
22636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22637   (eval $ac_link) 2>&5
22638   ac_status=$?
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); } &&
22641          { ac_try='test -s conftest$ac_exeext'
22642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643   (eval $ac_try) 2>&5
22644   ac_status=$?
22645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646   (exit $ac_status); }; }; then
22647   :
22648 else
22649   echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22651
22652 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22653 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22654 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   ac_check_lib_save_LIBS=$LIBS
22658 LIBS="-ldnet  $LIBS"
22659 cat >conftest.$ac_ext <<_ACEOF
22660 #line $LINENO "configure"
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666
22667 /* Override any gcc2 internal prototype to avoid an error.  */
22668 #ifdef __cplusplus
22669 extern "C"
22670 #endif
22671 /* We use char because int might match the return type of a gcc2
22672    builtin and then its argument prototype would still apply.  */
22673 char dnet_ntoa ();
22674 int
22675 main ()
22676 {
22677 dnet_ntoa ();
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22684   (eval $ac_link) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); } &&
22688          { ac_try='test -s conftest$ac_exeext'
22689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690   (eval $ac_try) 2>&5
22691   ac_status=$?
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); }; }; then
22694   ac_cv_lib_dnet_dnet_ntoa=yes
22695 else
22696   echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 ac_cv_lib_dnet_dnet_ntoa=no
22700 fi
22701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22702 LIBS=$ac_check_lib_save_LIBS
22703 fi
22704 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22705 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22706 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22707   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22708 fi
22709
22710     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22711       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22712 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22713 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716   ac_check_lib_save_LIBS=$LIBS
22717 LIBS="-ldnet_stub  $LIBS"
22718 cat >conftest.$ac_ext <<_ACEOF
22719 #line $LINENO "configure"
22720 /* confdefs.h.  */
22721 _ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h.  */
22725
22726 /* Override any gcc2 internal prototype to avoid an error.  */
22727 #ifdef __cplusplus
22728 extern "C"
22729 #endif
22730 /* We use char because int might match the return type of a gcc2
22731    builtin and then its argument prototype would still apply.  */
22732 char dnet_ntoa ();
22733 int
22734 main ()
22735 {
22736 dnet_ntoa ();
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext conftest$ac_exeext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22743   (eval $ac_link) 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } &&
22747          { ac_try='test -s conftest$ac_exeext'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; }; then
22753   ac_cv_lib_dnet_stub_dnet_ntoa=yes
22754 else
22755   echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22757
22758 ac_cv_lib_dnet_stub_dnet_ntoa=no
22759 fi
22760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22761 LIBS=$ac_check_lib_save_LIBS
22762 fi
22763 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22764 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22765 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22766   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22767 fi
22768
22769     fi
22770 fi
22771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22772     LIBS="$ac_xsave_LIBS"
22773
22774     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22775     # to get the SysV transport functions.
22776     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22777     # needs -lnsl.
22778     # The nsl library prevents programs from opening the X display
22779     # on Irix 5.2, according to T.E. Dickey.
22780     # The functions gethostbyname, getservbyname, and inet_addr are
22781     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22782     echo "$as_me:$LINENO: checking for gethostbyname" >&5
22783 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22784 if test "${ac_cv_func_gethostbyname+set}" = set; then
22785   echo $ECHO_N "(cached) $ECHO_C" >&6
22786 else
22787   cat >conftest.$ac_ext <<_ACEOF
22788 #line $LINENO "configure"
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 /* System header to define __stub macros and hopefully few prototypes,
22795     which can conflict with char gethostbyname (); below.
22796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22797     <limits.h> exists even on freestanding compilers.  */
22798 #ifdef __STDC__
22799 # include <limits.h>
22800 #else
22801 # include <assert.h>
22802 #endif
22803 /* Override any gcc2 internal prototype to avoid an error.  */
22804 #ifdef __cplusplus
22805 extern "C"
22806 {
22807 #endif
22808 /* We use char because int might match the return type of a gcc2
22809    builtin and then its argument prototype would still apply.  */
22810 char gethostbyname ();
22811 /* The GNU C library defines this for functions which it implements
22812     to always fail with ENOSYS.  Some functions are actually named
22813     something starting with __ and the normal name is an alias.  */
22814 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22815 choke me
22816 #else
22817 char (*f) () = gethostbyname;
22818 #endif
22819 #ifdef __cplusplus
22820 }
22821 #endif
22822
22823 int
22824 main ()
22825 {
22826 return f != gethostbyname;
22827   ;
22828   return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833   (eval $ac_link) 2>&5
22834   ac_status=$?
22835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836   (exit $ac_status); } &&
22837          { ac_try='test -s conftest$ac_exeext'
22838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); }; }; then
22843   ac_cv_func_gethostbyname=yes
22844 else
22845   echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848 ac_cv_func_gethostbyname=no
22849 fi
22850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22851 fi
22852 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22853 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22854
22855     if test $ac_cv_func_gethostbyname = no; then
22856       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22857 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22858 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22859   echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861   ac_check_lib_save_LIBS=$LIBS
22862 LIBS="-lnsl  $LIBS"
22863 cat >conftest.$ac_ext <<_ACEOF
22864 #line $LINENO "configure"
22865 /* confdefs.h.  */
22866 _ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h.  */
22870
22871 /* Override any gcc2 internal prototype to avoid an error.  */
22872 #ifdef __cplusplus
22873 extern "C"
22874 #endif
22875 /* We use char because int might match the return type of a gcc2
22876    builtin and then its argument prototype would still apply.  */
22877 char gethostbyname ();
22878 int
22879 main ()
22880 {
22881 gethostbyname ();
22882   ;
22883   return 0;
22884 }
22885 _ACEOF
22886 rm -f conftest.$ac_objext conftest$ac_exeext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22888   (eval $ac_link) 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } &&
22892          { ac_try='test -s conftest$ac_exeext'
22893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894   (eval $ac_try) 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; }; then
22898   ac_cv_lib_nsl_gethostbyname=yes
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 ac_cv_lib_nsl_gethostbyname=no
22904 fi
22905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22906 LIBS=$ac_check_lib_save_LIBS
22907 fi
22908 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22909 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22910 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22911   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22912 fi
22913
22914       if test $ac_cv_lib_nsl_gethostbyname = no; then
22915         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22916 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22917 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   ac_check_lib_save_LIBS=$LIBS
22921 LIBS="-lbsd  $LIBS"
22922 cat >conftest.$ac_ext <<_ACEOF
22923 #line $LINENO "configure"
22924 /* confdefs.h.  */
22925 _ACEOF
22926 cat confdefs.h >>conftest.$ac_ext
22927 cat >>conftest.$ac_ext <<_ACEOF
22928 /* end confdefs.h.  */
22929
22930 /* Override any gcc2 internal prototype to avoid an error.  */
22931 #ifdef __cplusplus
22932 extern "C"
22933 #endif
22934 /* We use char because int might match the return type of a gcc2
22935    builtin and then its argument prototype would still apply.  */
22936 char gethostbyname ();
22937 int
22938 main ()
22939 {
22940 gethostbyname ();
22941   ;
22942   return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext conftest$ac_exeext
22946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22947   (eval $ac_link) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); } &&
22951          { ac_try='test -s conftest$ac_exeext'
22952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; }; then
22957   ac_cv_lib_bsd_gethostbyname=yes
22958 else
22959   echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22961
22962 ac_cv_lib_bsd_gethostbyname=no
22963 fi
22964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22965 LIBS=$ac_check_lib_save_LIBS
22966 fi
22967 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22968 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22969 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22970   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22971 fi
22972
22973       fi
22974     fi
22975
22976     # lieder@skyler.mavd.honeywell.com says without -lsocket,
22977     # socket/setsockopt and other routines are undefined under SCO ODT
22978     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
22979     # on later versions), says Simon Leinen: it contains gethostby*
22980     # variants that don't use the name server (or something).  -lsocket
22981     # must be given before -lnsl if both are needed.  We assume that
22982     # if connect needs -lnsl, so does gethostbyname.
22983     echo "$as_me:$LINENO: checking for connect" >&5
22984 echo $ECHO_N "checking for connect... $ECHO_C" >&6
22985 if test "${ac_cv_func_connect+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   cat >conftest.$ac_ext <<_ACEOF
22989 #line $LINENO "configure"
22990 /* confdefs.h.  */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h.  */
22995 /* System header to define __stub macros and hopefully few prototypes,
22996     which can conflict with char connect (); below.
22997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22998     <limits.h> exists even on freestanding compilers.  */
22999 #ifdef __STDC__
23000 # include <limits.h>
23001 #else
23002 # include <assert.h>
23003 #endif
23004 /* Override any gcc2 internal prototype to avoid an error.  */
23005 #ifdef __cplusplus
23006 extern "C"
23007 {
23008 #endif
23009 /* We use char because int might match the return type of a gcc2
23010    builtin and then its argument prototype would still apply.  */
23011 char connect ();
23012 /* The GNU C library defines this for functions which it implements
23013     to always fail with ENOSYS.  Some functions are actually named
23014     something starting with __ and the normal name is an alias.  */
23015 #if defined (__stub_connect) || defined (__stub___connect)
23016 choke me
23017 #else
23018 char (*f) () = connect;
23019 #endif
23020 #ifdef __cplusplus
23021 }
23022 #endif
23023
23024 int
23025 main ()
23026 {
23027 return f != connect;
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext conftest$ac_exeext
23033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23034   (eval $ac_link) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); } &&
23038          { ac_try='test -s conftest$ac_exeext'
23039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040   (eval $ac_try) 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; }; then
23044   ac_cv_func_connect=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 ac_cv_func_connect=no
23050 fi
23051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23052 fi
23053 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23054 echo "${ECHO_T}$ac_cv_func_connect" >&6
23055
23056     if test $ac_cv_func_connect = no; then
23057       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23058 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23059 if test "${ac_cv_lib_socket_connect+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23064 cat >conftest.$ac_ext <<_ACEOF
23065 #line $LINENO "configure"
23066 /* confdefs.h.  */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h.  */
23071
23072 /* Override any gcc2 internal prototype to avoid an error.  */
23073 #ifdef __cplusplus
23074 extern "C"
23075 #endif
23076 /* We use char because int might match the return type of a gcc2
23077    builtin and then its argument prototype would still apply.  */
23078 char connect ();
23079 int
23080 main ()
23081 {
23082 connect ();
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext conftest$ac_exeext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089   (eval $ac_link) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } &&
23093          { ac_try='test -s conftest$ac_exeext'
23094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); }; }; then
23099   ac_cv_lib_socket_connect=yes
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104 ac_cv_lib_socket_connect=no
23105 fi
23106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23107 LIBS=$ac_check_lib_save_LIBS
23108 fi
23109 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23110 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23111 if test $ac_cv_lib_socket_connect = yes; then
23112   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23113 fi
23114
23115     fi
23116
23117     # Guillermo Gomez says -lposix is necessary on A/UX.
23118     echo "$as_me:$LINENO: checking for remove" >&5
23119 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23120 if test "${ac_cv_func_remove+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   cat >conftest.$ac_ext <<_ACEOF
23124 #line $LINENO "configure"
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130 /* System header to define __stub macros and hopefully few prototypes,
23131     which can conflict with char remove (); below.
23132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23133     <limits.h> exists even on freestanding compilers.  */
23134 #ifdef __STDC__
23135 # include <limits.h>
23136 #else
23137 # include <assert.h>
23138 #endif
23139 /* Override any gcc2 internal prototype to avoid an error.  */
23140 #ifdef __cplusplus
23141 extern "C"
23142 {
23143 #endif
23144 /* We use char because int might match the return type of a gcc2
23145    builtin and then its argument prototype would still apply.  */
23146 char remove ();
23147 /* The GNU C library defines this for functions which it implements
23148     to always fail with ENOSYS.  Some functions are actually named
23149     something starting with __ and the normal name is an alias.  */
23150 #if defined (__stub_remove) || defined (__stub___remove)
23151 choke me
23152 #else
23153 char (*f) () = remove;
23154 #endif
23155 #ifdef __cplusplus
23156 }
23157 #endif
23158
23159 int
23160 main ()
23161 {
23162 return f != remove;
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext conftest$ac_exeext
23168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23169   (eval $ac_link) 2>&5
23170   ac_status=$?
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); } &&
23173          { ac_try='test -s conftest$ac_exeext'
23174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175   (eval $ac_try) 2>&5
23176   ac_status=$?
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); }; }; then
23179   ac_cv_func_remove=yes
23180 else
23181   echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184 ac_cv_func_remove=no
23185 fi
23186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23187 fi
23188 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23189 echo "${ECHO_T}$ac_cv_func_remove" >&6
23190
23191     if test $ac_cv_func_remove = no; then
23192       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23193 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23194 if test "${ac_cv_lib_posix_remove+set}" = set; then
23195   echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197   ac_check_lib_save_LIBS=$LIBS
23198 LIBS="-lposix  $LIBS"
23199 cat >conftest.$ac_ext <<_ACEOF
23200 #line $LINENO "configure"
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206
23207 /* Override any gcc2 internal prototype to avoid an error.  */
23208 #ifdef __cplusplus
23209 extern "C"
23210 #endif
23211 /* We use char because int might match the return type of a gcc2
23212    builtin and then its argument prototype would still apply.  */
23213 char remove ();
23214 int
23215 main ()
23216 {
23217 remove ();
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext conftest$ac_exeext
23223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23224   (eval $ac_link) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); } &&
23228          { ac_try='test -s conftest$ac_exeext'
23229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230   (eval $ac_try) 2>&5
23231   ac_status=$?
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); }; }; then
23234   ac_cv_lib_posix_remove=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_lib_posix_remove=no
23240 fi
23241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23242 LIBS=$ac_check_lib_save_LIBS
23243 fi
23244 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23245 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23246 if test $ac_cv_lib_posix_remove = yes; then
23247   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23248 fi
23249
23250     fi
23251
23252     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23253     echo "$as_me:$LINENO: checking for shmat" >&5
23254 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23255 if test "${ac_cv_func_shmat+set}" = set; then
23256   echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258   cat >conftest.$ac_ext <<_ACEOF
23259 #line $LINENO "configure"
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265 /* System header to define __stub macros and hopefully few prototypes,
23266     which can conflict with char shmat (); below.
23267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268     <limits.h> exists even on freestanding compilers.  */
23269 #ifdef __STDC__
23270 # include <limits.h>
23271 #else
23272 # include <assert.h>
23273 #endif
23274 /* Override any gcc2 internal prototype to avoid an error.  */
23275 #ifdef __cplusplus
23276 extern "C"
23277 {
23278 #endif
23279 /* We use char because int might match the return type of a gcc2
23280    builtin and then its argument prototype would still apply.  */
23281 char shmat ();
23282 /* The GNU C library defines this for functions which it implements
23283     to always fail with ENOSYS.  Some functions are actually named
23284     something starting with __ and the normal name is an alias.  */
23285 #if defined (__stub_shmat) || defined (__stub___shmat)
23286 choke me
23287 #else
23288 char (*f) () = shmat;
23289 #endif
23290 #ifdef __cplusplus
23291 }
23292 #endif
23293
23294 int
23295 main ()
23296 {
23297 return f != shmat;
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest.$ac_objext conftest$ac_exeext
23303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23304   (eval $ac_link) 2>&5
23305   ac_status=$?
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } &&
23308          { ac_try='test -s conftest$ac_exeext'
23309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310   (eval $ac_try) 2>&5
23311   ac_status=$?
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); }; }; then
23314   ac_cv_func_shmat=yes
23315 else
23316   echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319 ac_cv_func_shmat=no
23320 fi
23321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23322 fi
23323 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23324 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23325
23326     if test $ac_cv_func_shmat = no; then
23327       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23328 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23329 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23330   echo $ECHO_N "(cached) $ECHO_C" >&6
23331 else
23332   ac_check_lib_save_LIBS=$LIBS
23333 LIBS="-lipc  $LIBS"
23334 cat >conftest.$ac_ext <<_ACEOF
23335 #line $LINENO "configure"
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341
23342 /* Override any gcc2 internal prototype to avoid an error.  */
23343 #ifdef __cplusplus
23344 extern "C"
23345 #endif
23346 /* We use char because int might match the return type of a gcc2
23347    builtin and then its argument prototype would still apply.  */
23348 char shmat ();
23349 int
23350 main ()
23351 {
23352 shmat ();
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23359   (eval $ac_link) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); } &&
23363          { ac_try='test -s conftest$ac_exeext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   ac_cv_lib_ipc_shmat=yes
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_lib_ipc_shmat=no
23375 fi
23376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23377 LIBS=$ac_check_lib_save_LIBS
23378 fi
23379 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23380 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23381 if test $ac_cv_lib_ipc_shmat = yes; then
23382   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23383 fi
23384
23385     fi
23386   fi
23387
23388   # Check for libraries that X11R6 Xt/Xaw programs need.
23389   ac_save_LDFLAGS=$LDFLAGS
23390   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23391   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23392   # check for ICE first), but we must link in the order -lSM -lICE or
23393   # we get undefined symbols.  So assume we have SM if we have ICE.
23394   # These have to be linked with before -lX11, unlike the other
23395   # libraries we check for below, so use a different variable.
23396   # John Interrante, Karl Berry
23397   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23398 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23399 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23400   echo $ECHO_N "(cached) $ECHO_C" >&6
23401 else
23402   ac_check_lib_save_LIBS=$LIBS
23403 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23404 cat >conftest.$ac_ext <<_ACEOF
23405 #line $LINENO "configure"
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411
23412 /* Override any gcc2 internal prototype to avoid an error.  */
23413 #ifdef __cplusplus
23414 extern "C"
23415 #endif
23416 /* We use char because int might match the return type of a gcc2
23417    builtin and then its argument prototype would still apply.  */
23418 char IceConnectionNumber ();
23419 int
23420 main ()
23421 {
23422 IceConnectionNumber ();
23423   ;
23424   return 0;
23425 }
23426 _ACEOF
23427 rm -f conftest.$ac_objext conftest$ac_exeext
23428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23429   (eval $ac_link) 2>&5
23430   ac_status=$?
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } &&
23433          { ac_try='test -s conftest$ac_exeext'
23434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435   (eval $ac_try) 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); }; }; then
23439   ac_cv_lib_ICE_IceConnectionNumber=yes
23440 else
23441   echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444 ac_cv_lib_ICE_IceConnectionNumber=no
23445 fi
23446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23447 LIBS=$ac_check_lib_save_LIBS
23448 fi
23449 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23450 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23451 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23452   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23453 fi
23454
23455   LDFLAGS=$ac_save_LDFLAGS
23456
23457 fi
23458
23459
23460         if test "$no_x" = "yes"; then
23461           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23462 echo "$as_me: error: X11 not found" >&2;}
23463    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23464         fi
23465
23466                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23467         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
23468         AFMINSTALL=afminstall
23469         COMPILED_X_PROGRAM=0
23470
23471         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23472 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23473
23474 ac_find_includes=
23475 for ac_dir in $SEARCH_INCLUDE /usr/include;
23476   do
23477     if test -f "$ac_dir/Xm/Xm.h"; then
23478       ac_find_includes=$ac_dir
23479       break
23480     fi
23481   done
23482
23483         if test "$ac_find_includes" != "" ; then
23484             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23485 echo "${ECHO_T}found in $ac_find_includes" >&6
23486
23487     if test "x$ac_find_includes" = "x/usr/include"; then
23488     ac_path_to_include=""
23489   else
23490     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23491     result=$?
23492     if test $result = 0; then
23493       ac_path_to_include=""
23494     else
23495       ac_path_to_include=" -I$ac_find_includes"
23496     fi
23497   fi
23498
23499             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
23500         else
23501             cat >conftest.$ac_ext <<_ACEOF
23502 #line $LINENO "configure"
23503 /* confdefs.h.  */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h.  */
23508
23509                     #include <Xm/Xm.h>
23510
23511 int
23512 main ()
23513 {
23514
23515                     int version;
23516                     version = xmUseVersion;
23517
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23524   (eval $ac_compile) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } &&
23528          { ac_try='test -s conftest.$ac_objext'
23529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530   (eval $ac_try) 2>&5
23531   ac_status=$?
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); }; }; then
23534
23535                     echo "$as_me:$LINENO: result: found in default search path" >&5
23536 echo "${ECHO_T}found in default search path" >&6
23537                     COMPILED_X_PROGRAM=1
23538
23539 else
23540   echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23542
23543
23544                     echo "$as_me:$LINENO: result: no" >&5
23545 echo "${ECHO_T}no" >&6
23546                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23547 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23548    { (exit 1); exit 1; }; }
23549
23550
23551 fi
23552 rm -f conftest.$ac_objext conftest.$ac_ext
23553         fi
23554
23555         if test "$COMPILED_X_PROGRAM" = 0; then
23556             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23557 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23558
23559 ac_find_libraries=
23560 for ac_dir in $SEARCH_LIB /usr/lib;
23561   do
23562     for ac_extension in a so sl dylib; do
23563       if test -f "$ac_dir/libXm.$ac_extension"; then
23564         ac_find_libraries=$ac_dir
23565         break 2
23566       fi
23567     done
23568   done
23569
23570             if test "$ac_find_libraries" != "" ; then
23571                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23572 echo "${ECHO_T}found at $ac_find_libraries" >&6
23573
23574
23575   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23576   result=$?
23577   if test $result = 0; then
23578     ac_path_to_link=""
23579   else
23580     ac_path_to_link=" -L$ac_find_libraries"
23581   fi
23582
23583                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23584             else
23585                                                                 save_CFLAGS=$CFLAGS
23586                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23587
23588                 cat >conftest.$ac_ext <<_ACEOF
23589 #line $LINENO "configure"
23590 /* confdefs.h.  */
23591 _ACEOF
23592 cat confdefs.h >>conftest.$ac_ext
23593 cat >>conftest.$ac_ext <<_ACEOF
23594 /* end confdefs.h.  */
23595
23596                         #include <Xm/Xm.h>
23597
23598 int
23599 main ()
23600 {
23601
23602                         int version;
23603                         version = xmUseVersion;
23604
23605   ;
23606   return 0;
23607 }
23608 _ACEOF
23609 rm -f conftest.$ac_objext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23611   (eval $ac_compile) 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } &&
23615          { ac_try='test -s conftest.$ac_objext'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; }; then
23621
23622                         echo "$as_me:$LINENO: result: found in default search path" >&5
23623 echo "${ECHO_T}found in default search path" >&6
23624                         COMPILED_X_PROGRAM=1
23625
23626 else
23627   echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630
23631                         echo "$as_me:$LINENO: result: no" >&5
23632 echo "${ECHO_T}no" >&6
23633                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23634 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23635    { (exit 1); exit 1; }; }
23636
23637
23638 fi
23639 rm -f conftest.$ac_objext conftest.$ac_ext
23640
23641                 CFLAGS=$save_CFLAGS
23642             fi
23643         fi
23644
23645         xpm_link=
23646         echo "$as_me:$LINENO: checking for Xpm library" >&5
23647 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23648
23649 ac_find_libraries=
23650 for ac_dir in $SEARCH_LIB /usr/lib;
23651   do
23652     for ac_extension in a so sl dylib; do
23653       if test -f "$ac_dir/libXpm.$ac_extension"; then
23654         ac_find_libraries=$ac_dir
23655         break 2
23656       fi
23657     done
23658   done
23659
23660         if test "$ac_find_libraries" != "" ; then
23661
23662   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23663   result=$?
23664   if test $result = 0; then
23665     ac_path_to_link=""
23666   else
23667     ac_path_to_link=" -L$ac_find_libraries"
23668   fi
23669
23670             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23671
23672             xpm_link=" -lXpm"
23673             cat >>confdefs.h <<\_ACEOF
23674 #define wxHAVE_LIB_XPM 1
23675 _ACEOF
23676
23677             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23678 echo "${ECHO_T}found at $ac_find_libraries" >&6
23679         else
23680             save_CFLAGS=$CFLAGS
23681             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23682
23683             cat >conftest.$ac_ext <<_ACEOF
23684 #line $LINENO "configure"
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690
23691                     #include <X11/xpm.h>
23692
23693 int
23694 main ()
23695 {
23696
23697                     int version;
23698                     version = XpmLibraryVersion();
23699
23700   ;
23701   return 0;
23702 }
23703 _ACEOF
23704 rm -f conftest.$ac_objext
23705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706   (eval $ac_compile) 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); } &&
23710          { ac_try='test -s conftest.$ac_objext'
23711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712   (eval $ac_try) 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; }; then
23716
23717                     xpm_link=" -lXpm"
23718                     cat >>confdefs.h <<\_ACEOF
23719 #define wxHAVE_LIB_XPM 1
23720 _ACEOF
23721
23722                     echo "$as_me:$LINENO: result: found in default search path" >&5
23723 echo "${ECHO_T}found in default search path" >&6
23724                     COMPILED_X_PROGRAM=0
23725
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730
23731                     echo "$as_me:$LINENO: result: no" >&5
23732 echo "${ECHO_T}no" >&6
23733                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23734 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23735
23736
23737 fi
23738 rm -f conftest.$ac_objext conftest.$ac_ext
23739
23740             CFLAGS=$save_CFLAGS
23741         fi
23742
23743         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23744 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
23745         libp_link=""
23746         libsm_ice_link=""
23747         libs_found=0
23748         for libp in "" " -lXp"; do
23749             if test "$libs_found" = "0"; then
23750                 for libsm_ice in " -lSM -lICE"; do
23751                     if test "$libs_found" = "0"; then
23752                         save_LIBS="$LIBS"
23753                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
23754                         save_CFLAGS=$CFLAGS
23755                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23756
23757                         cat >conftest.$ac_ext <<_ACEOF
23758 #line $LINENO "configure"
23759 /* confdefs.h.  */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h.  */
23764
23765                                 #include <Xm/Xm.h>
23766                                 #include <Xm/List.h>
23767
23768 int
23769 main ()
23770 {
23771
23772                                 XmString string = NULL;
23773                                 Widget w = NULL;
23774                                 int position = 0;
23775                                 XmListAddItem(w, string, position);
23776
23777   ;
23778   return 0;
23779 }
23780 _ACEOF
23781 rm -f conftest.$ac_objext conftest$ac_exeext
23782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23783   (eval $ac_link) 2>&5
23784   ac_status=$?
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } &&
23787          { ac_try='test -s conftest$ac_exeext'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; }; then
23793
23794                                 libp_link="$libp"
23795                                 libsm_ice_link="$libsm_ice"
23796                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23797 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
23798                                 libs_found=1
23799
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804
23805
23806 fi
23807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23808
23809                         LIBS="$save_LIBS"
23810                         CFLAGS=$save_CFLAGS
23811                     fi
23812                 done
23813             fi
23814         done
23815
23816         if test "$libs_found" = "0"; then
23817             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23818 echo "${ECHO_T}can't find the right libraries" >&6
23819             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23820 echo "$as_me: error: can't link a simple motif program" >&2;}
23821    { (exit 1); exit 1; }; }
23822         fi
23823
23824         save_CFLAGS=$CFLAGS
23825         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23826         echo "$as_me:$LINENO: checking for Motif 2" >&5
23827 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23828         cat >conftest.$ac_ext <<_ACEOF
23829 #line $LINENO "configure"
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835
23836                         #include <Xm/Xm.h>
23837
23838 int
23839 main ()
23840 {
23841
23842                         #if XmVersion < 2000
23843                         #error "Not Motif 2"
23844                         #endif
23845
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23852   (eval $ac_compile) 2>&5
23853   ac_status=$?
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); } &&
23856          { ac_try='test -s conftest.$ac_objext'
23857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); }; }; then
23862
23863                         cat >>confdefs.h <<\_ACEOF
23864 #define __WXMOTIF20__ 1
23865 _ACEOF
23866
23867                         echo "$as_me:$LINENO: result: found" >&5
23868 echo "${ECHO_T}found" >&6
23869
23870 else
23871   echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873
23874
23875                         cat >>confdefs.h <<\_ACEOF
23876 #define __WXMOTIF20__ 0
23877 _ACEOF
23878
23879                         echo "$as_me:$LINENO: result: not found" >&5
23880 echo "${ECHO_T}not found" >&6
23881
23882 fi
23883 rm -f conftest.$ac_objext conftest.$ac_ext
23884         CFLAGS=$save_CFLAGS
23885
23886         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
23887         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
23888         TOOLKIT=MOTIF
23889         GUIDIST=MOTIF_DIST
23890         wxHAVE_XEXT_LIB=1
23891     fi
23892
23893     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23894        test "$wxHAVE_XEXT_LIB" = 1; then
23895         save_CFLAGS="$CFLAGS"
23896         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23897
23898         echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23899 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23900         cat >conftest.$ac_ext <<_ACEOF
23901 #line $LINENO "configure"
23902 /* confdefs.h.  */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h.  */
23907
23908                         #include <X11/Xlib.h>
23909                         #include <X11/extensions/shape.h>
23910
23911 int
23912 main ()
23913 {
23914
23915                         int dummy1, dummy2;
23916                         XShapeQueryExtension((Display*)NULL,
23917                                              (int*)NULL, (int*)NULL);
23918
23919   ;
23920   return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23925   (eval $ac_compile) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } &&
23929          { ac_try='test -s conftest.$ac_objext'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; }; then
23935
23936                         cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_XSHAPE 1
23938 _ACEOF
23939
23940                         echo "$as_me:$LINENO: result: found" >&5
23941 echo "${ECHO_T}found" >&6
23942
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948                         echo "$as_me:$LINENO: result: not found" >&5
23949 echo "${ECHO_T}not found" >&6
23950
23951 fi
23952 rm -f conftest.$ac_objext conftest.$ac_ext
23953         CFLAGS="$save_CFLAGS"
23954     fi
23955
23956     if test "$wxUSE_MAC" = 1; then
23957         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
23958
23959         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
23960         TOOLKIT=MAC
23961                 GUIDIST=MACX_DIST
23962     fi
23963
23964     if test "$wxUSE_COCOA" = 1; then
23965         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
23966         TOOLKIT=COCOA
23967         GUIDIST=COCOA_DIST
23968     fi
23969
23970     if test "$wxUSE_PM" = 1; then
23971         TOOLKIT=PM
23972         GUIDIST=GTK_DIST
23973         { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
23974 echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
23975         wxUSE_THREADS="no"
23976     fi
23977
23978         if test "$TOOLKIT" = "PM" ; then
23979         TOOLKIT_DIR="os2"
23980     else
23981         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
23982     fi
23983
23984         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
23985
23986     if test "$wxUSE_UNIVERSAL" = "yes"; then
23987         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
23988
23989                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
23990         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
23991
23992         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
23993         if test "$wxUSE_X11" = 1; then
23994             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
23995         else
23996             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
23997         fi
23998         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
23999         WIDGET_SET=univ
24000     else
24001         ALL_OBJECTS="\$(GUIOBJS)"
24002         ALL_SOURCES="\$(ALL_SOURCES)"
24003         ALL_HEADERS="\$(ALL_HEADERS)"
24004     fi
24005
24006     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24007
24008     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24009         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24010     fi
24011
24012     if test "$wxUSE_HTML" = "yes"; then
24013         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24014     fi
24015
24016     if test "$wxUSE_LIBJPEG" = "builtin" ; then
24017         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24018     fi
24019     if test "$wxUSE_LIBTIFF" = "builtin" ; then
24020         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24021     fi
24022     if test "$wxUSE_LIBPNG" = "builtin" ; then
24023         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24024     fi
24025
24026         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24027     DISTDIR="wx\$(TOOLKIT)"
24028 else
24029     USE_GUI=0
24030
24031             TOOLKIT_DIR="base"
24032
24033         if test "$USE_WIN32" = 1 ; then
24034         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24035         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24036
24037                         TOOLKIT="MSW"
24038     else
24039         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24040         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24041     fi
24042
24043     ALL_SOURCES="\$(ALL_SOURCES)"
24044     ALL_HEADERS="\$(ALL_HEADERS)"
24045
24046     PORT_FILES="\${top_srcdir}/src/files.lst"
24047
24048         GUIDIST="BASE_DIST"
24049     DISTDIR="wxBase"
24050 fi
24051
24052
24053
24054
24055 IODBC_C_SRC=""
24056
24057
24058 if test "$TOOLKIT" != "MSW" ; then
24059
24060     if test "$wxUSE_ODBC" != "no" ; then
24061         cat >>confdefs.h <<\_ACEOF
24062 #define wxUSE_ODBC 1
24063 _ACEOF
24064
24065         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24066
24067                 WXODBCFLAG="-D_IODBC_"
24068
24069
24070         if test "$wxUSE_ODBC" = "sys" ; then
24071
24072             if test "${ac_cv_header_sql_h+set}" = set; then
24073   echo "$as_me:$LINENO: checking for sql.h" >&5
24074 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24075 if test "${ac_cv_header_sql_h+set}" = set; then
24076   echo $ECHO_N "(cached) $ECHO_C" >&6
24077 fi
24078 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24079 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24080 else
24081   # Is the header compilable?
24082 echo "$as_me:$LINENO: checking sql.h usability" >&5
24083 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24084 cat >conftest.$ac_ext <<_ACEOF
24085 #line $LINENO "configure"
24086 /* confdefs.h.  */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h.  */
24091 $ac_includes_default
24092 #include <sql.h>
24093 _ACEOF
24094 rm -f conftest.$ac_objext
24095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096   (eval $ac_compile) 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); } &&
24100          { ac_try='test -s conftest.$ac_objext'
24101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102   (eval $ac_try) 2>&5
24103   ac_status=$?
24104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105   (exit $ac_status); }; }; then
24106   ac_header_compiler=yes
24107 else
24108   echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24110
24111 ac_header_compiler=no
24112 fi
24113 rm -f conftest.$ac_objext conftest.$ac_ext
24114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24115 echo "${ECHO_T}$ac_header_compiler" >&6
24116
24117 # Is the header present?
24118 echo "$as_me:$LINENO: checking sql.h presence" >&5
24119 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24120 cat >conftest.$ac_ext <<_ACEOF
24121 #line $LINENO "configure"
24122 /* confdefs.h.  */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h.  */
24127 #include <sql.h>
24128 _ACEOF
24129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24131   ac_status=$?
24132   grep -v '^ *+' conftest.er1 >conftest.err
24133   rm -f conftest.er1
24134   cat conftest.err >&5
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); } >/dev/null; then
24137   if test -s conftest.err; then
24138     ac_cpp_err=$ac_c_preproc_warn_flag
24139   else
24140     ac_cpp_err=
24141   fi
24142 else
24143   ac_cpp_err=yes
24144 fi
24145 if test -z "$ac_cpp_err"; then
24146   ac_header_preproc=yes
24147 else
24148   echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151   ac_header_preproc=no
24152 fi
24153 rm -f conftest.err conftest.$ac_ext
24154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24155 echo "${ECHO_T}$ac_header_preproc" >&6
24156
24157 # So?  What about this header?
24158 case $ac_header_compiler:$ac_header_preproc in
24159   yes:no )
24160     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24161 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24162     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24163 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24164     (
24165       cat <<\_ASBOX
24166 ## ------------------------------------ ##
24167 ## Report this to bug-autoconf@gnu.org. ##
24168 ## ------------------------------------ ##
24169 _ASBOX
24170     ) |
24171       sed "s/^/$as_me: WARNING:     /" >&2
24172     ;;
24173   no:yes )
24174     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24175 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24176     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24177 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24178     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24179 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24180     (
24181       cat <<\_ASBOX
24182 ## ------------------------------------ ##
24183 ## Report this to bug-autoconf@gnu.org. ##
24184 ## ------------------------------------ ##
24185 _ASBOX
24186     ) |
24187       sed "s/^/$as_me: WARNING:     /" >&2
24188     ;;
24189 esac
24190 echo "$as_me:$LINENO: checking for sql.h" >&5
24191 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24192 if test "${ac_cv_header_sql_h+set}" = set; then
24193   echo $ECHO_N "(cached) $ECHO_C" >&6
24194 else
24195   ac_cv_header_sql_h=$ac_header_preproc
24196 fi
24197 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24198 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24199
24200 fi
24201
24202
24203             echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24204 echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24205 if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24206   echo $ECHO_N "(cached) $ECHO_C" >&6
24207 else
24208   ac_func_search_save_LIBS=$LIBS
24209 ac_cv_search_SQLAllocEnv=no
24210 cat >conftest.$ac_ext <<_ACEOF
24211 #line $LINENO "configure"
24212 /* confdefs.h.  */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h.  */
24217
24218 /* Override any gcc2 internal prototype to avoid an error.  */
24219 #ifdef __cplusplus
24220 extern "C"
24221 #endif
24222 /* We use char because int might match the return type of a gcc2
24223    builtin and then its argument prototype would still apply.  */
24224 char SQLAllocEnv ();
24225 int
24226 main ()
24227 {
24228 SQLAllocEnv ();
24229   ;
24230   return 0;
24231 }
24232 _ACEOF
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24235   (eval $ac_link) 2>&5
24236   ac_status=$?
24237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238   (exit $ac_status); } &&
24239          { ac_try='test -s conftest$ac_exeext'
24240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241   (eval $ac_try) 2>&5
24242   ac_status=$?
24243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244   (exit $ac_status); }; }; then
24245   ac_cv_search_SQLAllocEnv="none required"
24246 else
24247   echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250 fi
24251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24252 if test "$ac_cv_search_SQLAllocEnv" = no; then
24253   for ac_lib in iodbc unixodbc odbc ; do
24254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24255     cat >conftest.$ac_ext <<_ACEOF
24256 #line $LINENO "configure"
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262
24263 /* Override any gcc2 internal prototype to avoid an error.  */
24264 #ifdef __cplusplus
24265 extern "C"
24266 #endif
24267 /* We use char because int might match the return type of a gcc2
24268    builtin and then its argument prototype would still apply.  */
24269 char SQLAllocEnv ();
24270 int
24271 main ()
24272 {
24273 SQLAllocEnv ();
24274   ;
24275   return 0;
24276 }
24277 _ACEOF
24278 rm -f conftest.$ac_objext conftest$ac_exeext
24279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24280   (eval $ac_link) 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); } &&
24284          { ac_try='test -s conftest$ac_exeext'
24285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); }; }; then
24290   ac_cv_search_SQLAllocEnv="-l$ac_lib"
24291 break
24292 else
24293   echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 fi
24297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24298   done
24299 fi
24300 LIBS=$ac_func_search_save_LIBS
24301 fi
24302 echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24303 echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24304 if test "$ac_cv_search_SQLAllocEnv" != no; then
24305   test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
24306
24307 else
24308
24309                 wxUSE_ODBC=builtin;
24310                 { echo "$as_me:$LINENO: WARNING:  can't find system Odbc library falling back to builtin " >&5
24311 echo "$as_me: WARNING:  can't find system Odbc library falling back to builtin " >&2;}
24312
24313 fi
24314
24315         fi
24316                 if test "$wxUSE_ODBC" != "sys" ; then
24317             ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
24318         fi
24319
24320     fi
24321
24322 fi
24323
24324 if test "$wxUSE_REGEX" = "builtin" ; then
24325     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
24326 fi
24327 if test "$wxUSE_ZLIB" = "builtin" ; then
24328     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
24329 fi
24330
24331
24332 if test "$wxUSE_OPENGL" = "yes"; then
24333     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
24334         OPENGL_LIBS="-framework OpenGL -framework AGL"
24335     elif test "$wxUSE_MSW" = 1; then
24336         OPENGL_LIBS="-lopengl32 -lglu32"
24337     else
24338
24339
24340 ac_find_includes=
24341 for ac_dir in $SEARCH_INCLUDE /usr/include;
24342   do
24343     if test -f "$ac_dir/GL/gl.h"; then
24344       ac_find_includes=$ac_dir
24345       break
24346     fi
24347   done
24348
24349         if test "$ac_find_includes" != "" ; then
24350             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24351 echo "${ECHO_T}found in $ac_find_includes" >&6
24352             set -x
24353
24354     if test "x$ac_find_includes" = "x/usr/include"; then
24355     ac_path_to_include=""
24356   else
24357     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24358     result=$?
24359     if test $result = 0; then
24360       ac_path_to_include=""
24361     else
24362       ac_path_to_include=" -I$ac_find_includes"
24363     fi
24364   fi
24365
24366             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24367             set +x
24368         fi
24369
24370         if test "${ac_cv_header_GL_gl_h+set}" = set; then
24371   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24372 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24373 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24374   echo $ECHO_N "(cached) $ECHO_C" >&6
24375 fi
24376 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24377 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24378 else
24379   # Is the header compilable?
24380 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24381 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24382 cat >conftest.$ac_ext <<_ACEOF
24383 #line $LINENO "configure"
24384 /* confdefs.h.  */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h.  */
24389 $ac_includes_default
24390 #include <GL/gl.h>
24391 _ACEOF
24392 rm -f conftest.$ac_objext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394   (eval $ac_compile) 2>&5
24395   ac_status=$?
24396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); } &&
24398          { ac_try='test -s conftest.$ac_objext'
24399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400   (eval $ac_try) 2>&5
24401   ac_status=$?
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); }; }; then
24404   ac_header_compiler=yes
24405 else
24406   echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24408
24409 ac_header_compiler=no
24410 fi
24411 rm -f conftest.$ac_objext conftest.$ac_ext
24412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24413 echo "${ECHO_T}$ac_header_compiler" >&6
24414
24415 # Is the header present?
24416 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24417 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24418 cat >conftest.$ac_ext <<_ACEOF
24419 #line $LINENO "configure"
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425 #include <GL/gl.h>
24426 _ACEOF
24427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } >/dev/null; then
24435   if test -s conftest.err; then
24436     ac_cpp_err=$ac_c_preproc_warn_flag
24437   else
24438     ac_cpp_err=
24439   fi
24440 else
24441   ac_cpp_err=yes
24442 fi
24443 if test -z "$ac_cpp_err"; then
24444   ac_header_preproc=yes
24445 else
24446   echo "$as_me: failed program was:" >&5
24447 sed 's/^/| /' conftest.$ac_ext >&5
24448
24449   ac_header_preproc=no
24450 fi
24451 rm -f conftest.err conftest.$ac_ext
24452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24453 echo "${ECHO_T}$ac_header_preproc" >&6
24454
24455 # So?  What about this header?
24456 case $ac_header_compiler:$ac_header_preproc in
24457   yes:no )
24458     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24459 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24460     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24461 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24462     (
24463       cat <<\_ASBOX
24464 ## ------------------------------------ ##
24465 ## Report this to bug-autoconf@gnu.org. ##
24466 ## ------------------------------------ ##
24467 _ASBOX
24468     ) |
24469       sed "s/^/$as_me: WARNING:     /" >&2
24470     ;;
24471   no:yes )
24472     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24473 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24474     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24475 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24476     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24477 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24478     (
24479       cat <<\_ASBOX
24480 ## ------------------------------------ ##
24481 ## Report this to bug-autoconf@gnu.org. ##
24482 ## ------------------------------------ ##
24483 _ASBOX
24484     ) |
24485       sed "s/^/$as_me: WARNING:     /" >&2
24486     ;;
24487 esac
24488 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24489 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24490 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24491   echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493   ac_cv_header_GL_gl_h=$ac_header_preproc
24494 fi
24495 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24496 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24497
24498 fi
24499 if test $ac_cv_header_GL_gl_h = yes; then
24500
24501                 found_gl=0
24502
24503                 echo "$as_me:$LINENO: checking for -lGL" >&5
24504 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24505
24506 ac_find_libraries=
24507 for ac_dir in $SEARCH_LIB /usr/lib;
24508   do
24509     for ac_extension in a so sl dylib; do
24510       if test -f "$ac_dir/libGL.$ac_extension"; then
24511         ac_find_libraries=$ac_dir
24512         break 2
24513       fi
24514     done
24515   done
24516
24517                 if test "$ac_find_libraries" != "" ; then
24518
24519   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24520   result=$?
24521   if test $result = 0; then
24522     ac_path_to_link=""
24523   else
24524     ac_path_to_link=" -L$ac_find_libraries"
24525   fi
24526
24527                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
24528                         LDFLAGS_GL="$ac_path_to_link"
24529                     fi
24530
24531
24532 ac_find_libraries=
24533 for ac_dir in $SEARCH_LIB /usr/lib;
24534   do
24535     for ac_extension in a so sl dylib; do
24536       if test -f "$ac_dir/libGLU.$ac_extension"; then
24537         ac_find_libraries=$ac_dir
24538         break 2
24539       fi
24540     done
24541   done
24542
24543                     if test "$ac_find_libraries" != "" ; then
24544
24545   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24546   result=$?
24547   if test $result = 0; then
24548     ac_path_to_link=""
24549   else
24550     ac_path_to_link=" -L$ac_find_libraries"
24551   fi
24552
24553                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
24554                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
24555                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24556                         fi
24557
24558                         found_gl=1
24559                         OPENGL_LIBS="-lGL -lGLU"
24560                         echo "$as_me:$LINENO: result: yes" >&5
24561 echo "${ECHO_T}yes" >&6
24562                     fi
24563                 fi
24564
24565                 if "$found_gl" != 1; then
24566                     echo "$as_me:$LINENO: result: no" >&5
24567 echo "${ECHO_T}no" >&6
24568                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24569 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24570
24571 ac_find_libraries=
24572 for ac_dir in $SEARCH_LIB /usr/lib;
24573   do
24574     for ac_extension in a so sl dylib; do
24575       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24576         ac_find_libraries=$ac_dir
24577         break 2
24578       fi
24579     done
24580   done
24581
24582                     if test "$ac_find_libraries" != "" ; then
24583
24584   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24585   result=$?
24586   if test $result = 0; then
24587     ac_path_to_link=""
24588   else
24589     ac_path_to_link=" -L$ac_find_libraries"
24590   fi
24591
24592                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24593                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
24594                         echo "$as_me:$LINENO: result: yes" >&5
24595 echo "${ECHO_T}yes" >&6
24596                     else
24597                         echo "$as_me:$LINENO: result: no" >&5
24598 echo "${ECHO_T}no" >&6
24599                     fi
24600                 fi
24601
24602 fi
24603
24604
24605
24606         if test "x$OPENGL_LIBS" = "x"; then
24607                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24608 echo "$as_me: error: OpenGL libraries not available" >&2;}
24609    { (exit 1); exit 1; }; }
24610         fi
24611     fi
24612
24613     if test "$wxUSE_OPENGL" = "yes"; then
24614         cat >>confdefs.h <<\_ACEOF
24615 #define wxUSE_OPENGL 1
24616 _ACEOF
24617
24618         cat >>confdefs.h <<\_ACEOF
24619 #define wxUSE_GLCANVAS 1
24620 _ACEOF
24621
24622         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24623     fi
24624 fi
24625
24626 if test -z "$TOOLKIT_VPATH" ; then
24627     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
24628 fi
24629
24630 if test -n "$TOOLKIT" ; then
24631     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24632 fi
24633
24634 UNICODE=0
24635 lib_unicode_suffix=
24636 if test "$wxUSE_UNICODE" = "yes"; then
24637     lib_unicode_suffix=u
24638     UNICODE=1
24639 fi
24640
24641 lib_debug_suffix=
24642 BUILD=release
24643 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24644     lib_debug_suffix=d
24645     BUILD=debug
24646 fi
24647
24648 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24649
24650 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24651 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
24652
24653 if test "$cross_compiling" = "yes"; then
24654     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24655     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24656 fi
24657
24658 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24659 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
24660 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
24661
24662 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24663 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24664
24665 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24666 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24667 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24668 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24669
24670 case "${host}" in
24671     *-*-cygwin* | *-*-mingw32* )
24672
24673
24674
24675         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
24676             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24677             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24678             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
24679             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
24680         else
24681             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24682             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24683         fi
24684         ;;
24685
24686     *-*-darwin* )
24687
24688         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24689         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24690
24691         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24692         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24693         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24694         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24695
24696                         if test "$wxUSE_MAC" = 1; then
24697                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24698             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
24699         fi
24700         ;;
24701 esac
24702
24703 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24704 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24705
24706 WXCONFIG_LIBS="-l${WX_LIBRARY}"
24707 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24708
24709 if test "$wxUSE_OPENGL" = "yes"; then
24710     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24711     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24712 fi
24713
24714
24715
24716 if test "$wxUSE_SHARED" = "yes"; then
24717     case "${host}" in
24718       *-pc-os2_emx | *-pc-os2-emx | \
24719       *-pc-msdosdjgpp )
24720                 wxUSE_SHARED=no
24721         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24722 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
24723       ;;
24724     esac
24725 fi
24726
24727 SHARED=0
24728 if test "$wxUSE_SHARED" = "yes"; then
24729     SHARED=1
24730
24731         if test "$wxUSE_OPENGL" = "yes"; then
24732         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
24733         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
24734     else
24735         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24736         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
24737     fi
24738
24739         if test "$GCC" = "yes"; then
24740                 PIC_FLAG="-fPIC"
24741     fi
24742
24743
24744
24745   found_versioning=no
24746
24747
24748     if test $found_versioning = no ; then
24749       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24750 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24751 if test "${wx_cv_version_script+set}" = set; then
24752   echo $ECHO_N "(cached) $ECHO_C" >&6
24753 else
24754
24755         echo "VER_1 { *; };" >conftest.sym
24756         echo "int main() { return 0; }" >conftest.cpp
24757
24758         if { ac_try='
24759                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
24760                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762   (eval $ac_try) 2>&5
24763   ac_status=$?
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); }; } ; then
24766           if test -s conftest.stderr ; then
24767               wx_cv_version_script=no
24768           else
24769               wx_cv_version_script=yes
24770           fi
24771         else
24772           wx_cv_version_script=no
24773         fi
24774         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
24775
24776 fi
24777 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24778 echo "${ECHO_T}$wx_cv_version_script" >&6
24779       if test $wx_cv_version_script = yes ; then
24780         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
24781       fi
24782   fi
24783
24784
24785         SHARED_LD="${CXX} -shared -o"
24786
24787     case "${host}" in
24788       *-hp-hpux* )
24789                 if test "$GCC" = "yes"; then
24790                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
24791         else
24792                         LDFLAGS="$LDFLAGS -L/usr/lib"
24793
24794             SHARED_LD="${CXX} -b -o"
24795             PIC_FLAG="+Z"
24796         fi
24797
24798                 if test "$wxUSE_OPENGL" = "yes"; then
24799             WX_ALL_INSTALLED="preinstall_gl"
24800             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
24801         else
24802             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24803         fi
24804       ;;
24805
24806       *-*-linux* | *-*-gnu* )
24807         if test "$GCC" != "yes"; then
24808             echo "$as_me:$LINENO: checking for Intel compiler" >&5
24809 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
24810 if test "${wx_cv_prog_icc+set}" = set; then
24811   echo $ECHO_N "(cached) $ECHO_C" >&6
24812 else
24813
24814                 cat >conftest.$ac_ext <<_ACEOF
24815 #line $LINENO "configure"
24816 /* confdefs.h.  */
24817 _ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h.  */
24821
24822 int
24823 main ()
24824 {
24825
24826                         #ifndef __INTEL_COMPILER
24827                         #error Not icc
24828                         #endif
24829
24830   ;
24831   return 0;
24832 }
24833 _ACEOF
24834 rm -f conftest.$ac_objext
24835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24836   (eval $ac_compile) 2>&5
24837   ac_status=$?
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } &&
24840          { ac_try='test -s conftest.$ac_objext'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; }; then
24846   wx_cv_prog_icc=yes
24847 else
24848   echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851 wx_cv_prog_icc=no
24852
24853 fi
24854 rm -f conftest.$ac_objext conftest.$ac_ext
24855
24856 fi
24857 echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5
24858 echo "${ECHO_T}$wx_cv_prog_icc" >&6
24859             if test "$wx_cv_prog_icc" = "yes"; then
24860                 PIC_FLAG="-KPIC"
24861             fi
24862         fi
24863
24864         if test "$wxUSE_SONAME" = "yes" ; then
24865             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
24866             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
24867                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
24868         fi
24869         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24870       ;;
24871
24872       *-*-solaris2* )
24873         if test "$GCC" = yes ; then
24874                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
24875
24876                                     saveLdflags="$LDFLAGS"
24877             LDFLAGS="$saveLdflags -Wl,-rpath,/"
24878             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24879 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24880             cat >conftest.$ac_ext <<_ACEOF
24881 #line $LINENO "configure"
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887
24888 int
24889 main ()
24890 {
24891
24892   ;
24893   return 0;
24894 }
24895 _ACEOF
24896 rm -f conftest.$ac_objext conftest$ac_exeext
24897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24898   (eval $ac_link) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } &&
24902          { ac_try='test -s conftest$ac_exeext'
24903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904   (eval $ac_try) 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); }; }; then
24908
24909                     echo "$as_me:$LINENO: result: yes" >&5
24910 echo "${ECHO_T}yes" >&6
24911                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24912
24913 else
24914   echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24916
24917
24918                     echo "$as_me:$LINENO: result: no" >&5
24919 echo "${ECHO_T}no" >&6
24920                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24921 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
24922                     LDFLAGS="$saveLdflags -Wl,-R,/"
24923                     cat >conftest.$ac_ext <<_ACEOF
24924 #line $LINENO "configure"
24925 /* confdefs.h.  */
24926 _ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h.  */
24930
24931 int
24932 main ()
24933 {
24934
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941   (eval $ac_link) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); } &&
24945          { ac_try='test -s conftest$ac_exeext'
24946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947   (eval $ac_try) 2>&5
24948   ac_status=$?
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); }; }; then
24951
24952                              echo "$as_me:$LINENO: result: yes" >&5
24953 echo "${ECHO_T}yes" >&6
24954                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
24955 else
24956   echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959
24960                             echo "$as_me:$LINENO: result: no" >&5
24961 echo "${ECHO_T}no" >&6
24962
24963 fi
24964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24965
24966 fi
24967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24968             LDFLAGS="$saveLdflags"
24969         else
24970             SHARED_LD="${CXX} -G -o"
24971             PIC_FLAG="-KPIC"
24972             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
24973             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
24974             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
24975         fi
24976       ;;
24977
24978       *-*-darwin* )
24979                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
24980         CFLAGS="$CFLAGS -fno-common"
24981         CXXFLAGS="$CXXFLAGS -fno-common"
24982                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
24983         PIC_FLAG="-dynamic -fPIC"
24984                                 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
24985         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
24986       ;;
24987
24988       *-*-aix* )
24989                 if test "$GCC" != "yes"; then
24990                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
24991 set dummy makeC++SharedLib; ac_word=$2
24992 echo "$as_me:$LINENO: checking for $ac_word" >&5
24993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24994 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997   if test -n "$AIX_CXX_LD"; then
24998   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
24999 else
25000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25001 for as_dir in $PATH
25002 do
25003   IFS=$as_save_IFS
25004   test -z "$as_dir" && as_dir=.
25005   for ac_exec_ext in '' $ac_executable_extensions; do
25006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25007     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
25008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25009     break 2
25010   fi
25011 done
25012 done
25013
25014   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
25015 fi
25016 fi
25017 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
25018 if test -n "$AIX_CXX_LD"; then
25019   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
25020 echo "${ECHO_T}$AIX_CXX_LD" >&6
25021 else
25022   echo "$as_me:$LINENO: result: no" >&5
25023 echo "${ECHO_T}no" >&6
25024 fi
25025
25026
25027             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
25028         fi
25029       ;;
25030
25031       *-*-cygwin* | *-*-mingw32* )
25032         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
25033
25034         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
25035         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25036
25037         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
25038
25039                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
25040         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
25041
25042         if test "$wxUSE_OPENGL" = "yes"; then
25043             LIBS="${LIBS} ${OPENGL_LIBS}"
25044         fi
25045       ;;
25046
25047       *-*-beos* )
25048                         SHARED_LD="${LD} -shared -o"
25049       ;;
25050
25051       *-*-irix* )
25052                 if test "$GCC" != "yes"; then
25053             PIC_FLAG="-KPIC"
25054         fi
25055       ;;
25056
25057       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
25058       *-*-sunos4* | \
25059       *-*-osf* | \
25060       *-*-dgux5* | \
25061       *-*-sysv5* )
25062               ;;
25063
25064       *)
25065         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
25066 echo "$as_me: error: unknown system type $host." >&2;}
25067    { (exit 1); exit 1; }; }
25068     esac
25069
25070         if test "x$WX_TARGET_LIBRARY" = "x"; then
25071         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25072         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25073     fi
25074
25075         WX_TARGET_LIBRARY_TYPE="so"
25076     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
25077 fi
25078
25079 if test "$wxUSE_SHARED" = "no"; then
25080
25081         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25082                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25083     fi
25084
25085     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
25086         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25087     fi
25088
25089     if test "$wxUSE_OPENGL" = "yes"; then
25090         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25091         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25092     else
25093         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25094     fi
25095
25096     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25097     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25098
25099     WX_TARGET_LIBRARY_TYPE="a"
25100     INSTALL_LIBRARY='$(INSTALL_DATA)'
25101
25102             STATIC_FLAG="yes"
25103 else
25104     STATIC_FLAG="no"
25105 fi
25106
25107 MACRESCOMP="@#"
25108 MACSETFILE="@#"
25109 MACRESWXCONFIG="#"
25110 if test "$wxUSE_MAC" = 1; then
25111         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
25112     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25113     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25114     # Extract the first word of "Rez", so it can be a program name with args.
25115 set dummy Rez; ac_word=$2
25116 echo "$as_me:$LINENO: checking for $ac_word" >&5
25117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25118 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25119   echo $ECHO_N "(cached) $ECHO_C" >&6
25120 else
25121   if test -n "$RESCOMP"; then
25122   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25123 else
25124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25125 for as_dir in $PATH
25126 do
25127   IFS=$as_save_IFS
25128   test -z "$as_dir" && as_dir=.
25129   for ac_exec_ext in '' $ac_executable_extensions; do
25130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25131     ac_cv_prog_RESCOMP="Rez"
25132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25133     break 2
25134   fi
25135 done
25136 done
25137
25138   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25139 fi
25140 fi
25141 RESCOMP=$ac_cv_prog_RESCOMP
25142 if test -n "$RESCOMP"; then
25143   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25144 echo "${ECHO_T}$RESCOMP" >&6
25145 else
25146   echo "$as_me:$LINENO: result: no" >&5
25147 echo "${ECHO_T}no" >&6
25148 fi
25149
25150     # Extract the first word of "DeRez", so it can be a program name with args.
25151 set dummy DeRez; ac_word=$2
25152 echo "$as_me:$LINENO: checking for $ac_word" >&5
25153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25154 if test "${ac_cv_prog_DEREZ+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157   if test -n "$DEREZ"; then
25158   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25159 else
25160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25161 for as_dir in $PATH
25162 do
25163   IFS=$as_save_IFS
25164   test -z "$as_dir" && as_dir=.
25165   for ac_exec_ext in '' $ac_executable_extensions; do
25166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25167     ac_cv_prog_DEREZ="DeRez"
25168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25169     break 2
25170   fi
25171 done
25172 done
25173
25174   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25175 fi
25176 fi
25177 DEREZ=$ac_cv_prog_DEREZ
25178 if test -n "$DEREZ"; then
25179   echo "$as_me:$LINENO: result: $DEREZ" >&5
25180 echo "${ECHO_T}$DEREZ" >&6
25181 else
25182   echo "$as_me:$LINENO: result: no" >&5
25183 echo "${ECHO_T}no" >&6
25184 fi
25185
25186     # Extract the first word of "SetFile", so it can be a program name with args.
25187 set dummy SetFile; ac_word=$2
25188 echo "$as_me:$LINENO: checking for $ac_word" >&5
25189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25190 if test "${ac_cv_prog_SETFILE+set}" = set; then
25191   echo $ECHO_N "(cached) $ECHO_C" >&6
25192 else
25193   if test -n "$SETFILE"; then
25194   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25195 else
25196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25197 for as_dir in $PATH
25198 do
25199   IFS=$as_save_IFS
25200   test -z "$as_dir" && as_dir=.
25201   for ac_exec_ext in '' $ac_executable_extensions; do
25202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25203     ac_cv_prog_SETFILE="SetFile"
25204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25205     break 2
25206   fi
25207 done
25208 done
25209
25210   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25211 fi
25212 fi
25213 SETFILE=$ac_cv_prog_SETFILE
25214 if test -n "$SETFILE"; then
25215   echo "$as_me:$LINENO: result: $SETFILE" >&5
25216 echo "${ECHO_T}$SETFILE" >&6
25217 else
25218   echo "$as_me:$LINENO: result: no" >&5
25219 echo "${ECHO_T}no" >&6
25220 fi
25221
25222     MACOSX_BUNDLE="bundle"
25223             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25224     MACSETFILE="\$(SETFILE)"
25225     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25226 elif test "$wxUSE_COCOA" = 1; then
25227     # Extract the first word of "Rez", so it can be a program name with args.
25228 set dummy Rez; ac_word=$2
25229 echo "$as_me:$LINENO: checking for $ac_word" >&5
25230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25231 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25232   echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234   if test -n "$RESCOMP"; then
25235   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25236 else
25237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238 for as_dir in $PATH
25239 do
25240   IFS=$as_save_IFS
25241   test -z "$as_dir" && as_dir=.
25242   for ac_exec_ext in '' $ac_executable_extensions; do
25243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25244     ac_cv_prog_RESCOMP="Rez"
25245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25246     break 2
25247   fi
25248 done
25249 done
25250
25251   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25252 fi
25253 fi
25254 RESCOMP=$ac_cv_prog_RESCOMP
25255 if test -n "$RESCOMP"; then
25256   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25257 echo "${ECHO_T}$RESCOMP" >&6
25258 else
25259   echo "$as_me:$LINENO: result: no" >&5
25260 echo "${ECHO_T}no" >&6
25261 fi
25262
25263     # Extract the first word of "DeRez", so it can be a program name with args.
25264 set dummy DeRez; ac_word=$2
25265 echo "$as_me:$LINENO: checking for $ac_word" >&5
25266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25267 if test "${ac_cv_prog_DEREZ+set}" = set; then
25268   echo $ECHO_N "(cached) $ECHO_C" >&6
25269 else
25270   if test -n "$DEREZ"; then
25271   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25272 else
25273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25274 for as_dir in $PATH
25275 do
25276   IFS=$as_save_IFS
25277   test -z "$as_dir" && as_dir=.
25278   for ac_exec_ext in '' $ac_executable_extensions; do
25279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25280     ac_cv_prog_DEREZ="DeRez"
25281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25282     break 2
25283   fi
25284 done
25285 done
25286
25287   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25288 fi
25289 fi
25290 DEREZ=$ac_cv_prog_DEREZ
25291 if test -n "$DEREZ"; then
25292   echo "$as_me:$LINENO: result: $DEREZ" >&5
25293 echo "${ECHO_T}$DEREZ" >&6
25294 else
25295   echo "$as_me:$LINENO: result: no" >&5
25296 echo "${ECHO_T}no" >&6
25297 fi
25298
25299     # Extract the first word of "SetFile", so it can be a program name with args.
25300 set dummy SetFile; ac_word=$2
25301 echo "$as_me:$LINENO: checking for $ac_word" >&5
25302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25303 if test "${ac_cv_prog_SETFILE+set}" = set; then
25304   echo $ECHO_N "(cached) $ECHO_C" >&6
25305 else
25306   if test -n "$SETFILE"; then
25307   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25308 else
25309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25310 for as_dir in $PATH
25311 do
25312   IFS=$as_save_IFS
25313   test -z "$as_dir" && as_dir=.
25314   for ac_exec_ext in '' $ac_executable_extensions; do
25315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25316     ac_cv_prog_SETFILE="SetFile"
25317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25318     break 2
25319   fi
25320 done
25321 done
25322
25323   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25324 fi
25325 fi
25326 SETFILE=$ac_cv_prog_SETFILE
25327 if test -n "$SETFILE"; then
25328   echo "$as_me:$LINENO: result: $SETFILE" >&5
25329 echo "${ECHO_T}$SETFILE" >&6
25330 else
25331   echo "$as_me:$LINENO: result: no" >&5
25332 echo "${ECHO_T}no" >&6
25333 fi
25334
25335     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25336     MACSETFILE="\$(SETFILE)"
25337     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25338 else
25339     if test "$wxUSE_PM" = 1; then
25340         MACRESCOMP="emxbind -ep"
25341     fi
25342 fi
25343
25344
25345 echo "$as_me:$LINENO: checking for mode_t" >&5
25346 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25347 if test "${ac_cv_type_mode_t+set}" = set; then
25348   echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350   cat >conftest.$ac_ext <<_ACEOF
25351 #line $LINENO "configure"
25352 /* confdefs.h.  */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h.  */
25357 $ac_includes_default
25358 int
25359 main ()
25360 {
25361 if ((mode_t *) 0)
25362   return 0;
25363 if (sizeof (mode_t))
25364   return 0;
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 rm -f conftest.$ac_objext
25370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25371   (eval $ac_compile) 2>&5
25372   ac_status=$?
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } &&
25375          { ac_try='test -s conftest.$ac_objext'
25376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377   (eval $ac_try) 2>&5
25378   ac_status=$?
25379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380   (exit $ac_status); }; }; then
25381   ac_cv_type_mode_t=yes
25382 else
25383   echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.$ac_ext >&5
25385
25386 ac_cv_type_mode_t=no
25387 fi
25388 rm -f conftest.$ac_objext conftest.$ac_ext
25389 fi
25390 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25391 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25392 if test $ac_cv_type_mode_t = yes; then
25393   :
25394 else
25395
25396 cat >>confdefs.h <<_ACEOF
25397 #define mode_t int
25398 _ACEOF
25399
25400 fi
25401
25402 echo "$as_me:$LINENO: checking for off_t" >&5
25403 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25404 if test "${ac_cv_type_off_t+set}" = set; then
25405   echo $ECHO_N "(cached) $ECHO_C" >&6
25406 else
25407   cat >conftest.$ac_ext <<_ACEOF
25408 #line $LINENO "configure"
25409 /* confdefs.h.  */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h.  */
25414 $ac_includes_default
25415 int
25416 main ()
25417 {
25418 if ((off_t *) 0)
25419   return 0;
25420 if (sizeof (off_t))
25421   return 0;
25422   ;
25423   return 0;
25424 }
25425 _ACEOF
25426 rm -f conftest.$ac_objext
25427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25428   (eval $ac_compile) 2>&5
25429   ac_status=$?
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } &&
25432          { ac_try='test -s conftest.$ac_objext'
25433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; }; then
25438   ac_cv_type_off_t=yes
25439 else
25440   echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25442
25443 ac_cv_type_off_t=no
25444 fi
25445 rm -f conftest.$ac_objext conftest.$ac_ext
25446 fi
25447 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25448 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25449 if test $ac_cv_type_off_t = yes; then
25450   :
25451 else
25452
25453 cat >>confdefs.h <<_ACEOF
25454 #define off_t long
25455 _ACEOF
25456
25457 fi
25458
25459 echo "$as_me:$LINENO: checking for pid_t" >&5
25460 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25461 if test "${ac_cv_type_pid_t+set}" = set; then
25462   echo $ECHO_N "(cached) $ECHO_C" >&6
25463 else
25464   cat >conftest.$ac_ext <<_ACEOF
25465 #line $LINENO "configure"
25466 /* confdefs.h.  */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h.  */
25471 $ac_includes_default
25472 int
25473 main ()
25474 {
25475 if ((pid_t *) 0)
25476   return 0;
25477 if (sizeof (pid_t))
25478   return 0;
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 rm -f conftest.$ac_objext
25484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25485   (eval $ac_compile) 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } &&
25489          { ac_try='test -s conftest.$ac_objext'
25490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491   (eval $ac_try) 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); }; }; then
25495   ac_cv_type_pid_t=yes
25496 else
25497   echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25499
25500 ac_cv_type_pid_t=no
25501 fi
25502 rm -f conftest.$ac_objext conftest.$ac_ext
25503 fi
25504 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25505 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25506 if test $ac_cv_type_pid_t = yes; then
25507   :
25508 else
25509
25510 cat >>confdefs.h <<_ACEOF
25511 #define pid_t int
25512 _ACEOF
25513
25514 fi
25515
25516 echo "$as_me:$LINENO: checking for size_t" >&5
25517 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25518 if test "${ac_cv_type_size_t+set}" = set; then
25519   echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521   cat >conftest.$ac_ext <<_ACEOF
25522 #line $LINENO "configure"
25523 /* confdefs.h.  */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h.  */
25528 $ac_includes_default
25529 int
25530 main ()
25531 {
25532 if ((size_t *) 0)
25533   return 0;
25534 if (sizeof (size_t))
25535   return 0;
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25542   (eval $ac_compile) 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); } &&
25546          { ac_try='test -s conftest.$ac_objext'
25547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548   (eval $ac_try) 2>&5
25549   ac_status=$?
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); }; }; then
25552   ac_cv_type_size_t=yes
25553 else
25554   echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25556
25557 ac_cv_type_size_t=no
25558 fi
25559 rm -f conftest.$ac_objext conftest.$ac_ext
25560 fi
25561 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25562 echo "${ECHO_T}$ac_cv_type_size_t" >&6
25563 if test $ac_cv_type_size_t = yes; then
25564   :
25565 else
25566
25567 cat >>confdefs.h <<_ACEOF
25568 #define size_t unsigned
25569 _ACEOF
25570
25571 fi
25572
25573 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25574 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25575 if test "${ac_cv_type_uid_t+set}" = set; then
25576   echo $ECHO_N "(cached) $ECHO_C" >&6
25577 else
25578   cat >conftest.$ac_ext <<_ACEOF
25579 #line $LINENO "configure"
25580 /* confdefs.h.  */
25581 _ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h.  */
25585 #include <sys/types.h>
25586
25587 _ACEOF
25588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25589   $EGREP "uid_t" >/dev/null 2>&1; then
25590   ac_cv_type_uid_t=yes
25591 else
25592   ac_cv_type_uid_t=no
25593 fi
25594 rm -f conftest*
25595
25596 fi
25597 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25598 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
25599 if test $ac_cv_type_uid_t = no; then
25600
25601 cat >>confdefs.h <<\_ACEOF
25602 #define uid_t int
25603 _ACEOF
25604
25605
25606 cat >>confdefs.h <<\_ACEOF
25607 #define gid_t int
25608 _ACEOF
25609
25610 fi
25611
25612
25613
25614
25615 ac_ext=cc
25616 ac_cpp='$CXXCPP $CPPFLAGS'
25617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25620
25621 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25622 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25623 if test "${wx_cv_size_t_is_uint+set}" = set; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626
25627                             cat >conftest.$ac_ext <<_ACEOF
25628 #line $LINENO "configure"
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634 #include <stddef.h>
25635 int
25636 main ()
25637 {
25638
25639             return 0; }
25640
25641             struct Foo { void foo(size_t); void foo(unsigned int); };
25642
25643             int bar() {
25644
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 rm -f conftest.$ac_objext
25650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651   (eval $ac_compile) 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); } &&
25655          { ac_try='test -s conftest.$ac_objext'
25656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657   (eval $ac_try) 2>&5
25658   ac_status=$?
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); }; }; then
25661   wx_cv_size_t_is_uint=no
25662 else
25663   echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25665
25666 wx_cv_size_t_is_uint=yes
25667
25668 fi
25669 rm -f conftest.$ac_objext conftest.$ac_ext
25670
25671
25672 fi
25673 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25674 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
25675
25676 if test "$wx_cv_size_t_is_uint" = "yes"; then
25677     cat >>confdefs.h <<\_ACEOF
25678 #define wxSIZE_T_IS_UINT 1
25679 _ACEOF
25680
25681 else
25682     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25683 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25684 if test "${wx_cv_size_t_is_ulong+set}" = set; then
25685   echo $ECHO_N "(cached) $ECHO_C" >&6
25686 else
25687   cat >conftest.$ac_ext <<_ACEOF
25688 #line $LINENO "configure"
25689 /* confdefs.h.  */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h.  */
25694 #include <stddef.h>
25695 int
25696 main ()
25697 {
25698
25699                 return 0; }
25700
25701                 struct Foo { void foo(size_t); void foo(unsigned long); };
25702
25703                 int bar() {
25704
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711   (eval $ac_compile) 2>&5
25712   ac_status=$?
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } &&
25715          { ac_try='test -s conftest.$ac_objext'
25716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717   (eval $ac_try) 2>&5
25718   ac_status=$?
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); }; }; then
25721   wx_cv_size_t_is_ulong=no
25722 else
25723   echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726 wx_cv_size_t_is_ulong=yes
25727
25728 fi
25729 rm -f conftest.$ac_objext conftest.$ac_ext
25730
25731 fi
25732 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25733 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
25734
25735     if test "$wx_cv_size_t_is_ulong" = "yes"; then
25736         cat >>confdefs.h <<\_ACEOF
25737 #define wxSIZE_T_IS_ULONG 1
25738 _ACEOF
25739
25740     fi
25741 fi
25742
25743 ac_ext=c
25744 ac_cpp='$CPP $CPPFLAGS'
25745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25748
25749
25750
25751 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25752 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25753 if test "${wx_cv_struct_pw_gecos+set}" = set; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756
25757         cat >conftest.$ac_ext <<_ACEOF
25758 #line $LINENO "configure"
25759 /* confdefs.h.  */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h.  */
25764 #include <pwd.h>
25765 int
25766 main ()
25767 {
25768
25769                 char *p;
25770                 struct passwd *pw;
25771                 p = pw->pw_gecos;
25772
25773   ;
25774   return 0;
25775 }
25776 _ACEOF
25777 rm -f conftest.$ac_objext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25779   (eval $ac_compile) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); } &&
25783          { ac_try='test -s conftest.$ac_objext'
25784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785   (eval $ac_try) 2>&5
25786   ac_status=$?
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); }; }; then
25789
25790                 wx_cv_struct_pw_gecos=yes
25791
25792 else
25793   echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796
25797                 wx_cv_struct_pw_gecos=no
25798
25799
25800 fi
25801 rm -f conftest.$ac_objext conftest.$ac_ext
25802
25803
25804 fi
25805 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25806 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
25807
25808 if test "$wx_cv_struct_pw_gecos" = "yes"; then
25809     cat >>confdefs.h <<\_ACEOF
25810 #define HAVE_PW_GECOS 1
25811 _ACEOF
25812
25813 fi
25814
25815
25816 if test "$wx_cv_sizeof_wchar_t" != "0"; then
25817     cat >>confdefs.h <<\_ACEOF
25818 #define wxUSE_WCHAR_T 1
25819 _ACEOF
25820
25821
25822         WCSLEN_FOUND=0
25823     WCHAR_LINK=
25824
25825 for ac_func in wcslen
25826 do
25827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25828 echo "$as_me:$LINENO: checking for $ac_func" >&5
25829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25830 if eval "test \"\${$as_ac_var+set}\" = set"; then
25831   echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833   cat >conftest.$ac_ext <<_ACEOF
25834 #line $LINENO "configure"
25835 /* confdefs.h.  */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h.  */
25840 /* System header to define __stub macros and hopefully few prototypes,
25841     which can conflict with char $ac_func (); below.
25842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25843     <limits.h> exists even on freestanding compilers.  */
25844 #ifdef __STDC__
25845 # include <limits.h>
25846 #else
25847 # include <assert.h>
25848 #endif
25849 /* Override any gcc2 internal prototype to avoid an error.  */
25850 #ifdef __cplusplus
25851 extern "C"
25852 {
25853 #endif
25854 /* We use char because int might match the return type of a gcc2
25855    builtin and then its argument prototype would still apply.  */
25856 char $ac_func ();
25857 /* The GNU C library defines this for functions which it implements
25858     to always fail with ENOSYS.  Some functions are actually named
25859     something starting with __ and the normal name is an alias.  */
25860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25861 choke me
25862 #else
25863 char (*f) () = $ac_func;
25864 #endif
25865 #ifdef __cplusplus
25866 }
25867 #endif
25868
25869 int
25870 main ()
25871 {
25872 return f != $ac_func;
25873   ;
25874   return 0;
25875 }
25876 _ACEOF
25877 rm -f conftest.$ac_objext conftest$ac_exeext
25878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25879   (eval $ac_link) 2>&5
25880   ac_status=$?
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } &&
25883          { ac_try='test -s conftest$ac_exeext'
25884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885   (eval $ac_try) 2>&5
25886   ac_status=$?
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); }; }; then
25889   eval "$as_ac_var=yes"
25890 else
25891   echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894 eval "$as_ac_var=no"
25895 fi
25896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25897 fi
25898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25900 if test `eval echo '${'$as_ac_var'}'` = yes; then
25901   cat >>confdefs.h <<_ACEOF
25902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25903 _ACEOF
25904  WCSLEN_FOUND=1
25905 fi
25906 done
25907
25908
25909     if test "$WCSLEN_FOUND" = 0; then
25910         if test "$TOOLKIT" = "MSW"; then
25911             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25912 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25913 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25914   echo $ECHO_N "(cached) $ECHO_C" >&6
25915 else
25916   ac_check_lib_save_LIBS=$LIBS
25917 LIBS="-lmsvcrt  $LIBS"
25918 cat >conftest.$ac_ext <<_ACEOF
25919 #line $LINENO "configure"
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925
25926 /* Override any gcc2 internal prototype to avoid an error.  */
25927 #ifdef __cplusplus
25928 extern "C"
25929 #endif
25930 /* We use char because int might match the return type of a gcc2
25931    builtin and then its argument prototype would still apply.  */
25932 char wcslen ();
25933 int
25934 main ()
25935 {
25936 wcslen ();
25937   ;
25938   return 0;
25939 }
25940 _ACEOF
25941 rm -f conftest.$ac_objext conftest$ac_exeext
25942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25943   (eval $ac_link) 2>&5
25944   ac_status=$?
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } &&
25947          { ac_try='test -s conftest$ac_exeext'
25948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949   (eval $ac_try) 2>&5
25950   ac_status=$?
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); }; }; then
25953   ac_cv_lib_msvcrt_wcslen=yes
25954 else
25955   echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25957
25958 ac_cv_lib_msvcrt_wcslen=no
25959 fi
25960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25961 LIBS=$ac_check_lib_save_LIBS
25962 fi
25963 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
25964 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
25965 if test $ac_cv_lib_msvcrt_wcslen = yes; then
25966   WCHAR_OK=1
25967 fi
25968
25969         else
25970             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
25971 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
25972 if test "${ac_cv_lib_w_wcslen+set}" = set; then
25973   echo $ECHO_N "(cached) $ECHO_C" >&6
25974 else
25975   ac_check_lib_save_LIBS=$LIBS
25976 LIBS="-lw  $LIBS"
25977 cat >conftest.$ac_ext <<_ACEOF
25978 #line $LINENO "configure"
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984
25985 /* Override any gcc2 internal prototype to avoid an error.  */
25986 #ifdef __cplusplus
25987 extern "C"
25988 #endif
25989 /* We use char because int might match the return type of a gcc2
25990    builtin and then its argument prototype would still apply.  */
25991 char wcslen ();
25992 int
25993 main ()
25994 {
25995 wcslen ();
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 rm -f conftest.$ac_objext conftest$ac_exeext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26002   (eval $ac_link) 2>&5
26003   ac_status=$?
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); } &&
26006          { ac_try='test -s conftest$ac_exeext'
26007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008   (eval $ac_try) 2>&5
26009   ac_status=$?
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); }; }; then
26012   ac_cv_lib_w_wcslen=yes
26013 else
26014   echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 ac_cv_lib_w_wcslen=no
26018 fi
26019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26020 LIBS=$ac_check_lib_save_LIBS
26021 fi
26022 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26023 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26024 if test $ac_cv_lib_w_wcslen = yes; then
26025
26026                             WCHAR_LINK=" -lw"
26027                             WCSLEN_FOUND=1
26028
26029 fi
26030
26031         fi
26032     fi
26033
26034     if test "$WCSLEN_FOUND" = 1; then
26035         cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_WCSLEN 1
26037 _ACEOF
26038
26039     fi
26040
26041
26042 for ac_func in wcsrtombs
26043 do
26044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26045 echo "$as_me:$LINENO: checking for $ac_func" >&5
26046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26047 if eval "test \"\${$as_ac_var+set}\" = set"; then
26048   echo $ECHO_N "(cached) $ECHO_C" >&6
26049 else
26050   cat >conftest.$ac_ext <<_ACEOF
26051 #line $LINENO "configure"
26052 /* confdefs.h.  */
26053 _ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h.  */
26057 /* System header to define __stub macros and hopefully few prototypes,
26058     which can conflict with char $ac_func (); below.
26059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26060     <limits.h> exists even on freestanding compilers.  */
26061 #ifdef __STDC__
26062 # include <limits.h>
26063 #else
26064 # include <assert.h>
26065 #endif
26066 /* Override any gcc2 internal prototype to avoid an error.  */
26067 #ifdef __cplusplus
26068 extern "C"
26069 {
26070 #endif
26071 /* We use char because int might match the return type of a gcc2
26072    builtin and then its argument prototype would still apply.  */
26073 char $ac_func ();
26074 /* The GNU C library defines this for functions which it implements
26075     to always fail with ENOSYS.  Some functions are actually named
26076     something starting with __ and the normal name is an alias.  */
26077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26078 choke me
26079 #else
26080 char (*f) () = $ac_func;
26081 #endif
26082 #ifdef __cplusplus
26083 }
26084 #endif
26085
26086 int
26087 main ()
26088 {
26089 return f != $ac_func;
26090   ;
26091   return 0;
26092 }
26093 _ACEOF
26094 rm -f conftest.$ac_objext conftest$ac_exeext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26096   (eval $ac_link) 2>&5
26097   ac_status=$?
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -s conftest$ac_exeext'
26101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102   (eval $ac_try) 2>&5
26103   ac_status=$?
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; }; then
26106   eval "$as_ac_var=yes"
26107 else
26108   echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111 eval "$as_ac_var=no"
26112 fi
26113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26114 fi
26115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26117 if test `eval echo '${'$as_ac_var'}'` = yes; then
26118   cat >>confdefs.h <<_ACEOF
26119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26120 _ACEOF
26121
26122 fi
26123 done
26124
26125 else
26126     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26127 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
26128 fi
26129
26130
26131
26132 ac_ext=cc
26133 ac_cpp='$CXXCPP $CPPFLAGS'
26134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26137
26138
26139
26140 for ac_func in vsnprintf
26141 do
26142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26143 echo "$as_me:$LINENO: checking for $ac_func" >&5
26144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26145 if eval "test \"\${$as_ac_var+set}\" = set"; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148   cat >conftest.$ac_ext <<_ACEOF
26149 #line $LINENO "configure"
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155 /* System header to define __stub macros and hopefully few prototypes,
26156     which can conflict with char $ac_func (); below.
26157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26158     <limits.h> exists even on freestanding compilers.  */
26159 #ifdef __STDC__
26160 # include <limits.h>
26161 #else
26162 # include <assert.h>
26163 #endif
26164 /* Override any gcc2 internal prototype to avoid an error.  */
26165 #ifdef __cplusplus
26166 extern "C"
26167 {
26168 #endif
26169 /* We use char because int might match the return type of a gcc2
26170    builtin and then its argument prototype would still apply.  */
26171 char $ac_func ();
26172 /* The GNU C library defines this for functions which it implements
26173     to always fail with ENOSYS.  Some functions are actually named
26174     something starting with __ and the normal name is an alias.  */
26175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26176 choke me
26177 #else
26178 char (*f) () = $ac_func;
26179 #endif
26180 #ifdef __cplusplus
26181 }
26182 #endif
26183
26184 int
26185 main ()
26186 {
26187 return f != $ac_func;
26188   ;
26189   return 0;
26190 }
26191 _ACEOF
26192 rm -f conftest.$ac_objext conftest$ac_exeext
26193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26194   (eval $ac_link) 2>&5
26195   ac_status=$?
26196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); } &&
26198          { ac_try='test -s conftest$ac_exeext'
26199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200   (eval $ac_try) 2>&5
26201   ac_status=$?
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); }; }; then
26204   eval "$as_ac_var=yes"
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 eval "$as_ac_var=no"
26210 fi
26211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26212 fi
26213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26215 if test `eval echo '${'$as_ac_var'}'` = yes; then
26216   cat >>confdefs.h <<_ACEOF
26217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26218 _ACEOF
26219
26220 fi
26221 done
26222
26223
26224 if test "$ac_cv_func_vsnprintf" = "yes"; then
26225         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26226 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26227 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26228   echo $ECHO_N "(cached) $ECHO_C" >&6
26229 else
26230
26231             cat >conftest.$ac_ext <<_ACEOF
26232 #line $LINENO "configure"
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238
26239                     #include <stdio.h>
26240                     #include <stdarg.h>
26241
26242 int
26243 main ()
26244 {
26245
26246                     char *buf;
26247                     va_list ap;
26248                     vsnprintf(buf, 10u, "%s", ap);
26249
26250   ;
26251   return 0;
26252 }
26253 _ACEOF
26254 rm -f conftest.$ac_objext
26255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26256   (eval $ac_compile) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } &&
26260          { ac_try='test -s conftest.$ac_objext'
26261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262   (eval $ac_try) 2>&5
26263   ac_status=$?
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); }; }; then
26266   wx_cv_func_vsnprintf_decl=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271 wx_cv_func_vsnprintf_decl=no
26272
26273 fi
26274 rm -f conftest.$ac_objext conftest.$ac_ext
26275
26276
26277 fi
26278 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26279 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
26280
26281     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
26282         cat >>confdefs.h <<\_ACEOF
26283 #define HAVE_VSNPRINTF_DECL 1
26284 _ACEOF
26285
26286     fi
26287 fi
26288
26289 if test "$wxUSE_UNICODE" = yes; then
26290
26291
26292
26293 for ac_func in fputwc wprintf vswprintf
26294 do
26295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26296 echo "$as_me:$LINENO: checking for $ac_func" >&5
26297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26298 if eval "test \"\${$as_ac_var+set}\" = set"; then
26299   echo $ECHO_N "(cached) $ECHO_C" >&6
26300 else
26301   cat >conftest.$ac_ext <<_ACEOF
26302 #line $LINENO "configure"
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308 /* System header to define __stub macros and hopefully few prototypes,
26309     which can conflict with char $ac_func (); below.
26310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26311     <limits.h> exists even on freestanding compilers.  */
26312 #ifdef __STDC__
26313 # include <limits.h>
26314 #else
26315 # include <assert.h>
26316 #endif
26317 /* Override any gcc2 internal prototype to avoid an error.  */
26318 #ifdef __cplusplus
26319 extern "C"
26320 {
26321 #endif
26322 /* We use char because int might match the return type of a gcc2
26323    builtin and then its argument prototype would still apply.  */
26324 char $ac_func ();
26325 /* The GNU C library defines this for functions which it implements
26326     to always fail with ENOSYS.  Some functions are actually named
26327     something starting with __ and the normal name is an alias.  */
26328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26329 choke me
26330 #else
26331 char (*f) () = $ac_func;
26332 #endif
26333 #ifdef __cplusplus
26334 }
26335 #endif
26336
26337 int
26338 main ()
26339 {
26340 return f != $ac_func;
26341   ;
26342   return 0;
26343 }
26344 _ACEOF
26345 rm -f conftest.$ac_objext conftest$ac_exeext
26346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26347   (eval $ac_link) 2>&5
26348   ac_status=$?
26349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350   (exit $ac_status); } &&
26351          { ac_try='test -s conftest$ac_exeext'
26352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353   (eval $ac_try) 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); }; }; then
26357   eval "$as_ac_var=yes"
26358 else
26359   echo "$as_me: failed program was:" >&5
26360 sed 's/^/| /' conftest.$ac_ext >&5
26361
26362 eval "$as_ac_var=no"
26363 fi
26364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26365 fi
26366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26368 if test `eval echo '${'$as_ac_var'}'` = yes; then
26369   cat >>confdefs.h <<_ACEOF
26370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26371 _ACEOF
26372
26373 fi
26374 done
26375
26376
26377                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26378 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26379     cat >conftest.$ac_ext <<_ACEOF
26380 #line $LINENO "configure"
26381 /* confdefs.h.  */
26382 _ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h.  */
26386 #include <wchar.h>
26387 int
26388 main ()
26389 {
26390 &_vsnwprintf;
26391   ;
26392   return 0;
26393 }
26394 _ACEOF
26395 rm -f conftest.$ac_objext
26396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26397   (eval $ac_compile) 2>&5
26398   ac_status=$?
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } &&
26401          { ac_try='test -s conftest.$ac_objext'
26402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403   (eval $ac_try) 2>&5
26404   ac_status=$?
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); }; }; then
26407   echo "$as_me:$LINENO: result: yes" >&5
26408 echo "${ECHO_T}yes" >&6
26409                     cat >>confdefs.h <<\_ACEOF
26410 #define HAVE__VSNWPRINTF 1
26411 _ACEOF
26412
26413 else
26414   echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417 echo "$as_me:$LINENO: result: no" >&5
26418 echo "${ECHO_T}no" >&6
26419 fi
26420 rm -f conftest.$ac_objext conftest.$ac_ext;
26421 fi
26422
26423 ac_ext=c
26424 ac_cpp='$CPP $CPPFLAGS'
26425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26428
26429
26430
26431
26432 if test "$TOOLKIT" != "MSW"; then
26433
26434
26435
26436
26437 ac_ext=cc
26438 ac_cpp='$CXXCPP $CPPFLAGS'
26439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26442
26443
26444
26445
26446 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26447 if test "${with_libiconv_prefix+set}" = set; then
26448   withval="$with_libiconv_prefix"
26449
26450     for dir in `echo "$withval" | tr : ' '`; do
26451       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26452       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26453     done
26454
26455 fi;
26456
26457   echo "$as_me:$LINENO: checking for iconv" >&5
26458 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26459 if test "${am_cv_func_iconv+set}" = set; then
26460   echo $ECHO_N "(cached) $ECHO_C" >&6
26461 else
26462
26463     am_cv_func_iconv="no, consider installing GNU libiconv"
26464     am_cv_lib_iconv=no
26465     cat >conftest.$ac_ext <<_ACEOF
26466 #line $LINENO "configure"
26467 /* confdefs.h.  */
26468 _ACEOF
26469 cat confdefs.h >>conftest.$ac_ext
26470 cat >>conftest.$ac_ext <<_ACEOF
26471 /* end confdefs.h.  */
26472 #include <stdlib.h>
26473 #include <iconv.h>
26474 int
26475 main ()
26476 {
26477 iconv_t cd = iconv_open("","");
26478        iconv(cd,NULL,NULL,NULL,NULL);
26479        iconv_close(cd);
26480   ;
26481   return 0;
26482 }
26483 _ACEOF
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26486   (eval $ac_link) 2>&5
26487   ac_status=$?
26488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489   (exit $ac_status); } &&
26490          { ac_try='test -s conftest$ac_exeext'
26491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492   (eval $ac_try) 2>&5
26493   ac_status=$?
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); }; }; then
26496   am_cv_func_iconv=yes
26497 else
26498   echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26500
26501 fi
26502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26503     if test "$am_cv_func_iconv" != yes; then
26504       am_save_LIBS="$LIBS"
26505       LIBS="$LIBS -liconv"
26506       cat >conftest.$ac_ext <<_ACEOF
26507 #line $LINENO "configure"
26508 /* confdefs.h.  */
26509 _ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h.  */
26513 #include <stdlib.h>
26514 #include <iconv.h>
26515 int
26516 main ()
26517 {
26518 iconv_t cd = iconv_open("","");
26519          iconv(cd,NULL,NULL,NULL,NULL);
26520          iconv_close(cd);
26521   ;
26522   return 0;
26523 }
26524 _ACEOF
26525 rm -f conftest.$ac_objext conftest$ac_exeext
26526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26527   (eval $ac_link) 2>&5
26528   ac_status=$?
26529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530   (exit $ac_status); } &&
26531          { ac_try='test -s conftest$ac_exeext'
26532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533   (eval $ac_try) 2>&5
26534   ac_status=$?
26535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); }; }; then
26537   am_cv_lib_iconv=yes
26538         am_cv_func_iconv=yes
26539 else
26540   echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26542
26543 fi
26544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26545       LIBS="$am_save_LIBS"
26546     fi
26547
26548 fi
26549 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26550 echo "${ECHO_T}$am_cv_func_iconv" >&6
26551   if test "$am_cv_func_iconv" = yes; then
26552
26553 cat >>confdefs.h <<\_ACEOF
26554 #define HAVE_ICONV 1
26555 _ACEOF
26556
26557     echo "$as_me:$LINENO: checking if iconv needs const" >&5
26558 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26559 if test "${wx_cv_func_iconv_const+set}" = set; then
26560   echo $ECHO_N "(cached) $ECHO_C" >&6
26561 else
26562   cat >conftest.$ac_ext <<_ACEOF
26563 #line $LINENO "configure"
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569
26570 #include <stdlib.h>
26571 #include <iconv.h>
26572 extern
26573 #ifdef __cplusplus
26574 "C"
26575 #endif
26576 #if defined(__STDC__) || defined(__cplusplus)
26577 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26578 #else
26579 size_t iconv();
26580 #endif
26581
26582 int
26583 main ()
26584 {
26585
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 rm -f conftest.$ac_objext
26591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26592   (eval $ac_compile) 2>&5
26593   ac_status=$?
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } &&
26596          { ac_try='test -s conftest.$ac_objext'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; }; then
26602   wx_cv_func_iconv_const="no"
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607 wx_cv_func_iconv_const="yes"
26608
26609 fi
26610 rm -f conftest.$ac_objext conftest.$ac_ext
26611
26612 fi
26613 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26614 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
26615
26616     iconv_const=
26617     if test "x$wx_cv_func_iconv_const" = "xyes"; then
26618         iconv_const="const"
26619     fi
26620
26621
26622 cat >>confdefs.h <<_ACEOF
26623 #define ICONV_CONST $iconv_const
26624 _ACEOF
26625
26626   fi
26627   LIBICONV=
26628   if test "$am_cv_lib_iconv" = yes; then
26629     LIBICONV="-liconv"
26630   fi
26631
26632
26633 LIBS="$LIBICONV $LIBS"
26634 ac_ext=c
26635 ac_cpp='$CPP $CPPFLAGS'
26636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26639
26640
26641 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
26642
26643 for ac_func in sigaction
26644 do
26645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26646 echo "$as_me:$LINENO: checking for $ac_func" >&5
26647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26648 if eval "test \"\${$as_ac_var+set}\" = set"; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651   cat >conftest.$ac_ext <<_ACEOF
26652 #line $LINENO "configure"
26653 /* confdefs.h.  */
26654 _ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h.  */
26658 /* System header to define __stub macros and hopefully few prototypes,
26659     which can conflict with char $ac_func (); below.
26660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26661     <limits.h> exists even on freestanding compilers.  */
26662 #ifdef __STDC__
26663 # include <limits.h>
26664 #else
26665 # include <assert.h>
26666 #endif
26667 /* Override any gcc2 internal prototype to avoid an error.  */
26668 #ifdef __cplusplus
26669 extern "C"
26670 {
26671 #endif
26672 /* We use char because int might match the return type of a gcc2
26673    builtin and then its argument prototype would still apply.  */
26674 char $ac_func ();
26675 /* The GNU C library defines this for functions which it implements
26676     to always fail with ENOSYS.  Some functions are actually named
26677     something starting with __ and the normal name is an alias.  */
26678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26679 choke me
26680 #else
26681 char (*f) () = $ac_func;
26682 #endif
26683 #ifdef __cplusplus
26684 }
26685 #endif
26686
26687 int
26688 main ()
26689 {
26690 return f != $ac_func;
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26697   (eval $ac_link) 2>&5
26698   ac_status=$?
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } &&
26701          { ac_try='test -s conftest$ac_exeext'
26702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703   (eval $ac_try) 2>&5
26704   ac_status=$?
26705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706   (exit $ac_status); }; }; then
26707   eval "$as_ac_var=yes"
26708 else
26709   echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26711
26712 eval "$as_ac_var=no"
26713 fi
26714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26715 fi
26716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26718 if test `eval echo '${'$as_ac_var'}'` = yes; then
26719   cat >>confdefs.h <<_ACEOF
26720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26721 _ACEOF
26722
26723 fi
26724 done
26725
26726
26727     if test "$ac_cv_func_sigaction" = "no"; then
26728         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26729 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
26730         wxUSE_ON_FATAL_EXCEPTION=no
26731     fi
26732
26733     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
26734
26735
26736       ac_ext=cc
26737 ac_cpp='$CXXCPP $CPPFLAGS'
26738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26741
26742
26743       echo "$as_me:$LINENO: checking for sa_handler type" >&5
26744 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26745 if test "${wx_cv_type_sa_handler+set}" = set; then
26746   echo $ECHO_N "(cached) $ECHO_C" >&6
26747 else
26748
26749         cat >conftest.$ac_ext <<_ACEOF
26750 #line $LINENO "configure"
26751 /* confdefs.h.  */
26752 _ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h.  */
26756 #include <signal.h>
26757 int
26758 main ()
26759 {
26760
26761                         extern void testSigHandler(int);
26762
26763                         struct sigaction sa;
26764                         sa.sa_handler = testSigHandler;
26765
26766   ;
26767   return 0;
26768 }
26769 _ACEOF
26770 rm -f conftest.$ac_objext
26771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26772   (eval $ac_compile) 2>&5
26773   ac_status=$?
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); } &&
26776          { ac_try='test -s conftest.$ac_objext'
26777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778   (eval $ac_try) 2>&5
26779   ac_status=$?
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); }; }; then
26782
26783                         wx_cv_type_sa_handler=int
26784
26785 else
26786   echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26788
26789
26790                         wx_cv_type_sa_handler=void
26791
26792 fi
26793 rm -f conftest.$ac_objext conftest.$ac_ext
26794
26795 fi
26796 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26797 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
26798
26799       ac_ext=c
26800 ac_cpp='$CPP $CPPFLAGS'
26801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26804
26805
26806       cat >>confdefs.h <<_ACEOF
26807 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
26808 _ACEOF
26809
26810     fi
26811 fi
26812
26813
26814
26815 for ac_func in mkstemp mktemp
26816 do
26817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26818 echo "$as_me:$LINENO: checking for $ac_func" >&5
26819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26820 if eval "test \"\${$as_ac_var+set}\" = set"; then
26821   echo $ECHO_N "(cached) $ECHO_C" >&6
26822 else
26823   cat >conftest.$ac_ext <<_ACEOF
26824 #line $LINENO "configure"
26825 /* confdefs.h.  */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h.  */
26830 /* System header to define __stub macros and hopefully few prototypes,
26831     which can conflict with char $ac_func (); below.
26832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26833     <limits.h> exists even on freestanding compilers.  */
26834 #ifdef __STDC__
26835 # include <limits.h>
26836 #else
26837 # include <assert.h>
26838 #endif
26839 /* Override any gcc2 internal prototype to avoid an error.  */
26840 #ifdef __cplusplus
26841 extern "C"
26842 {
26843 #endif
26844 /* We use char because int might match the return type of a gcc2
26845    builtin and then its argument prototype would still apply.  */
26846 char $ac_func ();
26847 /* The GNU C library defines this for functions which it implements
26848     to always fail with ENOSYS.  Some functions are actually named
26849     something starting with __ and the normal name is an alias.  */
26850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26851 choke me
26852 #else
26853 char (*f) () = $ac_func;
26854 #endif
26855 #ifdef __cplusplus
26856 }
26857 #endif
26858
26859 int
26860 main ()
26861 {
26862 return f != $ac_func;
26863   ;
26864   return 0;
26865 }
26866 _ACEOF
26867 rm -f conftest.$ac_objext conftest$ac_exeext
26868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26869   (eval $ac_link) 2>&5
26870   ac_status=$?
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } &&
26873          { ac_try='test -s conftest$ac_exeext'
26874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875   (eval $ac_try) 2>&5
26876   ac_status=$?
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); }; }; then
26879   eval "$as_ac_var=yes"
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 eval "$as_ac_var=no"
26885 fi
26886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26887 fi
26888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26890 if test `eval echo '${'$as_ac_var'}'` = yes; then
26891   cat >>confdefs.h <<_ACEOF
26892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26893 _ACEOF
26894  break
26895 fi
26896 done
26897
26898
26899 echo "$as_me:$LINENO: checking for statfs" >&5
26900 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26901 if test "${wx_cv_func_statfs+set}" = set; then
26902   echo $ECHO_N "(cached) $ECHO_C" >&6
26903 else
26904   cat >conftest.$ac_ext <<_ACEOF
26905 #line $LINENO "configure"
26906 /* confdefs.h.  */
26907 _ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h.  */
26911
26912              #if defined(__BSD__)
26913                #include <sys/param.h>
26914                #include <sys/mount.h>
26915              #else
26916                #include <sys/vfs.h>
26917              #endif
26918
26919 int
26920 main ()
26921 {
26922
26923              long l;
26924              struct statfs fs;
26925              statfs("/", &fs);
26926              l = fs.f_bsize;
26927              l += fs.f_blocks;
26928              l += fs.f_bavail;
26929
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 rm -f conftest.$ac_objext
26935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26936   (eval $ac_compile) 2>&5
26937   ac_status=$?
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } &&
26940          { ac_try='test -s conftest.$ac_objext'
26941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942   (eval $ac_try) 2>&5
26943   ac_status=$?
26944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945   (exit $ac_status); }; }; then
26946
26947              wx_cv_func_statfs=yes
26948
26949 else
26950   echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26952
26953
26954              wx_cv_func_statfs=no
26955
26956
26957 fi
26958 rm -f conftest.$ac_objext conftest.$ac_ext
26959
26960 fi
26961 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
26962 echo "${ECHO_T}$wx_cv_func_statfs" >&6
26963
26964 if test "$wx_cv_func_statfs" = "yes"; then
26965     wx_cv_type_statvfs_t="struct statfs"
26966     cat >>confdefs.h <<\_ACEOF
26967 #define HAVE_STATFS 1
26968 _ACEOF
26969
26970 else
26971     echo "$as_me:$LINENO: checking for statvfs" >&5
26972 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
26973 if test "${wx_cv_func_statvfs+set}" = set; then
26974   echo $ECHO_N "(cached) $ECHO_C" >&6
26975 else
26976   cat >conftest.$ac_ext <<_ACEOF
26977 #line $LINENO "configure"
26978 /* confdefs.h.  */
26979 _ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h.  */
26983
26984                 #include <stddef.h>
26985                 #include <sys/statvfs.h>
26986
26987 int
26988 main ()
26989 {
26990
26991                 statvfs("/", NULL);
26992
26993   ;
26994   return 0;
26995 }
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26999   (eval $ac_compile) 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); } &&
27003          { ac_try='test -s conftest.$ac_objext'
27004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27005   (eval $ac_try) 2>&5
27006   ac_status=$?
27007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008   (exit $ac_status); }; }; then
27009   wx_cv_func_statvfs=yes
27010 else
27011   echo "$as_me: failed program was:" >&5
27012 sed 's/^/| /' conftest.$ac_ext >&5
27013
27014 wx_cv_func_statvfs=no
27015
27016 fi
27017 rm -f conftest.$ac_objext conftest.$ac_ext
27018
27019 fi
27020 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27021 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
27022
27023     if test "$wx_cv_func_statvfs" = "yes"; then
27024
27025
27026         ac_ext=cc
27027 ac_cpp='$CXXCPP $CPPFLAGS'
27028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27031
27032
27033         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27034 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27035 if test "${wx_cv_type_statvfs_t+set}" = set; then
27036   echo $ECHO_N "(cached) $ECHO_C" >&6
27037 else
27038   cat >conftest.$ac_ext <<_ACEOF
27039 #line $LINENO "configure"
27040 /* confdefs.h.  */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h.  */
27045
27046                     #include <sys/statvfs.h>
27047
27048 int
27049 main ()
27050 {
27051
27052                     long l;
27053                     statvfs_t fs;
27054                     statvfs("/", &fs);
27055                     l = fs.f_bsize;
27056                     l += fs.f_blocks;
27057                     l += fs.f_bavail;
27058
27059   ;
27060   return 0;
27061 }
27062 _ACEOF
27063 rm -f conftest.$ac_objext
27064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27065   (eval $ac_compile) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } &&
27069          { ac_try='test -s conftest.$ac_objext'
27070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071   (eval $ac_try) 2>&5
27072   ac_status=$?
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); }; }; then
27075   wx_cv_type_statvfs_t=statvfs_t
27076 else
27077   echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27079
27080
27081                     cat >conftest.$ac_ext <<_ACEOF
27082 #line $LINENO "configure"
27083 /* confdefs.h.  */
27084 _ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h.  */
27088
27089                             #include <sys/statvfs.h>
27090
27091 int
27092 main ()
27093 {
27094
27095                             long l;
27096                             struct statvfs fs;
27097                             statvfs("/", &fs);
27098                             l = fs.f_bsize;
27099                             l += fs.f_blocks;
27100                             l += fs.f_bavail;
27101
27102   ;
27103   return 0;
27104 }
27105 _ACEOF
27106 rm -f conftest.$ac_objext
27107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27108   (eval $ac_compile) 2>&5
27109   ac_status=$?
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); } &&
27112          { ac_try='test -s conftest.$ac_objext'
27113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114   (eval $ac_try) 2>&5
27115   ac_status=$?
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); }; }; then
27118   wx_cv_type_statvfs_t="struct statvfs"
27119 else
27120   echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27122
27123 wx_cv_type_statvfs_t="unknown"
27124
27125 fi
27126 rm -f conftest.$ac_objext conftest.$ac_ext
27127
27128
27129 fi
27130 rm -f conftest.$ac_objext conftest.$ac_ext
27131
27132 fi
27133 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27134 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
27135
27136         ac_ext=c
27137 ac_cpp='$CPP $CPPFLAGS'
27138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27141
27142
27143         if test "$wx_cv_type_statvfs_t" != "unknown"; then
27144             cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_STATVFS 1
27146 _ACEOF
27147
27148         fi
27149     else
27150                 wx_cv_type_statvfs_t="unknown"
27151     fi
27152 fi
27153
27154 if test "$wx_cv_type_statvfs_t" != "unknown"; then
27155     cat >>confdefs.h <<_ACEOF
27156 #define WX_STATFS_T $wx_cv_type_statvfs_t
27157 _ACEOF
27158
27159 else
27160     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27161 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
27162 fi
27163
27164 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
27165
27166
27167 for ac_func in fcntl flock
27168 do
27169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27170 echo "$as_me:$LINENO: checking for $ac_func" >&5
27171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27172 if eval "test \"\${$as_ac_var+set}\" = set"; then
27173   echo $ECHO_N "(cached) $ECHO_C" >&6
27174 else
27175   cat >conftest.$ac_ext <<_ACEOF
27176 #line $LINENO "configure"
27177 /* confdefs.h.  */
27178 _ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h.  */
27182 /* System header to define __stub macros and hopefully few prototypes,
27183     which can conflict with char $ac_func (); below.
27184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27185     <limits.h> exists even on freestanding compilers.  */
27186 #ifdef __STDC__
27187 # include <limits.h>
27188 #else
27189 # include <assert.h>
27190 #endif
27191 /* Override any gcc2 internal prototype to avoid an error.  */
27192 #ifdef __cplusplus
27193 extern "C"
27194 {
27195 #endif
27196 /* We use char because int might match the return type of a gcc2
27197    builtin and then its argument prototype would still apply.  */
27198 char $ac_func ();
27199 /* The GNU C library defines this for functions which it implements
27200     to always fail with ENOSYS.  Some functions are actually named
27201     something starting with __ and the normal name is an alias.  */
27202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27203 choke me
27204 #else
27205 char (*f) () = $ac_func;
27206 #endif
27207 #ifdef __cplusplus
27208 }
27209 #endif
27210
27211 int
27212 main ()
27213 {
27214 return f != $ac_func;
27215   ;
27216   return 0;
27217 }
27218 _ACEOF
27219 rm -f conftest.$ac_objext conftest$ac_exeext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27221   (eval $ac_link) 2>&5
27222   ac_status=$?
27223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224   (exit $ac_status); } &&
27225          { ac_try='test -s conftest$ac_exeext'
27226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227   (eval $ac_try) 2>&5
27228   ac_status=$?
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); }; }; then
27231   eval "$as_ac_var=yes"
27232 else
27233   echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.$ac_ext >&5
27235
27236 eval "$as_ac_var=no"
27237 fi
27238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27239 fi
27240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27242 if test `eval echo '${'$as_ac_var'}'` = yes; then
27243   cat >>confdefs.h <<_ACEOF
27244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27245 _ACEOF
27246  break
27247 fi
27248 done
27249
27250
27251     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
27252         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27253 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
27254         wxUSE_SNGLINST_CHECKER=no
27255     fi
27256 fi
27257
27258
27259 for ac_func in timegm
27260 do
27261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27262 echo "$as_me:$LINENO: checking for $ac_func" >&5
27263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27264 if eval "test \"\${$as_ac_var+set}\" = set"; then
27265   echo $ECHO_N "(cached) $ECHO_C" >&6
27266 else
27267   cat >conftest.$ac_ext <<_ACEOF
27268 #line $LINENO "configure"
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 /* System header to define __stub macros and hopefully few prototypes,
27275     which can conflict with char $ac_func (); below.
27276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27277     <limits.h> exists even on freestanding compilers.  */
27278 #ifdef __STDC__
27279 # include <limits.h>
27280 #else
27281 # include <assert.h>
27282 #endif
27283 /* Override any gcc2 internal prototype to avoid an error.  */
27284 #ifdef __cplusplus
27285 extern "C"
27286 {
27287 #endif
27288 /* We use char because int might match the return type of a gcc2
27289    builtin and then its argument prototype would still apply.  */
27290 char $ac_func ();
27291 /* The GNU C library defines this for functions which it implements
27292     to always fail with ENOSYS.  Some functions are actually named
27293     something starting with __ and the normal name is an alias.  */
27294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27295 choke me
27296 #else
27297 char (*f) () = $ac_func;
27298 #endif
27299 #ifdef __cplusplus
27300 }
27301 #endif
27302
27303 int
27304 main ()
27305 {
27306 return f != $ac_func;
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 rm -f conftest.$ac_objext conftest$ac_exeext
27312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27313   (eval $ac_link) 2>&5
27314   ac_status=$?
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); } &&
27317          { ac_try='test -s conftest$ac_exeext'
27318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27319   (eval $ac_try) 2>&5
27320   ac_status=$?
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); }; }; then
27323   eval "$as_ac_var=yes"
27324 else
27325   echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27327
27328 eval "$as_ac_var=no"
27329 fi
27330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27331 fi
27332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27334 if test `eval echo '${'$as_ac_var'}'` = yes; then
27335   cat >>confdefs.h <<_ACEOF
27336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27337 _ACEOF
27338
27339 fi
27340 done
27341
27342
27343
27344
27345 for ac_func in putenv setenv
27346 do
27347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27348 echo "$as_me:$LINENO: checking for $ac_func" >&5
27349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27350 if eval "test \"\${$as_ac_var+set}\" = set"; then
27351   echo $ECHO_N "(cached) $ECHO_C" >&6
27352 else
27353   cat >conftest.$ac_ext <<_ACEOF
27354 #line $LINENO "configure"
27355 /* confdefs.h.  */
27356 _ACEOF
27357 cat confdefs.h >>conftest.$ac_ext
27358 cat >>conftest.$ac_ext <<_ACEOF
27359 /* end confdefs.h.  */
27360 /* System header to define __stub macros and hopefully few prototypes,
27361     which can conflict with char $ac_func (); below.
27362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27363     <limits.h> exists even on freestanding compilers.  */
27364 #ifdef __STDC__
27365 # include <limits.h>
27366 #else
27367 # include <assert.h>
27368 #endif
27369 /* Override any gcc2 internal prototype to avoid an error.  */
27370 #ifdef __cplusplus
27371 extern "C"
27372 {
27373 #endif
27374 /* We use char because int might match the return type of a gcc2
27375    builtin and then its argument prototype would still apply.  */
27376 char $ac_func ();
27377 /* The GNU C library defines this for functions which it implements
27378     to always fail with ENOSYS.  Some functions are actually named
27379     something starting with __ and the normal name is an alias.  */
27380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27381 choke me
27382 #else
27383 char (*f) () = $ac_func;
27384 #endif
27385 #ifdef __cplusplus
27386 }
27387 #endif
27388
27389 int
27390 main ()
27391 {
27392 return f != $ac_func;
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27399   (eval $ac_link) 2>&5
27400   ac_status=$?
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); } &&
27403          { ac_try='test -s conftest$ac_exeext'
27404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405   (eval $ac_try) 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; }; then
27409   eval "$as_ac_var=yes"
27410 else
27411   echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27413
27414 eval "$as_ac_var=no"
27415 fi
27416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27417 fi
27418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27420 if test `eval echo '${'$as_ac_var'}'` = yes; then
27421   cat >>confdefs.h <<_ACEOF
27422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27423 _ACEOF
27424  break
27425 fi
27426 done
27427
27428
27429 HAVE_SOME_SLEEP_FUNC=0
27430 if test "$USE_BEOS" = 1; then
27431             cat >>confdefs.h <<\_ACEOF
27432 #define HAVE_SLEEP 1
27433 _ACEOF
27434
27435     HAVE_SOME_SLEEP_FUNC=1
27436 fi
27437
27438 if test "$USE_DARWIN" = 1; then
27439             cat >>confdefs.h <<\_ACEOF
27440 #define HAVE_USLEEP 1
27441 _ACEOF
27442
27443     HAVE_SOME_SLEEP_FUNC=1
27444 fi
27445
27446 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27447         POSIX4_LINK=
27448
27449 for ac_func in nanosleep
27450 do
27451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27452 echo "$as_me:$LINENO: checking for $ac_func" >&5
27453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27454 if eval "test \"\${$as_ac_var+set}\" = set"; then
27455   echo $ECHO_N "(cached) $ECHO_C" >&6
27456 else
27457   cat >conftest.$ac_ext <<_ACEOF
27458 #line $LINENO "configure"
27459 /* confdefs.h.  */
27460 _ACEOF
27461 cat confdefs.h >>conftest.$ac_ext
27462 cat >>conftest.$ac_ext <<_ACEOF
27463 /* end confdefs.h.  */
27464 /* System header to define __stub macros and hopefully few prototypes,
27465     which can conflict with char $ac_func (); below.
27466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27467     <limits.h> exists even on freestanding compilers.  */
27468 #ifdef __STDC__
27469 # include <limits.h>
27470 #else
27471 # include <assert.h>
27472 #endif
27473 /* Override any gcc2 internal prototype to avoid an error.  */
27474 #ifdef __cplusplus
27475 extern "C"
27476 {
27477 #endif
27478 /* We use char because int might match the return type of a gcc2
27479    builtin and then its argument prototype would still apply.  */
27480 char $ac_func ();
27481 /* The GNU C library defines this for functions which it implements
27482     to always fail with ENOSYS.  Some functions are actually named
27483     something starting with __ and the normal name is an alias.  */
27484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27485 choke me
27486 #else
27487 char (*f) () = $ac_func;
27488 #endif
27489 #ifdef __cplusplus
27490 }
27491 #endif
27492
27493 int
27494 main ()
27495 {
27496 return f != $ac_func;
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext conftest$ac_exeext
27502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27503   (eval $ac_link) 2>&5
27504   ac_status=$?
27505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506   (exit $ac_status); } &&
27507          { ac_try='test -s conftest$ac_exeext'
27508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509   (eval $ac_try) 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); }; }; then
27513   eval "$as_ac_var=yes"
27514 else
27515   echo "$as_me: failed program was:" >&5
27516 sed 's/^/| /' conftest.$ac_ext >&5
27517
27518 eval "$as_ac_var=no"
27519 fi
27520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27521 fi
27522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27524 if test `eval echo '${'$as_ac_var'}'` = yes; then
27525   cat >>confdefs.h <<_ACEOF
27526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27527 _ACEOF
27528  cat >>confdefs.h <<\_ACEOF
27529 #define HAVE_NANOSLEEP 1
27530 _ACEOF
27531
27532 else
27533
27534             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27535 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27536 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27537   echo $ECHO_N "(cached) $ECHO_C" >&6
27538 else
27539   ac_check_lib_save_LIBS=$LIBS
27540 LIBS="-lposix4  $LIBS"
27541 cat >conftest.$ac_ext <<_ACEOF
27542 #line $LINENO "configure"
27543 /* confdefs.h.  */
27544 _ACEOF
27545 cat confdefs.h >>conftest.$ac_ext
27546 cat >>conftest.$ac_ext <<_ACEOF
27547 /* end confdefs.h.  */
27548
27549 /* Override any gcc2 internal prototype to avoid an error.  */
27550 #ifdef __cplusplus
27551 extern "C"
27552 #endif
27553 /* We use char because int might match the return type of a gcc2
27554    builtin and then its argument prototype would still apply.  */
27555 char nanosleep ();
27556 int
27557 main ()
27558 {
27559 nanosleep ();
27560   ;
27561   return 0;
27562 }
27563 _ACEOF
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566   (eval $ac_link) 2>&5
27567   ac_status=$?
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); } &&
27570          { ac_try='test -s conftest$ac_exeext'
27571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572   (eval $ac_try) 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; }; then
27576   ac_cv_lib_posix4_nanosleep=yes
27577 else
27578   echo "$as_me: failed program was:" >&5
27579 sed 's/^/| /' conftest.$ac_ext >&5
27580
27581 ac_cv_lib_posix4_nanosleep=no
27582 fi
27583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27584 LIBS=$ac_check_lib_save_LIBS
27585 fi
27586 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27587 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27588 if test $ac_cv_lib_posix4_nanosleep = yes; then
27589
27590                     cat >>confdefs.h <<\_ACEOF
27591 #define HAVE_NANOSLEEP 1
27592 _ACEOF
27593
27594                     POSIX4_LINK=" -lposix4"
27595
27596 else
27597
27598
27599 for ac_func in usleep
27600 do
27601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27602 echo "$as_me:$LINENO: checking for $ac_func" >&5
27603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27604 if eval "test \"\${$as_ac_var+set}\" = set"; then
27605   echo $ECHO_N "(cached) $ECHO_C" >&6
27606 else
27607   cat >conftest.$ac_ext <<_ACEOF
27608 #line $LINENO "configure"
27609 /* confdefs.h.  */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h.  */
27614 /* System header to define __stub macros and hopefully few prototypes,
27615     which can conflict with char $ac_func (); below.
27616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27617     <limits.h> exists even on freestanding compilers.  */
27618 #ifdef __STDC__
27619 # include <limits.h>
27620 #else
27621 # include <assert.h>
27622 #endif
27623 /* Override any gcc2 internal prototype to avoid an error.  */
27624 #ifdef __cplusplus
27625 extern "C"
27626 {
27627 #endif
27628 /* We use char because int might match the return type of a gcc2
27629    builtin and then its argument prototype would still apply.  */
27630 char $ac_func ();
27631 /* The GNU C library defines this for functions which it implements
27632     to always fail with ENOSYS.  Some functions are actually named
27633     something starting with __ and the normal name is an alias.  */
27634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27635 choke me
27636 #else
27637 char (*f) () = $ac_func;
27638 #endif
27639 #ifdef __cplusplus
27640 }
27641 #endif
27642
27643 int
27644 main ()
27645 {
27646 return f != $ac_func;
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27653   (eval $ac_link) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); } &&
27657          { ac_try='test -s conftest$ac_exeext'
27658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; }; then
27663   eval "$as_ac_var=yes"
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668 eval "$as_ac_var=no"
27669 fi
27670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27671 fi
27672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27674 if test `eval echo '${'$as_ac_var'}'` = yes; then
27675   cat >>confdefs.h <<_ACEOF
27676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27677 _ACEOF
27678  cat >>confdefs.h <<\_ACEOF
27679 #define HAVE_USLEEP 1
27680 _ACEOF
27681
27682 else
27683   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27684 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27685
27686 fi
27687 done
27688
27689
27690
27691 fi
27692
27693
27694
27695 fi
27696 done
27697
27698 fi
27699
27700
27701
27702 for ac_func in uname gethostname
27703 do
27704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27705 echo "$as_me:$LINENO: checking for $ac_func" >&5
27706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27707 if eval "test \"\${$as_ac_var+set}\" = set"; then
27708   echo $ECHO_N "(cached) $ECHO_C" >&6
27709 else
27710   cat >conftest.$ac_ext <<_ACEOF
27711 #line $LINENO "configure"
27712 /* confdefs.h.  */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h.  */
27717 /* System header to define __stub macros and hopefully few prototypes,
27718     which can conflict with char $ac_func (); below.
27719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27720     <limits.h> exists even on freestanding compilers.  */
27721 #ifdef __STDC__
27722 # include <limits.h>
27723 #else
27724 # include <assert.h>
27725 #endif
27726 /* Override any gcc2 internal prototype to avoid an error.  */
27727 #ifdef __cplusplus
27728 extern "C"
27729 {
27730 #endif
27731 /* We use char because int might match the return type of a gcc2
27732    builtin and then its argument prototype would still apply.  */
27733 char $ac_func ();
27734 /* The GNU C library defines this for functions which it implements
27735     to always fail with ENOSYS.  Some functions are actually named
27736     something starting with __ and the normal name is an alias.  */
27737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27738 choke me
27739 #else
27740 char (*f) () = $ac_func;
27741 #endif
27742 #ifdef __cplusplus
27743 }
27744 #endif
27745
27746 int
27747 main ()
27748 {
27749 return f != $ac_func;
27750   ;
27751   return 0;
27752 }
27753 _ACEOF
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756   (eval $ac_link) 2>&5
27757   ac_status=$?
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); } &&
27760          { ac_try='test -s conftest$ac_exeext'
27761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762   (eval $ac_try) 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; }; then
27766   eval "$as_ac_var=yes"
27767 else
27768   echo "$as_me: failed program was:" >&5
27769 sed 's/^/| /' conftest.$ac_ext >&5
27770
27771 eval "$as_ac_var=no"
27772 fi
27773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27774 fi
27775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27777 if test `eval echo '${'$as_ac_var'}'` = yes; then
27778   cat >>confdefs.h <<_ACEOF
27779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27780 _ACEOF
27781  break
27782 fi
27783 done
27784
27785
27786
27787
27788 ac_ext=cc
27789 ac_cpp='$CXXCPP $CPPFLAGS'
27790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27793
27794
27795
27796 for ac_func in strtok_r
27797 do
27798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801 if eval "test \"\${$as_ac_var+set}\" = set"; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   cat >conftest.$ac_ext <<_ACEOF
27805 #line $LINENO "configure"
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811 /* System header to define __stub macros and hopefully few prototypes,
27812     which can conflict with char $ac_func (); below.
27813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27814     <limits.h> exists even on freestanding compilers.  */
27815 #ifdef __STDC__
27816 # include <limits.h>
27817 #else
27818 # include <assert.h>
27819 #endif
27820 /* Override any gcc2 internal prototype to avoid an error.  */
27821 #ifdef __cplusplus
27822 extern "C"
27823 {
27824 #endif
27825 /* We use char because int might match the return type of a gcc2
27826    builtin and then its argument prototype would still apply.  */
27827 char $ac_func ();
27828 /* The GNU C library defines this for functions which it implements
27829     to always fail with ENOSYS.  Some functions are actually named
27830     something starting with __ and the normal name is an alias.  */
27831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27832 choke me
27833 #else
27834 char (*f) () = $ac_func;
27835 #endif
27836 #ifdef __cplusplus
27837 }
27838 #endif
27839
27840 int
27841 main ()
27842 {
27843 return f != $ac_func;
27844   ;
27845   return 0;
27846 }
27847 _ACEOF
27848 rm -f conftest.$ac_objext conftest$ac_exeext
27849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27850   (eval $ac_link) 2>&5
27851   ac_status=$?
27852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } &&
27854          { ac_try='test -s conftest$ac_exeext'
27855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856   (eval $ac_try) 2>&5
27857   ac_status=$?
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); }; }; then
27860   eval "$as_ac_var=yes"
27861 else
27862   echo "$as_me: failed program was:" >&5
27863 sed 's/^/| /' conftest.$ac_ext >&5
27864
27865 eval "$as_ac_var=no"
27866 fi
27867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27868 fi
27869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27871 if test `eval echo '${'$as_ac_var'}'` = yes; then
27872   cat >>confdefs.h <<_ACEOF
27873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27874 _ACEOF
27875
27876 fi
27877 done
27878
27879
27880 ac_ext=c
27881 ac_cpp='$CPP $CPPFLAGS'
27882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27885
27886
27887 INET_LINK=
27888
27889 for ac_func in inet_addr
27890 do
27891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27892 echo "$as_me:$LINENO: checking for $ac_func" >&5
27893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27894 if eval "test \"\${$as_ac_var+set}\" = set"; then
27895   echo $ECHO_N "(cached) $ECHO_C" >&6
27896 else
27897   cat >conftest.$ac_ext <<_ACEOF
27898 #line $LINENO "configure"
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904 /* System header to define __stub macros and hopefully few prototypes,
27905     which can conflict with char $ac_func (); below.
27906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27907     <limits.h> exists even on freestanding compilers.  */
27908 #ifdef __STDC__
27909 # include <limits.h>
27910 #else
27911 # include <assert.h>
27912 #endif
27913 /* Override any gcc2 internal prototype to avoid an error.  */
27914 #ifdef __cplusplus
27915 extern "C"
27916 {
27917 #endif
27918 /* We use char because int might match the return type of a gcc2
27919    builtin and then its argument prototype would still apply.  */
27920 char $ac_func ();
27921 /* The GNU C library defines this for functions which it implements
27922     to always fail with ENOSYS.  Some functions are actually named
27923     something starting with __ and the normal name is an alias.  */
27924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27925 choke me
27926 #else
27927 char (*f) () = $ac_func;
27928 #endif
27929 #ifdef __cplusplus
27930 }
27931 #endif
27932
27933 int
27934 main ()
27935 {
27936 return f != $ac_func;
27937   ;
27938   return 0;
27939 }
27940 _ACEOF
27941 rm -f conftest.$ac_objext conftest$ac_exeext
27942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27943   (eval $ac_link) 2>&5
27944   ac_status=$?
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); } &&
27947          { ac_try='test -s conftest$ac_exeext'
27948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949   (eval $ac_try) 2>&5
27950   ac_status=$?
27951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952   (exit $ac_status); }; }; then
27953   eval "$as_ac_var=yes"
27954 else
27955   echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27957
27958 eval "$as_ac_var=no"
27959 fi
27960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27961 fi
27962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27964 if test `eval echo '${'$as_ac_var'}'` = yes; then
27965   cat >>confdefs.h <<_ACEOF
27966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27967 _ACEOF
27968  cat >>confdefs.h <<\_ACEOF
27969 #define HAVE_INET_ADDR 1
27970 _ACEOF
27971
27972 else
27973
27974         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27975 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27976 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27977   echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979   ac_check_lib_save_LIBS=$LIBS
27980 LIBS="-lnsl  $LIBS"
27981 cat >conftest.$ac_ext <<_ACEOF
27982 #line $LINENO "configure"
27983 /* confdefs.h.  */
27984 _ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h.  */
27988
27989 /* Override any gcc2 internal prototype to avoid an error.  */
27990 #ifdef __cplusplus
27991 extern "C"
27992 #endif
27993 /* We use char because int might match the return type of a gcc2
27994    builtin and then its argument prototype would still apply.  */
27995 char inet_addr ();
27996 int
27997 main ()
27998 {
27999 inet_addr ();
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28006   (eval $ac_link) 2>&5
28007   ac_status=$?
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } &&
28010          { ac_try='test -s conftest$ac_exeext'
28011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012   (eval $ac_try) 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; }; then
28016   ac_cv_lib_nsl_inet_addr=yes
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021 ac_cv_lib_nsl_inet_addr=no
28022 fi
28023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28024 LIBS=$ac_check_lib_save_LIBS
28025 fi
28026 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28027 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28028 if test $ac_cv_lib_nsl_inet_addr = yes; then
28029   INET_LINK="nsl"
28030 else
28031   echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28032 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28033 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28034   echo $ECHO_N "(cached) $ECHO_C" >&6
28035 else
28036   ac_check_lib_save_LIBS=$LIBS
28037 LIBS="-lresolv  $LIBS"
28038 cat >conftest.$ac_ext <<_ACEOF
28039 #line $LINENO "configure"
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045
28046 /* Override any gcc2 internal prototype to avoid an error.  */
28047 #ifdef __cplusplus
28048 extern "C"
28049 #endif
28050 /* We use char because int might match the return type of a gcc2
28051    builtin and then its argument prototype would still apply.  */
28052 char inet_addr ();
28053 int
28054 main ()
28055 {
28056 inet_addr ();
28057   ;
28058   return 0;
28059 }
28060 _ACEOF
28061 rm -f conftest.$ac_objext conftest$ac_exeext
28062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063   (eval $ac_link) 2>&5
28064   ac_status=$?
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } &&
28067          { ac_try='test -s conftest$ac_exeext'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; }; then
28073   ac_cv_lib_resolv_inet_addr=yes
28074 else
28075   echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078 ac_cv_lib_resolv_inet_addr=no
28079 fi
28080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28081 LIBS=$ac_check_lib_save_LIBS
28082 fi
28083 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28084 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28085 if test $ac_cv_lib_resolv_inet_addr = yes; then
28086   INET_LINK="resolv"
28087 else
28088   echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28089 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28090 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28091   echo $ECHO_N "(cached) $ECHO_C" >&6
28092 else
28093   ac_check_lib_save_LIBS=$LIBS
28094 LIBS="-lsocket  $LIBS"
28095 cat >conftest.$ac_ext <<_ACEOF
28096 #line $LINENO "configure"
28097 /* confdefs.h.  */
28098 _ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h.  */
28102
28103 /* Override any gcc2 internal prototype to avoid an error.  */
28104 #ifdef __cplusplus
28105 extern "C"
28106 #endif
28107 /* We use char because int might match the return type of a gcc2
28108    builtin and then its argument prototype would still apply.  */
28109 char inet_addr ();
28110 int
28111 main ()
28112 {
28113 inet_addr ();
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120   (eval $ac_link) 2>&5
28121   ac_status=$?
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } &&
28124          { ac_try='test -s conftest$ac_exeext'
28125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126   (eval $ac_try) 2>&5
28127   ac_status=$?
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); }; }; then
28130   ac_cv_lib_socket_inet_addr=yes
28131 else
28132   echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 ac_cv_lib_socket_inet_addr=no
28136 fi
28137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28138 LIBS=$ac_check_lib_save_LIBS
28139 fi
28140 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28141 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28142 if test $ac_cv_lib_socket_inet_addr = yes; then
28143   INET_LINK="socket"
28144
28145 fi
28146
28147
28148 fi
28149
28150
28151 fi
28152
28153
28154
28155 fi
28156 done
28157
28158
28159
28160 for ac_func in inet_aton
28161 do
28162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28163 echo "$as_me:$LINENO: checking for $ac_func" >&5
28164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28165 if eval "test \"\${$as_ac_var+set}\" = set"; then
28166   echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168   cat >conftest.$ac_ext <<_ACEOF
28169 #line $LINENO "configure"
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175 /* System header to define __stub macros and hopefully few prototypes,
28176     which can conflict with char $ac_func (); below.
28177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28178     <limits.h> exists even on freestanding compilers.  */
28179 #ifdef __STDC__
28180 # include <limits.h>
28181 #else
28182 # include <assert.h>
28183 #endif
28184 /* Override any gcc2 internal prototype to avoid an error.  */
28185 #ifdef __cplusplus
28186 extern "C"
28187 {
28188 #endif
28189 /* We use char because int might match the return type of a gcc2
28190    builtin and then its argument prototype would still apply.  */
28191 char $ac_func ();
28192 /* The GNU C library defines this for functions which it implements
28193     to always fail with ENOSYS.  Some functions are actually named
28194     something starting with __ and the normal name is an alias.  */
28195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28196 choke me
28197 #else
28198 char (*f) () = $ac_func;
28199 #endif
28200 #ifdef __cplusplus
28201 }
28202 #endif
28203
28204 int
28205 main ()
28206 {
28207 return f != $ac_func;
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 rm -f conftest.$ac_objext conftest$ac_exeext
28213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28214   (eval $ac_link) 2>&5
28215   ac_status=$?
28216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217   (exit $ac_status); } &&
28218          { ac_try='test -s conftest$ac_exeext'
28219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220   (eval $ac_try) 2>&5
28221   ac_status=$?
28222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223   (exit $ac_status); }; }; then
28224   eval "$as_ac_var=yes"
28225 else
28226   echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28228
28229 eval "$as_ac_var=no"
28230 fi
28231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28232 fi
28233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28235 if test `eval echo '${'$as_ac_var'}'` = yes; then
28236   cat >>confdefs.h <<_ACEOF
28237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28238 _ACEOF
28239  cat >>confdefs.h <<\_ACEOF
28240 #define HAVE_INET_ATON 1
28241 _ACEOF
28242
28243 else
28244
28245                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28246 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28247 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28248 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28249   echo $ECHO_N "(cached) $ECHO_C" >&6
28250 else
28251   ac_check_lib_save_LIBS=$LIBS
28252 LIBS="-l$INET_LINK  $LIBS"
28253 cat >conftest.$ac_ext <<_ACEOF
28254 #line $LINENO "configure"
28255 /* confdefs.h.  */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h.  */
28260
28261 /* Override any gcc2 internal prototype to avoid an error.  */
28262 #ifdef __cplusplus
28263 extern "C"
28264 #endif
28265 /* We use char because int might match the return type of a gcc2
28266    builtin and then its argument prototype would still apply.  */
28267 char inet_aton ();
28268 int
28269 main ()
28270 {
28271 inet_aton ();
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 rm -f conftest.$ac_objext conftest$ac_exeext
28277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28278   (eval $ac_link) 2>&5
28279   ac_status=$?
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); } &&
28282          { ac_try='test -s conftest$ac_exeext'
28283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284   (eval $ac_try) 2>&5
28285   ac_status=$?
28286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287   (exit $ac_status); }; }; then
28288   eval "$as_ac_Lib=yes"
28289 else
28290   echo "$as_me: failed program was:" >&5
28291 sed 's/^/| /' conftest.$ac_ext >&5
28292
28293 eval "$as_ac_Lib=no"
28294 fi
28295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28296 LIBS=$ac_check_lib_save_LIBS
28297 fi
28298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28299 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28300 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28301   cat >>confdefs.h <<\_ACEOF
28302 #define HAVE_INET_ATON 1
28303 _ACEOF
28304
28305 fi
28306
28307
28308 fi
28309 done
28310
28311
28312 if test "x$INET_LINK" != "x"; then
28313     cat >>confdefs.h <<\_ACEOF
28314 #define HAVE_INET_ADDR 1
28315 _ACEOF
28316
28317     INET_LINK=" -l$INET_LINK"
28318 fi
28319
28320 fi
28321
28322
28323
28324 ESD_LINK=
28325 if test "${ac_cv_header_esd_h+set}" = set; then
28326   echo "$as_me:$LINENO: checking for esd.h" >&5
28327 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28328 if test "${ac_cv_header_esd_h+set}" = set; then
28329   echo $ECHO_N "(cached) $ECHO_C" >&6
28330 fi
28331 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28332 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28333 else
28334   # Is the header compilable?
28335 echo "$as_me:$LINENO: checking esd.h usability" >&5
28336 echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28337 cat >conftest.$ac_ext <<_ACEOF
28338 #line $LINENO "configure"
28339 /* confdefs.h.  */
28340 _ACEOF
28341 cat confdefs.h >>conftest.$ac_ext
28342 cat >>conftest.$ac_ext <<_ACEOF
28343 /* end confdefs.h.  */
28344 $ac_includes_default
28345 #include <esd.h>
28346 _ACEOF
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349   (eval $ac_compile) 2>&5
28350   ac_status=$?
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); } &&
28353          { ac_try='test -s conftest.$ac_objext'
28354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355   (eval $ac_try) 2>&5
28356   ac_status=$?
28357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358   (exit $ac_status); }; }; then
28359   ac_header_compiler=yes
28360 else
28361   echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28363
28364 ac_header_compiler=no
28365 fi
28366 rm -f conftest.$ac_objext conftest.$ac_ext
28367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28368 echo "${ECHO_T}$ac_header_compiler" >&6
28369
28370 # Is the header present?
28371 echo "$as_me:$LINENO: checking esd.h presence" >&5
28372 echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28373 cat >conftest.$ac_ext <<_ACEOF
28374 #line $LINENO "configure"
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380 #include <esd.h>
28381 _ACEOF
28382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28384   ac_status=$?
28385   grep -v '^ *+' conftest.er1 >conftest.err
28386   rm -f conftest.er1
28387   cat conftest.err >&5
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); } >/dev/null; then
28390   if test -s conftest.err; then
28391     ac_cpp_err=$ac_c_preproc_warn_flag
28392   else
28393     ac_cpp_err=
28394   fi
28395 else
28396   ac_cpp_err=yes
28397 fi
28398 if test -z "$ac_cpp_err"; then
28399   ac_header_preproc=yes
28400 else
28401   echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28403
28404   ac_header_preproc=no
28405 fi
28406 rm -f conftest.err conftest.$ac_ext
28407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28408 echo "${ECHO_T}$ac_header_preproc" >&6
28409
28410 # So?  What about this header?
28411 case $ac_header_compiler:$ac_header_preproc in
28412   yes:no )
28413     { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28414 echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28415     { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28416 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28417     (
28418       cat <<\_ASBOX
28419 ## ------------------------------------ ##
28420 ## Report this to bug-autoconf@gnu.org. ##
28421 ## ------------------------------------ ##
28422 _ASBOX
28423     ) |
28424       sed "s/^/$as_me: WARNING:     /" >&2
28425     ;;
28426   no:yes )
28427     { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28428 echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28429     { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28430 echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28431     { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28432 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28433     (
28434       cat <<\_ASBOX
28435 ## ------------------------------------ ##
28436 ## Report this to bug-autoconf@gnu.org. ##
28437 ## ------------------------------------ ##
28438 _ASBOX
28439     ) |
28440       sed "s/^/$as_me: WARNING:     /" >&2
28441     ;;
28442 esac
28443 echo "$as_me:$LINENO: checking for esd.h" >&5
28444 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28445 if test "${ac_cv_header_esd_h+set}" = set; then
28446   echo $ECHO_N "(cached) $ECHO_C" >&6
28447 else
28448   ac_cv_header_esd_h=$ac_header_preproc
28449 fi
28450 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28451 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28452
28453 fi
28454 if test $ac_cv_header_esd_h = yes; then
28455
28456   echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28457 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28458 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28459   echo $ECHO_N "(cached) $ECHO_C" >&6
28460 else
28461   ac_check_lib_save_LIBS=$LIBS
28462 LIBS="-lesd  $LIBS"
28463 cat >conftest.$ac_ext <<_ACEOF
28464 #line $LINENO "configure"
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470
28471 /* Override any gcc2 internal prototype to avoid an error.  */
28472 #ifdef __cplusplus
28473 extern "C"
28474 #endif
28475 /* We use char because int might match the return type of a gcc2
28476    builtin and then its argument prototype would still apply.  */
28477 char esd_close ();
28478 int
28479 main ()
28480 {
28481 esd_close ();
28482   ;
28483   return 0;
28484 }
28485 _ACEOF
28486 rm -f conftest.$ac_objext conftest$ac_exeext
28487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28488   (eval $ac_link) 2>&5
28489   ac_status=$?
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); } &&
28492          { ac_try='test -s conftest$ac_exeext'
28493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494   (eval $ac_try) 2>&5
28495   ac_status=$?
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); }; }; then
28498   ac_cv_lib_esd_esd_close=yes
28499 else
28500   echo "$as_me: failed program was:" >&5
28501 sed 's/^/| /' conftest.$ac_ext >&5
28502
28503 ac_cv_lib_esd_esd_close=no
28504 fi
28505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28506 LIBS=$ac_check_lib_save_LIBS
28507 fi
28508 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28509 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28510 if test $ac_cv_lib_esd_esd_close = yes; then
28511
28512     ESD_LINK="-lesd"
28513
28514 fi
28515
28516
28517 fi
28518
28519
28520
28521
28522
28523 cat >confcache <<\_ACEOF
28524 # This file is a shell script that caches the results of configure
28525 # tests run on this system so they can be shared between configure
28526 # scripts and configure runs, see configure's option --config-cache.
28527 # It is not useful on other systems.  If it contains results you don't
28528 # want to keep, you may remove or edit it.
28529 #
28530 # config.status only pays attention to the cache file if you give it
28531 # the --recheck option to rerun configure.
28532 #
28533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28535 # following values.
28536
28537 _ACEOF
28538
28539 # The following way of writing the cache mishandles newlines in values,
28540 # but we know of no workaround that is simple, portable, and efficient.
28541 # So, don't put newlines in cache variables' values.
28542 # Ultrix sh set writes to stderr and can't be redirected directly,
28543 # and sets the high bit in the cache file unless we assign to the vars.
28544 {
28545   (set) 2>&1 |
28546     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28547     *ac_space=\ *)
28548       # `set' does not quote correctly, so add quotes (double-quote
28549       # substitution turns \\\\ into \\, and sed turns \\ into \).
28550       sed -n \
28551         "s/'/'\\\\''/g;
28552           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28553       ;;
28554     *)
28555       # `set' quotes correctly as required by POSIX, so do not add quotes.
28556       sed -n \
28557         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28558       ;;
28559     esac;
28560 } |
28561   sed '
28562      t clear
28563      : clear
28564      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28565      t end
28566      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28567      : end' >>confcache
28568 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28569   if test -w $cache_file; then
28570     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28571     cat confcache >$cache_file
28572   else
28573     echo "not updating unwritable cache $cache_file"
28574   fi
28575 fi
28576 rm -f confcache
28577
28578
28579 CPP_MT_FLAG=
28580 if test "$TOOLKIT" != "MSW"; then
28581
28582
28583     THREADS_LINK=
28584     THREADS_CFLAGS=
28585
28586     if test "$wxUSE_THREADS" = "yes" ; then
28587         if test "$USE_BEOS" = 1; then
28588             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28589 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
28590             wxUSE_THREADS="no"
28591         fi
28592     fi
28593
28594     if test "$wxUSE_THREADS" = "yes" ; then
28595
28596
28597                                 THREAD_OPTS="-pthread"
28598         case "${host}" in
28599           *-*-solaris2* | *-*-sunos4* )
28600                 if test "x$GCC" = "xyes"; then
28601                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
28602                 else
28603                     THREAD_OPTS="-mt $THREAD_OPTS"
28604                 fi
28605                 ;;
28606           *-*-freebsd*)
28607                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28608                 ;;
28609           *-*-darwin* | *-*-cygwin* )
28610                                                 THREAD_OPTS=""
28611                 ;;
28612           *-*-aix*)
28613                                 THREAD_OPTS="pthreads"
28614                 ;;
28615           *-hp-hpux* )
28616                                                                 if test "x$GCC" != "xyes"; then
28617                     THREAD_OPTS=""
28618                 fi
28619                 ;;
28620
28621           *-*-irix* )
28622                                                                 if test "x$GCC" = "xyes"; then
28623                     THREAD_OPTS=""
28624                 fi
28625                 ;;
28626
28627           *-*-*UnixWare*)
28628                                 if test "x$GCC" != "xyes"; then
28629                     THREAD_OPTS="-Ethread"
28630                 fi
28631                 ;;
28632         esac
28633
28634                                 THREAD_OPTS="$THREAD_OPTS pthread none"
28635
28636                 THREADS_OK=no
28637         for flag in $THREAD_OPTS; do
28638             case $flag in
28639                 none)
28640                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28641 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
28642                     ;;
28643
28644                 -*)
28645                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28646 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
28647                     THREADS_CFLAGS="$flag"
28648                     ;;
28649
28650                 *)
28651                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28652 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
28653                     THREADS_LINK="-l$flag"
28654                     ;;
28655               esac
28656
28657               save_LIBS="$LIBS"
28658               save_CFLAGS="$CFLAGS"
28659               LIBS="$THREADS_LINK $LIBS"
28660               CFLAGS="$THREADS_CFLAGS $CFLAGS"
28661
28662               cat >conftest.$ac_ext <<_ACEOF
28663 #line $LINENO "configure"
28664 /* confdefs.h.  */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h.  */
28669 #include <pthread.h>
28670 int
28671 main ()
28672 {
28673 pthread_create(0,0,0,0);
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680   (eval $ac_link) 2>&5
28681   ac_status=$?
28682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683   (exit $ac_status); } &&
28684          { ac_try='test -s conftest$ac_exeext'
28685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686   (eval $ac_try) 2>&5
28687   ac_status=$?
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); }; }; then
28690   THREADS_OK=yes
28691 else
28692   echo "$as_me: failed program was:" >&5
28693 sed 's/^/| /' conftest.$ac_ext >&5
28694
28695 fi
28696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28697
28698               LIBS="$save_LIBS"
28699               CFLAGS="$save_CFLAGS"
28700
28701               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28702 echo "${ECHO_T}$THREADS_OK" >&6
28703               if test "x$THREADS_OK" = "xyes"; then
28704                       break;
28705               fi
28706
28707               THREADS_LINK=""
28708               THREADS_CFLAGS=""
28709       done
28710
28711       if test "x$THREADS_OK" != "xyes"; then
28712           wxUSE_THREADS=no
28713           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28714 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
28715       else
28716                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28717           LIBS="$THREADS_LINK $LIBS"
28718
28719           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28720 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
28721           flag=no
28722           case "${host}" in
28723             *-aix*)
28724                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28725                 flag="-D_THREAD_SAFE"
28726                 ;;
28727             *-freebsd*)
28728                 flag="-D_THREAD_SAFE"
28729                 ;;
28730             *-hp-hpux* )
28731                 flag="-D_REENTRANT"
28732                 if test "x$GCC" != "xyes"; then
28733                                         flag="$flag -D_RWSTD_MULTI_THREAD"
28734                 fi
28735                 ;;
28736             *solaris* | alpha*-osf*)
28737                 flag="-D_REENTRANT"
28738                 ;;
28739           esac
28740           echo "$as_me:$LINENO: result: ${flag}" >&5
28741 echo "${ECHO_T}${flag}" >&6
28742           if test "x$flag" != xno; then
28743               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
28744           fi
28745
28746           if test "x$THREADS_CFLAGS" != "x"; then
28747                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
28748             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28749           fi
28750       fi
28751     fi
28752
28753         if test "$wxUSE_THREADS" = "yes" ; then
28754
28755 for ac_func in thr_setconcurrency
28756 do
28757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28758 echo "$as_me:$LINENO: checking for $ac_func" >&5
28759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28760 if eval "test \"\${$as_ac_var+set}\" = set"; then
28761   echo $ECHO_N "(cached) $ECHO_C" >&6
28762 else
28763   cat >conftest.$ac_ext <<_ACEOF
28764 #line $LINENO "configure"
28765 /* confdefs.h.  */
28766 _ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h.  */
28770 /* System header to define __stub macros and hopefully few prototypes,
28771     which can conflict with char $ac_func (); below.
28772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28773     <limits.h> exists even on freestanding compilers.  */
28774 #ifdef __STDC__
28775 # include <limits.h>
28776 #else
28777 # include <assert.h>
28778 #endif
28779 /* Override any gcc2 internal prototype to avoid an error.  */
28780 #ifdef __cplusplus
28781 extern "C"
28782 {
28783 #endif
28784 /* We use char because int might match the return type of a gcc2
28785    builtin and then its argument prototype would still apply.  */
28786 char $ac_func ();
28787 /* The GNU C library defines this for functions which it implements
28788     to always fail with ENOSYS.  Some functions are actually named
28789     something starting with __ and the normal name is an alias.  */
28790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28791 choke me
28792 #else
28793 char (*f) () = $ac_func;
28794 #endif
28795 #ifdef __cplusplus
28796 }
28797 #endif
28798
28799 int
28800 main ()
28801 {
28802 return f != $ac_func;
28803   ;
28804   return 0;
28805 }
28806 _ACEOF
28807 rm -f conftest.$ac_objext conftest$ac_exeext
28808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28809   (eval $ac_link) 2>&5
28810   ac_status=$?
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); } &&
28813          { ac_try='test -s conftest$ac_exeext'
28814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815   (eval $ac_try) 2>&5
28816   ac_status=$?
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); }; }; then
28819   eval "$as_ac_var=yes"
28820 else
28821   echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28823
28824 eval "$as_ac_var=no"
28825 fi
28826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28827 fi
28828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28830 if test `eval echo '${'$as_ac_var'}'` = yes; then
28831   cat >>confdefs.h <<_ACEOF
28832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28833 _ACEOF
28834
28835 fi
28836 done
28837
28838
28839
28840 for ac_header in sched.h
28841 do
28842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28844   echo "$as_me:$LINENO: checking for $ac_header" >&5
28845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28847   echo $ECHO_N "(cached) $ECHO_C" >&6
28848 fi
28849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28851 else
28852   # Is the header compilable?
28853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28855 cat >conftest.$ac_ext <<_ACEOF
28856 #line $LINENO "configure"
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862 $ac_includes_default
28863 #include <$ac_header>
28864 _ACEOF
28865 rm -f conftest.$ac_objext
28866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28867   (eval $ac_compile) 2>&5
28868   ac_status=$?
28869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870   (exit $ac_status); } &&
28871          { ac_try='test -s conftest.$ac_objext'
28872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873   (eval $ac_try) 2>&5
28874   ac_status=$?
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); }; }; then
28877   ac_header_compiler=yes
28878 else
28879   echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882 ac_header_compiler=no
28883 fi
28884 rm -f conftest.$ac_objext conftest.$ac_ext
28885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28886 echo "${ECHO_T}$ac_header_compiler" >&6
28887
28888 # Is the header present?
28889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28891 cat >conftest.$ac_ext <<_ACEOF
28892 #line $LINENO "configure"
28893 /* confdefs.h.  */
28894 _ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h.  */
28898 #include <$ac_header>
28899 _ACEOF
28900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28902   ac_status=$?
28903   grep -v '^ *+' conftest.er1 >conftest.err
28904   rm -f conftest.er1
28905   cat conftest.err >&5
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } >/dev/null; then
28908   if test -s conftest.err; then
28909     ac_cpp_err=$ac_c_preproc_warn_flag
28910   else
28911     ac_cpp_err=
28912   fi
28913 else
28914   ac_cpp_err=yes
28915 fi
28916 if test -z "$ac_cpp_err"; then
28917   ac_header_preproc=yes
28918 else
28919   echo "$as_me: failed program was:" >&5
28920 sed 's/^/| /' conftest.$ac_ext >&5
28921
28922   ac_header_preproc=no
28923 fi
28924 rm -f conftest.err conftest.$ac_ext
28925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28926 echo "${ECHO_T}$ac_header_preproc" >&6
28927
28928 # So?  What about this header?
28929 case $ac_header_compiler:$ac_header_preproc in
28930   yes:no )
28931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28935     (
28936       cat <<\_ASBOX
28937 ## ------------------------------------ ##
28938 ## Report this to bug-autoconf@gnu.org. ##
28939 ## ------------------------------------ ##
28940 _ASBOX
28941     ) |
28942       sed "s/^/$as_me: WARNING:     /" >&2
28943     ;;
28944   no:yes )
28945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28947     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28951     (
28952       cat <<\_ASBOX
28953 ## ------------------------------------ ##
28954 ## Report this to bug-autoconf@gnu.org. ##
28955 ## ------------------------------------ ##
28956 _ASBOX
28957     ) |
28958       sed "s/^/$as_me: WARNING:     /" >&2
28959     ;;
28960 esac
28961 echo "$as_me:$LINENO: checking for $ac_header" >&5
28962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28964   echo $ECHO_N "(cached) $ECHO_C" >&6
28965 else
28966   eval "$as_ac_Header=$ac_header_preproc"
28967 fi
28968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28970
28971 fi
28972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28973   cat >>confdefs.h <<_ACEOF
28974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28975 _ACEOF
28976
28977 fi
28978
28979 done
28980
28981       if test "$ac_cv_header_sched_h" = "yes"; then
28982           echo "$as_me:$LINENO: checking for sched_yield" >&5
28983 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
28984 if test "${ac_cv_func_sched_yield+set}" = set; then
28985   echo $ECHO_N "(cached) $ECHO_C" >&6
28986 else
28987   cat >conftest.$ac_ext <<_ACEOF
28988 #line $LINENO "configure"
28989 /* confdefs.h.  */
28990 _ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h.  */
28994 /* System header to define __stub macros and hopefully few prototypes,
28995     which can conflict with char sched_yield (); below.
28996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28997     <limits.h> exists even on freestanding compilers.  */
28998 #ifdef __STDC__
28999 # include <limits.h>
29000 #else
29001 # include <assert.h>
29002 #endif
29003 /* Override any gcc2 internal prototype to avoid an error.  */
29004 #ifdef __cplusplus
29005 extern "C"
29006 {
29007 #endif
29008 /* We use char because int might match the return type of a gcc2
29009    builtin and then its argument prototype would still apply.  */
29010 char sched_yield ();
29011 /* The GNU C library defines this for functions which it implements
29012     to always fail with ENOSYS.  Some functions are actually named
29013     something starting with __ and the normal name is an alias.  */
29014 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29015 choke me
29016 #else
29017 char (*f) () = sched_yield;
29018 #endif
29019 #ifdef __cplusplus
29020 }
29021 #endif
29022
29023 int
29024 main ()
29025 {
29026 return f != sched_yield;
29027   ;
29028   return 0;
29029 }
29030 _ACEOF
29031 rm -f conftest.$ac_objext conftest$ac_exeext
29032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29033   (eval $ac_link) 2>&5
29034   ac_status=$?
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); } &&
29037          { ac_try='test -s conftest$ac_exeext'
29038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039   (eval $ac_try) 2>&5
29040   ac_status=$?
29041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); }; }; then
29043   ac_cv_func_sched_yield=yes
29044 else
29045   echo "$as_me: failed program was:" >&5
29046 sed 's/^/| /' conftest.$ac_ext >&5
29047
29048 ac_cv_func_sched_yield=no
29049 fi
29050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29051 fi
29052 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29053 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29054 if test $ac_cv_func_sched_yield = yes; then
29055   cat >>confdefs.h <<\_ACEOF
29056 #define HAVE_SCHED_YIELD 1
29057 _ACEOF
29058
29059 else
29060
29061                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29062 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29063 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29064   echo $ECHO_N "(cached) $ECHO_C" >&6
29065 else
29066   ac_check_lib_save_LIBS=$LIBS
29067 LIBS="-lposix4  $LIBS"
29068 cat >conftest.$ac_ext <<_ACEOF
29069 #line $LINENO "configure"
29070 /* confdefs.h.  */
29071 _ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h.  */
29075
29076 /* Override any gcc2 internal prototype to avoid an error.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 /* We use char because int might match the return type of a gcc2
29081    builtin and then its argument prototype would still apply.  */
29082 char sched_yield ();
29083 int
29084 main ()
29085 {
29086 sched_yield ();
29087   ;
29088   return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093   (eval $ac_link) 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); } &&
29097          { ac_try='test -s conftest$ac_exeext'
29098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099   (eval $ac_try) 2>&5
29100   ac_status=$?
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); }; }; then
29103   ac_cv_lib_posix4_sched_yield=yes
29104 else
29105   echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29107
29108 ac_cv_lib_posix4_sched_yield=no
29109 fi
29110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29111 LIBS=$ac_check_lib_save_LIBS
29112 fi
29113 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29114 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29115 if test $ac_cv_lib_posix4_sched_yield = yes; then
29116   cat >>confdefs.h <<\_ACEOF
29117 #define HAVE_SCHED_YIELD 1
29118 _ACEOF
29119  POSIX4_LINK=" -lposix4"
29120 else
29121   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29122 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29123
29124 fi
29125
29126
29127
29128 fi
29129
29130       fi
29131
29132                                           HAVE_PRIOR_FUNCS=0
29133       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29134 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29135 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29136   echo $ECHO_N "(cached) $ECHO_C" >&6
29137 else
29138   cat >conftest.$ac_ext <<_ACEOF
29139 #line $LINENO "configure"
29140 /* confdefs.h.  */
29141 _ACEOF
29142 cat confdefs.h >>conftest.$ac_ext
29143 cat >>conftest.$ac_ext <<_ACEOF
29144 /* end confdefs.h.  */
29145 /* System header to define __stub macros and hopefully few prototypes,
29146     which can conflict with char pthread_attr_getschedpolicy (); below.
29147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29148     <limits.h> exists even on freestanding compilers.  */
29149 #ifdef __STDC__
29150 # include <limits.h>
29151 #else
29152 # include <assert.h>
29153 #endif
29154 /* Override any gcc2 internal prototype to avoid an error.  */
29155 #ifdef __cplusplus
29156 extern "C"
29157 {
29158 #endif
29159 /* We use char because int might match the return type of a gcc2
29160    builtin and then its argument prototype would still apply.  */
29161 char pthread_attr_getschedpolicy ();
29162 /* The GNU C library defines this for functions which it implements
29163     to always fail with ENOSYS.  Some functions are actually named
29164     something starting with __ and the normal name is an alias.  */
29165 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29166 choke me
29167 #else
29168 char (*f) () = pthread_attr_getschedpolicy;
29169 #endif
29170 #ifdef __cplusplus
29171 }
29172 #endif
29173
29174 int
29175 main ()
29176 {
29177 return f != pthread_attr_getschedpolicy;
29178   ;
29179   return 0;
29180 }
29181 _ACEOF
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29184   (eval $ac_link) 2>&5
29185   ac_status=$?
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); } &&
29188          { ac_try='test -s conftest$ac_exeext'
29189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190   (eval $ac_try) 2>&5
29191   ac_status=$?
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); }; }; then
29194   ac_cv_func_pthread_attr_getschedpolicy=yes
29195 else
29196   echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29198
29199 ac_cv_func_pthread_attr_getschedpolicy=no
29200 fi
29201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29202 fi
29203 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29204 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29205 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29206   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29207 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29208 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29209   echo $ECHO_N "(cached) $ECHO_C" >&6
29210 else
29211   cat >conftest.$ac_ext <<_ACEOF
29212 #line $LINENO "configure"
29213 /* confdefs.h.  */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h.  */
29218 /* System header to define __stub macros and hopefully few prototypes,
29219     which can conflict with char pthread_attr_setschedparam (); below.
29220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29221     <limits.h> exists even on freestanding compilers.  */
29222 #ifdef __STDC__
29223 # include <limits.h>
29224 #else
29225 # include <assert.h>
29226 #endif
29227 /* Override any gcc2 internal prototype to avoid an error.  */
29228 #ifdef __cplusplus
29229 extern "C"
29230 {
29231 #endif
29232 /* We use char because int might match the return type of a gcc2
29233    builtin and then its argument prototype would still apply.  */
29234 char pthread_attr_setschedparam ();
29235 /* The GNU C library defines this for functions which it implements
29236     to always fail with ENOSYS.  Some functions are actually named
29237     something starting with __ and the normal name is an alias.  */
29238 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29239 choke me
29240 #else
29241 char (*f) () = pthread_attr_setschedparam;
29242 #endif
29243 #ifdef __cplusplus
29244 }
29245 #endif
29246
29247 int
29248 main ()
29249 {
29250 return f != pthread_attr_setschedparam;
29251   ;
29252   return 0;
29253 }
29254 _ACEOF
29255 rm -f conftest.$ac_objext conftest$ac_exeext
29256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29257   (eval $ac_link) 2>&5
29258   ac_status=$?
29259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); } &&
29261          { ac_try='test -s conftest$ac_exeext'
29262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; }; then
29267   ac_cv_func_pthread_attr_setschedparam=yes
29268 else
29269   echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29271
29272 ac_cv_func_pthread_attr_setschedparam=no
29273 fi
29274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29275 fi
29276 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29277 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29278 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29279   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29280 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29281 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29282   echo $ECHO_N "(cached) $ECHO_C" >&6
29283 else
29284   cat >conftest.$ac_ext <<_ACEOF
29285 #line $LINENO "configure"
29286 /* confdefs.h.  */
29287 _ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h.  */
29291 /* System header to define __stub macros and hopefully few prototypes,
29292     which can conflict with char sched_get_priority_max (); below.
29293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29294     <limits.h> exists even on freestanding compilers.  */
29295 #ifdef __STDC__
29296 # include <limits.h>
29297 #else
29298 # include <assert.h>
29299 #endif
29300 /* Override any gcc2 internal prototype to avoid an error.  */
29301 #ifdef __cplusplus
29302 extern "C"
29303 {
29304 #endif
29305 /* We use char because int might match the return type of a gcc2
29306    builtin and then its argument prototype would still apply.  */
29307 char sched_get_priority_max ();
29308 /* The GNU C library defines this for functions which it implements
29309     to always fail with ENOSYS.  Some functions are actually named
29310     something starting with __ and the normal name is an alias.  */
29311 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29312 choke me
29313 #else
29314 char (*f) () = sched_get_priority_max;
29315 #endif
29316 #ifdef __cplusplus
29317 }
29318 #endif
29319
29320 int
29321 main ()
29322 {
29323 return f != sched_get_priority_max;
29324   ;
29325   return 0;
29326 }
29327 _ACEOF
29328 rm -f conftest.$ac_objext conftest$ac_exeext
29329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29330   (eval $ac_link) 2>&5
29331   ac_status=$?
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); } &&
29334          { ac_try='test -s conftest$ac_exeext'
29335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336   (eval $ac_try) 2>&5
29337   ac_status=$?
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); }; }; then
29340   ac_cv_func_sched_get_priority_max=yes
29341 else
29342   echo "$as_me: failed program was:" >&5
29343 sed 's/^/| /' conftest.$ac_ext >&5
29344
29345 ac_cv_func_sched_get_priority_max=no
29346 fi
29347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29348 fi
29349 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29350 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29351 if test $ac_cv_func_sched_get_priority_max = yes; then
29352   HAVE_PRIOR_FUNCS=1
29353 else
29354   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29355 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29356 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29357   echo $ECHO_N "(cached) $ECHO_C" >&6
29358 else
29359   ac_check_lib_save_LIBS=$LIBS
29360 LIBS="-lposix4  $LIBS"
29361 cat >conftest.$ac_ext <<_ACEOF
29362 #line $LINENO "configure"
29363 /* confdefs.h.  */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h.  */
29368
29369 /* Override any gcc2 internal prototype to avoid an error.  */
29370 #ifdef __cplusplus
29371 extern "C"
29372 #endif
29373 /* We use char because int might match the return type of a gcc2
29374    builtin and then its argument prototype would still apply.  */
29375 char sched_get_priority_max ();
29376 int
29377 main ()
29378 {
29379 sched_get_priority_max ();
29380   ;
29381   return 0;
29382 }
29383 _ACEOF
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29386   (eval $ac_link) 2>&5
29387   ac_status=$?
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); } &&
29390          { ac_try='test -s conftest$ac_exeext'
29391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392   (eval $ac_try) 2>&5
29393   ac_status=$?
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); }; }; then
29396   ac_cv_lib_posix4_sched_get_priority_max=yes
29397 else
29398   echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29400
29401 ac_cv_lib_posix4_sched_get_priority_max=no
29402 fi
29403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29404 LIBS=$ac_check_lib_save_LIBS
29405 fi
29406 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29407 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29408 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
29409
29410                                 HAVE_PRIOR_FUNCS=1
29411                                 POSIX4_LINK=" -lposix4"
29412
29413 fi
29414
29415
29416 fi
29417
29418
29419 fi
29420
29421
29422 fi
29423
29424
29425       if test "$HAVE_PRIOR_FUNCS" = 1; then
29426         cat >>confdefs.h <<\_ACEOF
29427 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
29428 _ACEOF
29429
29430       else
29431         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29432 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
29433       fi
29434
29435       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29436 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29437 if test "${ac_cv_func_pthread_cancel+set}" = set; then
29438   echo $ECHO_N "(cached) $ECHO_C" >&6
29439 else
29440   cat >conftest.$ac_ext <<_ACEOF
29441 #line $LINENO "configure"
29442 /* confdefs.h.  */
29443 _ACEOF
29444 cat confdefs.h >>conftest.$ac_ext
29445 cat >>conftest.$ac_ext <<_ACEOF
29446 /* end confdefs.h.  */
29447 /* System header to define __stub macros and hopefully few prototypes,
29448     which can conflict with char pthread_cancel (); below.
29449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29450     <limits.h> exists even on freestanding compilers.  */
29451 #ifdef __STDC__
29452 # include <limits.h>
29453 #else
29454 # include <assert.h>
29455 #endif
29456 /* Override any gcc2 internal prototype to avoid an error.  */
29457 #ifdef __cplusplus
29458 extern "C"
29459 {
29460 #endif
29461 /* We use char because int might match the return type of a gcc2
29462    builtin and then its argument prototype would still apply.  */
29463 char pthread_cancel ();
29464 /* The GNU C library defines this for functions which it implements
29465     to always fail with ENOSYS.  Some functions are actually named
29466     something starting with __ and the normal name is an alias.  */
29467 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29468 choke me
29469 #else
29470 char (*f) () = pthread_cancel;
29471 #endif
29472 #ifdef __cplusplus
29473 }
29474 #endif
29475
29476 int
29477 main ()
29478 {
29479 return f != pthread_cancel;
29480   ;
29481   return 0;
29482 }
29483 _ACEOF
29484 rm -f conftest.$ac_objext conftest$ac_exeext
29485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29486   (eval $ac_link) 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } &&
29490          { ac_try='test -s conftest$ac_exeext'
29491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492   (eval $ac_try) 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; }; then
29496   ac_cv_func_pthread_cancel=yes
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501 ac_cv_func_pthread_cancel=no
29502 fi
29503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29504 fi
29505 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29506 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29507 if test $ac_cv_func_pthread_cancel = yes; then
29508   cat >>confdefs.h <<\_ACEOF
29509 #define HAVE_PTHREAD_CANCEL 1
29510 _ACEOF
29511
29512 else
29513   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29514 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
29515 fi
29516
29517
29518       echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29519 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29520 if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29521   echo $ECHO_N "(cached) $ECHO_C" >&6
29522 else
29523
29524         cat >conftest.$ac_ext <<_ACEOF
29525 #line $LINENO "configure"
29526 /* confdefs.h.  */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h.  */
29531 #include <pthread.h>
29532 int
29533 main ()
29534 {
29535
29536                         pthread_cleanup_push(NULL, NULL);
29537                         pthread_cleanup_pop(0);
29538
29539   ;
29540   return 0;
29541 }
29542 _ACEOF
29543 rm -f conftest.$ac_objext
29544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29545   (eval $ac_compile) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } &&
29549          { ac_try='test -s conftest.$ac_objext'
29550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551   (eval $ac_try) 2>&5
29552   ac_status=$?
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); }; }; then
29555
29556                         wx_cv_func_pthread_cleanup_push=yes
29557
29558 else
29559   echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562
29563                         wx_cv_func_pthread_cleanup_push=no
29564
29565 fi
29566 rm -f conftest.$ac_objext conftest.$ac_ext
29567
29568 fi
29569 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29570 echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
29571
29572       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
29573           cat >>confdefs.h <<\_ACEOF
29574 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
29575 _ACEOF
29576
29577       fi
29578
29579
29580       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29581 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29582 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585
29586         cat >conftest.$ac_ext <<_ACEOF
29587 #line $LINENO "configure"
29588 /* confdefs.h.  */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h.  */
29593 #include <pthread.h>
29594 int
29595 main ()
29596 {
29597
29598                pthread_mutexattr_t attr;
29599                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
29600
29601   ;
29602   return 0;
29603 }
29604 _ACEOF
29605 rm -f conftest.$ac_objext
29606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29607   (eval $ac_compile) 2>&5
29608   ac_status=$?
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); } &&
29611          { ac_try='test -s conftest.$ac_objext'
29612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613   (eval $ac_try) 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617
29618                wx_cv_type_pthread_mutexattr_t=yes
29619
29620 else
29621   echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29623
29624
29625                wx_cv_type_pthread_mutexattr_t=no
29626
29627
29628 fi
29629 rm -f conftest.$ac_objext conftest.$ac_ext
29630
29631 fi
29632 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29633 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
29634
29635       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
29636         cat >>confdefs.h <<\_ACEOF
29637 #define HAVE_PTHREAD_MUTEXATTR_T 1
29638 _ACEOF
29639
29640       else
29641                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29642 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29643 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29644   echo $ECHO_N "(cached) $ECHO_C" >&6
29645 else
29646
29647             cat >conftest.$ac_ext <<_ACEOF
29648 #line $LINENO "configure"
29649 /* confdefs.h.  */
29650 _ACEOF
29651 cat confdefs.h >>conftest.$ac_ext
29652 cat >>conftest.$ac_ext <<_ACEOF
29653 /* end confdefs.h.  */
29654 #include <pthread.h>
29655 int
29656 main ()
29657 {
29658
29659                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
29660
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext
29666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29667   (eval $ac_compile) 2>&5
29668   ac_status=$?
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } &&
29671          { ac_try='test -s conftest.$ac_objext'
29672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673   (eval $ac_try) 2>&5
29674   ac_status=$?
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); }; }; then
29677
29678                     wx_cv_type_pthread_rec_mutex_init=yes
29679
29680 else
29681   echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29683
29684
29685                     wx_cv_type_pthread_rec_mutex_init=no
29686
29687
29688 fi
29689 rm -f conftest.$ac_objext conftest.$ac_ext
29690
29691 fi
29692 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29693 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
29694         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
29695           cat >>confdefs.h <<\_ACEOF
29696 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
29697 _ACEOF
29698
29699         else
29700                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29701 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
29702         fi
29703       fi
29704     fi
29705
29706 else
29707     if test "$wxUSE_THREADS" = "yes" ; then
29708       case "${host}" in
29709         *-*-mingw32* )
29710                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29711 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29712 if test "${wx_cv_cflags_mthread+set}" = set; then
29713   echo $ECHO_N "(cached) $ECHO_C" >&6
29714 else
29715
29716                     CFLAGS_OLD="$CFLAGS"
29717                     CFLAGS="$CFLAGS -mthreads"
29718                     cat >conftest.$ac_ext <<_ACEOF
29719 #line $LINENO "configure"
29720 /* confdefs.h.  */
29721 _ACEOF
29722 cat confdefs.h >>conftest.$ac_ext
29723 cat >>conftest.$ac_ext <<_ACEOF
29724 /* end confdefs.h.  */
29725
29726 int
29727 main ()
29728 {
29729
29730   ;
29731   return 0;
29732 }
29733 _ACEOF
29734 rm -f conftest.$ac_objext
29735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29736   (eval $ac_compile) 2>&5
29737   ac_status=$?
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); } &&
29740          { ac_try='test -s conftest.$ac_objext'
29741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742   (eval $ac_try) 2>&5
29743   ac_status=$?
29744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745   (exit $ac_status); }; }; then
29746   wx_cv_cflags_mthread=yes
29747 else
29748   echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29750
29751 wx_cv_cflags_mthread=no
29752
29753 fi
29754 rm -f conftest.$ac_objext conftest.$ac_ext
29755
29756
29757 fi
29758 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29759 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
29760
29761             if test "$wx_cv_cflags_mthread" = "yes"; then
29762                                 CXXFLAGS="$CXXFLAGS -mthreads"
29763                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29764                 LDFLAGS="$LDFLAGS -mthreads"
29765             else
29766                                 CFLAGS="$CFLAGS_OLD"
29767             fi
29768         ;;
29769       esac
29770     fi
29771 fi
29772
29773 if test "$wxUSE_THREADS" = "yes"; then
29774   cat >>confdefs.h <<\_ACEOF
29775 #define wxUSE_THREADS 1
29776 _ACEOF
29777
29778
29779   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
29780 else
29781       if test "$ac_cv_func_strtok_r" = "yes"; then
29782     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29783 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
29784     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29785         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
29786         echo "$as_me:$LINENO: result: yes" >&5
29787 echo "${ECHO_T}yes" >&6
29788     else
29789         echo "$as_me:$LINENO: result: no" >&5
29790 echo "${ECHO_T}no" >&6
29791     fi
29792   fi
29793 fi
29794
29795 if test "$WXGTK20" = 1 ; then
29796   cat >>confdefs.h <<_ACEOF
29797 #define __WXGTK20__ $WXGTK20
29798 _ACEOF
29799
29800   WXGTK12=1
29801 fi
29802
29803 if test "$WXGTK12" = 1 ; then
29804   cat >>confdefs.h <<_ACEOF
29805 #define __WXGTK12__ $WXGTK12
29806 _ACEOF
29807
29808 fi
29809
29810 if test "$WXGTK127" = 1 ; then
29811   cat >>confdefs.h <<_ACEOF
29812 #define __WXGTK127__ $WXGTK127
29813 _ACEOF
29814
29815 fi
29816
29817 WXDEBUG=
29818
29819 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29820     WXDEBUG="-g"
29821     wxUSE_OPTIMISE=no
29822 fi
29823
29824 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29825     wxUSE_DEBUG_INFO=yes
29826     WXDEBUG="-ggdb"
29827 fi
29828
29829 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
29830     cat >>confdefs.h <<\_ACEOF
29831 #define WXDEBUG 1
29832 _ACEOF
29833
29834     WXDEBUG_DEFINE="-D__WXDEBUG__"
29835 else
29836     if test "$wxUSE_GTK" = 1 ; then
29837         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29838     fi
29839 fi
29840
29841 if test "$wxUSE_MEM_TRACING" = "yes" ; then
29842     cat >>confdefs.h <<\_ACEOF
29843 #define wxUSE_MEMORY_TRACING 1
29844 _ACEOF
29845
29846     cat >>confdefs.h <<\_ACEOF
29847 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
29848 _ACEOF
29849
29850     cat >>confdefs.h <<\_ACEOF
29851 #define wxUSE_DEBUG_NEW_ALWAYS 1
29852 _ACEOF
29853
29854     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29855 fi
29856
29857 if test "$wxUSE_DMALLOC" = "yes" ; then
29858     DMALLOC_LIBS="-ldmalloc"
29859 fi
29860
29861 PROFILE=
29862 if test "$wxUSE_PROFILE" = "yes" ; then
29863     PROFILE=" -pg"
29864 fi
29865
29866 CODE_GEN_FLAGS=
29867 CODE_GEN_FLAGS_CXX=
29868 if test "$GCC" = "yes" ; then
29869     if test "$wxUSE_NO_RTTI" = "yes" ; then
29870         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
29871     fi
29872     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29873         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29874     fi
29875     if test "$wxUSE_PERMISSIVE" = "yes" ; then
29876         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29877     fi
29878     if test "$USE_WIN32" = 1 ; then
29879         # I'm not even really sure what this was ever added to solve,
29880         # but someone added it for mingw native builds, so I guess
29881         # they had a reason, right??
29882         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
29883     fi
29884
29885                                                 case "${host}" in
29886       powerpc*-*-aix* )
29887         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29888         ;;
29889       *-hppa* )
29890         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29891         ;;
29892     esac
29893 fi
29894
29895 OPTIMISE=
29896 if test "$wxUSE_OPTIMISE" = "no" ; then
29897     if test "$GCC" = yes ; then
29898                         OPTIMISE="-O0"
29899     fi
29900 else
29901     if test "$GCC" = yes ; then
29902         OPTIMISE="-O2"
29903
29904                 case "${host}" in
29905             i586-*-*|i686-*-* )
29906             OPTIMISE="${OPTIMISE} "
29907         ;;
29908         esac
29909     else
29910         OPTIMISE="-O"
29911     fi
29912 fi
29913
29914
29915 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
29916     cat >>confdefs.h <<\_ACEOF
29917 #define WXWIN_COMPATIBILITY_2 1
29918 _ACEOF
29919
29920
29921     WXWIN_COMPATIBILITY_2_2="yes"
29922 fi
29923
29924 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
29925     cat >>confdefs.h <<\_ACEOF
29926 #define WXWIN_COMPATIBILITY_2_2 1
29927 _ACEOF
29928
29929
29930     WXWIN_COMPATIBILITY_2_4="yes"
29931 fi
29932
29933 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
29934     cat >>confdefs.h <<\_ACEOF
29935 #define WXWIN_COMPATIBILITY_2_4 1
29936 _ACEOF
29937
29938 fi
29939
29940
29941 if test "$wxUSE_GUI" = "yes"; then
29942   cat >>confdefs.h <<\_ACEOF
29943 #define wxUSE_GUI 1
29944 _ACEOF
29945
29946
29947                       else
29948   cat >>confdefs.h <<\_ACEOF
29949 #define wxUSE_NOGUI 1
29950 _ACEOF
29951
29952 fi
29953
29954
29955 if test "$wxUSE_UNIX" = "yes"; then
29956   cat >>confdefs.h <<\_ACEOF
29957 #define wxUSE_UNIX 1
29958 _ACEOF
29959
29960 fi
29961
29962
29963 if test "$wxUSE_APPLE_IEEE" = "yes"; then
29964   cat >>confdefs.h <<\_ACEOF
29965 #define wxUSE_APPLE_IEEE 1
29966 _ACEOF
29967
29968 fi
29969
29970 if test "$wxUSE_TIMER" = "yes"; then
29971   cat >>confdefs.h <<\_ACEOF
29972 #define wxUSE_TIMER 1
29973 _ACEOF
29974
29975 fi
29976
29977 if test "$wxUSE_WAVE" = "yes"; then
29978   cat >>confdefs.h <<\_ACEOF
29979 #define wxUSE_WAVE 1
29980 _ACEOF
29981
29982 fi
29983
29984 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
29985   cat >>confdefs.h <<\_ACEOF
29986 #define wxUSE_CMDLINE_PARSER 1
29987 _ACEOF
29988
29989 fi
29990
29991 if test "$wxUSE_STOPWATCH" = "yes"; then
29992   cat >>confdefs.h <<\_ACEOF
29993 #define wxUSE_STOPWATCH 1
29994 _ACEOF
29995
29996 fi
29997
29998 if test "$wxUSE_DATETIME" = "yes"; then
29999   cat >>confdefs.h <<\_ACEOF
30000 #define wxUSE_DATETIME 1
30001 _ACEOF
30002
30003 fi
30004
30005 if test "$wxUSE_FILE" = "yes"; then
30006   cat >>confdefs.h <<\_ACEOF
30007 #define wxUSE_FILE 1
30008 _ACEOF
30009
30010 fi
30011
30012 if test "$wxUSE_FFILE" = "yes"; then
30013   cat >>confdefs.h <<\_ACEOF
30014 #define wxUSE_FFILE 1
30015 _ACEOF
30016
30017 fi
30018
30019 if test "$wxUSE_FILESYSTEM" = "yes"; then
30020   cat >>confdefs.h <<\_ACEOF
30021 #define wxUSE_FILESYSTEM 1
30022 _ACEOF
30023
30024 fi
30025
30026 if test "$wxUSE_FS_INET" = "yes"; then
30027   cat >>confdefs.h <<\_ACEOF
30028 #define wxUSE_FS_INET 1
30029 _ACEOF
30030
30031 fi
30032
30033 if test "$wxUSE_FS_ZIP" = "yes"; then
30034   cat >>confdefs.h <<\_ACEOF
30035 #define wxUSE_FS_ZIP 1
30036 _ACEOF
30037
30038 fi
30039
30040 if test "$wxUSE_ZIPSTREAM" = "yes"; then
30041   cat >>confdefs.h <<\_ACEOF
30042 #define wxUSE_ZIPSTREAM 1
30043 _ACEOF
30044
30045 fi
30046
30047 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30048   cat >>confdefs.h <<\_ACEOF
30049 #define wxUSE_ON_FATAL_EXCEPTION 1
30050 _ACEOF
30051
30052 fi
30053
30054 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30055   cat >>confdefs.h <<\_ACEOF
30056 #define wxUSE_SNGLINST_CHECKER 1
30057 _ACEOF
30058
30059 fi
30060
30061 if test "$wxUSE_BUSYINFO" = "yes"; then
30062   cat >>confdefs.h <<\_ACEOF
30063 #define wxUSE_BUSYINFO 1
30064 _ACEOF
30065
30066 fi
30067
30068 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
30069   cat >>confdefs.h <<\_ACEOF
30070 #define wxUSE_STD_IOSTREAM 1
30071 _ACEOF
30072
30073 fi
30074
30075 if test "$wxUSE_TEXTBUFFER" = "yes"; then
30076     cat >>confdefs.h <<\_ACEOF
30077 #define wxUSE_TEXTBUFFER 1
30078 _ACEOF
30079
30080 fi
30081
30082 if test "$wxUSE_TEXTFILE" = "yes"; then
30083   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
30084     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30085 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
30086   else
30087     cat >>confdefs.h <<\_ACEOF
30088 #define wxUSE_TEXTFILE 1
30089 _ACEOF
30090
30091   fi
30092 fi
30093
30094 if test "$wxUSE_CONFIG" = "yes" ; then
30095   if test "$wxUSE_TEXTFILE" != "yes"; then
30096     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30097 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
30098   else
30099     cat >>confdefs.h <<\_ACEOF
30100 #define wxUSE_CONFIG 1
30101 _ACEOF
30102
30103     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30104   fi
30105 fi
30106
30107 if test "$wxUSE_INTL" = "yes" ; then
30108   if test "$wxUSE_FILE" != "yes"; then
30109     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30110 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
30111   else
30112     cat >>confdefs.h <<\_ACEOF
30113 #define wxUSE_INTL 1
30114 _ACEOF
30115
30116     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
30117     GUIDIST="$GUIDIST INTL_DIST"
30118   fi
30119 fi
30120
30121 if test "$wxUSE_LOG" = "yes"; then
30122   cat >>confdefs.h <<\_ACEOF
30123 #define wxUSE_LOG 1
30124 _ACEOF
30125
30126
30127     if test "$wxUSE_LOGGUI" = "yes"; then
30128       cat >>confdefs.h <<\_ACEOF
30129 #define wxUSE_LOGGUI 1
30130 _ACEOF
30131
30132     fi
30133
30134     if test "$wxUSE_LOGWINDOW" = "yes"; then
30135       cat >>confdefs.h <<\_ACEOF
30136 #define wxUSE_LOGWINDOW 1
30137 _ACEOF
30138
30139     fi
30140
30141     if test "$wxUSE_LOGDIALOG" = "yes"; then
30142       cat >>confdefs.h <<\_ACEOF
30143 #define wxUSE_LOG_DIALOG 1
30144 _ACEOF
30145
30146     fi
30147 fi
30148
30149 if test "$wxUSE_LONGLONG" = "yes"; then
30150   cat >>confdefs.h <<\_ACEOF
30151 #define wxUSE_LONGLONG 1
30152 _ACEOF
30153
30154 fi
30155
30156 if test "$wxUSE_GEOMETRY" = "yes"; then
30157   cat >>confdefs.h <<\_ACEOF
30158 #define wxUSE_GEOMETRY 1
30159 _ACEOF
30160
30161 fi
30162
30163 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
30164   cat >>confdefs.h <<\_ACEOF
30165 #define wxUSE_DIALUP_MANAGER 1
30166 _ACEOF
30167
30168   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
30169 fi
30170
30171 if test "$wxUSE_STREAMS" = "yes" ; then
30172   cat >>confdefs.h <<\_ACEOF
30173 #define wxUSE_STREAMS 1
30174 _ACEOF
30175
30176 fi
30177
30178
30179 if test "$wxUSE_DATETIME" = "yes"; then
30180
30181 for ac_func in strptime
30182 do
30183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30184 echo "$as_me:$LINENO: checking for $ac_func" >&5
30185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30186 if eval "test \"\${$as_ac_var+set}\" = set"; then
30187   echo $ECHO_N "(cached) $ECHO_C" >&6
30188 else
30189   cat >conftest.$ac_ext <<_ACEOF
30190 #line $LINENO "configure"
30191 /* confdefs.h.  */
30192 _ACEOF
30193 cat confdefs.h >>conftest.$ac_ext
30194 cat >>conftest.$ac_ext <<_ACEOF
30195 /* end confdefs.h.  */
30196 /* System header to define __stub macros and hopefully few prototypes,
30197     which can conflict with char $ac_func (); below.
30198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199     <limits.h> exists even on freestanding compilers.  */
30200 #ifdef __STDC__
30201 # include <limits.h>
30202 #else
30203 # include <assert.h>
30204 #endif
30205 /* Override any gcc2 internal prototype to avoid an error.  */
30206 #ifdef __cplusplus
30207 extern "C"
30208 {
30209 #endif
30210 /* We use char because int might match the return type of a gcc2
30211    builtin and then its argument prototype would still apply.  */
30212 char $ac_func ();
30213 /* The GNU C library defines this for functions which it implements
30214     to always fail with ENOSYS.  Some functions are actually named
30215     something starting with __ and the normal name is an alias.  */
30216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30217 choke me
30218 #else
30219 char (*f) () = $ac_func;
30220 #endif
30221 #ifdef __cplusplus
30222 }
30223 #endif
30224
30225 int
30226 main ()
30227 {
30228 return f != $ac_func;
30229   ;
30230   return 0;
30231 }
30232 _ACEOF
30233 rm -f conftest.$ac_objext conftest$ac_exeext
30234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30235   (eval $ac_link) 2>&5
30236   ac_status=$?
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); } &&
30239          { ac_try='test -s conftest$ac_exeext'
30240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241   (eval $ac_try) 2>&5
30242   ac_status=$?
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); }; }; then
30245   eval "$as_ac_var=yes"
30246 else
30247   echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30249
30250 eval "$as_ac_var=no"
30251 fi
30252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30253 fi
30254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30256 if test `eval echo '${'$as_ac_var'}'` = yes; then
30257   cat >>confdefs.h <<_ACEOF
30258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30259 _ACEOF
30260
30261 fi
30262 done
30263
30264
30265             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30266 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30267 if test "${wx_cv_var_timezone+set}" = set; then
30268   echo $ECHO_N "(cached) $ECHO_C" >&6
30269 else
30270
30271                         cat >conftest.$ac_ext <<_ACEOF
30272 #line $LINENO "configure"
30273 /* confdefs.h.  */
30274 _ACEOF
30275 cat confdefs.h >>conftest.$ac_ext
30276 cat >>conftest.$ac_ext <<_ACEOF
30277 /* end confdefs.h.  */
30278
30279                                 #include <time.h>
30280
30281 int
30282 main ()
30283 {
30284
30285                                 int tz;
30286                                 tz = timezone;
30287
30288   ;
30289   return 0;
30290 }
30291 _ACEOF
30292 rm -f conftest.$ac_objext
30293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30294   (eval $ac_compile) 2>&5
30295   ac_status=$?
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); } &&
30298          { ac_try='test -s conftest.$ac_objext'
30299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300   (eval $ac_try) 2>&5
30301   ac_status=$?
30302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303   (exit $ac_status); }; }; then
30304
30305                                 wx_cv_var_timezone=timezone
30306
30307 else
30308   echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30310
30311
30312                                 cat >conftest.$ac_ext <<_ACEOF
30313 #line $LINENO "configure"
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319
30320                                         #include <time.h>
30321
30322 int
30323 main ()
30324 {
30325
30326                                         int tz;
30327                                         tz = _timezone;
30328
30329   ;
30330   return 0;
30331 }
30332 _ACEOF
30333 rm -f conftest.$ac_objext
30334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30335   (eval $ac_compile) 2>&5
30336   ac_status=$?
30337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } &&
30339          { ac_try='test -s conftest.$ac_objext'
30340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341   (eval $ac_try) 2>&5
30342   ac_status=$?
30343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344   (exit $ac_status); }; }; then
30345
30346                                         wx_cv_var_timezone=_timezone
30347
30348 else
30349   echo "$as_me: failed program was:" >&5
30350 sed 's/^/| /' conftest.$ac_ext >&5
30351
30352
30353                                         cat >conftest.$ac_ext <<_ACEOF
30354 #line $LINENO "configure"
30355 /* confdefs.h.  */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h.  */
30360
30361                                                 #include <time.h>
30362
30363 int
30364 main ()
30365 {
30366
30367                                                 int tz;
30368                                                 tz = __timezone;
30369
30370   ;
30371   return 0;
30372 }
30373 _ACEOF
30374 rm -f conftest.$ac_objext
30375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30376   (eval $ac_compile) 2>&5
30377   ac_status=$?
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); } &&
30380          { ac_try='test -s conftest.$ac_objext'
30381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382   (eval $ac_try) 2>&5
30383   ac_status=$?
30384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385   (exit $ac_status); }; }; then
30386
30387                                                 wx_cv_var_timezone=__timezone
30388
30389 else
30390   echo "$as_me: failed program was:" >&5
30391 sed 's/^/| /' conftest.$ac_ext >&5
30392
30393
30394                                                 if test "$USE_DOS" = 0 ; then
30395                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30396 echo "$as_me: WARNING: no timezone variable" >&2;}
30397                                                 fi
30398
30399
30400 fi
30401 rm -f conftest.$ac_objext conftest.$ac_ext
30402
30403
30404 fi
30405 rm -f conftest.$ac_objext conftest.$ac_ext
30406
30407
30408 fi
30409 rm -f conftest.$ac_objext conftest.$ac_ext
30410
30411
30412 fi
30413 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30414 echo "${ECHO_T}$wx_cv_var_timezone" >&6
30415
30416         if test "x$wx_cv_var_timezone" != x ; then
30417         cat >>confdefs.h <<_ACEOF
30418 #define WX_TIMEZONE $wx_cv_var_timezone
30419 _ACEOF
30420
30421     fi
30422
30423
30424 for ac_func in localtime
30425 do
30426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30427 echo "$as_me:$LINENO: checking for $ac_func" >&5
30428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30429 if eval "test \"\${$as_ac_var+set}\" = set"; then
30430   echo $ECHO_N "(cached) $ECHO_C" >&6
30431 else
30432   cat >conftest.$ac_ext <<_ACEOF
30433 #line $LINENO "configure"
30434 /* confdefs.h.  */
30435 _ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h.  */
30439 /* System header to define __stub macros and hopefully few prototypes,
30440     which can conflict with char $ac_func (); below.
30441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30442     <limits.h> exists even on freestanding compilers.  */
30443 #ifdef __STDC__
30444 # include <limits.h>
30445 #else
30446 # include <assert.h>
30447 #endif
30448 /* Override any gcc2 internal prototype to avoid an error.  */
30449 #ifdef __cplusplus
30450 extern "C"
30451 {
30452 #endif
30453 /* We use char because int might match the return type of a gcc2
30454    builtin and then its argument prototype would still apply.  */
30455 char $ac_func ();
30456 /* The GNU C library defines this for functions which it implements
30457     to always fail with ENOSYS.  Some functions are actually named
30458     something starting with __ and the normal name is an alias.  */
30459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30460 choke me
30461 #else
30462 char (*f) () = $ac_func;
30463 #endif
30464 #ifdef __cplusplus
30465 }
30466 #endif
30467
30468 int
30469 main ()
30470 {
30471 return f != $ac_func;
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30478   (eval $ac_link) 2>&5
30479   ac_status=$?
30480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481   (exit $ac_status); } &&
30482          { ac_try='test -s conftest$ac_exeext'
30483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30484   (eval $ac_try) 2>&5
30485   ac_status=$?
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); }; }; then
30488   eval "$as_ac_var=yes"
30489 else
30490   echo "$as_me: failed program was:" >&5
30491 sed 's/^/| /' conftest.$ac_ext >&5
30492
30493 eval "$as_ac_var=no"
30494 fi
30495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30496 fi
30497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30499 if test `eval echo '${'$as_ac_var'}'` = yes; then
30500   cat >>confdefs.h <<_ACEOF
30501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30502 _ACEOF
30503
30504 fi
30505 done
30506
30507
30508     if test "$ac_cv_func_localtime" = "yes"; then
30509         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30510 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30511 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30512   echo $ECHO_N "(cached) $ECHO_C" >&6
30513 else
30514
30515             cat >conftest.$ac_ext <<_ACEOF
30516 #line $LINENO "configure"
30517 /* confdefs.h.  */
30518 _ACEOF
30519 cat confdefs.h >>conftest.$ac_ext
30520 cat >>conftest.$ac_ext <<_ACEOF
30521 /* end confdefs.h.  */
30522
30523                     #include <time.h>
30524
30525 int
30526 main ()
30527 {
30528
30529                     struct tm tm;
30530                     tm.tm_gmtoff++;
30531
30532   ;
30533   return 0;
30534 }
30535 _ACEOF
30536 rm -f conftest.$ac_objext
30537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30538   (eval $ac_compile) 2>&5
30539   ac_status=$?
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); } &&
30542          { ac_try='test -s conftest.$ac_objext'
30543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544   (eval $ac_try) 2>&5
30545   ac_status=$?
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; }; then
30548
30549                     wx_cv_struct_tm_has_gmtoff=yes
30550
30551 else
30552   echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 wx_cv_struct_tm_has_gmtoff=no
30556
30557 fi
30558 rm -f conftest.$ac_objext conftest.$ac_ext
30559
30560 fi
30561 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30562 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
30563     fi
30564
30565     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
30566         cat >>confdefs.h <<\_ACEOF
30567 #define WX_GMTOFF_IN_TM 1
30568 _ACEOF
30569
30570     fi
30571
30572
30573
30574 for ac_func in gettimeofday ftime
30575 do
30576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30577 echo "$as_me:$LINENO: checking for $ac_func" >&5
30578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30579 if eval "test \"\${$as_ac_var+set}\" = set"; then
30580   echo $ECHO_N "(cached) $ECHO_C" >&6
30581 else
30582   cat >conftest.$ac_ext <<_ACEOF
30583 #line $LINENO "configure"
30584 /* confdefs.h.  */
30585 _ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h.  */
30589 /* System header to define __stub macros and hopefully few prototypes,
30590     which can conflict with char $ac_func (); below.
30591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30592     <limits.h> exists even on freestanding compilers.  */
30593 #ifdef __STDC__
30594 # include <limits.h>
30595 #else
30596 # include <assert.h>
30597 #endif
30598 /* Override any gcc2 internal prototype to avoid an error.  */
30599 #ifdef __cplusplus
30600 extern "C"
30601 {
30602 #endif
30603 /* We use char because int might match the return type of a gcc2
30604    builtin and then its argument prototype would still apply.  */
30605 char $ac_func ();
30606 /* The GNU C library defines this for functions which it implements
30607     to always fail with ENOSYS.  Some functions are actually named
30608     something starting with __ and the normal name is an alias.  */
30609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30610 choke me
30611 #else
30612 char (*f) () = $ac_func;
30613 #endif
30614 #ifdef __cplusplus
30615 }
30616 #endif
30617
30618 int
30619 main ()
30620 {
30621 return f != $ac_func;
30622   ;
30623   return 0;
30624 }
30625 _ACEOF
30626 rm -f conftest.$ac_objext conftest$ac_exeext
30627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30628   (eval $ac_link) 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); } &&
30632          { ac_try='test -s conftest$ac_exeext'
30633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634   (eval $ac_try) 2>&5
30635   ac_status=$?
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); }; }; then
30638   eval "$as_ac_var=yes"
30639 else
30640   echo "$as_me: failed program was:" >&5
30641 sed 's/^/| /' conftest.$ac_ext >&5
30642
30643 eval "$as_ac_var=no"
30644 fi
30645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30646 fi
30647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30649 if test `eval echo '${'$as_ac_var'}'` = yes; then
30650   cat >>confdefs.h <<_ACEOF
30651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30652 _ACEOF
30653  break
30654 fi
30655 done
30656
30657
30658     if test "$ac_cv_func_gettimeofday" = "yes"; then
30659         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30660 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30661 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30662   echo $ECHO_N "(cached) $ECHO_C" >&6
30663 else
30664
30665
30666
30667             ac_ext=cc
30668 ac_cpp='$CXXCPP $CPPFLAGS'
30669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30672
30673
30674             cat >conftest.$ac_ext <<_ACEOF
30675 #line $LINENO "configure"
30676 /* confdefs.h.  */
30677 _ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h.  */
30681
30682                     #include <sys/time.h>
30683                     #include <unistd.h>
30684
30685 int
30686 main ()
30687 {
30688
30689                     struct timeval tv;
30690                     gettimeofday(&tv, NULL);
30691
30692   ;
30693   return 0;
30694 }
30695 _ACEOF
30696 rm -f conftest.$ac_objext
30697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30698   (eval $ac_compile) 2>&5
30699   ac_status=$?
30700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701   (exit $ac_status); } &&
30702          { ac_try='test -s conftest.$ac_objext'
30703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704   (eval $ac_try) 2>&5
30705   ac_status=$?
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); }; }; then
30708   wx_cv_func_gettimeofday_has_2_args=yes
30709 else
30710   echo "$as_me: failed program was:" >&5
30711 sed 's/^/| /' conftest.$ac_ext >&5
30712
30713 cat >conftest.$ac_ext <<_ACEOF
30714 #line $LINENO "configure"
30715 /* confdefs.h.  */
30716 _ACEOF
30717 cat confdefs.h >>conftest.$ac_ext
30718 cat >>conftest.$ac_ext <<_ACEOF
30719 /* end confdefs.h.  */
30720
30721                         #include <sys/time.h>
30722                         #include <unistd.h>
30723
30724 int
30725 main ()
30726 {
30727
30728                         struct timeval tv;
30729                         gettimeofday(&tv);
30730
30731   ;
30732   return 0;
30733 }
30734 _ACEOF
30735 rm -f conftest.$ac_objext
30736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30737   (eval $ac_compile) 2>&5
30738   ac_status=$?
30739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740   (exit $ac_status); } &&
30741          { ac_try='test -s conftest.$ac_objext'
30742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743   (eval $ac_try) 2>&5
30744   ac_status=$?
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); }; }; then
30747   wx_cv_func_gettimeofday_has_2_args=no
30748 else
30749   echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30751
30752
30753                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30754 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
30755                         wx_cv_func_gettimeofday_has_2_args=unknown
30756
30757
30758 fi
30759 rm -f conftest.$ac_objext conftest.$ac_ext
30760
30761 fi
30762 rm -f conftest.$ac_objext conftest.$ac_ext
30763             ac_ext=c
30764 ac_cpp='$CPP $CPPFLAGS'
30765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30768
30769
30770 fi
30771 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30772 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
30773
30774         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
30775             cat >>confdefs.h <<\_ACEOF
30776 #define WX_GETTIMEOFDAY_NO_TZ 1
30777 _ACEOF
30778
30779         fi
30780     fi
30781
30782     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30783 fi
30784
30785
30786 if test "$wxUSE_SOCKETS" = "yes"; then
30787     if test "$wxUSE_MGL" = "1"; then
30788         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30789 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
30790         wxUSE_SOCKETS="no"
30791     fi
30792 fi
30793
30794 if test "$wxUSE_SOCKETS" = "yes"; then
30795         if test "$TOOLKIT" != "MSW"; then
30796                 echo "$as_me:$LINENO: checking for socket" >&5
30797 echo $ECHO_N "checking for socket... $ECHO_C" >&6
30798 if test "${ac_cv_func_socket+set}" = set; then
30799   echo $ECHO_N "(cached) $ECHO_C" >&6
30800 else
30801   cat >conftest.$ac_ext <<_ACEOF
30802 #line $LINENO "configure"
30803 /* confdefs.h.  */
30804 _ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h.  */
30808 /* System header to define __stub macros and hopefully few prototypes,
30809     which can conflict with char socket (); below.
30810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30811     <limits.h> exists even on freestanding compilers.  */
30812 #ifdef __STDC__
30813 # include <limits.h>
30814 #else
30815 # include <assert.h>
30816 #endif
30817 /* Override any gcc2 internal prototype to avoid an error.  */
30818 #ifdef __cplusplus
30819 extern "C"
30820 {
30821 #endif
30822 /* We use char because int might match the return type of a gcc2
30823    builtin and then its argument prototype would still apply.  */
30824 char socket ();
30825 /* The GNU C library defines this for functions which it implements
30826     to always fail with ENOSYS.  Some functions are actually named
30827     something starting with __ and the normal name is an alias.  */
30828 #if defined (__stub_socket) || defined (__stub___socket)
30829 choke me
30830 #else
30831 char (*f) () = socket;
30832 #endif
30833 #ifdef __cplusplus
30834 }
30835 #endif
30836
30837 int
30838 main ()
30839 {
30840 return f != socket;
30841   ;
30842   return 0;
30843 }
30844 _ACEOF
30845 rm -f conftest.$ac_objext conftest$ac_exeext
30846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30847   (eval $ac_link) 2>&5
30848   ac_status=$?
30849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850   (exit $ac_status); } &&
30851          { ac_try='test -s conftest$ac_exeext'
30852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853   (eval $ac_try) 2>&5
30854   ac_status=$?
30855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856   (exit $ac_status); }; }; then
30857   ac_cv_func_socket=yes
30858 else
30859   echo "$as_me: failed program was:" >&5
30860 sed 's/^/| /' conftest.$ac_ext >&5
30861
30862 ac_cv_func_socket=no
30863 fi
30864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30865 fi
30866 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30867 echo "${ECHO_T}$ac_cv_func_socket" >&6
30868 if test $ac_cv_func_socket = yes; then
30869   :
30870 else
30871   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30872 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30873 if test "${ac_cv_lib_socket_socket+set}" = set; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876   ac_check_lib_save_LIBS=$LIBS
30877 LIBS="-lsocket  $LIBS"
30878 cat >conftest.$ac_ext <<_ACEOF
30879 #line $LINENO "configure"
30880 /* confdefs.h.  */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h.  */
30885
30886 /* Override any gcc2 internal prototype to avoid an error.  */
30887 #ifdef __cplusplus
30888 extern "C"
30889 #endif
30890 /* We use char because int might match the return type of a gcc2
30891    builtin and then its argument prototype would still apply.  */
30892 char socket ();
30893 int
30894 main ()
30895 {
30896 socket ();
30897   ;
30898   return 0;
30899 }
30900 _ACEOF
30901 rm -f conftest.$ac_objext conftest$ac_exeext
30902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30903   (eval $ac_link) 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); } &&
30907          { ac_try='test -s conftest$ac_exeext'
30908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909   (eval $ac_try) 2>&5
30910   ac_status=$?
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); }; }; then
30913   ac_cv_lib_socket_socket=yes
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918 ac_cv_lib_socket_socket=no
30919 fi
30920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30921 LIBS=$ac_check_lib_save_LIBS
30922 fi
30923 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30924 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30925 if test $ac_cv_lib_socket_socket = yes; then
30926   if test "$INET_LINK" != " -lsocket"; then
30927                     INET_LINK="$INET_LINK -lsocket"
30928                 fi
30929 else
30930
30931                     { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30932 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
30933                     wxUSE_SOCKETS=no
30934
30935
30936 fi
30937
30938
30939 fi
30940
30941     fi
30942 fi
30943
30944 if test "$wxUSE_SOCKETS" = "yes" ; then
30945                 if test "$TOOLKIT" != "MSW"; then
30946                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30947 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30948 if test "${wx_cv_type_getsockname3+set}" = set; then
30949   echo $ECHO_N "(cached) $ECHO_C" >&6
30950 else
30951
30952                 cat >conftest.$ac_ext <<_ACEOF
30953 #line $LINENO "configure"
30954 /* confdefs.h.  */
30955 _ACEOF
30956 cat confdefs.h >>conftest.$ac_ext
30957 cat >>conftest.$ac_ext <<_ACEOF
30958 /* end confdefs.h.  */
30959
30960                         #include <sys/types.h>
30961                         #include <sys/socket.h>
30962
30963 int
30964 main ()
30965 {
30966
30967                         socklen_t len;
30968                         getsockname(0, 0, &len);
30969
30970   ;
30971   return 0;
30972 }
30973 _ACEOF
30974 rm -f conftest.$ac_objext
30975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30976   (eval $ac_compile) 2>&5
30977   ac_status=$?
30978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979   (exit $ac_status); } &&
30980          { ac_try='test -s conftest.$ac_objext'
30981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30982   (eval $ac_try) 2>&5
30983   ac_status=$?
30984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985   (exit $ac_status); }; }; then
30986   wx_cv_type_getsockname3=socklen_t
30987 else
30988   echo "$as_me: failed program was:" >&5
30989 sed 's/^/| /' conftest.$ac_ext >&5
30990
30991
30992                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
30993                         if test "$GCC" = yes ; then
30994                             CFLAGS="$CFLAGS -Werror"
30995                         fi
30996
30997                         cat >conftest.$ac_ext <<_ACEOF
30998 #line $LINENO "configure"
30999 /* confdefs.h.  */
31000 _ACEOF
31001 cat confdefs.h >>conftest.$ac_ext
31002 cat >>conftest.$ac_ext <<_ACEOF
31003 /* end confdefs.h.  */
31004
31005                                 #include <sys/types.h>
31006                                 #include <sys/socket.h>
31007
31008 int
31009 main ()
31010 {
31011
31012                                 size_t len;
31013                                 getsockname(0, 0, &len);
31014
31015   ;
31016   return 0;
31017 }
31018 _ACEOF
31019 rm -f conftest.$ac_objext
31020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31021   (eval $ac_compile) 2>&5
31022   ac_status=$?
31023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024   (exit $ac_status); } &&
31025          { ac_try='test -s conftest.$ac_objext'
31026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31027   (eval $ac_try) 2>&5
31028   ac_status=$?
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); }; }; then
31031   wx_cv_type_getsockname3=size_t
31032 else
31033   echo "$as_me: failed program was:" >&5
31034 sed 's/^/| /' conftest.$ac_ext >&5
31035
31036 cat >conftest.$ac_ext <<_ACEOF
31037 #line $LINENO "configure"
31038 /* confdefs.h.  */
31039 _ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h.  */
31043
31044                                     #include <sys/types.h>
31045                                     #include <sys/socket.h>
31046
31047 int
31048 main ()
31049 {
31050
31051                                     int len;
31052                                     getsockname(0, 0, &len);
31053
31054   ;
31055   return 0;
31056 }
31057 _ACEOF
31058 rm -f conftest.$ac_objext
31059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31060   (eval $ac_compile) 2>&5
31061   ac_status=$?
31062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063   (exit $ac_status); } &&
31064          { ac_try='test -s conftest.$ac_objext'
31065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066   (eval $ac_try) 2>&5
31067   ac_status=$?
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); }; }; then
31070   wx_cv_type_getsockname3=int
31071 else
31072   echo "$as_me: failed program was:" >&5
31073 sed 's/^/| /' conftest.$ac_ext >&5
31074
31075 wx_cv_type_getsockname3=unknown
31076
31077 fi
31078 rm -f conftest.$ac_objext conftest.$ac_ext
31079
31080 fi
31081 rm -f conftest.$ac_objext conftest.$ac_ext
31082
31083                         CFLAGS="$CFLAGS_OLD"
31084
31085
31086 fi
31087 rm -f conftest.$ac_objext conftest.$ac_ext
31088
31089 fi
31090 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31091 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
31092
31093         if test "$wx_cv_type_getsockname3" = "unknown"; then
31094             wxUSE_SOCKETS=no
31095             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31096 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
31097         else
31098             cat >>confdefs.h <<_ACEOF
31099 #define SOCKLEN_T $wx_cv_type_getsockname3
31100 _ACEOF
31101
31102         fi
31103     fi
31104 fi
31105
31106 if test "$wxUSE_SOCKETS" = "yes" ; then
31107     cat >>confdefs.h <<\_ACEOF
31108 #define wxUSE_SOCKETS 1
31109 _ACEOF
31110
31111     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
31112 fi
31113
31114
31115 if test "$wxUSE_GUI" = "yes"; then
31116
31117     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
31118         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31119 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
31120         wxUSE_JOYSTICK=no
31121      fi
31122     if test "$TOOLKIT" = "MOTIF"; then
31123         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31124 echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
31125         wxUSE_JOYSTICK=no
31126      fi
31127     if test "$TOOLKIT" = "X11"; then
31128         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31129 echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
31130         wxUSE_JOYSTICK=no
31131      fi
31132
31133         if test "$TOOLKIT" != "MSW"; then
31134         if test "$wxUSE_JOYSTICK" = "yes"; then
31135
31136 for ac_header in linux/joystick.h
31137 do
31138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31140   echo "$as_me:$LINENO: checking for $ac_header" >&5
31141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31143   echo $ECHO_N "(cached) $ECHO_C" >&6
31144 fi
31145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31147 else
31148   # Is the header compilable?
31149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31151 cat >conftest.$ac_ext <<_ACEOF
31152 #line $LINENO "configure"
31153 /* confdefs.h.  */
31154 _ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h.  */
31158 $ac_includes_default
31159 #include <$ac_header>
31160 _ACEOF
31161 rm -f conftest.$ac_objext
31162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31163   (eval $ac_compile) 2>&5
31164   ac_status=$?
31165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166   (exit $ac_status); } &&
31167          { ac_try='test -s conftest.$ac_objext'
31168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169   (eval $ac_try) 2>&5
31170   ac_status=$?
31171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172   (exit $ac_status); }; }; then
31173   ac_header_compiler=yes
31174 else
31175   echo "$as_me: failed program was:" >&5
31176 sed 's/^/| /' conftest.$ac_ext >&5
31177
31178 ac_header_compiler=no
31179 fi
31180 rm -f conftest.$ac_objext conftest.$ac_ext
31181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31182 echo "${ECHO_T}$ac_header_compiler" >&6
31183
31184 # Is the header present?
31185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31187 cat >conftest.$ac_ext <<_ACEOF
31188 #line $LINENO "configure"
31189 /* confdefs.h.  */
31190 _ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h.  */
31194 #include <$ac_header>
31195 _ACEOF
31196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31198   ac_status=$?
31199   grep -v '^ *+' conftest.er1 >conftest.err
31200   rm -f conftest.er1
31201   cat conftest.err >&5
31202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203   (exit $ac_status); } >/dev/null; then
31204   if test -s conftest.err; then
31205     ac_cpp_err=$ac_c_preproc_warn_flag
31206   else
31207     ac_cpp_err=
31208   fi
31209 else
31210   ac_cpp_err=yes
31211 fi
31212 if test -z "$ac_cpp_err"; then
31213   ac_header_preproc=yes
31214 else
31215   echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31217
31218   ac_header_preproc=no
31219 fi
31220 rm -f conftest.err conftest.$ac_ext
31221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31222 echo "${ECHO_T}$ac_header_preproc" >&6
31223
31224 # So?  What about this header?
31225 case $ac_header_compiler:$ac_header_preproc in
31226   yes:no )
31227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31231     (
31232       cat <<\_ASBOX
31233 ## ------------------------------------ ##
31234 ## Report this to bug-autoconf@gnu.org. ##
31235 ## ------------------------------------ ##
31236 _ASBOX
31237     ) |
31238       sed "s/^/$as_me: WARNING:     /" >&2
31239     ;;
31240   no:yes )
31241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31243     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31247     (
31248       cat <<\_ASBOX
31249 ## ------------------------------------ ##
31250 ## Report this to bug-autoconf@gnu.org. ##
31251 ## ------------------------------------ ##
31252 _ASBOX
31253     ) |
31254       sed "s/^/$as_me: WARNING:     /" >&2
31255     ;;
31256 esac
31257 echo "$as_me:$LINENO: checking for $ac_header" >&5
31258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31260   echo $ECHO_N "(cached) $ECHO_C" >&6
31261 else
31262   eval "$as_ac_Header=$ac_header_preproc"
31263 fi
31264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31266
31267 fi
31268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31269   cat >>confdefs.h <<_ACEOF
31270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31271 _ACEOF
31272
31273 fi
31274
31275 done
31276
31277             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31278                 wxUSE_JOYSTICK=no
31279                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31280 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
31281             fi
31282         fi
31283     fi
31284
31285     if test "$wxUSE_JOYSTICK" = "yes"; then
31286         cat >>confdefs.h <<\_ACEOF
31287 #define wxUSE_JOYSTICK 1
31288 _ACEOF
31289
31290         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31291     fi
31292 fi
31293
31294
31295 if test "$TOOLKIT" != "MSW"; then
31296
31297     HAVE_DL_FUNCS=0
31298     HAVE_SHL_FUNCS=0
31299     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31300         if test "$USE_DARWIN" = 1; then
31301                         HAVE_DL_FUNCS=1
31302         else
31303
31304 for ac_func in dlopen
31305 do
31306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31307 echo "$as_me:$LINENO: checking for $ac_func" >&5
31308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31309 if eval "test \"\${$as_ac_var+set}\" = set"; then
31310   echo $ECHO_N "(cached) $ECHO_C" >&6
31311 else
31312   cat >conftest.$ac_ext <<_ACEOF
31313 #line $LINENO "configure"
31314 /* confdefs.h.  */
31315 _ACEOF
31316 cat confdefs.h >>conftest.$ac_ext
31317 cat >>conftest.$ac_ext <<_ACEOF
31318 /* end confdefs.h.  */
31319 /* System header to define __stub macros and hopefully few prototypes,
31320     which can conflict with char $ac_func (); below.
31321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31322     <limits.h> exists even on freestanding compilers.  */
31323 #ifdef __STDC__
31324 # include <limits.h>
31325 #else
31326 # include <assert.h>
31327 #endif
31328 /* Override any gcc2 internal prototype to avoid an error.  */
31329 #ifdef __cplusplus
31330 extern "C"
31331 {
31332 #endif
31333 /* We use char because int might match the return type of a gcc2
31334    builtin and then its argument prototype would still apply.  */
31335 char $ac_func ();
31336 /* The GNU C library defines this for functions which it implements
31337     to always fail with ENOSYS.  Some functions are actually named
31338     something starting with __ and the normal name is an alias.  */
31339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31340 choke me
31341 #else
31342 char (*f) () = $ac_func;
31343 #endif
31344 #ifdef __cplusplus
31345 }
31346 #endif
31347
31348 int
31349 main ()
31350 {
31351 return f != $ac_func;
31352   ;
31353   return 0;
31354 }
31355 _ACEOF
31356 rm -f conftest.$ac_objext conftest$ac_exeext
31357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31358   (eval $ac_link) 2>&5
31359   ac_status=$?
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); } &&
31362          { ac_try='test -s conftest$ac_exeext'
31363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31364   (eval $ac_try) 2>&5
31365   ac_status=$?
31366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367   (exit $ac_status); }; }; then
31368   eval "$as_ac_var=yes"
31369 else
31370   echo "$as_me: failed program was:" >&5
31371 sed 's/^/| /' conftest.$ac_ext >&5
31372
31373 eval "$as_ac_var=no"
31374 fi
31375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31376 fi
31377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31379 if test `eval echo '${'$as_ac_var'}'` = yes; then
31380   cat >>confdefs.h <<_ACEOF
31381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31382 _ACEOF
31383
31384                 cat >>confdefs.h <<\_ACEOF
31385 #define HAVE_DLOPEN 1
31386 _ACEOF
31387
31388                 HAVE_DL_FUNCS=1
31389
31390 else
31391
31392                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31395   echo $ECHO_N "(cached) $ECHO_C" >&6
31396 else
31397   ac_check_lib_save_LIBS=$LIBS
31398 LIBS="-ldl  $LIBS"
31399 cat >conftest.$ac_ext <<_ACEOF
31400 #line $LINENO "configure"
31401 /* confdefs.h.  */
31402 _ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h.  */
31406
31407 /* Override any gcc2 internal prototype to avoid an error.  */
31408 #ifdef __cplusplus
31409 extern "C"
31410 #endif
31411 /* We use char because int might match the return type of a gcc2
31412    builtin and then its argument prototype would still apply.  */
31413 char dlopen ();
31414 int
31415 main ()
31416 {
31417 dlopen ();
31418   ;
31419   return 0;
31420 }
31421 _ACEOF
31422 rm -f conftest.$ac_objext conftest$ac_exeext
31423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31424   (eval $ac_link) 2>&5
31425   ac_status=$?
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); } &&
31428          { ac_try='test -s conftest$ac_exeext'
31429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430   (eval $ac_try) 2>&5
31431   ac_status=$?
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); }; }; then
31434   ac_cv_lib_dl_dlopen=yes
31435 else
31436   echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31438
31439 ac_cv_lib_dl_dlopen=no
31440 fi
31441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31442 LIBS=$ac_check_lib_save_LIBS
31443 fi
31444 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31445 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31446 if test $ac_cv_lib_dl_dlopen = yes; then
31447
31448                                 cat >>confdefs.h <<\_ACEOF
31449 #define HAVE_DLOPEN 1
31450 _ACEOF
31451
31452                                 HAVE_DL_FUNCS=1
31453                                 DL_LINK=" -ldl$DL_LINK"
31454
31455 else
31456
31457
31458 for ac_func in shl_load
31459 do
31460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31461 echo "$as_me:$LINENO: checking for $ac_func" >&5
31462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31463 if eval "test \"\${$as_ac_var+set}\" = set"; then
31464   echo $ECHO_N "(cached) $ECHO_C" >&6
31465 else
31466   cat >conftest.$ac_ext <<_ACEOF
31467 #line $LINENO "configure"
31468 /* confdefs.h.  */
31469 _ACEOF
31470 cat confdefs.h >>conftest.$ac_ext
31471 cat >>conftest.$ac_ext <<_ACEOF
31472 /* end confdefs.h.  */
31473 /* System header to define __stub macros and hopefully few prototypes,
31474     which can conflict with char $ac_func (); below.
31475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476     <limits.h> exists even on freestanding compilers.  */
31477 #ifdef __STDC__
31478 # include <limits.h>
31479 #else
31480 # include <assert.h>
31481 #endif
31482 /* Override any gcc2 internal prototype to avoid an error.  */
31483 #ifdef __cplusplus
31484 extern "C"
31485 {
31486 #endif
31487 /* We use char because int might match the return type of a gcc2
31488    builtin and then its argument prototype would still apply.  */
31489 char $ac_func ();
31490 /* The GNU C library defines this for functions which it implements
31491     to always fail with ENOSYS.  Some functions are actually named
31492     something starting with __ and the normal name is an alias.  */
31493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31494 choke me
31495 #else
31496 char (*f) () = $ac_func;
31497 #endif
31498 #ifdef __cplusplus
31499 }
31500 #endif
31501
31502 int
31503 main ()
31504 {
31505 return f != $ac_func;
31506   ;
31507   return 0;
31508 }
31509 _ACEOF
31510 rm -f conftest.$ac_objext conftest$ac_exeext
31511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31512   (eval $ac_link) 2>&5
31513   ac_status=$?
31514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515   (exit $ac_status); } &&
31516          { ac_try='test -s conftest$ac_exeext'
31517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31518   (eval $ac_try) 2>&5
31519   ac_status=$?
31520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521   (exit $ac_status); }; }; then
31522   eval "$as_ac_var=yes"
31523 else
31524   echo "$as_me: failed program was:" >&5
31525 sed 's/^/| /' conftest.$ac_ext >&5
31526
31527 eval "$as_ac_var=no"
31528 fi
31529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31530 fi
31531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31533 if test `eval echo '${'$as_ac_var'}'` = yes; then
31534   cat >>confdefs.h <<_ACEOF
31535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31536 _ACEOF
31537
31538                                                 cat >>confdefs.h <<\_ACEOF
31539 #define HAVE_SHL_LOAD 1
31540 _ACEOF
31541
31542                                                 HAVE_SHL_FUNCS=1
31543
31544 else
31545
31546                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31547 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31548 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31549   echo $ECHO_N "(cached) $ECHO_C" >&6
31550 else
31551   ac_check_lib_save_LIBS=$LIBS
31552 LIBS="-lshl_load  $LIBS"
31553 cat >conftest.$ac_ext <<_ACEOF
31554 #line $LINENO "configure"
31555 /* confdefs.h.  */
31556 _ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h.  */
31560
31561 /* Override any gcc2 internal prototype to avoid an error.  */
31562 #ifdef __cplusplus
31563 extern "C"
31564 #endif
31565 /* We use char because int might match the return type of a gcc2
31566    builtin and then its argument prototype would still apply.  */
31567 char dld ();
31568 int
31569 main ()
31570 {
31571 dld ();
31572   ;
31573   return 0;
31574 }
31575 _ACEOF
31576 rm -f conftest.$ac_objext conftest$ac_exeext
31577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31578   (eval $ac_link) 2>&5
31579   ac_status=$?
31580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581   (exit $ac_status); } &&
31582          { ac_try='test -s conftest$ac_exeext'
31583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31584   (eval $ac_try) 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; }; then
31588   ac_cv_lib_shl_load_dld=yes
31589 else
31590   echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31592
31593 ac_cv_lib_shl_load_dld=no
31594 fi
31595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31596 LIBS=$ac_check_lib_save_LIBS
31597 fi
31598 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31599 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31600 if test $ac_cv_lib_shl_load_dld = yes; then
31601
31602                                                                 HAVE_SHL_FUNCS=1
31603                                                                 DL_LINK=" -ldld$DL_LINK"
31604
31605 fi
31606
31607
31608 fi
31609 done
31610
31611
31612 fi
31613
31614
31615 fi
31616 done
31617
31618
31619                 if test "$HAVE_DL_FUNCS" = 1; then
31620
31621 for ac_func in dlerror
31622 do
31623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31624 echo "$as_me:$LINENO: checking for $ac_func" >&5
31625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31626 if eval "test \"\${$as_ac_var+set}\" = set"; then
31627   echo $ECHO_N "(cached) $ECHO_C" >&6
31628 else
31629   cat >conftest.$ac_ext <<_ACEOF
31630 #line $LINENO "configure"
31631 /* confdefs.h.  */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h.  */
31636 /* System header to define __stub macros and hopefully few prototypes,
31637     which can conflict with char $ac_func (); below.
31638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31639     <limits.h> exists even on freestanding compilers.  */
31640 #ifdef __STDC__
31641 # include <limits.h>
31642 #else
31643 # include <assert.h>
31644 #endif
31645 /* Override any gcc2 internal prototype to avoid an error.  */
31646 #ifdef __cplusplus
31647 extern "C"
31648 {
31649 #endif
31650 /* We use char because int might match the return type of a gcc2
31651    builtin and then its argument prototype would still apply.  */
31652 char $ac_func ();
31653 /* The GNU C library defines this for functions which it implements
31654     to always fail with ENOSYS.  Some functions are actually named
31655     something starting with __ and the normal name is an alias.  */
31656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31657 choke me
31658 #else
31659 char (*f) () = $ac_func;
31660 #endif
31661 #ifdef __cplusplus
31662 }
31663 #endif
31664
31665 int
31666 main ()
31667 {
31668 return f != $ac_func;
31669   ;
31670   return 0;
31671 }
31672 _ACEOF
31673 rm -f conftest.$ac_objext conftest$ac_exeext
31674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31675   (eval $ac_link) 2>&5
31676   ac_status=$?
31677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678   (exit $ac_status); } &&
31679          { ac_try='test -s conftest$ac_exeext'
31680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31681   (eval $ac_try) 2>&5
31682   ac_status=$?
31683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684   (exit $ac_status); }; }; then
31685   eval "$as_ac_var=yes"
31686 else
31687   echo "$as_me: failed program was:" >&5
31688 sed 's/^/| /' conftest.$ac_ext >&5
31689
31690 eval "$as_ac_var=no"
31691 fi
31692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31693 fi
31694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31696 if test `eval echo '${'$as_ac_var'}'` = yes; then
31697   cat >>confdefs.h <<_ACEOF
31698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31699 _ACEOF
31700  cat >>confdefs.h <<\_ACEOF
31701 #define HAVE_DLERROR 1
31702 _ACEOF
31703
31704 else
31705   echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31706 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31707 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31708   echo $ECHO_N "(cached) $ECHO_C" >&6
31709 else
31710   ac_check_lib_save_LIBS=$LIBS
31711 LIBS="-ldl  $LIBS"
31712 cat >conftest.$ac_ext <<_ACEOF
31713 #line $LINENO "configure"
31714 /* confdefs.h.  */
31715 _ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h.  */
31719
31720 /* Override any gcc2 internal prototype to avoid an error.  */
31721 #ifdef __cplusplus
31722 extern "C"
31723 #endif
31724 /* We use char because int might match the return type of a gcc2
31725    builtin and then its argument prototype would still apply.  */
31726 char dlerror ();
31727 int
31728 main ()
31729 {
31730 dlerror ();
31731   ;
31732   return 0;
31733 }
31734 _ACEOF
31735 rm -f conftest.$ac_objext conftest$ac_exeext
31736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31737   (eval $ac_link) 2>&5
31738   ac_status=$?
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); } &&
31741          { ac_try='test -s conftest$ac_exeext'
31742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743   (eval $ac_try) 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; }; then
31747   ac_cv_lib_dl_dlerror=yes
31748 else
31749   echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31751
31752 ac_cv_lib_dl_dlerror=no
31753 fi
31754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31755 LIBS=$ac_check_lib_save_LIBS
31756 fi
31757 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31758 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31759 if test $ac_cv_lib_dl_dlerror = yes; then
31760   cat >>confdefs.h <<\_ACEOF
31761 #define HAVE_DLERROR 1
31762 _ACEOF
31763
31764 fi
31765
31766 fi
31767 done
31768
31769         fi
31770         fi
31771
31772         if test "$HAVE_DL_FUNCS" = 0; then
31773             if test "$HAVE_SHL_FUNCS" = 0; then
31774               if test "$USE_UNIX" = 1; then
31775                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31776 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31777                   wxUSE_DYNAMIC_LOADER=no
31778                   wxUSE_DYNLIB_CLASS=no
31779               else
31780                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31781 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31782               fi
31783             fi
31784         fi
31785     fi
31786 fi
31787
31788 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31789     cat >>confdefs.h <<\_ACEOF
31790 #define wxUSE_DYNAMIC_LOADER 1
31791 _ACEOF
31792
31793 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31794     cat >>confdefs.h <<\_ACEOF
31795 #define wxUSE_DYNLIB_CLASS 1
31796 _ACEOF
31797
31798 fi
31799
31800
31801 if test "$wxUSE_FONTMAP" = "yes" ; then
31802   cat >>confdefs.h <<\_ACEOF
31803 #define wxUSE_FONTMAP 1
31804 _ACEOF
31805
31806 fi
31807
31808 if test "$wxUSE_UNICODE" = "yes" ; then
31809   cat >>confdefs.h <<\_ACEOF
31810 #define wxUSE_UNICODE 1
31811 _ACEOF
31812
31813
31814   if test "$wxUSE_MSW" != 1; then
31815       wxUSE_UNICODE_MSLU=no
31816   fi
31817
31818   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
31819         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31820 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31821 if test "${ac_cv_lib_unicows_main+set}" = set; then
31822   echo $ECHO_N "(cached) $ECHO_C" >&6
31823 else
31824   ac_check_lib_save_LIBS=$LIBS
31825 LIBS="-lunicows  $LIBS"
31826 cat >conftest.$ac_ext <<_ACEOF
31827 #line $LINENO "configure"
31828 /* confdefs.h.  */
31829 _ACEOF
31830 cat confdefs.h >>conftest.$ac_ext
31831 cat >>conftest.$ac_ext <<_ACEOF
31832 /* end confdefs.h.  */
31833
31834
31835 int
31836 main ()
31837 {
31838 main ();
31839   ;
31840   return 0;
31841 }
31842 _ACEOF
31843 rm -f conftest.$ac_objext conftest$ac_exeext
31844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31845   (eval $ac_link) 2>&5
31846   ac_status=$?
31847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848   (exit $ac_status); } &&
31849          { ac_try='test -s conftest$ac_exeext'
31850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31851   (eval $ac_try) 2>&5
31852   ac_status=$?
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); }; }; then
31855   ac_cv_lib_unicows_main=yes
31856 else
31857   echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31859
31860 ac_cv_lib_unicows_main=no
31861 fi
31862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31863 LIBS=$ac_check_lib_save_LIBS
31864 fi
31865 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31866 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31867 if test $ac_cv_lib_unicows_main = yes; then
31868
31869                 cat >>confdefs.h <<\_ACEOF
31870 #define wxUSE_UNICODE_MSLU 1
31871 _ACEOF
31872
31873
31874 else
31875
31876                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31877                              Applications will only run on Windows NT/2000/XP!" >&5
31878 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31879                              Applications will only run on Windows NT/2000/XP!" >&2;}
31880                 wxUSE_UNICODE_MSLU=no
31881
31882 fi
31883
31884     fi
31885 fi
31886
31887 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
31888   cat >>confdefs.h <<\_ACEOF
31889 #define wxUSE_EXPERIMENTAL_PRINTF 1
31890 _ACEOF
31891
31892 fi
31893
31894
31895 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
31896   cat >>confdefs.h <<\_ACEOF
31897 #define wxUSE_POSTSCRIPT 1
31898 _ACEOF
31899
31900 fi
31901
31902 cat >>confdefs.h <<\_ACEOF
31903 #define wxUSE_AFM_FOR_POSTSCRIPT 1
31904 _ACEOF
31905
31906
31907 cat >>confdefs.h <<\_ACEOF
31908 #define wxUSE_NORMALIZED_PS_FONTS 1
31909 _ACEOF
31910
31911
31912
31913 if test "$wxUSE_CONSTRAINTS" = "yes"; then
31914     cat >>confdefs.h <<\_ACEOF
31915 #define wxUSE_CONSTRAINTS 1
31916 _ACEOF
31917
31918     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31919 fi
31920
31921 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31922
31923
31924    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31925        cat >>confdefs.h <<\_ACEOF
31926 #define wxUSE_MDI_ARCHITECTURE 1
31927 _ACEOF
31928
31929        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31930    fi
31931 fi
31932
31933 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
31934     cat >>confdefs.h <<\_ACEOF
31935 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
31936 _ACEOF
31937
31938     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31939     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31940         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31941     fi
31942 fi
31943
31944 if test "$wxUSE_HELP" = "yes"; then
31945     cat >>confdefs.h <<\_ACEOF
31946 #define wxUSE_HELP 1
31947 _ACEOF
31948
31949     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
31950
31951     if test "$wxUSE_MSW" = 1; then
31952       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
31953         cat >>confdefs.h <<\_ACEOF
31954 #define wxUSE_MS_HTML_HELP 1
31955 _ACEOF
31956
31957       fi
31958     fi
31959
31960     if test "$wxUSE_WXHTML_HELP" = "yes"; then
31961       if test "$wxUSE_HTML" = "yes"; then
31962         cat >>confdefs.h <<\_ACEOF
31963 #define wxUSE_WXHTML_HELP 1
31964 _ACEOF
31965
31966       else
31967         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
31968 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
31969         wxUSE_WXHTML_HELP=no
31970       fi
31971     fi
31972 fi
31973
31974 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
31975     if test "$wxUSE_CONSTRAINTS" != "yes"; then
31976         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
31977 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
31978     else
31979         cat >>confdefs.h <<\_ACEOF
31980 #define wxUSE_PRINTING_ARCHITECTURE 1
31981 _ACEOF
31982
31983     fi
31984     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
31985 fi
31986
31987 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
31988     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
31989 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
31990    { (exit 1); exit 1; }; }
31991 fi
31992
31993
31994 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
31995                           -o "$wxUSE_CLIPBOARD"     = "yes" \
31996                           -o "$wxUSE_OLE"     = "yes" \
31997                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
31998
31999 for ac_header in ole2.h
32000 do
32001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32003   echo "$as_me:$LINENO: checking for $ac_header" >&5
32004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32006   echo $ECHO_N "(cached) $ECHO_C" >&6
32007 fi
32008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32010 else
32011   # Is the header compilable?
32012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32014 cat >conftest.$ac_ext <<_ACEOF
32015 #line $LINENO "configure"
32016 /* confdefs.h.  */
32017 _ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h.  */
32021 $ac_includes_default
32022 #include <$ac_header>
32023 _ACEOF
32024 rm -f conftest.$ac_objext
32025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32026   (eval $ac_compile) 2>&5
32027   ac_status=$?
32028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029   (exit $ac_status); } &&
32030          { ac_try='test -s conftest.$ac_objext'
32031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032   (eval $ac_try) 2>&5
32033   ac_status=$?
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); }; }; then
32036   ac_header_compiler=yes
32037 else
32038   echo "$as_me: failed program was:" >&5
32039 sed 's/^/| /' conftest.$ac_ext >&5
32040
32041 ac_header_compiler=no
32042 fi
32043 rm -f conftest.$ac_objext conftest.$ac_ext
32044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32045 echo "${ECHO_T}$ac_header_compiler" >&6
32046
32047 # Is the header present?
32048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32050 cat >conftest.$ac_ext <<_ACEOF
32051 #line $LINENO "configure"
32052 /* confdefs.h.  */
32053 _ACEOF
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h.  */
32057 #include <$ac_header>
32058 _ACEOF
32059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32061   ac_status=$?
32062   grep -v '^ *+' conftest.er1 >conftest.err
32063   rm -f conftest.er1
32064   cat conftest.err >&5
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); } >/dev/null; then
32067   if test -s conftest.err; then
32068     ac_cpp_err=$ac_c_preproc_warn_flag
32069   else
32070     ac_cpp_err=
32071   fi
32072 else
32073   ac_cpp_err=yes
32074 fi
32075 if test -z "$ac_cpp_err"; then
32076   ac_header_preproc=yes
32077 else
32078   echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32080
32081   ac_header_preproc=no
32082 fi
32083 rm -f conftest.err conftest.$ac_ext
32084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32085 echo "${ECHO_T}$ac_header_preproc" >&6
32086
32087 # So?  What about this header?
32088 case $ac_header_compiler:$ac_header_preproc in
32089   yes:no )
32090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32094     (
32095       cat <<\_ASBOX
32096 ## ------------------------------------ ##
32097 ## Report this to bug-autoconf@gnu.org. ##
32098 ## ------------------------------------ ##
32099 _ASBOX
32100     ) |
32101       sed "s/^/$as_me: WARNING:     /" >&2
32102     ;;
32103   no:yes )
32104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32106     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32110     (
32111       cat <<\_ASBOX
32112 ## ------------------------------------ ##
32113 ## Report this to bug-autoconf@gnu.org. ##
32114 ## ------------------------------------ ##
32115 _ASBOX
32116     ) |
32117       sed "s/^/$as_me: WARNING:     /" >&2
32118     ;;
32119 esac
32120 echo "$as_me:$LINENO: checking for $ac_header" >&5
32121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32123   echo $ECHO_N "(cached) $ECHO_C" >&6
32124 else
32125   eval "$as_ac_Header=$ac_header_preproc"
32126 fi
32127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32129
32130 fi
32131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32132   cat >>confdefs.h <<_ACEOF
32133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32134 _ACEOF
32135
32136 fi
32137
32138 done
32139
32140
32141     if test "$ac_cv_header_ole2_h" = "yes" ; then
32142         if test "$GCC" = yes ; then
32143
32144
32145             ac_ext=cc
32146 ac_cpp='$CXXCPP $CPPFLAGS'
32147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32150
32151
32152             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32153 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32154             cat >conftest.$ac_ext <<_ACEOF
32155 #line $LINENO "configure"
32156 /* confdefs.h.  */
32157 _ACEOF
32158 cat confdefs.h >>conftest.$ac_ext
32159 cat >>conftest.$ac_ext <<_ACEOF
32160 /* end confdefs.h.  */
32161 #include <windows.h>
32162                             #include <ole2.h>
32163 int
32164 main ()
32165 {
32166
32167   ;
32168   return 0;
32169 }
32170 _ACEOF
32171 rm -f conftest.$ac_objext
32172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32173   (eval $ac_compile) 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); } &&
32177          { ac_try='test -s conftest.$ac_objext'
32178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179   (eval $ac_try) 2>&5
32180   ac_status=$?
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); }; }; then
32183   echo "$as_me:$LINENO: result: no" >&5
32184 echo "${ECHO_T}no" >&6
32185 else
32186   echo "$as_me: failed program was:" >&5
32187 sed 's/^/| /' conftest.$ac_ext >&5
32188
32189 echo "$as_me:$LINENO: result: yes" >&5
32190 echo "${ECHO_T}yes" >&6
32191                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32192 fi
32193 rm -f conftest.$ac_objext conftest.$ac_ext
32194             ac_ext=c
32195 ac_cpp='$CPP $CPPFLAGS'
32196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32199
32200             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
32201             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
32202             cat >>confdefs.h <<\_ACEOF
32203 #define wxUSE_OLE 1
32204 _ACEOF
32205
32206
32207         fi
32208
32209                 cat >>confdefs.h <<\_ACEOF
32210 #define wxUSE_DATAOBJ 1
32211 _ACEOF
32212
32213     else
32214         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32215 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
32216
32217         wxUSE_CLIPBOARD=no
32218         wxUSE_DRAG_AND_DROP=no
32219         wxUSE_DATAOBJ=no
32220         wxUSE_OLE=no
32221     fi
32222
32223     if test "$wxUSE_METAFILE" = "yes"; then
32224         cat >>confdefs.h <<\_ACEOF
32225 #define wxUSE_METAFILE 1
32226 _ACEOF
32227
32228
32229                 cat >>confdefs.h <<\_ACEOF
32230 #define wxUSE_ENH_METAFILE 1
32231 _ACEOF
32232
32233     fi
32234 fi
32235
32236 if test "$wxUSE_IPC" = "yes"; then
32237     if test "$wxUSE_SOCKETS" != "yes"; then
32238         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32239 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
32240     fi
32241
32242     cat >>confdefs.h <<\_ACEOF
32243 #define wxUSE_IPC 1
32244 _ACEOF
32245
32246 fi
32247
32248 if test "$wxUSE_CLIPBOARD" = "yes"; then
32249     if test "$wxUSE_MGL" = 1; then
32250         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32251 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
32252         wxUSE_CLIPBOARD=no
32253     fi
32254
32255     if test "$wxUSE_CLIPBOARD" = "yes"; then
32256         cat >>confdefs.h <<\_ACEOF
32257 #define wxUSE_CLIPBOARD 1
32258 _ACEOF
32259
32260
32261                 cat >>confdefs.h <<\_ACEOF
32262 #define wxUSE_DATAOBJ 1
32263 _ACEOF
32264
32265     fi
32266 fi
32267
32268 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32269     if test "$wxUSE_GTK" = 1; then
32270         if test "$WXGTK12" != 1; then
32271             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32272 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
32273             wxUSE_DRAG_AND_DROP=no
32274         fi
32275     fi
32276
32277     if test "$wxUSE_MOTIF" = 1; then
32278         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32279 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
32280         wxUSE_DRAG_AND_DROP=no
32281     fi
32282
32283     if test "$wxUSE_X11" = 1; then
32284         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32285 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
32286         wxUSE_DRAG_AND_DROP=no
32287     fi
32288
32289     if test "$wxUSE_MGL" = 1; then
32290         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32291 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
32292         wxUSE_DRAG_AND_DROP=no
32293     fi
32294
32295     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
32296         cat >>confdefs.h <<\_ACEOF
32297 #define wxUSE_DRAG_AND_DROP 1
32298 _ACEOF
32299
32300         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32301     fi
32302
32303 fi
32304
32305 if test "$wxUSE_SPLINES" = "yes" ; then
32306   cat >>confdefs.h <<\_ACEOF
32307 #define wxUSE_SPLINES 1
32308 _ACEOF
32309
32310 fi
32311
32312
32313 USES_CONTROLS=0
32314 if test "$wxUSE_CONTROLS" = "yes"; then
32315   USES_CONTROLS=1
32316 fi
32317
32318 if test "$wxUSE_ACCEL" = "yes"; then
32319   cat >>confdefs.h <<\_ACEOF
32320 #define wxUSE_ACCEL 1
32321 _ACEOF
32322
32323   USES_CONTROLS=1
32324 fi
32325
32326 if test "$wxUSE_BUTTON" = "yes"; then
32327   cat >>confdefs.h <<\_ACEOF
32328 #define wxUSE_BUTTON 1
32329 _ACEOF
32330
32331   USES_CONTROLS=1
32332 fi
32333
32334 if test "$wxUSE_BMPBUTTON" = "yes"; then
32335   cat >>confdefs.h <<\_ACEOF
32336 #define wxUSE_BMPBUTTON 1
32337 _ACEOF
32338
32339   USES_CONTROLS=1
32340 fi
32341
32342 if test "$wxUSE_CALCTRL" = "yes"; then
32343   cat >>confdefs.h <<\_ACEOF
32344 #define wxUSE_CALENDARCTRL 1
32345 _ACEOF
32346
32347   USES_CONTROLS=1
32348   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
32349 fi
32350
32351 if test "$wxUSE_CARET" = "yes"; then
32352   cat >>confdefs.h <<\_ACEOF
32353 #define wxUSE_CARET 1
32354 _ACEOF
32355
32356   USES_CONTROLS=1
32357   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32358 fi
32359
32360 if test "$wxUSE_COMBOBOX" = "yes"; then
32361   cat >>confdefs.h <<\_ACEOF
32362 #define wxUSE_COMBOBOX 1
32363 _ACEOF
32364
32365   USES_CONTROLS=1
32366 fi
32367
32368 if test "$wxUSE_CHOICE" = "yes"; then
32369   cat >>confdefs.h <<\_ACEOF
32370 #define wxUSE_CHOICE 1
32371 _ACEOF
32372
32373   USES_CONTROLS=1
32374 fi
32375
32376 if test "$wxUSE_CHECKBOX" = "yes"; then
32377   cat >>confdefs.h <<\_ACEOF
32378 #define wxUSE_CHECKBOX 1
32379 _ACEOF
32380
32381   USES_CONTROLS=1
32382 fi
32383
32384 if test "$wxUSE_CHECKLST" = "yes"; then
32385   cat >>confdefs.h <<\_ACEOF
32386 #define wxUSE_CHECKLISTBOX 1
32387 _ACEOF
32388
32389   USES_CONTROLS=1
32390   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32391 fi
32392
32393 if test "$wxUSE_DISPLAY" = "yes"; then
32394     cat >>confdefs.h <<\_ACEOF
32395 #define wxUSE_DISPLAY 1
32396 _ACEOF
32397
32398     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32399 fi
32400
32401 if test "$wxUSE_GAUGE" = "yes"; then
32402   cat >>confdefs.h <<\_ACEOF
32403 #define wxUSE_GAUGE 1
32404 _ACEOF
32405
32406   USES_CONTROLS=1
32407 fi
32408
32409 if test "$wxUSE_GRID" = "yes"; then
32410   cat >>confdefs.h <<\_ACEOF
32411 #define wxUSE_GRID 1
32412 _ACEOF
32413
32414   USES_CONTROLS=1
32415   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
32416 fi
32417
32418 if test "$wxUSE_IMAGLIST" = "yes"; then
32419     cat >>confdefs.h <<\_ACEOF
32420 #define wxUSE_IMAGLIST 1
32421 _ACEOF
32422
32423 fi
32424
32425 if test "$wxUSE_LISTBOX" = "yes"; then
32426     cat >>confdefs.h <<\_ACEOF
32427 #define wxUSE_LISTBOX 1
32428 _ACEOF
32429
32430     USES_CONTROLS=1
32431 fi
32432
32433 if test "$wxUSE_LISTCTRL" = "yes"; then
32434     if test "$wxUSE_IMAGLIST" = "yes"; then
32435         cat >>confdefs.h <<\_ACEOF
32436 #define wxUSE_LISTCTRL 1
32437 _ACEOF
32438
32439         USES_CONTROLS=1
32440         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32441     else
32442         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32443 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
32444     fi
32445 fi
32446
32447 if test "$wxUSE_NOTEBOOK" = "yes"; then
32448     cat >>confdefs.h <<\_ACEOF
32449 #define wxUSE_NOTEBOOK 1
32450 _ACEOF
32451
32452     USES_CONTROLS=1
32453     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32454 fi
32455
32456
32457 if test "$wxUSE_RADIOBOX" = "yes"; then
32458     cat >>confdefs.h <<\_ACEOF
32459 #define wxUSE_RADIOBOX 1
32460 _ACEOF
32461
32462     USES_CONTROLS=1
32463 fi
32464
32465 if test "$wxUSE_RADIOBTN" = "yes"; then
32466     cat >>confdefs.h <<\_ACEOF
32467 #define wxUSE_RADIOBTN 1
32468 _ACEOF
32469
32470     USES_CONTROLS=1
32471 fi
32472
32473 if test "$wxUSE_SASH" = "yes"; then
32474     cat >>confdefs.h <<\_ACEOF
32475 #define wxUSE_SASH 1
32476 _ACEOF
32477
32478     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32479 fi
32480
32481 if test "$wxUSE_SCROLLBAR" = "yes"; then
32482     cat >>confdefs.h <<\_ACEOF
32483 #define wxUSE_SCROLLBAR 1
32484 _ACEOF
32485
32486     USES_CONTROLS=1
32487     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
32488 fi
32489
32490 if test "$wxUSE_SLIDER" = "yes"; then
32491     cat >>confdefs.h <<\_ACEOF
32492 #define wxUSE_SLIDER 1
32493 _ACEOF
32494
32495     USES_CONTROLS=1
32496 fi
32497
32498 if test "$wxUSE_SPINBTN" = "yes"; then
32499     cat >>confdefs.h <<\_ACEOF
32500 #define wxUSE_SPINBTN 1
32501 _ACEOF
32502
32503     USES_CONTROLS=1
32504 fi
32505
32506 if test "$wxUSE_SPINCTRL" = "yes"; then
32507     cat >>confdefs.h <<\_ACEOF
32508 #define wxUSE_SPINCTRL 1
32509 _ACEOF
32510
32511     USES_CONTROLS=1
32512 fi
32513
32514 if test "$wxUSE_SPLITTER" = "yes"; then
32515     cat >>confdefs.h <<\_ACEOF
32516 #define wxUSE_SPLITTER 1
32517 _ACEOF
32518
32519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32520 fi
32521
32522 if test "$wxUSE_STATBMP" = "yes"; then
32523     cat >>confdefs.h <<\_ACEOF
32524 #define wxUSE_STATBMP 1
32525 _ACEOF
32526
32527     USES_CONTROLS=1
32528 fi
32529
32530 if test "$wxUSE_STATBOX" = "yes"; then
32531     cat >>confdefs.h <<\_ACEOF
32532 #define wxUSE_STATBOX 1
32533 _ACEOF
32534
32535     USES_CONTROLS=1
32536 fi
32537
32538 if test "$wxUSE_STATTEXT" = "yes"; then
32539     cat >>confdefs.h <<\_ACEOF
32540 #define wxUSE_STATTEXT 1
32541 _ACEOF
32542
32543     USES_CONTROLS=1
32544 fi
32545
32546 if test "$wxUSE_STATLINE" = "yes"; then
32547     cat >>confdefs.h <<\_ACEOF
32548 #define wxUSE_STATLINE 1
32549 _ACEOF
32550
32551     USES_CONTROLS=1
32552 fi
32553
32554 if test "$wxUSE_STATUSBAR" = "yes"; then
32555     cat >>confdefs.h <<\_ACEOF
32556 #define wxUSE_STATUSBAR 1
32557 _ACEOF
32558
32559     USES_CONTROLS=1
32560
32561     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
32562 fi
32563
32564 if test "$wxUSE_TABDIALOG" = "yes"; then
32565     cat >>confdefs.h <<\_ACEOF
32566 #define wxUSE_TAB_DIALOG 1
32567 _ACEOF
32568
32569     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32570 fi
32571
32572 if test "$wxUSE_TEXTCTRL" = "yes"; then
32573     cat >>confdefs.h <<\_ACEOF
32574 #define wxUSE_TEXTCTRL 1
32575 _ACEOF
32576
32577     USES_CONTROLS=1
32578     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32579 fi
32580
32581 if test "$wxUSE_TOGGLEBTN" = "yes"; then
32582     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32583         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32584 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
32585         wxUSE_TOGGLEBTN=no
32586     fi
32587     if test "$wxUSE_UNIVERSAL" = "yes"; then
32588         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32589 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
32590         wxUSE_TOGGLEBTN=no
32591     fi
32592
32593     if test "$wxUSE_TOGGLEBTN" = "yes"; then
32594         cat >>confdefs.h <<\_ACEOF
32595 #define wxUSE_TOGGLEBTN 1
32596 _ACEOF
32597
32598         USES_CONTROLS=1
32599     fi
32600 fi
32601
32602 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
32603     cat >>confdefs.h <<\_ACEOF
32604 #define wxUSE_TOOLBAR_SIMPLE 1
32605 _ACEOF
32606
32607     wxUSE_TOOLBAR="yes"
32608     USES_CONTROLS=1
32609 fi
32610
32611 if test "$wxUSE_TOOLBAR" = "yes"; then
32612     cat >>confdefs.h <<\_ACEOF
32613 #define wxUSE_TOOLBAR 1
32614 _ACEOF
32615
32616     USES_CONTROLS=1
32617
32618         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32619         wxUSE_TOOLBAR_NATIVE="yes"
32620     fi
32621
32622     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
32623         cat >>confdefs.h <<\_ACEOF
32624 #define wxUSE_TOOLBAR_NATIVE 1
32625 _ACEOF
32626
32627         USES_CONTROLS=1
32628     fi
32629
32630     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
32631 fi
32632
32633 if test "$wxUSE_TOOLTIPS" = "yes"; then
32634     if test "$wxUSE_MOTIF" = 1; then
32635         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32636 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
32637     else
32638         if test "$wxUSE_UNIVERSAL" = "yes"; then
32639             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32640 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
32641         else
32642             cat >>confdefs.h <<\_ACEOF
32643 #define wxUSE_TOOLTIPS 1
32644 _ACEOF
32645
32646         fi
32647     fi
32648 fi
32649
32650 if test "$wxUSE_TREECTRL" = "yes"; then
32651     if test "$wxUSE_IMAGLIST" = "yes"; then
32652         cat >>confdefs.h <<\_ACEOF
32653 #define wxUSE_TREECTRL 1
32654 _ACEOF
32655
32656         USES_CONTROLS=1
32657         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32658     else
32659         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32660 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
32661     fi
32662 fi
32663
32664 if test "$wxUSE_POPUPWIN" = "yes"; then
32665     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32666         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32667 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
32668     else
32669         if test "$wxUSE_MOTIF" = 1; then
32670             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32671 echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
32672         else
32673             if test "$wxUSE_PM" = 1; then
32674                 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32675 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
32676             else
32677                 cat >>confdefs.h <<\_ACEOF
32678 #define wxUSE_POPUPWIN 1
32679 _ACEOF
32680
32681
32682                 USES_CONTROLS=1
32683             fi
32684         fi
32685     fi
32686 fi
32687
32688 if test "$wxUSE_TIPWINDOW" = "yes"; then
32689     if test "$wxUSE_PM" = 1; then
32690         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32691 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
32692     else
32693         cat >>confdefs.h <<\_ACEOF
32694 #define wxUSE_TIPWINDOW 1
32695 _ACEOF
32696
32697     fi
32698 fi
32699
32700 if test "$USES_CONTROLS" = 1; then
32701     cat >>confdefs.h <<\_ACEOF
32702 #define wxUSE_CONTROLS 1
32703 _ACEOF
32704
32705 fi
32706
32707
32708
32709 if test "$wxUSE_DRAGIMAGE" = "yes"; then
32710     cat >>confdefs.h <<\_ACEOF
32711 #define wxUSE_DRAGIMAGE 1
32712 _ACEOF
32713
32714     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32715 fi
32716
32717 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
32718     cat >>confdefs.h <<\_ACEOF
32719 #define wxUSE_ACCESSIBILITY 1
32720 _ACEOF
32721
32722     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32723 fi
32724
32725 if test "$wxUSE_MENUS" = "yes"; then
32726     cat >>confdefs.h <<\_ACEOF
32727 #define wxUSE_MENUS 1
32728 _ACEOF
32729
32730     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
32731 fi
32732
32733 if test "$wxUSE_METAFILE" = "yes"; then
32734     cat >>confdefs.h <<\_ACEOF
32735 #define wxUSE_METAFILE 1
32736 _ACEOF
32737
32738 fi
32739
32740 if test "$wxUSE_MIMETYPE" = "yes"; then
32741     cat >>confdefs.h <<\_ACEOF
32742 #define wxUSE_MIMETYPE 1
32743 _ACEOF
32744
32745 fi
32746
32747 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
32748     cat >>confdefs.h <<\_ACEOF
32749 #define wxUSE_SYSTEM_OPTIONS 1
32750 _ACEOF
32751
32752 if test "$TOOLKIT" = "MSW"; then
32753     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32754 fi
32755
32756 fi
32757
32758 if test "$wxUSE_PROTOCOL" = "yes"; then
32759     if test "$wxUSE_SOCKETS" != "yes"; then
32760         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32761 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
32762         wxUSE_PROTOCOL=no
32763     fi
32764
32765     if test "$wxUSE_PROTOCOL" = "yes"; then
32766         cat >>confdefs.h <<\_ACEOF
32767 #define wxUSE_PROTOCOL 1
32768 _ACEOF
32769
32770
32771         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
32772             cat >>confdefs.h <<\_ACEOF
32773 #define wxUSE_PROTOCOL_HTTP 1
32774 _ACEOF
32775
32776         fi
32777         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
32778             cat >>confdefs.h <<\_ACEOF
32779 #define wxUSE_PROTOCOL_FTP 1
32780 _ACEOF
32781
32782         fi
32783         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
32784             cat >>confdefs.h <<\_ACEOF
32785 #define wxUSE_PROTOCOL_FILE 1
32786 _ACEOF
32787
32788         fi
32789     fi
32790 fi
32791
32792 if test "$wxUSE_URL" = "yes"; then
32793     if test "$wxUSE_PROTOCOL" != "yes"; then
32794         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32795 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
32796         wxUSE_URL=no
32797     fi
32798     if test "$wxUSE_URL" = "yes"; then
32799         cat >>confdefs.h <<\_ACEOF
32800 #define wxUSE_URL 1
32801 _ACEOF
32802
32803     fi
32804 fi
32805
32806 if test "$wxUSE_MINIFRAME" = "yes"; then
32807     cat >>confdefs.h <<\_ACEOF
32808 #define wxUSE_MINIFRAME 1
32809 _ACEOF
32810
32811     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32812 fi
32813
32814 if test "$wxUSE_HTML" = "yes"; then
32815     cat >>confdefs.h <<\_ACEOF
32816 #define wxUSE_HTML 1
32817 _ACEOF
32818
32819     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
32820 fi
32821
32822 if test "$wxUSE_VALIDATORS" = "yes"; then
32823     cat >>confdefs.h <<\_ACEOF
32824 #define wxUSE_VALIDATORS 1
32825 _ACEOF
32826
32827     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32828 fi
32829
32830 if test "$wxUSE_PALETTE" = "yes" ; then
32831   cat >>confdefs.h <<\_ACEOF
32832 #define wxUSE_PALETTE 1
32833 _ACEOF
32834
32835 fi
32836
32837 if test "$wxUSE_IMAGE" = "yes" ; then
32838   cat >>confdefs.h <<\_ACEOF
32839 #define wxUSE_IMAGE 1
32840 _ACEOF
32841
32842 fi
32843
32844 if test "$wxUSE_GIF" = "yes" ; then
32845   cat >>confdefs.h <<\_ACEOF
32846 #define wxUSE_GIF 1
32847 _ACEOF
32848
32849 fi
32850
32851 if test "$wxUSE_PCX" = "yes" ; then
32852   cat >>confdefs.h <<\_ACEOF
32853 #define wxUSE_PCX 1
32854 _ACEOF
32855
32856 fi
32857
32858 if test "$wxUSE_IFF" = "yes" ; then
32859   cat >>confdefs.h <<\_ACEOF
32860 #define wxUSE_IFF 1
32861 _ACEOF
32862
32863 fi
32864
32865 if test "$wxUSE_PNM" = "yes" ; then
32866   cat >>confdefs.h <<\_ACEOF
32867 #define wxUSE_PNM 1
32868 _ACEOF
32869
32870 fi
32871
32872 if test "$wxUSE_XPM" = "yes" ; then
32873   cat >>confdefs.h <<\_ACEOF
32874 #define wxUSE_XPM 1
32875 _ACEOF
32876
32877 fi
32878
32879 if test "$wxUSE_ICO_CUR" = "yes" ; then
32880   cat >>confdefs.h <<\_ACEOF
32881 #define wxUSE_ICO_CUR 1
32882 _ACEOF
32883
32884 fi
32885
32886 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32887     LIBS=" -lunicows $LIBS"
32888 fi
32889
32890
32891 if test "$wxUSE_CHOICEDLG" = "yes"; then
32892     cat >>confdefs.h <<\_ACEOF
32893 #define wxUSE_CHOICEDLG 1
32894 _ACEOF
32895
32896 fi
32897
32898 if test "$wxUSE_COLOURDLG" = "yes"; then
32899     cat >>confdefs.h <<\_ACEOF
32900 #define wxUSE_COLOURDLG 1
32901 _ACEOF
32902
32903 fi
32904
32905 if test "$wxUSE_FILEDLG" = "yes"; then
32906     cat >>confdefs.h <<\_ACEOF
32907 #define wxUSE_FILEDLG 1
32908 _ACEOF
32909
32910 fi
32911
32912 if test "$wxUSE_FINDREPLDLG" = "yes"; then
32913     cat >>confdefs.h <<\_ACEOF
32914 #define wxUSE_FINDREPLDLG 1
32915 _ACEOF
32916
32917 fi
32918
32919 if test "$wxUSE_FONTDLG" = "yes"; then
32920     cat >>confdefs.h <<\_ACEOF
32921 #define wxUSE_FONTDLG 1
32922 _ACEOF
32923
32924 fi
32925
32926 if test "$wxUSE_DIRDLG" = "yes"; then
32927     if test "$wxUSE_TREECTRL" != "yes"; then
32928         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32929 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
32930     else
32931         cat >>confdefs.h <<\_ACEOF
32932 #define wxUSE_DIRDLG 1
32933 _ACEOF
32934
32935     fi
32936 fi
32937
32938 if test "$wxUSE_MSGDLG" = "yes"; then
32939     cat >>confdefs.h <<\_ACEOF
32940 #define wxUSE_MSGDLG 1
32941 _ACEOF
32942
32943 fi
32944
32945 if test "$wxUSE_NUMBERDLG" = "yes"; then
32946     cat >>confdefs.h <<\_ACEOF
32947 #define wxUSE_NUMBERDLG 1
32948 _ACEOF
32949
32950 fi
32951
32952 if test "$wxUSE_PROGRESSDLG" = "yes"; then
32953     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32954        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
32955 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
32956     else
32957         cat >>confdefs.h <<\_ACEOF
32958 #define wxUSE_PROGRESSDLG 1
32959 _ACEOF
32960
32961     fi
32962 fi
32963
32964 if test "$wxUSE_SPLASH" = "yes"; then
32965     cat >>confdefs.h <<\_ACEOF
32966 #define wxUSE_SPLASH 1
32967 _ACEOF
32968
32969 fi
32970
32971 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
32972     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32973        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
32974 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
32975     else
32976         cat >>confdefs.h <<\_ACEOF
32977 #define wxUSE_STARTUP_TIPS 1
32978 _ACEOF
32979
32980     fi
32981 fi
32982
32983 if test "$wxUSE_TEXTDLG" = "yes"; then
32984     cat >>confdefs.h <<\_ACEOF
32985 #define wxUSE_TEXTDLG 1
32986 _ACEOF
32987
32988 fi
32989
32990 if test "$wxUSE_WIZARDDLG" = "yes"; then
32991     cat >>confdefs.h <<\_ACEOF
32992 #define wxUSE_WIZARDDLG 1
32993 _ACEOF
32994
32995     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
32996 fi
32997
32998
32999 if test "$cross_compiling" = "yes"; then
33000         OSINFO="\"$host\""
33001 else
33002         OSINFO=`uname -s -r -m`
33003     OSINFO="\"$OSINFO\""
33004 fi
33005
33006 cat >>confdefs.h <<_ACEOF
33007 #define WXWIN_OS_DESCRIPTION $OSINFO
33008 _ACEOF
33009
33010
33011
33012 if test "x$prefix" != "xNONE"; then
33013     wxPREFIX=$prefix
33014 else
33015     wxPREFIX=$ac_default_prefix
33016 fi
33017
33018 cat >>confdefs.h <<_ACEOF
33019 #define wxINSTALL_PREFIX "$wxPREFIX"
33020 _ACEOF
33021
33022
33023 top_builddir_wxconfig=`pwd`
33024
33025
33026
33027
33028 if test "$wxUSE_MAC" = 1 ; then
33029     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33030 fi
33031 if test "$wxUSE_COCOA" = 1 ; then
33032     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33033 fi
33034
33035
33036 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33037
33038 have_cos=0
33039 have_floor=0
33040
33041 for ac_func in cos
33042 do
33043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33044 echo "$as_me:$LINENO: checking for $ac_func" >&5
33045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33046 if eval "test \"\${$as_ac_var+set}\" = set"; then
33047   echo $ECHO_N "(cached) $ECHO_C" >&6
33048 else
33049   cat >conftest.$ac_ext <<_ACEOF
33050 #line $LINENO "configure"
33051 /* confdefs.h.  */
33052 _ACEOF
33053 cat confdefs.h >>conftest.$ac_ext
33054 cat >>conftest.$ac_ext <<_ACEOF
33055 /* end confdefs.h.  */
33056 /* System header to define __stub macros and hopefully few prototypes,
33057     which can conflict with char $ac_func (); below.
33058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33059     <limits.h> exists even on freestanding compilers.  */
33060 #ifdef __STDC__
33061 # include <limits.h>
33062 #else
33063 # include <assert.h>
33064 #endif
33065 /* Override any gcc2 internal prototype to avoid an error.  */
33066 #ifdef __cplusplus
33067 extern "C"
33068 {
33069 #endif
33070 /* We use char because int might match the return type of a gcc2
33071    builtin and then its argument prototype would still apply.  */
33072 char $ac_func ();
33073 /* The GNU C library defines this for functions which it implements
33074     to always fail with ENOSYS.  Some functions are actually named
33075     something starting with __ and the normal name is an alias.  */
33076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33077 choke me
33078 #else
33079 char (*f) () = $ac_func;
33080 #endif
33081 #ifdef __cplusplus
33082 }
33083 #endif
33084
33085 int
33086 main ()
33087 {
33088 return f != $ac_func;
33089   ;
33090   return 0;
33091 }
33092 _ACEOF
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33095   (eval $ac_link) 2>&5
33096   ac_status=$?
33097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098   (exit $ac_status); } &&
33099          { ac_try='test -s conftest$ac_exeext'
33100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101   (eval $ac_try) 2>&5
33102   ac_status=$?
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); }; }; then
33105   eval "$as_ac_var=yes"
33106 else
33107   echo "$as_me: failed program was:" >&5
33108 sed 's/^/| /' conftest.$ac_ext >&5
33109
33110 eval "$as_ac_var=no"
33111 fi
33112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33113 fi
33114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33116 if test `eval echo '${'$as_ac_var'}'` = yes; then
33117   cat >>confdefs.h <<_ACEOF
33118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33119 _ACEOF
33120  have_cos=1
33121 fi
33122 done
33123
33124
33125 for ac_func in floor
33126 do
33127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33128 echo "$as_me:$LINENO: checking for $ac_func" >&5
33129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33130 if eval "test \"\${$as_ac_var+set}\" = set"; then
33131   echo $ECHO_N "(cached) $ECHO_C" >&6
33132 else
33133   cat >conftest.$ac_ext <<_ACEOF
33134 #line $LINENO "configure"
33135 /* confdefs.h.  */
33136 _ACEOF
33137 cat confdefs.h >>conftest.$ac_ext
33138 cat >>conftest.$ac_ext <<_ACEOF
33139 /* end confdefs.h.  */
33140 /* System header to define __stub macros and hopefully few prototypes,
33141     which can conflict with char $ac_func (); below.
33142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33143     <limits.h> exists even on freestanding compilers.  */
33144 #ifdef __STDC__
33145 # include <limits.h>
33146 #else
33147 # include <assert.h>
33148 #endif
33149 /* Override any gcc2 internal prototype to avoid an error.  */
33150 #ifdef __cplusplus
33151 extern "C"
33152 {
33153 #endif
33154 /* We use char because int might match the return type of a gcc2
33155    builtin and then its argument prototype would still apply.  */
33156 char $ac_func ();
33157 /* The GNU C library defines this for functions which it implements
33158     to always fail with ENOSYS.  Some functions are actually named
33159     something starting with __ and the normal name is an alias.  */
33160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33161 choke me
33162 #else
33163 char (*f) () = $ac_func;
33164 #endif
33165 #ifdef __cplusplus
33166 }
33167 #endif
33168
33169 int
33170 main ()
33171 {
33172 return f != $ac_func;
33173   ;
33174   return 0;
33175 }
33176 _ACEOF
33177 rm -f conftest.$ac_objext conftest$ac_exeext
33178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33179   (eval $ac_link) 2>&5
33180   ac_status=$?
33181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182   (exit $ac_status); } &&
33183          { ac_try='test -s conftest$ac_exeext'
33184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185   (eval $ac_try) 2>&5
33186   ac_status=$?
33187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188   (exit $ac_status); }; }; then
33189   eval "$as_ac_var=yes"
33190 else
33191   echo "$as_me: failed program was:" >&5
33192 sed 's/^/| /' conftest.$ac_ext >&5
33193
33194 eval "$as_ac_var=no"
33195 fi
33196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33197 fi
33198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33200 if test `eval echo '${'$as_ac_var'}'` = yes; then
33201   cat >>confdefs.h <<_ACEOF
33202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33203 _ACEOF
33204  have_floor=1
33205 fi
33206 done
33207
33208 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33209 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
33210 if test "$have_cos" = 1 -a "$have_floor" = 1; then
33211     echo "$as_me:$LINENO: result: yes" >&5
33212 echo "${ECHO_T}yes" >&6
33213 else
33214     echo "$as_me:$LINENO: result: no" >&5
33215 echo "${ECHO_T}no" >&6
33216     LIBS="$LIBS -lm"
33217     # use different functions to avoid configure caching
33218     have_sin=0
33219     have_ceil=0
33220
33221 for ac_func in sin
33222 do
33223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33224 echo "$as_me:$LINENO: checking for $ac_func" >&5
33225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33226 if eval "test \"\${$as_ac_var+set}\" = set"; then
33227   echo $ECHO_N "(cached) $ECHO_C" >&6
33228 else
33229   cat >conftest.$ac_ext <<_ACEOF
33230 #line $LINENO "configure"
33231 /* confdefs.h.  */
33232 _ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h.  */
33236 /* System header to define __stub macros and hopefully few prototypes,
33237     which can conflict with char $ac_func (); below.
33238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33239     <limits.h> exists even on freestanding compilers.  */
33240 #ifdef __STDC__
33241 # include <limits.h>
33242 #else
33243 # include <assert.h>
33244 #endif
33245 /* Override any gcc2 internal prototype to avoid an error.  */
33246 #ifdef __cplusplus
33247 extern "C"
33248 {
33249 #endif
33250 /* We use char because int might match the return type of a gcc2
33251    builtin and then its argument prototype would still apply.  */
33252 char $ac_func ();
33253 /* The GNU C library defines this for functions which it implements
33254     to always fail with ENOSYS.  Some functions are actually named
33255     something starting with __ and the normal name is an alias.  */
33256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33257 choke me
33258 #else
33259 char (*f) () = $ac_func;
33260 #endif
33261 #ifdef __cplusplus
33262 }
33263 #endif
33264
33265 int
33266 main ()
33267 {
33268 return f != $ac_func;
33269   ;
33270   return 0;
33271 }
33272 _ACEOF
33273 rm -f conftest.$ac_objext conftest$ac_exeext
33274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33275   (eval $ac_link) 2>&5
33276   ac_status=$?
33277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278   (exit $ac_status); } &&
33279          { ac_try='test -s conftest$ac_exeext'
33280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281   (eval $ac_try) 2>&5
33282   ac_status=$?
33283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284   (exit $ac_status); }; }; then
33285   eval "$as_ac_var=yes"
33286 else
33287   echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33289
33290 eval "$as_ac_var=no"
33291 fi
33292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33293 fi
33294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33296 if test `eval echo '${'$as_ac_var'}'` = yes; then
33297   cat >>confdefs.h <<_ACEOF
33298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33299 _ACEOF
33300  have_sin=1
33301 fi
33302 done
33303
33304
33305 for ac_func in ceil
33306 do
33307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33308 echo "$as_me:$LINENO: checking for $ac_func" >&5
33309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33310 if eval "test \"\${$as_ac_var+set}\" = set"; then
33311   echo $ECHO_N "(cached) $ECHO_C" >&6
33312 else
33313   cat >conftest.$ac_ext <<_ACEOF
33314 #line $LINENO "configure"
33315 /* confdefs.h.  */
33316 _ACEOF
33317 cat confdefs.h >>conftest.$ac_ext
33318 cat >>conftest.$ac_ext <<_ACEOF
33319 /* end confdefs.h.  */
33320 /* System header to define __stub macros and hopefully few prototypes,
33321     which can conflict with char $ac_func (); below.
33322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33323     <limits.h> exists even on freestanding compilers.  */
33324 #ifdef __STDC__
33325 # include <limits.h>
33326 #else
33327 # include <assert.h>
33328 #endif
33329 /* Override any gcc2 internal prototype to avoid an error.  */
33330 #ifdef __cplusplus
33331 extern "C"
33332 {
33333 #endif
33334 /* We use char because int might match the return type of a gcc2
33335    builtin and then its argument prototype would still apply.  */
33336 char $ac_func ();
33337 /* The GNU C library defines this for functions which it implements
33338     to always fail with ENOSYS.  Some functions are actually named
33339     something starting with __ and the normal name is an alias.  */
33340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33341 choke me
33342 #else
33343 char (*f) () = $ac_func;
33344 #endif
33345 #ifdef __cplusplus
33346 }
33347 #endif
33348
33349 int
33350 main ()
33351 {
33352 return f != $ac_func;
33353   ;
33354   return 0;
33355 }
33356 _ACEOF
33357 rm -f conftest.$ac_objext conftest$ac_exeext
33358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33359   (eval $ac_link) 2>&5
33360   ac_status=$?
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); } &&
33363          { ac_try='test -s conftest$ac_exeext'
33364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365   (eval $ac_try) 2>&5
33366   ac_status=$?
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); }; }; then
33369   eval "$as_ac_var=yes"
33370 else
33371   echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33373
33374 eval "$as_ac_var=no"
33375 fi
33376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33377 fi
33378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33380 if test `eval echo '${'$as_ac_var'}'` = yes; then
33381   cat >>confdefs.h <<_ACEOF
33382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33383 _ACEOF
33384  have_ceil=1
33385 fi
33386 done
33387
33388     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33389 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
33390     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
33391         echo "$as_me:$LINENO: result: yes" >&5
33392 echo "${ECHO_T}yes" >&6
33393     else
33394         echo "$as_me:$LINENO: result: no" >&5
33395 echo "${ECHO_T}no" >&6
33396         # not sure we should warn the user, crash, etc.
33397     fi
33398 fi
33399
33400 if test "$wxUSE_GUI" = "yes"; then
33401
33402     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
33403
33404
33405             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33406                      drawing dynamic erase event exec font image \
33407                      minimal propsize rotate shaped widgets"
33408 else
33409     SAMPLES_SUBDIRS="console"
33410 fi
33411
33412
33413 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
33414 -I\${top_srcdir}/include \
33415 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33416 $TOOLKIT_INCLUDE"
33417
33418 if test "$wxUSE_GTK" = 1; then
33419     WXCONFIG_INCLUDE=
33420 else
33421     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33422 fi
33423
33424 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33425     WXUNIV=1
33426 else
33427     WXUNIV=0
33428 fi
33429
33430
33431
33432
33433
33434
33435
33436
33437 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33438
33439 MONOLITHIC=1
33440
33441
33442
33443
33444
33445
33446
33447 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
33448
33449
33450
33451
33452
33453     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
33454
33455     if test -n "$ac_tool_prefix"; then
33456   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33458 echo "$as_me:$LINENO: checking for $ac_word" >&5
33459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33460 if test "${ac_cv_prog_RANLIB+set}" = set; then
33461   echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463   if test -n "$RANLIB"; then
33464   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33465 else
33466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33467 for as_dir in $PATH
33468 do
33469   IFS=$as_save_IFS
33470   test -z "$as_dir" && as_dir=.
33471   for ac_exec_ext in '' $ac_executable_extensions; do
33472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33473     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33475     break 2
33476   fi
33477 done
33478 done
33479
33480 fi
33481 fi
33482 RANLIB=$ac_cv_prog_RANLIB
33483 if test -n "$RANLIB"; then
33484   echo "$as_me:$LINENO: result: $RANLIB" >&5
33485 echo "${ECHO_T}$RANLIB" >&6
33486 else
33487   echo "$as_me:$LINENO: result: no" >&5
33488 echo "${ECHO_T}no" >&6
33489 fi
33490
33491 fi
33492 if test -z "$ac_cv_prog_RANLIB"; then
33493   ac_ct_RANLIB=$RANLIB
33494   # Extract the first word of "ranlib", so it can be a program name with args.
33495 set dummy ranlib; ac_word=$2
33496 echo "$as_me:$LINENO: checking for $ac_word" >&5
33497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33499   echo $ECHO_N "(cached) $ECHO_C" >&6
33500 else
33501   if test -n "$ac_ct_RANLIB"; then
33502   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33503 else
33504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33505 for as_dir in $PATH
33506 do
33507   IFS=$as_save_IFS
33508   test -z "$as_dir" && as_dir=.
33509   for ac_exec_ext in '' $ac_executable_extensions; do
33510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33511     ac_cv_prog_ac_ct_RANLIB="ranlib"
33512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33513     break 2
33514   fi
33515 done
33516 done
33517
33518   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33519 fi
33520 fi
33521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33522 if test -n "$ac_ct_RANLIB"; then
33523   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33525 else
33526   echo "$as_me:$LINENO: result: no" >&5
33527 echo "${ECHO_T}no" >&6
33528 fi
33529
33530   RANLIB=$ac_ct_RANLIB
33531 else
33532   RANLIB="$ac_cv_prog_RANLIB"
33533 fi
33534
33535     # Find a good install program.  We prefer a C program (faster),
33536 # so one script is as good as another.  But avoid the broken or
33537 # incompatible versions:
33538 # SysV /etc/install, /usr/sbin/install
33539 # SunOS /usr/etc/install
33540 # IRIX /sbin/install
33541 # AIX /bin/install
33542 # AmigaOS /C/install, which installs bootblocks on floppy discs
33543 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33544 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
33545 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33546 # ./install, which can be erroneously created by make from ./install.sh.
33547 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33548 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
33549 if test -z "$INSTALL"; then
33550 if test "${ac_cv_path_install+set}" = set; then
33551   echo $ECHO_N "(cached) $ECHO_C" >&6
33552 else
33553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33554 for as_dir in $PATH
33555 do
33556   IFS=$as_save_IFS
33557   test -z "$as_dir" && as_dir=.
33558   # Account for people who put trailing slashes in PATH elements.
33559 case $as_dir/ in
33560   ./ | .// | /cC/* | \
33561   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33562   /usr/ucb/* ) ;;
33563   *)
33564     # OSF1 and SCO ODT 3.0 have their own names for install.
33565     # Don't use installbsd from OSF since it installs stuff as root
33566     # by default.
33567     for ac_prog in ginstall scoinst install; do
33568       for ac_exec_ext in '' $ac_executable_extensions; do
33569         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33570           if test $ac_prog = install &&
33571             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33572             # AIX install.  It has an incompatible calling convention.
33573             :
33574           elif test $ac_prog = install &&
33575             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33576             # program-specific install script used by HP pwplus--don't use.
33577             :
33578           else
33579             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33580             break 3
33581           fi
33582         fi
33583       done
33584     done
33585     ;;
33586 esac
33587 done
33588
33589
33590 fi
33591   if test "${ac_cv_path_install+set}" = set; then
33592     INSTALL=$ac_cv_path_install
33593   else
33594     # As a last resort, use the slow shell script.  We don't cache a
33595     # path for INSTALL within a source directory, because that will
33596     # break other packages using the cache if that directory is
33597     # removed, or if the path is relative.
33598     INSTALL=$ac_install_sh
33599   fi
33600 fi
33601 echo "$as_me:$LINENO: result: $INSTALL" >&5
33602 echo "${ECHO_T}$INSTALL" >&6
33603
33604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33605 # It thinks the first close brace ends the variable substitution.
33606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33607
33608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
33609
33610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33611
33612     echo "$as_me:$LINENO: checking whether ln -s works" >&5
33613 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33614 LN_S=$as_ln_s
33615 if test "$LN_S" = "ln -s"; then
33616   echo "$as_me:$LINENO: result: yes" >&5
33617 echo "${ECHO_T}yes" >&6
33618 else
33619   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33620 echo "${ECHO_T}no, using $LN_S" >&6
33621 fi
33622
33623
33624     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33625 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33626 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33627 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33628   echo $ECHO_N "(cached) $ECHO_C" >&6
33629 else
33630   cat >conftest.make <<\_ACEOF
33631 all:
33632         @echo 'ac_maketemp="$(MAKE)"'
33633 _ACEOF
33634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33635 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
33636 if test -n "$ac_maketemp"; then
33637   eval ac_cv_prog_make_${ac_make}_set=yes
33638 else
33639   eval ac_cv_prog_make_${ac_make}_set=no
33640 fi
33641 rm -f conftest.make
33642 fi
33643 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
33644   echo "$as_me:$LINENO: result: yes" >&5
33645 echo "${ECHO_T}yes" >&6
33646   SET_MAKE=
33647 else
33648   echo "$as_me:$LINENO: result: no" >&5
33649 echo "${ECHO_T}no" >&6
33650   SET_MAKE="MAKE=${MAKE-make}"
33651 fi
33652
33653
33654
33655     if test "$build" != "$host" ; then
33656         AR=$host_alias-ar
33657         STRIP=$host_alias-strip
33658     else
33659         # Extract the first word of "ar", so it can be a program name with args.
33660 set dummy ar; ac_word=$2
33661 echo "$as_me:$LINENO: checking for $ac_word" >&5
33662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33663 if test "${ac_cv_prog_AR+set}" = set; then
33664   echo $ECHO_N "(cached) $ECHO_C" >&6
33665 else
33666   if test -n "$AR"; then
33667   ac_cv_prog_AR="$AR" # Let the user override the test.
33668 else
33669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33670 for as_dir in $PATH
33671 do
33672   IFS=$as_save_IFS
33673   test -z "$as_dir" && as_dir=.
33674   for ac_exec_ext in '' $ac_executable_extensions; do
33675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33676     ac_cv_prog_AR="ar"
33677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33678     break 2
33679   fi
33680 done
33681 done
33682
33683   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33684 fi
33685 fi
33686 AR=$ac_cv_prog_AR
33687 if test -n "$AR"; then
33688   echo "$as_me:$LINENO: result: $AR" >&5
33689 echo "${ECHO_T}$AR" >&6
33690 else
33691   echo "$as_me:$LINENO: result: no" >&5
33692 echo "${ECHO_T}no" >&6
33693 fi
33694
33695         # Extract the first word of "strip", so it can be a program name with args.
33696 set dummy strip; ac_word=$2
33697 echo "$as_me:$LINENO: checking for $ac_word" >&5
33698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33699 if test "${ac_cv_prog_STRIP+set}" = set; then
33700   echo $ECHO_N "(cached) $ECHO_C" >&6
33701 else
33702   if test -n "$STRIP"; then
33703   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33704 else
33705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33706 for as_dir in $PATH
33707 do
33708   IFS=$as_save_IFS
33709   test -z "$as_dir" && as_dir=.
33710   for ac_exec_ext in '' $ac_executable_extensions; do
33711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33712     ac_cv_prog_STRIP="strip"
33713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33714     break 2
33715   fi
33716 done
33717 done
33718
33719   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33720 fi
33721 fi
33722 STRIP=$ac_cv_prog_STRIP
33723 if test -n "$STRIP"; then
33724   echo "$as_me:$LINENO: result: $STRIP" >&5
33725 echo "${ECHO_T}$STRIP" >&6
33726 else
33727   echo "$as_me:$LINENO: result: no" >&5
33728 echo "${ECHO_T}no" >&6
33729 fi
33730
33731     fi
33732
33733     case ${host} in
33734         *-hp-hpux* )
33735             INSTALL_DIR="mkdir"
33736             ;;
33737         *)  INSTALL_DIR="$INSTALL -d"
33738             ;;
33739     esac
33740
33741
33742     fi
33743
33744         echo "$as_me:$LINENO: checking if make is GNU make" >&5
33745 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
33746 if test "${wx_cv_prog_makeisgnu+set}" = set; then
33747   echo $ECHO_N "(cached) $ECHO_C" >&6
33748 else
33749
33750         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33751                 egrep -s GNU > /dev/null); then
33752             bakefile_cv_prog_makeisgnu="yes"
33753         else
33754             bakefile_cv_prog_makeisgnu="no"
33755         fi
33756
33757 fi
33758 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
33759 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
33760
33761     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33762         IF_GNU_MAKE=""
33763     else
33764         IF_GNU_MAKE="#"
33765     fi
33766
33767
33768
33769     PLATFORM_UNIX=0
33770     PLATFORM_WIN32=0
33771     PLATFORM_MSDOS=0
33772     PLATFORM_MAC=0
33773     PLATFORM_MACOSX=0
33774
33775     case "${host}" in
33776         *-*-cygwin* | *-*-mingw32* )
33777             PLATFORM_WIN32=1
33778         ;;
33779         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33780             PLATFORM_MSDOS=1
33781         ;;
33782         powerpc-*-darwin* )
33783             PLATFORM_MAC=1
33784             PLATFORM_MACOSX=1
33785         ;;
33786         * )
33787             PLATFORM_UNIX=1
33788         ;;
33789     esac
33790
33791
33792
33793
33794
33795
33796
33797
33798     SO_SUFFIX="so"
33799     EXEEXT=""
33800     DLLPREFIX=lib
33801
33802     case "${host}" in
33803         *-hp-hpux* )
33804             SO_SUFFIX="sl"
33805         ;;
33806         *-*-aix* )
33807                                                                         SO_SUFFIX="a"
33808         ;;
33809         *-*-cygwin* | *-*-mingw32* )
33810             SO_SUFFIX="dll"
33811             EXEEXT=".exe"
33812             DLLPREFIX=""
33813         ;;
33814         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33815             EXEEXT=".exe"
33816             DLLPREFIX=""
33817         ;;
33818         powerpc-*-darwin* )
33819             SO_SUFFIX="dylib"
33820         ;;
33821     esac
33822
33823
33824
33825
33826
33827
33828         SHARED_LD_CC="\$(CC) -shared -o"
33829     SHARED_LD_CXX="\$(CXX) -shared -o"
33830
33831         if test "x$GCC" = "xyes"; then
33832                 PIC_FLAG="-fPIC"
33833     fi
33834
33835     case "${host}" in
33836       *-hp-hpux* )
33837                 if test "x$GCC" = "xyes"; then
33838                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33839             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33840         else
33841                         LDFLAGS="$LDFLAGS -L/usr/lib"
33842
33843             SHARED_LD_CC="${CC} -b -o"
33844             SHARED_LD_CXX="${CXX} -b -o"
33845             PIC_FLAG="+Z"
33846         fi
33847       ;;
33848
33849       *-*-linux* )
33850         if test "x$GCC" != "xyes"; then
33851             echo "$as_me:$LINENO: checking for Intel compiler" >&5
33852 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33853 if test "${bakefile_cv_prog_icc+set}" = set; then
33854   echo $ECHO_N "(cached) $ECHO_C" >&6
33855 else
33856
33857                 cat >conftest.$ac_ext <<_ACEOF
33858 #line $LINENO "configure"
33859 /* confdefs.h.  */
33860 _ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h.  */
33864
33865 int
33866 main ()
33867 {
33868
33869                         #ifndef __INTEL_COMPILER
33870                         #error Not icc
33871                         #endif
33872
33873   ;
33874   return 0;
33875 }
33876 _ACEOF
33877 rm -f conftest.$ac_objext
33878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33879   (eval $ac_compile) 2>&5
33880   ac_status=$?
33881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882   (exit $ac_status); } &&
33883          { ac_try='test -s conftest.$ac_objext'
33884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885   (eval $ac_try) 2>&5
33886   ac_status=$?
33887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888   (exit $ac_status); }; }; then
33889   bakefile_cv_prog_icc=yes
33890 else
33891   echo "$as_me: failed program was:" >&5
33892 sed 's/^/| /' conftest.$ac_ext >&5
33893
33894 bakefile_cv_prog_icc=no
33895
33896 fi
33897 rm -f conftest.$ac_objext conftest.$ac_ext
33898
33899 fi
33900 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33901 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
33902             if test "$bakefile_cv_prog_icc" = "yes"; then
33903                 PIC_FLAG="-KPIC"
33904             fi
33905         fi
33906       ;;
33907
33908       *-*-solaris2* )
33909         if test "x$GCC" != xyes ; then
33910             SHARED_LD_CC="${CC} -G -o"
33911             SHARED_LD_CXX="${CXX} -G -o"
33912             PIC_FLAG="-KPIC"
33913         fi
33914       ;;
33915
33916       *-*-darwin* )
33917                         CFLAGS="$CFLAGS -fno-common"
33918         CXXFLAGS="$CXXFLAGS -fno-common"
33919
33920
33921         cat <<EOF >shared-ld-sh
33922 #!/bin/sh
33923 #-----------------------------------------------------------------------------
33924 #-- Name:        distrib/mac/shared-ld-sh
33925 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
33926 #-- Author:      Gilles Depeyrot
33927 #-- Copyright:   (c) 2002 Gilles Depeyrot
33928 #-- Licence:     any use permitted
33929 #-----------------------------------------------------------------------------
33930
33931 verbose=0
33932 args=""
33933 objects=""
33934
33935 while test \${#} -gt 0; do
33936     case \${1} in
33937
33938        -v)
33939         verbose=1
33940         ;;
33941
33942        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33943         # collect these options and values
33944         args="\${args} \${1} \${2}"
33945         shift
33946         ;;
33947
33948        -l*|-L*|-flat_namespace)
33949         # collect these options
33950         args="\${args} \${1}"
33951         ;;
33952
33953        -dynamiclib)
33954         # skip these options
33955         ;;
33956
33957        -*)
33958         echo "shared-ld: unhandled option '\${1}'"
33959         exit 1
33960         ;;
33961
33962         *.o | *.a)
33963         # collect object files
33964         objects="\${objects} \${1}"
33965         ;;
33966
33967         *)
33968         echo "shared-ld: unhandled argument '\${1}'"
33969         exit 1
33970         ;;
33971
33972     esac
33973     shift
33974 done
33975
33976 #
33977 # Link one module containing all the others
33978 #
33979 if test \${verbose} = 1; then
33980     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
33981 fi
33982 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
33983 status=\$?
33984 if test \${status} != 0; then
33985     exit \${status}
33986 fi
33987
33988 #
33989 # Link the shared library from the single module created
33990 #
33991 if test \${verbose} = 1; then
33992     echo "cc -dynamiclib master.\$\$.o \${args}"
33993 fi
33994 c++ -dynamiclib master.\$\$.o \${args}
33995 status=\$?
33996 if test \${status} != 0; then
33997     exit \${status}
33998 fi
33999
34000 #
34001 # Remove intermediate module
34002 #
34003 rm -f master.\$\$.o
34004
34005 exit 0
34006 EOF
34007         chmod +x shared-ld-sh
34008
34009         SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34010         SHARED_LD_CXX="$SHARED_LD_CC"
34011         PIC_FLAG="-dynamic -fPIC"
34012                                       ;;
34013
34014       *-*-aix* )
34015                 if test "x$GCC" != "xyes"; then
34016                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34017 set dummy makeC++SharedLib; ac_word=$2
34018 echo "$as_me:$LINENO: checking for $ac_word" >&5
34019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34020 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34021   echo $ECHO_N "(cached) $ECHO_C" >&6
34022 else
34023   if test -n "$AIX_CXX_LD"; then
34024   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34025 else
34026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34027 for as_dir in $PATH
34028 do
34029   IFS=$as_save_IFS
34030   test -z "$as_dir" && as_dir=.
34031   for ac_exec_ext in '' $ac_executable_extensions; do
34032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34033     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34035     break 2
34036   fi
34037 done
34038 done
34039
34040   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34041 fi
34042 fi
34043 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
34044 if test -n "$AIX_CXX_LD"; then
34045   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34046 echo "${ECHO_T}$AIX_CXX_LD" >&6
34047 else
34048   echo "$as_me:$LINENO: result: no" >&5
34049 echo "${ECHO_T}no" >&6
34050 fi
34051
34052                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34053             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34054         fi
34055       ;;
34056
34057       *-*-beos* )
34058                         SHARED_LD_CC="${LD} -shared -o"
34059         SHARED_LD_CXX="${LD} -shared -o"
34060       ;;
34061
34062       *-*-irix* )
34063                 if test "x$GCC" != "xyes"; then
34064             PIC_FLAG="-KPIC"
34065         fi
34066       ;;
34067
34068       *-*-cygwin* | *-*-mingw32* )
34069         PIC_FLAG=""
34070       ;;
34071
34072       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34073       *-*-sunos4* | \
34074       *-*-osf* | \
34075       *-*-dgux5* | \
34076       *-*-sysv5* )
34077               ;;
34078
34079       *)
34080         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34081 echo "$as_me: error: unknown system type $host." >&2;}
34082    { (exit 1); exit 1; }; }
34083     esac
34084
34085
34086
34087
34088
34089
34090     USE_SOVERSION=0
34091     USE_SOVERLINUX=0
34092     USE_SOVERSOLARIS=0
34093     USE_SOSYMLINKS=0
34094     USE_MACVERSION=0
34095     SONAME_FLAG=
34096
34097     case "${host}" in
34098       *-*-linux* )
34099         SONAME_FLAG="-Wl,-soname,"
34100         USE_SOVERSION=1
34101         USE_SOVERLINUX=1
34102         USE_SOSYMLINKS=1
34103       ;;
34104
34105       *-*-solaris2* )
34106         SONAME_FLAG="-h "
34107         USE_SOVERSION=1
34108         USE_SOVERSOLARIS=1
34109         USE_SOSYMLINKS=1
34110       ;;
34111
34112       *-*-darwin* )
34113         USE_MACVERSION=1
34114         USE_SOVERSION=1
34115         USE_SOSYMLINKS=1
34116       ;;
34117     esac
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127     DEPS_TYPE=no
34128     if test "x$GCC" = "xyes"; then
34129         DEPS_TYPE=gcc
34130     fi
34131
34132
34133
34134
34135     RESCOMP=
34136     SETFILE=
34137
34138     case ${host} in
34139         *-*-cygwin* | *-*-mingw32* )
34140                         if test "$build" != "$host" ; then
34141                 RESCOMP=$host_alias-windres
34142             else
34143                 # Extract the first word of "windres", so it can be a program name with args.
34144 set dummy windres; ac_word=$2
34145 echo "$as_me:$LINENO: checking for $ac_word" >&5
34146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34147 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34148   echo $ECHO_N "(cached) $ECHO_C" >&6
34149 else
34150   if test -n "$RESCOMP"; then
34151   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34152 else
34153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34154 for as_dir in $PATH
34155 do
34156   IFS=$as_save_IFS
34157   test -z "$as_dir" && as_dir=.
34158   for ac_exec_ext in '' $ac_executable_extensions; do
34159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34160     ac_cv_prog_RESCOMP="windres"
34161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34162     break 2
34163   fi
34164 done
34165 done
34166
34167   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34168 fi
34169 fi
34170 RESCOMP=$ac_cv_prog_RESCOMP
34171 if test -n "$RESCOMP"; then
34172   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34173 echo "${ECHO_T}$RESCOMP" >&6
34174 else
34175   echo "$as_me:$LINENO: result: no" >&5
34176 echo "${ECHO_T}no" >&6
34177 fi
34178
34179             fi
34180          ;;
34181
34182       *-*-darwin* )
34183             # Extract the first word of "Rez", so it can be a program name with args.
34184 set dummy Rez; ac_word=$2
34185 echo "$as_me:$LINENO: checking for $ac_word" >&5
34186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34187 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34188   echo $ECHO_N "(cached) $ECHO_C" >&6
34189 else
34190   if test -n "$RESCOMP"; then
34191   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34192 else
34193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194 for as_dir in $PATH
34195 do
34196   IFS=$as_save_IFS
34197   test -z "$as_dir" && as_dir=.
34198   for ac_exec_ext in '' $ac_executable_extensions; do
34199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34200     ac_cv_prog_RESCOMP="Rez"
34201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34202     break 2
34203   fi
34204 done
34205 done
34206
34207   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34208 fi
34209 fi
34210 RESCOMP=$ac_cv_prog_RESCOMP
34211 if test -n "$RESCOMP"; then
34212   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34213 echo "${ECHO_T}$RESCOMP" >&6
34214 else
34215   echo "$as_me:$LINENO: result: no" >&5
34216 echo "${ECHO_T}no" >&6
34217 fi
34218
34219             # Extract the first word of "SetFile", so it can be a program name with args.
34220 set dummy SetFile; ac_word=$2
34221 echo "$as_me:$LINENO: checking for $ac_word" >&5
34222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34223 if test "${ac_cv_prog_SETFILE+set}" = set; then
34224   echo $ECHO_N "(cached) $ECHO_C" >&6
34225 else
34226   if test -n "$SETFILE"; then
34227   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34228 else
34229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34230 for as_dir in $PATH
34231 do
34232   IFS=$as_save_IFS
34233   test -z "$as_dir" && as_dir=.
34234   for ac_exec_ext in '' $ac_executable_extensions; do
34235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34236     ac_cv_prog_SETFILE="SetFile"
34237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34238     break 2
34239   fi
34240 done
34241 done
34242
34243   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34244 fi
34245 fi
34246 SETFILE=$ac_cv_prog_SETFILE
34247 if test -n "$SETFILE"; then
34248   echo "$as_me:$LINENO: result: $SETFILE" >&5
34249 echo "${ECHO_T}$SETFILE" >&6
34250 else
34251   echo "$as_me:$LINENO: result: no" >&5
34252 echo "${ECHO_T}no" >&6
34253 fi
34254
34255         ;;
34256     esac
34257
34258
34259
34260
34261
34262
34263
34264     COND_WXUSE_ZLIB_BUILTIN="#"
34265     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34266         COND_WXUSE_ZLIB_BUILTIN=
34267     fi
34268
34269     COND_UNICODE_1="#"
34270     if test "x$UNICODE" = "x1" ; then
34271         COND_UNICODE_1=
34272     fi
34273
34274     COND_BUILD_DEBUG="#"
34275     if test "x$BUILD" = "xdebug" ; then
34276         COND_BUILD_DEBUG=
34277     fi
34278
34279     COND_WXUSE_REGEX_BUILTIN="#"
34280     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34281         COND_WXUSE_REGEX_BUILTIN=
34282     fi
34283
34284     COND_USE_SOSYMLINKS_1="#"
34285     if test "x$USE_SOSYMLINKS" = "x1" ; then
34286         COND_USE_SOSYMLINKS_1=
34287     fi
34288
34289     COND_WXUSE_LIBJPEG_BUILTIN="#"
34290     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34291         COND_WXUSE_LIBJPEG_BUILTIN=
34292     fi
34293
34294     COND_WXUSE_LIBPNG_BUILTIN="#"
34295     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34296         COND_WXUSE_LIBPNG_BUILTIN=
34297     fi
34298
34299     COND_SHARED_1_MONOLITHIC_1="#"
34300     if test "x$SHARED" = "x1" -a \
34301             "x$MONOLITHIC" = "x1" ; then
34302         COND_SHARED_1_MONOLITHIC_1=
34303     fi
34304
34305     COND_WXUSE_ODBC_BUILTIN="#"
34306     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34307         COND_WXUSE_ODBC_BUILTIN=
34308     fi
34309
34310     COND_TOOLKIT_GTK="#"
34311     if test "x$TOOLKIT" = "xGTK" ; then
34312         COND_TOOLKIT_GTK=
34313     fi
34314
34315     COND_TOOLKIT_MOTIF="#"
34316     if test "x$TOOLKIT" = "xMOTIF" ; then
34317         COND_TOOLKIT_MOTIF=
34318     fi
34319
34320     COND_TOOLKIT_MSW="#"
34321     if test "x$TOOLKIT" = "xMSW" ; then
34322         COND_TOOLKIT_MSW=
34323     fi
34324
34325     COND_TOOLKIT_MAC="#"
34326     if test "x$TOOLKIT" = "xMAC" ; then
34327         COND_TOOLKIT_MAC=
34328     fi
34329
34330     COND_TOOLKIT_COCOA="#"
34331     if test "x$TOOLKIT" = "xCOCOA" ; then
34332         COND_TOOLKIT_COCOA=
34333     fi
34334
34335     COND_TOOLKIT_OS2="#"
34336     if test "x$TOOLKIT" = "xOS2" ; then
34337         COND_TOOLKIT_OS2=
34338     fi
34339
34340     COND_TOOLKIT_X11="#"
34341     if test "x$TOOLKIT" = "xX11" ; then
34342         COND_TOOLKIT_X11=
34343     fi
34344
34345     COND_TOOLKIT_MGL="#"
34346     if test "x$TOOLKIT" = "xMGL" ; then
34347         COND_TOOLKIT_MGL=
34348     fi
34349
34350     COND_WXUNIV_1="#"
34351     if test "x$WXUNIV" = "x1" ; then
34352         COND_WXUNIV_1=
34353     fi
34354
34355     COND_WXUSE_LIBTIFF_BUILTIN="#"
34356     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34357         COND_WXUSE_LIBTIFF_BUILTIN=
34358     fi
34359
34360     COND_PLATFORM_UNIX_1="#"
34361     if test "x$PLATFORM_UNIX" = "x1" ; then
34362         COND_PLATFORM_UNIX_1=
34363     fi
34364
34365     COND_PLATFORM_MACOSX_1="#"
34366     if test "x$PLATFORM_MACOSX" = "x1" ; then
34367         COND_PLATFORM_MACOSX_1=
34368     fi
34369
34370     COND_PLATFORM_WIN32_1="#"
34371     if test "x$PLATFORM_WIN32" = "x1" ; then
34372         COND_PLATFORM_WIN32_1=
34373     fi
34374
34375     COND_USE_SOVERSION_1_PLATFORM_MACOSX_0="#"
34376     if test "x$USE_SOVERSION" = "x1" -a \
34377             "x$PLATFORM_MACOSX" = "x0" ; then
34378         COND_USE_SOVERSION_1_PLATFORM_MACOSX_0=
34379     fi
34380
34381     COND_USE_SOVERSION_1_PLATFORM_MACOSX_1="#"
34382     if test "x$USE_SOVERSION" = "x1" -a \
34383             "x$PLATFORM_MACOSX" = "x1" ; then
34384         COND_USE_SOVERSION_1_PLATFORM_MACOSX_1=
34385     fi
34386
34387     COND_PLATFORM_WIN32_0="#"
34388     if test "x$PLATFORM_WIN32" = "x0" ; then
34389         COND_PLATFORM_WIN32_0=
34390     fi
34391
34392     COND_MONOLITHIC_1="#"
34393     if test "x$MONOLITHIC" = "x1" ; then
34394         COND_MONOLITHIC_1=
34395     fi
34396
34397     COND_MONOLITHIC_0="#"
34398     if test "x$MONOLITHIC" = "x0" ; then
34399         COND_MONOLITHIC_0=
34400     fi
34401
34402     COND_USE_GUI_1="#"
34403     if test "x$USE_GUI" = "x1" ; then
34404         COND_USE_GUI_1=
34405     fi
34406
34407     COND_DEPS_TYPE_GCC="#"
34408     if test "x$DEPS_TYPE" = "xgcc" ; then
34409         COND_DEPS_TYPE_GCC=
34410     fi
34411
34412     COND_USE_GUI_0="#"
34413     if test "x$USE_GUI" = "x0" ; then
34414         COND_USE_GUI_0=
34415     fi
34416
34417     COND_USE_GUI_1_WXUNIV_0="#"
34418     if test "x$USE_GUI" = "x1" -a \
34419             "x$WXUNIV" = "x0" ; then
34420         COND_USE_GUI_1_WXUNIV_0=
34421     fi
34422
34423     COND_USE_GUI_1_WXUNIV_1="#"
34424     if test "x$USE_GUI" = "x1" -a \
34425             "x$WXUNIV" = "x1" ; then
34426         COND_USE_GUI_1_WXUNIV_1=
34427     fi
34428
34429     COND_SHARED_0_MONOLITHIC_1="#"
34430     if test "x$SHARED" = "x0" -a \
34431             "x$MONOLITHIC" = "x1" ; then
34432         COND_SHARED_0_MONOLITHIC_1=
34433     fi
34434
34435     COND_USE_SOVERLINUX_1="#"
34436     if test "x$USE_SOVERLINUX" = "x1" ; then
34437         COND_USE_SOVERLINUX_1=
34438     fi
34439
34440     COND_USE_SOVERSOLARIS_1="#"
34441     if test "x$USE_SOVERSOLARIS" = "x1" ; then
34442         COND_USE_SOVERSOLARIS_1=
34443     fi
34444
34445     COND_PLATFORM_MAC_1="#"
34446     if test "x$PLATFORM_MAC" = "x1" ; then
34447         COND_PLATFORM_MAC_1=
34448     fi
34449
34450     COND_SHARED_0="#"
34451     if test "x$SHARED" = "x0" ; then
34452         COND_SHARED_0=
34453     fi
34454
34455     COND_SHARED_1="#"
34456     if test "x$SHARED" = "x1" ; then
34457         COND_SHARED_1=
34458     fi
34459
34460
34461
34462
34463 if test "$GXX" = yes ; then
34464         CXXWARNINGS="-Wall"
34465         fi
34466
34467 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34468
34469 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
34470 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34471 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
34472 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
34473
34474 LDFLAGS="$LDFLAGS $PROFILE"
34475
34476 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34584   echo $ECHO_N "(cached) $ECHO_C" >&6
34585 else
34586   cat >conftest.make <<\_ACEOF
34587 all:
34588         @echo 'ac_maketemp="$(MAKE)"'
34589 _ACEOF
34590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34592 if test -n "$ac_maketemp"; then
34593   eval ac_cv_prog_make_${ac_make}_set=yes
34594 else
34595   eval ac_cv_prog_make_${ac_make}_set=no
34596 fi
34597 rm -f conftest.make
34598 fi
34599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34600   echo "$as_me:$LINENO: result: yes" >&5
34601 echo "${ECHO_T}yes" >&6
34602   SET_MAKE=
34603 else
34604   echo "$as_me:$LINENO: result: no" >&5
34605 echo "${ECHO_T}no" >&6
34606   SET_MAKE="MAKE=${MAKE-make}"
34607 fi
34608
34609
34610 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34611     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34612 fi
34613
34614           ac_config_headers="$ac_config_headers setup.h"
34615
34616
34617                               ac_config_files="$ac_config_files wx-config version-script Makefile"
34618
34619
34620           ac_config_commands="$ac_config_commands default"
34621
34622
34623
34624 if test -d ${srcdir}/samples ; then
34625                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files samples/Makefile samples/access/Makefile samples/artprov/Makefile samples/caret/Makefile samples/calendar/Makefile samples/checklst/Makefile samples/config/Makefile samples/controls/Makefile samples/console/Makefile samples/db/Makefile samples/dialogs/Makefile samples/dialup/Makefile samples/docview/Makefile samples/docvwmdi/Makefile samples/dnd/Makefile samples/dragimag/Makefile samples/drawing/Makefile samples/dynamic/Makefile samples/erase/Makefile samples/event/Makefile samples/exec/Makefile samples/font/Makefile samples/grid/Makefile samples/help/Makefile samples/image/Makefile samples/internat/Makefile samples/ipc/Makefile samples/joytest/Makefile samples/keyboard/Makefile samples/layout/Makefile samples/listctrl/Makefile samples/mdi/Makefile samples/menu/Makefile samples/memcheck/Makefile samples/minifram/Makefile samples/minimal/Makefile samples/mobile/Makefile samples/mobile/wxedit/Makefile samples/mobile/styles/Makefile samples/multimon/Makefile samples/notebook/Makefile samples/oleauto/Makefile samples/ownerdrw/Makefile samples/png/Makefile samples/printing/Makefile samples/propsize/Makefile samples/regtest/Makefile samples/rotate/Makefile samples/sashtest/Makefile samples/shaped/Makefile samples/scroll/Makefile samples/scrollsub/Makefile samples/sockets/Makefile samples/splitter/Makefile samples/statbar/Makefile samples/taskbar/Makefile samples/text/Makefile samples/thread/Makefile samples/toolbar/Makefile samples/treectrl/Makefile samples/typetest/Makefile samples/validate/Makefile samples/widgets/Makefile samples/wizard/Makefile samples/htlbox/Makefile samples/html/Makefile samples/html/about/Makefile samples/html/help/Makefile samples/html/printing/Makefile samples/html/helpview/Makefile samples/html/test/Makefile samples/html/zip/Makefile samples/html/virtual/Makefile samples/html/widget/Makefile samples/opengl/Makefile samples/opengl/cube/Makefile samples/opengl/penguin/Makefile samples/opengl/isosurf/Makefile"
34626
34627 fi
34628
34629 if test -d ${srcdir}/demos ; then
34630                                                                           ac_config_files="$ac_config_files demos/Makefile demos/bombs/Makefile demos/dbbrowse/Makefile demos/forty/Makefile demos/fractal/Makefile demos/life/Makefile demos/poem/Makefile"
34631
34632 fi
34633
34634 if test -d ${srcdir}/utils ; then
34635                                                                                                                                                           ac_config_files="$ac_config_files utils/Makefile utils/makegen/Makefile utils/HelpGen/Makefile utils/HelpGen/src/Makefile utils/tex2rtf/Makefile utils/tex2rtf/src/Makefile utils/hhp2cached/Makefile utils/dialoged/Makefile utils/dialoged/src/Makefile utils/emulator/Makefile utils/emulator/src/Makefile utils/helpview/Makefile utils/helpview/src/Makefile utils/configtool/Makefile utils/configtool/src/Makefile"
34636
34637 fi
34638
34639 if test -d ${srcdir}/contrib ; then
34640                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files contrib/src/Makefile contrib/src/deprecated/Makefile contrib/src/ogl/Makefile contrib/src/mmedia/Makefile contrib/src/stc/Makefile contrib/src/svg/Makefile contrib/src/xrc/Makefile contrib/src/gizmos/Makefile contrib/src/plot/Makefile contrib/src/applet/Makefile contrib/src/fl/Makefile contrib/src/net/Makefile contrib/samples/Makefile contrib/samples/deprecated/Makefile contrib/samples/deprecated/proplist/Makefile contrib/samples/deprecated/resource/Makefile contrib/samples/deprecated/treelay/Makefile contrib/samples/mmedia/Makefile contrib/samples/ogl/Makefile contrib/samples/ogl/ogledit/Makefile contrib/samples/ogl/studio/Makefile contrib/samples/stc/Makefile contrib/samples/svg/Makefile contrib/samples/gizmos/Makefile contrib/samples/gizmos/editlbox/Makefile contrib/samples/gizmos/dynsash/Makefile contrib/samples/gizmos/dynsash_switch/Makefile contrib/samples/gizmos/multicell/Makefile contrib/samples/gizmos/splittree/Makefile contrib/samples/gizmos/led/Makefile contrib/samples/xrc/Makefile contrib/samples/plot/Makefile contrib/samples/applet/Makefile contrib/samples/fl/Makefile contrib/samples/fl/fl_demo1/Makefile contrib/samples/fl/fl_demo2/Makefile contrib/samples/fl/fl_sample1/Makefile contrib/samples/fl/fl_sample2/Makefile contrib/samples/fl/fl_sample3/Makefile contrib/utils/Makefile contrib/utils/wxrc/Makefile contrib/utils/wxrcedit/Makefile contrib/utils/convertrc/Makefile"
34641
34642 fi
34643
34644
34645 cat >confcache <<\_ACEOF
34646 # This file is a shell script that caches the results of configure
34647 # tests run on this system so they can be shared between configure
34648 # scripts and configure runs, see configure's option --config-cache.
34649 # It is not useful on other systems.  If it contains results you don't
34650 # want to keep, you may remove or edit it.
34651 #
34652 # config.status only pays attention to the cache file if you give it
34653 # the --recheck option to rerun configure.
34654 #
34655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34657 # following values.
34658
34659 _ACEOF
34660
34661 # The following way of writing the cache mishandles newlines in values,
34662 # but we know of no workaround that is simple, portable, and efficient.
34663 # So, don't put newlines in cache variables' values.
34664 # Ultrix sh set writes to stderr and can't be redirected directly,
34665 # and sets the high bit in the cache file unless we assign to the vars.
34666 {
34667   (set) 2>&1 |
34668     case `(ac_space=' '; set | grep ac_space) 2>&1` in
34669     *ac_space=\ *)
34670       # `set' does not quote correctly, so add quotes (double-quote
34671       # substitution turns \\\\ into \\, and sed turns \\ into \).
34672       sed -n \
34673         "s/'/'\\\\''/g;
34674           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34675       ;;
34676     *)
34677       # `set' quotes correctly as required by POSIX, so do not add quotes.
34678       sed -n \
34679         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34680       ;;
34681     esac;
34682 } |
34683   sed '
34684      t clear
34685      : clear
34686      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34687      t end
34688      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34689      : end' >>confcache
34690 if diff $cache_file confcache >/dev/null 2>&1; then :; else
34691   if test -w $cache_file; then
34692     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34693     cat confcache >$cache_file
34694   else
34695     echo "not updating unwritable cache $cache_file"
34696   fi
34697 fi
34698 rm -f confcache
34699
34700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34701 # Let make expand exec_prefix.
34702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34703
34704 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34705 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34706 # trailing colons and then remove the whole line if VPATH becomes empty
34707 # (actually we leave an empty line to preserve line numbers).
34708 if test "x$srcdir" = x.; then
34709   ac_vpsub='/^[         ]*VPATH[        ]*=/{
34710 s/:*\$(srcdir):*/:/;
34711 s/:*\${srcdir}:*/:/;
34712 s/:*@srcdir@:*/:/;
34713 s/^\([^=]*=[    ]*\):*/\1/;
34714 s/:*$//;
34715 s/^[^=]*=[      ]*$//;
34716 }'
34717 fi
34718
34719 DEFS=-DHAVE_CONFIG_H
34720
34721 ac_libobjs=
34722 ac_ltlibobjs=
34723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34724   # 1. Remove the extension, and $U if already installed.
34725   ac_i=`echo "$ac_i" |
34726          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34727   # 2. Add them.
34728   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34729   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34730 done
34731 LIBOBJS=$ac_libobjs
34732
34733 LTLIBOBJS=$ac_ltlibobjs
34734
34735
34736
34737 : ${CONFIG_STATUS=./config.status}
34738 ac_clean_files_save=$ac_clean_files
34739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34740 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34742 cat >$CONFIG_STATUS <<_ACEOF
34743 #! $SHELL
34744 # Generated by $as_me.
34745 # Run this file to recreate the current configuration.
34746 # Compiler output produced by configure, useful for debugging
34747 # configure, is in config.log if it exists.
34748
34749 debug=false
34750 ac_cs_recheck=false
34751 ac_cs_silent=false
34752 SHELL=\${CONFIG_SHELL-$SHELL}
34753 _ACEOF
34754
34755 cat >>$CONFIG_STATUS <<\_ACEOF
34756 ## --------------------- ##
34757 ## M4sh Initialization.  ##
34758 ## --------------------- ##
34759
34760 # Be Bourne compatible
34761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34762   emulate sh
34763   NULLCMD=:
34764   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34765   # is contrary to our usage.  Disable this feature.
34766   alias -g '${1+"$@"}'='"$@"'
34767 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34768   set -o posix
34769 fi
34770
34771 # Support unset when possible.
34772 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34773   as_unset=unset
34774 else
34775   as_unset=false
34776 fi
34777
34778
34779 # Work around bugs in pre-3.0 UWIN ksh.
34780 $as_unset ENV MAIL MAILPATH
34781 PS1='$ '
34782 PS2='> '
34783 PS4='+ '
34784
34785 # NLS nuisances.
34786 for as_var in \
34787   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34788   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34789   LC_TELEPHONE LC_TIME
34790 do
34791   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34792     eval $as_var=C; export $as_var
34793   else
34794     $as_unset $as_var
34795   fi
34796 done
34797
34798 # Required to use basename.
34799 if expr a : '\(a\)' >/dev/null 2>&1; then
34800   as_expr=expr
34801 else
34802   as_expr=false
34803 fi
34804
34805 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34806   as_basename=basename
34807 else
34808   as_basename=false
34809 fi
34810
34811
34812 # Name of the executable.
34813 as_me=`$as_basename "$0" ||
34814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34815          X"$0" : 'X\(//\)$' \| \
34816          X"$0" : 'X\(/\)$' \| \
34817          .     : '\(.\)' 2>/dev/null ||
34818 echo X/"$0" |
34819     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34820           /^X\/\(\/\/\)$/{ s//\1/; q; }
34821           /^X\/\(\/\).*/{ s//\1/; q; }
34822           s/.*/./; q'`
34823
34824
34825 # PATH needs CR, and LINENO needs CR and PATH.
34826 # Avoid depending upon Character Ranges.
34827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34830 as_cr_digits='0123456789'
34831 as_cr_alnum=$as_cr_Letters$as_cr_digits
34832
34833 # The user is always right.
34834 if test "${PATH_SEPARATOR+set}" != set; then
34835   echo "#! /bin/sh" >conf$$.sh
34836   echo  "exit 0"   >>conf$$.sh
34837   chmod +x conf$$.sh
34838   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34839     PATH_SEPARATOR=';'
34840   else
34841     PATH_SEPARATOR=:
34842   fi
34843   rm -f conf$$.sh
34844 fi
34845
34846
34847   as_lineno_1=$LINENO
34848   as_lineno_2=$LINENO
34849   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34850   test "x$as_lineno_1" != "x$as_lineno_2" &&
34851   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
34852   # Find who we are.  Look in the path if we contain no path at all
34853   # relative or not.
34854   case $0 in
34855     *[\\/]* ) as_myself=$0 ;;
34856     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34857 for as_dir in $PATH
34858 do
34859   IFS=$as_save_IFS
34860   test -z "$as_dir" && as_dir=.
34861   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34862 done
34863
34864        ;;
34865   esac
34866   # We did not find ourselves, most probably we were run as `sh COMMAND'
34867   # in which case we are not to be found in the path.
34868   if test "x$as_myself" = x; then
34869     as_myself=$0
34870   fi
34871   if test ! -f "$as_myself"; then
34872     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34873 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34874    { (exit 1); exit 1; }; }
34875   fi
34876   case $CONFIG_SHELL in
34877   '')
34878     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34879 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34880 do
34881   IFS=$as_save_IFS
34882   test -z "$as_dir" && as_dir=.
34883   for as_base in sh bash ksh sh5; do
34884          case $as_dir in
34885          /*)
34886            if ("$as_dir/$as_base" -c '
34887   as_lineno_1=$LINENO
34888   as_lineno_2=$LINENO
34889   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34890   test "x$as_lineno_1" != "x$as_lineno_2" &&
34891   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
34892              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34893              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34894              CONFIG_SHELL=$as_dir/$as_base
34895              export CONFIG_SHELL
34896              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34897            fi;;
34898          esac
34899        done
34900 done
34901 ;;
34902   esac
34903
34904   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34905   # uniformly replaced by the line number.  The first 'sed' inserts a
34906   # line-number line before each line; the second 'sed' does the real
34907   # work.  The second script uses 'N' to pair each line-number line
34908   # with the numbered line, and appends trailing '-' during
34909   # substitution so that $LINENO is not a special case at line end.
34910   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34911   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
34912   sed '=' <$as_myself |
34913     sed '
34914       N
34915       s,$,-,
34916       : loop
34917       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34918       t loop
34919       s,-$,,
34920       s,^['$as_cr_digits']*\n,,
34921     ' >$as_me.lineno &&
34922   chmod +x $as_me.lineno ||
34923     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34924 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34925    { (exit 1); exit 1; }; }
34926
34927   # Don't try to exec as it changes $[0], causing all sort of problems
34928   # (the dirname of $[0] is not the place where we might find the
34929   # original and so on.  Autoconf is especially sensible to this).
34930   . ./$as_me.lineno
34931   # Exit status is that of the last command.
34932   exit
34933 }
34934
34935
34936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34937   *c*,-n*) ECHO_N= ECHO_C='
34938 ' ECHO_T='      ' ;;
34939   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34940   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
34941 esac
34942
34943 if expr a : '\(a\)' >/dev/null 2>&1; then
34944   as_expr=expr
34945 else
34946   as_expr=false
34947 fi
34948
34949 rm -f conf$$ conf$$.exe conf$$.file
34950 echo >conf$$.file
34951 if ln -s conf$$.file conf$$ 2>/dev/null; then
34952   # We could just check for DJGPP; but this test a) works b) is more generic
34953   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34954   if test -f conf$$.exe; then
34955     # Don't use ln at all; we don't have any links
34956     as_ln_s='cp -p'
34957   else
34958     as_ln_s='ln -s'
34959   fi
34960 elif ln conf$$.file conf$$ 2>/dev/null; then
34961   as_ln_s=ln
34962 else
34963   as_ln_s='cp -p'
34964 fi
34965 rm -f conf$$ conf$$.exe conf$$.file
34966
34967 if mkdir -p . 2>/dev/null; then
34968   as_mkdir_p=:
34969 else
34970   as_mkdir_p=false
34971 fi
34972
34973 as_executable_p="test -f"
34974
34975 # Sed expression to map a string onto a valid CPP name.
34976 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
34977
34978 # Sed expression to map a string onto a valid variable name.
34979 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
34980
34981
34982 # IFS
34983 # We need space, tab and new line, in precisely that order.
34984 as_nl='
34985 '
34986 IFS="   $as_nl"
34987
34988 # CDPATH.
34989 $as_unset CDPATH
34990
34991 exec 6>&1
34992
34993 # Open the log real soon, to keep \$[0] and so on meaningful, and to
34994 # report actual input values of CONFIG_FILES etc. instead of their
34995 # values after options handling.  Logging --version etc. is OK.
34996 exec 5>>config.log
34997 {
34998   echo
34999   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35000 ## Running $as_me. ##
35001 _ASBOX
35002 } >&5
35003 cat >&5 <<_CSEOF
35004
35005 This file was extended by wxWindows $as_me 2.5.0, which was
35006 generated by GNU Autoconf 2.57.  Invocation command line was
35007
35008   CONFIG_FILES    = $CONFIG_FILES
35009   CONFIG_HEADERS  = $CONFIG_HEADERS
35010   CONFIG_LINKS    = $CONFIG_LINKS
35011   CONFIG_COMMANDS = $CONFIG_COMMANDS
35012   $ $0 $@
35013
35014 _CSEOF
35015 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35016 echo >&5
35017 _ACEOF
35018
35019 # Files that config.status was made for.
35020 if test -n "$ac_config_files"; then
35021   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35022 fi
35023
35024 if test -n "$ac_config_headers"; then
35025   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35026 fi
35027
35028 if test -n "$ac_config_links"; then
35029   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35030 fi
35031
35032 if test -n "$ac_config_commands"; then
35033   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35034 fi
35035
35036 cat >>$CONFIG_STATUS <<\_ACEOF
35037
35038 ac_cs_usage="\
35039 \`$as_me' instantiates files from templates according to the
35040 current configuration.
35041
35042 Usage: $0 [OPTIONS] [FILE]...
35043
35044   -h, --help       print this help, then exit
35045   -V, --version    print version number, then exit
35046   -q, --quiet      do not print progress messages
35047   -d, --debug      don't remove temporary files
35048       --recheck    update $as_me by reconfiguring in the same conditions
35049   --file=FILE[:TEMPLATE]
35050                    instantiate the configuration file FILE
35051   --header=FILE[:TEMPLATE]
35052                    instantiate the configuration header FILE
35053
35054 Configuration files:
35055 $config_files
35056
35057 Configuration headers:
35058 $config_headers
35059
35060 Configuration commands:
35061 $config_commands
35062
35063 Report bugs to <bug-autoconf@gnu.org>."
35064 _ACEOF
35065
35066 cat >>$CONFIG_STATUS <<_ACEOF
35067 ac_cs_version="\\
35068 wxWindows config.status 2.5.0
35069 configured by $0, generated by GNU Autoconf 2.57,
35070   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35071
35072 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35073 Free Software Foundation, Inc.
35074 This config.status script is free software; the Free Software Foundation
35075 gives unlimited permission to copy, distribute and modify it."
35076 srcdir=$srcdir
35077 INSTALL="$INSTALL"
35078 _ACEOF
35079
35080 cat >>$CONFIG_STATUS <<\_ACEOF
35081 # If no file are specified by the user, then we need to provide default
35082 # value.  By we need to know if files were specified by the user.
35083 ac_need_defaults=:
35084 while test $# != 0
35085 do
35086   case $1 in
35087   --*=*)
35088     ac_option=`expr "x$1" : 'x\([^=]*\)='`
35089     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35090     ac_shift=:
35091     ;;
35092   -*)
35093     ac_option=$1
35094     ac_optarg=$2
35095     ac_shift=shift
35096     ;;
35097   *) # This is not an option, so the user has probably given explicit
35098      # arguments.
35099      ac_option=$1
35100      ac_need_defaults=false;;
35101   esac
35102
35103   case $ac_option in
35104   # Handling of the options.
35105 _ACEOF
35106 cat >>$CONFIG_STATUS <<\_ACEOF
35107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35108     ac_cs_recheck=: ;;
35109   --version | --vers* | -V )
35110     echo "$ac_cs_version"; exit 0 ;;
35111   --he | --h)
35112     # Conflict between --help and --header
35113     { { echo "$as_me:$LINENO: error: ambiguous option: $1
35114 Try \`$0 --help' for more information." >&5
35115 echo "$as_me: error: ambiguous option: $1
35116 Try \`$0 --help' for more information." >&2;}
35117    { (exit 1); exit 1; }; };;
35118   --help | --hel | -h )
35119     echo "$ac_cs_usage"; exit 0 ;;
35120   --debug | --d* | -d )
35121     debug=: ;;
35122   --file | --fil | --fi | --f )
35123     $ac_shift
35124     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35125     ac_need_defaults=false;;
35126   --header | --heade | --head | --hea )
35127     $ac_shift
35128     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35129     ac_need_defaults=false;;
35130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35131   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35132     ac_cs_silent=: ;;
35133
35134   # This is an error.
35135   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35136 Try \`$0 --help' for more information." >&5
35137 echo "$as_me: error: unrecognized option: $1
35138 Try \`$0 --help' for more information." >&2;}
35139    { (exit 1); exit 1; }; } ;;
35140
35141   *) ac_config_targets="$ac_config_targets $1" ;;
35142
35143   esac
35144   shift
35145 done
35146
35147 ac_configure_extra_args=
35148
35149 if $ac_cs_silent; then
35150   exec 6>/dev/null
35151   ac_configure_extra_args="$ac_configure_extra_args --silent"
35152 fi
35153
35154 _ACEOF
35155 cat >>$CONFIG_STATUS <<_ACEOF
35156 if \$ac_cs_recheck; then
35157   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35158   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35159 fi
35160
35161 _ACEOF
35162
35163 cat >>$CONFIG_STATUS <<_ACEOF
35164 #
35165 # INIT-COMMANDS section.
35166 #
35167
35168
35169             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35170             LN_S="${LN_S}"
35171
35172
35173
35174 _ACEOF
35175
35176
35177
35178 cat >>$CONFIG_STATUS <<\_ACEOF
35179 for ac_config_target in $ac_config_targets
35180 do
35181   case "$ac_config_target" in
35182   # Handling of arguments.
35183   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35184   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35185   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35186   "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
35187   "samples/access/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/access/Makefile" ;;
35188   "samples/artprov/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/artprov/Makefile" ;;
35189   "samples/caret/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/caret/Makefile" ;;
35190   "samples/calendar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/calendar/Makefile" ;;
35191   "samples/checklst/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/checklst/Makefile" ;;
35192   "samples/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/config/Makefile" ;;
35193   "samples/controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/controls/Makefile" ;;
35194   "samples/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/console/Makefile" ;;
35195   "samples/db/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/db/Makefile" ;;
35196   "samples/dialogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dialogs/Makefile" ;;
35197   "samples/dialup/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dialup/Makefile" ;;
35198   "samples/docview/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/docview/Makefile" ;;
35199   "samples/docvwmdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/docvwmdi/Makefile" ;;
35200   "samples/dnd/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dnd/Makefile" ;;
35201   "samples/dragimag/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dragimag/Makefile" ;;
35202   "samples/drawing/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/drawing/Makefile" ;;
35203   "samples/dynamic/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dynamic/Makefile" ;;
35204   "samples/erase/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/erase/Makefile" ;;
35205   "samples/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/event/Makefile" ;;
35206   "samples/exec/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/exec/Makefile" ;;
35207   "samples/font/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/font/Makefile" ;;
35208   "samples/grid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/grid/Makefile" ;;
35209   "samples/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/help/Makefile" ;;
35210   "samples/image/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/image/Makefile" ;;
35211   "samples/internat/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/internat/Makefile" ;;
35212   "samples/ipc/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/ipc/Makefile" ;;
35213   "samples/joytest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/joytest/Makefile" ;;
35214   "samples/keyboard/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/keyboard/Makefile" ;;
35215   "samples/layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
35216   "samples/listctrl/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/listctrl/Makefile" ;;
35217   "samples/mdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mdi/Makefile" ;;
35218   "samples/menu/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/menu/Makefile" ;;
35219   "samples/memcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/memcheck/Makefile" ;;
35220   "samples/minifram/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minifram/Makefile" ;;
35221   "samples/minimal/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minimal/Makefile" ;;
35222   "samples/mobile/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mobile/Makefile" ;;
35223   "samples/mobile/wxedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mobile/wxedit/Makefile" ;;
35224   "samples/mobile/styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mobile/styles/Makefile" ;;
35225   "samples/multimon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/multimon/Makefile" ;;
35226   "samples/notebook/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/notebook/Makefile" ;;
35227   "samples/oleauto/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/oleauto/Makefile" ;;
35228   "samples/ownerdrw/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/ownerdrw/Makefile" ;;
35229   "samples/png/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/png/Makefile" ;;
35230   "samples/printing/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/printing/Makefile" ;;
35231   "samples/propsize/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/propsize/Makefile" ;;
35232   "samples/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/regtest/Makefile" ;;
35233   "samples/rotate/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/rotate/Makefile" ;;
35234   "samples/sashtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/sashtest/Makefile" ;;
35235   "samples/shaped/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/shaped/Makefile" ;;
35236   "samples/scroll/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/scroll/Makefile" ;;
35237   "samples/scrollsub/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/scrollsub/Makefile" ;;
35238   "samples/sockets/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/sockets/Makefile" ;;
35239   "samples/splitter/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/splitter/Makefile" ;;
35240   "samples/statbar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/statbar/Makefile" ;;
35241   "samples/taskbar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/taskbar/Makefile" ;;
35242   "samples/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/text/Makefile" ;;
35243   "samples/thread/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/thread/Makefile" ;;
35244   "samples/toolbar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/toolbar/Makefile" ;;
35245   "samples/treectrl/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/treectrl/Makefile" ;;
35246   "samples/typetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/typetest/Makefile" ;;
35247   "samples/validate/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/validate/Makefile" ;;
35248   "samples/widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/widgets/Makefile" ;;
35249   "samples/wizard/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/wizard/Makefile" ;;
35250   "samples/htlbox/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/htlbox/Makefile" ;;
35251   "samples/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/Makefile" ;;
35252   "samples/html/about/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/about/Makefile" ;;
35253   "samples/html/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/help/Makefile" ;;
35254   "samples/html/printing/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/printing/Makefile" ;;
35255   "samples/html/helpview/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/helpview/Makefile" ;;
35256   "samples/html/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/test/Makefile" ;;
35257   "samples/html/zip/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/zip/Makefile" ;;
35258   "samples/html/virtual/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/virtual/Makefile" ;;
35259   "samples/html/widget/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/widget/Makefile" ;;
35260   "samples/opengl/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/Makefile" ;;
35261   "samples/opengl/cube/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/cube/Makefile" ;;
35262   "samples/opengl/penguin/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/penguin/Makefile" ;;
35263   "samples/opengl/isosurf/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/isosurf/Makefile" ;;
35264   "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
35265   "demos/bombs/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/bombs/Makefile" ;;
35266   "demos/dbbrowse/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/dbbrowse/Makefile" ;;
35267   "demos/forty/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/forty/Makefile" ;;
35268   "demos/fractal/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/fractal/Makefile" ;;
35269   "demos/life/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/life/Makefile" ;;
35270   "demos/poem/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/poem/Makefile" ;;
35271   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
35272   "utils/makegen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/makegen/Makefile" ;;
35273   "utils/HelpGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/HelpGen/Makefile" ;;
35274   "utils/HelpGen/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/HelpGen/src/Makefile" ;;
35275   "utils/tex2rtf/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/tex2rtf/Makefile" ;;
35276   "utils/tex2rtf/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/tex2rtf/src/Makefile" ;;
35277   "utils/hhp2cached/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/hhp2cached/Makefile" ;;
35278   "utils/dialoged/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/dialoged/Makefile" ;;
35279   "utils/dialoged/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/dialoged/src/Makefile" ;;
35280   "utils/emulator/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/emulator/Makefile" ;;
35281   "utils/emulator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/emulator/src/Makefile" ;;
35282   "utils/helpview/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/helpview/Makefile" ;;
35283   "utils/helpview/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/helpview/src/Makefile" ;;
35284   "utils/configtool/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/configtool/Makefile" ;;
35285   "utils/configtool/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/configtool/src/Makefile" ;;
35286   "contrib/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/Makefile" ;;
35287   "contrib/src/deprecated/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/deprecated/Makefile" ;;
35288   "contrib/src/ogl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/ogl/Makefile" ;;
35289   "contrib/src/mmedia/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/mmedia/Makefile" ;;
35290   "contrib/src/stc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/stc/Makefile" ;;
35291   "contrib/src/svg/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/svg/Makefile" ;;
35292   "contrib/src/xrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/xrc/Makefile" ;;
35293   "contrib/src/gizmos/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/gizmos/Makefile" ;;
35294   "contrib/src/plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/plot/Makefile" ;;
35295   "contrib/src/applet/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/applet/Makefile" ;;
35296   "contrib/src/fl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/fl/Makefile" ;;
35297   "contrib/src/net/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/net/Makefile" ;;
35298   "contrib/samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/Makefile" ;;
35299   "contrib/samples/deprecated/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/Makefile" ;;
35300   "contrib/samples/deprecated/proplist/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/proplist/Makefile" ;;
35301   "contrib/samples/deprecated/resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/resource/Makefile" ;;
35302   "contrib/samples/deprecated/treelay/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/treelay/Makefile" ;;
35303   "contrib/samples/mmedia/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/mmedia/Makefile" ;;
35304   "contrib/samples/ogl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/ogl/Makefile" ;;
35305   "contrib/samples/ogl/ogledit/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/ogl/ogledit/Makefile" ;;
35306   "contrib/samples/ogl/studio/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/ogl/studio/Makefile" ;;
35307   "contrib/samples/stc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/stc/Makefile" ;;
35308   "contrib/samples/svg/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/svg/Makefile" ;;
35309   "contrib/samples/gizmos/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/Makefile" ;;
35310   "contrib/samples/gizmos/editlbox/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/editlbox/Makefile" ;;
35311   "contrib/samples/gizmos/dynsash/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/dynsash/Makefile" ;;
35312   "contrib/samples/gizmos/dynsash_switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/dynsash_switch/Makefile" ;;
35313   "contrib/samples/gizmos/multicell/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/multicell/Makefile" ;;
35314   "contrib/samples/gizmos/splittree/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/splittree/Makefile" ;;
35315   "contrib/samples/gizmos/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/led/Makefile" ;;
35316   "contrib/samples/xrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/xrc/Makefile" ;;
35317   "contrib/samples/plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/plot/Makefile" ;;
35318   "contrib/samples/applet/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/applet/Makefile" ;;
35319   "contrib/samples/fl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/Makefile" ;;
35320   "contrib/samples/fl/fl_demo1/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_demo1/Makefile" ;;
35321   "contrib/samples/fl/fl_demo2/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_demo2/Makefile" ;;
35322   "contrib/samples/fl/fl_sample1/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_sample1/Makefile" ;;
35323   "contrib/samples/fl/fl_sample2/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_sample2/Makefile" ;;
35324   "contrib/samples/fl/fl_sample3/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_sample3/Makefile" ;;
35325   "contrib/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/Makefile" ;;
35326   "contrib/utils/wxrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/wxrc/Makefile" ;;
35327   "contrib/utils/wxrcedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/wxrcedit/Makefile" ;;
35328   "contrib/utils/convertrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/convertrc/Makefile" ;;
35329   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35330   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35331   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35332 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35333    { (exit 1); exit 1; }; };;
35334   esac
35335 done
35336
35337 # If the user did not use the arguments to specify the items to instantiate,
35338 # then the envvar interface is used.  Set only those that are not.
35339 # We use the long form for the default assignment because of an extremely
35340 # bizarre bug on SunOS 4.1.3.
35341 if $ac_need_defaults; then
35342   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35343   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35344   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35345 fi
35346
35347 # Have a temporary directory for convenience.  Make it in the build tree
35348 # simply because there is no reason to put it here, and in addition,
35349 # creating and moving files from /tmp can sometimes cause problems.
35350 # Create a temporary directory, and hook for its removal unless debugging.
35351 $debug ||
35352 {
35353   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35354   trap '{ (exit 1); exit 1; }' 1 2 13 15
35355 }
35356
35357 # Create a (secure) tmp directory for tmp files.
35358
35359 {
35360   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35361   test -n "$tmp" && test -d "$tmp"
35362 }  ||
35363 {
35364   tmp=./confstat$$-$RANDOM
35365   (umask 077 && mkdir $tmp)
35366 } ||
35367 {
35368    echo "$me: cannot create a temporary directory in ." >&2
35369    { (exit 1); exit 1; }
35370 }
35371
35372 _ACEOF
35373
35374 cat >>$CONFIG_STATUS <<_ACEOF
35375
35376 #
35377 # CONFIG_FILES section.
35378 #
35379
35380 # No need to generate the scripts if there are no CONFIG_FILES.
35381 # This happens for instance when ./config.status config.h
35382 if test -n "\$CONFIG_FILES"; then
35383   # Protect against being on the right side of a sed subst in config.status.
35384   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35385    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35386 s,@SHELL@,$SHELL,;t t
35387 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35388 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35389 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35390 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35391 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35392 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35393 s,@exec_prefix@,$exec_prefix,;t t
35394 s,@prefix@,$prefix,;t t
35395 s,@program_transform_name@,$program_transform_name,;t t
35396 s,@bindir@,$bindir,;t t
35397 s,@sbindir@,$sbindir,;t t
35398 s,@libexecdir@,$libexecdir,;t t
35399 s,@datadir@,$datadir,;t t
35400 s,@sysconfdir@,$sysconfdir,;t t
35401 s,@sharedstatedir@,$sharedstatedir,;t t
35402 s,@localstatedir@,$localstatedir,;t t
35403 s,@libdir@,$libdir,;t t
35404 s,@includedir@,$includedir,;t t
35405 s,@oldincludedir@,$oldincludedir,;t t
35406 s,@infodir@,$infodir,;t t
35407 s,@mandir@,$mandir,;t t
35408 s,@build_alias@,$build_alias,;t t
35409 s,@host_alias@,$host_alias,;t t
35410 s,@target_alias@,$target_alias,;t t
35411 s,@DEFS@,$DEFS,;t t
35412 s,@ECHO_C@,$ECHO_C,;t t
35413 s,@ECHO_N@,$ECHO_N,;t t
35414 s,@ECHO_T@,$ECHO_T,;t t
35415 s,@LIBS@,$LIBS,;t t
35416 s,@build@,$build,;t t
35417 s,@build_cpu@,$build_cpu,;t t
35418 s,@build_vendor@,$build_vendor,;t t
35419 s,@build_os@,$build_os,;t t
35420 s,@host@,$host,;t t
35421 s,@host_cpu@,$host_cpu,;t t
35422 s,@host_vendor@,$host_vendor,;t t
35423 s,@host_os@,$host_os,;t t
35424 s,@target@,$target,;t t
35425 s,@target_cpu@,$target_cpu,;t t
35426 s,@target_vendor@,$target_vendor,;t t
35427 s,@target_os@,$target_os,;t t
35428 s,@CC@,$CC,;t t
35429 s,@CFLAGS@,$CFLAGS,;t t
35430 s,@LDFLAGS@,$LDFLAGS,;t t
35431 s,@CPPFLAGS@,$CPPFLAGS,;t t
35432 s,@ac_ct_CC@,$ac_ct_CC,;t t
35433 s,@EXEEXT@,$EXEEXT,;t t
35434 s,@OBJEXT@,$OBJEXT,;t t
35435 s,@CPP@,$CPP,;t t
35436 s,@EGREP@,$EGREP,;t t
35437 s,@CXX@,$CXX,;t t
35438 s,@CXXFLAGS@,$CXXFLAGS,;t t
35439 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35440 s,@RANLIB@,$RANLIB,;t t
35441 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35442 s,@AR@,$AR,;t t
35443 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35444 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35445 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35446 s,@STRIP@,$STRIP,;t t
35447 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35448 s,@YACC@,$YACC,;t t
35449 s,@LEX@,$LEX,;t t
35450 s,@LEXLIB@,$LEXLIB,;t t
35451 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35452 s,@LN_S@,$LN_S,;t t
35453 s,@CXXCPP@,$CXXCPP,;t t
35454 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35455 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35456 s,@GTK_LIBS@,$GTK_LIBS,;t t
35457 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35458 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35459 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35460 s,@X_CFLAGS@,$X_CFLAGS,;t t
35461 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35462 s,@X_LIBS@,$X_LIBS,;t t
35463 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35464 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35465 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35466 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35467 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
35468 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
35469 s,@RESCOMP@,$RESCOMP,;t t
35470 s,@DEREZ@,$DEREZ,;t t
35471 s,@SETFILE@,$SETFILE,;t t
35472 s,@LIBICONV@,$LIBICONV,;t t
35473 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35474 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35475 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35476 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35477 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35478 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
35479 s,@WXUNIV@,$WXUNIV,;t t
35480 s,@MONOLITHIC@,$MONOLITHIC,;t t
35481 s,@EXTRALIBS@,$EXTRALIBS,;t t
35482 s,@UNICODE@,$UNICODE,;t t
35483 s,@BUILD@,$BUILD,;t t
35484 s,@SHARED@,$SHARED,;t t
35485 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35486 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35487 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35488 s,@SET_MAKE@,$SET_MAKE,;t t
35489 s,@MAKE_SET@,$MAKE_SET,;t t
35490 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
35491 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35492 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35493 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35494 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35495 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35496 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35497 s,@DLLPREFIX@,$DLLPREFIX,;t t
35498 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35499 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35500 s,@PIC_FLAG@,$PIC_FLAG,;t t
35501 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35502 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35503 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35504 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35505 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35506 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
35507 s,@DEPS_TYPE@,$DEPS_TYPE,;t t
35508 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
35509 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35510 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35511 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35512 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35513 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35514 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35515 s,@COND_SHARED_1_MONOLITHIC_1@,$COND_SHARED_1_MONOLITHIC_1,;t t
35516 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35517 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35518 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35519 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
35520 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
35521 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35522 s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35523 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35524 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35525 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35526 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35527 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35528 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
35529 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
35530 s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_0@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_0,;t t
35531 s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_1@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_1,;t t
35532 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35533 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
35534 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
35535 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
35536 s,@COND_DEPS_TYPE_GCC@,$COND_DEPS_TYPE_GCC,;t t
35537 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35538 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35539 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
35540 s,@COND_SHARED_0_MONOLITHIC_1@,$COND_SHARED_0_MONOLITHIC_1,;t t
35541 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35542 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
35543 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35544 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
35545 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35546 s,@LEX_STEM@,$LEX_STEM,;t t
35547 s,@PATH_IFS@,$PATH_IFS,;t t
35548 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35549 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35550 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35551 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35552 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35553 s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35554 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35555 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35556 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35557 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35558 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35559 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35560 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35561 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35562 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35563 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35564 s,@WX_ALL@,$WX_ALL,;t t
35565 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35566 s,@SHARED_LD@,$SHARED_LD,;t t
35567 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35568 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
35569 s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
35570 s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
35571 s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
35572 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35573 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35574 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35575 s,@USE_GUI@,$USE_GUI,;t t
35576 s,@AFMINSTALL@,$AFMINSTALL,;t t
35577 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35578 s,@TOOLKIT@,$TOOLKIT,;t t
35579 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35580 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35581 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35582 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35583 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35584 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35585 s,@cross_compiling@,$cross_compiling,;t t
35586 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35587 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35588 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35589 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35590 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35591 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35592 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
35593 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35594 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35595 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35596 s,@GUIDIST@,$GUIDIST,;t t
35597 s,@PORT_FILES@,$PORT_FILES,;t t
35598 s,@DISTDIR@,$DISTDIR,;t t
35599 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35600 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35601 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35602 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35603 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35604 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35605 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35606 s,@RESFLAGS@,$RESFLAGS,;t t
35607 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35608 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35609 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35610 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35611 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35612 s,@MACRESCOMP@,$MACRESCOMP,;t t
35613 s,@MACSETFILE@,$MACSETFILE,;t t
35614 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35615 s,@GCC@,$GCC,;t t
35616 s,@DLLTOOL@,$DLLTOOL,;t t
35617 s,@AS@,$AS,;t t
35618 s,@NM@,$NM,;t t
35619 s,@LD@,$LD,;t t
35620 s,@MAKEINFO@,$MAKEINFO,;t t
35621 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35622 s,@ESD_LINK@,$ESD_LINK,;t t
35623 s,@LIBOBJS@,$LIBOBJS,;t t
35624 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35625 CEOF
35626
35627 _ACEOF
35628
35629   cat >>$CONFIG_STATUS <<\_ACEOF
35630   # Split the substitutions into bite-sized pieces for seds with
35631   # small command number limits, like on Digital OSF/1 and HP-UX.
35632   ac_max_sed_lines=48
35633   ac_sed_frag=1 # Number of current file.
35634   ac_beg=1 # First line for current file.
35635   ac_end=$ac_max_sed_lines # Line after last line for current file.
35636   ac_more_lines=:
35637   ac_sed_cmds=
35638   while $ac_more_lines; do
35639     if test $ac_beg -gt 1; then
35640       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35641     else
35642       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35643     fi
35644     if test ! -s $tmp/subs.frag; then
35645       ac_more_lines=false
35646     else
35647       # The purpose of the label and of the branching condition is to
35648       # speed up the sed processing (if there are no `@' at all, there
35649       # is no need to browse any of the substitutions).
35650       # These are the two extra sed commands mentioned above.
35651       (echo ':t
35652   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35653       if test -z "$ac_sed_cmds"; then
35654         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35655       else
35656         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35657       fi
35658       ac_sed_frag=`expr $ac_sed_frag + 1`
35659       ac_beg=$ac_end
35660       ac_end=`expr $ac_end + $ac_max_sed_lines`
35661     fi
35662   done
35663   if test -z "$ac_sed_cmds"; then
35664     ac_sed_cmds=cat
35665   fi
35666 fi # test -n "$CONFIG_FILES"
35667
35668 _ACEOF
35669 cat >>$CONFIG_STATUS <<\_ACEOF
35670 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35671   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35672   case $ac_file in
35673   - | *:- | *:-:* ) # input from stdin
35674         cat >$tmp/stdin
35675         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35676         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35677   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35678         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35679   * )   ac_file_in=$ac_file.in ;;
35680   esac
35681
35682   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35683   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35685          X"$ac_file" : 'X\(//\)[^/]' \| \
35686          X"$ac_file" : 'X\(//\)$' \| \
35687          X"$ac_file" : 'X\(/\)' \| \
35688          .     : '\(.\)' 2>/dev/null ||
35689 echo X"$ac_file" |
35690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35692           /^X\(\/\/\)$/{ s//\1/; q; }
35693           /^X\(\/\).*/{ s//\1/; q; }
35694           s/.*/./; q'`
35695   { if $as_mkdir_p; then
35696     mkdir -p "$ac_dir"
35697   else
35698     as_dir="$ac_dir"
35699     as_dirs=
35700     while test ! -d "$as_dir"; do
35701       as_dirs="$as_dir $as_dirs"
35702       as_dir=`(dirname "$as_dir") 2>/dev/null ||
35703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35704          X"$as_dir" : 'X\(//\)[^/]' \| \
35705          X"$as_dir" : 'X\(//\)$' \| \
35706          X"$as_dir" : 'X\(/\)' \| \
35707          .     : '\(.\)' 2>/dev/null ||
35708 echo X"$as_dir" |
35709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35711           /^X\(\/\/\)$/{ s//\1/; q; }
35712           /^X\(\/\).*/{ s//\1/; q; }
35713           s/.*/./; q'`
35714     done
35715     test ! -n "$as_dirs" || mkdir $as_dirs
35716   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35717 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35718    { (exit 1); exit 1; }; }; }
35719
35720   ac_builddir=.
35721
35722 if test "$ac_dir" != .; then
35723   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35724   # A "../" for each directory in $ac_dir_suffix.
35725   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35726 else
35727   ac_dir_suffix= ac_top_builddir=
35728 fi
35729
35730 case $srcdir in
35731   .)  # No --srcdir option.  We are building in place.
35732     ac_srcdir=.
35733     if test -z "$ac_top_builddir"; then
35734        ac_top_srcdir=.
35735     else
35736        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35737     fi ;;
35738   [\\/]* | ?:[\\/]* )  # Absolute path.
35739     ac_srcdir=$srcdir$ac_dir_suffix;
35740     ac_top_srcdir=$srcdir ;;
35741   *) # Relative path.
35742     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35743     ac_top_srcdir=$ac_top_builddir$srcdir ;;
35744 esac
35745 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35746 # absolute.
35747 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35748 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35749 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35750 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35751
35752
35753   case $INSTALL in
35754   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35755   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35756   esac
35757
35758   if test x"$ac_file" != x-; then
35759     { echo "$as_me:$LINENO: creating $ac_file" >&5
35760 echo "$as_me: creating $ac_file" >&6;}
35761     rm -f "$ac_file"
35762   fi
35763   # Let's still pretend it is `configure' which instantiates (i.e., don't
35764   # use $as_me), people would be surprised to read:
35765   #    /* config.h.  Generated by config.status.  */
35766   if test x"$ac_file" = x-; then
35767     configure_input=
35768   else
35769     configure_input="$ac_file.  "
35770   fi
35771   configure_input=$configure_input"Generated from `echo $ac_file_in |
35772                                      sed 's,.*/,,'` by configure."
35773
35774   # First look for the input files in the build tree, otherwise in the
35775   # src tree.
35776   ac_file_inputs=`IFS=:
35777     for f in $ac_file_in; do
35778       case $f in
35779       -) echo $tmp/stdin ;;
35780       [\\/$]*)
35781          # Absolute (can't be DOS-style, as IFS=:)
35782          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35783 echo "$as_me: error: cannot find input file: $f" >&2;}
35784    { (exit 1); exit 1; }; }
35785          echo $f;;
35786       *) # Relative
35787          if test -f "$f"; then
35788            # Build tree
35789            echo $f
35790          elif test -f "$srcdir/$f"; then
35791            # Source tree
35792            echo $srcdir/$f
35793          else
35794            # /dev/null tree
35795            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35796 echo "$as_me: error: cannot find input file: $f" >&2;}
35797    { (exit 1); exit 1; }; }
35798          fi;;
35799       esac
35800     done` || { (exit 1); exit 1; }
35801 _ACEOF
35802 cat >>$CONFIG_STATUS <<_ACEOF
35803   sed "$ac_vpsub
35804 $extrasub
35805 _ACEOF
35806 cat >>$CONFIG_STATUS <<\_ACEOF
35807 :t
35808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35809 s,@configure_input@,$configure_input,;t t
35810 s,@srcdir@,$ac_srcdir,;t t
35811 s,@abs_srcdir@,$ac_abs_srcdir,;t t
35812 s,@top_srcdir@,$ac_top_srcdir,;t t
35813 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35814 s,@builddir@,$ac_builddir,;t t
35815 s,@abs_builddir@,$ac_abs_builddir,;t t
35816 s,@top_builddir@,$ac_top_builddir,;t t
35817 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35818 s,@INSTALL@,$ac_INSTALL,;t t
35819 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35820   rm -f $tmp/stdin
35821   if test x"$ac_file" != x-; then
35822     mv $tmp/out $ac_file
35823   else
35824     cat $tmp/out
35825     rm -f $tmp/out
35826   fi
35827
35828 done
35829 _ACEOF
35830 cat >>$CONFIG_STATUS <<\_ACEOF
35831
35832 #
35833 # CONFIG_HEADER section.
35834 #
35835
35836 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35837 # NAME is the cpp macro being defined and VALUE is the value it is being given.
35838 #
35839 # ac_d sets the value in "#define NAME VALUE" lines.
35840 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
35841 ac_dB='[        ].*$,\1#\2'
35842 ac_dC=' '
35843 ac_dD=',;t'
35844 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35845 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
35846 ac_uB='$,\1#\2define\3'
35847 ac_uC=' '
35848 ac_uD=',;t'
35849
35850 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35851   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35852   case $ac_file in
35853   - | *:- | *:-:* ) # input from stdin
35854         cat >$tmp/stdin
35855         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35856         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35857   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35858         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35859   * )   ac_file_in=$ac_file.in ;;
35860   esac
35861
35862   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35863 echo "$as_me: creating $ac_file" >&6;}
35864
35865   # First look for the input files in the build tree, otherwise in the
35866   # src tree.
35867   ac_file_inputs=`IFS=:
35868     for f in $ac_file_in; do
35869       case $f in
35870       -) echo $tmp/stdin ;;
35871       [\\/$]*)
35872          # Absolute (can't be DOS-style, as IFS=:)
35873          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35874 echo "$as_me: error: cannot find input file: $f" >&2;}
35875    { (exit 1); exit 1; }; }
35876          echo $f;;
35877       *) # Relative
35878          if test -f "$f"; then
35879            # Build tree
35880            echo $f
35881          elif test -f "$srcdir/$f"; then
35882            # Source tree
35883            echo $srcdir/$f
35884          else
35885            # /dev/null tree
35886            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35887 echo "$as_me: error: cannot find input file: $f" >&2;}
35888    { (exit 1); exit 1; }; }
35889          fi;;
35890       esac
35891     done` || { (exit 1); exit 1; }
35892   # Remove the trailing spaces.
35893   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
35894
35895 _ACEOF
35896
35897 # Transform confdefs.h into two sed scripts, `conftest.defines' and
35898 # `conftest.undefs', that substitutes the proper values into
35899 # config.h.in to produce config.h.  The first handles `#define'
35900 # templates, and the second `#undef' templates.
35901 # And first: Protect against being on the right side of a sed subst in
35902 # config.status.  Protect against being in an unquoted here document
35903 # in config.status.
35904 rm -f conftest.defines conftest.undefs
35905 # Using a here document instead of a string reduces the quoting nightmare.
35906 # Putting comments in sed scripts is not portable.
35907 #
35908 # `end' is used to avoid that the second main sed command (meant for
35909 # 0-ary CPP macros) applies to n-ary macro definitions.
35910 # See the Autoconf documentation for `clear'.
35911 cat >confdef2sed.sed <<\_ACEOF
35912 s/[\\&,]/\\&/g
35913 s,[\\$`],\\&,g
35914 t clear
35915 : clear
35916 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35917 t end
35918 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35919 : end
35920 _ACEOF
35921 # If some macros were called several times there might be several times
35922 # the same #defines, which is useless.  Nevertheless, we may not want to
35923 # sort them, since we want the *last* AC-DEFINE to be honored.
35924 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35925 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35926 rm -f confdef2sed.sed
35927
35928 # This sed command replaces #undef with comments.  This is necessary, for
35929 # example, in the case of _POSIX_SOURCE, which is predefined and required
35930 # on some systems where configure will not decide to define it.
35931 cat >>conftest.undefs <<\_ACEOF
35932 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35933 _ACEOF
35934
35935 # Break up conftest.defines because some shells have a limit on the size
35936 # of here documents, and old seds have small limits too (100 cmds).
35937 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35938 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35939 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35940 echo '  :' >>$CONFIG_STATUS
35941 rm -f conftest.tail
35942 while grep . conftest.defines >/dev/null
35943 do
35944   # Write a limited-size here document to $tmp/defines.sed.
35945   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35946   # Speed up: don't consider the non `#define' lines.
35947   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
35948   # Work around the forget-to-reset-the-flag bug.
35949   echo 't clr' >>$CONFIG_STATUS
35950   echo ': clr' >>$CONFIG_STATUS
35951   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35952   echo 'CEOF
35953   sed -f $tmp/defines.sed $tmp/in >$tmp/out
35954   rm -f $tmp/in
35955   mv $tmp/out $tmp/in
35956 ' >>$CONFIG_STATUS
35957   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35958   rm -f conftest.defines
35959   mv conftest.tail conftest.defines
35960 done
35961 rm -f conftest.defines
35962 echo '  fi # grep' >>$CONFIG_STATUS
35963 echo >>$CONFIG_STATUS
35964
35965 # Break up conftest.undefs because some shells have a limit on the size
35966 # of here documents, and old seds have small limits too (100 cmds).
35967 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
35968 rm -f conftest.tail
35969 while grep . conftest.undefs >/dev/null
35970 do
35971   # Write a limited-size here document to $tmp/undefs.sed.
35972   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35973   # Speed up: don't consider the non `#undef'
35974   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
35975   # Work around the forget-to-reset-the-flag bug.
35976   echo 't clr' >>$CONFIG_STATUS
35977   echo ': clr' >>$CONFIG_STATUS
35978   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35979   echo 'CEOF
35980   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35981   rm -f $tmp/in
35982   mv $tmp/out $tmp/in
35983 ' >>$CONFIG_STATUS
35984   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35985   rm -f conftest.undefs
35986   mv conftest.tail conftest.undefs
35987 done
35988 rm -f conftest.undefs
35989
35990 cat >>$CONFIG_STATUS <<\_ACEOF
35991   # Let's still pretend it is `configure' which instantiates (i.e., don't
35992   # use $as_me), people would be surprised to read:
35993   #    /* config.h.  Generated by config.status.  */
35994   if test x"$ac_file" = x-; then
35995     echo "/* Generated by configure.  */" >$tmp/config.h
35996   else
35997     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
35998   fi
35999   cat $tmp/in >>$tmp/config.h
36000   rm -f $tmp/in
36001   if test x"$ac_file" != x-; then
36002     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36003       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36004 echo "$as_me: $ac_file is unchanged" >&6;}
36005     else
36006       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36008          X"$ac_file" : 'X\(//\)[^/]' \| \
36009          X"$ac_file" : 'X\(//\)$' \| \
36010          X"$ac_file" : 'X\(/\)' \| \
36011          .     : '\(.\)' 2>/dev/null ||
36012 echo X"$ac_file" |
36013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36014           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36015           /^X\(\/\/\)$/{ s//\1/; q; }
36016           /^X\(\/\).*/{ s//\1/; q; }
36017           s/.*/./; q'`
36018       { if $as_mkdir_p; then
36019     mkdir -p "$ac_dir"
36020   else
36021     as_dir="$ac_dir"
36022     as_dirs=
36023     while test ! -d "$as_dir"; do
36024       as_dirs="$as_dir $as_dirs"
36025       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36027          X"$as_dir" : 'X\(//\)[^/]' \| \
36028          X"$as_dir" : 'X\(//\)$' \| \
36029          X"$as_dir" : 'X\(/\)' \| \
36030          .     : '\(.\)' 2>/dev/null ||
36031 echo X"$as_dir" |
36032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36034           /^X\(\/\/\)$/{ s//\1/; q; }
36035           /^X\(\/\).*/{ s//\1/; q; }
36036           s/.*/./; q'`
36037     done
36038     test ! -n "$as_dirs" || mkdir $as_dirs
36039   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36041    { (exit 1); exit 1; }; }; }
36042
36043       rm -f $ac_file
36044       mv $tmp/config.h $ac_file
36045     fi
36046   else
36047     cat $tmp/config.h
36048     rm -f $tmp/config.h
36049   fi
36050 done
36051 _ACEOF
36052 cat >>$CONFIG_STATUS <<\_ACEOF
36053
36054 #
36055 # CONFIG_COMMANDS section.
36056 #
36057 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36058   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36059   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36060   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36061 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36062          X"$ac_dest" : 'X\(//\)[^/]' \| \
36063          X"$ac_dest" : 'X\(//\)$' \| \
36064          X"$ac_dest" : 'X\(/\)' \| \
36065          .     : '\(.\)' 2>/dev/null ||
36066 echo X"$ac_dest" |
36067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36069           /^X\(\/\/\)$/{ s//\1/; q; }
36070           /^X\(\/\).*/{ s//\1/; q; }
36071           s/.*/./; q'`
36072   ac_builddir=.
36073
36074 if test "$ac_dir" != .; then
36075   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36076   # A "../" for each directory in $ac_dir_suffix.
36077   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36078 else
36079   ac_dir_suffix= ac_top_builddir=
36080 fi
36081
36082 case $srcdir in
36083   .)  # No --srcdir option.  We are building in place.
36084     ac_srcdir=.
36085     if test -z "$ac_top_builddir"; then
36086        ac_top_srcdir=.
36087     else
36088        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36089     fi ;;
36090   [\\/]* | ?:[\\/]* )  # Absolute path.
36091     ac_srcdir=$srcdir$ac_dir_suffix;
36092     ac_top_srcdir=$srcdir ;;
36093   *) # Relative path.
36094     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36095     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36096 esac
36097 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36098 # absolute.
36099 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36100 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36101 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36102 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36103
36104
36105   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36106 echo "$as_me: executing $ac_dest commands" >&6;}
36107   case $ac_dest in
36108     default )
36109                                                                                                 if test ! -h wx-config; then
36110                 chmod +x wx-config
36111                 mv wx-config wx${TOOLCHAIN_NAME}-config
36112                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
36113             fi
36114
36115             if test ! -d lib; then
36116               mkdir lib
36117             fi
36118             if test ! -d lib/wx; then
36119               mkdir lib/wx
36120             fi
36121             if test ! -d lib/wx/include; then
36122               mkdir lib/wx/include
36123             fi
36124             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36125               mkdir lib/wx/include/${TOOLCHAIN_NAME}
36126             fi
36127             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36128               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
36129             fi
36130             if test -f setup.h; then
36131               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
36132             fi
36133            ;;
36134   esac
36135 done
36136 _ACEOF
36137
36138 cat >>$CONFIG_STATUS <<\_ACEOF
36139
36140 { (exit 0); exit 0; }
36141 _ACEOF
36142 chmod +x $CONFIG_STATUS
36143 ac_clean_files=$ac_clean_files_save
36144
36145
36146 # configure is writing to config.log, and then calls config.status.
36147 # config.status does its own redirection, appending to config.log.
36148 # Unfortunately, on DOS this fails, as config.log is still kept open
36149 # by configure, so config.status won't be able to write to it; its
36150 # output is simply discarded.  So we exec the FD to /dev/null,
36151 # effectively closing config.log, so it can be properly (re)opened and
36152 # appended to by config.status.  When coming back to configure, we
36153 # need to make the FD available again.
36154 if test "$no_create" != yes; then
36155   ac_cs_success=:
36156   ac_config_status_args=
36157   test "$silent" = yes &&
36158     ac_config_status_args="$ac_config_status_args --quiet"
36159   exec 5>/dev/null
36160   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36161   exec 5>>config.log
36162   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36163   # would make configure fail if this is the last instruction.
36164   $ac_cs_success || { (exit 1); exit 1; }
36165 fi
36166
36167
36168 echo
36169 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36170 echo ""
36171 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
36172
36173 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
36174 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
36175 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
36176
36177 echo "  What level of wxWindows compatibility should be enabled?"
36178 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
36179 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
36180 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
36181
36182 echo "  Which libraries should wxWindows use?"
36183 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
36184 echo "                                       png                ${wxUSE_LIBPNG-none}"
36185 echo "                                       regex              ${wxUSE_REGEX}"
36186 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
36187 echo "                                       zlib               ${wxUSE_ZLIB}"
36188 echo "                                       odbc               ${wxUSE_ODBC}"
36189
36190 echo ""
36191