new dependency tracking from bakefile cvs
[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_TRACKING COND_SHARED_1_MONOLITHIC_0 COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_GUI_1 COND_WXUSE_ODBC_BUILTIN COND_TOOLKIT_X11 COND_TOOLKIT_MGL COND_TOOLKIT_GTK COND_TOOLKIT_MSW COND_TOOLKIT_MAC COND_USE_SOVERSION_1_PLATFORM_MACOSX_0 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1 COND_PLATFORM_WIN32_1 COND_SHARED_0_USE_GUI_1_MONOLITHIC_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_MACOSX_1 COND_WXUSE_LIBTIFF_BUILTIN COND_SHARED_1_USE_GUI_1_MONOLITHIC_0 COND_MONOLITHIC_0 COND_WXUSE_REGEX_BUILTIN COND_TOOLKIT_MOTIF COND_TOOLKIT_COCOA COND_TOOLKIT_OS2 COND_WXUNIV_1 COND_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_0 COND_SHARED_1_MONOLITHIC_1 COND_SHARED_0_MONOLITHIC_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSOLARIS_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_UNICODE_1 COND_PLATFORM_WIN32_0 COND_MONOLITHIC_1 COND_SHARED_0_MONOLITHIC_0 COND_BUILD_DEBUG COND_DEPS_TYPE_GCC COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 COND_DEPS_TRACKING_1 COND_DEPS_TRACKING_0 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   --disable-monolithic    don't build wxWindows as single library
870   --enable-universal      use wxWindows GUI controls instead of native ones
871   --enable-nanox          use NanoX
872   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
873   --enable-shared         create shared library code
874   --enable-soname         set the DT_SONAME field in ELF shared libraries
875   --enable-optimise       create optimised code
876   --enable-debug          same as debug_flag and debug_info
877   --enable-precomp        enable use of precompiled headers (Mac OS X/Darwin)
878   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
879   --enable-debug_info     create code with debugging information
880   --enable-debug_gdb      create code with extra GDB debugging information
881   --enable-debug_cntxt    use wxDebugContext
882   --enable-mem_tracing    create code with memory tracing
883   --enable-profile        create code with profiling information
884   --enable-no_rtti        create code without RTTI information
885   --enable-no_exceptions  create code without C++ exceptions handling
886   --enable-permissive     compile code disregarding strict ANSI
887   --enable-no_deps        create code without dependency information
888   --enable-compat20       enable wxWindows 2.0 compatibility
889   --enable-compat22       enable wxWindows 2.2 compatibility
890   --disable-compat24      disable wxWindows 2.4 compatibility
891   --enable-rpath=DIR      output the rpath flag from wx-config
892   --enable-intl           use internationalization system
893   --enable-config         use wxConfig (and derived) classes
894   --enable-protocols      use wxProtocol and derived classes
895   --enable-ftp            use wxFTP (requires wxProtocol
896   --enable-http           use wxHTTP (requires wxProtocol
897   --enable-fileproto      use wxFileProto class (requires wxProtocol
898   --enable-sockets        use socket/network classes
899   --enable-ole            use OLE classes
900   --enable-dataobj        use data object classes
901   --enable-ipc            use interprocess communication (wxSocket etc.)
902   --enable-cmdline        use wxCmdLineParser class
903   --enable-datetime       use wxDateTime class
904   --enable-stopwatch      use wxStopWatch class
905   --enable-dialupman      use dialup network classes
906   --enable-apple_ieee     use the Apple IEEE codec
907   --enable-timer          use wxTimer class
908   --enable-wave           use wxWave class
909   --enable-fraction       use wxFraction class
910   --enable-dynlib         use wxLibrary class for DLL loading
911   --enable-dynamicloader  use (new) wxDynamicLibrary class
912   --enable-longlong       use wxLongLong class
913   --enable-geometry       use geometry class
914   --enable-log            use logging system
915   --enable-streams        use wxStream etc classes
916   --enable-file           use wxFile classes
917   --enable-ffile          use wxFFile classes
918   --enable-textbuf        use wxTextBuffer class
919   --enable-textfile       use wxTextFile class
920   --enable-fontmap        use font encodings conversion classes
921   --enable-unicode        compile wxString with Unicode support
922   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)
923   --enable-wxprintfv      use wxWindows implementation of vprintf()
924   --enable-std_iostreams  use standard C++ stream classes
925   --enable-filesystem     use virtual file systems classes
926   --enable-fs_inet        use virtual HTTP/FTP filesystems
927   --enable-fs_zip         use virtual ZIP filesystems
928   --enable-zipstream      use wxZipInputStream
929   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException
930   --enable-snglinst       use wxSingleInstanceChecker class
931   --enable-mimetype       use wxMimeTypesManager
932   --enable-sysoptions     use wxSystemOptions
933   --enable-url            use wxURL class
934   --enable-protocol       use wxProtocol class
935   --enable-protocol-http  HTTP support in wxProtocol
936   --enable-protocol-ftp   FTP support in wxProtocol
937   --enable-protocol-file  FILE support in wxProtocol
938   --enable-threads        use threads
939   --enable-docview        use document view architecture
940   --enable-help           use help subsystem
941   --enable-mshtmlhelp     use MS HTML Help (win32)
942   --enable-html           use wxHTML sub-library
943   --enable-htmlhelp       use wxHTML-based help
944   --enable-constraints    use layout-constraints system
945   --enable-printarch      use printing architecture
946   --enable-mdi            use multiple document interface architecture
947   --enable-loggui         use standard GUI logger
948   --enable-logwin         use wxLogWindow
949   --enable-logdialog      use wxLogDialog
950   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
951   --enable-prologio       not available; see contrib
952   --enable-resources      not available; see contrib
953   --enable-clipboard      use wxClipboard class
954   --enable-dnd            use Drag'n'Drop classes
955   --enable-metafile       use win32 metafiles
956   --enable-controls       use all usual controls
957   --enable-accel          use accelerators
958   --enable-button         use wxButton class
959   --enable-bmpbutton      use wxBitmapButton class
960   --enable-calendar       use wxCalendarCtrl class
961   --enable-caret          use wxCaret class
962   --enable-checkbox       use wxCheckBox class
963   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
964   --enable-choice         use wxChoice class
965   --enable-combobox       use wxComboBox class
966   --enable-display        use wxDisplay class
967   --enable-gauge          use wxGauge class
968   --enable-grid           use wxGrid class
969   --enable-imaglist       use wxImageList class
970   --enable-listbox        use wxListBox class
971   --enable-listctrl       use wxListCtrl class
972   --enable-notebook       use wxNotebook class
973   --enable-radiobox       use wxRadioBox class
974   --enable-radiobtn       use wxRadioButton class
975   --enable-sash           use wxSashWindow class
976   --enable-scrollbar      use wxScrollBar class and scrollable windows
977   --enable-slider         use wxSlider class
978   --enable-spinbtn        use wxSpinButton class
979   --enable-spinctrl       use wxSpinCtrl class
980   --enable-splitter       use wxSplitterWindow class
981   --enable-statbmp        use wxStaticBitmap class
982   --enable-statbox        use wxStaticBox class
983   --enable-statline       use wxStaticLine class
984   --enable-stattext       use wxStaticText class
985   --enable-statusbar      use wxStatusBar class
986   --enable-tabdialog      use wxTabControl class
987   --enable-textctrl       use wxTextCtrl class
988   --enable-togglebtn      use wxToggleButton class
989   --enable-toolbar        use wxToolBar class
990   --enable-tbarnative     use native wxToolBar class
991   --enable-tbarsmpl       use wxToolBarSimple class
992   --enable-treectrl       use wxTreeCtrl class
993   --enable-tipwindow      use wxTipWindow class
994   --enable-popupwin       use wxPopUpWindow class
995   --enable-commondlg      use all common dialogs
996   --enable-choicedlg      use wxChoiceDialog
997   --enable-coldlg         use wxColourDialog
998   --enable-filedlg        use wxFileDialog
999   --enable-finddlg        use wxFindReplaceDialog
1000   --enable-fontdlg        use wxFontDialog
1001   --enable-dirdlg         use wxDirDialog
1002   --enable-msgdlg         use wxMessageDialog
1003   --enable-numberdlg      use wxNumberEntryDialog
1004   --enable-splash         use wxSplashScreen
1005   --enable-textdlg        use wxTextDialog
1006   --enable-tipdlg         use startup tips
1007   --enable-progressdlg    use wxProgressDialog
1008   --enable-wizarddlg      use wxWizard
1009   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1010   --enable-miniframe      use wxMiniFrame class
1011   --enable-tooltips       use wxToolTip class
1012   --enable-splines        use spline drawing code
1013   --enable-validators     use wxValidator and derived classes
1014   --enable-busyinfo       use wxBusyInfo
1015   --enable-joystick       use wxJoystick (Linux only)
1016   --enable-metafiles      use wxMetaFile (Windows only)
1017   --enable-dragimage      use wxDragImage
1018   --enable-accessibility  enable accessibility support
1019   --enable-palette        use wxPalette class
1020   --enable-image          use wxImage class
1021   --enable-gif            use gif images (GIF file format)
1022   --enable-pcx            use pcx images (PCX file format)
1023   --enable-iff            use iff images (IFF file format)
1024   --enable-pnm            use pnm images (PNM file format)
1025   --enable-xpm            use xpm images (XPM file format)
1026   --enable-icocur         use Windows ICO and CUR formats
1027   --disable-largefile     omit support for large files
1028   --disable-gtktest       do not try to compile and run a test GTK+ program
1029   --disable-gtktest       Do not try to compile and run a test GTK program
1030
1031 Optional Packages:
1032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034   --with-gtk              use GTK+
1035   --with-motif            use Motif/Lesstif
1036   --with-mac              use Mac OS X
1037   --with-cocoa            use Cocoa
1038   --with-wine             use Wine
1039   --with-msw              use MS-Windows
1040   --with-pm               use OS/2 Presentation Manager
1041   --with-mgl              use SciTech MGL
1042   --with-microwin         use MicroWindows
1043   --with-x11              use X11
1044   --with-libpng           use libpng (PNG image format)
1045   --with-libjpeg          use libjpeg (JPEG file format)
1046   --with-libtiff          use libtiff (TIFF file format)
1047   --with-opengl           use OpenGL (or Mesa)
1048   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1049   --with-regex            enable support for wxRegEx class
1050   --with-zlib             use zlib for LZW compression
1051   --with-odbc             use the IODBC and wxODBC classes
1052   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1053   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1054   --with-x                use the X Window System
1055   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1056
1057 Some influential environment variables:
1058   CC          C compiler command
1059   CFLAGS      C compiler flags
1060   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1061               nonstandard directory <lib dir>
1062   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063               headers in a nonstandard directory <include dir>
1064   CPP         C preprocessor
1065   CXX         C++ compiler command
1066   CXXFLAGS    C++ compiler flags
1067   CXXCPP      C++ preprocessor
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <wx-dev@lists.wxwindows.org>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 # absolute.
1108 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113     cd $ac_dir
1114     # Check for guested configure; otherwise get Cygnus style configure.
1115     if test -f $ac_srcdir/configure.gnu; then
1116       echo
1117       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118     elif test -f $ac_srcdir/configure; then
1119       echo
1120       $SHELL $ac_srcdir/configure  --help=recursive
1121     elif test -f $ac_srcdir/configure.ac ||
1122            test -f $ac_srcdir/configure.in; then
1123       echo
1124       $ac_configure --help
1125     else
1126       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127     fi
1128     cd $ac_popdir
1129   done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134   cat <<\_ACEOF
1135 wxWindows configure 2.5.0
1136 generated by GNU Autoconf 2.57
1137
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143   exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by wxWindows $as_me 2.5.0, which was
1151 generated by GNU Autoconf 2.57.  Invocation command line was
1152
1153   $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184   IFS=$as_save_IFS
1185   test -z "$as_dir" && as_dir=.
1186   echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213   for ac_arg
1214   do
1215     case $ac_arg in
1216     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218     | -silent | --silent | --silen | --sile | --sil)
1219       continue ;;
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     esac
1223     case $ac_pass in
1224     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225     2)
1226       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227       if test $ac_must_keep_next = true; then
1228         ac_must_keep_next=false # Got value, back to normal.
1229       else
1230         case $ac_arg in
1231           *=* | --config-cache | -C | -disable-* | --disable-* \
1232           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234           | -with-* | --with-* | -without-* | --without-* | --x)
1235             case "$ac_configure_args0 " in
1236               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237             esac
1238             ;;
1239           -* ) ac_must_keep_next=true ;;
1240         esac
1241       fi
1242       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243       # Get rid of the leading space.
1244       ac_sep=" "
1245       ;;
1246     esac
1247   done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log.  We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258   # Save into config.log some information that might help in debugging.
1259   {
1260     echo
1261
1262     cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267     echo
1268     # The following way of writing the cache mishandles newlines in values,
1269 {
1270   (set) 2>&1 |
1271     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272     *ac_space=\ *)
1273       sed -n \
1274         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276       ;;
1277     *)
1278       sed -n \
1279         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280       ;;
1281     esac;
1282 }
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290     echo
1291     for ac_var in $ac_subst_vars
1292     do
1293       eval ac_val=$`echo $ac_var`
1294       echo "$ac_var='"'"'$ac_val'"'"'"
1295     done | sort
1296     echo
1297
1298     if test -n "$ac_subst_files"; then
1299       cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304       echo
1305       for ac_var in $ac_subst_files
1306       do
1307         eval ac_val=$`echo $ac_var`
1308         echo "$ac_var='"'"'$ac_val'"'"'"
1309       done | sort
1310       echo
1311     fi
1312
1313     if test -s confdefs.h; then
1314       cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319       echo
1320       sed "/^$/d" confdefs.h | sort
1321       echo
1322     fi
1323     test "$ac_signal" != 0 &&
1324       echo "$as_me: caught signal $ac_signal"
1325     echo "$as_me: exit $exit_status"
1326   } >&5
1327   rm -f core core.* *.core &&
1328   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329     exit $exit_status
1330      ' 0
1331 for ac_signal in 1 2 13 15; do
1332   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371   if test "x$prefix" != xNONE; then
1372     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373   else
1374     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375   fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378   if test -r "$ac_site_file"; then
1379     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381     sed 's/^/| /' "$ac_site_file" >&5
1382     . "$ac_site_file"
1383   fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387   # Some versions of bash will fail to source /dev/null (special
1388   # files actually), so we avoid doing that.
1389   if test -f "$cache_file"; then
1390     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392     case $cache_file in
1393       [\\/]* | ?:[\\/]* ) . $cache_file;;
1394       *)                      . ./$cache_file;;
1395     esac
1396   fi
1397 else
1398   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400   >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409   eval ac_new_set=\$ac_env_${ac_var}_set
1410   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411   eval ac_new_val="\$ac_env_${ac_var}_value"
1412   case $ac_old_set,$ac_new_set in
1413     set,)
1414       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416       ac_cache_corrupted=: ;;
1417     ,set)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,);;
1422     *)
1423       if test "x$ac_old_val" != "x$ac_new_val"; then
1424         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427 echo "$as_me:   former value:  $ac_old_val" >&2;}
1428         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429 echo "$as_me:   current value: $ac_new_val" >&2;}
1430         ac_cache_corrupted=:
1431       fi;;
1432   esac
1433   # Pass precious variables to config.status.
1434   if test "$ac_new_set" = set; then
1435     case $ac_new_val in
1436     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438     *) ac_arg=$ac_var=$ac_new_val ;;
1439     esac
1440     case " $ac_configure_args " in
1441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443     esac
1444   fi
1445 done
1446 if $ac_cache_corrupted; then
1447   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1489 ac_aux_dir=
1490 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1491   if test -f $ac_dir/install-sh; then
1492     ac_aux_dir=$ac_dir
1493     ac_install_sh="$ac_aux_dir/install-sh -c"
1494     break
1495   elif test -f $ac_dir/install.sh; then
1496     ac_aux_dir=$ac_dir
1497     ac_install_sh="$ac_aux_dir/install.sh -c"
1498     break
1499   elif test -f $ac_dir/shtool; then
1500     ac_aux_dir=$ac_dir
1501     ac_install_sh="$ac_aux_dir/shtool install -c"
1502     break
1503   fi
1504 done
1505 if test -z "$ac_aux_dir"; then
1506   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1507 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1511 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1512 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4 >/dev/null 2>&1 ||
1516   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   ac_cv_build_alias=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527   ac_cv_build_alias=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531    { (exit 1); exit 1; }; }
1532 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 fi
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1540 build=$ac_cv_build
1541 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   ac_cv_host_alias=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553   ac_cv_host_alias=$ac_cv_build_alias
1554 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557    { (exit 1); exit 1; }; }
1558
1559 fi
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1562 host=$ac_cv_host
1563 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568 echo "$as_me:$LINENO: checking target system type" >&5
1569 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1570 if test "${ac_cv_target+set}" = set; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   ac_cv_target_alias=$target_alias
1574 test "x$ac_cv_target_alias" = "x" &&
1575   ac_cv_target_alias=$ac_cv_host_alias
1576 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1577   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1578 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1579    { (exit 1); exit 1; }; }
1580
1581 fi
1582 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1583 echo "${ECHO_T}$ac_cv_target" >&6
1584 target=$ac_cv_target
1585 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590 # The aliases save the names the user supplied, while $host etc.
1591 # will get canonicalized.
1592 test -n "$target_alias" &&
1593   test "$program_prefix$program_suffix$program_transform_name" = \
1594     NONENONEs,x,x, &&
1595   program_prefix=${target_alias}-
1596
1597
1598
1599 WX_MAJOR_VERSION_NUMBER=2
1600 WX_MINOR_VERSION_NUMBER=5
1601 WX_RELEASE_NUMBER=0
1602
1603 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1604 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1605
1606 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1607
1608 WX_CURRENT=0
1609 WX_REVISION=0
1610 WX_AGE=0
1611
1612
1613
1614 USE_UNIX=1
1615 USE_WIN32=0
1616 USE_DOS=0
1617 USE_BEOS=0
1618 USE_MAC=0
1619
1620 USE_AIX=
1621 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1622 USE_GNU=                            USE_HPUX=
1623 USE_LINUX=
1624 USE_NETBSD=
1625 USE_OPENBSD=
1626 USE_OSF=                            USE_SGI=
1627 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1628 USE_ULTRIX=
1629 USE_UNIXWARE=
1630
1631 USE_ALPHA=
1632
1633 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1634
1635 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1636
1637 DEFAULT_wxUSE_COCOA=0
1638 DEFAULT_wxUSE_GTK=0
1639 DEFAULT_wxUSE_MAC=0
1640 DEFAULT_wxUSE_MGL=0
1641 DEFAULT_wxUSE_MICROWIN=0
1642 DEFAULT_wxUSE_MOTIF=0
1643 DEFAULT_wxUSE_MSW=0
1644 DEFAULT_wxUSE_PM=0
1645 DEFAULT_wxUSE_X11=0
1646
1647 DEFAULT_DEFAULT_wxUSE_COCOA=0
1648 DEFAULT_DEFAULT_wxUSE_GTK=0
1649 DEFAULT_DEFAULT_wxUSE_MAC=0
1650 DEFAULT_DEFAULT_wxUSE_MGL=0
1651 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1652 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1653 DEFAULT_DEFAULT_wxUSE_MSW=0
1654 DEFAULT_DEFAULT_wxUSE_PM=0
1655 DEFAULT_DEFAULT_wxUSE_X11=0
1656
1657 PROGRAM_EXT=
1658 SO_SUFFIX=so
1659 SAMPLES_RPATH_FLAG=
1660
1661 case "${host}" in
1662   *-hp-hpux* )
1663     USE_HPUX=1
1664     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1665     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1666     SO_SUFFIX=sl
1667     cat >>confdefs.h <<\_ACEOF
1668 #define __HPUX__ 1
1669 _ACEOF
1670
1671   ;;
1672   *-*-linux* )
1673     USE_LINUX=1
1674     cat >>confdefs.h <<\_ACEOF
1675 #define __LINUX__ 1
1676 _ACEOF
1677
1678     TMP=`uname -m`
1679     if test "x$TMP" = "xalpha"; then
1680       USE_ALPHA=1
1681       cat >>confdefs.h <<\_ACEOF
1682 #define __ALPHA__ 1
1683 _ACEOF
1684
1685     fi
1686     DEFAULT_DEFAULT_wxUSE_GTK=1
1687   ;;
1688   *-*-gnu* )
1689     USE_GNU=1
1690     cat >>confdefs.h <<\_ACEOF
1691 #define __GNU__ 1
1692 _ACEOF
1693
1694     TMP=`uname -m`
1695     if test "x$TMP" = "xalpha"; then
1696       USE_ALPHA=1
1697       cat >>confdefs.h <<\_ACEOF
1698 #define __ALPHA__ 1
1699 _ACEOF
1700
1701     fi
1702     DEFAULT_DEFAULT_wxUSE_GTK=1
1703   ;;
1704   *-*-irix5* | *-*-irix6* )
1705     USE_SGI=1
1706     USE_SVR4=1
1707     cat >>confdefs.h <<\_ACEOF
1708 #define __SGI__ 1
1709 _ACEOF
1710
1711     cat >>confdefs.h <<\_ACEOF
1712 #define __SVR4__ 1
1713 _ACEOF
1714
1715     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1716   ;;
1717   *-*-solaris2* )
1718     USE_SUN=1
1719     USE_SOLARIS=1
1720     USE_SVR4=1
1721     cat >>confdefs.h <<\_ACEOF
1722 #define __SUN__ 1
1723 _ACEOF
1724
1725     cat >>confdefs.h <<\_ACEOF
1726 #define __SOLARIS__ 1
1727 _ACEOF
1728
1729     cat >>confdefs.h <<\_ACEOF
1730 #define __SVR4__ 1
1731 _ACEOF
1732
1733     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1734     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1735   ;;
1736   *-*-sunos4* )
1737     USE_SUN=1
1738     USE_SUNOS=1
1739     USE_BSD=1
1740     cat >>confdefs.h <<\_ACEOF
1741 #define __SUN__ 1
1742 _ACEOF
1743
1744     cat >>confdefs.h <<\_ACEOF
1745 #define __SUNOS__ 1
1746 _ACEOF
1747
1748     cat >>confdefs.h <<\_ACEOF
1749 #define __BSD__ 1
1750 _ACEOF
1751
1752     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753   ;;
1754   *-*-freebsd*)
1755     USE_BSD=1
1756     USE_FREEBSD=1
1757     cat >>confdefs.h <<\_ACEOF
1758 #define __FREEBSD__ 1
1759 _ACEOF
1760
1761     cat >>confdefs.h <<\_ACEOF
1762 #define __BSD__ 1
1763 _ACEOF
1764
1765     DEFAULT_DEFAULT_wxUSE_GTK=1
1766   ;;
1767   *-*-openbsd*)
1768     USE_BSD=1
1769     USE_OPENBSD=1
1770     cat >>confdefs.h <<\_ACEOF
1771 #define __OPENBSD__ 1
1772 _ACEOF
1773
1774     cat >>confdefs.h <<\_ACEOF
1775 #define __BSD__ 1
1776 _ACEOF
1777
1778     DEFAULT_DEFAULT_wxUSE_GTK=1
1779   ;;
1780   *-*-netbsd*)
1781     USE_BSD=1
1782     USE_NETBSD=1
1783     cat >>confdefs.h <<\_ACEOF
1784 #define __NETBSD__ 1
1785 _ACEOF
1786
1787     cat >>confdefs.h <<\_ACEOF
1788 #define __BSD__ 1
1789 _ACEOF
1790
1791     DEFAULT_DEFAULT_wxUSE_GTK=1
1792   ;;
1793   *-*-osf* )
1794     USE_ALPHA=1
1795     USE_OSF=1
1796     cat >>confdefs.h <<\_ACEOF
1797 #define __ALPHA__ 1
1798 _ACEOF
1799
1800     cat >>confdefs.h <<\_ACEOF
1801 #define __OSF__ 1
1802 _ACEOF
1803
1804     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1805     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1806   ;;
1807   *-*-dgux5* )
1808     USE_ALPHA=1
1809     USE_SVR4=1
1810     cat >>confdefs.h <<\_ACEOF
1811 #define __ALPHA__ 1
1812 _ACEOF
1813
1814     cat >>confdefs.h <<\_ACEOF
1815 #define __SVR4__ 1
1816 _ACEOF
1817
1818     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819   ;;
1820   *-*-sysv5* )
1821     USE_SYSV=1
1822     USE_SVR4=1
1823     cat >>confdefs.h <<\_ACEOF
1824 #define __SYSV__ 1
1825 _ACEOF
1826
1827     cat >>confdefs.h <<\_ACEOF
1828 #define __SVR4__ 1
1829 _ACEOF
1830
1831     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1832   ;;
1833   *-*-aix* )
1834     USE_AIX=1
1835     USE_SYSV=1
1836     USE_SVR4=1
1837                         SO_SUFFIX=a
1838     cat >>confdefs.h <<\_ACEOF
1839 #define __AIX__ 1
1840 _ACEOF
1841
1842     cat >>confdefs.h <<\_ACEOF
1843 #define __SYSV__ 1
1844 _ACEOF
1845
1846     cat >>confdefs.h <<\_ACEOF
1847 #define __SVR4__ 1
1848 _ACEOF
1849
1850     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1851   ;;
1852
1853   *-*-*UnixWare*)
1854     USE_SYSV=1
1855     USE_SVR4=1
1856     USE_UNIXWARE=1
1857     cat >>confdefs.h <<\_ACEOF
1858 #define __UNIXWARE__ 1
1859 _ACEOF
1860
1861   ;;
1862
1863   *-*-cygwin* | *-*-mingw32* )
1864                 SO_SUFFIX=dll
1865     PROGRAM_EXT=".exe"
1866     RESCOMP=windres
1867     DEFAULT_DEFAULT_wxUSE_MSW=1
1868   ;;
1869
1870   *-pc-msdosdjgpp )
1871     USE_UNIX=0
1872     USE_DOS=1
1873     cat >>confdefs.h <<\_ACEOF
1874 #define __DOS__ 1
1875 _ACEOF
1876
1877     PROGRAM_EXT=".exe"
1878     DEFAULT_DEFAULT_wxUSE_MGL=1
1879         LIBS="$LIBS -lstdc++"
1880   ;;
1881
1882   *-pc-os2_emx | *-pc-os2-emx )
1883     cat >>confdefs.h <<\_ACEOF
1884 #define __EMX__ 1
1885 _ACEOF
1886
1887     PROGRAM_EXT=".exe"
1888     DEFAULT_DEFAULT_wxUSE_PM=1
1889   ;;
1890
1891   powerpc-*-darwin* )
1892         USE_BSD=1
1893     USE_DARWIN=1
1894     SO_SUFFIX=dylib
1895     cat >>confdefs.h <<\_ACEOF
1896 #define __BSD__ 1
1897 _ACEOF
1898
1899     cat >>confdefs.h <<\_ACEOF
1900 #define __DARWIN__ 1
1901 _ACEOF
1902
1903     cat >>confdefs.h <<\_ACEOF
1904 #define __POWERPC__ 1
1905 _ACEOF
1906
1907     cat >>confdefs.h <<\_ACEOF
1908 #define TARGET_CARBON 1
1909 _ACEOF
1910
1911     DEFAULT_DEFAULT_wxUSE_MAC=1
1912   ;;
1913
1914   *-*-beos* )
1915         USE_BEOS=1
1916     cat >>confdefs.h <<\_ACEOF
1917 #define __BEOS__ 1
1918 _ACEOF
1919
1920   ;;
1921
1922   *)
1923     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1924 echo "$as_me: error: unknown system type ${host}." >&2;}
1925    { (exit 1); exit 1; }; }
1926 esac
1927
1928
1929
1930
1931           wx_arg_cache_file="configarg.cache"
1932           echo "loading argument cache $wx_arg_cache_file"
1933           rm -f ${wx_arg_cache_file}.tmp
1934           touch ${wx_arg_cache_file}.tmp
1935           touch ${wx_arg_cache_file}
1936
1937
1938 DEBUG_CONFIGURE=0
1939 if test $DEBUG_CONFIGURE = 1; then
1940   DEFAULT_wxUSE_UNIVERSAL=no
1941
1942   DEFAULT_wxUSE_NANOX=no
1943
1944   DEFAULT_wxUSE_THREADS=yes
1945
1946   DEFAULT_wxUSE_SHARED=yes
1947   DEFAULT_wxUSE_SONAME=no
1948   DEFAULT_wxUSE_OPTIMISE=no
1949   DEFAULT_wxUSE_PROFILE=no
1950   DEFAULT_wxUSE_NO_DEPS=no
1951   DEFAULT_wxUSE_NO_RTTI=no
1952   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1953   DEFAULT_wxUSE_PERMISSIVE=no
1954   DEFAULT_wxUSE_DEBUG_FLAG=yes
1955   DEFAULT_wxUSE_DEBUG_INFO=yes
1956   DEFAULT_wxUSE_DEBUG_GDB=yes
1957   DEFAULT_wxUSE_MEM_TRACING=no
1958   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1959   DEFAULT_wxUSE_DMALLOC=no
1960   DEFAULT_wxUSE_PRECOMP=no
1961   DEFAULT_wxUSE_APPLE_IEEE=no
1962
1963   DEFAULT_wxUSE_LOG=yes
1964   DEFAULT_wxUSE_LOGWINDOW=no
1965   DEFAULT_wxUSE_LOGGUI=no
1966   DEFAULT_wxUSE_LOGDIALOG=no
1967
1968   DEFAULT_wxUSE_GUI=yes
1969   DEFAULT_wxUSE_CONTROLS=no
1970
1971   DEFAULT_wxUSE_REGEX=no
1972   DEFAULT_wxUSE_ZLIB=no
1973   DEFAULT_wxUSE_LIBPNG=no
1974   DEFAULT_wxUSE_LIBJPEG=no
1975   DEFAULT_wxUSE_LIBTIFF=no
1976   DEFAULT_wxUSE_ODBC=no
1977   DEFAULT_wxUSE_OPENGL=no
1978
1979   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1980   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1981   DEFAULT_wxUSE_STD_IOSTREAM=no
1982   DEFAULT_wxUSE_CMDLINE_PARSER=no
1983   DEFAULT_wxUSE_DATETIME=no
1984   DEFAULT_wxUSE_TIMER=no
1985   DEFAULT_wxUSE_STOPWATCH=no
1986   DEFAULT_wxUSE_FILE=no
1987   DEFAULT_wxUSE_FFILE=no
1988   DEFAULT_wxUSE_TEXTBUFFER=no
1989   DEFAULT_wxUSE_TEXTFILE=no
1990   DEFAULT_wxUSE_WAVE=no
1991   DEFAULT_wxUSE_INTL=no
1992   DEFAULT_wxUSE_CONFIG=no
1993   DEFAULT_wxUSE_FONTMAP=no
1994   DEFAULT_wxUSE_STREAMS=no
1995   DEFAULT_wxUSE_SOCKETS=no
1996   DEFAULT_wxUSE_OLE=no
1997   DEFAULT_wxUSE_DATAOBJ=no
1998   DEFAULT_wxUSE_DIALUP_MANAGER=no
1999   DEFAULT_wxUSE_JOYSTICK=no
2000   DEFAULT_wxUSE_DYNLIB_CLASS=no
2001   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2002   DEFAULT_wxUSE_LONGLONG=no
2003   DEFAULT_wxUSE_GEOMETRY=no
2004
2005   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2006   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2007   DEFAULT_wxUSE_POSTSCRIPT=no
2008
2009   DEFAULT_wxUSE_CLIPBOARD=no
2010   DEFAULT_wxUSE_TOOLTIPS=no
2011   DEFAULT_wxUSE_DRAG_AND_DROP=no
2012   DEFAULT_wxUSE_DRAGIMAGE=no
2013   DEFAULT_wxUSE_SPLINES=no
2014
2015   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2016   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2017   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2018
2019   DEFAULT_wxUSE_RESOURCES=no
2020   DEFAULT_wxUSE_CONSTRAINTS=no
2021   DEFAULT_wxUSE_IPC=no
2022   DEFAULT_wxUSE_HELP=no
2023   DEFAULT_wxUSE_MS_HTML_HELP=no
2024   DEFAULT_wxUSE_WXHTML_HELP=no
2025   DEFAULT_wxUSE_TREELAYOUT=no
2026   DEFAULT_wxUSE_METAFILE=no
2027   DEFAULT_wxUSE_MIMETYPE=no
2028   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2029   DEFAULT_wxUSE_PROTOCOL=no
2030   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2031   DEFAULT_wxUSE_PROTOCOL_FTP=no
2032   DEFAULT_wxUSE_PROTOCOL_FILE=no
2033   DEFAULT_wxUSE_URL=no
2034
2035   DEFAULT_wxUSE_COMMONDLGS=no
2036   DEFAULT_wxUSE_CHOICEDLG=no
2037   DEFAULT_wxUSE_COLOURDLG=no
2038   DEFAULT_wxUSE_DIRDLG=no
2039   DEFAULT_wxUSE_FILEDLG=no
2040   DEFAULT_wxUSE_FINDREPLDLG=no
2041   DEFAULT_wxUSE_FONTDLG=no
2042   DEFAULT_wxUSE_MSGDLG=no
2043   DEFAULT_wxUSE_NUMBERDLG=no
2044   DEFAULT_wxUSE_TEXTDLG=no
2045   DEFAULT_wxUSE_SPLASH=no
2046   DEFAULT_wxUSE_STARTUP_TIPS=no
2047   DEFAULT_wxUSE_PROGRESSDLG=no
2048   DEFAULT_wxUSE_WIZARDDLG=no
2049
2050   DEFAULT_wxUSE_MENUS=no
2051   DEFAULT_wxUSE_MINIFRAME=no
2052   DEFAULT_wxUSE_HTML=no
2053   DEFAULT_wxUSE_FILESYSTEM=no
2054   DEFAULT_wxUSE_FS_INET=no
2055   DEFAULT_wxUSE_FS_ZIP=no
2056   DEFAULT_wxUSE_BUSYINFO=no
2057   DEFAULT_wxUSE_ZIPSTREAM=no
2058   DEFAULT_wxUSE_VALIDATORS=no
2059
2060   DEFAULT_wxUSE_ACCEL=no
2061   DEFAULT_wxUSE_BUTTON=no
2062   DEFAULT_wxUSE_BMPBUTTON=no
2063   DEFAULT_wxUSE_CALCTRL=no
2064   DEFAULT_wxUSE_CARET=no
2065   DEFAULT_wxUSE_CHECKBOX=no
2066   DEFAULT_wxUSE_CHECKLST=no
2067   DEFAULT_wxUSE_CHOICE=no
2068   DEFAULT_wxUSE_COMBOBOX=no
2069   DEFAULT_wxUSE_DISPLAY=no
2070   DEFAULT_wxUSE_GAUGE=no
2071   DEFAULT_wxUSE_GRID=no
2072   DEFAULT_wxUSE_IMAGLIST=no
2073   DEFAULT_wxUSE_LISTBOX=no
2074   DEFAULT_wxUSE_LISTCTRL=no
2075   DEFAULT_wxUSE_NOTEBOOK=no
2076   DEFAULT_wxUSE_RADIOBOX=no
2077   DEFAULT_wxUSE_RADIOBTN=no
2078   DEFAULT_wxUSE_SASH=no
2079   DEFAULT_wxUSE_SCROLLBAR=no
2080   DEFAULT_wxUSE_SLIDER=no
2081   DEFAULT_wxUSE_SPINBTN=no
2082   DEFAULT_wxUSE_SPINCTRL=no
2083   DEFAULT_wxUSE_SPLITTER=no
2084   DEFAULT_wxUSE_STATBMP=no
2085   DEFAULT_wxUSE_STATBOX=no
2086   DEFAULT_wxUSE_STATLINE=no
2087   DEFAULT_wxUSE_STATTEXT=no
2088   DEFAULT_wxUSE_STATUSBAR=yes
2089   DEFAULT_wxUSE_TABDIALOG=no
2090   DEFAULT_wxUSE_TEXTCTRL=no
2091   DEFAULT_wxUSE_TOGGLEBTN=no
2092   DEFAULT_wxUSE_TOOLBAR=no
2093   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2094   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2095   DEFAULT_wxUSE_TREECTRL=no
2096   DEFAULT_wxUSE_POPUPWIN=no
2097   DEFAULT_wxUSE_TIPWINDOW=no
2098
2099   DEFAULT_wxUSE_UNICODE=no
2100   DEFAULT_wxUSE_UNICODE_MSLU=no
2101   DEFAULT_wxUSE_WCSRTOMBS=no
2102
2103   DEFAULT_wxUSE_PALETTE=no
2104   DEFAULT_wxUSE_IMAGE=no
2105   DEFAULT_wxUSE_GIF=no
2106   DEFAULT_wxUSE_PCX=no
2107   DEFAULT_wxUSE_PNM=no
2108   DEFAULT_wxUSE_IFF=no
2109   DEFAULT_wxUSE_XPM=no
2110   DEFAULT_wxUSE_ICO_CUR=no
2111   DEFAULT_wxUSE_ACCESSIBILITY=no
2112
2113   DEFAULT_wxUSE_MONOLITHIC=yes
2114 else
2115   DEFAULT_wxUSE_UNIVERSAL=no
2116
2117   DEFAULT_wxUSE_NANOX=no
2118
2119   DEFAULT_wxUSE_THREADS=yes
2120
2121   DEFAULT_wxUSE_SHARED=yes
2122   DEFAULT_wxUSE_SONAME=no
2123   DEFAULT_wxUSE_OPTIMISE=yes
2124   DEFAULT_wxUSE_PROFILE=no
2125   DEFAULT_wxUSE_NO_DEPS=no
2126   DEFAULT_wxUSE_NO_RTTI=no
2127   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2128   DEFAULT_wxUSE_PERMISSIVE=no
2129   DEFAULT_wxUSE_DEBUG_FLAG=no
2130   DEFAULT_wxUSE_DEBUG_INFO=no
2131   DEFAULT_wxUSE_DEBUG_GDB=no
2132   DEFAULT_wxUSE_MEM_TRACING=no
2133   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2134   DEFAULT_wxUSE_DMALLOC=no
2135   DEFAULT_wxUSE_PRECOMP=no
2136   DEFAULT_wxUSE_APPLE_IEEE=yes
2137
2138   DEFAULT_wxUSE_LOG=yes
2139   DEFAULT_wxUSE_LOGWINDOW=yes
2140   DEFAULT_wxUSE_LOGGUI=yes
2141   DEFAULT_wxUSE_LOGDIALOG=yes
2142
2143   DEFAULT_wxUSE_GUI=yes
2144
2145   DEFAULT_wxUSE_REGEX=yes
2146   DEFAULT_wxUSE_ZLIB=yes
2147   DEFAULT_wxUSE_LIBPNG=yes
2148   DEFAULT_wxUSE_LIBJPEG=yes
2149   DEFAULT_wxUSE_LIBTIFF=yes
2150   DEFAULT_wxUSE_ODBC=no
2151   DEFAULT_wxUSE_OPENGL=no
2152
2153   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2154   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2155   DEFAULT_wxUSE_STD_IOSTREAM=no
2156   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2157   DEFAULT_wxUSE_DATETIME=yes
2158   DEFAULT_wxUSE_TIMER=yes
2159   DEFAULT_wxUSE_STOPWATCH=yes
2160   DEFAULT_wxUSE_FILE=yes
2161   DEFAULT_wxUSE_FFILE=yes
2162   DEFAULT_wxUSE_TEXTBUFFER=yes
2163   DEFAULT_wxUSE_TEXTFILE=yes
2164   DEFAULT_wxUSE_WAVE=no
2165   DEFAULT_wxUSE_INTL=yes
2166   DEFAULT_wxUSE_CONFIG=yes
2167   DEFAULT_wxUSE_FONTMAP=yes
2168   DEFAULT_wxUSE_STREAMS=yes
2169   DEFAULT_wxUSE_SOCKETS=yes
2170   DEFAULT_wxUSE_OLE=yes
2171   DEFAULT_wxUSE_DATAOBJ=yes
2172   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2173   DEFAULT_wxUSE_JOYSTICK=yes
2174   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2175   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2176   DEFAULT_wxUSE_LONGLONG=yes
2177   DEFAULT_wxUSE_GEOMETRY=yes
2178
2179   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2180   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2181   DEFAULT_wxUSE_POSTSCRIPT=yes
2182
2183   DEFAULT_wxUSE_CLIPBOARD=yes
2184   DEFAULT_wxUSE_TOOLTIPS=yes
2185   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2186   DEFAULT_wxUSE_DRAGIMAGE=yes
2187   DEFAULT_wxUSE_SPLINES=yes
2188
2189   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2190   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2191   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2192
2193   DEFAULT_wxUSE_RESOURCES=no
2194   DEFAULT_wxUSE_CONSTRAINTS=yes
2195   DEFAULT_wxUSE_IPC=yes
2196   DEFAULT_wxUSE_HELP=yes
2197   DEFAULT_wxUSE_MS_HTML_HELP=yes
2198   DEFAULT_wxUSE_WXHTML_HELP=yes
2199   DEFAULT_wxUSE_TREELAYOUT=yes
2200   DEFAULT_wxUSE_METAFILE=yes
2201   DEFAULT_wxUSE_MIMETYPE=yes
2202   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2203   DEFAULT_wxUSE_PROTOCOL=yes
2204   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2205   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2206   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2207   DEFAULT_wxUSE_URL=yes
2208
2209   DEFAULT_wxUSE_COMMONDLGS=yes
2210   DEFAULT_wxUSE_CHOICEDLG=yes
2211   DEFAULT_wxUSE_COLOURDLG=yes
2212   DEFAULT_wxUSE_DIRDLG=yes
2213   DEFAULT_wxUSE_FILEDLG=yes
2214   DEFAULT_wxUSE_FINDREPLDLG=yes
2215   DEFAULT_wxUSE_FONTDLG=yes
2216   DEFAULT_wxUSE_MSGDLG=yes
2217   DEFAULT_wxUSE_NUMBERDLG=yes
2218   DEFAULT_wxUSE_TEXTDLG=yes
2219   DEFAULT_wxUSE_SPLASH=yes
2220   DEFAULT_wxUSE_STARTUP_TIPS=yes
2221   DEFAULT_wxUSE_PROGRESSDLG=yes
2222   DEFAULT_wxUSE_WIZARDDLG=yes
2223
2224   DEFAULT_wxUSE_MENUS=yes
2225   DEFAULT_wxUSE_MINIFRAME=yes
2226   DEFAULT_wxUSE_HTML=yes
2227   DEFAULT_wxUSE_FILESYSTEM=yes
2228   DEFAULT_wxUSE_FS_INET=yes
2229   DEFAULT_wxUSE_FS_ZIP=yes
2230   DEFAULT_wxUSE_BUSYINFO=yes
2231   DEFAULT_wxUSE_ZIPSTREAM=yes
2232   DEFAULT_wxUSE_VALIDATORS=yes
2233
2234   DEFAULT_wxUSE_ACCEL=yes
2235   DEFAULT_wxUSE_BUTTON=yes
2236   DEFAULT_wxUSE_BMPBUTTON=yes
2237   DEFAULT_wxUSE_CALCTRL=yes
2238   DEFAULT_wxUSE_CARET=yes
2239   DEFAULT_wxUSE_CHECKBOX=yes
2240   DEFAULT_wxUSE_CHECKLST=yes
2241   DEFAULT_wxUSE_CHOICE=yes
2242   DEFAULT_wxUSE_COMBOBOX=yes
2243   DEFAULT_wxUSE_DISPLAY=no
2244   DEFAULT_wxUSE_GAUGE=yes
2245   DEFAULT_wxUSE_GRID=yes
2246   DEFAULT_wxUSE_IMAGLIST=yes
2247   DEFAULT_wxUSE_LISTBOX=yes
2248   DEFAULT_wxUSE_LISTCTRL=yes
2249   DEFAULT_wxUSE_NOTEBOOK=yes
2250   DEFAULT_wxUSE_RADIOBOX=yes
2251   DEFAULT_wxUSE_RADIOBTN=yes
2252   DEFAULT_wxUSE_SASH=yes
2253   DEFAULT_wxUSE_SCROLLBAR=yes
2254   DEFAULT_wxUSE_SLIDER=yes
2255   DEFAULT_wxUSE_SPINBTN=yes
2256   DEFAULT_wxUSE_SPINCTRL=yes
2257   DEFAULT_wxUSE_SPLITTER=yes
2258   DEFAULT_wxUSE_STATBMP=yes
2259   DEFAULT_wxUSE_STATBOX=yes
2260   DEFAULT_wxUSE_STATLINE=yes
2261   DEFAULT_wxUSE_STATTEXT=yes
2262   DEFAULT_wxUSE_STATUSBAR=yes
2263   DEFAULT_wxUSE_TABDIALOG=no
2264   DEFAULT_wxUSE_TEXTCTRL=yes
2265   DEFAULT_wxUSE_TOGGLEBTN=yes
2266   DEFAULT_wxUSE_TOOLBAR=yes
2267   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2268   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2269   DEFAULT_wxUSE_TREECTRL=yes
2270   DEFAULT_wxUSE_POPUPWIN=yes
2271   DEFAULT_wxUSE_TIPWINDOW=yes
2272
2273   DEFAULT_wxUSE_UNICODE=no
2274   DEFAULT_wxUSE_UNICODE_MSLU=yes
2275   DEFAULT_wxUSE_WCSRTOMBS=no
2276
2277   DEFAULT_wxUSE_PALETTE=yes
2278   DEFAULT_wxUSE_IMAGE=yes
2279   DEFAULT_wxUSE_GIF=yes
2280   DEFAULT_wxUSE_PCX=yes
2281   DEFAULT_wxUSE_IFF=no
2282   DEFAULT_wxUSE_PNM=yes
2283   DEFAULT_wxUSE_XPM=yes
2284   DEFAULT_wxUSE_ICO_CUR=yes
2285   DEFAULT_wxUSE_ACCESSIBILITY=no
2286
2287   DEFAULT_wxUSE_MONOLITHIC=yes
2288 fi
2289
2290
2291
2292 for toolkit in `echo $ALL_TOOLKITS`; do
2293   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2294   if test "x$LINE" != "x" ; then
2295     has_toolkit_in_cache=1
2296     eval "DEFAULT_$LINE"
2297     eval "CACHE_$toolkit=1"
2298   fi
2299 done
2300
2301
2302
2303           enablestring=
2304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2305 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2306           no_cache=0
2307           # Check whether --enable-gui or --disable-gui was given.
2308 if test "${enable_gui+set}" = set; then
2309   enableval="$enable_gui"
2310
2311                           if test "$enableval" = yes; then
2312                             ac_cv_use_gui='wxUSE_GUI=yes'
2313                           else
2314                             ac_cv_use_gui='wxUSE_GUI=no'
2315                           fi
2316
2317 else
2318
2319                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2320                           if test "x$LINE" != x ; then
2321                             eval "DEFAULT_$LINE"
2322                           else
2323                             no_cache=1
2324                           fi
2325
2326                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2327
2328 fi;
2329
2330           eval "$ac_cv_use_gui"
2331           if test "$no_cache" != 1; then
2332             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2333           fi
2334
2335           if test "$wxUSE_GUI" = yes; then
2336             echo "$as_me:$LINENO: result: yes" >&5
2337 echo "${ECHO_T}yes" >&6
2338           else
2339             echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341           fi
2342
2343
2344           enablestring=
2345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2346 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2347           no_cache=0
2348           # Check whether --enable-monolithic or --disable-monolithic was given.
2349 if test "${enable_monolithic+set}" = set; then
2350   enableval="$enable_monolithic"
2351
2352                           if test "$enableval" = yes; then
2353                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2354                           else
2355                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2356                           fi
2357
2358 else
2359
2360                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2361                           if test "x$LINE" != x ; then
2362                             eval "DEFAULT_$LINE"
2363                           else
2364                             no_cache=1
2365                           fi
2366
2367                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2368
2369 fi;
2370
2371           eval "$ac_cv_use_monolithic"
2372           if test "$no_cache" != 1; then
2373             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2374           fi
2375
2376           if test "$wxUSE_MONOLITHIC" = yes; then
2377             echo "$as_me:$LINENO: result: yes" >&5
2378 echo "${ECHO_T}yes" >&6
2379           else
2380             echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2382           fi
2383
2384
2385 if test "$wxUSE_GUI" = "yes"; then
2386
2387
2388           enablestring=
2389           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2390 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2391           no_cache=0
2392           # Check whether --enable-universal or --disable-universal was given.
2393 if test "${enable_universal+set}" = set; then
2394   enableval="$enable_universal"
2395
2396                           if test "$enableval" = yes; then
2397                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2398                           else
2399                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2400                           fi
2401
2402 else
2403
2404                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2405                           if test "x$LINE" != x ; then
2406                             eval "DEFAULT_$LINE"
2407                           else
2408                             no_cache=1
2409                           fi
2410
2411                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2412
2413 fi;
2414
2415           eval "$ac_cv_use_universal"
2416           if test "$no_cache" != 1; then
2417             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2418           fi
2419
2420           if test "$wxUSE_UNIVERSAL" = yes; then
2421             echo "$as_me:$LINENO: result: yes" >&5
2422 echo "${ECHO_T}yes" >&6
2423           else
2424             echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2426           fi
2427
2428
2429 # Check whether --with-gtk or --without-gtk was given.
2430 if test "${with_gtk+set}" = set; then
2431   withval="$with_gtk"
2432   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2433 fi;
2434
2435 # Check whether --with-motif or --without-motif was given.
2436 if test "${with_motif+set}" = set; then
2437   withval="$with_motif"
2438   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2439 fi;
2440
2441 # Check whether --with-mac or --without-mac was given.
2442 if test "${with_mac+set}" = set; then
2443   withval="$with_mac"
2444   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2445 fi;
2446
2447 # Check whether --with-cocoa or --without-cocoa was given.
2448 if test "${with_cocoa+set}" = set; then
2449   withval="$with_cocoa"
2450   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2451 fi;
2452
2453 # Check whether --with-wine or --without-wine was given.
2454 if test "${with_wine+set}" = set; then
2455   withval="$with_wine"
2456   wxUSE_WINE="$withval" CACHE_WINE=1
2457 fi;
2458
2459 # Check whether --with-msw or --without-msw was given.
2460 if test "${with_msw+set}" = set; then
2461   withval="$with_msw"
2462   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2463 fi;
2464
2465 # Check whether --with-pm or --without-pm was given.
2466 if test "${with_pm+set}" = set; then
2467   withval="$with_pm"
2468   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2469 fi;
2470
2471 # Check whether --with-mgl or --without-mgl was given.
2472 if test "${with_mgl+set}" = set; then
2473   withval="$with_mgl"
2474   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2475 fi;
2476
2477 # Check whether --with-microwin or --without-microwin was given.
2478 if test "${with_microwin+set}" = set; then
2479   withval="$with_microwin"
2480   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2481 fi;
2482
2483 # Check whether --with-x11 or --without-x11 was given.
2484 if test "${with_x11+set}" = set; then
2485   withval="$with_x11"
2486   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2487 fi;
2488
2489           enablestring=
2490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2491 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2492           no_cache=0
2493           # Check whether --enable-nanox or --disable-nanox was given.
2494 if test "${enable_nanox+set}" = set; then
2495   enableval="$enable_nanox"
2496
2497                           if test "$enableval" = yes; then
2498                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2499                           else
2500                             ac_cv_use_nanox='wxUSE_NANOX=no'
2501                           fi
2502
2503 else
2504
2505                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2506                           if test "x$LINE" != x ; then
2507                             eval "DEFAULT_$LINE"
2508                           else
2509                             no_cache=1
2510                           fi
2511
2512                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2513
2514 fi;
2515
2516           eval "$ac_cv_use_nanox"
2517           if test "$no_cache" != 1; then
2518             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2519           fi
2520
2521           if test "$wxUSE_NANOX" = yes; then
2522             echo "$as_me:$LINENO: result: yes" >&5
2523 echo "${ECHO_T}yes" >&6
2524           else
2525             echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527           fi
2528
2529
2530
2531           enablestring=
2532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2533 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2534           no_cache=0
2535           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2536 if test "${enable_gtk2+set}" = set; then
2537   enableval="$enable_gtk2"
2538
2539                           if test "$enableval" = yes; then
2540                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2541                           else
2542                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2543                           fi
2544
2545 else
2546
2547                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2548                           if test "x$LINE" != x ; then
2549                             eval "DEFAULT_$LINE"
2550                           else
2551                             no_cache=1
2552                           fi
2553
2554                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2555
2556 fi;
2557
2558           eval "$ac_cv_use_gtk2"
2559           if test "$no_cache" != 1; then
2560             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2561           fi
2562
2563           if test "$wxUSE_GTK2" = yes; then
2564             echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6
2566           else
2567             echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2569           fi
2570
2571
2572
2573           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2574 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2575           no_cache=0
2576
2577 # Check whether --with-libpng or --without-libpng was given.
2578 if test "${with_libpng+set}" = set; then
2579   withval="$with_libpng"
2580
2581                         if test "$withval" = yes; then
2582                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2583                         elif test "$withval" = no; then
2584                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2585                         elif test "$withval" = sys; then
2586                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2587                         elif test "$withval" = builtin; then
2588                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2589                         else
2590                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2591 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2592    { (exit 1); exit 1; }; }
2593                         fi
2594
2595 else
2596
2597                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2598                         if test "x$LINE" != x ; then
2599                           eval "DEFAULT_$LINE"
2600                         else
2601                           no_cache=1
2602                         fi
2603
2604                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2605
2606 fi;
2607
2608           eval "$ac_cv_use_libpng"
2609           if test "$no_cache" != 1; then
2610             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2611           fi
2612
2613           if test "$wxUSE_LIBPNG" = yes; then
2614             echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616           elif test "$wxUSE_LIBPNG" = no; then
2617             echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619           elif test "$wxUSE_LIBPNG" = sys; then
2620             echo "$as_me:$LINENO: result: system version" >&5
2621 echo "${ECHO_T}system version" >&6
2622           elif test "$wxUSE_LIBPNG" = builtin; then
2623             echo "$as_me:$LINENO: result: builtin version" >&5
2624 echo "${ECHO_T}builtin version" >&6
2625           else
2626             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2627 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2628    { (exit 1); exit 1; }; }
2629           fi
2630
2631
2632           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2633 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2634           no_cache=0
2635
2636 # Check whether --with-libjpeg or --without-libjpeg was given.
2637 if test "${with_libjpeg+set}" = set; then
2638   withval="$with_libjpeg"
2639
2640                         if test "$withval" = yes; then
2641                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2642                         elif test "$withval" = no; then
2643                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2644                         elif test "$withval" = sys; then
2645                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2646                         elif test "$withval" = builtin; then
2647                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2648                         else
2649                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2650 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2651    { (exit 1); exit 1; }; }
2652                         fi
2653
2654 else
2655
2656                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2657                         if test "x$LINE" != x ; then
2658                           eval "DEFAULT_$LINE"
2659                         else
2660                           no_cache=1
2661                         fi
2662
2663                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2664
2665 fi;
2666
2667           eval "$ac_cv_use_libjpeg"
2668           if test "$no_cache" != 1; then
2669             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2670           fi
2671
2672           if test "$wxUSE_LIBJPEG" = yes; then
2673             echo "$as_me:$LINENO: result: yes" >&5
2674 echo "${ECHO_T}yes" >&6
2675           elif test "$wxUSE_LIBJPEG" = no; then
2676             echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2678           elif test "$wxUSE_LIBJPEG" = sys; then
2679             echo "$as_me:$LINENO: result: system version" >&5
2680 echo "${ECHO_T}system version" >&6
2681           elif test "$wxUSE_LIBJPEG" = builtin; then
2682             echo "$as_me:$LINENO: result: builtin version" >&5
2683 echo "${ECHO_T}builtin version" >&6
2684           else
2685             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2686 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2687    { (exit 1); exit 1; }; }
2688           fi
2689
2690
2691           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2692 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2693           no_cache=0
2694
2695 # Check whether --with-libtiff or --without-libtiff was given.
2696 if test "${with_libtiff+set}" = set; then
2697   withval="$with_libtiff"
2698
2699                         if test "$withval" = yes; then
2700                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2701                         elif test "$withval" = no; then
2702                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2703                         elif test "$withval" = sys; then
2704                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2705                         elif test "$withval" = builtin; then
2706                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2707                         else
2708                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2709 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2710    { (exit 1); exit 1; }; }
2711                         fi
2712
2713 else
2714
2715                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2716                         if test "x$LINE" != x ; then
2717                           eval "DEFAULT_$LINE"
2718                         else
2719                           no_cache=1
2720                         fi
2721
2722                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2723
2724 fi;
2725
2726           eval "$ac_cv_use_libtiff"
2727           if test "$no_cache" != 1; then
2728             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2729           fi
2730
2731           if test "$wxUSE_LIBTIFF" = yes; then
2732             echo "$as_me:$LINENO: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2734           elif test "$wxUSE_LIBTIFF" = no; then
2735             echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737           elif test "$wxUSE_LIBTIFF" = sys; then
2738             echo "$as_me:$LINENO: result: system version" >&5
2739 echo "${ECHO_T}system version" >&6
2740           elif test "$wxUSE_LIBTIFF" = builtin; then
2741             echo "$as_me:$LINENO: result: builtin version" >&5
2742 echo "${ECHO_T}builtin version" >&6
2743           else
2744             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2745 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2746    { (exit 1); exit 1; }; }
2747           fi
2748
2749
2750           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2751 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2752           no_cache=0
2753
2754 # Check whether --with-opengl or --without-opengl was given.
2755 if test "${with_opengl+set}" = set; then
2756   withval="$with_opengl"
2757
2758                         if test "$withval" = yes; then
2759                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2760                         else
2761                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2762                         fi
2763
2764 else
2765
2766                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2767                         if test "x$LINE" != x ; then
2768                           eval "DEFAULT_$LINE"
2769                         else
2770                           no_cache=1
2771                         fi
2772
2773                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2774
2775 fi;
2776
2777           eval "$ac_cv_use_opengl"
2778           if test "$no_cache" != 1; then
2779             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2780           fi
2781
2782           if test "$wxUSE_OPENGL" = yes; then
2783             echo "$as_me:$LINENO: result: yes" >&5
2784 echo "${ECHO_T}yes" >&6
2785           else
2786             echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2788           fi
2789
2790
2791 fi
2792
2793
2794           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2795 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2796           no_cache=0
2797
2798 # Check whether --with-dmalloc or --without-dmalloc was given.
2799 if test "${with_dmalloc+set}" = set; then
2800   withval="$with_dmalloc"
2801
2802                         if test "$withval" = yes; then
2803                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2804                         else
2805                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2806                         fi
2807
2808 else
2809
2810                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2811                         if test "x$LINE" != x ; then
2812                           eval "DEFAULT_$LINE"
2813                         else
2814                           no_cache=1
2815                         fi
2816
2817                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2818
2819 fi;
2820
2821           eval "$ac_cv_use_dmalloc"
2822           if test "$no_cache" != 1; then
2823             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2824           fi
2825
2826           if test "$wxUSE_DMALLOC" = yes; then
2827             echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6
2829           else
2830             echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832           fi
2833
2834
2835           echo "$as_me:$LINENO: checking for --with-regex" >&5
2836 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
2837           no_cache=0
2838
2839 # Check whether --with-regex or --without-regex was given.
2840 if test "${with_regex+set}" = set; then
2841   withval="$with_regex"
2842
2843                         if test "$withval" = yes; then
2844                           ac_cv_use_regex='wxUSE_REGEX=yes'
2845                         elif test "$withval" = no; then
2846                           ac_cv_use_regex='wxUSE_REGEX=no'
2847                         elif test "$withval" = sys; then
2848                           ac_cv_use_regex='wxUSE_REGEX=sys'
2849                         elif test "$withval" = builtin; then
2850                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2851                         else
2852                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2853 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2854    { (exit 1); exit 1; }; }
2855                         fi
2856
2857 else
2858
2859                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2860                         if test "x$LINE" != x ; then
2861                           eval "DEFAULT_$LINE"
2862                         else
2863                           no_cache=1
2864                         fi
2865
2866                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2867
2868 fi;
2869
2870           eval "$ac_cv_use_regex"
2871           if test "$no_cache" != 1; then
2872             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2873           fi
2874
2875           if test "$wxUSE_REGEX" = yes; then
2876             echo "$as_me:$LINENO: result: yes" >&5
2877 echo "${ECHO_T}yes" >&6
2878           elif test "$wxUSE_REGEX" = no; then
2879             echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2881           elif test "$wxUSE_REGEX" = sys; then
2882             echo "$as_me:$LINENO: result: system version" >&5
2883 echo "${ECHO_T}system version" >&6
2884           elif test "$wxUSE_REGEX" = builtin; then
2885             echo "$as_me:$LINENO: result: builtin version" >&5
2886 echo "${ECHO_T}builtin version" >&6
2887           else
2888             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2889 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2890    { (exit 1); exit 1; }; }
2891           fi
2892
2893
2894           echo "$as_me:$LINENO: checking for --with-zlib" >&5
2895 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
2896           no_cache=0
2897
2898 # Check whether --with-zlib or --without-zlib was given.
2899 if test "${with_zlib+set}" = set; then
2900   withval="$with_zlib"
2901
2902                         if test "$withval" = yes; then
2903                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2904                         elif test "$withval" = no; then
2905                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2906                         elif test "$withval" = sys; then
2907                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2908                         elif test "$withval" = builtin; then
2909                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2910                         else
2911                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2912 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2913    { (exit 1); exit 1; }; }
2914                         fi
2915
2916 else
2917
2918                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2919                         if test "x$LINE" != x ; then
2920                           eval "DEFAULT_$LINE"
2921                         else
2922                           no_cache=1
2923                         fi
2924
2925                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2926
2927 fi;
2928
2929           eval "$ac_cv_use_zlib"
2930           if test "$no_cache" != 1; then
2931             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2932           fi
2933
2934           if test "$wxUSE_ZLIB" = yes; then
2935             echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6
2937           elif test "$wxUSE_ZLIB" = no; then
2938             echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6
2940           elif test "$wxUSE_ZLIB" = sys; then
2941             echo "$as_me:$LINENO: result: system version" >&5
2942 echo "${ECHO_T}system version" >&6
2943           elif test "$wxUSE_ZLIB" = builtin; then
2944             echo "$as_me:$LINENO: result: builtin version" >&5
2945 echo "${ECHO_T}builtin version" >&6
2946           else
2947             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2948 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2949    { (exit 1); exit 1; }; }
2950           fi
2951
2952
2953           echo "$as_me:$LINENO: checking for --with-odbc" >&5
2954 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
2955           no_cache=0
2956
2957 # Check whether --with-odbc or --without-odbc was given.
2958 if test "${with_odbc+set}" = set; then
2959   withval="$with_odbc"
2960
2961                         if test "$withval" = yes; then
2962                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2963                         elif test "$withval" = no; then
2964                           ac_cv_use_odbc='wxUSE_ODBC=no'
2965                         elif test "$withval" = sys; then
2966                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2967                         elif test "$withval" = builtin; then
2968                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2969                         else
2970                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2971 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2972    { (exit 1); exit 1; }; }
2973                         fi
2974
2975 else
2976
2977                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2978                         if test "x$LINE" != x ; then
2979                           eval "DEFAULT_$LINE"
2980                         else
2981                           no_cache=1
2982                         fi
2983
2984                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2985
2986 fi;
2987
2988           eval "$ac_cv_use_odbc"
2989           if test "$no_cache" != 1; then
2990             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2991           fi
2992
2993           if test "$wxUSE_ODBC" = yes; then
2994             echo "$as_me:$LINENO: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6
2996           elif test "$wxUSE_ODBC" = no; then
2997             echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6
2999           elif test "$wxUSE_ODBC" = sys; then
3000             echo "$as_me:$LINENO: result: system version" >&5
3001 echo "${ECHO_T}system version" >&6
3002           elif test "$wxUSE_ODBC" = builtin; then
3003             echo "$as_me:$LINENO: result: builtin version" >&5
3004 echo "${ECHO_T}builtin version" >&6
3005           else
3006             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3007 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3008    { (exit 1); exit 1; }; }
3009           fi
3010
3011
3012
3013
3014           enablestring=
3015           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3016 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3017           no_cache=0
3018           # Check whether --enable-shared or --disable-shared was given.
3019 if test "${enable_shared+set}" = set; then
3020   enableval="$enable_shared"
3021
3022                           if test "$enableval" = yes; then
3023                             ac_cv_use_shared='wxUSE_SHARED=yes'
3024                           else
3025                             ac_cv_use_shared='wxUSE_SHARED=no'
3026                           fi
3027
3028 else
3029
3030                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3031                           if test "x$LINE" != x ; then
3032                             eval "DEFAULT_$LINE"
3033                           else
3034                             no_cache=1
3035                           fi
3036
3037                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3038
3039 fi;
3040
3041           eval "$ac_cv_use_shared"
3042           if test "$no_cache" != 1; then
3043             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3044           fi
3045
3046           if test "$wxUSE_SHARED" = yes; then
3047             echo "$as_me:$LINENO: result: yes" >&5
3048 echo "${ECHO_T}yes" >&6
3049           else
3050             echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3052           fi
3053
3054
3055           enablestring=
3056           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-soname" >&5
3057 echo $ECHO_N "checking for --${enablestring:-enable}-soname... $ECHO_C" >&6
3058           no_cache=0
3059           # Check whether --enable-soname or --disable-soname was given.
3060 if test "${enable_soname+set}" = set; then
3061   enableval="$enable_soname"
3062
3063                           if test "$enableval" = yes; then
3064                             ac_cv_use_soname='wxUSE_SONAME=yes'
3065                           else
3066                             ac_cv_use_soname='wxUSE_SONAME=no'
3067                           fi
3068
3069 else
3070
3071                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
3072                           if test "x$LINE" != x ; then
3073                             eval "DEFAULT_$LINE"
3074                           else
3075                             no_cache=1
3076                           fi
3077
3078                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
3079
3080 fi;
3081
3082           eval "$ac_cv_use_soname"
3083           if test "$no_cache" != 1; then
3084             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
3085           fi
3086
3087           if test "$wxUSE_SONAME" = yes; then
3088             echo "$as_me:$LINENO: result: yes" >&5
3089 echo "${ECHO_T}yes" >&6
3090           else
3091             echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3093           fi
3094
3095
3096           enablestring=
3097           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3098 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3099           no_cache=0
3100           # Check whether --enable-optimise or --disable-optimise was given.
3101 if test "${enable_optimise+set}" = set; then
3102   enableval="$enable_optimise"
3103
3104                           if test "$enableval" = yes; then
3105                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3106                           else
3107                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3108                           fi
3109
3110 else
3111
3112                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3113                           if test "x$LINE" != x ; then
3114                             eval "DEFAULT_$LINE"
3115                           else
3116                             no_cache=1
3117                           fi
3118
3119                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3120
3121 fi;
3122
3123           eval "$ac_cv_use_optimise"
3124           if test "$no_cache" != 1; then
3125             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3126           fi
3127
3128           if test "$wxUSE_OPTIMISE" = yes; then
3129             echo "$as_me:$LINENO: result: yes" >&5
3130 echo "${ECHO_T}yes" >&6
3131           else
3132             echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3134           fi
3135
3136
3137           enablestring=
3138           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3139 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3140           no_cache=0
3141           # Check whether --enable-debug or --disable-debug was given.
3142 if test "${enable_debug+set}" = set; then
3143   enableval="$enable_debug"
3144
3145                           if test "$enableval" = yes; then
3146                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3147                           else
3148                             ac_cv_use_debug='wxUSE_DEBUG=no'
3149                           fi
3150
3151 else
3152
3153                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3154                           if test "x$LINE" != x ; then
3155                             eval "DEFAULT_$LINE"
3156                           else
3157                             no_cache=1
3158                           fi
3159
3160                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3161
3162 fi;
3163
3164           eval "$ac_cv_use_debug"
3165           if test "$no_cache" != 1; then
3166             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3167           fi
3168
3169           if test "$wxUSE_DEBUG" = yes; then
3170             echo "$as_me:$LINENO: result: yes" >&5
3171 echo "${ECHO_T}yes" >&6
3172           else
3173             echo "$as_me:$LINENO: result: no" >&5
3174 echo "${ECHO_T}no" >&6
3175           fi
3176
3177
3178
3179           enablestring=
3180           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5
3181 echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6
3182           no_cache=0
3183           # Check whether --enable-precomp or --disable-precomp was given.
3184 if test "${enable_precomp+set}" = set; then
3185   enableval="$enable_precomp"
3186
3187                           if test "$enableval" = yes; then
3188                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
3189                           else
3190                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
3191                           fi
3192
3193 else
3194
3195                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
3196                           if test "x$LINE" != x ; then
3197                             eval "DEFAULT_$LINE"
3198                           else
3199                             no_cache=1
3200                           fi
3201
3202                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
3203
3204 fi;
3205
3206           eval "$ac_cv_use_precomp"
3207           if test "$no_cache" != 1; then
3208             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3209           fi
3210
3211           if test "$wxUSE_PRECOMP" = yes; then
3212             echo "$as_me:$LINENO: result: yes" >&5
3213 echo "${ECHO_T}yes" >&6
3214           else
3215             echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3217           fi
3218
3219
3220 if test "$wxUSE_DEBUG" = "yes"; then
3221   DEFAULT_wxUSE_DEBUG_FLAG=yes
3222   DEFAULT_wxUSE_DEBUG_INFO=yes
3223 elif test "$wxUSE_DEBUG" = "no"; then
3224   DEFAULT_wxUSE_DEBUG_FLAG=no
3225   DEFAULT_wxUSE_DEBUG_INFO=no
3226 fi
3227
3228
3229           enablestring=
3230           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3231 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3232           no_cache=0
3233           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3234 if test "${enable_debug_flag+set}" = set; then
3235   enableval="$enable_debug_flag"
3236
3237                           if test "$enableval" = yes; then
3238                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3239                           else
3240                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3241                           fi
3242
3243 else
3244
3245                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3246                           if test "x$LINE" != x ; then
3247                             eval "DEFAULT_$LINE"
3248                           else
3249                             no_cache=1
3250                           fi
3251
3252                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3253
3254 fi;
3255
3256           eval "$ac_cv_use_debug_flag"
3257           if test "$no_cache" != 1; then
3258             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3259           fi
3260
3261           if test "$wxUSE_DEBUG_FLAG" = yes; then
3262             echo "$as_me:$LINENO: result: yes" >&5
3263 echo "${ECHO_T}yes" >&6
3264           else
3265             echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3267           fi
3268
3269
3270           enablestring=
3271           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3272 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3273           no_cache=0
3274           # Check whether --enable-debug_info or --disable-debug_info was given.
3275 if test "${enable_debug_info+set}" = set; then
3276   enableval="$enable_debug_info"
3277
3278                           if test "$enableval" = yes; then
3279                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3280                           else
3281                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3282                           fi
3283
3284 else
3285
3286                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3287                           if test "x$LINE" != x ; then
3288                             eval "DEFAULT_$LINE"
3289                           else
3290                             no_cache=1
3291                           fi
3292
3293                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3294
3295 fi;
3296
3297           eval "$ac_cv_use_debug_info"
3298           if test "$no_cache" != 1; then
3299             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3300           fi
3301
3302           if test "$wxUSE_DEBUG_INFO" = yes; then
3303             echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3305           else
3306             echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3308           fi
3309
3310
3311           enablestring=
3312           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3313 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3314           no_cache=0
3315           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3316 if test "${enable_debug_gdb+set}" = set; then
3317   enableval="$enable_debug_gdb"
3318
3319                           if test "$enableval" = yes; then
3320                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3321                           else
3322                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3323                           fi
3324
3325 else
3326
3327                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3328                           if test "x$LINE" != x ; then
3329                             eval "DEFAULT_$LINE"
3330                           else
3331                             no_cache=1
3332                           fi
3333
3334                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3335
3336 fi;
3337
3338           eval "$ac_cv_use_debug_gdb"
3339           if test "$no_cache" != 1; then
3340             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3341           fi
3342
3343           if test "$wxUSE_DEBUG_GDB" = yes; then
3344             echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6
3346           else
3347             echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349           fi
3350
3351
3352           enablestring=
3353           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3354 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3355           no_cache=0
3356           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3357 if test "${enable_debug_cntxt+set}" = set; then
3358   enableval="$enable_debug_cntxt"
3359
3360                           if test "$enableval" = yes; then
3361                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3362                           else
3363                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3364                           fi
3365
3366 else
3367
3368                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3369                           if test "x$LINE" != x ; then
3370                             eval "DEFAULT_$LINE"
3371                           else
3372                             no_cache=1
3373                           fi
3374
3375                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3376
3377 fi;
3378
3379           eval "$ac_cv_use_debug_cntxt"
3380           if test "$no_cache" != 1; then
3381             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3382           fi
3383
3384           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3385             echo "$as_me:$LINENO: result: yes" >&5
3386 echo "${ECHO_T}yes" >&6
3387           else
3388             echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6
3390           fi
3391
3392
3393           enablestring=
3394           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3395 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3396           no_cache=0
3397           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3398 if test "${enable_mem_tracing+set}" = set; then
3399   enableval="$enable_mem_tracing"
3400
3401                           if test "$enableval" = yes; then
3402                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3403                           else
3404                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3405                           fi
3406
3407 else
3408
3409                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3410                           if test "x$LINE" != x ; then
3411                             eval "DEFAULT_$LINE"
3412                           else
3413                             no_cache=1
3414                           fi
3415
3416                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3417
3418 fi;
3419
3420           eval "$ac_cv_use_mem_tracing"
3421           if test "$no_cache" != 1; then
3422             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3423           fi
3424
3425           if test "$wxUSE_MEM_TRACING" = yes; then
3426             echo "$as_me:$LINENO: result: yes" >&5
3427 echo "${ECHO_T}yes" >&6
3428           else
3429             echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3431           fi
3432
3433
3434           enablestring=
3435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3436 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3437           no_cache=0
3438           # Check whether --enable-profile or --disable-profile was given.
3439 if test "${enable_profile+set}" = set; then
3440   enableval="$enable_profile"
3441
3442                           if test "$enableval" = yes; then
3443                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3444                           else
3445                             ac_cv_use_profile='wxUSE_PROFILE=no'
3446                           fi
3447
3448 else
3449
3450                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3451                           if test "x$LINE" != x ; then
3452                             eval "DEFAULT_$LINE"
3453                           else
3454                             no_cache=1
3455                           fi
3456
3457                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3458
3459 fi;
3460
3461           eval "$ac_cv_use_profile"
3462           if test "$no_cache" != 1; then
3463             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3464           fi
3465
3466           if test "$wxUSE_PROFILE" = yes; then
3467             echo "$as_me:$LINENO: result: yes" >&5
3468 echo "${ECHO_T}yes" >&6
3469           else
3470             echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3472           fi
3473
3474
3475           enablestring=
3476           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3477 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3478           no_cache=0
3479           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3480 if test "${enable_no_rtti+set}" = set; then
3481   enableval="$enable_no_rtti"
3482
3483                           if test "$enableval" = yes; then
3484                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3485                           else
3486                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3487                           fi
3488
3489 else
3490
3491                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3492                           if test "x$LINE" != x ; then
3493                             eval "DEFAULT_$LINE"
3494                           else
3495                             no_cache=1
3496                           fi
3497
3498                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3499
3500 fi;
3501
3502           eval "$ac_cv_use_no_rtti"
3503           if test "$no_cache" != 1; then
3504             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3505           fi
3506
3507           if test "$wxUSE_NO_RTTI" = yes; then
3508             echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6
3510           else
3511             echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3513           fi
3514
3515
3516           enablestring=
3517           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3518 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3519           no_cache=0
3520           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3521 if test "${enable_no_exceptions+set}" = set; then
3522   enableval="$enable_no_exceptions"
3523
3524                           if test "$enableval" = yes; then
3525                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3526                           else
3527                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3528                           fi
3529
3530 else
3531
3532                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3533                           if test "x$LINE" != x ; then
3534                             eval "DEFAULT_$LINE"
3535                           else
3536                             no_cache=1
3537                           fi
3538
3539                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3540
3541 fi;
3542
3543           eval "$ac_cv_use_no_exceptions"
3544           if test "$no_cache" != 1; then
3545             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3546           fi
3547
3548           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3549             echo "$as_me:$LINENO: result: yes" >&5
3550 echo "${ECHO_T}yes" >&6
3551           else
3552             echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3554           fi
3555
3556
3557           enablestring=
3558           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3559 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3560           no_cache=0
3561           # Check whether --enable-permissive or --disable-permissive was given.
3562 if test "${enable_permissive+set}" = set; then
3563   enableval="$enable_permissive"
3564
3565                           if test "$enableval" = yes; then
3566                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3567                           else
3568                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3569                           fi
3570
3571 else
3572
3573                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3574                           if test "x$LINE" != x ; then
3575                             eval "DEFAULT_$LINE"
3576                           else
3577                             no_cache=1
3578                           fi
3579
3580                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3581
3582 fi;
3583
3584           eval "$ac_cv_use_permissive"
3585           if test "$no_cache" != 1; then
3586             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3587           fi
3588
3589           if test "$wxUSE_PERMISSIVE" = yes; then
3590             echo "$as_me:$LINENO: result: yes" >&5
3591 echo "${ECHO_T}yes" >&6
3592           else
3593             echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3595           fi
3596
3597
3598           enablestring=
3599           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3600 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3601           no_cache=0
3602           # Check whether --enable-no_deps or --disable-no_deps was given.
3603 if test "${enable_no_deps+set}" = set; then
3604   enableval="$enable_no_deps"
3605
3606                           if test "$enableval" = yes; then
3607                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3608                           else
3609                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3610                           fi
3611
3612 else
3613
3614                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3615                           if test "x$LINE" != x ; then
3616                             eval "DEFAULT_$LINE"
3617                           else
3618                             no_cache=1
3619                           fi
3620
3621                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3622
3623 fi;
3624
3625           eval "$ac_cv_use_no_deps"
3626           if test "$no_cache" != 1; then
3627             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3628           fi
3629
3630           if test "$wxUSE_NO_DEPS" = yes; then
3631             echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6
3633           else
3634             echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3636           fi
3637
3638
3639
3640           enablestring=
3641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3642 echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
3643           no_cache=0
3644           # Check whether --enable-compat20 or --disable-compat20 was given.
3645 if test "${enable_compat20+set}" = set; then
3646   enableval="$enable_compat20"
3647
3648                           if test "$enableval" = yes; then
3649                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3650                           else
3651                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3652                           fi
3653
3654 else
3655
3656                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3657                           if test "x$LINE" != x ; then
3658                             eval "DEFAULT_$LINE"
3659                           else
3660                             no_cache=1
3661                           fi
3662
3663                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3664
3665 fi;
3666
3667           eval "$ac_cv_use_compat20"
3668           if test "$no_cache" != 1; then
3669             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3670           fi
3671
3672           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3673             echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3675           else
3676             echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3678           fi
3679
3680
3681           enablestring=
3682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3683 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3684           no_cache=0
3685           # Check whether --enable-compat22 or --disable-compat22 was given.
3686 if test "${enable_compat22+set}" = set; then
3687   enableval="$enable_compat22"
3688
3689                           if test "$enableval" = yes; then
3690                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3691                           else
3692                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3693                           fi
3694
3695 else
3696
3697                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3698                           if test "x$LINE" != x ; then
3699                             eval "DEFAULT_$LINE"
3700                           else
3701                             no_cache=1
3702                           fi
3703
3704                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3705
3706 fi;
3707
3708           eval "$ac_cv_use_compat22"
3709           if test "$no_cache" != 1; then
3710             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3711           fi
3712
3713           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3714             echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716           else
3717             echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719           fi
3720
3721
3722           enablestring=disable
3723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3724 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3725           no_cache=0
3726           # Check whether --enable-compat24 or --disable-compat24 was given.
3727 if test "${enable_compat24+set}" = set; then
3728   enableval="$enable_compat24"
3729
3730                           if test "$enableval" = yes; then
3731                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3732                           else
3733                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3734                           fi
3735
3736 else
3737
3738                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3739                           if test "x$LINE" != x ; then
3740                             eval "DEFAULT_$LINE"
3741                           else
3742                             no_cache=1
3743                           fi
3744
3745                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3746
3747 fi;
3748
3749           eval "$ac_cv_use_compat24"
3750           if test "$no_cache" != 1; then
3751             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3752           fi
3753
3754           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3755             echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3757           else
3758             echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760           fi
3761
3762
3763 # Check whether --enable-rpath or --disable-rpath was given.
3764 if test "${enable_rpath+set}" = set; then
3765   enableval="$enable_rpath"
3766   wxRPATH_DIR="$enableval"
3767 fi;
3768
3769 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3770    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3771 fi
3772
3773
3774
3775
3776           enablestring=
3777           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3778 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3779           no_cache=0
3780           # Check whether --enable-intl or --disable-intl was given.
3781 if test "${enable_intl+set}" = set; then
3782   enableval="$enable_intl"
3783
3784                           if test "$enableval" = yes; then
3785                             ac_cv_use_intl='wxUSE_INTL=yes'
3786                           else
3787                             ac_cv_use_intl='wxUSE_INTL=no'
3788                           fi
3789
3790 else
3791
3792                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3793                           if test "x$LINE" != x ; then
3794                             eval "DEFAULT_$LINE"
3795                           else
3796                             no_cache=1
3797                           fi
3798
3799                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3800
3801 fi;
3802
3803           eval "$ac_cv_use_intl"
3804           if test "$no_cache" != 1; then
3805             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3806           fi
3807
3808           if test "$wxUSE_INTL" = yes; then
3809             echo "$as_me:$LINENO: result: yes" >&5
3810 echo "${ECHO_T}yes" >&6
3811           else
3812             echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814           fi
3815
3816
3817           enablestring=
3818           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3819 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3820           no_cache=0
3821           # Check whether --enable-config or --disable-config was given.
3822 if test "${enable_config+set}" = set; then
3823   enableval="$enable_config"
3824
3825                           if test "$enableval" = yes; then
3826                             ac_cv_use_config='wxUSE_CONFIG=yes'
3827                           else
3828                             ac_cv_use_config='wxUSE_CONFIG=no'
3829                           fi
3830
3831 else
3832
3833                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3834                           if test "x$LINE" != x ; then
3835                             eval "DEFAULT_$LINE"
3836                           else
3837                             no_cache=1
3838                           fi
3839
3840                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3841
3842 fi;
3843
3844           eval "$ac_cv_use_config"
3845           if test "$no_cache" != 1; then
3846             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3847           fi
3848
3849           if test "$wxUSE_CONFIG" = yes; then
3850             echo "$as_me:$LINENO: result: yes" >&5
3851 echo "${ECHO_T}yes" >&6
3852           else
3853             echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3855           fi
3856
3857
3858
3859           enablestring=
3860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3861 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
3862           no_cache=0
3863           # Check whether --enable-protocols or --disable-protocols was given.
3864 if test "${enable_protocols+set}" = set; then
3865   enableval="$enable_protocols"
3866
3867                           if test "$enableval" = yes; then
3868                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3869                           else
3870                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3871                           fi
3872
3873 else
3874
3875                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3876                           if test "x$LINE" != x ; then
3877                             eval "DEFAULT_$LINE"
3878                           else
3879                             no_cache=1
3880                           fi
3881
3882                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3883
3884 fi;
3885
3886           eval "$ac_cv_use_protocols"
3887           if test "$no_cache" != 1; then
3888             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3889           fi
3890
3891           if test "$wxUSE_PROTOCOL" = yes; then
3892             echo "$as_me:$LINENO: result: yes" >&5
3893 echo "${ECHO_T}yes" >&6
3894           else
3895             echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3897           fi
3898
3899
3900           enablestring=
3901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3902 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
3903           no_cache=0
3904           # Check whether --enable-ftp or --disable-ftp was given.
3905 if test "${enable_ftp+set}" = set; then
3906   enableval="$enable_ftp"
3907
3908                           if test "$enableval" = yes; then
3909                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3910                           else
3911                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3912                           fi
3913
3914 else
3915
3916                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3917                           if test "x$LINE" != x ; then
3918                             eval "DEFAULT_$LINE"
3919                           else
3920                             no_cache=1
3921                           fi
3922
3923                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3924
3925 fi;
3926
3927           eval "$ac_cv_use_ftp"
3928           if test "$no_cache" != 1; then
3929             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3930           fi
3931
3932           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3933             echo "$as_me:$LINENO: result: yes" >&5
3934 echo "${ECHO_T}yes" >&6
3935           else
3936             echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938           fi
3939
3940
3941           enablestring=
3942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3943 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
3944           no_cache=0
3945           # Check whether --enable-http or --disable-http was given.
3946 if test "${enable_http+set}" = set; then
3947   enableval="$enable_http"
3948
3949                           if test "$enableval" = yes; then
3950                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3951                           else
3952                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3953                           fi
3954
3955 else
3956
3957                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3958                           if test "x$LINE" != x ; then
3959                             eval "DEFAULT_$LINE"
3960                           else
3961                             no_cache=1
3962                           fi
3963
3964                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3965
3966 fi;
3967
3968           eval "$ac_cv_use_http"
3969           if test "$no_cache" != 1; then
3970             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3971           fi
3972
3973           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3974             echo "$as_me:$LINENO: result: yes" >&5
3975 echo "${ECHO_T}yes" >&6
3976           else
3977             echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3979           fi
3980
3981
3982           enablestring=
3983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3984 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
3985           no_cache=0
3986           # Check whether --enable-fileproto or --disable-fileproto was given.
3987 if test "${enable_fileproto+set}" = set; then
3988   enableval="$enable_fileproto"
3989
3990                           if test "$enableval" = yes; then
3991                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3992                           else
3993                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3994                           fi
3995
3996 else
3997
3998                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3999                           if test "x$LINE" != x ; then
4000                             eval "DEFAULT_$LINE"
4001                           else
4002                             no_cache=1
4003                           fi
4004
4005                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4006
4007 fi;
4008
4009           eval "$ac_cv_use_fileproto"
4010           if test "$no_cache" != 1; then
4011             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4012           fi
4013
4014           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4015             echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6
4017           else
4018             echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4020           fi
4021
4022
4023           enablestring=
4024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4025 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4026           no_cache=0
4027           # Check whether --enable-sockets or --disable-sockets was given.
4028 if test "${enable_sockets+set}" = set; then
4029   enableval="$enable_sockets"
4030
4031                           if test "$enableval" = yes; then
4032                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4033                           else
4034                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4035                           fi
4036
4037 else
4038
4039                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4040                           if test "x$LINE" != x ; then
4041                             eval "DEFAULT_$LINE"
4042                           else
4043                             no_cache=1
4044                           fi
4045
4046                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4047
4048 fi;
4049
4050           eval "$ac_cv_use_sockets"
4051           if test "$no_cache" != 1; then
4052             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4053           fi
4054
4055           if test "$wxUSE_SOCKETS" = yes; then
4056             echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058           else
4059             echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061           fi
4062
4063
4064           enablestring=
4065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4066 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4067           no_cache=0
4068           # Check whether --enable-ole or --disable-ole was given.
4069 if test "${enable_ole+set}" = set; then
4070   enableval="$enable_ole"
4071
4072                           if test "$enableval" = yes; then
4073                             ac_cv_use_ole='wxUSE_OLE=yes'
4074                           else
4075                             ac_cv_use_ole='wxUSE_OLE=no'
4076                           fi
4077
4078 else
4079
4080                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4081                           if test "x$LINE" != x ; then
4082                             eval "DEFAULT_$LINE"
4083                           else
4084                             no_cache=1
4085                           fi
4086
4087                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4088
4089 fi;
4090
4091           eval "$ac_cv_use_ole"
4092           if test "$no_cache" != 1; then
4093             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4094           fi
4095
4096           if test "$wxUSE_OLE" = yes; then
4097             echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6
4099           else
4100             echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4102           fi
4103
4104
4105           enablestring=
4106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4107 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4108           no_cache=0
4109           # Check whether --enable-dataobj or --disable-dataobj was given.
4110 if test "${enable_dataobj+set}" = set; then
4111   enableval="$enable_dataobj"
4112
4113                           if test "$enableval" = yes; then
4114                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4115                           else
4116                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4117                           fi
4118
4119 else
4120
4121                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4122                           if test "x$LINE" != x ; then
4123                             eval "DEFAULT_$LINE"
4124                           else
4125                             no_cache=1
4126                           fi
4127
4128                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4129
4130 fi;
4131
4132           eval "$ac_cv_use_dataobj"
4133           if test "$no_cache" != 1; then
4134             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4135           fi
4136
4137           if test "$wxUSE_DATAOBJ" = yes; then
4138             echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6
4140           else
4141             echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143           fi
4144
4145
4146
4147           enablestring=
4148           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4149 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4150           no_cache=0
4151           # Check whether --enable-ipc or --disable-ipc was given.
4152 if test "${enable_ipc+set}" = set; then
4153   enableval="$enable_ipc"
4154
4155                           if test "$enableval" = yes; then
4156                             ac_cv_use_ipc='wxUSE_IPC=yes'
4157                           else
4158                             ac_cv_use_ipc='wxUSE_IPC=no'
4159                           fi
4160
4161 else
4162
4163                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4164                           if test "x$LINE" != x ; then
4165                             eval "DEFAULT_$LINE"
4166                           else
4167                             no_cache=1
4168                           fi
4169
4170                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4171
4172 fi;
4173
4174           eval "$ac_cv_use_ipc"
4175           if test "$no_cache" != 1; then
4176             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4177           fi
4178
4179           if test "$wxUSE_IPC" = yes; then
4180             echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6
4182           else
4183             echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185           fi
4186
4187
4188
4189           enablestring=
4190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4191 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4192           no_cache=0
4193           # Check whether --enable-cmdline or --disable-cmdline was given.
4194 if test "${enable_cmdline+set}" = set; then
4195   enableval="$enable_cmdline"
4196
4197                           if test "$enableval" = yes; then
4198                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4199                           else
4200                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4201                           fi
4202
4203 else
4204
4205                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4206                           if test "x$LINE" != x ; then
4207                             eval "DEFAULT_$LINE"
4208                           else
4209                             no_cache=1
4210                           fi
4211
4212                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4213
4214 fi;
4215
4216           eval "$ac_cv_use_cmdline"
4217           if test "$no_cache" != 1; then
4218             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4219           fi
4220
4221           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4222             echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224           else
4225             echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4227           fi
4228
4229
4230           enablestring=
4231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4232 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4233           no_cache=0
4234           # Check whether --enable-datetime or --disable-datetime was given.
4235 if test "${enable_datetime+set}" = set; then
4236   enableval="$enable_datetime"
4237
4238                           if test "$enableval" = yes; then
4239                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4240                           else
4241                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4242                           fi
4243
4244 else
4245
4246                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4247                           if test "x$LINE" != x ; then
4248                             eval "DEFAULT_$LINE"
4249                           else
4250                             no_cache=1
4251                           fi
4252
4253                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4254
4255 fi;
4256
4257           eval "$ac_cv_use_datetime"
4258           if test "$no_cache" != 1; then
4259             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4260           fi
4261
4262           if test "$wxUSE_DATETIME" = yes; then
4263             echo "$as_me:$LINENO: result: yes" >&5
4264 echo "${ECHO_T}yes" >&6
4265           else
4266             echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268           fi
4269
4270
4271           enablestring=
4272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4273 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
4274           no_cache=0
4275           # Check whether --enable-stopwatch or --disable-stopwatch was given.
4276 if test "${enable_stopwatch+set}" = set; then
4277   enableval="$enable_stopwatch"
4278
4279                           if test "$enableval" = yes; then
4280                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4281                           else
4282                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4283                           fi
4284
4285 else
4286
4287                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4288                           if test "x$LINE" != x ; then
4289                             eval "DEFAULT_$LINE"
4290                           else
4291                             no_cache=1
4292                           fi
4293
4294                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
4295
4296 fi;
4297
4298           eval "$ac_cv_use_stopwatch"
4299           if test "$no_cache" != 1; then
4300             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4301           fi
4302
4303           if test "$wxUSE_STOPWATCH" = yes; then
4304             echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6
4306           else
4307             echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4309           fi
4310
4311
4312           enablestring=
4313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4314 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4315           no_cache=0
4316           # Check whether --enable-dialupman or --disable-dialupman was given.
4317 if test "${enable_dialupman+set}" = set; then
4318   enableval="$enable_dialupman"
4319
4320                           if test "$enableval" = yes; then
4321                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4322                           else
4323                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4324                           fi
4325
4326 else
4327
4328                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4329                           if test "x$LINE" != x ; then
4330                             eval "DEFAULT_$LINE"
4331                           else
4332                             no_cache=1
4333                           fi
4334
4335                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4336
4337 fi;
4338
4339           eval "$ac_cv_use_dialupman"
4340           if test "$no_cache" != 1; then
4341             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4342           fi
4343
4344           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4345             echo "$as_me:$LINENO: result: yes" >&5
4346 echo "${ECHO_T}yes" >&6
4347           else
4348             echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350           fi
4351
4352
4353           enablestring=
4354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4355 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4356           no_cache=0
4357           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4358 if test "${enable_apple_ieee+set}" = set; then
4359   enableval="$enable_apple_ieee"
4360
4361                           if test "$enableval" = yes; then
4362                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4363                           else
4364                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4365                           fi
4366
4367 else
4368
4369                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4370                           if test "x$LINE" != x ; then
4371                             eval "DEFAULT_$LINE"
4372                           else
4373                             no_cache=1
4374                           fi
4375
4376                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4377
4378 fi;
4379
4380           eval "$ac_cv_use_apple_ieee"
4381           if test "$no_cache" != 1; then
4382             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4383           fi
4384
4385           if test "$wxUSE_APPLE_IEEE" = yes; then
4386             echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388           else
4389             echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391           fi
4392
4393
4394           enablestring=
4395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4396 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
4397           no_cache=0
4398           # Check whether --enable-timer or --disable-timer was given.
4399 if test "${enable_timer+set}" = set; then
4400   enableval="$enable_timer"
4401
4402                           if test "$enableval" = yes; then
4403                             ac_cv_use_timer='wxUSE_TIMER=yes'
4404                           else
4405                             ac_cv_use_timer='wxUSE_TIMER=no'
4406                           fi
4407
4408 else
4409
4410                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
4411                           if test "x$LINE" != x ; then
4412                             eval "DEFAULT_$LINE"
4413                           else
4414                             no_cache=1
4415                           fi
4416
4417                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
4418
4419 fi;
4420
4421           eval "$ac_cv_use_timer"
4422           if test "$no_cache" != 1; then
4423             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
4424           fi
4425
4426           if test "$wxUSE_TIMER" = yes; then
4427             echo "$as_me:$LINENO: result: yes" >&5
4428 echo "${ECHO_T}yes" >&6
4429           else
4430             echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4432           fi
4433
4434
4435           enablestring=
4436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4437 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
4438           no_cache=0
4439           # Check whether --enable-wave or --disable-wave was given.
4440 if test "${enable_wave+set}" = set; then
4441   enableval="$enable_wave"
4442
4443                           if test "$enableval" = yes; then
4444                             ac_cv_use_wave='wxUSE_WAVE=yes'
4445                           else
4446                             ac_cv_use_wave='wxUSE_WAVE=no'
4447                           fi
4448
4449 else
4450
4451                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4452                           if test "x$LINE" != x ; then
4453                             eval "DEFAULT_$LINE"
4454                           else
4455                             no_cache=1
4456                           fi
4457
4458                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
4459
4460 fi;
4461
4462           eval "$ac_cv_use_wave"
4463           if test "$no_cache" != 1; then
4464             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4465           fi
4466
4467           if test "$wxUSE_WAVE" = yes; then
4468             echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4470           else
4471             echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6
4473           fi
4474
4475
4476           enablestring=
4477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4478 echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
4479           no_cache=0
4480           # Check whether --enable-fraction or --disable-fraction was given.
4481 if test "${enable_fraction+set}" = set; then
4482   enableval="$enable_fraction"
4483
4484                           if test "$enableval" = yes; then
4485                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
4486                           else
4487                             ac_cv_use_fraction='wxUSE_FRACTION=no'
4488                           fi
4489
4490 else
4491
4492                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4493                           if test "x$LINE" != x ; then
4494                             eval "DEFAULT_$LINE"
4495                           else
4496                             no_cache=1
4497                           fi
4498
4499                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
4500
4501 fi;
4502
4503           eval "$ac_cv_use_fraction"
4504           if test "$no_cache" != 1; then
4505             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4506           fi
4507
4508           if test "$wxUSE_FRACTION" = yes; then
4509             echo "$as_me:$LINENO: result: yes" >&5
4510 echo "${ECHO_T}yes" >&6
4511           else
4512             echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6
4514           fi
4515
4516
4517           enablestring=
4518           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4519 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4520           no_cache=0
4521           # Check whether --enable-dynlib or --disable-dynlib was given.
4522 if test "${enable_dynlib+set}" = set; then
4523   enableval="$enable_dynlib"
4524
4525                           if test "$enableval" = yes; then
4526                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4527                           else
4528                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4529                           fi
4530
4531 else
4532
4533                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4534                           if test "x$LINE" != x ; then
4535                             eval "DEFAULT_$LINE"
4536                           else
4537                             no_cache=1
4538                           fi
4539
4540                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4541
4542 fi;
4543
4544           eval "$ac_cv_use_dynlib"
4545           if test "$no_cache" != 1; then
4546             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4547           fi
4548
4549           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4550             echo "$as_me:$LINENO: result: yes" >&5
4551 echo "${ECHO_T}yes" >&6
4552           else
4553             echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555           fi
4556
4557
4558           enablestring=
4559           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4560 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4561           no_cache=0
4562           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4563 if test "${enable_dynamicloader+set}" = set; then
4564   enableval="$enable_dynamicloader"
4565
4566                           if test "$enableval" = yes; then
4567                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4568                           else
4569                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4570                           fi
4571
4572 else
4573
4574                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4575                           if test "x$LINE" != x ; then
4576                             eval "DEFAULT_$LINE"
4577                           else
4578                             no_cache=1
4579                           fi
4580
4581                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4582
4583 fi;
4584
4585           eval "$ac_cv_use_dynamicloader"
4586           if test "$no_cache" != 1; then
4587             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4588           fi
4589
4590           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4591             echo "$as_me:$LINENO: result: yes" >&5
4592 echo "${ECHO_T}yes" >&6
4593           else
4594             echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4596           fi
4597
4598
4599           enablestring=
4600           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4601 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
4602           no_cache=0
4603           # Check whether --enable-longlong or --disable-longlong was given.
4604 if test "${enable_longlong+set}" = set; then
4605   enableval="$enable_longlong"
4606
4607                           if test "$enableval" = yes; then
4608                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4609                           else
4610                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
4611                           fi
4612
4613 else
4614
4615                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4616                           if test "x$LINE" != x ; then
4617                             eval "DEFAULT_$LINE"
4618                           else
4619                             no_cache=1
4620                           fi
4621
4622                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4623
4624 fi;
4625
4626           eval "$ac_cv_use_longlong"
4627           if test "$no_cache" != 1; then
4628             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4629           fi
4630
4631           if test "$wxUSE_LONGLONG" = yes; then
4632             echo "$as_me:$LINENO: result: yes" >&5
4633 echo "${ECHO_T}yes" >&6
4634           else
4635             echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637           fi
4638
4639
4640           enablestring=
4641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4642 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4643           no_cache=0
4644           # Check whether --enable-geometry or --disable-geometry was given.
4645 if test "${enable_geometry+set}" = set; then
4646   enableval="$enable_geometry"
4647
4648                           if test "$enableval" = yes; then
4649                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4650                           else
4651                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4652                           fi
4653
4654 else
4655
4656                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4657                           if test "x$LINE" != x ; then
4658                             eval "DEFAULT_$LINE"
4659                           else
4660                             no_cache=1
4661                           fi
4662
4663                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4664
4665 fi;
4666
4667           eval "$ac_cv_use_geometry"
4668           if test "$no_cache" != 1; then
4669             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4670           fi
4671
4672           if test "$wxUSE_GEOMETRY" = yes; then
4673             echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4675           else
4676             echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678           fi
4679
4680
4681           enablestring=
4682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4683 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4684           no_cache=0
4685           # Check whether --enable-log or --disable-log was given.
4686 if test "${enable_log+set}" = set; then
4687   enableval="$enable_log"
4688
4689                           if test "$enableval" = yes; then
4690                             ac_cv_use_log='wxUSE_LOG=yes'
4691                           else
4692                             ac_cv_use_log='wxUSE_LOG=no'
4693                           fi
4694
4695 else
4696
4697                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4698                           if test "x$LINE" != x ; then
4699                             eval "DEFAULT_$LINE"
4700                           else
4701                             no_cache=1
4702                           fi
4703
4704                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4705
4706 fi;
4707
4708           eval "$ac_cv_use_log"
4709           if test "$no_cache" != 1; then
4710             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4711           fi
4712
4713           if test "$wxUSE_LOG" = yes; then
4714             echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6
4716           else
4717             echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6
4719           fi
4720
4721
4722           enablestring=
4723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4724 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
4725           no_cache=0
4726           # Check whether --enable-streams or --disable-streams was given.
4727 if test "${enable_streams+set}" = set; then
4728   enableval="$enable_streams"
4729
4730                           if test "$enableval" = yes; then
4731                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4732                           else
4733                             ac_cv_use_streams='wxUSE_STREAMS=no'
4734                           fi
4735
4736 else
4737
4738                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4739                           if test "x$LINE" != x ; then
4740                             eval "DEFAULT_$LINE"
4741                           else
4742                             no_cache=1
4743                           fi
4744
4745                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4746
4747 fi;
4748
4749           eval "$ac_cv_use_streams"
4750           if test "$no_cache" != 1; then
4751             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4752           fi
4753
4754           if test "$wxUSE_STREAMS" = yes; then
4755             echo "$as_me:$LINENO: result: yes" >&5
4756 echo "${ECHO_T}yes" >&6
4757           else
4758             echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6
4760           fi
4761
4762
4763           enablestring=
4764           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4765 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4766           no_cache=0
4767           # Check whether --enable-file or --disable-file was given.
4768 if test "${enable_file+set}" = set; then
4769   enableval="$enable_file"
4770
4771                           if test "$enableval" = yes; then
4772                             ac_cv_use_file='wxUSE_FILE=yes'
4773                           else
4774                             ac_cv_use_file='wxUSE_FILE=no'
4775                           fi
4776
4777 else
4778
4779                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4780                           if test "x$LINE" != x ; then
4781                             eval "DEFAULT_$LINE"
4782                           else
4783                             no_cache=1
4784                           fi
4785
4786                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4787
4788 fi;
4789
4790           eval "$ac_cv_use_file"
4791           if test "$no_cache" != 1; then
4792             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4793           fi
4794
4795           if test "$wxUSE_FILE" = yes; then
4796             echo "$as_me:$LINENO: result: yes" >&5
4797 echo "${ECHO_T}yes" >&6
4798           else
4799             echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4801           fi
4802
4803
4804           enablestring=
4805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4806 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4807           no_cache=0
4808           # Check whether --enable-ffile or --disable-ffile was given.
4809 if test "${enable_ffile+set}" = set; then
4810   enableval="$enable_ffile"
4811
4812                           if test "$enableval" = yes; then
4813                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4814                           else
4815                             ac_cv_use_ffile='wxUSE_FFILE=no'
4816                           fi
4817
4818 else
4819
4820                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4821                           if test "x$LINE" != x ; then
4822                             eval "DEFAULT_$LINE"
4823                           else
4824                             no_cache=1
4825                           fi
4826
4827                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4828
4829 fi;
4830
4831           eval "$ac_cv_use_ffile"
4832           if test "$no_cache" != 1; then
4833             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4834           fi
4835
4836           if test "$wxUSE_FFILE" = yes; then
4837             echo "$as_me:$LINENO: result: yes" >&5
4838 echo "${ECHO_T}yes" >&6
4839           else
4840             echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6
4842           fi
4843
4844
4845           enablestring=
4846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4847 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
4848           no_cache=0
4849           # Check whether --enable-textbuf or --disable-textbuf was given.
4850 if test "${enable_textbuf+set}" = set; then
4851   enableval="$enable_textbuf"
4852
4853                           if test "$enableval" = yes; then
4854                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4855                           else
4856                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4857                           fi
4858
4859 else
4860
4861                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4862                           if test "x$LINE" != x ; then
4863                             eval "DEFAULT_$LINE"
4864                           else
4865                             no_cache=1
4866                           fi
4867
4868                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4869
4870 fi;
4871
4872           eval "$ac_cv_use_textbuf"
4873           if test "$no_cache" != 1; then
4874             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4875           fi
4876
4877           if test "$wxUSE_TEXTBUFFER" = yes; then
4878             echo "$as_me:$LINENO: result: yes" >&5
4879 echo "${ECHO_T}yes" >&6
4880           else
4881             echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883           fi
4884
4885
4886           enablestring=
4887           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4888 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
4889           no_cache=0
4890           # Check whether --enable-textfile or --disable-textfile was given.
4891 if test "${enable_textfile+set}" = set; then
4892   enableval="$enable_textfile"
4893
4894                           if test "$enableval" = yes; then
4895                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4896                           else
4897                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4898                           fi
4899
4900 else
4901
4902                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4903                           if test "x$LINE" != x ; then
4904                             eval "DEFAULT_$LINE"
4905                           else
4906                             no_cache=1
4907                           fi
4908
4909                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4910
4911 fi;
4912
4913           eval "$ac_cv_use_textfile"
4914           if test "$no_cache" != 1; then
4915             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4916           fi
4917
4918           if test "$wxUSE_TEXTFILE" = yes; then
4919             echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6
4921           else
4922             echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4924           fi
4925
4926
4927           enablestring=
4928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4929 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4930           no_cache=0
4931           # Check whether --enable-fontmap or --disable-fontmap was given.
4932 if test "${enable_fontmap+set}" = set; then
4933   enableval="$enable_fontmap"
4934
4935                           if test "$enableval" = yes; then
4936                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4937                           else
4938                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4939                           fi
4940
4941 else
4942
4943                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4944                           if test "x$LINE" != x ; then
4945                             eval "DEFAULT_$LINE"
4946                           else
4947                             no_cache=1
4948                           fi
4949
4950                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4951
4952 fi;
4953
4954           eval "$ac_cv_use_fontmap"
4955           if test "$no_cache" != 1; then
4956             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4957           fi
4958
4959           if test "$wxUSE_FONTMAP" = yes; then
4960             echo "$as_me:$LINENO: result: yes" >&5
4961 echo "${ECHO_T}yes" >&6
4962           else
4963             echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965           fi
4966
4967
4968           enablestring=
4969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4970 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4971           no_cache=0
4972           # Check whether --enable-unicode or --disable-unicode was given.
4973 if test "${enable_unicode+set}" = set; then
4974   enableval="$enable_unicode"
4975
4976                           if test "$enableval" = yes; then
4977                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4978                           else
4979                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4980                           fi
4981
4982 else
4983
4984                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4985                           if test "x$LINE" != x ; then
4986                             eval "DEFAULT_$LINE"
4987                           else
4988                             no_cache=1
4989                           fi
4990
4991                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4992
4993 fi;
4994
4995           eval "$ac_cv_use_unicode"
4996           if test "$no_cache" != 1; then
4997             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4998           fi
4999
5000           if test "$wxUSE_UNICODE" = yes; then
5001             echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5003           else
5004             echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5006           fi
5007
5008
5009           enablestring=
5010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5011 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5012           no_cache=0
5013           # Check whether --enable-mslu or --disable-mslu was given.
5014 if test "${enable_mslu+set}" = set; then
5015   enableval="$enable_mslu"
5016
5017                           if test "$enableval" = yes; then
5018                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5019                           else
5020                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5021                           fi
5022
5023 else
5024
5025                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5026                           if test "x$LINE" != x ; then
5027                             eval "DEFAULT_$LINE"
5028                           else
5029                             no_cache=1
5030                           fi
5031
5032                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5033
5034 fi;
5035
5036           eval "$ac_cv_use_mslu"
5037           if test "$no_cache" != 1; then
5038             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5039           fi
5040
5041           if test "$wxUSE_UNICODE_MSLU" = yes; then
5042             echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6
5044           else
5045             echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047           fi
5048
5049
5050           enablestring=
5051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5052 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5053           no_cache=0
5054           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5055 if test "${enable_wxprintfv+set}" = set; then
5056   enableval="$enable_wxprintfv"
5057
5058                           if test "$enableval" = yes; then
5059                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5060                           else
5061                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5062                           fi
5063
5064 else
5065
5066                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5067                           if test "x$LINE" != x ; then
5068                             eval "DEFAULT_$LINE"
5069                           else
5070                             no_cache=1
5071                           fi
5072
5073                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5074
5075 fi;
5076
5077           eval "$ac_cv_use_wxprintfv"
5078           if test "$no_cache" != 1; then
5079             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5080           fi
5081
5082           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5083             echo "$as_me:$LINENO: result: yes" >&5
5084 echo "${ECHO_T}yes" >&6
5085           else
5086             echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5088           fi
5089
5090
5091           enablestring=
5092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5093 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5094           no_cache=0
5095           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5096 if test "${enable_std_iostreams+set}" = set; then
5097   enableval="$enable_std_iostreams"
5098
5099                           if test "$enableval" = yes; then
5100                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5101                           else
5102                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5103                           fi
5104
5105 else
5106
5107                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5108                           if test "x$LINE" != x ; then
5109                             eval "DEFAULT_$LINE"
5110                           else
5111                             no_cache=1
5112                           fi
5113
5114                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5115
5116 fi;
5117
5118           eval "$ac_cv_use_std_iostreams"
5119           if test "$no_cache" != 1; then
5120             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5121           fi
5122
5123           if test "$wxUSE_STD_IOSTREAM" = yes; then
5124             echo "$as_me:$LINENO: result: yes" >&5
5125 echo "${ECHO_T}yes" >&6
5126           else
5127             echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6
5129           fi
5130
5131
5132           enablestring=
5133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5134 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5135           no_cache=0
5136           # Check whether --enable-filesystem or --disable-filesystem was given.
5137 if test "${enable_filesystem+set}" = set; then
5138   enableval="$enable_filesystem"
5139
5140                           if test "$enableval" = yes; then
5141                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5142                           else
5143                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5144                           fi
5145
5146 else
5147
5148                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5149                           if test "x$LINE" != x ; then
5150                             eval "DEFAULT_$LINE"
5151                           else
5152                             no_cache=1
5153                           fi
5154
5155                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5156
5157 fi;
5158
5159           eval "$ac_cv_use_filesystem"
5160           if test "$no_cache" != 1; then
5161             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5162           fi
5163
5164           if test "$wxUSE_FILESYSTEM" = yes; then
5165             echo "$as_me:$LINENO: result: yes" >&5
5166 echo "${ECHO_T}yes" >&6
5167           else
5168             echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170           fi
5171
5172
5173           enablestring=
5174           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5176           no_cache=0
5177           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5178 if test "${enable_fs_inet+set}" = set; then
5179   enableval="$enable_fs_inet"
5180
5181                           if test "$enableval" = yes; then
5182                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5183                           else
5184                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5185                           fi
5186
5187 else
5188
5189                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5190                           if test "x$LINE" != x ; then
5191                             eval "DEFAULT_$LINE"
5192                           else
5193                             no_cache=1
5194                           fi
5195
5196                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5197
5198 fi;
5199
5200           eval "$ac_cv_use_fs_inet"
5201           if test "$no_cache" != 1; then
5202             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5203           fi
5204
5205           if test "$wxUSE_FS_INET" = yes; then
5206             echo "$as_me:$LINENO: result: yes" >&5
5207 echo "${ECHO_T}yes" >&6
5208           else
5209             echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6
5211           fi
5212
5213
5214           enablestring=
5215           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5216 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5217           no_cache=0
5218           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5219 if test "${enable_fs_zip+set}" = set; then
5220   enableval="$enable_fs_zip"
5221
5222                           if test "$enableval" = yes; then
5223                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5224                           else
5225                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5226                           fi
5227
5228 else
5229
5230                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5231                           if test "x$LINE" != x ; then
5232                             eval "DEFAULT_$LINE"
5233                           else
5234                             no_cache=1
5235                           fi
5236
5237                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5238
5239 fi;
5240
5241           eval "$ac_cv_use_fs_zip"
5242           if test "$no_cache" != 1; then
5243             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5244           fi
5245
5246           if test "$wxUSE_FS_ZIP" = yes; then
5247             echo "$as_me:$LINENO: result: yes" >&5
5248 echo "${ECHO_T}yes" >&6
5249           else
5250             echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6
5252           fi
5253
5254
5255           enablestring=
5256           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5257 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5258           no_cache=0
5259           # Check whether --enable-zipstream or --disable-zipstream was given.
5260 if test "${enable_zipstream+set}" = set; then
5261   enableval="$enable_zipstream"
5262
5263                           if test "$enableval" = yes; then
5264                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5265                           else
5266                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5267                           fi
5268
5269 else
5270
5271                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5272                           if test "x$LINE" != x ; then
5273                             eval "DEFAULT_$LINE"
5274                           else
5275                             no_cache=1
5276                           fi
5277
5278                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5279
5280 fi;
5281
5282           eval "$ac_cv_use_zipstream"
5283           if test "$no_cache" != 1; then
5284             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5285           fi
5286
5287           if test "$wxUSE_ZIPSTREAM" = yes; then
5288             echo "$as_me:$LINENO: result: yes" >&5
5289 echo "${ECHO_T}yes" >&6
5290           else
5291             echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5293           fi
5294
5295
5296
5297           enablestring=
5298           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5299 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5300           no_cache=0
5301           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5302 if test "${enable_catch_segvs+set}" = set; then
5303   enableval="$enable_catch_segvs"
5304
5305                           if test "$enableval" = yes; then
5306                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5307                           else
5308                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5309                           fi
5310
5311 else
5312
5313                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5314                           if test "x$LINE" != x ; then
5315                             eval "DEFAULT_$LINE"
5316                           else
5317                             no_cache=1
5318                           fi
5319
5320                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5321
5322 fi;
5323
5324           eval "$ac_cv_use_catch_segvs"
5325           if test "$no_cache" != 1; then
5326             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5327           fi
5328
5329           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5330             echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5332           else
5333             echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5335           fi
5336
5337
5338           enablestring=
5339           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5340 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5341           no_cache=0
5342           # Check whether --enable-snglinst or --disable-snglinst was given.
5343 if test "${enable_snglinst+set}" = set; then
5344   enableval="$enable_snglinst"
5345
5346                           if test "$enableval" = yes; then
5347                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5348                           else
5349                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5350                           fi
5351
5352 else
5353
5354                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5355                           if test "x$LINE" != x ; then
5356                             eval "DEFAULT_$LINE"
5357                           else
5358                             no_cache=1
5359                           fi
5360
5361                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5362
5363 fi;
5364
5365           eval "$ac_cv_use_snglinst"
5366           if test "$no_cache" != 1; then
5367             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5368           fi
5369
5370           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5371             echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6
5373           else
5374             echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376           fi
5377
5378
5379
5380           enablestring=
5381           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5382 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5383           no_cache=0
5384           # Check whether --enable-mimetype or --disable-mimetype was given.
5385 if test "${enable_mimetype+set}" = set; then
5386   enableval="$enable_mimetype"
5387
5388                           if test "$enableval" = yes; then
5389                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5390                           else
5391                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5392                           fi
5393
5394 else
5395
5396                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5397                           if test "x$LINE" != x ; then
5398                             eval "DEFAULT_$LINE"
5399                           else
5400                             no_cache=1
5401                           fi
5402
5403                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5404
5405 fi;
5406
5407           eval "$ac_cv_use_mimetype"
5408           if test "$no_cache" != 1; then
5409             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5410           fi
5411
5412           if test "$wxUSE_MIMETYPE" = yes; then
5413             echo "$as_me:$LINENO: result: yes" >&5
5414 echo "${ECHO_T}yes" >&6
5415           else
5416             echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5418           fi
5419
5420
5421           enablestring=
5422           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5423 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5424           no_cache=0
5425           # Check whether --enable-system_options or --disable-system_options was given.
5426 if test "${enable_system_options+set}" = set; then
5427   enableval="$enable_system_options"
5428
5429                           if test "$enableval" = yes; then
5430                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5431                           else
5432                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5433                           fi
5434
5435 else
5436
5437                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5438                           if test "x$LINE" != x ; then
5439                             eval "DEFAULT_$LINE"
5440                           else
5441                             no_cache=1
5442                           fi
5443
5444                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5445
5446 fi;
5447
5448           eval "$ac_cv_use_system_options"
5449           if test "$no_cache" != 1; then
5450             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5451           fi
5452
5453           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5454             echo "$as_me:$LINENO: result: yes" >&5
5455 echo "${ECHO_T}yes" >&6
5456           else
5457             echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5459           fi
5460
5461
5462
5463           enablestring=
5464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5465 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5466           no_cache=0
5467           # Check whether --enable-url or --disable-url was given.
5468 if test "${enable_url+set}" = set; then
5469   enableval="$enable_url"
5470
5471                           if test "$enableval" = yes; then
5472                             ac_cv_use_url='wxUSE_URL=yes'
5473                           else
5474                             ac_cv_use_url='wxUSE_URL=no'
5475                           fi
5476
5477 else
5478
5479                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5480                           if test "x$LINE" != x ; then
5481                             eval "DEFAULT_$LINE"
5482                           else
5483                             no_cache=1
5484                           fi
5485
5486                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5487
5488 fi;
5489
5490           eval "$ac_cv_use_url"
5491           if test "$no_cache" != 1; then
5492             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5493           fi
5494
5495           if test "$wxUSE_URL" = yes; then
5496             echo "$as_me:$LINENO: result: yes" >&5
5497 echo "${ECHO_T}yes" >&6
5498           else
5499             echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5501           fi
5502
5503
5504           enablestring=
5505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5506 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5507           no_cache=0
5508           # Check whether --enable-protocol or --disable-protocol was given.
5509 if test "${enable_protocol+set}" = set; then
5510   enableval="$enable_protocol"
5511
5512                           if test "$enableval" = yes; then
5513                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5514                           else
5515                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5516                           fi
5517
5518 else
5519
5520                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5521                           if test "x$LINE" != x ; then
5522                             eval "DEFAULT_$LINE"
5523                           else
5524                             no_cache=1
5525                           fi
5526
5527                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5528
5529 fi;
5530
5531           eval "$ac_cv_use_protocol"
5532           if test "$no_cache" != 1; then
5533             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5534           fi
5535
5536           if test "$wxUSE_PROTOCOL" = yes; then
5537             echo "$as_me:$LINENO: result: yes" >&5
5538 echo "${ECHO_T}yes" >&6
5539           else
5540             echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5542           fi
5543
5544
5545           enablestring=
5546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5547 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5548           no_cache=0
5549           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5550 if test "${enable_protocol_http+set}" = set; then
5551   enableval="$enable_protocol_http"
5552
5553                           if test "$enableval" = yes; then
5554                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5555                           else
5556                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5557                           fi
5558
5559 else
5560
5561                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5562                           if test "x$LINE" != x ; then
5563                             eval "DEFAULT_$LINE"
5564                           else
5565                             no_cache=1
5566                           fi
5567
5568                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5569
5570 fi;
5571
5572           eval "$ac_cv_use_protocol_http"
5573           if test "$no_cache" != 1; then
5574             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5575           fi
5576
5577           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5578             echo "$as_me:$LINENO: result: yes" >&5
5579 echo "${ECHO_T}yes" >&6
5580           else
5581             echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5583           fi
5584
5585
5586           enablestring=
5587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5589           no_cache=0
5590           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5591 if test "${enable_protocol_ftp+set}" = set; then
5592   enableval="$enable_protocol_ftp"
5593
5594                           if test "$enableval" = yes; then
5595                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5596                           else
5597                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5598                           fi
5599
5600 else
5601
5602                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5603                           if test "x$LINE" != x ; then
5604                             eval "DEFAULT_$LINE"
5605                           else
5606                             no_cache=1
5607                           fi
5608
5609                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5610
5611 fi;
5612
5613           eval "$ac_cv_use_protocol_ftp"
5614           if test "$no_cache" != 1; then
5615             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5616           fi
5617
5618           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5619             echo "$as_me:$LINENO: result: yes" >&5
5620 echo "${ECHO_T}yes" >&6
5621           else
5622             echo "$as_me:$LINENO: result: no" >&5
5623 echo "${ECHO_T}no" >&6
5624           fi
5625
5626
5627           enablestring=
5628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5629 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5630           no_cache=0
5631           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5632 if test "${enable_protocol_file+set}" = set; then
5633   enableval="$enable_protocol_file"
5634
5635                           if test "$enableval" = yes; then
5636                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5637                           else
5638                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5639                           fi
5640
5641 else
5642
5643                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5644                           if test "x$LINE" != x ; then
5645                             eval "DEFAULT_$LINE"
5646                           else
5647                             no_cache=1
5648                           fi
5649
5650                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5651
5652 fi;
5653
5654           eval "$ac_cv_use_protocol_file"
5655           if test "$no_cache" != 1; then
5656             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5657           fi
5658
5659           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5660             echo "$as_me:$LINENO: result: yes" >&5
5661 echo "${ECHO_T}yes" >&6
5662           else
5663             echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5665           fi
5666
5667
5668
5669
5670
5671           enablestring=
5672           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5673 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5674           no_cache=0
5675           # Check whether --enable-threads or --disable-threads was given.
5676 if test "${enable_threads+set}" = set; then
5677   enableval="$enable_threads"
5678
5679                           if test "$enableval" = yes; then
5680                             ac_cv_use_threads='wxUSE_THREADS=yes'
5681                           else
5682                             ac_cv_use_threads='wxUSE_THREADS=no'
5683                           fi
5684
5685 else
5686
5687                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5688                           if test "x$LINE" != x ; then
5689                             eval "DEFAULT_$LINE"
5690                           else
5691                             no_cache=1
5692                           fi
5693
5694                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5695
5696 fi;
5697
5698           eval "$ac_cv_use_threads"
5699           if test "$no_cache" != 1; then
5700             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5701           fi
5702
5703           if test "$wxUSE_THREADS" = yes; then
5704             echo "$as_me:$LINENO: result: yes" >&5
5705 echo "${ECHO_T}yes" >&6
5706           else
5707             echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5709           fi
5710
5711
5712 if test "$wxUSE_GUI" = "yes"; then
5713
5714
5715
5716           enablestring=
5717           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5718 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5719           no_cache=0
5720           # Check whether --enable-docview or --disable-docview was given.
5721 if test "${enable_docview+set}" = set; then
5722   enableval="$enable_docview"
5723
5724                           if test "$enableval" = yes; then
5725                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5726                           else
5727                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5728                           fi
5729
5730 else
5731
5732                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5733                           if test "x$LINE" != x ; then
5734                             eval "DEFAULT_$LINE"
5735                           else
5736                             no_cache=1
5737                           fi
5738
5739                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5740
5741 fi;
5742
5743           eval "$ac_cv_use_docview"
5744           if test "$no_cache" != 1; then
5745             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5746           fi
5747
5748           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5749             echo "$as_me:$LINENO: result: yes" >&5
5750 echo "${ECHO_T}yes" >&6
5751           else
5752             echo "$as_me:$LINENO: result: no" >&5
5753 echo "${ECHO_T}no" >&6
5754           fi
5755
5756
5757           enablestring=
5758           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5759 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5760           no_cache=0
5761           # Check whether --enable-help or --disable-help was given.
5762 if test "${enable_help+set}" = set; then
5763   enableval="$enable_help"
5764
5765                           if test "$enableval" = yes; then
5766                             ac_cv_use_help='wxUSE_HELP=yes'
5767                           else
5768                             ac_cv_use_help='wxUSE_HELP=no'
5769                           fi
5770
5771 else
5772
5773                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5774                           if test "x$LINE" != x ; then
5775                             eval "DEFAULT_$LINE"
5776                           else
5777                             no_cache=1
5778                           fi
5779
5780                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5781
5782 fi;
5783
5784           eval "$ac_cv_use_help"
5785           if test "$no_cache" != 1; then
5786             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5787           fi
5788
5789           if test "$wxUSE_HELP" = yes; then
5790             echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6
5792           else
5793             echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6
5795           fi
5796
5797
5798           enablestring=
5799           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5800 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5801           no_cache=0
5802           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5803 if test "${enable_mshtmlhelp+set}" = set; then
5804   enableval="$enable_mshtmlhelp"
5805
5806                           if test "$enableval" = yes; then
5807                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5808                           else
5809                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5810                           fi
5811
5812 else
5813
5814                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5815                           if test "x$LINE" != x ; then
5816                             eval "DEFAULT_$LINE"
5817                           else
5818                             no_cache=1
5819                           fi
5820
5821                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5822
5823 fi;
5824
5825           eval "$ac_cv_use_mshtmlhelp"
5826           if test "$no_cache" != 1; then
5827             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5828           fi
5829
5830           if test "$wxUSE_MS_HTML_HELP" = yes; then
5831             echo "$as_me:$LINENO: result: yes" >&5
5832 echo "${ECHO_T}yes" >&6
5833           else
5834             echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5836           fi
5837
5838
5839           enablestring=
5840           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5841 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
5842           no_cache=0
5843           # Check whether --enable-html or --disable-html was given.
5844 if test "${enable_html+set}" = set; then
5845   enableval="$enable_html"
5846
5847                           if test "$enableval" = yes; then
5848                             ac_cv_use_html='wxUSE_HTML=yes'
5849                           else
5850                             ac_cv_use_html='wxUSE_HTML=no'
5851                           fi
5852
5853 else
5854
5855                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5856                           if test "x$LINE" != x ; then
5857                             eval "DEFAULT_$LINE"
5858                           else
5859                             no_cache=1
5860                           fi
5861
5862                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5863
5864 fi;
5865
5866           eval "$ac_cv_use_html"
5867           if test "$no_cache" != 1; then
5868             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5869           fi
5870
5871           if test "$wxUSE_HTML" = yes; then
5872             echo "$as_me:$LINENO: result: yes" >&5
5873 echo "${ECHO_T}yes" >&6
5874           else
5875             echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877           fi
5878
5879
5880           enablestring=
5881           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5882 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
5883           no_cache=0
5884           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5885 if test "${enable_htmlhelp+set}" = set; then
5886   enableval="$enable_htmlhelp"
5887
5888                           if test "$enableval" = yes; then
5889                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5890                           else
5891                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5892                           fi
5893
5894 else
5895
5896                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5897                           if test "x$LINE" != x ; then
5898                             eval "DEFAULT_$LINE"
5899                           else
5900                             no_cache=1
5901                           fi
5902
5903                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5904
5905 fi;
5906
5907           eval "$ac_cv_use_htmlhelp"
5908           if test "$no_cache" != 1; then
5909             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5910           fi
5911
5912           if test "$wxUSE_WXHTML_HELP" = yes; then
5913             echo "$as_me:$LINENO: result: yes" >&5
5914 echo "${ECHO_T}yes" >&6
5915           else
5916             echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5918           fi
5919
5920
5921           enablestring=
5922           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5923 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
5924           no_cache=0
5925           # Check whether --enable-constraints or --disable-constraints was given.
5926 if test "${enable_constraints+set}" = set; then
5927   enableval="$enable_constraints"
5928
5929                           if test "$enableval" = yes; then
5930                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5931                           else
5932                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5933                           fi
5934
5935 else
5936
5937                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5938                           if test "x$LINE" != x ; then
5939                             eval "DEFAULT_$LINE"
5940                           else
5941                             no_cache=1
5942                           fi
5943
5944                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5945
5946 fi;
5947
5948           eval "$ac_cv_use_constraints"
5949           if test "$no_cache" != 1; then
5950             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5951           fi
5952
5953           if test "$wxUSE_CONSTRAINTS" = yes; then
5954             echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6
5956           else
5957             echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5959           fi
5960
5961
5962           enablestring=
5963           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5964 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
5965           no_cache=0
5966           # Check whether --enable-printarch or --disable-printarch was given.
5967 if test "${enable_printarch+set}" = set; then
5968   enableval="$enable_printarch"
5969
5970                           if test "$enableval" = yes; then
5971                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5972                           else
5973                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5974                           fi
5975
5976 else
5977
5978                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5979                           if test "x$LINE" != x ; then
5980                             eval "DEFAULT_$LINE"
5981                           else
5982                             no_cache=1
5983                           fi
5984
5985                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5986
5987 fi;
5988
5989           eval "$ac_cv_use_printarch"
5990           if test "$no_cache" != 1; then
5991             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5992           fi
5993
5994           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5995             echo "$as_me:$LINENO: result: yes" >&5
5996 echo "${ECHO_T}yes" >&6
5997           else
5998             echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6000           fi
6001
6002
6003           enablestring=
6004           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6005 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6006           no_cache=0
6007           # Check whether --enable-mdi or --disable-mdi was given.
6008 if test "${enable_mdi+set}" = set; then
6009   enableval="$enable_mdi"
6010
6011                           if test "$enableval" = yes; then
6012                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6013                           else
6014                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6015                           fi
6016
6017 else
6018
6019                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6020                           if test "x$LINE" != x ; then
6021                             eval "DEFAULT_$LINE"
6022                           else
6023                             no_cache=1
6024                           fi
6025
6026                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6027
6028 fi;
6029
6030           eval "$ac_cv_use_mdi"
6031           if test "$no_cache" != 1; then
6032             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6033           fi
6034
6035           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6036             echo "$as_me:$LINENO: result: yes" >&5
6037 echo "${ECHO_T}yes" >&6
6038           else
6039             echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041           fi
6042
6043
6044           enablestring=
6045           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6046 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6047           no_cache=0
6048           # Check whether --enable-loggui or --disable-loggui was given.
6049 if test "${enable_loggui+set}" = set; then
6050   enableval="$enable_loggui"
6051
6052                           if test "$enableval" = yes; then
6053                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6054                           else
6055                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6056                           fi
6057
6058 else
6059
6060                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6061                           if test "x$LINE" != x ; then
6062                             eval "DEFAULT_$LINE"
6063                           else
6064                             no_cache=1
6065                           fi
6066
6067                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6068
6069 fi;
6070
6071           eval "$ac_cv_use_loggui"
6072           if test "$no_cache" != 1; then
6073             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6074           fi
6075
6076           if test "$wxUSE_LOGGUI" = yes; then
6077             echo "$as_me:$LINENO: result: yes" >&5
6078 echo "${ECHO_T}yes" >&6
6079           else
6080             echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6082           fi
6083
6084
6085           enablestring=
6086           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6087 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6088           no_cache=0
6089           # Check whether --enable-logwin or --disable-logwin was given.
6090 if test "${enable_logwin+set}" = set; then
6091   enableval="$enable_logwin"
6092
6093                           if test "$enableval" = yes; then
6094                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6095                           else
6096                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6097                           fi
6098
6099 else
6100
6101                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6102                           if test "x$LINE" != x ; then
6103                             eval "DEFAULT_$LINE"
6104                           else
6105                             no_cache=1
6106                           fi
6107
6108                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6109
6110 fi;
6111
6112           eval "$ac_cv_use_logwin"
6113           if test "$no_cache" != 1; then
6114             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6115           fi
6116
6117           if test "$wxUSE_LOGWINDOW" = yes; then
6118             echo "$as_me:$LINENO: result: yes" >&5
6119 echo "${ECHO_T}yes" >&6
6120           else
6121             echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6
6123           fi
6124
6125
6126           enablestring=
6127           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6128 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6129           no_cache=0
6130           # Check whether --enable-logdialog or --disable-logdialog was given.
6131 if test "${enable_logdialog+set}" = set; then
6132   enableval="$enable_logdialog"
6133
6134                           if test "$enableval" = yes; then
6135                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6136                           else
6137                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6138                           fi
6139
6140 else
6141
6142                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6143                           if test "x$LINE" != x ; then
6144                             eval "DEFAULT_$LINE"
6145                           else
6146                             no_cache=1
6147                           fi
6148
6149                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6150
6151 fi;
6152
6153           eval "$ac_cv_use_logdialog"
6154           if test "$no_cache" != 1; then
6155             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6156           fi
6157
6158           if test "$wxUSE_LOGDIALOG" = yes; then
6159             echo "$as_me:$LINENO: result: yes" >&5
6160 echo "${ECHO_T}yes" >&6
6161           else
6162             echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6164           fi
6165
6166
6167
6168           enablestring=
6169           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6170 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6171           no_cache=0
6172           # Check whether --enable-postscript or --disable-postscript was given.
6173 if test "${enable_postscript+set}" = set; then
6174   enableval="$enable_postscript"
6175
6176                           if test "$enableval" = yes; then
6177                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6178                           else
6179                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6180                           fi
6181
6182 else
6183
6184                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6185                           if test "x$LINE" != x ; then
6186                             eval "DEFAULT_$LINE"
6187                           else
6188                             no_cache=1
6189                           fi
6190
6191                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6192
6193 fi;
6194
6195           eval "$ac_cv_use_postscript"
6196           if test "$no_cache" != 1; then
6197             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6198           fi
6199
6200           if test "$wxUSE_POSTSCRIPT" = yes; then
6201             echo "$as_me:$LINENO: result: yes" >&5
6202 echo "${ECHO_T}yes" >&6
6203           else
6204             echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6206           fi
6207
6208
6209
6210
6211
6212           enablestring=
6213           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6214 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6215           no_cache=0
6216           # Check whether --enable-prologio or --disable-prologio was given.
6217 if test "${enable_prologio+set}" = set; then
6218   enableval="$enable_prologio"
6219
6220                           if test "$enableval" = yes; then
6221                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6222                           else
6223                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6224                           fi
6225
6226 else
6227
6228                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6229                           if test "x$LINE" != x ; then
6230                             eval "DEFAULT_$LINE"
6231                           else
6232                             no_cache=1
6233                           fi
6234
6235                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6236
6237 fi;
6238
6239           eval "$ac_cv_use_prologio"
6240           if test "$no_cache" != 1; then
6241             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6242           fi
6243
6244           if test "$wxUSE_PROLOGIO" = yes; then
6245             echo "$as_me:$LINENO: result: yes" >&5
6246 echo "${ECHO_T}yes" >&6
6247           else
6248             echo "$as_me:$LINENO: result: no" >&5
6249 echo "${ECHO_T}no" >&6
6250           fi
6251
6252
6253           enablestring=
6254           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6255 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6256           no_cache=0
6257           # Check whether --enable-resources or --disable-resources was given.
6258 if test "${enable_resources+set}" = set; then
6259   enableval="$enable_resources"
6260
6261                           if test "$enableval" = yes; then
6262                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6263                           else
6264                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6265                           fi
6266
6267 else
6268
6269                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6270                           if test "x$LINE" != x ; then
6271                             eval "DEFAULT_$LINE"
6272                           else
6273                             no_cache=1
6274                           fi
6275
6276                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6277
6278 fi;
6279
6280           eval "$ac_cv_use_resources"
6281           if test "$no_cache" != 1; then
6282             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6283           fi
6284
6285           if test "$wxUSE_RESOURCES" = yes; then
6286             echo "$as_me:$LINENO: result: yes" >&5
6287 echo "${ECHO_T}yes" >&6
6288           else
6289             echo "$as_me:$LINENO: result: no" >&5
6290 echo "${ECHO_T}no" >&6
6291           fi
6292
6293
6294
6295
6296           enablestring=
6297           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6298 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6299           no_cache=0
6300           # Check whether --enable-clipboard or --disable-clipboard was given.
6301 if test "${enable_clipboard+set}" = set; then
6302   enableval="$enable_clipboard"
6303
6304                           if test "$enableval" = yes; then
6305                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6306                           else
6307                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6308                           fi
6309
6310 else
6311
6312                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6313                           if test "x$LINE" != x ; then
6314                             eval "DEFAULT_$LINE"
6315                           else
6316                             no_cache=1
6317                           fi
6318
6319                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6320
6321 fi;
6322
6323           eval "$ac_cv_use_clipboard"
6324           if test "$no_cache" != 1; then
6325             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6326           fi
6327
6328           if test "$wxUSE_CLIPBOARD" = yes; then
6329             echo "$as_me:$LINENO: result: yes" >&5
6330 echo "${ECHO_T}yes" >&6
6331           else
6332             echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6
6334           fi
6335
6336
6337           enablestring=
6338           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6339 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6340           no_cache=0
6341           # Check whether --enable-dnd or --disable-dnd was given.
6342 if test "${enable_dnd+set}" = set; then
6343   enableval="$enable_dnd"
6344
6345                           if test "$enableval" = yes; then
6346                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6347                           else
6348                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6349                           fi
6350
6351 else
6352
6353                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6354                           if test "x$LINE" != x ; then
6355                             eval "DEFAULT_$LINE"
6356                           else
6357                             no_cache=1
6358                           fi
6359
6360                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6361
6362 fi;
6363
6364           eval "$ac_cv_use_dnd"
6365           if test "$no_cache" != 1; then
6366             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6367           fi
6368
6369           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6370             echo "$as_me:$LINENO: result: yes" >&5
6371 echo "${ECHO_T}yes" >&6
6372           else
6373             echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6
6375           fi
6376
6377
6378           enablestring=
6379           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6380 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6381           no_cache=0
6382           # Check whether --enable-metafile or --disable-metafile was given.
6383 if test "${enable_metafile+set}" = set; then
6384   enableval="$enable_metafile"
6385
6386                           if test "$enableval" = yes; then
6387                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6388                           else
6389                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6390                           fi
6391
6392 else
6393
6394                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6395                           if test "x$LINE" != x ; then
6396                             eval "DEFAULT_$LINE"
6397                           else
6398                             no_cache=1
6399                           fi
6400
6401                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6402
6403 fi;
6404
6405           eval "$ac_cv_use_metafile"
6406           if test "$no_cache" != 1; then
6407             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6408           fi
6409
6410           if test "$wxUSE_METAFILE" = yes; then
6411             echo "$as_me:$LINENO: result: yes" >&5
6412 echo "${ECHO_T}yes" >&6
6413           else
6414             echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6
6416           fi
6417
6418
6419
6420
6421
6422           enablestring=
6423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6424 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6425           no_cache=0
6426           # Check whether --enable-controls or --disable-controls was given.
6427 if test "${enable_controls+set}" = set; then
6428   enableval="$enable_controls"
6429
6430                           if test "$enableval" = yes; then
6431                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6432                           else
6433                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6434                           fi
6435
6436 else
6437
6438                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6439                           if test "x$LINE" != x ; then
6440                             eval "DEFAULT_$LINE"
6441                           else
6442                             no_cache=1
6443                           fi
6444
6445                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6446
6447 fi;
6448
6449           eval "$ac_cv_use_controls"
6450           if test "$no_cache" != 1; then
6451             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6452           fi
6453
6454           if test "$wxUSE_CONTROLS" = yes; then
6455             echo "$as_me:$LINENO: result: yes" >&5
6456 echo "${ECHO_T}yes" >&6
6457           else
6458             echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6
6460           fi
6461
6462
6463 if test "$wxUSE_CONTROLS" = "yes"; then
6464   DEFAULT_wxUSE_ACCEL=yes
6465   DEFAULT_wxUSE_BMPBUTTON=yes
6466   DEFAULT_wxUSE_BUTTON=yes
6467   DEFAULT_wxUSE_CALCTRL=no
6468   DEFAULT_wxUSE_CARET=yes
6469   DEFAULT_wxUSE_COMBOBOX=yes
6470   DEFAULT_wxUSE_CHECKBOX=yes
6471   DEFAULT_wxUSE_CHECKLISTBOX=yes
6472   DEFAULT_wxUSE_CHOICE=yes
6473   DEFAULT_wxUSE_GAUGE=yes
6474   DEFAULT_wxUSE_GRID=yes
6475   DEFAULT_wxUSE_IMAGLIST=yes
6476   DEFAULT_wxUSE_LISTBOX=yes
6477   DEFAULT_wxUSE_LISTCTRL=yes
6478   DEFAULT_wxUSE_NOTEBOOK=yes
6479   DEFAULT_wxUSE_RADIOBOX=yes
6480   DEFAULT_wxUSE_RADIOBTN=yes
6481   DEFAULT_wxUSE_SASH=yes
6482   DEFAULT_wxUSE_SCROLLBAR=yes
6483   DEFAULT_wxUSE_SLIDER=yes
6484   DEFAULT_wxUSE_SPINBTN=yes
6485   DEFAULT_wxUSE_SPINCTRL=yes
6486   DEFAULT_wxUSE_SPLITTER=yes
6487   DEFAULT_wxUSE_STATBMP=yes
6488   DEFAULT_wxUSE_STATBOX=yes
6489   DEFAULT_wxUSE_STATLINE=yes
6490   DEFAULT_wxUSE_STATUSBAR=yes
6491   DEFAULT_wxUSE_TAB_DIALOG=yes
6492   DEFAULT_wxUSE_TOGGLEBTN=yes
6493   DEFAULT_wxUSE_TOOLBAR=yes
6494   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6495   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6496   DEFAULT_wxUSE_TOOLTIPS=yes
6497   DEFAULT_wxUSE_TREECTRL=yes
6498   DEFAULT_wxUSE_POPUPWIN=yes
6499   DEFAULT_wxUSE_TIPWINDOW=yes
6500 elif test "$wxUSE_CONTROLS" = "no"; then
6501   DEFAULT_wxUSE_ACCEL=no
6502   DEFAULT_wxUSE_BMPBUTTON=no
6503   DEFAULT_wxUSE_BUTTON=no
6504   DEFAULT_wxUSE_CALCTRL=no
6505   DEFAULT_wxUSE_CARET=no
6506   DEFAULT_wxUSE_COMBOBOX=no
6507   DEFAULT_wxUSE_CHECKBOX=no
6508   DEFAULT_wxUSE_CHECKLISTBOX=no
6509   DEFAULT_wxUSE_CHOICE=no
6510   DEFAULT_wxUSE_GAUGE=no
6511   DEFAULT_wxUSE_GRID=no
6512   DEFAULT_wxUSE_IMAGLIST=no
6513   DEFAULT_wxUSE_LISTBOX=no
6514   DEFAULT_wxUSE_LISTCTRL=no
6515   DEFAULT_wxUSE_NOTEBOOK=no
6516   DEFAULT_wxUSE_RADIOBOX=no
6517   DEFAULT_wxUSE_RADIOBTN=no
6518   DEFAULT_wxUSE_SASH=no
6519   DEFAULT_wxUSE_SCROLLBAR=no
6520   DEFAULT_wxUSE_SLIDER=no
6521   DEFAULT_wxUSE_SPINBTN=no
6522   DEFAULT_wxUSE_SPINCTRL=no
6523   DEFAULT_wxUSE_SPLITTER=no
6524   DEFAULT_wxUSE_STATBMP=no
6525   DEFAULT_wxUSE_STATBOX=no
6526   DEFAULT_wxUSE_STATLINE=no
6527   DEFAULT_wxUSE_STATUSBAR=no
6528   DEFAULT_wxUSE_TAB_DIALOG=no
6529   DEFAULT_wxUSE_TOGGLEBTN=no
6530   DEFAULT_wxUSE_TOOLBAR=no
6531   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6532   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6533   DEFAULT_wxUSE_TOOLTIPS=no
6534   DEFAULT_wxUSE_TREECTRL=no
6535   DEFAULT_wxUSE_POPUPWIN=no
6536   DEFAULT_wxUSE_TIPWINDOW=no
6537 fi
6538
6539 ## FIXME: This is a blatant hack
6540 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6541   wxUSE_PRINTING_ARCHITECTURE=no
6542   wxUSE_HELP=no
6543   wxUSE_CLIPBOARD=no
6544   wxUSE_DRAG_AND_DROP=no
6545   wxUSE_DATAOBJ=no
6546   # Generic notebook requires tab dialog
6547   DEFAULT_wxUSE_TABDIALOG=yes
6548   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6549   DEFAULT_wxUSE_GAUGE=no
6550   DEFAULT_wxUSE_SCROLLBAR=no
6551   DEFAULT_wxUSE_COMBOBOX=no
6552   DEFAULT_wxUSE_CALCTRL=no
6553   DEFAULT_wxUSE_SPINBTN=no
6554   DEFAULT_wxUSE_SPINCTRL=no
6555   DEFAULT_wxUSE_TOOLTIPS=no
6556   DEFAULT_wxUSE_DRAGIMAGE=no
6557   DEFAULT_wxUSE_FINDREPLDLG=no
6558   DEFAULT_wxUSE_FONTDLG=no
6559   DEFAULT_wxUSE_GRID=no
6560   DEFAULT_wxUSE_NUMBERDLG=no
6561   DEFAULT_wxUSE_PROGRESSDLG=no
6562   DEFAULT_wxUSE_SASH=no
6563   DEFAULT_wxUSE_SPLITTER=no
6564   DEFAULT_wxUSE_WIZARDDLG=no
6565   DEFAULT_wxUSE_SPLITTER=no
6566   DEFAULT_wxUSE_STARTUP_TIPS=no
6567 fi
6568
6569
6570           enablestring=
6571           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6572 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6573           no_cache=0
6574           # Check whether --enable-accel or --disable-accel was given.
6575 if test "${enable_accel+set}" = set; then
6576   enableval="$enable_accel"
6577
6578                           if test "$enableval" = yes; then
6579                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6580                           else
6581                             ac_cv_use_accel='wxUSE_ACCEL=no'
6582                           fi
6583
6584 else
6585
6586                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6587                           if test "x$LINE" != x ; then
6588                             eval "DEFAULT_$LINE"
6589                           else
6590                             no_cache=1
6591                           fi
6592
6593                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6594
6595 fi;
6596
6597           eval "$ac_cv_use_accel"
6598           if test "$no_cache" != 1; then
6599             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6600           fi
6601
6602           if test "$wxUSE_ACCEL" = yes; then
6603             echo "$as_me:$LINENO: result: yes" >&5
6604 echo "${ECHO_T}yes" >&6
6605           else
6606             echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6
6608           fi
6609
6610
6611           enablestring=
6612           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6613 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6614           no_cache=0
6615           # Check whether --enable-button or --disable-button was given.
6616 if test "${enable_button+set}" = set; then
6617   enableval="$enable_button"
6618
6619                           if test "$enableval" = yes; then
6620                             ac_cv_use_button='wxUSE_BUTTON=yes'
6621                           else
6622                             ac_cv_use_button='wxUSE_BUTTON=no'
6623                           fi
6624
6625 else
6626
6627                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6628                           if test "x$LINE" != x ; then
6629                             eval "DEFAULT_$LINE"
6630                           else
6631                             no_cache=1
6632                           fi
6633
6634                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6635
6636 fi;
6637
6638           eval "$ac_cv_use_button"
6639           if test "$no_cache" != 1; then
6640             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6641           fi
6642
6643           if test "$wxUSE_BUTTON" = yes; then
6644             echo "$as_me:$LINENO: result: yes" >&5
6645 echo "${ECHO_T}yes" >&6
6646           else
6647             echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6
6649           fi
6650
6651
6652           enablestring=
6653           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6654 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6655           no_cache=0
6656           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6657 if test "${enable_bmpbutton+set}" = set; then
6658   enableval="$enable_bmpbutton"
6659
6660                           if test "$enableval" = yes; then
6661                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6662                           else
6663                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6664                           fi
6665
6666 else
6667
6668                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6669                           if test "x$LINE" != x ; then
6670                             eval "DEFAULT_$LINE"
6671                           else
6672                             no_cache=1
6673                           fi
6674
6675                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6676
6677 fi;
6678
6679           eval "$ac_cv_use_bmpbutton"
6680           if test "$no_cache" != 1; then
6681             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6682           fi
6683
6684           if test "$wxUSE_BMPBUTTON" = yes; then
6685             echo "$as_me:$LINENO: result: yes" >&5
6686 echo "${ECHO_T}yes" >&6
6687           else
6688             echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6
6690           fi
6691
6692
6693           enablestring=
6694           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6695 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6696           no_cache=0
6697           # Check whether --enable-calendar or --disable-calendar was given.
6698 if test "${enable_calendar+set}" = set; then
6699   enableval="$enable_calendar"
6700
6701                           if test "$enableval" = yes; then
6702                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6703                           else
6704                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6705                           fi
6706
6707 else
6708
6709                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6710                           if test "x$LINE" != x ; then
6711                             eval "DEFAULT_$LINE"
6712                           else
6713                             no_cache=1
6714                           fi
6715
6716                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6717
6718 fi;
6719
6720           eval "$ac_cv_use_calendar"
6721           if test "$no_cache" != 1; then
6722             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6723           fi
6724
6725           if test "$wxUSE_CALCTRL" = yes; then
6726             echo "$as_me:$LINENO: result: yes" >&5
6727 echo "${ECHO_T}yes" >&6
6728           else
6729             echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6
6731           fi
6732
6733
6734           enablestring=
6735           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6736 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6737           no_cache=0
6738           # Check whether --enable-caret or --disable-caret was given.
6739 if test "${enable_caret+set}" = set; then
6740   enableval="$enable_caret"
6741
6742                           if test "$enableval" = yes; then
6743                             ac_cv_use_caret='wxUSE_CARET=yes'
6744                           else
6745                             ac_cv_use_caret='wxUSE_CARET=no'
6746                           fi
6747
6748 else
6749
6750                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6751                           if test "x$LINE" != x ; then
6752                             eval "DEFAULT_$LINE"
6753                           else
6754                             no_cache=1
6755                           fi
6756
6757                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6758
6759 fi;
6760
6761           eval "$ac_cv_use_caret"
6762           if test "$no_cache" != 1; then
6763             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6764           fi
6765
6766           if test "$wxUSE_CARET" = yes; then
6767             echo "$as_me:$LINENO: result: yes" >&5
6768 echo "${ECHO_T}yes" >&6
6769           else
6770             echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6
6772           fi
6773
6774
6775           enablestring=
6776           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6777 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6778           no_cache=0
6779           # Check whether --enable-checkbox or --disable-checkbox was given.
6780 if test "${enable_checkbox+set}" = set; then
6781   enableval="$enable_checkbox"
6782
6783                           if test "$enableval" = yes; then
6784                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6785                           else
6786                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6787                           fi
6788
6789 else
6790
6791                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6792                           if test "x$LINE" != x ; then
6793                             eval "DEFAULT_$LINE"
6794                           else
6795                             no_cache=1
6796                           fi
6797
6798                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6799
6800 fi;
6801
6802           eval "$ac_cv_use_checkbox"
6803           if test "$no_cache" != 1; then
6804             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6805           fi
6806
6807           if test "$wxUSE_CHECKBOX" = yes; then
6808             echo "$as_me:$LINENO: result: yes" >&5
6809 echo "${ECHO_T}yes" >&6
6810           else
6811             echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6
6813           fi
6814
6815
6816           enablestring=
6817           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6818 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6819           no_cache=0
6820           # Check whether --enable-checklst or --disable-checklst was given.
6821 if test "${enable_checklst+set}" = set; then
6822   enableval="$enable_checklst"
6823
6824                           if test "$enableval" = yes; then
6825                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6826                           else
6827                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6828                           fi
6829
6830 else
6831
6832                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6833                           if test "x$LINE" != x ; then
6834                             eval "DEFAULT_$LINE"
6835                           else
6836                             no_cache=1
6837                           fi
6838
6839                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6840
6841 fi;
6842
6843           eval "$ac_cv_use_checklst"
6844           if test "$no_cache" != 1; then
6845             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6846           fi
6847
6848           if test "$wxUSE_CHECKLST" = yes; then
6849             echo "$as_me:$LINENO: result: yes" >&5
6850 echo "${ECHO_T}yes" >&6
6851           else
6852             echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6
6854           fi
6855
6856
6857           enablestring=
6858           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6859 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
6860           no_cache=0
6861           # Check whether --enable-choice or --disable-choice was given.
6862 if test "${enable_choice+set}" = set; then
6863   enableval="$enable_choice"
6864
6865                           if test "$enableval" = yes; then
6866                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6867                           else
6868                             ac_cv_use_choice='wxUSE_CHOICE=no'
6869                           fi
6870
6871 else
6872
6873                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6874                           if test "x$LINE" != x ; then
6875                             eval "DEFAULT_$LINE"
6876                           else
6877                             no_cache=1
6878                           fi
6879
6880                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6881
6882 fi;
6883
6884           eval "$ac_cv_use_choice"
6885           if test "$no_cache" != 1; then
6886             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6887           fi
6888
6889           if test "$wxUSE_CHOICE" = yes; then
6890             echo "$as_me:$LINENO: result: yes" >&5
6891 echo "${ECHO_T}yes" >&6
6892           else
6893             echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6
6895           fi
6896
6897
6898           enablestring=
6899           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6900 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
6901           no_cache=0
6902           # Check whether --enable-combobox or --disable-combobox was given.
6903 if test "${enable_combobox+set}" = set; then
6904   enableval="$enable_combobox"
6905
6906                           if test "$enableval" = yes; then
6907                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6908                           else
6909                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6910                           fi
6911
6912 else
6913
6914                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6915                           if test "x$LINE" != x ; then
6916                             eval "DEFAULT_$LINE"
6917                           else
6918                             no_cache=1
6919                           fi
6920
6921                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6922
6923 fi;
6924
6925           eval "$ac_cv_use_combobox"
6926           if test "$no_cache" != 1; then
6927             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6928           fi
6929
6930           if test "$wxUSE_COMBOBOX" = yes; then
6931             echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6
6933           else
6934             echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6936           fi
6937
6938
6939           enablestring=
6940           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6941 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
6942           no_cache=0
6943           # Check whether --enable-display or --disable-display was given.
6944 if test "${enable_display+set}" = set; then
6945   enableval="$enable_display"
6946
6947                           if test "$enableval" = yes; then
6948                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6949                           else
6950                             ac_cv_use_display='wxUSE_DISPLAY=no'
6951                           fi
6952
6953 else
6954
6955                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6956                           if test "x$LINE" != x ; then
6957                             eval "DEFAULT_$LINE"
6958                           else
6959                             no_cache=1
6960                           fi
6961
6962                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6963
6964 fi;
6965
6966           eval "$ac_cv_use_display"
6967           if test "$no_cache" != 1; then
6968             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6969           fi
6970
6971           if test "$wxUSE_DISPLAY" = yes; then
6972             echo "$as_me:$LINENO: result: yes" >&5
6973 echo "${ECHO_T}yes" >&6
6974           else
6975             echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6
6977           fi
6978
6979
6980           enablestring=
6981           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6982 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
6983           no_cache=0
6984           # Check whether --enable-gauge or --disable-gauge was given.
6985 if test "${enable_gauge+set}" = set; then
6986   enableval="$enable_gauge"
6987
6988                           if test "$enableval" = yes; then
6989                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6990                           else
6991                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6992                           fi
6993
6994 else
6995
6996                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6997                           if test "x$LINE" != x ; then
6998                             eval "DEFAULT_$LINE"
6999                           else
7000                             no_cache=1
7001                           fi
7002
7003                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7004
7005 fi;
7006
7007           eval "$ac_cv_use_gauge"
7008           if test "$no_cache" != 1; then
7009             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7010           fi
7011
7012           if test "$wxUSE_GAUGE" = yes; then
7013             echo "$as_me:$LINENO: result: yes" >&5
7014 echo "${ECHO_T}yes" >&6
7015           else
7016             echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6
7018           fi
7019
7020
7021           enablestring=
7022           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7023 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7024           no_cache=0
7025           # Check whether --enable-grid or --disable-grid was given.
7026 if test "${enable_grid+set}" = set; then
7027   enableval="$enable_grid"
7028
7029                           if test "$enableval" = yes; then
7030                             ac_cv_use_grid='wxUSE_GRID=yes'
7031                           else
7032                             ac_cv_use_grid='wxUSE_GRID=no'
7033                           fi
7034
7035 else
7036
7037                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7038                           if test "x$LINE" != x ; then
7039                             eval "DEFAULT_$LINE"
7040                           else
7041                             no_cache=1
7042                           fi
7043
7044                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7045
7046 fi;
7047
7048           eval "$ac_cv_use_grid"
7049           if test "$no_cache" != 1; then
7050             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7051           fi
7052
7053           if test "$wxUSE_GRID" = yes; then
7054             echo "$as_me:$LINENO: result: yes" >&5
7055 echo "${ECHO_T}yes" >&6
7056           else
7057             echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6
7059           fi
7060
7061
7062           enablestring=
7063           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7064 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7065           no_cache=0
7066           # Check whether --enable-imaglist or --disable-imaglist was given.
7067 if test "${enable_imaglist+set}" = set; then
7068   enableval="$enable_imaglist"
7069
7070                           if test "$enableval" = yes; then
7071                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7072                           else
7073                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7074                           fi
7075
7076 else
7077
7078                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7079                           if test "x$LINE" != x ; then
7080                             eval "DEFAULT_$LINE"
7081                           else
7082                             no_cache=1
7083                           fi
7084
7085                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7086
7087 fi;
7088
7089           eval "$ac_cv_use_imaglist"
7090           if test "$no_cache" != 1; then
7091             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7092           fi
7093
7094           if test "$wxUSE_IMAGLIST" = yes; then
7095             echo "$as_me:$LINENO: result: yes" >&5
7096 echo "${ECHO_T}yes" >&6
7097           else
7098             echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6
7100           fi
7101
7102
7103           enablestring=
7104           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7105 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7106           no_cache=0
7107           # Check whether --enable-listbox or --disable-listbox was given.
7108 if test "${enable_listbox+set}" = set; then
7109   enableval="$enable_listbox"
7110
7111                           if test "$enableval" = yes; then
7112                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7113                           else
7114                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7115                           fi
7116
7117 else
7118
7119                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7120                           if test "x$LINE" != x ; then
7121                             eval "DEFAULT_$LINE"
7122                           else
7123                             no_cache=1
7124                           fi
7125
7126                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7127
7128 fi;
7129
7130           eval "$ac_cv_use_listbox"
7131           if test "$no_cache" != 1; then
7132             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7133           fi
7134
7135           if test "$wxUSE_LISTBOX" = yes; then
7136             echo "$as_me:$LINENO: result: yes" >&5
7137 echo "${ECHO_T}yes" >&6
7138           else
7139             echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6
7141           fi
7142
7143
7144           enablestring=
7145           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7146 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7147           no_cache=0
7148           # Check whether --enable-listctrl or --disable-listctrl was given.
7149 if test "${enable_listctrl+set}" = set; then
7150   enableval="$enable_listctrl"
7151
7152                           if test "$enableval" = yes; then
7153                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7154                           else
7155                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7156                           fi
7157
7158 else
7159
7160                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7161                           if test "x$LINE" != x ; then
7162                             eval "DEFAULT_$LINE"
7163                           else
7164                             no_cache=1
7165                           fi
7166
7167                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7168
7169 fi;
7170
7171           eval "$ac_cv_use_listctrl"
7172           if test "$no_cache" != 1; then
7173             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7174           fi
7175
7176           if test "$wxUSE_LISTCTRL" = yes; then
7177             echo "$as_me:$LINENO: result: yes" >&5
7178 echo "${ECHO_T}yes" >&6
7179           else
7180             echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7182           fi
7183
7184
7185           enablestring=
7186           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7187 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7188           no_cache=0
7189           # Check whether --enable-notebook or --disable-notebook was given.
7190 if test "${enable_notebook+set}" = set; then
7191   enableval="$enable_notebook"
7192
7193                           if test "$enableval" = yes; then
7194                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7195                           else
7196                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7197                           fi
7198
7199 else
7200
7201                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7202                           if test "x$LINE" != x ; then
7203                             eval "DEFAULT_$LINE"
7204                           else
7205                             no_cache=1
7206                           fi
7207
7208                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7209
7210 fi;
7211
7212           eval "$ac_cv_use_notebook"
7213           if test "$no_cache" != 1; then
7214             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7215           fi
7216
7217           if test "$wxUSE_NOTEBOOK" = yes; then
7218             echo "$as_me:$LINENO: result: yes" >&5
7219 echo "${ECHO_T}yes" >&6
7220           else
7221             echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223           fi
7224
7225
7226           enablestring=
7227           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7228 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7229           no_cache=0
7230           # Check whether --enable-radiobox or --disable-radiobox was given.
7231 if test "${enable_radiobox+set}" = set; then
7232   enableval="$enable_radiobox"
7233
7234                           if test "$enableval" = yes; then
7235                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7236                           else
7237                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7238                           fi
7239
7240 else
7241
7242                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7243                           if test "x$LINE" != x ; then
7244                             eval "DEFAULT_$LINE"
7245                           else
7246                             no_cache=1
7247                           fi
7248
7249                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7250
7251 fi;
7252
7253           eval "$ac_cv_use_radiobox"
7254           if test "$no_cache" != 1; then
7255             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7256           fi
7257
7258           if test "$wxUSE_RADIOBOX" = yes; then
7259             echo "$as_me:$LINENO: result: yes" >&5
7260 echo "${ECHO_T}yes" >&6
7261           else
7262             echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6
7264           fi
7265
7266
7267           enablestring=
7268           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7269 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7270           no_cache=0
7271           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7272 if test "${enable_radiobtn+set}" = set; then
7273   enableval="$enable_radiobtn"
7274
7275                           if test "$enableval" = yes; then
7276                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7277                           else
7278                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7279                           fi
7280
7281 else
7282
7283                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7284                           if test "x$LINE" != x ; then
7285                             eval "DEFAULT_$LINE"
7286                           else
7287                             no_cache=1
7288                           fi
7289
7290                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7291
7292 fi;
7293
7294           eval "$ac_cv_use_radiobtn"
7295           if test "$no_cache" != 1; then
7296             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7297           fi
7298
7299           if test "$wxUSE_RADIOBTN" = yes; then
7300             echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7302           else
7303             echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6
7305           fi
7306
7307
7308           enablestring=
7309           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7310 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7311           no_cache=0
7312           # Check whether --enable-sash or --disable-sash was given.
7313 if test "${enable_sash+set}" = set; then
7314   enableval="$enable_sash"
7315
7316                           if test "$enableval" = yes; then
7317                             ac_cv_use_sash='wxUSE_SASH=yes'
7318                           else
7319                             ac_cv_use_sash='wxUSE_SASH=no'
7320                           fi
7321
7322 else
7323
7324                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7325                           if test "x$LINE" != x ; then
7326                             eval "DEFAULT_$LINE"
7327                           else
7328                             no_cache=1
7329                           fi
7330
7331                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7332
7333 fi;
7334
7335           eval "$ac_cv_use_sash"
7336           if test "$no_cache" != 1; then
7337             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7338           fi
7339
7340           if test "$wxUSE_SASH" = yes; then
7341             echo "$as_me:$LINENO: result: yes" >&5
7342 echo "${ECHO_T}yes" >&6
7343           else
7344             echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7346           fi
7347
7348
7349           enablestring=
7350           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7351 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7352           no_cache=0
7353           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7354 if test "${enable_scrollbar+set}" = set; then
7355   enableval="$enable_scrollbar"
7356
7357                           if test "$enableval" = yes; then
7358                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7359                           else
7360                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7361                           fi
7362
7363 else
7364
7365                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7366                           if test "x$LINE" != x ; then
7367                             eval "DEFAULT_$LINE"
7368                           else
7369                             no_cache=1
7370                           fi
7371
7372                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7373
7374 fi;
7375
7376           eval "$ac_cv_use_scrollbar"
7377           if test "$no_cache" != 1; then
7378             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7379           fi
7380
7381           if test "$wxUSE_SCROLLBAR" = yes; then
7382             echo "$as_me:$LINENO: result: yes" >&5
7383 echo "${ECHO_T}yes" >&6
7384           else
7385             echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7387           fi
7388
7389
7390           enablestring=
7391           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7392 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7393           no_cache=0
7394           # Check whether --enable-slider or --disable-slider was given.
7395 if test "${enable_slider+set}" = set; then
7396   enableval="$enable_slider"
7397
7398                           if test "$enableval" = yes; then
7399                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7400                           else
7401                             ac_cv_use_slider='wxUSE_SLIDER=no'
7402                           fi
7403
7404 else
7405
7406                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7407                           if test "x$LINE" != x ; then
7408                             eval "DEFAULT_$LINE"
7409                           else
7410                             no_cache=1
7411                           fi
7412
7413                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7414
7415 fi;
7416
7417           eval "$ac_cv_use_slider"
7418           if test "$no_cache" != 1; then
7419             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7420           fi
7421
7422           if test "$wxUSE_SLIDER" = yes; then
7423             echo "$as_me:$LINENO: result: yes" >&5
7424 echo "${ECHO_T}yes" >&6
7425           else
7426             echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428           fi
7429
7430
7431           enablestring=
7432           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7433 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7434           no_cache=0
7435           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7436 if test "${enable_spinbtn+set}" = set; then
7437   enableval="$enable_spinbtn"
7438
7439                           if test "$enableval" = yes; then
7440                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7441                           else
7442                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7443                           fi
7444
7445 else
7446
7447                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7448                           if test "x$LINE" != x ; then
7449                             eval "DEFAULT_$LINE"
7450                           else
7451                             no_cache=1
7452                           fi
7453
7454                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7455
7456 fi;
7457
7458           eval "$ac_cv_use_spinbtn"
7459           if test "$no_cache" != 1; then
7460             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7461           fi
7462
7463           if test "$wxUSE_SPINBTN" = yes; then
7464             echo "$as_me:$LINENO: result: yes" >&5
7465 echo "${ECHO_T}yes" >&6
7466           else
7467             echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7469           fi
7470
7471
7472           enablestring=
7473           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7474 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7475           no_cache=0
7476           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7477 if test "${enable_spinctrl+set}" = set; then
7478   enableval="$enable_spinctrl"
7479
7480                           if test "$enableval" = yes; then
7481                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7482                           else
7483                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7484                           fi
7485
7486 else
7487
7488                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7489                           if test "x$LINE" != x ; then
7490                             eval "DEFAULT_$LINE"
7491                           else
7492                             no_cache=1
7493                           fi
7494
7495                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7496
7497 fi;
7498
7499           eval "$ac_cv_use_spinctrl"
7500           if test "$no_cache" != 1; then
7501             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7502           fi
7503
7504           if test "$wxUSE_SPINCTRL" = yes; then
7505             echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7507           else
7508             echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510           fi
7511
7512
7513           enablestring=
7514           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7515 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7516           no_cache=0
7517           # Check whether --enable-splitter or --disable-splitter was given.
7518 if test "${enable_splitter+set}" = set; then
7519   enableval="$enable_splitter"
7520
7521                           if test "$enableval" = yes; then
7522                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7523                           else
7524                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7525                           fi
7526
7527 else
7528
7529                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7530                           if test "x$LINE" != x ; then
7531                             eval "DEFAULT_$LINE"
7532                           else
7533                             no_cache=1
7534                           fi
7535
7536                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7537
7538 fi;
7539
7540           eval "$ac_cv_use_splitter"
7541           if test "$no_cache" != 1; then
7542             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7543           fi
7544
7545           if test "$wxUSE_SPLITTER" = yes; then
7546             echo "$as_me:$LINENO: result: yes" >&5
7547 echo "${ECHO_T}yes" >&6
7548           else
7549             echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7551           fi
7552
7553
7554           enablestring=
7555           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7556 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7557           no_cache=0
7558           # Check whether --enable-statbmp or --disable-statbmp was given.
7559 if test "${enable_statbmp+set}" = set; then
7560   enableval="$enable_statbmp"
7561
7562                           if test "$enableval" = yes; then
7563                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7564                           else
7565                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7566                           fi
7567
7568 else
7569
7570                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7571                           if test "x$LINE" != x ; then
7572                             eval "DEFAULT_$LINE"
7573                           else
7574                             no_cache=1
7575                           fi
7576
7577                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7578
7579 fi;
7580
7581           eval "$ac_cv_use_statbmp"
7582           if test "$no_cache" != 1; then
7583             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7584           fi
7585
7586           if test "$wxUSE_STATBMP" = yes; then
7587             echo "$as_me:$LINENO: result: yes" >&5
7588 echo "${ECHO_T}yes" >&6
7589           else
7590             echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7592           fi
7593
7594
7595           enablestring=
7596           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7597 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7598           no_cache=0
7599           # Check whether --enable-statbox or --disable-statbox was given.
7600 if test "${enable_statbox+set}" = set; then
7601   enableval="$enable_statbox"
7602
7603                           if test "$enableval" = yes; then
7604                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7605                           else
7606                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7607                           fi
7608
7609 else
7610
7611                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7612                           if test "x$LINE" != x ; then
7613                             eval "DEFAULT_$LINE"
7614                           else
7615                             no_cache=1
7616                           fi
7617
7618                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7619
7620 fi;
7621
7622           eval "$ac_cv_use_statbox"
7623           if test "$no_cache" != 1; then
7624             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7625           fi
7626
7627           if test "$wxUSE_STATBOX" = yes; then
7628             echo "$as_me:$LINENO: result: yes" >&5
7629 echo "${ECHO_T}yes" >&6
7630           else
7631             echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7633           fi
7634
7635
7636           enablestring=
7637           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7638 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7639           no_cache=0
7640           # Check whether --enable-statline or --disable-statline was given.
7641 if test "${enable_statline+set}" = set; then
7642   enableval="$enable_statline"
7643
7644                           if test "$enableval" = yes; then
7645                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7646                           else
7647                             ac_cv_use_statline='wxUSE_STATLINE=no'
7648                           fi
7649
7650 else
7651
7652                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7653                           if test "x$LINE" != x ; then
7654                             eval "DEFAULT_$LINE"
7655                           else
7656                             no_cache=1
7657                           fi
7658
7659                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7660
7661 fi;
7662
7663           eval "$ac_cv_use_statline"
7664           if test "$no_cache" != 1; then
7665             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7666           fi
7667
7668           if test "$wxUSE_STATLINE" = yes; then
7669             echo "$as_me:$LINENO: result: yes" >&5
7670 echo "${ECHO_T}yes" >&6
7671           else
7672             echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6
7674           fi
7675
7676
7677           enablestring=
7678           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7679 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7680           no_cache=0
7681           # Check whether --enable-stattext or --disable-stattext was given.
7682 if test "${enable_stattext+set}" = set; then
7683   enableval="$enable_stattext"
7684
7685                           if test "$enableval" = yes; then
7686                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7687                           else
7688                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7689                           fi
7690
7691 else
7692
7693                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7694                           if test "x$LINE" != x ; then
7695                             eval "DEFAULT_$LINE"
7696                           else
7697                             no_cache=1
7698                           fi
7699
7700                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7701
7702 fi;
7703
7704           eval "$ac_cv_use_stattext"
7705           if test "$no_cache" != 1; then
7706             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7707           fi
7708
7709           if test "$wxUSE_STATTEXT" = yes; then
7710             echo "$as_me:$LINENO: result: yes" >&5
7711 echo "${ECHO_T}yes" >&6
7712           else
7713             echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7715           fi
7716
7717
7718           enablestring=
7719           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7720 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7721           no_cache=0
7722           # Check whether --enable-statusbar or --disable-statusbar was given.
7723 if test "${enable_statusbar+set}" = set; then
7724   enableval="$enable_statusbar"
7725
7726                           if test "$enableval" = yes; then
7727                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7728                           else
7729                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7730                           fi
7731
7732 else
7733
7734                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7735                           if test "x$LINE" != x ; then
7736                             eval "DEFAULT_$LINE"
7737                           else
7738                             no_cache=1
7739                           fi
7740
7741                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7742
7743 fi;
7744
7745           eval "$ac_cv_use_statusbar"
7746           if test "$no_cache" != 1; then
7747             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7748           fi
7749
7750           if test "$wxUSE_STATUSBAR" = yes; then
7751             echo "$as_me:$LINENO: result: yes" >&5
7752 echo "${ECHO_T}yes" >&6
7753           else
7754             echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6
7756           fi
7757
7758
7759           enablestring=
7760           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7761 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7762           no_cache=0
7763           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7764 if test "${enable_tabdialog+set}" = set; then
7765   enableval="$enable_tabdialog"
7766
7767                           if test "$enableval" = yes; then
7768                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7769                           else
7770                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7771                           fi
7772
7773 else
7774
7775                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7776                           if test "x$LINE" != x ; then
7777                             eval "DEFAULT_$LINE"
7778                           else
7779                             no_cache=1
7780                           fi
7781
7782                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7783
7784 fi;
7785
7786           eval "$ac_cv_use_tabdialog"
7787           if test "$no_cache" != 1; then
7788             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7789           fi
7790
7791           if test "$wxUSE_TABDIALOG" = yes; then
7792             echo "$as_me:$LINENO: result: yes" >&5
7793 echo "${ECHO_T}yes" >&6
7794           else
7795             echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7797           fi
7798
7799
7800           enablestring=
7801           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7802 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
7803           no_cache=0
7804           # Check whether --enable-textctrl or --disable-textctrl was given.
7805 if test "${enable_textctrl+set}" = set; then
7806   enableval="$enable_textctrl"
7807
7808                           if test "$enableval" = yes; then
7809                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7810                           else
7811                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7812                           fi
7813
7814 else
7815
7816                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7817                           if test "x$LINE" != x ; then
7818                             eval "DEFAULT_$LINE"
7819                           else
7820                             no_cache=1
7821                           fi
7822
7823                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7824
7825 fi;
7826
7827           eval "$ac_cv_use_textctrl"
7828           if test "$no_cache" != 1; then
7829             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7830           fi
7831
7832           if test "$wxUSE_TEXTCTRL" = yes; then
7833             echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7835           else
7836             echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7838           fi
7839
7840
7841           enablestring=
7842           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7843 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
7844           no_cache=0
7845           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7846 if test "${enable_togglebtn+set}" = set; then
7847   enableval="$enable_togglebtn"
7848
7849                           if test "$enableval" = yes; then
7850                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7851                           else
7852                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7853                           fi
7854
7855 else
7856
7857                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7858                           if test "x$LINE" != x ; then
7859                             eval "DEFAULT_$LINE"
7860                           else
7861                             no_cache=1
7862                           fi
7863
7864                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7865
7866 fi;
7867
7868           eval "$ac_cv_use_togglebtn"
7869           if test "$no_cache" != 1; then
7870             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7871           fi
7872
7873           if test "$wxUSE_TOGGLEBTN" = yes; then
7874             echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7876           else
7877             echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6
7879           fi
7880
7881
7882           enablestring=
7883           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7884 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
7885           no_cache=0
7886           # Check whether --enable-toolbar or --disable-toolbar was given.
7887 if test "${enable_toolbar+set}" = set; then
7888   enableval="$enable_toolbar"
7889
7890                           if test "$enableval" = yes; then
7891                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7892                           else
7893                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7894                           fi
7895
7896 else
7897
7898                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7899                           if test "x$LINE" != x ; then
7900                             eval "DEFAULT_$LINE"
7901                           else
7902                             no_cache=1
7903                           fi
7904
7905                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7906
7907 fi;
7908
7909           eval "$ac_cv_use_toolbar"
7910           if test "$no_cache" != 1; then
7911             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7912           fi
7913
7914           if test "$wxUSE_TOOLBAR" = yes; then
7915             echo "$as_me:$LINENO: result: yes" >&5
7916 echo "${ECHO_T}yes" >&6
7917           else
7918             echo "$as_me:$LINENO: result: no" >&5
7919 echo "${ECHO_T}no" >&6
7920           fi
7921
7922
7923           enablestring=
7924           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7925 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
7926           no_cache=0
7927           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7928 if test "${enable_tbarnative+set}" = set; then
7929   enableval="$enable_tbarnative"
7930
7931                           if test "$enableval" = yes; then
7932                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7933                           else
7934                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7935                           fi
7936
7937 else
7938
7939                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7940                           if test "x$LINE" != x ; then
7941                             eval "DEFAULT_$LINE"
7942                           else
7943                             no_cache=1
7944                           fi
7945
7946                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7947
7948 fi;
7949
7950           eval "$ac_cv_use_tbarnative"
7951           if test "$no_cache" != 1; then
7952             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7953           fi
7954
7955           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7956             echo "$as_me:$LINENO: result: yes" >&5
7957 echo "${ECHO_T}yes" >&6
7958           else
7959             echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6
7961           fi
7962
7963
7964           enablestring=
7965           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7966 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
7967           no_cache=0
7968           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7969 if test "${enable_tbarsmpl+set}" = set; then
7970   enableval="$enable_tbarsmpl"
7971
7972                           if test "$enableval" = yes; then
7973                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7974                           else
7975                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7976                           fi
7977
7978 else
7979
7980                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7981                           if test "x$LINE" != x ; then
7982                             eval "DEFAULT_$LINE"
7983                           else
7984                             no_cache=1
7985                           fi
7986
7987                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7988
7989 fi;
7990
7991           eval "$ac_cv_use_tbarsmpl"
7992           if test "$no_cache" != 1; then
7993             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7994           fi
7995
7996           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7997             echo "$as_me:$LINENO: result: yes" >&5
7998 echo "${ECHO_T}yes" >&6
7999           else
8000             echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8002           fi
8003
8004
8005           enablestring=
8006           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8007 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8008           no_cache=0
8009           # Check whether --enable-treectrl or --disable-treectrl was given.
8010 if test "${enable_treectrl+set}" = set; then
8011   enableval="$enable_treectrl"
8012
8013                           if test "$enableval" = yes; then
8014                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8015                           else
8016                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8017                           fi
8018
8019 else
8020
8021                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8022                           if test "x$LINE" != x ; then
8023                             eval "DEFAULT_$LINE"
8024                           else
8025                             no_cache=1
8026                           fi
8027
8028                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8029
8030 fi;
8031
8032           eval "$ac_cv_use_treectrl"
8033           if test "$no_cache" != 1; then
8034             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8035           fi
8036
8037           if test "$wxUSE_TREECTRL" = yes; then
8038             echo "$as_me:$LINENO: result: yes" >&5
8039 echo "${ECHO_T}yes" >&6
8040           else
8041             echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8043           fi
8044
8045
8046           enablestring=
8047           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8048 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8049           no_cache=0
8050           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8051 if test "${enable_tipwindow+set}" = set; then
8052   enableval="$enable_tipwindow"
8053
8054                           if test "$enableval" = yes; then
8055                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8056                           else
8057                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8058                           fi
8059
8060 else
8061
8062                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8063                           if test "x$LINE" != x ; then
8064                             eval "DEFAULT_$LINE"
8065                           else
8066                             no_cache=1
8067                           fi
8068
8069                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8070
8071 fi;
8072
8073           eval "$ac_cv_use_tipwindow"
8074           if test "$no_cache" != 1; then
8075             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8076           fi
8077
8078           if test "$wxUSE_TIPWINDOW" = yes; then
8079             echo "$as_me:$LINENO: result: yes" >&5
8080 echo "${ECHO_T}yes" >&6
8081           else
8082             echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6
8084           fi
8085
8086
8087           enablestring=
8088           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8089 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8090           no_cache=0
8091           # Check whether --enable-popupwin or --disable-popupwin was given.
8092 if test "${enable_popupwin+set}" = set; then
8093   enableval="$enable_popupwin"
8094
8095                           if test "$enableval" = yes; then
8096                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8097                           else
8098                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8099                           fi
8100
8101 else
8102
8103                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8104                           if test "x$LINE" != x ; then
8105                             eval "DEFAULT_$LINE"
8106                           else
8107                             no_cache=1
8108                           fi
8109
8110                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8111
8112 fi;
8113
8114           eval "$ac_cv_use_popupwin"
8115           if test "$no_cache" != 1; then
8116             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8117           fi
8118
8119           if test "$wxUSE_POPUPWIN" = yes; then
8120             echo "$as_me:$LINENO: result: yes" >&5
8121 echo "${ECHO_T}yes" >&6
8122           else
8123             echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6
8125           fi
8126
8127
8128
8129
8130           enablestring=
8131           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8132 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8133           no_cache=0
8134           # Check whether --enable-commondlg or --disable-commondlg was given.
8135 if test "${enable_commondlg+set}" = set; then
8136   enableval="$enable_commondlg"
8137
8138                           if test "$enableval" = yes; then
8139                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8140                           else
8141                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8142                           fi
8143
8144 else
8145
8146                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8147                           if test "x$LINE" != x ; then
8148                             eval "DEFAULT_$LINE"
8149                           else
8150                             no_cache=1
8151                           fi
8152
8153                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8154
8155 fi;
8156
8157           eval "$ac_cv_use_commondlg"
8158           if test "$no_cache" != 1; then
8159             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8160           fi
8161
8162           if test "$wxUSE_COMMONDLGS" = yes; then
8163             echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8165           else
8166             echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168           fi
8169
8170
8171           enablestring=
8172           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8173 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8174           no_cache=0
8175           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8176 if test "${enable_choicedlg+set}" = set; then
8177   enableval="$enable_choicedlg"
8178
8179                           if test "$enableval" = yes; then
8180                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8181                           else
8182                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8183                           fi
8184
8185 else
8186
8187                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8188                           if test "x$LINE" != x ; then
8189                             eval "DEFAULT_$LINE"
8190                           else
8191                             no_cache=1
8192                           fi
8193
8194                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8195
8196 fi;
8197
8198           eval "$ac_cv_use_choicedlg"
8199           if test "$no_cache" != 1; then
8200             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8201           fi
8202
8203           if test "$wxUSE_CHOICEDLG" = yes; then
8204             echo "$as_me:$LINENO: result: yes" >&5
8205 echo "${ECHO_T}yes" >&6
8206           else
8207             echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8209           fi
8210
8211
8212           enablestring=
8213           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8214 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8215           no_cache=0
8216           # Check whether --enable-coldlg or --disable-coldlg was given.
8217 if test "${enable_coldlg+set}" = set; then
8218   enableval="$enable_coldlg"
8219
8220                           if test "$enableval" = yes; then
8221                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8222                           else
8223                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8224                           fi
8225
8226 else
8227
8228                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8229                           if test "x$LINE" != x ; then
8230                             eval "DEFAULT_$LINE"
8231                           else
8232                             no_cache=1
8233                           fi
8234
8235                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8236
8237 fi;
8238
8239           eval "$ac_cv_use_coldlg"
8240           if test "$no_cache" != 1; then
8241             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8242           fi
8243
8244           if test "$wxUSE_COLOURDLG" = yes; then
8245             echo "$as_me:$LINENO: result: yes" >&5
8246 echo "${ECHO_T}yes" >&6
8247           else
8248             echo "$as_me:$LINENO: result: no" >&5
8249 echo "${ECHO_T}no" >&6
8250           fi
8251
8252
8253           enablestring=
8254           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8255 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8256           no_cache=0
8257           # Check whether --enable-filedlg or --disable-filedlg was given.
8258 if test "${enable_filedlg+set}" = set; then
8259   enableval="$enable_filedlg"
8260
8261                           if test "$enableval" = yes; then
8262                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8263                           else
8264                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8265                           fi
8266
8267 else
8268
8269                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8270                           if test "x$LINE" != x ; then
8271                             eval "DEFAULT_$LINE"
8272                           else
8273                             no_cache=1
8274                           fi
8275
8276                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8277
8278 fi;
8279
8280           eval "$ac_cv_use_filedlg"
8281           if test "$no_cache" != 1; then
8282             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8283           fi
8284
8285           if test "$wxUSE_FILEDLG" = yes; then
8286             echo "$as_me:$LINENO: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8288           else
8289             echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8291           fi
8292
8293
8294           enablestring=
8295           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8296 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8297           no_cache=0
8298           # Check whether --enable-finddlg or --disable-finddlg was given.
8299 if test "${enable_finddlg+set}" = set; then
8300   enableval="$enable_finddlg"
8301
8302                           if test "$enableval" = yes; then
8303                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8304                           else
8305                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8306                           fi
8307
8308 else
8309
8310                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8311                           if test "x$LINE" != x ; then
8312                             eval "DEFAULT_$LINE"
8313                           else
8314                             no_cache=1
8315                           fi
8316
8317                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8318
8319 fi;
8320
8321           eval "$ac_cv_use_finddlg"
8322           if test "$no_cache" != 1; then
8323             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8324           fi
8325
8326           if test "$wxUSE_FINDREPLDLG" = yes; then
8327             echo "$as_me:$LINENO: result: yes" >&5
8328 echo "${ECHO_T}yes" >&6
8329           else
8330             echo "$as_me:$LINENO: result: no" >&5
8331 echo "${ECHO_T}no" >&6
8332           fi
8333
8334
8335           enablestring=
8336           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8337 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8338           no_cache=0
8339           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8340 if test "${enable_fontdlg+set}" = set; then
8341   enableval="$enable_fontdlg"
8342
8343                           if test "$enableval" = yes; then
8344                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8345                           else
8346                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8347                           fi
8348
8349 else
8350
8351                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8352                           if test "x$LINE" != x ; then
8353                             eval "DEFAULT_$LINE"
8354                           else
8355                             no_cache=1
8356                           fi
8357
8358                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8359
8360 fi;
8361
8362           eval "$ac_cv_use_fontdlg"
8363           if test "$no_cache" != 1; then
8364             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8365           fi
8366
8367           if test "$wxUSE_FONTDLG" = yes; then
8368             echo "$as_me:$LINENO: result: yes" >&5
8369 echo "${ECHO_T}yes" >&6
8370           else
8371             echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6
8373           fi
8374
8375
8376           enablestring=
8377           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8378 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8379           no_cache=0
8380           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8381 if test "${enable_dirdlg+set}" = set; then
8382   enableval="$enable_dirdlg"
8383
8384                           if test "$enableval" = yes; then
8385                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8386                           else
8387                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8388                           fi
8389
8390 else
8391
8392                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8393                           if test "x$LINE" != x ; then
8394                             eval "DEFAULT_$LINE"
8395                           else
8396                             no_cache=1
8397                           fi
8398
8399                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8400
8401 fi;
8402
8403           eval "$ac_cv_use_dirdlg"
8404           if test "$no_cache" != 1; then
8405             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8406           fi
8407
8408           if test "$wxUSE_DIRDLG" = yes; then
8409             echo "$as_me:$LINENO: result: yes" >&5
8410 echo "${ECHO_T}yes" >&6
8411           else
8412             echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6
8414           fi
8415
8416
8417           enablestring=
8418           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8419 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8420           no_cache=0
8421           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8422 if test "${enable_msgdlg+set}" = set; then
8423   enableval="$enable_msgdlg"
8424
8425                           if test "$enableval" = yes; then
8426                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8427                           else
8428                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8429                           fi
8430
8431 else
8432
8433                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8434                           if test "x$LINE" != x ; then
8435                             eval "DEFAULT_$LINE"
8436                           else
8437                             no_cache=1
8438                           fi
8439
8440                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8441
8442 fi;
8443
8444           eval "$ac_cv_use_msgdlg"
8445           if test "$no_cache" != 1; then
8446             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8447           fi
8448
8449           if test "$wxUSE_MSGDLG" = yes; then
8450             echo "$as_me:$LINENO: result: yes" >&5
8451 echo "${ECHO_T}yes" >&6
8452           else
8453             echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455           fi
8456
8457
8458           enablestring=
8459           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8460 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8461           no_cache=0
8462           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8463 if test "${enable_numberdlg+set}" = set; then
8464   enableval="$enable_numberdlg"
8465
8466                           if test "$enableval" = yes; then
8467                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8468                           else
8469                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8470                           fi
8471
8472 else
8473
8474                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8475                           if test "x$LINE" != x ; then
8476                             eval "DEFAULT_$LINE"
8477                           else
8478                             no_cache=1
8479                           fi
8480
8481                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8482
8483 fi;
8484
8485           eval "$ac_cv_use_numberdlg"
8486           if test "$no_cache" != 1; then
8487             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8488           fi
8489
8490           if test "$wxUSE_NUMBERDLG" = yes; then
8491             echo "$as_me:$LINENO: result: yes" >&5
8492 echo "${ECHO_T}yes" >&6
8493           else
8494             echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6
8496           fi
8497
8498
8499           enablestring=
8500           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8501 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8502           no_cache=0
8503           # Check whether --enable-splash or --disable-splash was given.
8504 if test "${enable_splash+set}" = set; then
8505   enableval="$enable_splash"
8506
8507                           if test "$enableval" = yes; then
8508                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8509                           else
8510                             ac_cv_use_splash='wxUSE_SPLASH=no'
8511                           fi
8512
8513 else
8514
8515                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8516                           if test "x$LINE" != x ; then
8517                             eval "DEFAULT_$LINE"
8518                           else
8519                             no_cache=1
8520                           fi
8521
8522                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8523
8524 fi;
8525
8526           eval "$ac_cv_use_splash"
8527           if test "$no_cache" != 1; then
8528             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8529           fi
8530
8531           if test "$wxUSE_SPLASH" = yes; then
8532             echo "$as_me:$LINENO: result: yes" >&5
8533 echo "${ECHO_T}yes" >&6
8534           else
8535             echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8537           fi
8538
8539
8540           enablestring=
8541           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8542 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8543           no_cache=0
8544           # Check whether --enable-textdlg or --disable-textdlg was given.
8545 if test "${enable_textdlg+set}" = set; then
8546   enableval="$enable_textdlg"
8547
8548                           if test "$enableval" = yes; then
8549                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8550                           else
8551                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8552                           fi
8553
8554 else
8555
8556                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8557                           if test "x$LINE" != x ; then
8558                             eval "DEFAULT_$LINE"
8559                           else
8560                             no_cache=1
8561                           fi
8562
8563                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8564
8565 fi;
8566
8567           eval "$ac_cv_use_textdlg"
8568           if test "$no_cache" != 1; then
8569             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8570           fi
8571
8572           if test "$wxUSE_TEXTDLG" = yes; then
8573             echo "$as_me:$LINENO: result: yes" >&5
8574 echo "${ECHO_T}yes" >&6
8575           else
8576             echo "$as_me:$LINENO: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578           fi
8579
8580
8581           enablestring=
8582           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8583 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8584           no_cache=0
8585           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8586 if test "${enable_tipdlg+set}" = set; then
8587   enableval="$enable_tipdlg"
8588
8589                           if test "$enableval" = yes; then
8590                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8591                           else
8592                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8593                           fi
8594
8595 else
8596
8597                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8598                           if test "x$LINE" != x ; then
8599                             eval "DEFAULT_$LINE"
8600                           else
8601                             no_cache=1
8602                           fi
8603
8604                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8605
8606 fi;
8607
8608           eval "$ac_cv_use_tipdlg"
8609           if test "$no_cache" != 1; then
8610             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8611           fi
8612
8613           if test "$wxUSE_STARTUP_TIPS" = yes; then
8614             echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8616           else
8617             echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6
8619           fi
8620
8621
8622           enablestring=
8623           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8624 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8625           no_cache=0
8626           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8627 if test "${enable_progressdlg+set}" = set; then
8628   enableval="$enable_progressdlg"
8629
8630                           if test "$enableval" = yes; then
8631                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8632                           else
8633                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8634                           fi
8635
8636 else
8637
8638                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8639                           if test "x$LINE" != x ; then
8640                             eval "DEFAULT_$LINE"
8641                           else
8642                             no_cache=1
8643                           fi
8644
8645                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8646
8647 fi;
8648
8649           eval "$ac_cv_use_progressdlg"
8650           if test "$no_cache" != 1; then
8651             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8652           fi
8653
8654           if test "$wxUSE_PROGRESSDLG" = yes; then
8655             echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6
8657           else
8658             echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660           fi
8661
8662
8663           enablestring=
8664           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8665 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8666           no_cache=0
8667           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8668 if test "${enable_wizarddlg+set}" = set; then
8669   enableval="$enable_wizarddlg"
8670
8671                           if test "$enableval" = yes; then
8672                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8673                           else
8674                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8675                           fi
8676
8677 else
8678
8679                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8680                           if test "x$LINE" != x ; then
8681                             eval "DEFAULT_$LINE"
8682                           else
8683                             no_cache=1
8684                           fi
8685
8686                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8687
8688 fi;
8689
8690           eval "$ac_cv_use_wizarddlg"
8691           if test "$no_cache" != 1; then
8692             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8693           fi
8694
8695           if test "$wxUSE_WIZARDDLG" = yes; then
8696             echo "$as_me:$LINENO: result: yes" >&5
8697 echo "${ECHO_T}yes" >&6
8698           else
8699             echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701           fi
8702
8703
8704
8705
8706           enablestring=
8707           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8708 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8709           no_cache=0
8710           # Check whether --enable-menus or --disable-menus was given.
8711 if test "${enable_menus+set}" = set; then
8712   enableval="$enable_menus"
8713
8714                           if test "$enableval" = yes; then
8715                             ac_cv_use_menus='wxUSE_MENUS=yes'
8716                           else
8717                             ac_cv_use_menus='wxUSE_MENUS=no'
8718                           fi
8719
8720 else
8721
8722                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8723                           if test "x$LINE" != x ; then
8724                             eval "DEFAULT_$LINE"
8725                           else
8726                             no_cache=1
8727                           fi
8728
8729                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8730
8731 fi;
8732
8733           eval "$ac_cv_use_menus"
8734           if test "$no_cache" != 1; then
8735             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8736           fi
8737
8738           if test "$wxUSE_MENUS" = yes; then
8739             echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6
8741           else
8742             echo "$as_me:$LINENO: result: no" >&5
8743 echo "${ECHO_T}no" >&6
8744           fi
8745
8746
8747           enablestring=
8748           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8749 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8750           no_cache=0
8751           # Check whether --enable-miniframe or --disable-miniframe was given.
8752 if test "${enable_miniframe+set}" = set; then
8753   enableval="$enable_miniframe"
8754
8755                           if test "$enableval" = yes; then
8756                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8757                           else
8758                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8759                           fi
8760
8761 else
8762
8763                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8764                           if test "x$LINE" != x ; then
8765                             eval "DEFAULT_$LINE"
8766                           else
8767                             no_cache=1
8768                           fi
8769
8770                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8771
8772 fi;
8773
8774           eval "$ac_cv_use_miniframe"
8775           if test "$no_cache" != 1; then
8776             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8777           fi
8778
8779           if test "$wxUSE_MINIFRAME" = yes; then
8780             echo "$as_me:$LINENO: result: yes" >&5
8781 echo "${ECHO_T}yes" >&6
8782           else
8783             echo "$as_me:$LINENO: result: no" >&5
8784 echo "${ECHO_T}no" >&6
8785           fi
8786
8787
8788           enablestring=
8789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8790 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
8791           no_cache=0
8792           # Check whether --enable-tooltips or --disable-tooltips was given.
8793 if test "${enable_tooltips+set}" = set; then
8794   enableval="$enable_tooltips"
8795
8796                           if test "$enableval" = yes; then
8797                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8798                           else
8799                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8800                           fi
8801
8802 else
8803
8804                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8805                           if test "x$LINE" != x ; then
8806                             eval "DEFAULT_$LINE"
8807                           else
8808                             no_cache=1
8809                           fi
8810
8811                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8812
8813 fi;
8814
8815           eval "$ac_cv_use_tooltips"
8816           if test "$no_cache" != 1; then
8817             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8818           fi
8819
8820           if test "$wxUSE_TOOLTIPS" = yes; then
8821             echo "$as_me:$LINENO: result: yes" >&5
8822 echo "${ECHO_T}yes" >&6
8823           else
8824             echo "$as_me:$LINENO: result: no" >&5
8825 echo "${ECHO_T}no" >&6
8826           fi
8827
8828
8829           enablestring=
8830           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8831 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
8832           no_cache=0
8833           # Check whether --enable-splines or --disable-splines was given.
8834 if test "${enable_splines+set}" = set; then
8835   enableval="$enable_splines"
8836
8837                           if test "$enableval" = yes; then
8838                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8839                           else
8840                             ac_cv_use_splines='wxUSE_SPLINES=no'
8841                           fi
8842
8843 else
8844
8845                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8846                           if test "x$LINE" != x ; then
8847                             eval "DEFAULT_$LINE"
8848                           else
8849                             no_cache=1
8850                           fi
8851
8852                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8853
8854 fi;
8855
8856           eval "$ac_cv_use_splines"
8857           if test "$no_cache" != 1; then
8858             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8859           fi
8860
8861           if test "$wxUSE_SPLINES" = yes; then
8862             echo "$as_me:$LINENO: result: yes" >&5
8863 echo "${ECHO_T}yes" >&6
8864           else
8865             echo "$as_me:$LINENO: result: no" >&5
8866 echo "${ECHO_T}no" >&6
8867           fi
8868
8869
8870           enablestring=
8871           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8872 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
8873           no_cache=0
8874           # Check whether --enable-validators or --disable-validators was given.
8875 if test "${enable_validators+set}" = set; then
8876   enableval="$enable_validators"
8877
8878                           if test "$enableval" = yes; then
8879                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8880                           else
8881                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8882                           fi
8883
8884 else
8885
8886                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8887                           if test "x$LINE" != x ; then
8888                             eval "DEFAULT_$LINE"
8889                           else
8890                             no_cache=1
8891                           fi
8892
8893                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8894
8895 fi;
8896
8897           eval "$ac_cv_use_validators"
8898           if test "$no_cache" != 1; then
8899             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8900           fi
8901
8902           if test "$wxUSE_VALIDATORS" = yes; then
8903             echo "$as_me:$LINENO: result: yes" >&5
8904 echo "${ECHO_T}yes" >&6
8905           else
8906             echo "$as_me:$LINENO: result: no" >&5
8907 echo "${ECHO_T}no" >&6
8908           fi
8909
8910
8911           enablestring=
8912           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8913 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
8914           no_cache=0
8915           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8916 if test "${enable_busyinfo+set}" = set; then
8917   enableval="$enable_busyinfo"
8918
8919                           if test "$enableval" = yes; then
8920                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8921                           else
8922                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8923                           fi
8924
8925 else
8926
8927                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8928                           if test "x$LINE" != x ; then
8929                             eval "DEFAULT_$LINE"
8930                           else
8931                             no_cache=1
8932                           fi
8933
8934                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8935
8936 fi;
8937
8938           eval "$ac_cv_use_busyinfo"
8939           if test "$no_cache" != 1; then
8940             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8941           fi
8942
8943           if test "$wxUSE_BUSYINFO" = yes; then
8944             echo "$as_me:$LINENO: result: yes" >&5
8945 echo "${ECHO_T}yes" >&6
8946           else
8947             echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6
8949           fi
8950
8951
8952           enablestring=
8953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8954 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
8955           no_cache=0
8956           # Check whether --enable-joystick or --disable-joystick was given.
8957 if test "${enable_joystick+set}" = set; then
8958   enableval="$enable_joystick"
8959
8960                           if test "$enableval" = yes; then
8961                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8962                           else
8963                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8964                           fi
8965
8966 else
8967
8968                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8969                           if test "x$LINE" != x ; then
8970                             eval "DEFAULT_$LINE"
8971                           else
8972                             no_cache=1
8973                           fi
8974
8975                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8976
8977 fi;
8978
8979           eval "$ac_cv_use_joystick"
8980           if test "$no_cache" != 1; then
8981             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8982           fi
8983
8984           if test "$wxUSE_JOYSTICK" = yes; then
8985             echo "$as_me:$LINENO: result: yes" >&5
8986 echo "${ECHO_T}yes" >&6
8987           else
8988             echo "$as_me:$LINENO: result: no" >&5
8989 echo "${ECHO_T}no" >&6
8990           fi
8991
8992
8993           enablestring=
8994           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8995 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
8996           no_cache=0
8997           # Check whether --enable-metafile or --disable-metafile was given.
8998 if test "${enable_metafile+set}" = set; then
8999   enableval="$enable_metafile"
9000
9001                           if test "$enableval" = yes; then
9002                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9003                           else
9004                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9005                           fi
9006
9007 else
9008
9009                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9010                           if test "x$LINE" != x ; then
9011                             eval "DEFAULT_$LINE"
9012                           else
9013                             no_cache=1
9014                           fi
9015
9016                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9017
9018 fi;
9019
9020           eval "$ac_cv_use_metafile"
9021           if test "$no_cache" != 1; then
9022             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9023           fi
9024
9025           if test "$wxUSE_METAFILE" = yes; then
9026             echo "$as_me:$LINENO: result: yes" >&5
9027 echo "${ECHO_T}yes" >&6
9028           else
9029             echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9031           fi
9032
9033
9034           enablestring=
9035           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9036 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9037           no_cache=0
9038           # Check whether --enable-dragimage or --disable-dragimage was given.
9039 if test "${enable_dragimage+set}" = set; then
9040   enableval="$enable_dragimage"
9041
9042                           if test "$enableval" = yes; then
9043                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9044                           else
9045                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9046                           fi
9047
9048 else
9049
9050                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9051                           if test "x$LINE" != x ; then
9052                             eval "DEFAULT_$LINE"
9053                           else
9054                             no_cache=1
9055                           fi
9056
9057                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9058
9059 fi;
9060
9061           eval "$ac_cv_use_dragimage"
9062           if test "$no_cache" != 1; then
9063             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9064           fi
9065
9066           if test "$wxUSE_DRAGIMAGE" = yes; then
9067             echo "$as_me:$LINENO: result: yes" >&5
9068 echo "${ECHO_T}yes" >&6
9069           else
9070             echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9072           fi
9073
9074
9075           enablestring=
9076           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9077 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9078           no_cache=0
9079           # Check whether --enable-accessibility or --disable-accessibility was given.
9080 if test "${enable_accessibility+set}" = set; then
9081   enableval="$enable_accessibility"
9082
9083                           if test "$enableval" = yes; then
9084                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9085                           else
9086                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9087                           fi
9088
9089 else
9090
9091                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9092                           if test "x$LINE" != x ; then
9093                             eval "DEFAULT_$LINE"
9094                           else
9095                             no_cache=1
9096                           fi
9097
9098                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9099
9100 fi;
9101
9102           eval "$ac_cv_use_accessibility"
9103           if test "$no_cache" != 1; then
9104             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9105           fi
9106
9107           if test "$wxUSE_ACCESSIBILITY" = yes; then
9108             echo "$as_me:$LINENO: result: yes" >&5
9109 echo "${ECHO_T}yes" >&6
9110           else
9111             echo "$as_me:$LINENO: result: no" >&5
9112 echo "${ECHO_T}no" >&6
9113           fi
9114
9115
9116
9117
9118           enablestring=
9119           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9120 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9121           no_cache=0
9122           # Check whether --enable-palette or --disable-palette was given.
9123 if test "${enable_palette+set}" = set; then
9124   enableval="$enable_palette"
9125
9126                           if test "$enableval" = yes; then
9127                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9128                           else
9129                             ac_cv_use_palette='wxUSE_PALETTE=no'
9130                           fi
9131
9132 else
9133
9134                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9135                           if test "x$LINE" != x ; then
9136                             eval "DEFAULT_$LINE"
9137                           else
9138                             no_cache=1
9139                           fi
9140
9141                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9142
9143 fi;
9144
9145           eval "$ac_cv_use_palette"
9146           if test "$no_cache" != 1; then
9147             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9148           fi
9149
9150           if test "$wxUSE_PALETTE" = yes; then
9151             echo "$as_me:$LINENO: result: yes" >&5
9152 echo "${ECHO_T}yes" >&6
9153           else
9154             echo "$as_me:$LINENO: result: no" >&5
9155 echo "${ECHO_T}no" >&6
9156           fi
9157
9158
9159           enablestring=
9160           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9161 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9162           no_cache=0
9163           # Check whether --enable-image or --disable-image was given.
9164 if test "${enable_image+set}" = set; then
9165   enableval="$enable_image"
9166
9167                           if test "$enableval" = yes; then
9168                             ac_cv_use_image='wxUSE_IMAGE=yes'
9169                           else
9170                             ac_cv_use_image='wxUSE_IMAGE=no'
9171                           fi
9172
9173 else
9174
9175                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9176                           if test "x$LINE" != x ; then
9177                             eval "DEFAULT_$LINE"
9178                           else
9179                             no_cache=1
9180                           fi
9181
9182                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9183
9184 fi;
9185
9186           eval "$ac_cv_use_image"
9187           if test "$no_cache" != 1; then
9188             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9189           fi
9190
9191           if test "$wxUSE_IMAGE" = yes; then
9192             echo "$as_me:$LINENO: result: yes" >&5
9193 echo "${ECHO_T}yes" >&6
9194           else
9195             echo "$as_me:$LINENO: result: no" >&5
9196 echo "${ECHO_T}no" >&6
9197           fi
9198
9199
9200           enablestring=
9201           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9202 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9203           no_cache=0
9204           # Check whether --enable-gif or --disable-gif was given.
9205 if test "${enable_gif+set}" = set; then
9206   enableval="$enable_gif"
9207
9208                           if test "$enableval" = yes; then
9209                             ac_cv_use_gif='wxUSE_GIF=yes'
9210                           else
9211                             ac_cv_use_gif='wxUSE_GIF=no'
9212                           fi
9213
9214 else
9215
9216                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9217                           if test "x$LINE" != x ; then
9218                             eval "DEFAULT_$LINE"
9219                           else
9220                             no_cache=1
9221                           fi
9222
9223                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9224
9225 fi;
9226
9227           eval "$ac_cv_use_gif"
9228           if test "$no_cache" != 1; then
9229             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9230           fi
9231
9232           if test "$wxUSE_GIF" = yes; then
9233             echo "$as_me:$LINENO: result: yes" >&5
9234 echo "${ECHO_T}yes" >&6
9235           else
9236             echo "$as_me:$LINENO: result: no" >&5
9237 echo "${ECHO_T}no" >&6
9238           fi
9239
9240
9241           enablestring=
9242           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9243 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9244           no_cache=0
9245           # Check whether --enable-pcx or --disable-pcx was given.
9246 if test "${enable_pcx+set}" = set; then
9247   enableval="$enable_pcx"
9248
9249                           if test "$enableval" = yes; then
9250                             ac_cv_use_pcx='wxUSE_PCX=yes'
9251                           else
9252                             ac_cv_use_pcx='wxUSE_PCX=no'
9253                           fi
9254
9255 else
9256
9257                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9258                           if test "x$LINE" != x ; then
9259                             eval "DEFAULT_$LINE"
9260                           else
9261                             no_cache=1
9262                           fi
9263
9264                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9265
9266 fi;
9267
9268           eval "$ac_cv_use_pcx"
9269           if test "$no_cache" != 1; then
9270             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9271           fi
9272
9273           if test "$wxUSE_PCX" = yes; then
9274             echo "$as_me:$LINENO: result: yes" >&5
9275 echo "${ECHO_T}yes" >&6
9276           else
9277             echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6
9279           fi
9280
9281
9282           enablestring=
9283           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9284 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9285           no_cache=0
9286           # Check whether --enable-iff or --disable-iff was given.
9287 if test "${enable_iff+set}" = set; then
9288   enableval="$enable_iff"
9289
9290                           if test "$enableval" = yes; then
9291                             ac_cv_use_iff='wxUSE_IFF=yes'
9292                           else
9293                             ac_cv_use_iff='wxUSE_IFF=no'
9294                           fi
9295
9296 else
9297
9298                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9299                           if test "x$LINE" != x ; then
9300                             eval "DEFAULT_$LINE"
9301                           else
9302                             no_cache=1
9303                           fi
9304
9305                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9306
9307 fi;
9308
9309           eval "$ac_cv_use_iff"
9310           if test "$no_cache" != 1; then
9311             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9312           fi
9313
9314           if test "$wxUSE_IFF" = yes; then
9315             echo "$as_me:$LINENO: result: yes" >&5
9316 echo "${ECHO_T}yes" >&6
9317           else
9318             echo "$as_me:$LINENO: result: no" >&5
9319 echo "${ECHO_T}no" >&6
9320           fi
9321
9322
9323           enablestring=
9324           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9325 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9326           no_cache=0
9327           # Check whether --enable-pnm or --disable-pnm was given.
9328 if test "${enable_pnm+set}" = set; then
9329   enableval="$enable_pnm"
9330
9331                           if test "$enableval" = yes; then
9332                             ac_cv_use_pnm='wxUSE_PNM=yes'
9333                           else
9334                             ac_cv_use_pnm='wxUSE_PNM=no'
9335                           fi
9336
9337 else
9338
9339                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9340                           if test "x$LINE" != x ; then
9341                             eval "DEFAULT_$LINE"
9342                           else
9343                             no_cache=1
9344                           fi
9345
9346                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9347
9348 fi;
9349
9350           eval "$ac_cv_use_pnm"
9351           if test "$no_cache" != 1; then
9352             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9353           fi
9354
9355           if test "$wxUSE_PNM" = yes; then
9356             echo "$as_me:$LINENO: result: yes" >&5
9357 echo "${ECHO_T}yes" >&6
9358           else
9359             echo "$as_me:$LINENO: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9361           fi
9362
9363
9364           enablestring=
9365           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9366 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9367           no_cache=0
9368           # Check whether --enable-xpm or --disable-xpm was given.
9369 if test "${enable_xpm+set}" = set; then
9370   enableval="$enable_xpm"
9371
9372                           if test "$enableval" = yes; then
9373                             ac_cv_use_xpm='wxUSE_XPM=yes'
9374                           else
9375                             ac_cv_use_xpm='wxUSE_XPM=no'
9376                           fi
9377
9378 else
9379
9380                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9381                           if test "x$LINE" != x ; then
9382                             eval "DEFAULT_$LINE"
9383                           else
9384                             no_cache=1
9385                           fi
9386
9387                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9388
9389 fi;
9390
9391           eval "$ac_cv_use_xpm"
9392           if test "$no_cache" != 1; then
9393             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9394           fi
9395
9396           if test "$wxUSE_XPM" = yes; then
9397             echo "$as_me:$LINENO: result: yes" >&5
9398 echo "${ECHO_T}yes" >&6
9399           else
9400             echo "$as_me:$LINENO: result: no" >&5
9401 echo "${ECHO_T}no" >&6
9402           fi
9403
9404
9405           enablestring=
9406           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9407 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9408           no_cache=0
9409           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9410 if test "${enable_ico_cur+set}" = set; then
9411   enableval="$enable_ico_cur"
9412
9413                           if test "$enableval" = yes; then
9414                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9415                           else
9416                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9417                           fi
9418
9419 else
9420
9421                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9422                           if test "x$LINE" != x ; then
9423                             eval "DEFAULT_$LINE"
9424                           else
9425                             no_cache=1
9426                           fi
9427
9428                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9429
9430 fi;
9431
9432           eval "$ac_cv_use_ico_cur"
9433           if test "$no_cache" != 1; then
9434             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9435           fi
9436
9437           if test "$wxUSE_ICO_CUR" = yes; then
9438             echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6
9440           else
9441             echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6
9443           fi
9444
9445
9446 fi
9447
9448 case "${host}" in
9449   *-pc-os2_emx | *-pc-os2-emx )
9450     PATH_IFS=';'
9451     LEX_STEM="lexyy"
9452   ;;
9453   *)
9454     PATH_IFS=':'
9455     LEX_STEM="lex.yy"
9456   ;;
9457 esac
9458
9459
9460
9461           echo "saving argument cache $wx_arg_cache_file"
9462           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9463
9464
9465
9466 echo "$as_me:$LINENO: checking for toolkit" >&5
9467 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9468
9469 # In Wine, we need to default to MSW, not GTK or MOTIF
9470 if test "$wxUSE_WINE" = "yes"; then
9471     DEFAULT_DEFAULT_wxUSE_GTK=0
9472     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9473     DEFAULT_DEFAULT_wxUSE_MSW=1
9474 fi
9475
9476 if test "$wxUSE_GUI" = "yes"; then
9477
9478     if test "$USE_BEOS" = 1; then
9479         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9480 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9481    { (exit 1); exit 1; }; }
9482     fi
9483
9484     if test "$TOOLKIT_GIVEN" = 1; then
9485             for toolkit in `echo $ALL_TOOLKITS`; do
9486         var=wxUSE_$toolkit
9487         eval "value=\$${var}"
9488         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9489       done
9490     else
9491             for toolkit in `echo $ALL_TOOLKITS`; do
9492         if test "$has_toolkit_in_cache" != 1; then
9493           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9494         else
9495           var=DEFAULT_wxUSE_$toolkit
9496         fi
9497         eval "wxUSE_$toolkit=\$${var}"
9498       done
9499     fi
9500
9501             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9502                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9503                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9504
9505         case "${host}" in
9506       *-pc-os2_emx | *-pc-os2-emx )
9507         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9508     esac
9509
9510     case "$NUM_TOOLKITS" in
9511       1)
9512       ;;
9513       0)
9514         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9515 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9516    { (exit 1); exit 1; }; }
9517       ;;
9518       *)
9519         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9520 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9521    { (exit 1); exit 1; }; }
9522     esac
9523
9524         for toolkit in `echo $ALL_TOOLKITS`; do
9525       var=wxUSE_$toolkit
9526       eval "value=\$${var}"
9527       if test "x$value" != x; then
9528         cache_var=CACHE_$toolkit
9529         eval "cache=\$${cache_var}"
9530         if test "$cache" = 1; then
9531           echo "$var=$value" >> ${wx_arg_cache_file}
9532         fi
9533         if test "$value" = 1; then
9534           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
9535           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9536 echo "${ECHO_T}$toolkit_echo" >&6
9537         fi
9538       fi
9539     done
9540 else
9541     echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9542 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9543 fi
9544
9545 wants_win32=0
9546 doesnt_want_win32=0
9547 case "${host}" in
9548   *-*-cygwin*)
9549       if test "$wxUSE_MSW" = 1 ; then
9550         wants_win32=1
9551       else
9552         doesnt_want_win32=1
9553       fi
9554   ;;
9555   *-*-mingw*)
9556       wants_win32=1
9557   ;;
9558 esac
9559
9560 if test "$wxUSE_WINE" = "yes"; then
9561     wants_win32=1
9562         CC=winegcc
9563     CXX=wineg++
9564     RESCOMP=wrc
9565 fi
9566
9567 if test "$wants_win32" = 1 ; then
9568     USE_UNIX=0
9569     USE_WIN32=1
9570     cat >>confdefs.h <<\_ACEOF
9571 #define __WIN32__ 1
9572 _ACEOF
9573
9574     cat >>confdefs.h <<\_ACEOF
9575 #define __WIN95__ 1
9576 _ACEOF
9577
9578     cat >>confdefs.h <<\_ACEOF
9579 #define __WINDOWS__ 1
9580 _ACEOF
9581
9582     cat >>confdefs.h <<\_ACEOF
9583 #define __GNUWIN32__ 1
9584 _ACEOF
9585
9586     cat >>confdefs.h <<\_ACEOF
9587 #define STRICT 1
9588 _ACEOF
9589
9590     cat >>confdefs.h <<\_ACEOF
9591 #define WINVER 0x0400
9592 _ACEOF
9593
9594 fi
9595 if test "$doesnt_want_win32" = 1 ; then
9596     USE_UNIX=1
9597     USE_WIN32=0
9598 fi
9599
9600 if test "$USE_UNIX" = 1 ; then
9601     wxUSE_UNIX=yes
9602     cat >>confdefs.h <<\_ACEOF
9603 #define __UNIX__ 1
9604 _ACEOF
9605
9606 fi
9607
9608
9609 cat >confcache <<\_ACEOF
9610 # This file is a shell script that caches the results of configure
9611 # tests run on this system so they can be shared between configure
9612 # scripts and configure runs, see configure's option --config-cache.
9613 # It is not useful on other systems.  If it contains results you don't
9614 # want to keep, you may remove or edit it.
9615 #
9616 # config.status only pays attention to the cache file if you give it
9617 # the --recheck option to rerun configure.
9618 #
9619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9621 # following values.
9622
9623 _ACEOF
9624
9625 # The following way of writing the cache mishandles newlines in values,
9626 # but we know of no workaround that is simple, portable, and efficient.
9627 # So, don't put newlines in cache variables' values.
9628 # Ultrix sh set writes to stderr and can't be redirected directly,
9629 # and sets the high bit in the cache file unless we assign to the vars.
9630 {
9631   (set) 2>&1 |
9632     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9633     *ac_space=\ *)
9634       # `set' does not quote correctly, so add quotes (double-quote
9635       # substitution turns \\\\ into \\, and sed turns \\ into \).
9636       sed -n \
9637         "s/'/'\\\\''/g;
9638           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9639       ;;
9640     *)
9641       # `set' quotes correctly as required by POSIX, so do not add quotes.
9642       sed -n \
9643         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9644       ;;
9645     esac;
9646 } |
9647   sed '
9648      t clear
9649      : clear
9650      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9651      t end
9652      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9653      : end' >>confcache
9654 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9655   if test -w $cache_file; then
9656     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9657     cat confcache >$cache_file
9658   else
9659     echo "not updating unwritable cache $cache_file"
9660   fi
9661 fi
9662 rm -f confcache
9663
9664 if test "$build" != "$host" ; then
9665     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9666         CC=$host_alias-gcc
9667         CXX=$host_alias-c++
9668         AR=$host_alias-ar
9669         RANLIB=$host_alias-ranlib
9670         DLLTOOL=$host_alias-dlltool
9671         RESCOMP=$host_alias-windres
9672         LD=$host_alias-ld
9673         NM=$host_alias-nm
9674         STRIP=$host_alias-strip
9675     else
9676         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9677 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9678    { (exit 1); exit 1; }; }
9679     fi
9680 fi
9681
9682 CFLAGS=${CFLAGS:=}
9683 ac_ext=c
9684 ac_cpp='$CPP $CPPFLAGS'
9685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688 if test -n "$ac_tool_prefix"; then
9689   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9691 echo "$as_me:$LINENO: checking for $ac_word" >&5
9692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9693 if test "${ac_cv_prog_CC+set}" = set; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   if test -n "$CC"; then
9697   ac_cv_prog_CC="$CC" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702   IFS=$as_save_IFS
9703   test -z "$as_dir" && as_dir=.
9704   for ac_exec_ext in '' $ac_executable_extensions; do
9705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708     break 2
9709   fi
9710 done
9711 done
9712
9713 fi
9714 fi
9715 CC=$ac_cv_prog_CC
9716 if test -n "$CC"; then
9717   echo "$as_me:$LINENO: result: $CC" >&5
9718 echo "${ECHO_T}$CC" >&6
9719 else
9720   echo "$as_me:$LINENO: result: no" >&5
9721 echo "${ECHO_T}no" >&6
9722 fi
9723
9724 fi
9725 if test -z "$ac_cv_prog_CC"; then
9726   ac_ct_CC=$CC
9727   # Extract the first word of "gcc", so it can be a program name with args.
9728 set dummy gcc; ac_word=$2
9729 echo "$as_me:$LINENO: checking for $ac_word" >&5
9730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   if test -n "$ac_ct_CC"; then
9735   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9739 do
9740   IFS=$as_save_IFS
9741   test -z "$as_dir" && as_dir=.
9742   for ac_exec_ext in '' $ac_executable_extensions; do
9743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744     ac_cv_prog_ac_ct_CC="gcc"
9745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746     break 2
9747   fi
9748 done
9749 done
9750
9751 fi
9752 fi
9753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9754 if test -n "$ac_ct_CC"; then
9755   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9756 echo "${ECHO_T}$ac_ct_CC" >&6
9757 else
9758   echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6
9760 fi
9761
9762   CC=$ac_ct_CC
9763 else
9764   CC="$ac_cv_prog_CC"
9765 fi
9766
9767 if test -z "$CC"; then
9768   if test -n "$ac_tool_prefix"; then
9769   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9770 set dummy ${ac_tool_prefix}cc; ac_word=$2
9771 echo "$as_me:$LINENO: checking for $ac_word" >&5
9772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9773 if test "${ac_cv_prog_CC+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   if test -n "$CC"; then
9777   ac_cv_prog_CC="$CC" # Let the user override the test.
9778 else
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 for as_dir in $PATH
9781 do
9782   IFS=$as_save_IFS
9783   test -z "$as_dir" && as_dir=.
9784   for ac_exec_ext in '' $ac_executable_extensions; do
9785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786     ac_cv_prog_CC="${ac_tool_prefix}cc"
9787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788     break 2
9789   fi
9790 done
9791 done
9792
9793 fi
9794 fi
9795 CC=$ac_cv_prog_CC
9796 if test -n "$CC"; then
9797   echo "$as_me:$LINENO: result: $CC" >&5
9798 echo "${ECHO_T}$CC" >&6
9799 else
9800   echo "$as_me:$LINENO: result: no" >&5
9801 echo "${ECHO_T}no" >&6
9802 fi
9803
9804 fi
9805 if test -z "$ac_cv_prog_CC"; then
9806   ac_ct_CC=$CC
9807   # Extract the first word of "cc", so it can be a program name with args.
9808 set dummy cc; ac_word=$2
9809 echo "$as_me:$LINENO: checking for $ac_word" >&5
9810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   if test -n "$ac_ct_CC"; then
9815   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9819 do
9820   IFS=$as_save_IFS
9821   test -z "$as_dir" && as_dir=.
9822   for ac_exec_ext in '' $ac_executable_extensions; do
9823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824     ac_cv_prog_ac_ct_CC="cc"
9825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9826     break 2
9827   fi
9828 done
9829 done
9830
9831 fi
9832 fi
9833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9834 if test -n "$ac_ct_CC"; then
9835   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9836 echo "${ECHO_T}$ac_ct_CC" >&6
9837 else
9838   echo "$as_me:$LINENO: result: no" >&5
9839 echo "${ECHO_T}no" >&6
9840 fi
9841
9842   CC=$ac_ct_CC
9843 else
9844   CC="$ac_cv_prog_CC"
9845 fi
9846
9847 fi
9848 if test -z "$CC"; then
9849   # Extract the first word of "cc", so it can be a program name with args.
9850 set dummy cc; ac_word=$2
9851 echo "$as_me:$LINENO: checking for $ac_word" >&5
9852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853 if test "${ac_cv_prog_CC+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   if test -n "$CC"; then
9857   ac_cv_prog_CC="$CC" # Let the user override the test.
9858 else
9859   ac_prog_rejected=no
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9862 do
9863   IFS=$as_save_IFS
9864   test -z "$as_dir" && as_dir=.
9865   for ac_exec_ext in '' $ac_executable_extensions; do
9866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9867     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9868        ac_prog_rejected=yes
9869        continue
9870      fi
9871     ac_cv_prog_CC="cc"
9872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873     break 2
9874   fi
9875 done
9876 done
9877
9878 if test $ac_prog_rejected = yes; then
9879   # We found a bogon in the path, so make sure we never use it.
9880   set dummy $ac_cv_prog_CC
9881   shift
9882   if test $# != 0; then
9883     # We chose a different compiler from the bogus one.
9884     # However, it has the same basename, so the bogon will be chosen
9885     # first if we set CC to just the basename; use the full file name.
9886     shift
9887     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9888   fi
9889 fi
9890 fi
9891 fi
9892 CC=$ac_cv_prog_CC
9893 if test -n "$CC"; then
9894   echo "$as_me:$LINENO: result: $CC" >&5
9895 echo "${ECHO_T}$CC" >&6
9896 else
9897   echo "$as_me:$LINENO: result: no" >&5
9898 echo "${ECHO_T}no" >&6
9899 fi
9900
9901 fi
9902 if test -z "$CC"; then
9903   if test -n "$ac_tool_prefix"; then
9904   for ac_prog in cl
9905   do
9906     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9908 echo "$as_me:$LINENO: checking for $ac_word" >&5
9909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9910 if test "${ac_cv_prog_CC+set}" = set; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913   if test -n "$CC"; then
9914   ac_cv_prog_CC="$CC" # Let the user override the test.
9915 else
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9918 do
9919   IFS=$as_save_IFS
9920   test -z "$as_dir" && as_dir=.
9921   for ac_exec_ext in '' $ac_executable_extensions; do
9922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925     break 2
9926   fi
9927 done
9928 done
9929
9930 fi
9931 fi
9932 CC=$ac_cv_prog_CC
9933 if test -n "$CC"; then
9934   echo "$as_me:$LINENO: result: $CC" >&5
9935 echo "${ECHO_T}$CC" >&6
9936 else
9937   echo "$as_me:$LINENO: result: no" >&5
9938 echo "${ECHO_T}no" >&6
9939 fi
9940
9941     test -n "$CC" && break
9942   done
9943 fi
9944 if test -z "$CC"; then
9945   ac_ct_CC=$CC
9946   for ac_prog in cl
9947 do
9948   # Extract the first word of "$ac_prog", so it can be a program name with args.
9949 set dummy $ac_prog; ac_word=$2
9950 echo "$as_me:$LINENO: checking for $ac_word" >&5
9951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   if test -n "$ac_ct_CC"; then
9956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9960 do
9961   IFS=$as_save_IFS
9962   test -z "$as_dir" && as_dir=.
9963   for ac_exec_ext in '' $ac_executable_extensions; do
9964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965     ac_cv_prog_ac_ct_CC="$ac_prog"
9966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9967     break 2
9968   fi
9969 done
9970 done
9971
9972 fi
9973 fi
9974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9975 if test -n "$ac_ct_CC"; then
9976   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9977 echo "${ECHO_T}$ac_ct_CC" >&6
9978 else
9979   echo "$as_me:$LINENO: result: no" >&5
9980 echo "${ECHO_T}no" >&6
9981 fi
9982
9983   test -n "$ac_ct_CC" && break
9984 done
9985
9986   CC=$ac_ct_CC
9987 fi
9988
9989 fi
9990
9991
9992 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9993 See \`config.log' for more details." >&5
9994 echo "$as_me: error: no acceptable C compiler found in \$PATH
9995 See \`config.log' for more details." >&2;}
9996    { (exit 1); exit 1; }; }
9997
9998 # Provide some information about the compiler.
9999 echo "$as_me:$LINENO:" \
10000      "checking for C compiler version" >&5
10001 ac_compiler=`set X $ac_compile; echo $2`
10002 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10003   (eval $ac_compiler --version </dev/null >&5) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }
10007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10008   (eval $ac_compiler -v </dev/null >&5) 2>&5
10009   ac_status=$?
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); }
10012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10013   (eval $ac_compiler -V </dev/null >&5) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }
10017
10018 cat >conftest.$ac_ext <<_ACEOF
10019 #line $LINENO "configure"
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025
10026 int
10027 main ()
10028 {
10029
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 ac_clean_files_save=$ac_clean_files
10035 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10036 # Try to create an executable without -o first, disregard a.out.
10037 # It will help us diagnose broken compilers, and finding out an intuition
10038 # of exeext.
10039 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10040 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10041 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10043   (eval $ac_link_default) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; then
10047   # Find the output, starting from the most likely.  This scheme is
10048 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10049 # resort.
10050
10051 # Be careful to initialize this variable, since it used to be cached.
10052 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10053 ac_cv_exeext=
10054 # b.out is created by i960 compilers.
10055 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10056 do
10057   test -f "$ac_file" || continue
10058   case $ac_file in
10059     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10060         ;;
10061     conftest.$ac_ext )
10062         # This is the source file.
10063         ;;
10064     [ab].out )
10065         # We found the default executable, but exeext='' is most
10066         # certainly right.
10067         break;;
10068     *.* )
10069         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10070         # FIXME: I believe we export ac_cv_exeext for Libtool,
10071         # but it would be cool to find out if it's true.  Does anybody
10072         # maintain Libtool? --akim.
10073         export ac_cv_exeext
10074         break;;
10075     * )
10076         break;;
10077   esac
10078 done
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10084 See \`config.log' for more details." >&5
10085 echo "$as_me: error: C compiler cannot create executables
10086 See \`config.log' for more details." >&2;}
10087    { (exit 77); exit 77; }; }
10088 fi
10089
10090 ac_exeext=$ac_cv_exeext
10091 echo "$as_me:$LINENO: result: $ac_file" >&5
10092 echo "${ECHO_T}$ac_file" >&6
10093
10094 # Check the compiler produces executables we can run.  If not, either
10095 # the compiler is broken, or we cross compile.
10096 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10097 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10098 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10099 # If not cross compiling, check that we can run a simple program.
10100 if test "$cross_compiling" != yes; then
10101   if { ac_try='./$ac_file'
10102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103   (eval $ac_try) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; }; then
10107     cross_compiling=no
10108   else
10109     if test "$cross_compiling" = maybe; then
10110         cross_compiling=yes
10111     else
10112         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10113 If you meant to cross compile, use \`--host'.
10114 See \`config.log' for more details." >&5
10115 echo "$as_me: error: cannot run C compiled programs.
10116 If you meant to cross compile, use \`--host'.
10117 See \`config.log' for more details." >&2;}
10118    { (exit 1); exit 1; }; }
10119     fi
10120   fi
10121 fi
10122 echo "$as_me:$LINENO: result: yes" >&5
10123 echo "${ECHO_T}yes" >&6
10124
10125 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10126 ac_clean_files=$ac_clean_files_save
10127 # Check the compiler produces executables we can run.  If not, either
10128 # the compiler is broken, or we cross compile.
10129 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10130 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10131 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10132 echo "${ECHO_T}$cross_compiling" >&6
10133
10134 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10135 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137   (eval $ac_link) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; then
10141   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10142 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10143 # work properly (i.e., refer to `conftest.exe'), while it won't with
10144 # `rm'.
10145 for ac_file in conftest.exe conftest conftest.*; do
10146   test -f "$ac_file" || continue
10147   case $ac_file in
10148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10149     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10150           export ac_cv_exeext
10151           break;;
10152     * ) break;;
10153   esac
10154 done
10155 else
10156   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10157 See \`config.log' for more details." >&5
10158 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10159 See \`config.log' for more details." >&2;}
10160    { (exit 1); exit 1; }; }
10161 fi
10162
10163 rm -f conftest$ac_cv_exeext
10164 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10165 echo "${ECHO_T}$ac_cv_exeext" >&6
10166
10167 rm -f conftest.$ac_ext
10168 EXEEXT=$ac_cv_exeext
10169 ac_exeext=$EXEEXT
10170 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10171 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10172 if test "${ac_cv_objext+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   cat >conftest.$ac_ext <<_ACEOF
10176 #line $LINENO "configure"
10177 /* confdefs.h.  */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h.  */
10182
10183 int
10184 main ()
10185 {
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.o conftest.obj
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193   (eval $ac_compile) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; then
10197   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10198   case $ac_file in
10199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10200     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10201        break;;
10202   esac
10203 done
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10209 See \`config.log' for more details." >&5
10210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10211 See \`config.log' for more details." >&2;}
10212    { (exit 1); exit 1; }; }
10213 fi
10214
10215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10218 echo "${ECHO_T}$ac_cv_objext" >&6
10219 OBJEXT=$ac_cv_objext
10220 ac_objext=$OBJEXT
10221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   cat >conftest.$ac_ext <<_ACEOF
10227 #line $LINENO "configure"
10228 /* confdefs.h.  */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h.  */
10233
10234 int
10235 main ()
10236 {
10237 #ifndef __GNUC__
10238        choke me
10239 #endif
10240
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247   (eval $ac_compile) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -s conftest.$ac_objext'
10252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253   (eval $ac_try) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   ac_compiler_gnu=yes
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_compiler_gnu=no
10263 fi
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10266
10267 fi
10268 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10269 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10270 GCC=`test $ac_compiler_gnu = yes && echo yes`
10271 ac_test_CFLAGS=${CFLAGS+set}
10272 ac_save_CFLAGS=$CFLAGS
10273 CFLAGS="-g"
10274 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10275 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10276 if test "${ac_cv_prog_cc_g+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 int
10288 main ()
10289 {
10290
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297   (eval $ac_compile) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -s conftest.$ac_objext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_prog_cc_g=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_cv_prog_cc_g=no
10313 fi
10314 rm -f conftest.$ac_objext conftest.$ac_ext
10315 fi
10316 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10317 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10318 if test "$ac_test_CFLAGS" = set; then
10319   CFLAGS=$ac_save_CFLAGS
10320 elif test $ac_cv_prog_cc_g = yes; then
10321   if test "$GCC" = yes; then
10322     CFLAGS="-g -O2"
10323   else
10324     CFLAGS="-g"
10325   fi
10326 else
10327   if test "$GCC" = yes; then
10328     CFLAGS="-O2"
10329   else
10330     CFLAGS=
10331   fi
10332 fi
10333 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10334 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10335 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   ac_cv_prog_cc_stdc=no
10339 ac_save_CC=$CC
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <stdarg.h>
10348 #include <stdio.h>
10349 #include <sys/types.h>
10350 #include <sys/stat.h>
10351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10352 struct buf { int x; };
10353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10354 static char *e (p, i)
10355      char **p;
10356      int i;
10357 {
10358   return p[i];
10359 }
10360 static char *f (char * (*g) (char **, int), char **p, ...)
10361 {
10362   char *s;
10363   va_list v;
10364   va_start (v,p);
10365   s = g (p, va_arg (v,int));
10366   va_end (v);
10367   return s;
10368 }
10369 int test (int i, double x);
10370 struct s1 {int (*f) (int a);};
10371 struct s2 {int (*f) (double a);};
10372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10373 int argc;
10374 char **argv;
10375 int
10376 main ()
10377 {
10378 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 # Don't try gcc -ansi; that turns off useful extensions and
10384 # breaks some systems' header files.
10385 # AIX                   -qlanglvl=ansi
10386 # Ultrix and OSF/1      -std1
10387 # HP-UX 10.20 and later -Ae
10388 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10389 # SVR4                  -Xc -D__EXTENSIONS__
10390 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10391 do
10392   CC="$ac_save_CC $ac_arg"
10393   rm -f conftest.$ac_objext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10395   (eval $ac_compile) 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); } &&
10399          { ac_try='test -s conftest.$ac_objext'
10400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401   (eval $ac_try) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   ac_cv_prog_cc_stdc=$ac_arg
10406 break
10407 else
10408   echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 fi
10412 rm -f conftest.$ac_objext
10413 done
10414 rm -f conftest.$ac_ext conftest.$ac_objext
10415 CC=$ac_save_CC
10416
10417 fi
10418
10419 case "x$ac_cv_prog_cc_stdc" in
10420   x|xno)
10421     echo "$as_me:$LINENO: result: none needed" >&5
10422 echo "${ECHO_T}none needed" >&6 ;;
10423   *)
10424     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10425 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10426     CC="$CC $ac_cv_prog_cc_stdc" ;;
10427 esac
10428
10429 # Some people use a C++ compiler to compile C.  Since we use `exit',
10430 # in C++ we need to declare it.  In case someone uses the same compiler
10431 # for both compiling C and C++ we need to have the C++ compiler decide
10432 # the declaration of exit, since it's the most demanding environment.
10433 cat >conftest.$ac_ext <<_ACEOF
10434 #ifndef __cplusplus
10435   choke me
10436 #endif
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440   (eval $ac_compile) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -s conftest.$ac_objext'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   for ac_declaration in \
10451    ''\
10452    '#include <stdlib.h>' \
10453    'extern "C" void std::exit (int) throw (); using std::exit;' \
10454    'extern "C" void std::exit (int); using std::exit;' \
10455    'extern "C" void exit (int) throw ();' \
10456    'extern "C" void exit (int);' \
10457    'void exit (int);'
10458 do
10459   cat >conftest.$ac_ext <<_ACEOF
10460 #line $LINENO "configure"
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 #include <stdlib.h>
10467 $ac_declaration
10468 int
10469 main ()
10470 {
10471 exit (42);
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   :
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 continue
10494 fi
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10496   cat >conftest.$ac_ext <<_ACEOF
10497 #line $LINENO "configure"
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503 $ac_declaration
10504 int
10505 main ()
10506 {
10507 exit (42);
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514   (eval $ac_compile) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -s conftest.$ac_objext'
10519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; }; then
10524   break
10525 else
10526   echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10528
10529 fi
10530 rm -f conftest.$ac_objext conftest.$ac_ext
10531 done
10532 rm -f conftest*
10533 if test -n "$ac_declaration"; then
10534   echo '#ifdef __cplusplus' >>confdefs.h
10535   echo $ac_declaration      >>confdefs.h
10536   echo '#endif'             >>confdefs.h
10537 fi
10538
10539 else
10540   echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543 fi
10544 rm -f conftest.$ac_objext conftest.$ac_ext
10545 ac_ext=c
10546 ac_cpp='$CPP $CPPFLAGS'
10547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10550
10551
10552
10553 ac_ext=c
10554 ac_cpp='$CPP $CPPFLAGS'
10555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10558 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10559 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10560 # On Suns, sometimes $CPP names a directory.
10561 if test -n "$CPP" && test -d "$CPP"; then
10562   CPP=
10563 fi
10564 if test -z "$CPP"; then
10565   if test "${ac_cv_prog_CPP+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568       # Double quotes because CPP needs to be expanded
10569     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10570     do
10571       ac_preproc_ok=false
10572 for ac_c_preproc_warn_flag in '' yes
10573 do
10574   # Use a header file that comes with gcc, so configuring glibc
10575   # with a fresh cross-compiler works.
10576   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577   # <limits.h> exists even on freestanding compilers.
10578   # On the NeXT, cc -E runs the code through the compiler's parser,
10579   # not just through cpp. "Syntax error" is here to catch this case.
10580   cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 #ifdef __STDC__
10588 # include <limits.h>
10589 #else
10590 # include <assert.h>
10591 #endif
10592                      Syntax error
10593 _ACEOF
10594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } >/dev/null; then
10602   if test -s conftest.err; then
10603     ac_cpp_err=$ac_c_preproc_warn_flag
10604   else
10605     ac_cpp_err=
10606   fi
10607 else
10608   ac_cpp_err=yes
10609 fi
10610 if test -z "$ac_cpp_err"; then
10611   :
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616   # Broken: fails on valid input.
10617 continue
10618 fi
10619 rm -f conftest.err conftest.$ac_ext
10620
10621   # OK, works on sane cases.  Now check whether non-existent headers
10622   # can be detected and how.
10623   cat >conftest.$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630 #include <ac_nonexistent.h>
10631 _ACEOF
10632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10634   ac_status=$?
10635   grep -v '^ *+' conftest.er1 >conftest.err
10636   rm -f conftest.er1
10637   cat conftest.err >&5
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } >/dev/null; then
10640   if test -s conftest.err; then
10641     ac_cpp_err=$ac_c_preproc_warn_flag
10642   else
10643     ac_cpp_err=
10644   fi
10645 else
10646   ac_cpp_err=yes
10647 fi
10648 if test -z "$ac_cpp_err"; then
10649   # Broken: success on invalid input.
10650 continue
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655   # Passes both tests.
10656 ac_preproc_ok=:
10657 break
10658 fi
10659 rm -f conftest.err conftest.$ac_ext
10660
10661 done
10662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10663 rm -f conftest.err conftest.$ac_ext
10664 if $ac_preproc_ok; then
10665   break
10666 fi
10667
10668     done
10669     ac_cv_prog_CPP=$CPP
10670
10671 fi
10672   CPP=$ac_cv_prog_CPP
10673 else
10674   ac_cv_prog_CPP=$CPP
10675 fi
10676 echo "$as_me:$LINENO: result: $CPP" >&5
10677 echo "${ECHO_T}$CPP" >&6
10678 ac_preproc_ok=false
10679 for ac_c_preproc_warn_flag in '' yes
10680 do
10681   # Use a header file that comes with gcc, so configuring glibc
10682   # with a fresh cross-compiler works.
10683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684   # <limits.h> exists even on freestanding compilers.
10685   # On the NeXT, cc -E runs the code through the compiler's parser,
10686   # not just through cpp. "Syntax error" is here to catch this case.
10687   cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 #ifdef __STDC__
10695 # include <limits.h>
10696 #else
10697 # include <assert.h>
10698 #endif
10699                      Syntax error
10700 _ACEOF
10701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10703   ac_status=$?
10704   grep -v '^ *+' conftest.er1 >conftest.err
10705   rm -f conftest.er1
10706   cat conftest.err >&5
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } >/dev/null; then
10709   if test -s conftest.err; then
10710     ac_cpp_err=$ac_c_preproc_warn_flag
10711   else
10712     ac_cpp_err=
10713   fi
10714 else
10715   ac_cpp_err=yes
10716 fi
10717 if test -z "$ac_cpp_err"; then
10718   :
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723   # Broken: fails on valid input.
10724 continue
10725 fi
10726 rm -f conftest.err conftest.$ac_ext
10727
10728   # OK, works on sane cases.  Now check whether non-existent headers
10729   # can be detected and how.
10730   cat >conftest.$ac_ext <<_ACEOF
10731 #line $LINENO "configure"
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 #include <ac_nonexistent.h>
10738 _ACEOF
10739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } >/dev/null; then
10747   if test -s conftest.err; then
10748     ac_cpp_err=$ac_c_preproc_warn_flag
10749   else
10750     ac_cpp_err=
10751   fi
10752 else
10753   ac_cpp_err=yes
10754 fi
10755 if test -z "$ac_cpp_err"; then
10756   # Broken: success on invalid input.
10757 continue
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762   # Passes both tests.
10763 ac_preproc_ok=:
10764 break
10765 fi
10766 rm -f conftest.err conftest.$ac_ext
10767
10768 done
10769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10770 rm -f conftest.err conftest.$ac_ext
10771 if $ac_preproc_ok; then
10772   :
10773 else
10774   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10775 See \`config.log' for more details." >&5
10776 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10777 See \`config.log' for more details." >&2;}
10778    { (exit 1); exit 1; }; }
10779 fi
10780
10781 ac_ext=c
10782 ac_cpp='$CPP $CPPFLAGS'
10783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10786
10787
10788 echo "$as_me:$LINENO: checking for egrep" >&5
10789 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10790 if test "${ac_cv_prog_egrep+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10794     then ac_cv_prog_egrep='grep -E'
10795     else ac_cv_prog_egrep='egrep'
10796     fi
10797 fi
10798 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10799 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10800  EGREP=$ac_cv_prog_egrep
10801
10802
10803 if test $ac_cv_c_compiler_gnu = yes; then
10804     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10805 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10806 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809     ac_pattern="Autoconf.*'x'"
10810   cat >conftest.$ac_ext <<_ACEOF
10811 #line $LINENO "configure"
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <sgtty.h>
10818 Autoconf TIOCGETP
10819 _ACEOF
10820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10821   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10822   ac_cv_prog_gcc_traditional=yes
10823 else
10824   ac_cv_prog_gcc_traditional=no
10825 fi
10826 rm -f conftest*
10827
10828
10829   if test $ac_cv_prog_gcc_traditional = no; then
10830     cat >conftest.$ac_ext <<_ACEOF
10831 #line $LINENO "configure"
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 #include <termio.h>
10838 Autoconf TCGETA
10839 _ACEOF
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10842   ac_cv_prog_gcc_traditional=yes
10843 fi
10844 rm -f conftest*
10845
10846   fi
10847 fi
10848 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10849 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10850   if test $ac_cv_prog_gcc_traditional = yes; then
10851     CC="$CC -traditional"
10852   fi
10853 fi
10854
10855
10856
10857
10858 ac_ext=cc
10859 ac_cpp='$CXXCPP $CPPFLAGS'
10860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10863
10864
10865 CXXFLAGS=${CXXFLAGS:=}
10866 ac_ext=cc
10867 ac_cpp='$CXXCPP $CPPFLAGS'
10868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10871 if test -n "$ac_tool_prefix"; then
10872   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10873   do
10874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10876 echo "$as_me:$LINENO: checking for $ac_word" >&5
10877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10878 if test "${ac_cv_prog_CXX+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   if test -n "$CXX"; then
10882   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10883 else
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10886 do
10887   IFS=$as_save_IFS
10888   test -z "$as_dir" && as_dir=.
10889   for ac_exec_ext in '' $ac_executable_extensions; do
10890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893     break 2
10894   fi
10895 done
10896 done
10897
10898 fi
10899 fi
10900 CXX=$ac_cv_prog_CXX
10901 if test -n "$CXX"; then
10902   echo "$as_me:$LINENO: result: $CXX" >&5
10903 echo "${ECHO_T}$CXX" >&6
10904 else
10905   echo "$as_me:$LINENO: result: no" >&5
10906 echo "${ECHO_T}no" >&6
10907 fi
10908
10909     test -n "$CXX" && break
10910   done
10911 fi
10912 if test -z "$CXX"; then
10913   ac_ct_CXX=$CXX
10914   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10915 do
10916   # Extract the first word of "$ac_prog", so it can be a program name with args.
10917 set dummy $ac_prog; ac_word=$2
10918 echo "$as_me:$LINENO: checking for $ac_word" >&5
10919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10920 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   if test -n "$ac_ct_CXX"; then
10924   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10925 else
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10928 do
10929   IFS=$as_save_IFS
10930   test -z "$as_dir" && as_dir=.
10931   for ac_exec_ext in '' $ac_executable_extensions; do
10932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933     ac_cv_prog_ac_ct_CXX="$ac_prog"
10934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935     break 2
10936   fi
10937 done
10938 done
10939
10940 fi
10941 fi
10942 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10943 if test -n "$ac_ct_CXX"; then
10944   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10945 echo "${ECHO_T}$ac_ct_CXX" >&6
10946 else
10947   echo "$as_me:$LINENO: result: no" >&5
10948 echo "${ECHO_T}no" >&6
10949 fi
10950
10951   test -n "$ac_ct_CXX" && break
10952 done
10953 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10954
10955   CXX=$ac_ct_CXX
10956 fi
10957
10958
10959 # Provide some information about the compiler.
10960 echo "$as_me:$LINENO:" \
10961      "checking for C++ compiler version" >&5
10962 ac_compiler=`set X $ac_compile; echo $2`
10963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10964   (eval $ac_compiler --version </dev/null >&5) 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }
10968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10969   (eval $ac_compiler -v </dev/null >&5) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }
10973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10974   (eval $ac_compiler -V </dev/null >&5) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }
10978
10979 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10980 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10981 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   cat >conftest.$ac_ext <<_ACEOF
10985 #line $LINENO "configure"
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991
10992 int
10993 main ()
10994 {
10995 #ifndef __GNUC__
10996        choke me
10997 #endif
10998
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005   (eval $ac_compile) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011   (eval $ac_try) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; }; then
11015   ac_compiler_gnu=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_compiler_gnu=no
11021 fi
11022 rm -f conftest.$ac_objext conftest.$ac_ext
11023 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11024
11025 fi
11026 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11027 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11028 GXX=`test $ac_compiler_gnu = yes && echo yes`
11029 ac_test_CXXFLAGS=${CXXFLAGS+set}
11030 ac_save_CXXFLAGS=$CXXFLAGS
11031 CXXFLAGS="-g"
11032 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11033 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11034 if test "${ac_cv_prog_cxx_g+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   cat >conftest.$ac_ext <<_ACEOF
11038 #line $LINENO "configure"
11039 /* confdefs.h.  */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h.  */
11044
11045 int
11046 main ()
11047 {
11048
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055   (eval $ac_compile) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } &&
11059          { ac_try='test -s conftest.$ac_objext'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; }; then
11065   ac_cv_prog_cxx_g=yes
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_cv_prog_cxx_g=no
11071 fi
11072 rm -f conftest.$ac_objext conftest.$ac_ext
11073 fi
11074 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11075 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11076 if test "$ac_test_CXXFLAGS" = set; then
11077   CXXFLAGS=$ac_save_CXXFLAGS
11078 elif test $ac_cv_prog_cxx_g = yes; then
11079   if test "$GXX" = yes; then
11080     CXXFLAGS="-g -O2"
11081   else
11082     CXXFLAGS="-g"
11083   fi
11084 else
11085   if test "$GXX" = yes; then
11086     CXXFLAGS="-O2"
11087   else
11088     CXXFLAGS=
11089   fi
11090 fi
11091 for ac_declaration in \
11092    ''\
11093    '#include <stdlib.h>' \
11094    'extern "C" void std::exit (int) throw (); using std::exit;' \
11095    'extern "C" void std::exit (int); using std::exit;' \
11096    'extern "C" void exit (int) throw ();' \
11097    'extern "C" void exit (int);' \
11098    'void exit (int);'
11099 do
11100   cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 #include <stdlib.h>
11108 $ac_declaration
11109 int
11110 main ()
11111 {
11112 exit (42);
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119   (eval $ac_compile) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -s conftest.$ac_objext'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129   :
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 continue
11135 fi
11136 rm -f conftest.$ac_objext conftest.$ac_ext
11137   cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 $ac_declaration
11145 int
11146 main ()
11147 {
11148 exit (42);
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155   (eval $ac_compile) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -s conftest.$ac_objext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   break
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 fi
11171 rm -f conftest.$ac_objext conftest.$ac_ext
11172 done
11173 rm -f conftest*
11174 if test -n "$ac_declaration"; then
11175   echo '#ifdef __cplusplus' >>confdefs.h
11176   echo $ac_declaration      >>confdefs.h
11177   echo '#endif'             >>confdefs.h
11178 fi
11179
11180 ac_ext=cc
11181 ac_cpp='$CXXCPP $CPPFLAGS'
11182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11185
11186
11187 ac_ext=c
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11192
11193
11194 if test -n "$ac_tool_prefix"; then
11195   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11196 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11197 echo "$as_me:$LINENO: checking for $ac_word" >&5
11198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11199 if test "${ac_cv_prog_RANLIB+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202   if test -n "$RANLIB"; then
11203   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11204 else
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11207 do
11208   IFS=$as_save_IFS
11209   test -z "$as_dir" && as_dir=.
11210   for ac_exec_ext in '' $ac_executable_extensions; do
11211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11212     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11214     break 2
11215   fi
11216 done
11217 done
11218
11219 fi
11220 fi
11221 RANLIB=$ac_cv_prog_RANLIB
11222 if test -n "$RANLIB"; then
11223   echo "$as_me:$LINENO: result: $RANLIB" >&5
11224 echo "${ECHO_T}$RANLIB" >&6
11225 else
11226   echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6
11228 fi
11229
11230 fi
11231 if test -z "$ac_cv_prog_RANLIB"; then
11232   ac_ct_RANLIB=$RANLIB
11233   # Extract the first word of "ranlib", so it can be a program name with args.
11234 set dummy ranlib; ac_word=$2
11235 echo "$as_me:$LINENO: checking for $ac_word" >&5
11236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11237 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11238   echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240   if test -n "$ac_ct_RANLIB"; then
11241   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11242 else
11243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in $PATH
11245 do
11246   IFS=$as_save_IFS
11247   test -z "$as_dir" && as_dir=.
11248   for ac_exec_ext in '' $ac_executable_extensions; do
11249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11250     ac_cv_prog_ac_ct_RANLIB="ranlib"
11251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252     break 2
11253   fi
11254 done
11255 done
11256
11257   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11258 fi
11259 fi
11260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11261 if test -n "$ac_ct_RANLIB"; then
11262   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11263 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11264 else
11265   echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6
11267 fi
11268
11269   RANLIB=$ac_ct_RANLIB
11270 else
11271   RANLIB="$ac_cv_prog_RANLIB"
11272 fi
11273
11274
11275 # Extract the first word of "ar", so it can be a program name with args.
11276 set dummy ar; ac_word=$2
11277 echo "$as_me:$LINENO: checking for $ac_word" >&5
11278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11279 if test "${ac_cv_prog_AR+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   if test -n "$AR"; then
11283   ac_cv_prog_AR="$AR" # Let the user override the test.
11284 else
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11287 do
11288   IFS=$as_save_IFS
11289   test -z "$as_dir" && as_dir=.
11290   for ac_exec_ext in '' $ac_executable_extensions; do
11291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292     ac_cv_prog_AR="ar"
11293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11294     break 2
11295   fi
11296 done
11297 done
11298
11299   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11300 fi
11301 fi
11302 AR=$ac_cv_prog_AR
11303 if test -n "$AR"; then
11304   echo "$as_me:$LINENO: result: $AR" >&5
11305 echo "${ECHO_T}$AR" >&6
11306 else
11307   echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6
11309 fi
11310
11311
11312 # Find a good install program.  We prefer a C program (faster),
11313 # so one script is as good as another.  But avoid the broken or
11314 # incompatible versions:
11315 # SysV /etc/install, /usr/sbin/install
11316 # SunOS /usr/etc/install
11317 # IRIX /sbin/install
11318 # AIX /bin/install
11319 # AmigaOS /C/install, which installs bootblocks on floppy discs
11320 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11321 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11322 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11323 # ./install, which can be erroneously created by make from ./install.sh.
11324 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11325 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11326 if test -z "$INSTALL"; then
11327 if test "${ac_cv_path_install+set}" = set; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333   IFS=$as_save_IFS
11334   test -z "$as_dir" && as_dir=.
11335   # Account for people who put trailing slashes in PATH elements.
11336 case $as_dir/ in
11337   ./ | .// | /cC/* | \
11338   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11339   /usr/ucb/* ) ;;
11340   *)
11341     # OSF1 and SCO ODT 3.0 have their own names for install.
11342     # Don't use installbsd from OSF since it installs stuff as root
11343     # by default.
11344     for ac_prog in ginstall scoinst install; do
11345       for ac_exec_ext in '' $ac_executable_extensions; do
11346         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11347           if test $ac_prog = install &&
11348             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11349             # AIX install.  It has an incompatible calling convention.
11350             :
11351           elif test $ac_prog = install &&
11352             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11353             # program-specific install script used by HP pwplus--don't use.
11354             :
11355           else
11356             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11357             break 3
11358           fi
11359         fi
11360       done
11361     done
11362     ;;
11363 esac
11364 done
11365
11366
11367 fi
11368   if test "${ac_cv_path_install+set}" = set; then
11369     INSTALL=$ac_cv_path_install
11370   else
11371     # As a last resort, use the slow shell script.  We don't cache a
11372     # path for INSTALL within a source directory, because that will
11373     # break other packages using the cache if that directory is
11374     # removed, or if the path is relative.
11375     INSTALL=$ac_install_sh
11376   fi
11377 fi
11378 echo "$as_me:$LINENO: result: $INSTALL" >&5
11379 echo "${ECHO_T}$INSTALL" >&6
11380
11381 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11382 # It thinks the first close brace ends the variable substitution.
11383 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11384
11385 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11386
11387 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11388
11389
11390 case ${INSTALL} in
11391   /* ) # Absolute
11392      ;;
11393   ?:* ) # Drive letter, considered as absolute.
11394      ;;
11395   *)
11396      INSTALL=`pwd`/${INSTALL} ;;
11397 esac
11398
11399 case ${host} in
11400     *-hp-hpux* )
11401         INSTALL_DIR="mkdir"
11402         ;;
11403
11404     *)  INSTALL_DIR="$INSTALL -d"
11405         ;;
11406 esac
11407
11408
11409 case "${host}" in
11410
11411                 powerpc-*-darwin* )
11412         INSTALL_PROGRAM="cp -fp"
11413         INSTALL_DATA="cp -fp"
11414         ;;
11415     *)
11416         ;;
11417 esac
11418
11419 # Extract the first word of "strip", so it can be a program name with args.
11420 set dummy strip; ac_word=$2
11421 echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423 if test "${ac_cv_prog_STRIP+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   if test -n "$STRIP"; then
11427   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11428 else
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11431 do
11432   IFS=$as_save_IFS
11433   test -z "$as_dir" && as_dir=.
11434   for ac_exec_ext in '' $ac_executable_extensions; do
11435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436     ac_cv_prog_STRIP="strip"
11437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438     break 2
11439   fi
11440 done
11441 done
11442
11443   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11444 fi
11445 fi
11446 STRIP=$ac_cv_prog_STRIP
11447 if test -n "$STRIP"; then
11448   echo "$as_me:$LINENO: result: $STRIP" >&5
11449 echo "${ECHO_T}$STRIP" >&6
11450 else
11451   echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6
11453 fi
11454
11455
11456 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11457 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11458 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461
11462     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11463             egrep -s GNU > /dev/null); then
11464         wx_cv_prog_makeisgnu="yes"
11465     else
11466         wx_cv_prog_makeisgnu="no"
11467     fi
11468
11469 fi
11470 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11471 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11472
11473 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11474     IF_GNU_MAKE=""
11475 else
11476     IF_GNU_MAKE="#"
11477 fi
11478
11479
11480
11481 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11482 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11483 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11484 if test "${wx_cv_prog_makevpath+set}" = set; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487
11488 cat - << EOF > confMake
11489 check : file
11490         cp \$? \$@
11491         cp \$? final_file
11492 EOF
11493
11494 if test ! -d sub ; then
11495   mkdir sub
11496 fi
11497 echo dummy > sub/file
11498 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11499 RESULT=$?
11500 rm -f sub/file check final_file confMake
11501 rmdir sub
11502 if test "$RESULT" = 0; then
11503   wx_cv_prog_makevpath="yes"
11504 else
11505   wx_cv_prog_makevpath="no"
11506 fi
11507
11508 fi
11509 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11510 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11511
11512 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11513 { { echo "$as_me:$LINENO: error:
11514 You need a make-utility that is able to use the variable
11515 VPATH correctly.
11516 If your version of make does not support VPATH correctly,
11517 please install GNU-make (possibly as gmake), and start
11518 configure with the following command:
11519 export MAKE=gmake; ./configure  for sh-type shells
11520 setenv MAKE gmake; ./configure  for csh-type shells
11521 Also please do remember to use gmake in this case every time
11522 you are trying to compile.
11523 " >&5
11524 echo "$as_me: error:
11525 You need a make-utility that is able to use the variable
11526 VPATH correctly.
11527 If your version of make does not support VPATH correctly,
11528 please install GNU-make (possibly as gmake), and start
11529 configure with the following command:
11530 export MAKE=gmake; ./configure  for sh-type shells
11531 setenv MAKE gmake; ./configure  for csh-type shells
11532 Also please do remember to use gmake in this case every time
11533 you are trying to compile.
11534 " >&2;}
11535    { (exit 1); exit 1; }; }
11536 fi fi
11537 for ac_prog in 'bison -y' byacc
11538 do
11539   # Extract the first word of "$ac_prog", so it can be a program name with args.
11540 set dummy $ac_prog; ac_word=$2
11541 echo "$as_me:$LINENO: checking for $ac_word" >&5
11542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11543 if test "${ac_cv_prog_YACC+set}" = set; then
11544   echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546   if test -n "$YACC"; then
11547   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11548 else
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11551 do
11552   IFS=$as_save_IFS
11553   test -z "$as_dir" && as_dir=.
11554   for ac_exec_ext in '' $ac_executable_extensions; do
11555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556     ac_cv_prog_YACC="$ac_prog"
11557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558     break 2
11559   fi
11560 done
11561 done
11562
11563 fi
11564 fi
11565 YACC=$ac_cv_prog_YACC
11566 if test -n "$YACC"; then
11567   echo "$as_me:$LINENO: result: $YACC" >&5
11568 echo "${ECHO_T}$YACC" >&6
11569 else
11570   echo "$as_me:$LINENO: result: no" >&5
11571 echo "${ECHO_T}no" >&6
11572 fi
11573
11574   test -n "$YACC" && break
11575 done
11576 test -n "$YACC" || YACC="yacc"
11577
11578
11579 for ac_prog in flex lex
11580 do
11581   # Extract the first word of "$ac_prog", so it can be a program name with args.
11582 set dummy $ac_prog; ac_word=$2
11583 echo "$as_me:$LINENO: checking for $ac_word" >&5
11584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11585 if test "${ac_cv_prog_LEX+set}" = set; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   if test -n "$LEX"; then
11589   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594   IFS=$as_save_IFS
11595   test -z "$as_dir" && as_dir=.
11596   for ac_exec_ext in '' $ac_executable_extensions; do
11597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598     ac_cv_prog_LEX="$ac_prog"
11599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600     break 2
11601   fi
11602 done
11603 done
11604
11605 fi
11606 fi
11607 LEX=$ac_cv_prog_LEX
11608 if test -n "$LEX"; then
11609   echo "$as_me:$LINENO: result: $LEX" >&5
11610 echo "${ECHO_T}$LEX" >&6
11611 else
11612   echo "$as_me:$LINENO: result: no" >&5
11613 echo "${ECHO_T}no" >&6
11614 fi
11615
11616   test -n "$LEX" && break
11617 done
11618 test -n "$LEX" || LEX=":"
11619
11620 if test -z "$LEXLIB"
11621 then
11622   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11623 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11624 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11625   echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627   ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lfl  $LIBS"
11629 cat >conftest.$ac_ext <<_ACEOF
11630 #line $LINENO "configure"
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636
11637 /* Override any gcc2 internal prototype to avoid an error.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 /* We use char because int might match the return type of a gcc2
11642    builtin and then its argument prototype would still apply.  */
11643 char yywrap ();
11644 int
11645 main ()
11646 {
11647 yywrap ();
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654   (eval $ac_link) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } &&
11658          { ac_try='test -s conftest$ac_exeext'
11659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660   (eval $ac_try) 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; }; then
11664   ac_cv_lib_fl_yywrap=yes
11665 else
11666   echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 ac_cv_lib_fl_yywrap=no
11670 fi
11671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11675 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11676 if test $ac_cv_lib_fl_yywrap = yes; then
11677   LEXLIB="-lfl"
11678 else
11679   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11680 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11681 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   ac_check_lib_save_LIBS=$LIBS
11685 LIBS="-ll  $LIBS"
11686 cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693
11694 /* Override any gcc2 internal prototype to avoid an error.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 /* We use char because int might match the return type of a gcc2
11699    builtin and then its argument prototype would still apply.  */
11700 char yywrap ();
11701 int
11702 main ()
11703 {
11704 yywrap ();
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711   (eval $ac_link) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   ac_cv_lib_l_yywrap=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_cv_lib_l_yywrap=no
11727 fi
11728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11730 fi
11731 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11732 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11733 if test $ac_cv_lib_l_yywrap = yes; then
11734   LEXLIB="-ll"
11735 fi
11736
11737 fi
11738
11739 fi
11740
11741 if test "x$LEX" != "x:"; then
11742   echo "$as_me:$LINENO: checking lex output file root" >&5
11743 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11744 if test "${ac_cv_prog_lex_root+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   # The minimal lex program is just a single line: %%.  But some broken lexes
11748 # (Solaris, I think it was) want two %% lines, so accommodate them.
11749 cat >conftest.l <<_ACEOF
11750 %%
11751 %%
11752 _ACEOF
11753 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11754   (eval $LEX conftest.l) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }
11758 if test -f lex.yy.c; then
11759   ac_cv_prog_lex_root=lex.yy
11760 elif test -f lexyy.c; then
11761   ac_cv_prog_lex_root=lexyy
11762 else
11763   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11764 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11765    { (exit 1); exit 1; }; }
11766 fi
11767 fi
11768 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11769 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11770 rm -f conftest.l
11771 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11772
11773 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11774 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11775 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11776   echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778   # POSIX says lex can declare yytext either as a pointer or an array; the
11779 # default is implementation-dependent. Figure out which it is, since
11780 # not all implementations provide the %pointer and %array declarations.
11781 ac_cv_prog_lex_yytext_pointer=no
11782 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11783 ac_save_LIBS=$LIBS
11784 LIBS="$LIBS $LEXLIB"
11785 cat >conftest.$ac_ext <<_ACEOF
11786 `cat $LEX_OUTPUT_ROOT.c`
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790   (eval $ac_link) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } &&
11794          { ac_try='test -s conftest$ac_exeext'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   ac_cv_prog_lex_yytext_pointer=yes
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 fi
11806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_save_LIBS
11808 rm -f "${LEX_OUTPUT_ROOT}.c"
11809
11810 fi
11811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11812 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11813 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11814
11815 cat >>confdefs.h <<\_ACEOF
11816 #define YYTEXT_POINTER 1
11817 _ACEOF
11818
11819 fi
11820
11821 fi
11822
11823 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11824 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11825 LN_S=$as_ln_s
11826 if test "$LN_S" = "ln -s"; then
11827   echo "$as_me:$LINENO: result: yes" >&5
11828 echo "${ECHO_T}yes" >&6
11829 else
11830   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11831 echo "${ECHO_T}no, using $LN_S" >&6
11832 fi
11833
11834
11835 case "${host}" in
11836   *-pc-os2_emx | *-pc-os2-emx )
11837             LIBS="$LIBS -lstdcpp"
11838       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11839                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11840 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11841 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844   ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-lcExt  $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853
11854 /* Override any gcc2 internal prototype to avoid an error.  */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 /* We use char because int might match the return type of a gcc2
11859    builtin and then its argument prototype would still apply.  */
11860 char drand48 ();
11861 int
11862 main ()
11863 {
11864 drand48 ();
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871   (eval $ac_link) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } &&
11875          { ac_try='test -s conftest$ac_exeext'
11876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877   (eval $ac_try) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; }; then
11881   ac_cv_lib_cExt_drand48=yes
11882 else
11883   echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886 ac_cv_lib_cExt_drand48=no
11887 fi
11888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11889 LIBS=$ac_check_lib_save_LIBS
11890 fi
11891 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11892 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11893 if test $ac_cv_lib_cExt_drand48 = yes; then
11894   LIBS="$LIBS -lcExt"
11895 fi
11896
11897       else
11898                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11899       fi
11900   ;;
11901 esac
11902
11903
11904 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11905     echo "$as_me:$LINENO: checking for strings.h" >&5
11906 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11907 if test "${ac_cv_header_strings_h+set}" = set; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   ac_cv_header_strings_h=no
11911 fi
11912 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11913 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11914     if test "$ac_cv_header_strings_h" = "no"; then
11915         echo "$as_me:$LINENO: result: forced no into cache" >&5
11916 echo "${ECHO_T}forced no into cache" >&6
11917     else
11918         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11919 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11920     fi
11921 fi
11922 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11924 if test "${ac_cv_header_stdc+set}" = set; then
11925   echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927   cat >conftest.$ac_ext <<_ACEOF
11928 #line $LINENO "configure"
11929 /* confdefs.h.  */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h.  */
11934 #include <stdlib.h>
11935 #include <stdarg.h>
11936 #include <string.h>
11937 #include <float.h>
11938
11939 int
11940 main ()
11941 {
11942
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949   (eval $ac_compile) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } &&
11953          { ac_try='test -s conftest.$ac_objext'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   ac_cv_header_stdc=yes
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 ac_cv_header_stdc=no
11965 fi
11966 rm -f conftest.$ac_objext conftest.$ac_ext
11967
11968 if test $ac_cv_header_stdc = yes; then
11969   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11970   cat >conftest.$ac_ext <<_ACEOF
11971 #line $LINENO "configure"
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977 #include <string.h>
11978
11979 _ACEOF
11980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11981   $EGREP "memchr" >/dev/null 2>&1; then
11982   :
11983 else
11984   ac_cv_header_stdc=no
11985 fi
11986 rm -f conftest*
11987
11988 fi
11989
11990 if test $ac_cv_header_stdc = yes; then
11991   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11992   cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999 #include <stdlib.h>
12000
12001 _ACEOF
12002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12003   $EGREP "free" >/dev/null 2>&1; then
12004   :
12005 else
12006   ac_cv_header_stdc=no
12007 fi
12008 rm -f conftest*
12009
12010 fi
12011
12012 if test $ac_cv_header_stdc = yes; then
12013   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12014   if test "$cross_compiling" = yes; then
12015   :
12016 else
12017   cat >conftest.$ac_ext <<_ACEOF
12018 #line $LINENO "configure"
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024 #include <ctype.h>
12025 #if ((' ' & 0x0FF) == 0x020)
12026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12028 #else
12029 # define ISLOWER(c) \
12030                    (('a' <= (c) && (c) <= 'i') \
12031                      || ('j' <= (c) && (c) <= 'r') \
12032                      || ('s' <= (c) && (c) <= 'z'))
12033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12034 #endif
12035
12036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12037 int
12038 main ()
12039 {
12040   int i;
12041   for (i = 0; i < 256; i++)
12042     if (XOR (islower (i), ISLOWER (i))
12043         || toupper (i) != TOUPPER (i))
12044       exit(2);
12045   exit (0);
12046 }
12047 _ACEOF
12048 rm -f conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050   (eval $ac_link) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   :
12060 else
12061   echo "$as_me: program exited with status $ac_status" >&5
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ( exit $ac_status )
12066 ac_cv_header_stdc=no
12067 fi
12068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 fi
12071 fi
12072 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12073 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12074 if test $ac_cv_header_stdc = yes; then
12075
12076 cat >>confdefs.h <<\_ACEOF
12077 #define STDC_HEADERS 1
12078 _ACEOF
12079
12080 fi
12081
12082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12093                   inttypes.h stdint.h unistd.h
12094 do
12095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096 echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101   cat >conftest.$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12103 /* confdefs.h.  */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h.  */
12108 $ac_includes_default
12109
12110 #include <$ac_header>
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114   (eval $ac_compile) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -s conftest.$ac_objext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   eval "$as_ac_Header=yes"
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 eval "$as_ac_Header=no"
12130 fi
12131 rm -f conftest.$ac_objext conftest.$ac_ext
12132 fi
12133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12136   cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12138 _ACEOF
12139
12140 fi
12141
12142 done
12143
12144
12145
12146 for ac_header in strings.h
12147 do
12148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12150   echo "$as_me:$LINENO: checking for $ac_header" >&5
12151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 fi
12155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12157 else
12158   # Is the header compilable?
12159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168 $ac_includes_default
12169 #include <$ac_header>
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173   (eval $ac_compile) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -s conftest.$ac_objext'
12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179   (eval $ac_try) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_header_compiler=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_header_compiler=no
12189 fi
12190 rm -f conftest.$ac_objext conftest.$ac_ext
12191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192 echo "${ECHO_T}$ac_header_compiler" >&6
12193
12194 # Is the header present?
12195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 #include <$ac_header>
12205 _ACEOF
12206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } >/dev/null; then
12214   if test -s conftest.err; then
12215     ac_cpp_err=$ac_c_preproc_warn_flag
12216   else
12217     ac_cpp_err=
12218   fi
12219 else
12220   ac_cpp_err=yes
12221 fi
12222 if test -z "$ac_cpp_err"; then
12223   ac_header_preproc=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228   ac_header_preproc=no
12229 fi
12230 rm -f conftest.err conftest.$ac_ext
12231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12232 echo "${ECHO_T}$ac_header_preproc" >&6
12233
12234 # So?  What about this header?
12235 case $ac_header_compiler:$ac_header_preproc in
12236   yes:no )
12237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12241     (
12242       cat <<\_ASBOX
12243 ## ------------------------------------ ##
12244 ## Report this to bug-autoconf@gnu.org. ##
12245 ## ------------------------------------ ##
12246 _ASBOX
12247     ) |
12248       sed "s/^/$as_me: WARNING:     /" >&2
12249     ;;
12250   no:yes )
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12257     (
12258       cat <<\_ASBOX
12259 ## ------------------------------------ ##
12260 ## Report this to bug-autoconf@gnu.org. ##
12261 ## ------------------------------------ ##
12262 _ASBOX
12263     ) |
12264       sed "s/^/$as_me: WARNING:     /" >&2
12265     ;;
12266 esac
12267 echo "$as_me:$LINENO: checking for $ac_header" >&5
12268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   eval "$as_ac_Header=$ac_header_preproc"
12273 fi
12274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12276
12277 fi
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 fi
12284
12285 done
12286
12287
12288
12289 for ac_header in stdlib.h
12290 do
12291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12293   echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 fi
12298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12300 else
12301   # Is the header compilable?
12302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12304 cat >conftest.$ac_ext <<_ACEOF
12305 #line $LINENO "configure"
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311 $ac_includes_default
12312 #include <$ac_header>
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316   (eval $ac_compile) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_header_compiler=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 ac_header_compiler=no
12332 fi
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 echo "${ECHO_T}$ac_header_compiler" >&6
12336
12337 # Is the header present?
12338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 #include <$ac_header>
12348 _ACEOF
12349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } >/dev/null; then
12357   if test -s conftest.err; then
12358     ac_cpp_err=$ac_c_preproc_warn_flag
12359   else
12360     ac_cpp_err=
12361   fi
12362 else
12363   ac_cpp_err=yes
12364 fi
12365 if test -z "$ac_cpp_err"; then
12366   ac_header_preproc=yes
12367 else
12368   echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12370
12371   ac_header_preproc=no
12372 fi
12373 rm -f conftest.err conftest.$ac_ext
12374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375 echo "${ECHO_T}$ac_header_preproc" >&6
12376
12377 # So?  What about this header?
12378 case $ac_header_compiler:$ac_header_preproc in
12379   yes:no )
12380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12384     (
12385       cat <<\_ASBOX
12386 ## ------------------------------------ ##
12387 ## Report this to bug-autoconf@gnu.org. ##
12388 ## ------------------------------------ ##
12389 _ASBOX
12390     ) |
12391       sed "s/^/$as_me: WARNING:     /" >&2
12392     ;;
12393   no:yes )
12394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12396     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12400     (
12401       cat <<\_ASBOX
12402 ## ------------------------------------ ##
12403 ## Report this to bug-autoconf@gnu.org. ##
12404 ## ------------------------------------ ##
12405 _ASBOX
12406     ) |
12407       sed "s/^/$as_me: WARNING:     /" >&2
12408     ;;
12409 esac
12410 echo "$as_me:$LINENO: checking for $ac_header" >&5
12411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415   eval "$as_ac_Header=$ac_header_preproc"
12416 fi
12417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12419
12420 fi
12421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12422   cat >>confdefs.h <<_ACEOF
12423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12424 _ACEOF
12425
12426 fi
12427
12428 done
12429
12430
12431 for ac_header in malloc.h
12432 do
12433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12435   echo "$as_me:$LINENO: checking for $ac_header" >&5
12436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 fi
12440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12442 else
12443   # Is the header compilable?
12444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12446 cat >conftest.$ac_ext <<_ACEOF
12447 #line $LINENO "configure"
12448 /* confdefs.h.  */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h.  */
12453 $ac_includes_default
12454 #include <$ac_header>
12455 _ACEOF
12456 rm -f conftest.$ac_objext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458   (eval $ac_compile) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } &&
12462          { ac_try='test -s conftest.$ac_objext'
12463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464   (eval $ac_try) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   ac_header_compiler=yes
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_header_compiler=no
12474 fi
12475 rm -f conftest.$ac_objext conftest.$ac_ext
12476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12477 echo "${ECHO_T}$ac_header_compiler" >&6
12478
12479 # Is the header present?
12480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489 #include <$ac_header>
12490 _ACEOF
12491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } >/dev/null; then
12499   if test -s conftest.err; then
12500     ac_cpp_err=$ac_c_preproc_warn_flag
12501   else
12502     ac_cpp_err=
12503   fi
12504 else
12505   ac_cpp_err=yes
12506 fi
12507 if test -z "$ac_cpp_err"; then
12508   ac_header_preproc=yes
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513   ac_header_preproc=no
12514 fi
12515 rm -f conftest.err conftest.$ac_ext
12516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12517 echo "${ECHO_T}$ac_header_preproc" >&6
12518
12519 # So?  What about this header?
12520 case $ac_header_compiler:$ac_header_preproc in
12521   yes:no )
12522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12526     (
12527       cat <<\_ASBOX
12528 ## ------------------------------------ ##
12529 ## Report this to bug-autoconf@gnu.org. ##
12530 ## ------------------------------------ ##
12531 _ASBOX
12532     ) |
12533       sed "s/^/$as_me: WARNING:     /" >&2
12534     ;;
12535   no:yes )
12536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12538     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12542     (
12543       cat <<\_ASBOX
12544 ## ------------------------------------ ##
12545 ## Report this to bug-autoconf@gnu.org. ##
12546 ## ------------------------------------ ##
12547 _ASBOX
12548     ) |
12549       sed "s/^/$as_me: WARNING:     /" >&2
12550     ;;
12551 esac
12552 echo "$as_me:$LINENO: checking for $ac_header" >&5
12553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12555   echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557   eval "$as_ac_Header=$ac_header_preproc"
12558 fi
12559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12561
12562 fi
12563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12564   cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12566 _ACEOF
12567
12568 fi
12569
12570 done
12571
12572
12573 for ac_header in unistd.h
12574 do
12575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12577   echo "$as_me:$LINENO: checking for $ac_header" >&5
12578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 fi
12582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12584 else
12585   # Is the header compilable?
12586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12588 cat >conftest.$ac_ext <<_ACEOF
12589 #line $LINENO "configure"
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 $ac_includes_default
12596 #include <$ac_header>
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600   (eval $ac_compile) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); } &&
12604          { ac_try='test -s conftest.$ac_objext'
12605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606   (eval $ac_try) 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; }; then
12610   ac_header_compiler=yes
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 ac_header_compiler=no
12616 fi
12617 rm -f conftest.$ac_objext conftest.$ac_ext
12618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12619 echo "${ECHO_T}$ac_header_compiler" >&6
12620
12621 # Is the header present?
12622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12624 cat >conftest.$ac_ext <<_ACEOF
12625 #line $LINENO "configure"
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631 #include <$ac_header>
12632 _ACEOF
12633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } >/dev/null; then
12641   if test -s conftest.err; then
12642     ac_cpp_err=$ac_c_preproc_warn_flag
12643   else
12644     ac_cpp_err=
12645   fi
12646 else
12647   ac_cpp_err=yes
12648 fi
12649 if test -z "$ac_cpp_err"; then
12650   ac_header_preproc=yes
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655   ac_header_preproc=no
12656 fi
12657 rm -f conftest.err conftest.$ac_ext
12658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12659 echo "${ECHO_T}$ac_header_preproc" >&6
12660
12661 # So?  What about this header?
12662 case $ac_header_compiler:$ac_header_preproc in
12663   yes:no )
12664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12668     (
12669       cat <<\_ASBOX
12670 ## ------------------------------------ ##
12671 ## Report this to bug-autoconf@gnu.org. ##
12672 ## ------------------------------------ ##
12673 _ASBOX
12674     ) |
12675       sed "s/^/$as_me: WARNING:     /" >&2
12676     ;;
12677   no:yes )
12678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12684     (
12685       cat <<\_ASBOX
12686 ## ------------------------------------ ##
12687 ## Report this to bug-autoconf@gnu.org. ##
12688 ## ------------------------------------ ##
12689 _ASBOX
12690     ) |
12691       sed "s/^/$as_me: WARNING:     /" >&2
12692     ;;
12693 esac
12694 echo "$as_me:$LINENO: checking for $ac_header" >&5
12695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12697   echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699   eval "$as_ac_Header=$ac_header_preproc"
12700 fi
12701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12703
12704 fi
12705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12706   cat >>confdefs.h <<_ACEOF
12707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12708 _ACEOF
12709
12710 fi
12711
12712 done
12713
12714
12715 for ac_header in wchar.h
12716 do
12717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12719   echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 fi
12724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12726 else
12727   # Is the header compilable?
12728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737 $ac_includes_default
12738 #include <$ac_header>
12739 _ACEOF
12740 rm -f conftest.$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742   (eval $ac_compile) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } &&
12746          { ac_try='test -s conftest.$ac_objext'
12747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748   (eval $ac_try) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; }; then
12752   ac_header_compiler=yes
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757 ac_header_compiler=no
12758 fi
12759 rm -f conftest.$ac_objext conftest.$ac_ext
12760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12761 echo "${ECHO_T}$ac_header_compiler" >&6
12762
12763 # Is the header present?
12764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 #include <$ac_header>
12774 _ACEOF
12775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } >/dev/null; then
12783   if test -s conftest.err; then
12784     ac_cpp_err=$ac_c_preproc_warn_flag
12785   else
12786     ac_cpp_err=
12787   fi
12788 else
12789   ac_cpp_err=yes
12790 fi
12791 if test -z "$ac_cpp_err"; then
12792   ac_header_preproc=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797   ac_header_preproc=no
12798 fi
12799 rm -f conftest.err conftest.$ac_ext
12800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12801 echo "${ECHO_T}$ac_header_preproc" >&6
12802
12803 # So?  What about this header?
12804 case $ac_header_compiler:$ac_header_preproc in
12805   yes:no )
12806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12810     (
12811       cat <<\_ASBOX
12812 ## ------------------------------------ ##
12813 ## Report this to bug-autoconf@gnu.org. ##
12814 ## ------------------------------------ ##
12815 _ASBOX
12816     ) |
12817       sed "s/^/$as_me: WARNING:     /" >&2
12818     ;;
12819   no:yes )
12820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12822     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12826     (
12827       cat <<\_ASBOX
12828 ## ------------------------------------ ##
12829 ## Report this to bug-autoconf@gnu.org. ##
12830 ## ------------------------------------ ##
12831 _ASBOX
12832     ) |
12833       sed "s/^/$as_me: WARNING:     /" >&2
12834     ;;
12835 esac
12836 echo "$as_me:$LINENO: checking for $ac_header" >&5
12837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   eval "$as_ac_Header=$ac_header_preproc"
12842 fi
12843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12845
12846 fi
12847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12848   cat >>confdefs.h <<_ACEOF
12849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12850 _ACEOF
12851
12852 fi
12853
12854 done
12855
12856
12857 if test "$ac_cv_header_wchar_h" != "yes"; then
12858
12859 for ac_header in wcstr.h
12860 do
12861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12863   echo "$as_me:$LINENO: checking for $ac_header" >&5
12864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 fi
12868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12870 else
12871   # Is the header compilable?
12872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12874 cat >conftest.$ac_ext <<_ACEOF
12875 #line $LINENO "configure"
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 $ac_includes_default
12882 #include <$ac_header>
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886   (eval $ac_compile) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } &&
12890          { ac_try='test -s conftest.$ac_objext'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; }; then
12896   ac_header_compiler=yes
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_header_compiler=no
12902 fi
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12905 echo "${ECHO_T}$ac_header_compiler" >&6
12906
12907 # Is the header present?
12908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12910 cat >conftest.$ac_ext <<_ACEOF
12911 #line $LINENO "configure"
12912 /* confdefs.h.  */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h.  */
12917 #include <$ac_header>
12918 _ACEOF
12919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } >/dev/null; then
12927   if test -s conftest.err; then
12928     ac_cpp_err=$ac_c_preproc_warn_flag
12929   else
12930     ac_cpp_err=
12931   fi
12932 else
12933   ac_cpp_err=yes
12934 fi
12935 if test -z "$ac_cpp_err"; then
12936   ac_header_preproc=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941   ac_header_preproc=no
12942 fi
12943 rm -f conftest.err conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945 echo "${ECHO_T}$ac_header_preproc" >&6
12946
12947 # So?  What about this header?
12948 case $ac_header_compiler:$ac_header_preproc in
12949   yes:no )
12950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12954     (
12955       cat <<\_ASBOX
12956 ## ------------------------------------ ##
12957 ## Report this to bug-autoconf@gnu.org. ##
12958 ## ------------------------------------ ##
12959 _ASBOX
12960     ) |
12961       sed "s/^/$as_me: WARNING:     /" >&2
12962     ;;
12963   no:yes )
12964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12966     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12970     (
12971       cat <<\_ASBOX
12972 ## ------------------------------------ ##
12973 ## Report this to bug-autoconf@gnu.org. ##
12974 ## ------------------------------------ ##
12975 _ASBOX
12976     ) |
12977       sed "s/^/$as_me: WARNING:     /" >&2
12978     ;;
12979 esac
12980 echo "$as_me:$LINENO: checking for $ac_header" >&5
12981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983   echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985   eval "$as_ac_Header=$ac_header_preproc"
12986 fi
12987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12989
12990 fi
12991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12992   cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12994 _ACEOF
12995
12996 fi
12997
12998 done
12999
13000 fi
13001
13002
13003 for ac_header in fnmatch.h
13004 do
13005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13007   echo "$as_me:$LINENO: checking for $ac_header" >&5
13008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 fi
13012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014 else
13015   # Is the header compilable?
13016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13018 cat >conftest.$ac_ext <<_ACEOF
13019 #line $LINENO "configure"
13020 /* confdefs.h.  */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h.  */
13025 $ac_includes_default
13026 #include <$ac_header>
13027 _ACEOF
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030   (eval $ac_compile) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -s conftest.$ac_objext'
13035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036   (eval $ac_try) 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   ac_header_compiler=yes
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13044
13045 ac_header_compiler=no
13046 fi
13047 rm -f conftest.$ac_objext conftest.$ac_ext
13048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049 echo "${ECHO_T}$ac_header_compiler" >&6
13050
13051 # Is the header present?
13052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13054 cat >conftest.$ac_ext <<_ACEOF
13055 #line $LINENO "configure"
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061 #include <$ac_header>
13062 _ACEOF
13063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13065   ac_status=$?
13066   grep -v '^ *+' conftest.er1 >conftest.err
13067   rm -f conftest.er1
13068   cat conftest.err >&5
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } >/dev/null; then
13071   if test -s conftest.err; then
13072     ac_cpp_err=$ac_c_preproc_warn_flag
13073   else
13074     ac_cpp_err=
13075   fi
13076 else
13077   ac_cpp_err=yes
13078 fi
13079 if test -z "$ac_cpp_err"; then
13080   ac_header_preproc=yes
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085   ac_header_preproc=no
13086 fi
13087 rm -f conftest.err conftest.$ac_ext
13088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13089 echo "${ECHO_T}$ac_header_preproc" >&6
13090
13091 # So?  What about this header?
13092 case $ac_header_compiler:$ac_header_preproc in
13093   yes:no )
13094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13098     (
13099       cat <<\_ASBOX
13100 ## ------------------------------------ ##
13101 ## Report this to bug-autoconf@gnu.org. ##
13102 ## ------------------------------------ ##
13103 _ASBOX
13104     ) |
13105       sed "s/^/$as_me: WARNING:     /" >&2
13106     ;;
13107   no:yes )
13108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13110     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13114     (
13115       cat <<\_ASBOX
13116 ## ------------------------------------ ##
13117 ## Report this to bug-autoconf@gnu.org. ##
13118 ## ------------------------------------ ##
13119 _ASBOX
13120     ) |
13121       sed "s/^/$as_me: WARNING:     /" >&2
13122     ;;
13123 esac
13124 echo "$as_me:$LINENO: checking for $ac_header" >&5
13125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13127   echo $ECHO_N "(cached) $ECHO_C" >&6
13128 else
13129   eval "$as_ac_Header=$ac_header_preproc"
13130 fi
13131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13133
13134 fi
13135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13136   cat >>confdefs.h <<_ACEOF
13137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13138 _ACEOF
13139
13140 fi
13141
13142 done
13143
13144
13145 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13146
13147 for ac_func in fnmatch
13148 do
13149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13150 echo "$as_me:$LINENO: checking for $ac_func" >&5
13151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13152 if eval "test \"\${$as_ac_var+set}\" = set"; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   cat >conftest.$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 /* System header to define __stub macros and hopefully few prototypes,
13163     which can conflict with char $ac_func (); below.
13164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13165     <limits.h> exists even on freestanding compilers.  */
13166 #ifdef __STDC__
13167 # include <limits.h>
13168 #else
13169 # include <assert.h>
13170 #endif
13171 /* Override any gcc2 internal prototype to avoid an error.  */
13172 #ifdef __cplusplus
13173 extern "C"
13174 {
13175 #endif
13176 /* We use char because int might match the return type of a gcc2
13177    builtin and then its argument prototype would still apply.  */
13178 char $ac_func ();
13179 /* The GNU C library defines this for functions which it implements
13180     to always fail with ENOSYS.  Some functions are actually named
13181     something starting with __ and the normal name is an alias.  */
13182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13183 choke me
13184 #else
13185 char (*f) () = $ac_func;
13186 #endif
13187 #ifdef __cplusplus
13188 }
13189 #endif
13190
13191 int
13192 main ()
13193 {
13194 return f != $ac_func;
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201   (eval $ac_link) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } &&
13205          { ac_try='test -s conftest$ac_exeext'
13206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207   (eval $ac_try) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   eval "$as_ac_var=yes"
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 eval "$as_ac_var=no"
13217 fi
13218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13219 fi
13220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13222 if test `eval echo '${'$as_ac_var'}'` = yes; then
13223   cat >>confdefs.h <<_ACEOF
13224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13225 _ACEOF
13226
13227 fi
13228 done
13229
13230 fi
13231
13232
13233 for ac_header in langinfo.h
13234 do
13235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237   echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 fi
13242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13244 else
13245   # Is the header compilable?
13246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13248 cat >conftest.$ac_ext <<_ACEOF
13249 #line $LINENO "configure"
13250 /* confdefs.h.  */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h.  */
13255 $ac_includes_default
13256 #include <$ac_header>
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260   (eval $ac_compile) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } &&
13264          { ac_try='test -s conftest.$ac_objext'
13265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266   (eval $ac_try) 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; }; then
13270   ac_header_compiler=yes
13271 else
13272   echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13274
13275 ac_header_compiler=no
13276 fi
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13280
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 #include <$ac_header>
13292 _ACEOF
13293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } >/dev/null; then
13301   if test -s conftest.err; then
13302     ac_cpp_err=$ac_c_preproc_warn_flag
13303   else
13304     ac_cpp_err=
13305   fi
13306 else
13307   ac_cpp_err=yes
13308 fi
13309 if test -z "$ac_cpp_err"; then
13310   ac_header_preproc=yes
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315   ac_header_preproc=no
13316 fi
13317 rm -f conftest.err conftest.$ac_ext
13318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13319 echo "${ECHO_T}$ac_header_preproc" >&6
13320
13321 # So?  What about this header?
13322 case $ac_header_compiler:$ac_header_preproc in
13323   yes:no )
13324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13328     (
13329       cat <<\_ASBOX
13330 ## ------------------------------------ ##
13331 ## Report this to bug-autoconf@gnu.org. ##
13332 ## ------------------------------------ ##
13333 _ASBOX
13334     ) |
13335       sed "s/^/$as_me: WARNING:     /" >&2
13336     ;;
13337   no:yes )
13338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13340     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13344     (
13345       cat <<\_ASBOX
13346 ## ------------------------------------ ##
13347 ## Report this to bug-autoconf@gnu.org. ##
13348 ## ------------------------------------ ##
13349 _ASBOX
13350     ) |
13351       sed "s/^/$as_me: WARNING:     /" >&2
13352     ;;
13353 esac
13354 echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   eval "$as_ac_Header=$ac_header_preproc"
13360 fi
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13363
13364 fi
13365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13366   cat >>confdefs.h <<_ACEOF
13367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13368 _ACEOF
13369
13370 fi
13371
13372 done
13373
13374
13375 case "${host}" in
13376   *-pc-os2_emx | *-pc-os2-emx )
13377             if test $ac_cv_header_langinfo_h = "yes"; then
13378           LIBS="$LIBS -lintl"
13379       fi
13380   ;;
13381 esac
13382
13383 if test "$wxUSE_GUI" = "yes"; then
13384     if test "$wxUSE_UNIX" = "yes"; then
13385
13386 for ac_header in X11/XKBlib.h
13387 do
13388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13390   echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 fi
13395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13397 else
13398   # Is the header compilable?
13399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13401 cat >conftest.$ac_ext <<_ACEOF
13402 #line $LINENO "configure"
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408 $ac_includes_default
13409 #include <$ac_header>
13410 _ACEOF
13411 rm -f conftest.$ac_objext
13412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413   (eval $ac_compile) 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -s conftest.$ac_objext'
13418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419   (eval $ac_try) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; }; then
13423   ac_header_compiler=yes
13424 else
13425   echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13427
13428 ac_header_compiler=no
13429 fi
13430 rm -f conftest.$ac_objext conftest.$ac_ext
13431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13432 echo "${ECHO_T}$ac_header_compiler" >&6
13433
13434 # Is the header present?
13435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13437 cat >conftest.$ac_ext <<_ACEOF
13438 #line $LINENO "configure"
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 #include <$ac_header>
13445 _ACEOF
13446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } >/dev/null; then
13454   if test -s conftest.err; then
13455     ac_cpp_err=$ac_c_preproc_warn_flag
13456   else
13457     ac_cpp_err=
13458   fi
13459 else
13460   ac_cpp_err=yes
13461 fi
13462 if test -z "$ac_cpp_err"; then
13463   ac_header_preproc=yes
13464 else
13465   echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468   ac_header_preproc=no
13469 fi
13470 rm -f conftest.err conftest.$ac_ext
13471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13472 echo "${ECHO_T}$ac_header_preproc" >&6
13473
13474 # So?  What about this header?
13475 case $ac_header_compiler:$ac_header_preproc in
13476   yes:no )
13477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13481     (
13482       cat <<\_ASBOX
13483 ## ------------------------------------ ##
13484 ## Report this to bug-autoconf@gnu.org. ##
13485 ## ------------------------------------ ##
13486 _ASBOX
13487     ) |
13488       sed "s/^/$as_me: WARNING:     /" >&2
13489     ;;
13490   no:yes )
13491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13493     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13497     (
13498       cat <<\_ASBOX
13499 ## ------------------------------------ ##
13500 ## Report this to bug-autoconf@gnu.org. ##
13501 ## ------------------------------------ ##
13502 _ASBOX
13503     ) |
13504       sed "s/^/$as_me: WARNING:     /" >&2
13505     ;;
13506 esac
13507 echo "$as_me:$LINENO: checking for $ac_header" >&5
13508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512   eval "$as_ac_Header=$ac_header_preproc"
13513 fi
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516
13517 fi
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519   cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13521 _ACEOF
13522
13523 fi
13524
13525 done
13526
13527     fi
13528 fi
13529
13530
13531 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13532 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13533 if test "${ac_cv_c_const+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   cat >conftest.$ac_ext <<_ACEOF
13537 #line $LINENO "configure"
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543
13544 int
13545 main ()
13546 {
13547 /* FIXME: Include the comments suggested by Paul. */
13548 #ifndef __cplusplus
13549   /* Ultrix mips cc rejects this.  */
13550   typedef int charset[2];
13551   const charset x;
13552   /* SunOS 4.1.1 cc rejects this.  */
13553   char const *const *ccp;
13554   char **p;
13555   /* NEC SVR4.0.2 mips cc rejects this.  */
13556   struct point {int x, y;};
13557   static struct point const zero = {0,0};
13558   /* AIX XL C 1.02.0.0 rejects this.
13559      It does not let you subtract one const X* pointer from another in
13560      an arm of an if-expression whose if-part is not a constant
13561      expression */
13562   const char *g = "string";
13563   ccp = &g + (g ? g-g : 0);
13564   /* HPUX 7.0 cc rejects these. */
13565   ++ccp;
13566   p = (char**) ccp;
13567   ccp = (char const *const *) p;
13568   { /* SCO 3.2v4 cc rejects this.  */
13569     char *t;
13570     char const *s = 0 ? (char *) 0 : (char const *) 0;
13571
13572     *t++ = 0;
13573   }
13574   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13575     int x[] = {25, 17};
13576     const int *foo = &x[0];
13577     ++foo;
13578   }
13579   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13580     typedef const int *iptr;
13581     iptr p = 0;
13582     ++p;
13583   }
13584   { /* AIX XL C 1.02.0.0 rejects this saying
13585        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13586     struct s { int j; const int *ap[3]; };
13587     struct s *b; b->j = 5;
13588   }
13589   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13590     const int foo = 10;
13591   }
13592 #endif
13593
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600   (eval $ac_compile) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } &&
13604          { ac_try='test -s conftest.$ac_objext'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; }; then
13610   ac_cv_c_const=yes
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 ac_cv_c_const=no
13616 fi
13617 rm -f conftest.$ac_objext conftest.$ac_ext
13618 fi
13619 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13620 echo "${ECHO_T}$ac_cv_c_const" >&6
13621 if test $ac_cv_c_const = no; then
13622
13623 cat >>confdefs.h <<\_ACEOF
13624 #define const
13625 _ACEOF
13626
13627 fi
13628
13629 echo "$as_me:$LINENO: checking for inline" >&5
13630 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13631 if test "${ac_cv_c_inline+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   ac_cv_c_inline=no
13635 for ac_kw in inline __inline__ __inline; do
13636   cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643 #ifndef __cplusplus
13644 typedef int foo_t;
13645 static $ac_kw foo_t static_foo () {return 0; }
13646 $ac_kw foo_t foo () {return 0; }
13647 #endif
13648
13649 _ACEOF
13650 rm -f conftest.$ac_objext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652   (eval $ac_compile) 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } &&
13656          { ac_try='test -s conftest.$ac_objext'
13657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658   (eval $ac_try) 2>&5
13659   ac_status=$?
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); }; }; then
13662   ac_cv_c_inline=$ac_kw; break
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 fi
13668 rm -f conftest.$ac_objext conftest.$ac_ext
13669 done
13670
13671 fi
13672 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13673 echo "${ECHO_T}$ac_cv_c_inline" >&6
13674 case $ac_cv_c_inline in
13675   inline | yes) ;;
13676   no)
13677 cat >>confdefs.h <<\_ACEOF
13678 #define inline
13679 _ACEOF
13680  ;;
13681   *)  cat >>confdefs.h <<_ACEOF
13682 #define inline $ac_cv_c_inline
13683 _ACEOF
13684  ;;
13685 esac
13686
13687
13688 echo "$as_me:$LINENO: checking for char" >&5
13689 echo $ECHO_N "checking for char... $ECHO_C" >&6
13690 if test "${ac_cv_type_char+set}" = set; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693   cat >conftest.$ac_ext <<_ACEOF
13694 #line $LINENO "configure"
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700 $ac_includes_default
13701 int
13702 main ()
13703 {
13704 if ((char *) 0)
13705   return 0;
13706 if (sizeof (char))
13707   return 0;
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest.$ac_objext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714   (eval $ac_compile) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -s conftest.$ac_objext'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_cv_type_char=yes
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729 ac_cv_type_char=no
13730 fi
13731 rm -f conftest.$ac_objext conftest.$ac_ext
13732 fi
13733 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13734 echo "${ECHO_T}$ac_cv_type_char" >&6
13735
13736 echo "$as_me:$LINENO: checking size of char" >&5
13737 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13738 if test "${ac_cv_sizeof_char+set}" = set; then
13739   echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741   if test "$ac_cv_type_char" = yes; then
13742   # The cast to unsigned long works around a bug in the HP C Compiler
13743   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13744   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13745   # This bug is HP SR number 8606223364.
13746   if test "$cross_compiling" = yes; then
13747   # Depending upon the size, compute the lo and hi bounds.
13748 cat >conftest.$ac_ext <<_ACEOF
13749 #line $LINENO "configure"
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 $ac_includes_default
13756 int
13757 main ()
13758 {
13759 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13760 test_array [0] = 0
13761
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768   (eval $ac_compile) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -s conftest.$ac_objext'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; }; then
13778   ac_lo=0 ac_mid=0
13779   while :; do
13780     cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 $ac_includes_default
13788 int
13789 main ()
13790 {
13791 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13792 test_array [0] = 0
13793
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800   (eval $ac_compile) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_hi=$ac_mid; break
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_lo=`expr $ac_mid + 1`
13816                     if test $ac_lo -le $ac_mid; then
13817                       ac_lo= ac_hi=
13818                       break
13819                     fi
13820                     ac_mid=`expr 2 '*' $ac_mid + 1`
13821 fi
13822 rm -f conftest.$ac_objext conftest.$ac_ext
13823   done
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 cat >conftest.$ac_ext <<_ACEOF
13829 #line $LINENO "configure"
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 $ac_includes_default
13836 int
13837 main ()
13838 {
13839 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13840 test_array [0] = 0
13841
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848   (eval $ac_compile) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_hi=-1 ac_mid=-1
13859   while :; do
13860     cat >conftest.$ac_ext <<_ACEOF
13861 #line $LINENO "configure"
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 $ac_includes_default
13868 int
13869 main ()
13870 {
13871 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13872 test_array [0] = 0
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880   (eval $ac_compile) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -s conftest.$ac_objext'
13885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886   (eval $ac_try) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; }; then
13890   ac_lo=$ac_mid; break
13891 else
13892   echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895 ac_hi=`expr '(' $ac_mid ')' - 1`
13896                        if test $ac_mid -le $ac_hi; then
13897                          ac_lo= ac_hi=
13898                          break
13899                        fi
13900                        ac_mid=`expr 2 '*' $ac_mid`
13901 fi
13902 rm -f conftest.$ac_objext conftest.$ac_ext
13903   done
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 ac_lo= ac_hi=
13909 fi
13910 rm -f conftest.$ac_objext conftest.$ac_ext
13911 fi
13912 rm -f conftest.$ac_objext conftest.$ac_ext
13913 # Binary search between lo and hi bounds.
13914 while test "x$ac_lo" != "x$ac_hi"; do
13915   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13916   cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 $ac_includes_default
13924 int
13925 main ()
13926 {
13927 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13928 test_array [0] = 0
13929
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936   (eval $ac_compile) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -s conftest.$ac_objext'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946   ac_hi=$ac_mid
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951 ac_lo=`expr '(' $ac_mid ')' + 1`
13952 fi
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13954 done
13955 case $ac_lo in
13956 ?*) ac_cv_sizeof_char=$ac_lo;;
13957 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13958 See \`config.log' for more details." >&5
13959 echo "$as_me: error: cannot compute sizeof (char), 77
13960 See \`config.log' for more details." >&2;}
13961    { (exit 1); exit 1; }; } ;;
13962 esac
13963 else
13964   if test "$cross_compiling" = yes; then
13965   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13966 See \`config.log' for more details." >&5
13967 echo "$as_me: error: cannot run test program while cross compiling
13968 See \`config.log' for more details." >&2;}
13969    { (exit 1); exit 1; }; }
13970 else
13971   cat >conftest.$ac_ext <<_ACEOF
13972 #line $LINENO "configure"
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978 $ac_includes_default
13979 long longval () { return (long) (sizeof (char)); }
13980 unsigned long ulongval () { return (long) (sizeof (char)); }
13981 #include <stdio.h>
13982 #include <stdlib.h>
13983 int
13984 main ()
13985 {
13986
13987   FILE *f = fopen ("conftest.val", "w");
13988   if (! f)
13989     exit (1);
13990   if (((long) (sizeof (char))) < 0)
13991     {
13992       long i = longval ();
13993       if (i != ((long) (sizeof (char))))
13994         exit (1);
13995       fprintf (f, "%ld\n", i);
13996     }
13997   else
13998     {
13999       unsigned long i = ulongval ();
14000       if (i != ((long) (sizeof (char))))
14001         exit (1);
14002       fprintf (f, "%lu\n", i);
14003     }
14004   exit (ferror (f) || fclose (f) != 0);
14005
14006   ;
14007   return 0;
14008 }
14009 _ACEOF
14010 rm -f conftest$ac_exeext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14012   (eval $ac_link) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021   ac_cv_sizeof_char=`cat conftest.val`
14022 else
14023   echo "$as_me: program exited with status $ac_status" >&5
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14026
14027 ( exit $ac_status )
14028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14029 See \`config.log' for more details." >&5
14030 echo "$as_me: error: cannot compute sizeof (char), 77
14031 See \`config.log' for more details." >&2;}
14032    { (exit 1); exit 1; }; }
14033 fi
14034 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14035 fi
14036 fi
14037 rm -f conftest.val
14038 else
14039   ac_cv_sizeof_char=0
14040 fi
14041 fi
14042 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14043 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14044 cat >>confdefs.h <<_ACEOF
14045 #define SIZEOF_CHAR $ac_cv_sizeof_char
14046 _ACEOF
14047
14048
14049 echo "$as_me:$LINENO: checking for short" >&5
14050 echo $ECHO_N "checking for short... $ECHO_C" >&6
14051 if test "${ac_cv_type_short+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   cat >conftest.$ac_ext <<_ACEOF
14055 #line $LINENO "configure"
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 $ac_includes_default
14062 int
14063 main ()
14064 {
14065 if ((short *) 0)
14066   return 0;
14067 if (sizeof (short))
14068   return 0;
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075   (eval $ac_compile) 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } &&
14079          { ac_try='test -s conftest.$ac_objext'
14080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081   (eval $ac_try) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); }; }; then
14085   ac_cv_type_short=yes
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14089
14090 ac_cv_type_short=no
14091 fi
14092 rm -f conftest.$ac_objext conftest.$ac_ext
14093 fi
14094 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14095 echo "${ECHO_T}$ac_cv_type_short" >&6
14096
14097 echo "$as_me:$LINENO: checking size of short" >&5
14098 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14099 if test "${ac_cv_sizeof_short+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   if test "$ac_cv_type_short" = yes; then
14103   # The cast to unsigned long works around a bug in the HP C Compiler
14104   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14105   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14106   # This bug is HP SR number 8606223364.
14107   if test "$cross_compiling" = yes; then
14108   # Depending upon the size, compute the lo and hi bounds.
14109 cat >conftest.$ac_ext <<_ACEOF
14110 #line $LINENO "configure"
14111 /* confdefs.h.  */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h.  */
14116 $ac_includes_default
14117 int
14118 main ()
14119 {
14120 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14121 test_array [0] = 0
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129   (eval $ac_compile) 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); } &&
14133          { ac_try='test -s conftest.$ac_objext'
14134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135   (eval $ac_try) 2>&5
14136   ac_status=$?
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); }; }; then
14139   ac_lo=0 ac_mid=0
14140   while :; do
14141     cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148 $ac_includes_default
14149 int
14150 main ()
14151 {
14152 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14153 test_array [0] = 0
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -s conftest.$ac_objext'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_hi=$ac_mid; break
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 ac_lo=`expr $ac_mid + 1`
14177                     if test $ac_lo -le $ac_mid; then
14178                       ac_lo= ac_hi=
14179                       break
14180                     fi
14181                     ac_mid=`expr 2 '*' $ac_mid + 1`
14182 fi
14183 rm -f conftest.$ac_objext conftest.$ac_ext
14184   done
14185 else
14186   echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 cat >conftest.$ac_ext <<_ACEOF
14190 #line $LINENO "configure"
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196 $ac_includes_default
14197 int
14198 main ()
14199 {
14200 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14201 test_array [0] = 0
14202
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209   (eval $ac_compile) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } &&
14213          { ac_try='test -s conftest.$ac_objext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219   ac_hi=-1 ac_mid=-1
14220   while :; do
14221     cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228 $ac_includes_default
14229 int
14230 main ()
14231 {
14232 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14233 test_array [0] = 0
14234
14235   ;
14236   return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -s conftest.$ac_objext'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; }; then
14251   ac_lo=$ac_mid; break
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 ac_hi=`expr '(' $ac_mid ')' - 1`
14257                        if test $ac_mid -le $ac_hi; then
14258                          ac_lo= ac_hi=
14259                          break
14260                        fi
14261                        ac_mid=`expr 2 '*' $ac_mid`
14262 fi
14263 rm -f conftest.$ac_objext conftest.$ac_ext
14264   done
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 ac_lo= ac_hi=
14270 fi
14271 rm -f conftest.$ac_objext conftest.$ac_ext
14272 fi
14273 rm -f conftest.$ac_objext conftest.$ac_ext
14274 # Binary search between lo and hi bounds.
14275 while test "x$ac_lo" != "x$ac_hi"; do
14276   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14277   cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 $ac_includes_default
14285 int
14286 main ()
14287 {
14288 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14289 test_array [0] = 0
14290
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297   (eval $ac_compile) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } &&
14301          { ac_try='test -s conftest.$ac_objext'
14302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303   (eval $ac_try) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; }; then
14307   ac_hi=$ac_mid
14308 else
14309   echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ac_lo=`expr '(' $ac_mid ')' + 1`
14313 fi
14314 rm -f conftest.$ac_objext conftest.$ac_ext
14315 done
14316 case $ac_lo in
14317 ?*) ac_cv_sizeof_short=$ac_lo;;
14318 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14319 See \`config.log' for more details." >&5
14320 echo "$as_me: error: cannot compute sizeof (short), 77
14321 See \`config.log' for more details." >&2;}
14322    { (exit 1); exit 1; }; } ;;
14323 esac
14324 else
14325   if test "$cross_compiling" = yes; then
14326   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14327 See \`config.log' for more details." >&5
14328 echo "$as_me: error: cannot run test program while cross compiling
14329 See \`config.log' for more details." >&2;}
14330    { (exit 1); exit 1; }; }
14331 else
14332   cat >conftest.$ac_ext <<_ACEOF
14333 #line $LINENO "configure"
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339 $ac_includes_default
14340 long longval () { return (long) (sizeof (short)); }
14341 unsigned long ulongval () { return (long) (sizeof (short)); }
14342 #include <stdio.h>
14343 #include <stdlib.h>
14344 int
14345 main ()
14346 {
14347
14348   FILE *f = fopen ("conftest.val", "w");
14349   if (! f)
14350     exit (1);
14351   if (((long) (sizeof (short))) < 0)
14352     {
14353       long i = longval ();
14354       if (i != ((long) (sizeof (short))))
14355         exit (1);
14356       fprintf (f, "%ld\n", i);
14357     }
14358   else
14359     {
14360       unsigned long i = ulongval ();
14361       if (i != ((long) (sizeof (short))))
14362         exit (1);
14363       fprintf (f, "%lu\n", i);
14364     }
14365   exit (ferror (f) || fclose (f) != 0);
14366
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest$ac_exeext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373   (eval $ac_link) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378   (eval $ac_try) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; }; then
14382   ac_cv_sizeof_short=`cat conftest.val`
14383 else
14384   echo "$as_me: program exited with status $ac_status" >&5
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ( exit $ac_status )
14389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14390 See \`config.log' for more details." >&5
14391 echo "$as_me: error: cannot compute sizeof (short), 77
14392 See \`config.log' for more details." >&2;}
14393    { (exit 1); exit 1; }; }
14394 fi
14395 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14396 fi
14397 fi
14398 rm -f conftest.val
14399 else
14400   ac_cv_sizeof_short=0
14401 fi
14402 fi
14403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14404 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14405 cat >>confdefs.h <<_ACEOF
14406 #define SIZEOF_SHORT $ac_cv_sizeof_short
14407 _ACEOF
14408
14409
14410 echo "$as_me:$LINENO: checking for void *" >&5
14411 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14412 if test "${ac_cv_type_void_p+set}" = set; then
14413   echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415   cat >conftest.$ac_ext <<_ACEOF
14416 #line $LINENO "configure"
14417 /* confdefs.h.  */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h.  */
14422 $ac_includes_default
14423 int
14424 main ()
14425 {
14426 if ((void * *) 0)
14427   return 0;
14428 if (sizeof (void *))
14429   return 0;
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436   (eval $ac_compile) 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -s conftest.$ac_objext'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }; then
14446   ac_cv_type_void_p=yes
14447 else
14448   echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451 ac_cv_type_void_p=no
14452 fi
14453 rm -f conftest.$ac_objext conftest.$ac_ext
14454 fi
14455 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14456 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14457
14458 echo "$as_me:$LINENO: checking size of void *" >&5
14459 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14460 if test "${ac_cv_sizeof_void_p+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   if test "$ac_cv_type_void_p" = yes; then
14464   # The cast to unsigned long works around a bug in the HP C Compiler
14465   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14466   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14467   # This bug is HP SR number 8606223364.
14468   if test "$cross_compiling" = yes; then
14469   # Depending upon the size, compute the lo and hi bounds.
14470 cat >conftest.$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477 $ac_includes_default
14478 int
14479 main ()
14480 {
14481 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14482 test_array [0] = 0
14483
14484   ;
14485   return 0;
14486 }
14487 _ACEOF
14488 rm -f conftest.$ac_objext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490   (eval $ac_compile) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); } &&
14494          { ac_try='test -s conftest.$ac_objext'
14495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496   (eval $ac_try) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500   ac_lo=0 ac_mid=0
14501   while :; do
14502     cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14504 /* confdefs.h.  */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h.  */
14509 $ac_includes_default
14510 int
14511 main ()
14512 {
14513 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14514 test_array [0] = 0
14515
14516   ;
14517   return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522   (eval $ac_compile) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -s conftest.$ac_objext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_hi=$ac_mid; break
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 ac_lo=`expr $ac_mid + 1`
14538                     if test $ac_lo -le $ac_mid; then
14539                       ac_lo= ac_hi=
14540                       break
14541                     fi
14542                     ac_mid=`expr 2 '*' $ac_mid + 1`
14543 fi
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14545   done
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 cat >conftest.$ac_ext <<_ACEOF
14551 #line $LINENO "configure"
14552 /* confdefs.h.  */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h.  */
14557 $ac_includes_default
14558 int
14559 main ()
14560 {
14561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14562 test_array [0] = 0
14563
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570   (eval $ac_compile) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); } &&
14574          { ac_try='test -s conftest.$ac_objext'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   ac_hi=-1 ac_mid=-1
14581   while :; do
14582     cat >conftest.$ac_ext <<_ACEOF
14583 #line $LINENO "configure"
14584 /* confdefs.h.  */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h.  */
14589 $ac_includes_default
14590 int
14591 main ()
14592 {
14593 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14594 test_array [0] = 0
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602   (eval $ac_compile) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -s conftest.$ac_objext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   ac_lo=$ac_mid; break
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 ac_hi=`expr '(' $ac_mid ')' - 1`
14618                        if test $ac_mid -le $ac_hi; then
14619                          ac_lo= ac_hi=
14620                          break
14621                        fi
14622                        ac_mid=`expr 2 '*' $ac_mid`
14623 fi
14624 rm -f conftest.$ac_objext conftest.$ac_ext
14625   done
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 ac_lo= ac_hi=
14631 fi
14632 rm -f conftest.$ac_objext conftest.$ac_ext
14633 fi
14634 rm -f conftest.$ac_objext conftest.$ac_ext
14635 # Binary search between lo and hi bounds.
14636 while test "x$ac_lo" != "x$ac_hi"; do
14637   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14638   cat >conftest.$ac_ext <<_ACEOF
14639 #line $LINENO "configure"
14640 /* confdefs.h.  */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h.  */
14645 $ac_includes_default
14646 int
14647 main ()
14648 {
14649 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14650 test_array [0] = 0
14651
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658   (eval $ac_compile) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -s conftest.$ac_objext'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; }; then
14668   ac_hi=$ac_mid
14669 else
14670   echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673 ac_lo=`expr '(' $ac_mid ')' + 1`
14674 fi
14675 rm -f conftest.$ac_objext conftest.$ac_ext
14676 done
14677 case $ac_lo in
14678 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14679 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14680 See \`config.log' for more details." >&5
14681 echo "$as_me: error: cannot compute sizeof (void *), 77
14682 See \`config.log' for more details." >&2;}
14683    { (exit 1); exit 1; }; } ;;
14684 esac
14685 else
14686   if test "$cross_compiling" = yes; then
14687   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14688 See \`config.log' for more details." >&5
14689 echo "$as_me: error: cannot run test program while cross compiling
14690 See \`config.log' for more details." >&2;}
14691    { (exit 1); exit 1; }; }
14692 else
14693   cat >conftest.$ac_ext <<_ACEOF
14694 #line $LINENO "configure"
14695 /* confdefs.h.  */
14696 _ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h.  */
14700 $ac_includes_default
14701 long longval () { return (long) (sizeof (void *)); }
14702 unsigned long ulongval () { return (long) (sizeof (void *)); }
14703 #include <stdio.h>
14704 #include <stdlib.h>
14705 int
14706 main ()
14707 {
14708
14709   FILE *f = fopen ("conftest.val", "w");
14710   if (! f)
14711     exit (1);
14712   if (((long) (sizeof (void *))) < 0)
14713     {
14714       long i = longval ();
14715       if (i != ((long) (sizeof (void *))))
14716         exit (1);
14717       fprintf (f, "%ld\n", i);
14718     }
14719   else
14720     {
14721       unsigned long i = ulongval ();
14722       if (i != ((long) (sizeof (void *))))
14723         exit (1);
14724       fprintf (f, "%lu\n", i);
14725     }
14726   exit (ferror (f) || fclose (f) != 0);
14727
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest$ac_exeext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14734   (eval $ac_link) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739   (eval $ac_try) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743   ac_cv_sizeof_void_p=`cat conftest.val`
14744 else
14745   echo "$as_me: program exited with status $ac_status" >&5
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 ( exit $ac_status )
14750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14751 See \`config.log' for more details." >&5
14752 echo "$as_me: error: cannot compute sizeof (void *), 77
14753 See \`config.log' for more details." >&2;}
14754    { (exit 1); exit 1; }; }
14755 fi
14756 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14757 fi
14758 fi
14759 rm -f conftest.val
14760 else
14761   ac_cv_sizeof_void_p=0
14762 fi
14763 fi
14764 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14765 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14766 cat >>confdefs.h <<_ACEOF
14767 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14768 _ACEOF
14769
14770
14771 echo "$as_me:$LINENO: checking for int" >&5
14772 echo $ECHO_N "checking for int... $ECHO_C" >&6
14773 if test "${ac_cv_type_int+set}" = set; then
14774   echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776   cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783 $ac_includes_default
14784 int
14785 main ()
14786 {
14787 if ((int *) 0)
14788   return 0;
14789 if (sizeof (int))
14790   return 0;
14791   ;
14792   return 0;
14793 }
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797   (eval $ac_compile) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -s conftest.$ac_objext'
14802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803   (eval $ac_try) 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   ac_cv_type_int=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_cv_type_int=no
14813 fi
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14815 fi
14816 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14817 echo "${ECHO_T}$ac_cv_type_int" >&6
14818
14819 echo "$as_me:$LINENO: checking size of int" >&5
14820 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14821 if test "${ac_cv_sizeof_int+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   if test "$ac_cv_type_int" = yes; then
14825   # The cast to unsigned long works around a bug in the HP C Compiler
14826   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14827   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14828   # This bug is HP SR number 8606223364.
14829   if test "$cross_compiling" = yes; then
14830   # Depending upon the size, compute the lo and hi bounds.
14831 cat >conftest.$ac_ext <<_ACEOF
14832 #line $LINENO "configure"
14833 /* confdefs.h.  */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h.  */
14838 $ac_includes_default
14839 int
14840 main ()
14841 {
14842 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14843 test_array [0] = 0
14844
14845   ;
14846   return 0;
14847 }
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851   (eval $ac_compile) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } &&
14855          { ac_try='test -s conftest.$ac_objext'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; }; then
14861   ac_lo=0 ac_mid=0
14862   while :; do
14863     cat >conftest.$ac_ext <<_ACEOF
14864 #line $LINENO "configure"
14865 /* confdefs.h.  */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h.  */
14870 $ac_includes_default
14871 int
14872 main ()
14873 {
14874 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14875 test_array [0] = 0
14876
14877   ;
14878   return 0;
14879 }
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883   (eval $ac_compile) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); } &&
14887          { ac_try='test -s conftest.$ac_objext'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   ac_hi=$ac_mid; break
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 ac_lo=`expr $ac_mid + 1`
14899                     if test $ac_lo -le $ac_mid; then
14900                       ac_lo= ac_hi=
14901                       break
14902                     fi
14903                     ac_mid=`expr 2 '*' $ac_mid + 1`
14904 fi
14905 rm -f conftest.$ac_objext conftest.$ac_ext
14906   done
14907 else
14908   echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 cat >conftest.$ac_ext <<_ACEOF
14912 #line $LINENO "configure"
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918 $ac_includes_default
14919 int
14920 main ()
14921 {
14922 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14923 test_array [0] = 0
14924
14925   ;
14926   return 0;
14927 }
14928 _ACEOF
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931   (eval $ac_compile) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); } &&
14935          { ac_try='test -s conftest.$ac_objext'
14936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937   (eval $ac_try) 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); }; }; then
14941   ac_hi=-1 ac_mid=-1
14942   while :; do
14943     cat >conftest.$ac_ext <<_ACEOF
14944 #line $LINENO "configure"
14945 /* confdefs.h.  */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h.  */
14950 $ac_includes_default
14951 int
14952 main ()
14953 {
14954 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14955 test_array [0] = 0
14956
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963   (eval $ac_compile) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } &&
14967          { ac_try='test -s conftest.$ac_objext'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }; then
14973   ac_lo=$ac_mid; break
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978 ac_hi=`expr '(' $ac_mid ')' - 1`
14979                        if test $ac_mid -le $ac_hi; then
14980                          ac_lo= ac_hi=
14981                          break
14982                        fi
14983                        ac_mid=`expr 2 '*' $ac_mid`
14984 fi
14985 rm -f conftest.$ac_objext conftest.$ac_ext
14986   done
14987 else
14988   echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991 ac_lo= ac_hi=
14992 fi
14993 rm -f conftest.$ac_objext conftest.$ac_ext
14994 fi
14995 rm -f conftest.$ac_objext conftest.$ac_ext
14996 # Binary search between lo and hi bounds.
14997 while test "x$ac_lo" != "x$ac_hi"; do
14998   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14999   cat >conftest.$ac_ext <<_ACEOF
15000 #line $LINENO "configure"
15001 /* confdefs.h.  */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h.  */
15006 $ac_includes_default
15007 int
15008 main ()
15009 {
15010 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15011 test_array [0] = 0
15012
15013   ;
15014   return 0;
15015 }
15016 _ACEOF
15017 rm -f conftest.$ac_objext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15019   (eval $ac_compile) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); } &&
15023          { ac_try='test -s conftest.$ac_objext'
15024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025   (eval $ac_try) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }; }; then
15029   ac_hi=$ac_mid
15030 else
15031   echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15033
15034 ac_lo=`expr '(' $ac_mid ')' + 1`
15035 fi
15036 rm -f conftest.$ac_objext conftest.$ac_ext
15037 done
15038 case $ac_lo in
15039 ?*) ac_cv_sizeof_int=$ac_lo;;
15040 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15041 See \`config.log' for more details." >&5
15042 echo "$as_me: error: cannot compute sizeof (int), 77
15043 See \`config.log' for more details." >&2;}
15044    { (exit 1); exit 1; }; } ;;
15045 esac
15046 else
15047   if test "$cross_compiling" = yes; then
15048   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15049 See \`config.log' for more details." >&5
15050 echo "$as_me: error: cannot run test program while cross compiling
15051 See \`config.log' for more details." >&2;}
15052    { (exit 1); exit 1; }; }
15053 else
15054   cat >conftest.$ac_ext <<_ACEOF
15055 #line $LINENO "configure"
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 $ac_includes_default
15062 long longval () { return (long) (sizeof (int)); }
15063 unsigned long ulongval () { return (long) (sizeof (int)); }
15064 #include <stdio.h>
15065 #include <stdlib.h>
15066 int
15067 main ()
15068 {
15069
15070   FILE *f = fopen ("conftest.val", "w");
15071   if (! f)
15072     exit (1);
15073   if (((long) (sizeof (int))) < 0)
15074     {
15075       long i = longval ();
15076       if (i != ((long) (sizeof (int))))
15077         exit (1);
15078       fprintf (f, "%ld\n", i);
15079     }
15080   else
15081     {
15082       unsigned long i = ulongval ();
15083       if (i != ((long) (sizeof (int))))
15084         exit (1);
15085       fprintf (f, "%lu\n", i);
15086     }
15087   exit (ferror (f) || fclose (f) != 0);
15088
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest$ac_exeext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095   (eval $ac_link) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100   (eval $ac_try) 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; }; then
15104   ac_cv_sizeof_int=`cat conftest.val`
15105 else
15106   echo "$as_me: program exited with status $ac_status" >&5
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ( exit $ac_status )
15111 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15112 See \`config.log' for more details." >&5
15113 echo "$as_me: error: cannot compute sizeof (int), 77
15114 See \`config.log' for more details." >&2;}
15115    { (exit 1); exit 1; }; }
15116 fi
15117 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15118 fi
15119 fi
15120 rm -f conftest.val
15121 else
15122   ac_cv_sizeof_int=0
15123 fi
15124 fi
15125 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15126 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15127 cat >>confdefs.h <<_ACEOF
15128 #define SIZEOF_INT $ac_cv_sizeof_int
15129 _ACEOF
15130
15131
15132 echo "$as_me:$LINENO: checking for long" >&5
15133 echo $ECHO_N "checking for long... $ECHO_C" >&6
15134 if test "${ac_cv_type_long+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 /* confdefs.h.  */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h.  */
15144 $ac_includes_default
15145 int
15146 main ()
15147 {
15148 if ((long *) 0)
15149   return 0;
15150 if (sizeof (long))
15151   return 0;
15152   ;
15153   return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158   (eval $ac_compile) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); } &&
15162          { ac_try='test -s conftest.$ac_objext'
15163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164   (eval $ac_try) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); }; }; then
15168   ac_cv_type_long=yes
15169 else
15170   echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_cv_type_long=no
15174 fi
15175 rm -f conftest.$ac_objext conftest.$ac_ext
15176 fi
15177 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15178 echo "${ECHO_T}$ac_cv_type_long" >&6
15179
15180 echo "$as_me:$LINENO: checking size of long" >&5
15181 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15182 if test "${ac_cv_sizeof_long+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   if test "$ac_cv_type_long" = yes; then
15186   # The cast to unsigned long works around a bug in the HP C Compiler
15187   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15188   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15189   # This bug is HP SR number 8606223364.
15190   if test "$cross_compiling" = yes; then
15191   # Depending upon the size, compute the lo and hi bounds.
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line $LINENO "configure"
15194 /* confdefs.h.  */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h.  */
15199 $ac_includes_default
15200 int
15201 main ()
15202 {
15203 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15204 test_array [0] = 0
15205
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212   (eval $ac_compile) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } &&
15216          { ac_try='test -s conftest.$ac_objext'
15217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218   (eval $ac_try) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; }; then
15222   ac_lo=0 ac_mid=0
15223   while :; do
15224     cat >conftest.$ac_ext <<_ACEOF
15225 #line $LINENO "configure"
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 $ac_includes_default
15232 int
15233 main ()
15234 {
15235 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15236 test_array [0] = 0
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244   (eval $ac_compile) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } &&
15248          { ac_try='test -s conftest.$ac_objext'
15249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250   (eval $ac_try) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; }; then
15254   ac_hi=$ac_mid; break
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 ac_lo=`expr $ac_mid + 1`
15260                     if test $ac_lo -le $ac_mid; then
15261                       ac_lo= ac_hi=
15262                       break
15263                     fi
15264                     ac_mid=`expr 2 '*' $ac_mid + 1`
15265 fi
15266 rm -f conftest.$ac_objext conftest.$ac_ext
15267   done
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272 cat >conftest.$ac_ext <<_ACEOF
15273 #line $LINENO "configure"
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 $ac_includes_default
15280 int
15281 main ()
15282 {
15283 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15284 test_array [0] = 0
15285
15286   ;
15287   return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292   (eval $ac_compile) 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); } &&
15296          { ac_try='test -s conftest.$ac_objext'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; }; then
15302   ac_hi=-1 ac_mid=-1
15303   while :; do
15304     cat >conftest.$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15306 /* confdefs.h.  */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h.  */
15311 $ac_includes_default
15312 int
15313 main ()
15314 {
15315 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15316 test_array [0] = 0
15317
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15324   (eval $ac_compile) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } &&
15328          { ac_try='test -s conftest.$ac_objext'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334   ac_lo=$ac_mid; break
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 ac_hi=`expr '(' $ac_mid ')' - 1`
15340                        if test $ac_mid -le $ac_hi; then
15341                          ac_lo= ac_hi=
15342                          break
15343                        fi
15344                        ac_mid=`expr 2 '*' $ac_mid`
15345 fi
15346 rm -f conftest.$ac_objext conftest.$ac_ext
15347   done
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_lo= ac_hi=
15353 fi
15354 rm -f conftest.$ac_objext conftest.$ac_ext
15355 fi
15356 rm -f conftest.$ac_objext conftest.$ac_ext
15357 # Binary search between lo and hi bounds.
15358 while test "x$ac_lo" != "x$ac_hi"; do
15359   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15360   cat >conftest.$ac_ext <<_ACEOF
15361 #line $LINENO "configure"
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 $ac_includes_default
15368 int
15369 main ()
15370 {
15371 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15372 test_array [0] = 0
15373
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15380   (eval $ac_compile) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); } &&
15384          { ac_try='test -s conftest.$ac_objext'
15385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386   (eval $ac_try) 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); }; }; then
15390   ac_hi=$ac_mid
15391 else
15392   echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 ac_lo=`expr '(' $ac_mid ')' + 1`
15396 fi
15397 rm -f conftest.$ac_objext conftest.$ac_ext
15398 done
15399 case $ac_lo in
15400 ?*) ac_cv_sizeof_long=$ac_lo;;
15401 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15402 See \`config.log' for more details." >&5
15403 echo "$as_me: error: cannot compute sizeof (long), 77
15404 See \`config.log' for more details." >&2;}
15405    { (exit 1); exit 1; }; } ;;
15406 esac
15407 else
15408   if test "$cross_compiling" = yes; then
15409   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15410 See \`config.log' for more details." >&5
15411 echo "$as_me: error: cannot run test program while cross compiling
15412 See \`config.log' for more details." >&2;}
15413    { (exit 1); exit 1; }; }
15414 else
15415   cat >conftest.$ac_ext <<_ACEOF
15416 #line $LINENO "configure"
15417 /* confdefs.h.  */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h.  */
15422 $ac_includes_default
15423 long longval () { return (long) (sizeof (long)); }
15424 unsigned long ulongval () { return (long) (sizeof (long)); }
15425 #include <stdio.h>
15426 #include <stdlib.h>
15427 int
15428 main ()
15429 {
15430
15431   FILE *f = fopen ("conftest.val", "w");
15432   if (! f)
15433     exit (1);
15434   if (((long) (sizeof (long))) < 0)
15435     {
15436       long i = longval ();
15437       if (i != ((long) (sizeof (long))))
15438         exit (1);
15439       fprintf (f, "%ld\n", i);
15440     }
15441   else
15442     {
15443       unsigned long i = ulongval ();
15444       if (i != ((long) (sizeof (long))))
15445         exit (1);
15446       fprintf (f, "%lu\n", i);
15447     }
15448   exit (ferror (f) || fclose (f) != 0);
15449
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456   (eval $ac_link) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; }; then
15465   ac_cv_sizeof_long=`cat conftest.val`
15466 else
15467   echo "$as_me: program exited with status $ac_status" >&5
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471 ( exit $ac_status )
15472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15473 See \`config.log' for more details." >&5
15474 echo "$as_me: error: cannot compute sizeof (long), 77
15475 See \`config.log' for more details." >&2;}
15476    { (exit 1); exit 1; }; }
15477 fi
15478 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15479 fi
15480 fi
15481 rm -f conftest.val
15482 else
15483   ac_cv_sizeof_long=0
15484 fi
15485 fi
15486 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15487 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15488 cat >>confdefs.h <<_ACEOF
15489 #define SIZEOF_LONG $ac_cv_sizeof_long
15490 _ACEOF
15491
15492
15493
15494 case "${host}" in
15495     arm-*-linux* )
15496         echo "$as_me:$LINENO: checking for long long" >&5
15497 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15498 if test "${ac_cv_type_long_long+set}" = set; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501   cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508 $ac_includes_default
15509 int
15510 main ()
15511 {
15512 if ((long long *) 0)
15513   return 0;
15514 if (sizeof (long long))
15515   return 0;
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 rm -f conftest.$ac_objext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522   (eval $ac_compile) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } &&
15526          { ac_try='test -s conftest.$ac_objext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   ac_cv_type_long_long=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ac_cv_type_long_long=no
15538 fi
15539 rm -f conftest.$ac_objext conftest.$ac_ext
15540 fi
15541 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15542 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15543
15544 echo "$as_me:$LINENO: checking size of long long" >&5
15545 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15546 if test "${ac_cv_sizeof_long_long+set}" = set; then
15547   echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549   if test "$ac_cv_type_long_long" = yes; then
15550   # The cast to unsigned long works around a bug in the HP C Compiler
15551   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553   # This bug is HP SR number 8606223364.
15554   if test "$cross_compiling" = yes; then
15555   # Depending upon the size, compute the lo and hi bounds.
15556 cat >conftest.$ac_ext <<_ACEOF
15557 #line $LINENO "configure"
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563 $ac_includes_default
15564 int
15565 main ()
15566 {
15567 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15568 test_array [0] = 0
15569
15570   ;
15571   return 0;
15572 }
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576   (eval $ac_compile) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } &&
15580          { ac_try='test -s conftest.$ac_objext'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; }; then
15586   ac_lo=0 ac_mid=0
15587   while :; do
15588     cat >conftest.$ac_ext <<_ACEOF
15589 #line $LINENO "configure"
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595 $ac_includes_default
15596 int
15597 main ()
15598 {
15599 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15600 test_array [0] = 0
15601
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608   (eval $ac_compile) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); } &&
15612          { ac_try='test -s conftest.$ac_objext'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   ac_hi=$ac_mid; break
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ac_lo=`expr $ac_mid + 1`
15624                     if test $ac_lo -le $ac_mid; then
15625                       ac_lo= ac_hi=
15626                       break
15627                     fi
15628                     ac_mid=`expr 2 '*' $ac_mid + 1`
15629 fi
15630 rm -f conftest.$ac_objext conftest.$ac_ext
15631   done
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15635
15636 cat >conftest.$ac_ext <<_ACEOF
15637 #line $LINENO "configure"
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643 $ac_includes_default
15644 int
15645 main ()
15646 {
15647 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15648 test_array [0] = 0
15649
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656   (eval $ac_compile) 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } &&
15660          { ac_try='test -s conftest.$ac_objext'
15661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662   (eval $ac_try) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; }; then
15666   ac_hi=-1 ac_mid=-1
15667   while :; do
15668     cat >conftest.$ac_ext <<_ACEOF
15669 #line $LINENO "configure"
15670 /* confdefs.h.  */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h.  */
15675 $ac_includes_default
15676 int
15677 main ()
15678 {
15679 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15680 test_array [0] = 0
15681
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15688   (eval $ac_compile) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_lo=$ac_mid; break
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_hi=`expr '(' $ac_mid ')' - 1`
15704                        if test $ac_mid -le $ac_hi; then
15705                          ac_lo= ac_hi=
15706                          break
15707                        fi
15708                        ac_mid=`expr 2 '*' $ac_mid`
15709 fi
15710 rm -f conftest.$ac_objext conftest.$ac_ext
15711   done
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 ac_lo= ac_hi=
15717 fi
15718 rm -f conftest.$ac_objext conftest.$ac_ext
15719 fi
15720 rm -f conftest.$ac_objext conftest.$ac_ext
15721 # Binary search between lo and hi bounds.
15722 while test "x$ac_lo" != "x$ac_hi"; do
15723   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15724   cat >conftest.$ac_ext <<_ACEOF
15725 #line $LINENO "configure"
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731 $ac_includes_default
15732 int
15733 main ()
15734 {
15735 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15736 test_array [0] = 0
15737
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744   (eval $ac_compile) 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); } &&
15748          { ac_try='test -s conftest.$ac_objext'
15749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750   (eval $ac_try) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; }; then
15754   ac_hi=$ac_mid
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 ac_lo=`expr '(' $ac_mid ')' + 1`
15760 fi
15761 rm -f conftest.$ac_objext conftest.$ac_ext
15762 done
15763 case $ac_lo in
15764 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15765 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15766 See \`config.log' for more details." >&5
15767 echo "$as_me: error: cannot compute sizeof (long long), 77
15768 See \`config.log' for more details." >&2;}
15769    { (exit 1); exit 1; }; } ;;
15770 esac
15771 else
15772   if test "$cross_compiling" = yes; then
15773   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15774 See \`config.log' for more details." >&5
15775 echo "$as_me: error: cannot run test program while cross compiling
15776 See \`config.log' for more details." >&2;}
15777    { (exit 1); exit 1; }; }
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 #line $LINENO "configure"
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786 $ac_includes_default
15787 long longval () { return (long) (sizeof (long long)); }
15788 unsigned long ulongval () { return (long) (sizeof (long long)); }
15789 #include <stdio.h>
15790 #include <stdlib.h>
15791 int
15792 main ()
15793 {
15794
15795   FILE *f = fopen ("conftest.val", "w");
15796   if (! f)
15797     exit (1);
15798   if (((long) (sizeof (long long))) < 0)
15799     {
15800       long i = longval ();
15801       if (i != ((long) (sizeof (long long))))
15802         exit (1);
15803       fprintf (f, "%ld\n", i);
15804     }
15805   else
15806     {
15807       unsigned long i = ulongval ();
15808       if (i != ((long) (sizeof (long long))))
15809         exit (1);
15810       fprintf (f, "%lu\n", i);
15811     }
15812   exit (ferror (f) || fclose (f) != 0);
15813
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest$ac_exeext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15820   (eval $ac_link) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825   (eval $ac_try) 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; }; then
15829   ac_cv_sizeof_long_long=`cat conftest.val`
15830 else
15831   echo "$as_me: program exited with status $ac_status" >&5
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 ( exit $ac_status )
15836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15837 See \`config.log' for more details." >&5
15838 echo "$as_me: error: cannot compute sizeof (long long), 77
15839 See \`config.log' for more details." >&2;}
15840    { (exit 1); exit 1; }; }
15841 fi
15842 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15843 fi
15844 fi
15845 rm -f conftest.val
15846 else
15847   ac_cv_sizeof_long_long=0
15848 fi
15849 fi
15850 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15851 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15852 cat >>confdefs.h <<_ACEOF
15853 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15854 _ACEOF
15855
15856
15857     ;;
15858     *-hp-hpux* )
15859         echo "$as_me:$LINENO: checking for long long" >&5
15860 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15861 if test "${ac_cv_type_long_long+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 #line $LINENO "configure"
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871 $ac_includes_default
15872 int
15873 main ()
15874 {
15875 if ((long long *) 0)
15876   return 0;
15877 if (sizeof (long long))
15878   return 0;
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885   (eval $ac_compile) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_cv_type_long_long=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 ac_cv_type_long_long=no
15901 fi
15902 rm -f conftest.$ac_objext conftest.$ac_ext
15903 fi
15904 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15905 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15906
15907 echo "$as_me:$LINENO: checking size of long long" >&5
15908 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15909 if test "${ac_cv_sizeof_long_long+set}" = set; then
15910   echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912   if test "$ac_cv_type_long_long" = yes; then
15913   # The cast to unsigned long works around a bug in the HP C Compiler
15914   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15915   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15916   # This bug is HP SR number 8606223364.
15917   if test "$cross_compiling" = yes; then
15918   # Depending upon the size, compute the lo and hi bounds.
15919 cat >conftest.$ac_ext <<_ACEOF
15920 #line $LINENO "configure"
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926 $ac_includes_default
15927 int
15928 main ()
15929 {
15930 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15931 test_array [0] = 0
15932
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939   (eval $ac_compile) 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -s conftest.$ac_objext'
15944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945   (eval $ac_try) 2>&5
15946   ac_status=$?
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); }; }; then
15949   ac_lo=0 ac_mid=0
15950   while :; do
15951     cat >conftest.$ac_ext <<_ACEOF
15952 #line $LINENO "configure"
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958 $ac_includes_default
15959 int
15960 main ()
15961 {
15962 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15963 test_array [0] = 0
15964
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 rm -f conftest.$ac_objext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971   (eval $ac_compile) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   ac_hi=$ac_mid; break
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 ac_lo=`expr $ac_mid + 1`
15987                     if test $ac_lo -le $ac_mid; then
15988                       ac_lo= ac_hi=
15989                       break
15990                     fi
15991                     ac_mid=`expr 2 '*' $ac_mid + 1`
15992 fi
15993 rm -f conftest.$ac_objext conftest.$ac_ext
15994   done
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 cat >conftest.$ac_ext <<_ACEOF
16000 #line $LINENO "configure"
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006 $ac_includes_default
16007 int
16008 main ()
16009 {
16010 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16011 test_array [0] = 0
16012
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 rm -f conftest.$ac_objext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16019   (eval $ac_compile) 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); } &&
16023          { ac_try='test -s conftest.$ac_objext'
16024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025   (eval $ac_try) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; }; then
16029   ac_hi=-1 ac_mid=-1
16030   while :; do
16031     cat >conftest.$ac_ext <<_ACEOF
16032 #line $LINENO "configure"
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 $ac_includes_default
16039 int
16040 main ()
16041 {
16042 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16043 test_array [0] = 0
16044
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051   (eval $ac_compile) 2>&5
16052   ac_status=$?
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); } &&
16055          { ac_try='test -s conftest.$ac_objext'
16056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057   (eval $ac_try) 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; }; then
16061   ac_lo=$ac_mid; break
16062 else
16063   echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066 ac_hi=`expr '(' $ac_mid ')' - 1`
16067                        if test $ac_mid -le $ac_hi; then
16068                          ac_lo= ac_hi=
16069                          break
16070                        fi
16071                        ac_mid=`expr 2 '*' $ac_mid`
16072 fi
16073 rm -f conftest.$ac_objext conftest.$ac_ext
16074   done
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079 ac_lo= ac_hi=
16080 fi
16081 rm -f conftest.$ac_objext conftest.$ac_ext
16082 fi
16083 rm -f conftest.$ac_objext conftest.$ac_ext
16084 # Binary search between lo and hi bounds.
16085 while test "x$ac_lo" != "x$ac_hi"; do
16086   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16087   cat >conftest.$ac_ext <<_ACEOF
16088 #line $LINENO "configure"
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 $ac_includes_default
16095 int
16096 main ()
16097 {
16098 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16099 test_array [0] = 0
16100
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107   (eval $ac_compile) 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -s conftest.$ac_objext'
16112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113   (eval $ac_try) 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); }; }; then
16117   ac_hi=$ac_mid
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 ac_lo=`expr '(' $ac_mid ')' + 1`
16123 fi
16124 rm -f conftest.$ac_objext conftest.$ac_ext
16125 done
16126 case $ac_lo in
16127 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16128 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16129 See \`config.log' for more details." >&5
16130 echo "$as_me: error: cannot compute sizeof (long long), 77
16131 See \`config.log' for more details." >&2;}
16132    { (exit 1); exit 1; }; } ;;
16133 esac
16134 else
16135   if test "$cross_compiling" = yes; then
16136   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16137 See \`config.log' for more details." >&5
16138 echo "$as_me: error: cannot run test program while cross compiling
16139 See \`config.log' for more details." >&2;}
16140    { (exit 1); exit 1; }; }
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 #line $LINENO "configure"
16144 /* confdefs.h.  */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h.  */
16149 $ac_includes_default
16150 long longval () { return (long) (sizeof (long long)); }
16151 unsigned long ulongval () { return (long) (sizeof (long long)); }
16152 #include <stdio.h>
16153 #include <stdlib.h>
16154 int
16155 main ()
16156 {
16157
16158   FILE *f = fopen ("conftest.val", "w");
16159   if (! f)
16160     exit (1);
16161   if (((long) (sizeof (long long))) < 0)
16162     {
16163       long i = longval ();
16164       if (i != ((long) (sizeof (long long))))
16165         exit (1);
16166       fprintf (f, "%ld\n", i);
16167     }
16168   else
16169     {
16170       unsigned long i = ulongval ();
16171       if (i != ((long) (sizeof (long long))))
16172         exit (1);
16173       fprintf (f, "%lu\n", i);
16174     }
16175   exit (ferror (f) || fclose (f) != 0);
16176
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 rm -f conftest$ac_exeext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16183   (eval $ac_link) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188   (eval $ac_try) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; }; then
16192   ac_cv_sizeof_long_long=`cat conftest.val`
16193 else
16194   echo "$as_me: program exited with status $ac_status" >&5
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 ( exit $ac_status )
16199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16200 See \`config.log' for more details." >&5
16201 echo "$as_me: error: cannot compute sizeof (long long), 77
16202 See \`config.log' for more details." >&2;}
16203    { (exit 1); exit 1; }; }
16204 fi
16205 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16206 fi
16207 fi
16208 rm -f conftest.val
16209 else
16210   ac_cv_sizeof_long_long=0
16211 fi
16212 fi
16213 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16214 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16215 cat >>confdefs.h <<_ACEOF
16216 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16217 _ACEOF
16218
16219
16220         if test "$ac_cv_sizeof_long_long" != "0"; then
16221                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16222         fi
16223     ;;
16224     * )
16225         echo "$as_me:$LINENO: checking for long long" >&5
16226 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16227 if test "${ac_cv_type_long_long+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230   cat >conftest.$ac_ext <<_ACEOF
16231 #line $LINENO "configure"
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237 $ac_includes_default
16238 int
16239 main ()
16240 {
16241 if ((long long *) 0)
16242   return 0;
16243 if (sizeof (long long))
16244   return 0;
16245   ;
16246   return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251   (eval $ac_compile) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -s conftest.$ac_objext'
16256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257   (eval $ac_try) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; }; then
16261   ac_cv_type_long_long=yes
16262 else
16263   echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_cv_type_long_long=no
16267 fi
16268 rm -f conftest.$ac_objext conftest.$ac_ext
16269 fi
16270 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16271 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16272
16273 echo "$as_me:$LINENO: checking size of long long" >&5
16274 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16275 if test "${ac_cv_sizeof_long_long+set}" = set; then
16276   echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278   if test "$ac_cv_type_long_long" = yes; then
16279   # The cast to unsigned long works around a bug in the HP C Compiler
16280   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16281   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16282   # This bug is HP SR number 8606223364.
16283   if test "$cross_compiling" = yes; then
16284   # Depending upon the size, compute the lo and hi bounds.
16285 cat >conftest.$ac_ext <<_ACEOF
16286 #line $LINENO "configure"
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292 $ac_includes_default
16293 int
16294 main ()
16295 {
16296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16297 test_array [0] = 0
16298
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305   (eval $ac_compile) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -s conftest.$ac_objext'
16310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311   (eval $ac_try) 2>&5
16312   ac_status=$?
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); }; }; then
16315   ac_lo=0 ac_mid=0
16316   while :; do
16317     cat >conftest.$ac_ext <<_ACEOF
16318 #line $LINENO "configure"
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 $ac_includes_default
16325 int
16326 main ()
16327 {
16328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16329 test_array [0] = 0
16330
16331   ;
16332   return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337   (eval $ac_compile) 2>&5
16338   ac_status=$?
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } &&
16341          { ac_try='test -s conftest.$ac_objext'
16342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343   (eval $ac_try) 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; }; then
16347   ac_hi=$ac_mid; break
16348 else
16349   echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 ac_lo=`expr $ac_mid + 1`
16353                     if test $ac_lo -le $ac_mid; then
16354                       ac_lo= ac_hi=
16355                       break
16356                     fi
16357                     ac_mid=`expr 2 '*' $ac_mid + 1`
16358 fi
16359 rm -f conftest.$ac_objext conftest.$ac_ext
16360   done
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 cat >conftest.$ac_ext <<_ACEOF
16366 #line $LINENO "configure"
16367 /* confdefs.h.  */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h.  */
16372 $ac_includes_default
16373 int
16374 main ()
16375 {
16376 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16377 test_array [0] = 0
16378
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 rm -f conftest.$ac_objext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16385   (eval $ac_compile) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -s conftest.$ac_objext'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; }; then
16395   ac_hi=-1 ac_mid=-1
16396   while :; do
16397     cat >conftest.$ac_ext <<_ACEOF
16398 #line $LINENO "configure"
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404 $ac_includes_default
16405 int
16406 main ()
16407 {
16408 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16409 test_array [0] = 0
16410
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16417   (eval $ac_compile) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -s conftest.$ac_objext'
16422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423   (eval $ac_try) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; }; then
16427   ac_lo=$ac_mid; break
16428 else
16429   echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16431
16432 ac_hi=`expr '(' $ac_mid ')' - 1`
16433                        if test $ac_mid -le $ac_hi; then
16434                          ac_lo= ac_hi=
16435                          break
16436                        fi
16437                        ac_mid=`expr 2 '*' $ac_mid`
16438 fi
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16440   done
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 ac_lo= ac_hi=
16446 fi
16447 rm -f conftest.$ac_objext conftest.$ac_ext
16448 fi
16449 rm -f conftest.$ac_objext conftest.$ac_ext
16450 # Binary search between lo and hi bounds.
16451 while test "x$ac_lo" != "x$ac_hi"; do
16452   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16453   cat >conftest.$ac_ext <<_ACEOF
16454 #line $LINENO "configure"
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 $ac_includes_default
16461 int
16462 main ()
16463 {
16464 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16465 test_array [0] = 0
16466
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473   (eval $ac_compile) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } &&
16477          { ac_try='test -s conftest.$ac_objext'
16478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479   (eval $ac_try) 2>&5
16480   ac_status=$?
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); }; }; then
16483   ac_hi=$ac_mid
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 ac_lo=`expr '(' $ac_mid ')' + 1`
16489 fi
16490 rm -f conftest.$ac_objext conftest.$ac_ext
16491 done
16492 case $ac_lo in
16493 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16495 See \`config.log' for more details." >&5
16496 echo "$as_me: error: cannot compute sizeof (long long), 77
16497 See \`config.log' for more details." >&2;}
16498    { (exit 1); exit 1; }; } ;;
16499 esac
16500 else
16501   if test "$cross_compiling" = yes; then
16502   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16503 See \`config.log' for more details." >&5
16504 echo "$as_me: error: cannot run test program while cross compiling
16505 See \`config.log' for more details." >&2;}
16506    { (exit 1); exit 1; }; }
16507 else
16508   cat >conftest.$ac_ext <<_ACEOF
16509 #line $LINENO "configure"
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515 $ac_includes_default
16516 long longval () { return (long) (sizeof (long long)); }
16517 unsigned long ulongval () { return (long) (sizeof (long long)); }
16518 #include <stdio.h>
16519 #include <stdlib.h>
16520 int
16521 main ()
16522 {
16523
16524   FILE *f = fopen ("conftest.val", "w");
16525   if (! f)
16526     exit (1);
16527   if (((long) (sizeof (long long))) < 0)
16528     {
16529       long i = longval ();
16530       if (i != ((long) (sizeof (long long))))
16531         exit (1);
16532       fprintf (f, "%ld\n", i);
16533     }
16534   else
16535     {
16536       unsigned long i = ulongval ();
16537       if (i != ((long) (sizeof (long long))))
16538         exit (1);
16539       fprintf (f, "%lu\n", i);
16540     }
16541   exit (ferror (f) || fclose (f) != 0);
16542
16543   ;
16544   return 0;
16545 }
16546 _ACEOF
16547 rm -f conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549   (eval $ac_link) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; }; then
16558   ac_cv_sizeof_long_long=`cat conftest.val`
16559 else
16560   echo "$as_me: program exited with status $ac_status" >&5
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ( exit $ac_status )
16565 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16566 See \`config.log' for more details." >&5
16567 echo "$as_me: error: cannot compute sizeof (long long), 77
16568 See \`config.log' for more details." >&2;}
16569    { (exit 1); exit 1; }; }
16570 fi
16571 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16572 fi
16573 fi
16574 rm -f conftest.val
16575 else
16576   ac_cv_sizeof_long_long=0
16577 fi
16578 fi
16579 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16580 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16581 cat >>confdefs.h <<_ACEOF
16582 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16583 _ACEOF
16584
16585
16586 esac
16587
16588 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16589 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16590 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593
16594     if test "$cross_compiling" = yes; then
16595
16596             case "${host}" in
16597               *-pc-msdosdjgpp )
16598                 wx_cv_sizeof_wchar_t=0
16599                 ;;
16600               * )
16601                 wx_cv_sizeof_wchar_t=4
16602                 ;;
16603             esac
16604
16605
16606 else
16607   cat >conftest.$ac_ext <<_ACEOF
16608 #line $LINENO "configure"
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614
16615             /* DJGPP only has fake wchar_t: */
16616             #ifdef __DJGPP__
16617             #  error "fake wchar_t"
16618             #endif
16619             #ifdef HAVE_WCHAR_H
16620             #  ifdef __CYGWIN__
16621             #    include <stddef.h>
16622             #  endif
16623             #  include <wchar.h>
16624             #endif
16625             #ifdef HAVE_STDLIB_H
16626             #  include <stdlib.h>
16627             #endif
16628             #include <stdio.h>
16629             int main()
16630             {
16631                 FILE *f=fopen("conftestval", "w");
16632                 if (!f) exit(1);
16633                 fprintf(f, "%i", sizeof(wchar_t));
16634                 exit(0);
16635             }
16636
16637 _ACEOF
16638 rm -f conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640   (eval $ac_link) 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645   (eval $ac_try) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   wx_cv_sizeof_wchar_t=`cat conftestval`
16650 else
16651   echo "$as_me: program exited with status $ac_status" >&5
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16654
16655 ( exit $ac_status )
16656 wx_cv_sizeof_wchar_t=0
16657 fi
16658 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16659 fi
16660
16661 fi
16662 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16663 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
16667 _ACEOF
16668
16669
16670 # Check whether --enable-largefile or --disable-largefile was given.
16671 if test "${enable_largefile+set}" = set; then
16672   enableval="$enable_largefile"
16673
16674 fi;
16675 if test "$enable_largefile" != no; then
16676             wx_largefile=no
16677
16678     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16679 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16680 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683
16684           cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 #define _FILE_OFFSET_BITS 64
16692                           #include <sys/types.h>
16693 int
16694 main ()
16695 {
16696 typedef struct {
16697     unsigned int field: sizeof(off_t) == 8;
16698 } wxlf;
16699
16700   ;
16701   return 0;
16702 }
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706   (eval $ac_compile) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } &&
16710          { ac_try='test -s conftest.$ac_objext'
16711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712   (eval $ac_try) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; }; then
16716   ac_cv_sys_file_offset_bits=64
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 ac_cv_sys_file_offset_bits=no
16722 fi
16723 rm -f conftest.$ac_objext conftest.$ac_ext
16724
16725
16726 fi
16727 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16728 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16729
16730     if test "$ac_cv_sys_file_offset_bits" != no; then
16731         wx_largefile=yes
16732         cat >>confdefs.h <<_ACEOF
16733 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16734 _ACEOF
16735
16736     fi
16737
16738     if test "x$wx_largefile" != "xyes"; then
16739
16740     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16741 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16742 if test "${ac_cv_sys_large_files+set}" = set; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745
16746           cat >conftest.$ac_ext <<_ACEOF
16747 #line $LINENO "configure"
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753 #define _LARGE_FILES 1
16754                           #include <sys/types.h>
16755 int
16756 main ()
16757 {
16758 typedef struct {
16759     unsigned int field: sizeof(off_t) == 8;
16760 } wxlf;
16761
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16768   (eval $ac_compile) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -s conftest.$ac_objext'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   ac_cv_sys_large_files=1
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 ac_cv_sys_large_files=no
16784 fi
16785 rm -f conftest.$ac_objext conftest.$ac_ext
16786
16787
16788 fi
16789 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16790 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16791
16792     if test "$ac_cv_sys_large_files" != no; then
16793         wx_largefile=yes
16794         cat >>confdefs.h <<_ACEOF
16795 #define _LARGE_FILES $ac_cv_sys_large_files
16796 _ACEOF
16797
16798     fi
16799
16800     fi
16801
16802     echo "$as_me:$LINENO: checking if large file support is available" >&5
16803 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
16804     if test "x$wx_largefile" = "xyes"; then
16805         cat >>confdefs.h <<\_ACEOF
16806 #define HAVE_LARGEFILE_SUPPORT 1
16807 _ACEOF
16808
16809     fi
16810     echo "$as_me:$LINENO: result: $wx_largefile" >&5
16811 echo "${ECHO_T}$wx_largefile" >&6
16812 fi
16813
16814
16815 if test "x$wx_largefile" = "xyes"; then
16816     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16817         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
16818     else
16819         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
16820     fi
16821     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
16822 fi
16823
16824 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16825 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16826 if test "${ac_cv_c_bigendian+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   ac_cv_c_bigendian=unknown
16830 # See if sys/param.h defines the BYTE_ORDER macro.
16831 cat >conftest.$ac_ext <<_ACEOF
16832 #line $LINENO "configure"
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838 #include <sys/types.h>
16839 #include <sys/param.h>
16840 int
16841 main ()
16842 {
16843
16844 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16845  bogus endian macros
16846 #endif
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853   (eval $ac_compile) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } &&
16857          { ac_try='test -s conftest.$ac_objext'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   # It does; now see whether it defined to BIG_ENDIAN or not.
16864 cat >conftest.$ac_ext <<_ACEOF
16865 #line $LINENO "configure"
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871 #include <sys/types.h>
16872 #include <sys/param.h>
16873 int
16874 main ()
16875 {
16876
16877 #if BYTE_ORDER != BIG_ENDIAN
16878  not big endian
16879 #endif
16880   ;
16881   return 0;
16882 }
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886   (eval $ac_compile) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); } &&
16890          { ac_try='test -s conftest.$ac_objext'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; }; then
16896   ac_cv_c_bigendian=yes
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 ac_cv_c_bigendian=no
16902 fi
16903 rm -f conftest.$ac_objext conftest.$ac_ext
16904 else
16905   echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16907
16908 fi
16909 rm -f conftest.$ac_objext conftest.$ac_ext
16910 if test $ac_cv_c_bigendian = unknown; then
16911 if test "$cross_compiling" = yes; then
16912   ac_cv_c_bigendian=unknown
16913 else
16914   cat >conftest.$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16916 /* confdefs.h.  */
16917 _ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h.  */
16921 main () {
16922   /* Are we little or big endian?  From Harbison&Steele.  */
16923   union
16924   {
16925     long l;
16926     char c[sizeof (long)];
16927   } u;
16928   u.l = 1;
16929   exit (u.c[sizeof (long) - 1] == 1);
16930 }
16931 _ACEOF
16932 rm -f conftest$ac_exeext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16934   (eval $ac_link) 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   ac_cv_c_bigendian=no
16944 else
16945   echo "$as_me: program exited with status $ac_status" >&5
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949 ( exit $ac_status )
16950 ac_cv_c_bigendian=yes
16951 fi
16952 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16953 fi
16954 fi
16955 fi
16956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16958 if test $ac_cv_c_bigendian = unknown; then
16959   { 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
16960 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;}
16961 fi
16962 if test $ac_cv_c_bigendian = yes; then
16963   cat >>confdefs.h <<\_ACEOF
16964 #define WORDS_BIGENDIAN 1
16965 _ACEOF
16966
16967 fi
16968
16969
16970
16971 ac_ext=cc
16972 ac_cpp='$CXXCPP $CPPFLAGS'
16973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16976 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16977 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16978 if test -z "$CXXCPP"; then
16979   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982       # Double quotes because CXXCPP needs to be expanded
16983     for CXXCPP in "$CXX -E" "/lib/cpp"
16984     do
16985       ac_preproc_ok=false
16986 for ac_cxx_preproc_warn_flag in '' yes
16987 do
16988   # Use a header file that comes with gcc, so configuring glibc
16989   # with a fresh cross-compiler works.
16990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991   # <limits.h> exists even on freestanding compilers.
16992   # On the NeXT, cc -E runs the code through the compiler's parser,
16993   # not just through cpp. "Syntax error" is here to catch this case.
16994   cat >conftest.$ac_ext <<_ACEOF
16995 #line $LINENO "configure"
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001 #ifdef __STDC__
17002 # include <limits.h>
17003 #else
17004 # include <assert.h>
17005 #endif
17006                      Syntax error
17007 _ACEOF
17008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } >/dev/null; then
17016   if test -s conftest.err; then
17017     ac_cpp_err=$ac_cxx_preproc_warn_flag
17018   else
17019     ac_cpp_err=
17020   fi
17021 else
17022   ac_cpp_err=yes
17023 fi
17024 if test -z "$ac_cpp_err"; then
17025   :
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030   # Broken: fails on valid input.
17031 continue
17032 fi
17033 rm -f conftest.err conftest.$ac_ext
17034
17035   # OK, works on sane cases.  Now check whether non-existent headers
17036   # can be detected and how.
17037   cat >conftest.$ac_ext <<_ACEOF
17038 #line $LINENO "configure"
17039 /* confdefs.h.  */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h.  */
17044 #include <ac_nonexistent.h>
17045 _ACEOF
17046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } >/dev/null; then
17054   if test -s conftest.err; then
17055     ac_cpp_err=$ac_cxx_preproc_warn_flag
17056   else
17057     ac_cpp_err=
17058   fi
17059 else
17060   ac_cpp_err=yes
17061 fi
17062 if test -z "$ac_cpp_err"; then
17063   # Broken: success on invalid input.
17064 continue
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069   # Passes both tests.
17070 ac_preproc_ok=:
17071 break
17072 fi
17073 rm -f conftest.err conftest.$ac_ext
17074
17075 done
17076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17077 rm -f conftest.err conftest.$ac_ext
17078 if $ac_preproc_ok; then
17079   break
17080 fi
17081
17082     done
17083     ac_cv_prog_CXXCPP=$CXXCPP
17084
17085 fi
17086   CXXCPP=$ac_cv_prog_CXXCPP
17087 else
17088   ac_cv_prog_CXXCPP=$CXXCPP
17089 fi
17090 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17091 echo "${ECHO_T}$CXXCPP" >&6
17092 ac_preproc_ok=false
17093 for ac_cxx_preproc_warn_flag in '' yes
17094 do
17095   # Use a header file that comes with gcc, so configuring glibc
17096   # with a fresh cross-compiler works.
17097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098   # <limits.h> exists even on freestanding compilers.
17099   # On the NeXT, cc -E runs the code through the compiler's parser,
17100   # not just through cpp. "Syntax error" is here to catch this case.
17101   cat >conftest.$ac_ext <<_ACEOF
17102 #line $LINENO "configure"
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 #ifdef __STDC__
17109 # include <limits.h>
17110 #else
17111 # include <assert.h>
17112 #endif
17113                      Syntax error
17114 _ACEOF
17115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17117   ac_status=$?
17118   grep -v '^ *+' conftest.er1 >conftest.err
17119   rm -f conftest.er1
17120   cat conftest.err >&5
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } >/dev/null; then
17123   if test -s conftest.err; then
17124     ac_cpp_err=$ac_cxx_preproc_warn_flag
17125   else
17126     ac_cpp_err=
17127   fi
17128 else
17129   ac_cpp_err=yes
17130 fi
17131 if test -z "$ac_cpp_err"; then
17132   :
17133 else
17134   echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137   # Broken: fails on valid input.
17138 continue
17139 fi
17140 rm -f conftest.err conftest.$ac_ext
17141
17142   # OK, works on sane cases.  Now check whether non-existent headers
17143   # can be detected and how.
17144   cat >conftest.$ac_ext <<_ACEOF
17145 #line $LINENO "configure"
17146 /* confdefs.h.  */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h.  */
17151 #include <ac_nonexistent.h>
17152 _ACEOF
17153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17155   ac_status=$?
17156   grep -v '^ *+' conftest.er1 >conftest.err
17157   rm -f conftest.er1
17158   cat conftest.err >&5
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } >/dev/null; then
17161   if test -s conftest.err; then
17162     ac_cpp_err=$ac_cxx_preproc_warn_flag
17163   else
17164     ac_cpp_err=
17165   fi
17166 else
17167   ac_cpp_err=yes
17168 fi
17169 if test -z "$ac_cpp_err"; then
17170   # Broken: success on invalid input.
17171 continue
17172 else
17173   echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176   # Passes both tests.
17177 ac_preproc_ok=:
17178 break
17179 fi
17180 rm -f conftest.err conftest.$ac_ext
17181
17182 done
17183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17184 rm -f conftest.err conftest.$ac_ext
17185 if $ac_preproc_ok; then
17186   :
17187 else
17188   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17189 See \`config.log' for more details." >&5
17190 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17191 See \`config.log' for more details." >&2;}
17192    { (exit 1); exit 1; }; }
17193 fi
17194
17195 ac_ext=cc
17196 ac_cpp='$CXXCPP $CPPFLAGS'
17197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17200
17201
17202
17203   if test "$cross_compiling" = "yes"; then
17204     cat >>confdefs.h <<\_ACEOF
17205 #define wxUSE_IOSTREAMH 1
17206 _ACEOF
17207
17208   else
17209
17210
17211     ac_ext=cc
17212 ac_cpp='$CXXCPP $CPPFLAGS'
17213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17216
17217
17218
17219 for ac_header in iostream
17220 do
17221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17223   echo "$as_me:$LINENO: checking for $ac_header" >&5
17224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 fi
17228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17230 else
17231   # Is the header compilable?
17232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241 $ac_includes_default
17242 #include <$ac_header>
17243 _ACEOF
17244 rm -f conftest.$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246   (eval $ac_compile) 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); } &&
17250          { ac_try='test -s conftest.$ac_objext'
17251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252   (eval $ac_try) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; }; then
17256   ac_header_compiler=yes
17257 else
17258   echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ac_header_compiler=no
17262 fi
17263 rm -f conftest.$ac_objext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6
17266
17267 # Is the header present?
17268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17271 #line $LINENO "configure"
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277 #include <$ac_header>
17278 _ACEOF
17279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } >/dev/null; then
17287   if test -s conftest.err; then
17288     ac_cpp_err=$ac_cxx_preproc_warn_flag
17289   else
17290     ac_cpp_err=
17291   fi
17292 else
17293   ac_cpp_err=yes
17294 fi
17295 if test -z "$ac_cpp_err"; then
17296   ac_header_preproc=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301   ac_header_preproc=no
17302 fi
17303 rm -f conftest.err conftest.$ac_ext
17304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305 echo "${ECHO_T}$ac_header_preproc" >&6
17306
17307 # So?  What about this header?
17308 case $ac_header_compiler:$ac_header_preproc in
17309   yes:no )
17310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314     (
17315       cat <<\_ASBOX
17316 ## ------------------------------------ ##
17317 ## Report this to bug-autoconf@gnu.org. ##
17318 ## ------------------------------------ ##
17319 _ASBOX
17320     ) |
17321       sed "s/^/$as_me: WARNING:     /" >&2
17322     ;;
17323   no:yes )
17324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17326     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17330     (
17331       cat <<\_ASBOX
17332 ## ------------------------------------ ##
17333 ## Report this to bug-autoconf@gnu.org. ##
17334 ## ------------------------------------ ##
17335 _ASBOX
17336     ) |
17337       sed "s/^/$as_me: WARNING:     /" >&2
17338     ;;
17339 esac
17340 echo "$as_me:$LINENO: checking for $ac_header" >&5
17341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345   eval "$as_ac_Header=$ac_header_preproc"
17346 fi
17347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17349
17350 fi
17351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17352   cat >>confdefs.h <<_ACEOF
17353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17354 _ACEOF
17355
17356 fi
17357
17358 done
17359
17360
17361     if test "$ac_cv_header_iostream" = "yes" ; then
17362       :
17363     else
17364       cat >>confdefs.h <<\_ACEOF
17365 #define wxUSE_IOSTREAMH 1
17366 _ACEOF
17367
17368     fi
17369
17370     ac_ext=c
17371 ac_cpp='$CPP $CPPFLAGS'
17372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17375
17376   fi
17377
17378
17379
17380   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17381 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17382 if test "${wx_cv_cpp_bool+set}" = set; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385
17386
17387
17388     ac_ext=cc
17389 ac_cpp='$CXXCPP $CPPFLAGS'
17390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17393
17394
17395     cat >conftest.$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402
17403
17404 int
17405 main ()
17406 {
17407
17408         bool b = true;
17409
17410         return 0;
17411
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418   (eval $ac_compile) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } &&
17422          { ac_try='test -s conftest.$ac_objext'
17423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424   (eval $ac_try) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; }; then
17428
17429         wx_cv_cpp_bool=yes
17430
17431 else
17432   echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17434
17435
17436         wx_cv_cpp_bool=no
17437
17438
17439 fi
17440 rm -f conftest.$ac_objext conftest.$ac_ext
17441
17442     ac_ext=c
17443 ac_cpp='$CPP $CPPFLAGS'
17444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17447
17448
17449 fi
17450 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17451 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17452
17453   if test "$wx_cv_cpp_bool" = "yes"; then
17454     cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_BOOL 1
17456 _ACEOF
17457
17458   fi
17459
17460
17461
17462   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17463 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17464 if test "${wx_cv_explicit+set}" = set; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467
17468
17469
17470     ac_ext=cc
17471 ac_cpp='$CXXCPP $CPPFLAGS'
17472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17475
17476
17477             cat >conftest.$ac_ext <<_ACEOF
17478 #line $LINENO "configure"
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484
17485         class Foo { public: explicit Foo(int) {} };
17486
17487 int
17488 main ()
17489 {
17490
17491         return 0;
17492
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499   (eval $ac_compile) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); } &&
17503          { ac_try='test -s conftest.$ac_objext'
17504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505   (eval $ac_try) 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509
17510         cat >conftest.$ac_ext <<_ACEOF
17511 #line $LINENO "configure"
17512 /* confdefs.h.  */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h.  */
17517
17518                 class Foo { public: explicit Foo(int) {} };
17519                 static void TakeFoo(const Foo& foo) { }
17520
17521 int
17522 main ()
17523 {
17524
17525                 TakeFoo(17);
17526                 return 0;
17527
17528   ;
17529   return 0;
17530 }
17531 _ACEOF
17532 rm -f conftest.$ac_objext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17534   (eval $ac_compile) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } &&
17538          { ac_try='test -s conftest.$ac_objext'
17539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540   (eval $ac_try) 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); }; }; then
17544   wx_cv_explicit=no
17545 else
17546   echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549 wx_cv_explicit=yes
17550
17551 fi
17552 rm -f conftest.$ac_objext conftest.$ac_ext
17553
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 wx_cv_explicit=no
17559
17560 fi
17561 rm -f conftest.$ac_objext conftest.$ac_ext
17562
17563     ac_ext=c
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17568
17569
17570 fi
17571 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17572 echo "${ECHO_T}$wx_cv_explicit" >&6
17573
17574   if test "$wx_cv_explicit" = "yes"; then
17575     cat >>confdefs.h <<\_ACEOF
17576 #define HAVE_EXPLICIT 1
17577 _ACEOF
17578
17579   fi
17580
17581
17582 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17583 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17584 if test "${ac_cv_cxx_const_cast+set}" = set; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587
17588
17589  ac_ext=cc
17590 ac_cpp='$CXXCPP $CPPFLAGS'
17591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17594
17595  cat >conftest.$ac_ext <<_ACEOF
17596 #line $LINENO "configure"
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602
17603 int
17604 main ()
17605 {
17606 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17613   (eval $ac_compile) 2>&5
17614   ac_status=$?
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); } &&
17617          { ac_try='test -s conftest.$ac_objext'
17618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619   (eval $ac_try) 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); }; }; then
17623   ac_cv_cxx_const_cast=yes
17624 else
17625   echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 ac_cv_cxx_const_cast=no
17629 fi
17630 rm -f conftest.$ac_objext conftest.$ac_ext
17631  ac_ext=c
17632 ac_cpp='$CPP $CPPFLAGS'
17633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17636
17637
17638 fi
17639 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17640 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
17641 if test "$ac_cv_cxx_const_cast" = yes; then
17642
17643 cat >>confdefs.h <<\_ACEOF
17644 #define HAVE_CONST_CAST
17645 _ACEOF
17646
17647 fi
17648
17649
17650
17651 SEARCH_INCLUDE="\
17652     /usr/local/include        \
17653                               \
17654     /usr/Motif-1.2/include    \
17655     /usr/Motif-2.1/include    \
17656                               \
17657     /usr/include/Motif1.2     \
17658     /opt/xpm/include/X11      \
17659     /opt/GBxpm/include/       \
17660     /opt/GBxpm/X11/include/   \
17661                               \
17662     /usr/Motif1.2/include     \
17663     /usr/dt/include           \
17664     /usr/openwin/include      \
17665                               \
17666     /usr/include/Xm           \
17667                               \
17668     /usr/X11R6/include        \
17669     /usr/X11R6.4/include      \
17670     /usr/X11R5/include        \
17671     /usr/X11R4/include        \
17672                               \
17673     /usr/include/X11R6        \
17674     /usr/include/X11R5        \
17675     /usr/include/X11R4        \
17676                               \
17677     /usr/local/X11R6/include  \
17678     /usr/local/X11R5/include  \
17679     /usr/local/X11R4/include  \
17680                               \
17681     /usr/local/include/X11R6  \
17682     /usr/local/include/X11R5  \
17683     /usr/local/include/X11R4  \
17684                               \
17685     /usr/X11/include          \
17686     /usr/include/X11          \
17687     /usr/local/X11/include    \
17688     /usr/local/include/X11    \
17689                               \
17690     /usr/X386/include         \
17691     /usr/x386/include         \
17692     /usr/XFree86/include/X11  \
17693                               \
17694     X:/XFree86/include        \
17695     X:/XFree86/include/X11    \
17696                               \
17697     /usr/include/gtk          \
17698     /usr/local/include/gtk    \
17699     /usr/include/glib         \
17700     /usr/local/include/glib   \
17701                               \
17702     /usr/include/qt           \
17703     /usr/local/include/qt     \
17704                               \
17705     /usr/include/windows      \
17706     /usr/include/wine         \
17707     /usr/local/include/wine   \
17708                               \
17709     /usr/unsupported/include  \
17710     /usr/athena/include       \
17711     /usr/local/x11r5/include  \
17712     /usr/lpp/Xamples/include  \
17713                               \
17714     /usr/openwin/share/include"
17715
17716 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17717
17718
17719 cat >confcache <<\_ACEOF
17720 # This file is a shell script that caches the results of configure
17721 # tests run on this system so they can be shared between configure
17722 # scripts and configure runs, see configure's option --config-cache.
17723 # It is not useful on other systems.  If it contains results you don't
17724 # want to keep, you may remove or edit it.
17725 #
17726 # config.status only pays attention to the cache file if you give it
17727 # the --recheck option to rerun configure.
17728 #
17729 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17730 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17731 # following values.
17732
17733 _ACEOF
17734
17735 # The following way of writing the cache mishandles newlines in values,
17736 # but we know of no workaround that is simple, portable, and efficient.
17737 # So, don't put newlines in cache variables' values.
17738 # Ultrix sh set writes to stderr and can't be redirected directly,
17739 # and sets the high bit in the cache file unless we assign to the vars.
17740 {
17741   (set) 2>&1 |
17742     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17743     *ac_space=\ *)
17744       # `set' does not quote correctly, so add quotes (double-quote
17745       # substitution turns \\\\ into \\, and sed turns \\ into \).
17746       sed -n \
17747         "s/'/'\\\\''/g;
17748           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17749       ;;
17750     *)
17751       # `set' quotes correctly as required by POSIX, so do not add quotes.
17752       sed -n \
17753         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17754       ;;
17755     esac;
17756 } |
17757   sed '
17758      t clear
17759      : clear
17760      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17761      t end
17762      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17763      : end' >>confcache
17764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17765   if test -w $cache_file; then
17766     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17767     cat confcache >$cache_file
17768   else
17769     echo "not updating unwritable cache $cache_file"
17770   fi
17771 fi
17772 rm -f confcache
17773
17774 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
17775     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17776 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17777 if test "${wx_cv_lib_glibc21+set}" = set; then
17778   echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780
17781         cat >conftest.$ac_ext <<_ACEOF
17782 #line $LINENO "configure"
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788 #include <features.h>
17789 int
17790 main ()
17791 {
17792
17793                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17794                     #error not glibc2.1
17795                 #endif
17796
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17803   (eval $ac_compile) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -s conftest.$ac_objext'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813
17814                 wx_cv_lib_glibc21=yes
17815
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820
17821                 wx_cv_lib_glibc21=no
17822
17823
17824 fi
17825 rm -f conftest.$ac_objext conftest.$ac_ext
17826
17827 fi
17828 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17829 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
17830     if test "$wx_cv_lib_glibc21" = "yes"; then
17831         cat >>confdefs.h <<\_ACEOF
17832 #define wxHAVE_GLIBC2 1
17833 _ACEOF
17834
17835     fi
17836 fi
17837
17838 if test "x$wx_cv_lib_glibc21" = "xyes"; then
17839     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
17840         cat >>confdefs.h <<\_ACEOF
17841 #define _GNU_SOURCE 1
17842 _ACEOF
17843
17844     fi
17845 fi
17846
17847
17848
17849 REGEX_INCLUDE=
17850 if test "$wxUSE_REGEX" != "no"; then
17851     cat >>confdefs.h <<\_ACEOF
17852 #define wxUSE_REGEX 1
17853 _ACEOF
17854
17855
17856     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
17857                         if test "${ac_cv_header_regex_h+set}" = set; then
17858   echo "$as_me:$LINENO: checking for regex.h" >&5
17859 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17860 if test "${ac_cv_header_regex_h+set}" = set; then
17861   echo $ECHO_N "(cached) $ECHO_C" >&6
17862 fi
17863 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17864 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17865 else
17866   # Is the header compilable?
17867 echo "$as_me:$LINENO: checking regex.h usability" >&5
17868 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17869 cat >conftest.$ac_ext <<_ACEOF
17870 #line $LINENO "configure"
17871 /* confdefs.h.  */
17872 _ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h.  */
17876 $ac_includes_default
17877 #include <regex.h>
17878 _ACEOF
17879 rm -f conftest.$ac_objext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881   (eval $ac_compile) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } &&
17885          { ac_try='test -s conftest.$ac_objext'
17886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887   (eval $ac_try) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }; }; then
17891   ac_header_compiler=yes
17892 else
17893   echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17895
17896 ac_header_compiler=no
17897 fi
17898 rm -f conftest.$ac_objext conftest.$ac_ext
17899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17900 echo "${ECHO_T}$ac_header_compiler" >&6
17901
17902 # Is the header present?
17903 echo "$as_me:$LINENO: checking regex.h presence" >&5
17904 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17905 cat >conftest.$ac_ext <<_ACEOF
17906 #line $LINENO "configure"
17907 /* confdefs.h.  */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h.  */
17912 #include <regex.h>
17913 _ACEOF
17914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } >/dev/null; then
17922   if test -s conftest.err; then
17923     ac_cpp_err=$ac_c_preproc_warn_flag
17924   else
17925     ac_cpp_err=
17926   fi
17927 else
17928   ac_cpp_err=yes
17929 fi
17930 if test -z "$ac_cpp_err"; then
17931   ac_header_preproc=yes
17932 else
17933   echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936   ac_header_preproc=no
17937 fi
17938 rm -f conftest.err conftest.$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17940 echo "${ECHO_T}$ac_header_preproc" >&6
17941
17942 # So?  What about this header?
17943 case $ac_header_compiler:$ac_header_preproc in
17944   yes:no )
17945     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17946 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17947     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17948 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17949     (
17950       cat <<\_ASBOX
17951 ## ------------------------------------ ##
17952 ## Report this to bug-autoconf@gnu.org. ##
17953 ## ------------------------------------ ##
17954 _ASBOX
17955     ) |
17956       sed "s/^/$as_me: WARNING:     /" >&2
17957     ;;
17958   no:yes )
17959     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17960 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17961     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17962 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17963     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17964 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17965     (
17966       cat <<\_ASBOX
17967 ## ------------------------------------ ##
17968 ## Report this to bug-autoconf@gnu.org. ##
17969 ## ------------------------------------ ##
17970 _ASBOX
17971     ) |
17972       sed "s/^/$as_me: WARNING:     /" >&2
17973     ;;
17974 esac
17975 echo "$as_me:$LINENO: checking for regex.h" >&5
17976 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17977 if test "${ac_cv_header_regex_h+set}" = set; then
17978   echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980   ac_cv_header_regex_h=$ac_header_preproc
17981 fi
17982 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17983 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17984
17985 fi
17986 if test $ac_cv_header_regex_h = yes; then
17987
17988 for ac_func in regcomp
17989 do
17990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17991 echo "$as_me:$LINENO: checking for $ac_func" >&5
17992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17993 if eval "test \"\${$as_ac_var+set}\" = set"; then
17994   echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996   cat >conftest.$ac_ext <<_ACEOF
17997 #line $LINENO "configure"
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003 /* System header to define __stub macros and hopefully few prototypes,
18004     which can conflict with char $ac_func (); below.
18005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006     <limits.h> exists even on freestanding compilers.  */
18007 #ifdef __STDC__
18008 # include <limits.h>
18009 #else
18010 # include <assert.h>
18011 #endif
18012 /* Override any gcc2 internal prototype to avoid an error.  */
18013 #ifdef __cplusplus
18014 extern "C"
18015 {
18016 #endif
18017 /* We use char because int might match the return type of a gcc2
18018    builtin and then its argument prototype would still apply.  */
18019 char $ac_func ();
18020 /* The GNU C library defines this for functions which it implements
18021     to always fail with ENOSYS.  Some functions are actually named
18022     something starting with __ and the normal name is an alias.  */
18023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18024 choke me
18025 #else
18026 char (*f) () = $ac_func;
18027 #endif
18028 #ifdef __cplusplus
18029 }
18030 #endif
18031
18032 int
18033 main ()
18034 {
18035 return f != $ac_func;
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042   (eval $ac_link) 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); } &&
18046          { ac_try='test -s conftest$ac_exeext'
18047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048   (eval $ac_try) 2>&5
18049   ac_status=$?
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); }; }; then
18052   eval "$as_ac_var=yes"
18053 else
18054   echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057 eval "$as_ac_var=no"
18058 fi
18059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18060 fi
18061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18063 if test `eval echo '${'$as_ac_var'}'` = yes; then
18064   cat >>confdefs.h <<_ACEOF
18065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18066 _ACEOF
18067
18068 fi
18069 done
18070
18071 fi
18072
18073
18074
18075         if test "x$ac_cv_func_regcomp" != "xyes"; then
18076             if test "$wxUSE_REGEX" = "sys" ; then
18077                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18078 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18079    { (exit 1); exit 1; }; }
18080             else
18081                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18082 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18083                 wxUSE_REGEX=builtin
18084             fi
18085         else
18086                         wxUSE_REGEX=sys
18087         fi
18088     fi
18089
18090     if test "$wxUSE_REGEX" = "builtin" ; then
18091         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
18092     fi
18093 fi
18094
18095
18096 ZLIB_INCLUDE=
18097 ZLIB_LINK=
18098 if test "$wxUSE_ZLIB" != "no" ; then
18099     cat >>confdefs.h <<\_ACEOF
18100 #define wxUSE_ZLIB 1
18101 _ACEOF
18102
18103
18104     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18105                                                 if test "$USE_DARWIN" = 1; then
18106             system_zlib_h_ok="yes"
18107         else
18108                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18109 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18110 if test "${ac_cv_header_zlib_h+set}" = set; then
18111   echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113   if test "$cross_compiling" = yes; then
18114                       unset ac_cv_header_zlib_h
18115
18116 else
18117   cat >conftest.$ac_ext <<_ACEOF
18118 #line $LINENO "configure"
18119 /* confdefs.h.  */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h.  */
18124
18125                         #include <zlib.h>
18126                         #include <stdio.h>
18127
18128                         int main()
18129                         {
18130                             FILE *f=fopen("conftestval", "w");
18131                             if (!f) exit(1);
18132                             fprintf(f, "%s",
18133                                     ZLIB_VERSION[0] == '1' &&
18134                                     (ZLIB_VERSION[2] > '1' ||
18135                                     (ZLIB_VERSION[2] == '1' &&
18136                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18137                             exit(0);
18138                         }
18139
18140 _ACEOF
18141 rm -f conftest$ac_exeext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143   (eval $ac_link) 2>&5
18144   ac_status=$?
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148   (eval $ac_try) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); }; }; then
18152   ac_cv_header_zlib_h=`cat conftestval`
18153 else
18154   echo "$as_me: program exited with status $ac_status" >&5
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158 ( exit $ac_status )
18159 ac_cv_header_zlib_h=no
18160 fi
18161 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18162 fi
18163
18164 fi
18165 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18166 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18167                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18168   echo "$as_me:$LINENO: checking for zlib.h" >&5
18169 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18170 if test "${ac_cv_header_zlib_h+set}" = set; then
18171   echo $ECHO_N "(cached) $ECHO_C" >&6
18172 fi
18173 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18174 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18175 else
18176   # Is the header compilable?
18177 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18178 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18179 cat >conftest.$ac_ext <<_ACEOF
18180 #line $LINENO "configure"
18181 /* confdefs.h.  */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h.  */
18186 $ac_includes_default
18187 #include <zlib.h>
18188 _ACEOF
18189 rm -f conftest.$ac_objext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191   (eval $ac_compile) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } &&
18195          { ac_try='test -s conftest.$ac_objext'
18196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197   (eval $ac_try) 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; }; then
18201   ac_header_compiler=yes
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 ac_header_compiler=no
18207 fi
18208 rm -f conftest.$ac_objext conftest.$ac_ext
18209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18210 echo "${ECHO_T}$ac_header_compiler" >&6
18211
18212 # Is the header present?
18213 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18214 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18215 cat >conftest.$ac_ext <<_ACEOF
18216 #line $LINENO "configure"
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222 #include <zlib.h>
18223 _ACEOF
18224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18226   ac_status=$?
18227   grep -v '^ *+' conftest.er1 >conftest.err
18228   rm -f conftest.er1
18229   cat conftest.err >&5
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); } >/dev/null; then
18232   if test -s conftest.err; then
18233     ac_cpp_err=$ac_c_preproc_warn_flag
18234   else
18235     ac_cpp_err=
18236   fi
18237 else
18238   ac_cpp_err=yes
18239 fi
18240 if test -z "$ac_cpp_err"; then
18241   ac_header_preproc=yes
18242 else
18243   echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246   ac_header_preproc=no
18247 fi
18248 rm -f conftest.err conftest.$ac_ext
18249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18250 echo "${ECHO_T}$ac_header_preproc" >&6
18251
18252 # So?  What about this header?
18253 case $ac_header_compiler:$ac_header_preproc in
18254   yes:no )
18255     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18256 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18257     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18258 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18259     (
18260       cat <<\_ASBOX
18261 ## ------------------------------------ ##
18262 ## Report this to bug-autoconf@gnu.org. ##
18263 ## ------------------------------------ ##
18264 _ASBOX
18265     ) |
18266       sed "s/^/$as_me: WARNING:     /" >&2
18267     ;;
18268   no:yes )
18269     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18270 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18271     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18272 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18273     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18274 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18275     (
18276       cat <<\_ASBOX
18277 ## ------------------------------------ ##
18278 ## Report this to bug-autoconf@gnu.org. ##
18279 ## ------------------------------------ ##
18280 _ASBOX
18281     ) |
18282       sed "s/^/$as_me: WARNING:     /" >&2
18283     ;;
18284 esac
18285 echo "$as_me:$LINENO: checking for zlib.h" >&5
18286 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18287 if test "${ac_cv_header_zlib_h+set}" = set; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   ac_cv_header_zlib_h=$ac_header_preproc
18291 fi
18292 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18293 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18294
18295 fi
18296
18297
18298
18299             system_zlib_h_ok=$ac_cv_header_zlib_h
18300         fi
18301
18302         if test "$system_zlib_h_ok" = "yes"; then
18303             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18304 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18305 if test "${ac_cv_lib_z_deflate+set}" = set; then
18306   echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308   ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lz  $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18311 #line $LINENO "configure"
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317
18318 /* Override any gcc2 internal prototype to avoid an error.  */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 /* We use char because int might match the return type of a gcc2
18323    builtin and then its argument prototype would still apply.  */
18324 char deflate ();
18325 int
18326 main ()
18327 {
18328 deflate ();
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335   (eval $ac_link) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } &&
18339          { ac_try='test -s conftest$ac_exeext'
18340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341   (eval $ac_try) 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; }; then
18345   ac_cv_lib_z_deflate=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 ac_cv_lib_z_deflate=no
18351 fi
18352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18356 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18357 if test $ac_cv_lib_z_deflate = yes; then
18358   ZLIB_LINK=" -lz"
18359 fi
18360
18361         fi
18362
18363         if test "x$ZLIB_LINK" = "x" ; then
18364             if test "$wxUSE_ZLIB" = "sys" ; then
18365                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18366 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18367    { (exit 1); exit 1; }; }
18368             else
18369                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18370 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
18371                 wxUSE_ZLIB=builtin
18372             fi
18373         else
18374                         wxUSE_ZLIB=sys
18375         fi
18376     fi
18377
18378     if test "$wxUSE_ZLIB" = "builtin" ; then
18379         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18380     fi
18381 fi
18382
18383
18384 PNG_INCLUDE=
18385 PNG_LINK=
18386 if test "$wxUSE_LIBPNG" != "no" ; then
18387     cat >>confdefs.h <<\_ACEOF
18388 #define wxUSE_LIBPNG 1
18389 _ACEOF
18390
18391
18392     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
18393         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18394 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
18395         wxUSE_LIBPNG=sys
18396     fi
18397
18398                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
18399         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18400 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
18401         wxUSE_LIBPNG=builtin
18402     fi
18403
18404     if test "$wxUSE_MGL" != 1 ; then
18405                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
18406                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18407 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18408 if test "${ac_cv_header_png_h+set}" = set; then
18409   echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411   if test "$cross_compiling" = yes; then
18412                       unset ac_cv_header_png_h
18413
18414 else
18415   cat >conftest.$ac_ext <<_ACEOF
18416 #line $LINENO "configure"
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422
18423                         #include <png.h>
18424                         #include <stdio.h>
18425
18426                         int main()
18427                         {
18428                             FILE *f=fopen("conftestval", "w");
18429                             if (!f) exit(1);
18430                             fprintf(f, "%s",
18431                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
18432                             exit(0);
18433                         }
18434
18435 _ACEOF
18436 rm -f conftest$ac_exeext
18437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18438   (eval $ac_link) 2>&5
18439   ac_status=$?
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_header_png_h=`cat conftestval`
18448 else
18449   echo "$as_me: program exited with status $ac_status" >&5
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ( exit $ac_status )
18454 ac_cv_header_png_h=no
18455 fi
18456 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18457 fi
18458
18459 fi
18460 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18461 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18462             if test "${ac_cv_header_png_h+set}" = set; then
18463   echo "$as_me:$LINENO: checking for png.h" >&5
18464 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18465 if test "${ac_cv_header_png_h+set}" = set; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 fi
18468 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18469 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18470 else
18471   # Is the header compilable?
18472 echo "$as_me:$LINENO: checking png.h usability" >&5
18473 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18475 #line $LINENO "configure"
18476 /* confdefs.h.  */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h.  */
18481 $ac_includes_default
18482 #include <png.h>
18483 _ACEOF
18484 rm -f conftest.$ac_objext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18486   (eval $ac_compile) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); } &&
18490          { ac_try='test -s conftest.$ac_objext'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; }; then
18496   ac_header_compiler=yes
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501 ac_header_compiler=no
18502 fi
18503 rm -f conftest.$ac_objext conftest.$ac_ext
18504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18505 echo "${ECHO_T}$ac_header_compiler" >&6
18506
18507 # Is the header present?
18508 echo "$as_me:$LINENO: checking png.h presence" >&5
18509 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18510 cat >conftest.$ac_ext <<_ACEOF
18511 #line $LINENO "configure"
18512 /* confdefs.h.  */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h.  */
18517 #include <png.h>
18518 _ACEOF
18519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18521   ac_status=$?
18522   grep -v '^ *+' conftest.er1 >conftest.err
18523   rm -f conftest.er1
18524   cat conftest.err >&5
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); } >/dev/null; then
18527   if test -s conftest.err; then
18528     ac_cpp_err=$ac_c_preproc_warn_flag
18529   else
18530     ac_cpp_err=
18531   fi
18532 else
18533   ac_cpp_err=yes
18534 fi
18535 if test -z "$ac_cpp_err"; then
18536   ac_header_preproc=yes
18537 else
18538   echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541   ac_header_preproc=no
18542 fi
18543 rm -f conftest.err conftest.$ac_ext
18544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18545 echo "${ECHO_T}$ac_header_preproc" >&6
18546
18547 # So?  What about this header?
18548 case $ac_header_compiler:$ac_header_preproc in
18549   yes:no )
18550     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18551 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18552     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18553 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18554     (
18555       cat <<\_ASBOX
18556 ## ------------------------------------ ##
18557 ## Report this to bug-autoconf@gnu.org. ##
18558 ## ------------------------------------ ##
18559 _ASBOX
18560     ) |
18561       sed "s/^/$as_me: WARNING:     /" >&2
18562     ;;
18563   no:yes )
18564     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18565 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18566     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18567 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18568     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18569 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18570     (
18571       cat <<\_ASBOX
18572 ## ------------------------------------ ##
18573 ## Report this to bug-autoconf@gnu.org. ##
18574 ## ------------------------------------ ##
18575 _ASBOX
18576     ) |
18577       sed "s/^/$as_me: WARNING:     /" >&2
18578     ;;
18579 esac
18580 echo "$as_me:$LINENO: checking for png.h" >&5
18581 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18582 if test "${ac_cv_header_png_h+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   ac_cv_header_png_h=$ac_header_preproc
18586 fi
18587 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18588 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18589
18590 fi
18591
18592
18593
18594             if test "$ac_cv_header_png_h" = "yes"; then
18595                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18596 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18597 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18598   echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600   ac_check_lib_save_LIBS=$LIBS
18601 LIBS="-lpng -lz -lm $LIBS"
18602 cat >conftest.$ac_ext <<_ACEOF
18603 #line $LINENO "configure"
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609
18610 /* Override any gcc2 internal prototype to avoid an error.  */
18611 #ifdef __cplusplus
18612 extern "C"
18613 #endif
18614 /* We use char because int might match the return type of a gcc2
18615    builtin and then its argument prototype would still apply.  */
18616 char png_check_sig ();
18617 int
18618 main ()
18619 {
18620 png_check_sig ();
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627   (eval $ac_link) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); } &&
18631          { ac_try='test -s conftest$ac_exeext'
18632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633   (eval $ac_try) 2>&5
18634   ac_status=$?
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); }; }; then
18637   ac_cv_lib_png_png_check_sig=yes
18638 else
18639   echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ac_cv_lib_png_png_check_sig=no
18643 fi
18644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18645 LIBS=$ac_check_lib_save_LIBS
18646 fi
18647 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18648 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18649 if test $ac_cv_lib_png_png_check_sig = yes; then
18650   PNG_LINK=" -lpng"
18651 fi
18652
18653             fi
18654
18655             if test "x$PNG_LINK" = "x" ; then
18656                 if test "$wxUSE_LIBPNG" = "sys" ; then
18657                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18658 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18659    { (exit 1); exit 1; }; }
18660                 else
18661                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18662 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
18663                     wxUSE_LIBPNG=builtin
18664                 fi
18665             else
18666                                 wxUSE_LIBPNG=sys
18667             fi
18668         fi
18669     fi
18670
18671     if test "$wxUSE_LIBPNG" = "builtin" ; then
18672         PNG_INCLUDE="-I\${top_srcdir}/src/png"
18673     fi
18674
18675     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
18676 fi
18677
18678
18679 JPEG_INCLUDE=
18680 JPEG_LINK=
18681 if test "$wxUSE_LIBJPEG" != "no" ; then
18682     cat >>confdefs.h <<\_ACEOF
18683 #define wxUSE_LIBJPEG 1
18684 _ACEOF
18685
18686
18687     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
18688         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18689 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
18690         wxUSE_LIBJPEG=sys
18691     fi
18692
18693     if test "$wxUSE_MGL" != 1 ; then
18694                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
18695                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18696 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18697             if test "${ac_cv_header_jpeglib_h+set}" = set; then
18698   echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700   cat >conftest.$ac_ext <<_ACEOF
18701 #line $LINENO "configure"
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707
18708                         #undef HAVE_STDLIB_H
18709                         #include <stdio.h>
18710                         #include <jpeglib.h>
18711
18712 int
18713 main ()
18714 {
18715
18716
18717   ;
18718   return 0;
18719 }
18720 _ACEOF
18721 rm -f conftest.$ac_objext
18722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18723   (eval $ac_compile) 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); } &&
18727          { ac_try='test -s conftest.$ac_objext'
18728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729   (eval $ac_try) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; }; then
18733   ac_cv_header_jpeglib_h=yes
18734 else
18735   echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ac_cv_header_jpeglib_h=no
18739
18740 fi
18741 rm -f conftest.$ac_objext conftest.$ac_ext
18742
18743 fi
18744
18745             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18747
18748             if test "$ac_cv_header_jpeglib_h" = "yes"; then
18749                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18750 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18751 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   ac_check_lib_save_LIBS=$LIBS
18755 LIBS="-ljpeg  $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 #line $LINENO "configure"
18758 /* confdefs.h.  */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h.  */
18763
18764 /* Override any gcc2 internal prototype to avoid an error.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 /* We use char because int might match the return type of a gcc2
18769    builtin and then its argument prototype would still apply.  */
18770 char jpeg_read_header ();
18771 int
18772 main ()
18773 {
18774 jpeg_read_header ();
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781   (eval $ac_link) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } &&
18785          { ac_try='test -s conftest$ac_exeext'
18786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787   (eval $ac_try) 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; }; then
18791   ac_cv_lib_jpeg_jpeg_read_header=yes
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 ac_cv_lib_jpeg_jpeg_read_header=no
18797 fi
18798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18799 LIBS=$ac_check_lib_save_LIBS
18800 fi
18801 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18802 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18803 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
18804   JPEG_LINK=" -ljpeg"
18805 fi
18806
18807             fi
18808
18809             if test "x$JPEG_LINK" = "x" ; then
18810                 if test "$wxUSE_LIBJPEG" = "sys" ; then
18811                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18812 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18813    { (exit 1); exit 1; }; }
18814                 else
18815                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18816 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
18817                     wxUSE_LIBJPEG=builtin
18818                 fi
18819             else
18820                                 wxUSE_LIBJPEG=sys
18821             fi
18822         fi
18823     fi
18824
18825     if test "$wxUSE_LIBJPEG" = "builtin" ; then
18826         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18827     fi
18828 fi
18829
18830
18831 TIFF_INCLUDE=
18832 TIFF_LINK=
18833 TIFF_PREREQ_LINKS=-lm
18834 if test "$wxUSE_LIBTIFF" != "no" ; then
18835     cat >>confdefs.h <<\_ACEOF
18836 #define wxUSE_LIBTIFF 1
18837 _ACEOF
18838
18839
18840     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
18841                         if test "$wxUSE_LIBJPEG" = "sys"; then
18842             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18843         fi
18844         if test "$wxUSE_ZLIB" = "sys"; then
18845             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18846         fi
18847         if test "${ac_cv_header_tiffio_h+set}" = set; then
18848   echo "$as_me:$LINENO: checking for tiffio.h" >&5
18849 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18850 if test "${ac_cv_header_tiffio_h+set}" = set; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 fi
18853 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18854 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18855 else
18856   # Is the header compilable?
18857 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18858 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18859 cat >conftest.$ac_ext <<_ACEOF
18860 #line $LINENO "configure"
18861 /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866 $ac_includes_default
18867 #include <tiffio.h>
18868 _ACEOF
18869 rm -f conftest.$ac_objext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871   (eval $ac_compile) 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); } &&
18875          { ac_try='test -s conftest.$ac_objext'
18876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877   (eval $ac_try) 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; }; then
18881   ac_header_compiler=yes
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 ac_header_compiler=no
18887 fi
18888 rm -f conftest.$ac_objext conftest.$ac_ext
18889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18890 echo "${ECHO_T}$ac_header_compiler" >&6
18891
18892 # Is the header present?
18893 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18894 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18895 cat >conftest.$ac_ext <<_ACEOF
18896 #line $LINENO "configure"
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902 #include <tiffio.h>
18903 _ACEOF
18904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } >/dev/null; then
18912   if test -s conftest.err; then
18913     ac_cpp_err=$ac_c_preproc_warn_flag
18914   else
18915     ac_cpp_err=
18916   fi
18917 else
18918   ac_cpp_err=yes
18919 fi
18920 if test -z "$ac_cpp_err"; then
18921   ac_header_preproc=yes
18922 else
18923   echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926   ac_header_preproc=no
18927 fi
18928 rm -f conftest.err conftest.$ac_ext
18929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18930 echo "${ECHO_T}$ac_header_preproc" >&6
18931
18932 # So?  What about this header?
18933 case $ac_header_compiler:$ac_header_preproc in
18934   yes:no )
18935     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18936 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18937     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18938 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18939     (
18940       cat <<\_ASBOX
18941 ## ------------------------------------ ##
18942 ## Report this to bug-autoconf@gnu.org. ##
18943 ## ------------------------------------ ##
18944 _ASBOX
18945     ) |
18946       sed "s/^/$as_me: WARNING:     /" >&2
18947     ;;
18948   no:yes )
18949     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18950 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18951     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18952 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18953     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18954 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18955     (
18956       cat <<\_ASBOX
18957 ## ------------------------------------ ##
18958 ## Report this to bug-autoconf@gnu.org. ##
18959 ## ------------------------------------ ##
18960 _ASBOX
18961     ) |
18962       sed "s/^/$as_me: WARNING:     /" >&2
18963     ;;
18964 esac
18965 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18966 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18967 if test "${ac_cv_header_tiffio_h+set}" = set; then
18968   echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970   ac_cv_header_tiffio_h=$ac_header_preproc
18971 fi
18972 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18973 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18974
18975 fi
18976 if test $ac_cv_header_tiffio_h = yes; then
18977   echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18978 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18979 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   ac_check_lib_save_LIBS=$LIBS
18983 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
18984 cat >conftest.$ac_ext <<_ACEOF
18985 #line $LINENO "configure"
18986 /* confdefs.h.  */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h.  */
18991
18992 /* Override any gcc2 internal prototype to avoid an error.  */
18993 #ifdef __cplusplus
18994 extern "C"
18995 #endif
18996 /* We use char because int might match the return type of a gcc2
18997    builtin and then its argument prototype would still apply.  */
18998 char TIFFError ();
18999 int
19000 main ()
19001 {
19002 TIFFError ();
19003   ;
19004   return 0;
19005 }
19006 _ACEOF
19007 rm -f conftest.$ac_objext conftest$ac_exeext
19008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19009   (eval $ac_link) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); } &&
19013          { ac_try='test -s conftest$ac_exeext'
19014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015   (eval $ac_try) 2>&5
19016   ac_status=$?
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); }; }; then
19019   ac_cv_lib_tiff_TIFFError=yes
19020 else
19021   echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_cv_lib_tiff_TIFFError=no
19025 fi
19026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19028 fi
19029 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19030 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19031 if test $ac_cv_lib_tiff_TIFFError = yes; then
19032   TIFF_LINK=" -ltiff"
19033 fi
19034
19035
19036 fi
19037
19038
19039
19040         if test "x$TIFF_LINK" = "x" ; then
19041             if test "$wxUSE_LIBTIFF" = "sys" ; then
19042                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19043 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19044    { (exit 1); exit 1; }; }
19045             else
19046                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19047 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19048                 wxUSE_LIBTIFF=builtin
19049             fi
19050         else
19051                         wxUSE_LIBTIFF=sys
19052         fi
19053     fi
19054
19055     if test "$wxUSE_LIBTIFF" = "builtin" ; then
19056         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
19057     fi
19058 fi
19059
19060
19061 AFMINSTALL=
19062 WIN32INSTALL=
19063
19064 TOOLKIT=
19065 TOOLKIT_INCLUDE=
19066 WIDGET_SET=
19067
19068 if test "$USE_WIN32" = 1 ; then
19069
19070 for ac_header in w32api.h
19071 do
19072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19074   echo "$as_me:$LINENO: checking for $ac_header" >&5
19075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 fi
19079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19081 else
19082   # Is the header compilable?
19083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19085 cat >conftest.$ac_ext <<_ACEOF
19086 #line $LINENO "configure"
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092 $ac_includes_default
19093 #include <$ac_header>
19094 _ACEOF
19095 rm -f conftest.$ac_objext
19096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19097   (eval $ac_compile) 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); } &&
19101          { ac_try='test -s conftest.$ac_objext'
19102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103   (eval $ac_try) 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; }; then
19107   ac_header_compiler=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_header_compiler=no
19113 fi
19114 rm -f conftest.$ac_objext conftest.$ac_ext
19115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19116 echo "${ECHO_T}$ac_header_compiler" >&6
19117
19118 # Is the header present?
19119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19121 cat >conftest.$ac_ext <<_ACEOF
19122 #line $LINENO "configure"
19123 /* confdefs.h.  */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h.  */
19128 #include <$ac_header>
19129 _ACEOF
19130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19132   ac_status=$?
19133   grep -v '^ *+' conftest.er1 >conftest.err
19134   rm -f conftest.er1
19135   cat conftest.err >&5
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } >/dev/null; then
19138   if test -s conftest.err; then
19139     ac_cpp_err=$ac_c_preproc_warn_flag
19140   else
19141     ac_cpp_err=
19142   fi
19143 else
19144   ac_cpp_err=yes
19145 fi
19146 if test -z "$ac_cpp_err"; then
19147   ac_header_preproc=yes
19148 else
19149   echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152   ac_header_preproc=no
19153 fi
19154 rm -f conftest.err conftest.$ac_ext
19155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156 echo "${ECHO_T}$ac_header_preproc" >&6
19157
19158 # So?  What about this header?
19159 case $ac_header_compiler:$ac_header_preproc in
19160   yes:no )
19161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19165     (
19166       cat <<\_ASBOX
19167 ## ------------------------------------ ##
19168 ## Report this to bug-autoconf@gnu.org. ##
19169 ## ------------------------------------ ##
19170 _ASBOX
19171     ) |
19172       sed "s/^/$as_me: WARNING:     /" >&2
19173     ;;
19174   no:yes )
19175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19177     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19181     (
19182       cat <<\_ASBOX
19183 ## ------------------------------------ ##
19184 ## Report this to bug-autoconf@gnu.org. ##
19185 ## ------------------------------------ ##
19186 _ASBOX
19187     ) |
19188       sed "s/^/$as_me: WARNING:     /" >&2
19189     ;;
19190 esac
19191 echo "$as_me:$LINENO: checking for $ac_header" >&5
19192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194   echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196   eval "$as_ac_Header=$ac_header_preproc"
19197 fi
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19200
19201 fi
19202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19203   cat >>confdefs.h <<_ACEOF
19204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19205 _ACEOF
19206
19207 fi
19208
19209 done
19210
19211     if test "${ac_cv_header_windows_h+set}" = set; then
19212   echo "$as_me:$LINENO: checking for windows.h" >&5
19213 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19214 if test "${ac_cv_header_windows_h+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 fi
19217 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19218 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19219 else
19220   # Is the header compilable?
19221 echo "$as_me:$LINENO: checking windows.h usability" >&5
19222 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19223 cat >conftest.$ac_ext <<_ACEOF
19224 #line $LINENO "configure"
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230 $ac_includes_default
19231 #include <windows.h>
19232 _ACEOF
19233 rm -f conftest.$ac_objext
19234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235   (eval $ac_compile) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -s conftest.$ac_objext'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   ac_header_compiler=yes
19246 else
19247   echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ac_header_compiler=no
19251 fi
19252 rm -f conftest.$ac_objext conftest.$ac_ext
19253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19254 echo "${ECHO_T}$ac_header_compiler" >&6
19255
19256 # Is the header present?
19257 echo "$as_me:$LINENO: checking windows.h presence" >&5
19258 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19259 cat >conftest.$ac_ext <<_ACEOF
19260 #line $LINENO "configure"
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 #include <windows.h>
19267 _ACEOF
19268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19270   ac_status=$?
19271   grep -v '^ *+' conftest.er1 >conftest.err
19272   rm -f conftest.er1
19273   cat conftest.err >&5
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); } >/dev/null; then
19276   if test -s conftest.err; then
19277     ac_cpp_err=$ac_c_preproc_warn_flag
19278   else
19279     ac_cpp_err=
19280   fi
19281 else
19282   ac_cpp_err=yes
19283 fi
19284 if test -z "$ac_cpp_err"; then
19285   ac_header_preproc=yes
19286 else
19287   echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290   ac_header_preproc=no
19291 fi
19292 rm -f conftest.err conftest.$ac_ext
19293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19294 echo "${ECHO_T}$ac_header_preproc" >&6
19295
19296 # So?  What about this header?
19297 case $ac_header_compiler:$ac_header_preproc in
19298   yes:no )
19299     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19300 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19301     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19302 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19303     (
19304       cat <<\_ASBOX
19305 ## ------------------------------------ ##
19306 ## Report this to bug-autoconf@gnu.org. ##
19307 ## ------------------------------------ ##
19308 _ASBOX
19309     ) |
19310       sed "s/^/$as_me: WARNING:     /" >&2
19311     ;;
19312   no:yes )
19313     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19314 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19315     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19316 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19317     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19318 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19319     (
19320       cat <<\_ASBOX
19321 ## ------------------------------------ ##
19322 ## Report this to bug-autoconf@gnu.org. ##
19323 ## ------------------------------------ ##
19324 _ASBOX
19325     ) |
19326       sed "s/^/$as_me: WARNING:     /" >&2
19327     ;;
19328 esac
19329 echo "$as_me:$LINENO: checking for windows.h" >&5
19330 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19331 if test "${ac_cv_header_windows_h+set}" = set; then
19332   echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334   ac_cv_header_windows_h=$ac_header_preproc
19335 fi
19336 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19337 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19338
19339 fi
19340 if test $ac_cv_header_windows_h = yes; then
19341   :
19342 else
19343
19344         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19345 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19346    { (exit 1); exit 1; }; }
19347
19348 fi
19349
19350
19351
19352         echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
19353 echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
19354 if test "${wx_cv_w32api_win32_ie+set}" = set; then
19355   echo $ECHO_N "(cached) $ECHO_C" >&6
19356 else
19357
19358       cat >conftest.$ac_ext <<_ACEOF
19359 #line $LINENO "configure"
19360 /* confdefs.h.  */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h.  */
19365 #include <w32api.h>
19366 int
19367 main ()
19368 {
19369
19370                        #define wxCHECK_W32API_VERSION( major, minor ) \
19371                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
19372                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
19373                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
19374
19375                        #if !wxCHECK_W32API_VERSION(1,1)
19376                        #error You need w32api 1.1 or newer
19377                        #endif
19378
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 rm -f conftest.$ac_objext
19384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19385   (eval $ac_compile) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); } &&
19389          { ac_try='test -s conftest.$ac_objext'
19390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391   (eval $ac_try) 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395
19396                         wx_cv_w32api_win32_ie=yes
19397
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402
19403                         wx_cv_w32api_win32_ie=no
19404
19405 fi
19406 rm -f conftest.$ac_objext conftest.$ac_ext
19407
19408 fi
19409 echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
19410 echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
19411     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
19412         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
19413     fi
19414
19415             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
19416
19417     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19418         LIBS="$LIBS -loleacc"
19419     fi
19420
19421     case "${host}" in
19422         *-*-cygwin* )
19423                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
19424             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
19425     esac
19426
19427         if test "$wxUSE_ODBC" = "sys" ; then
19428         wxUSE_ODBC = "yes"
19429     fi
19430     if test "$wxUSE_ODBC" = "yes" ; then
19431         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
19432         cat >>confdefs.h <<\_ACEOF
19433 #define wxUSE_ODBC 1
19434 _ACEOF
19435
19436     fi
19437
19438     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19439     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
19440
19441         WIN32INSTALL=win32install
19442 fi
19443
19444 if test "$USE_DARWIN" = 1; then
19445             if test "$wxUSE_PRECOMP" = "yes"; then
19446         CPPFLAGS="$CPPFLAGS -cpp-precomp"
19447     else
19448         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
19449     fi
19450 fi
19451
19452 if test "$wxUSE_GUI" = "yes"; then
19453     USE_GUI=1
19454
19455     GUI_TK_LIBRARY=
19456
19457     WXGTK12=
19458     WXGTK127=
19459     WXGTK20=
19460
19461     if test "$wxUSE_MSW" = 1 ; then
19462         TOOLKIT=MSW
19463         GUIDIST=MSW_DIST
19464
19465                         LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19466     fi
19467
19468     if test "$wxUSE_GTK" = 1; then
19469         echo "$as_me:$LINENO: checking for GTK+ version" >&5
19470 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
19471
19472         gtk_version_cached=1
19473         if test "${wx_cv_lib_gtk+set}" = set; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476
19477                                                 gtk_version_cached=0
19478                 echo "$as_me:$LINENO: result: " >&5
19479 echo "${ECHO_T}" >&6
19480
19481                                                 GTK_MODULES=
19482                 if test "$wxUSE_THREADS" = "yes"; then
19483                     GTK_MODULES=gthread
19484                 fi
19485
19486                                                 wx_cv_lib_gtk=
19487                 if test "x$wxUSE_GTK2" = "xyes"; then
19488                     # Check whether --enable-gtktest or --disable-gtktest was given.
19489 if test "${enable_gtktest+set}" = set; then
19490   enableval="$enable_gtktest"
19491
19492 else
19493   enable_gtktest=yes
19494 fi;
19495
19496   pkg_config_args=gtk+-2.0
19497   for module in . $GTK_MODULES
19498   do
19499       case "$module" in
19500          gthread)
19501              pkg_config_args="$pkg_config_args gthread-2.0"
19502          ;;
19503       esac
19504   done
19505
19506   no_gtk=""
19507
19508   # Extract the first word of "pkg-config", so it can be a program name with args.
19509 set dummy pkg-config; ac_word=$2
19510 echo "$as_me:$LINENO: checking for $ac_word" >&5
19511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19512 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   case $PKG_CONFIG in
19516   [\\/]* | ?:[\\/]*)
19517   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19518   ;;
19519   *)
19520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19521 for as_dir in $PATH
19522 do
19523   IFS=$as_save_IFS
19524   test -z "$as_dir" && as_dir=.
19525   for ac_exec_ext in '' $ac_executable_extensions; do
19526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19527     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19529     break 2
19530   fi
19531 done
19532 done
19533
19534   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19535   ;;
19536 esac
19537 fi
19538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19539
19540 if test -n "$PKG_CONFIG"; then
19541   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19542 echo "${ECHO_T}$PKG_CONFIG" >&6
19543 else
19544   echo "$as_me:$LINENO: result: no" >&5
19545 echo "${ECHO_T}no" >&6
19546 fi
19547
19548
19549   if test x$PKG_CONFIG != xno ; then
19550     if pkg-config --atleast-pkgconfig-version 0.7 ; then
19551       :
19552     else
19553       echo *** pkg-config too old; version 0.7 or better required.
19554       no_gtk=yes
19555       PKG_CONFIG=no
19556     fi
19557   else
19558     no_gtk=yes
19559   fi
19560
19561   min_gtk_version=2.0.0
19562   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19563 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
19564
19565   if test x$PKG_CONFIG != xno ; then
19566     ## don't try to run the test against uninstalled libtool libs
19567     if $PKG_CONFIG --uninstalled $pkg_config_args; then
19568           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19569           enable_gtktest=no
19570     fi
19571
19572     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19573           :
19574     else
19575           no_gtk=yes
19576     fi
19577   fi
19578
19579   if test x"$no_gtk" = x ; then
19580     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19581     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19582     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19583            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19584     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19585            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19586     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19587            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19588     if test "x$enable_gtktest" = "xyes" ; then
19589       ac_save_CFLAGS="$CFLAGS"
19590       ac_save_LIBS="$LIBS"
19591       CFLAGS="$CFLAGS $GTK_CFLAGS"
19592       LIBS="$GTK_LIBS $LIBS"
19593       rm -f conf.gtktest
19594       if test "$cross_compiling" = yes; then
19595   echo $ac_n "cross compiling; assumed OK... $ac_c"
19596 else
19597   cat >conftest.$ac_ext <<_ACEOF
19598 #line $LINENO "configure"
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604
19605 #include <gtk/gtk.h>
19606 #include <stdio.h>
19607 #include <stdlib.h>
19608
19609 int
19610 main ()
19611 {
19612   int major, minor, micro;
19613   char *tmp_version;
19614
19615   system ("touch conf.gtktest");
19616
19617   /* HP/UX 9 (%@#!) writes to sscanf strings */
19618   tmp_version = g_strdup("$min_gtk_version");
19619   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19620      printf("%s, bad version string\n", "$min_gtk_version");
19621      exit(1);
19622    }
19623
19624   if ((gtk_major_version != $gtk_config_major_version) ||
19625       (gtk_minor_version != $gtk_config_minor_version) ||
19626       (gtk_micro_version != $gtk_config_micro_version))
19627     {
19628       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19629              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19630              gtk_major_version, gtk_minor_version, gtk_micro_version);
19631       printf ("*** was found! If pkg-config was correct, then it is best\n");
19632       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19633       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19634       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19635       printf("*** required on your system.\n");
19636       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19637       printf("*** to point to the correct configuration files\n");
19638     }
19639   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19640            (gtk_minor_version != GTK_MINOR_VERSION) ||
19641            (gtk_micro_version != GTK_MICRO_VERSION))
19642     {
19643       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19644              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19645       printf("*** library (version %d.%d.%d)\n",
19646              gtk_major_version, gtk_minor_version, gtk_micro_version);
19647     }
19648   else
19649     {
19650       if ((gtk_major_version > major) ||
19651         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19652         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19653       {
19654         return 0;
19655        }
19656      else
19657       {
19658         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19659                gtk_major_version, gtk_minor_version, gtk_micro_version);
19660         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19661                major, minor, micro);
19662         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19663         printf("***\n");
19664         printf("*** If you have already installed a sufficiently new version, this error\n");
19665         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19666         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19667         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19668         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19669         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19670         printf("*** so that the correct libraries are found at run-time))\n");
19671       }
19672     }
19673   return 1;
19674 }
19675
19676 _ACEOF
19677 rm -f conftest$ac_exeext
19678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19679   (eval $ac_link) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684   (eval $ac_try) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; }; then
19688   :
19689 else
19690   echo "$as_me: program exited with status $ac_status" >&5
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694 ( exit $ac_status )
19695 no_gtk=yes
19696 fi
19697 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19698 fi
19699        CFLAGS="$ac_save_CFLAGS"
19700        LIBS="$ac_save_LIBS"
19701      fi
19702   fi
19703   if test "x$no_gtk" = x ; then
19704      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19705 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19706      wx_cv_lib_gtk=2.0
19707   else
19708      echo "$as_me:$LINENO: result: no" >&5
19709 echo "${ECHO_T}no" >&6
19710      if test "$PKG_CONFIG" = "no" ; then
19711        echo "*** A new enough version of pkg-config was not found."
19712        echo "*** See http://pkgconfig.sourceforge.net"
19713      else
19714        if test -f conf.gtktest ; then
19715         :
19716        else
19717           echo "*** Could not run GTK+ test program, checking why..."
19718           ac_save_CFLAGS="$CFLAGS"
19719           ac_save_LIBS="$LIBS"
19720           CFLAGS="$CFLAGS $GTK_CFLAGS"
19721           LIBS="$LIBS $GTK_LIBS"
19722           cat >conftest.$ac_ext <<_ACEOF
19723 #line $LINENO "configure"
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729
19730 #include <gtk/gtk.h>
19731 #include <stdio.h>
19732
19733 int
19734 main ()
19735 {
19736  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19737   ;
19738   return 0;
19739 }
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19743   (eval $ac_link) 2>&5
19744   ac_status=$?
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); } &&
19747          { ac_try='test -s conftest$ac_exeext'
19748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749   (eval $ac_try) 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }; }; then
19753    echo "*** The test program compiled, but did not run. This usually means"
19754           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19755           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19756           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19757           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
19758           echo "*** is required on your system"
19759           echo "***"
19760           echo "*** If you have an old version installed, it is best to remove it, although"
19761           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19762 else
19763   echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766  echo "*** The test program failed to compile or link. See the file config.log for the"
19767           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
19768 fi
19769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19770           CFLAGS="$ac_save_CFLAGS"
19771           LIBS="$ac_save_LIBS"
19772        fi
19773      fi
19774      GTK_CFLAGS=""
19775      GTK_LIBS=""
19776      :
19777   fi
19778
19779
19780   rm -f conf.gtktest
19781
19782                 else
19783
19784 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
19785 if test "${with_gtk_prefix+set}" = set; then
19786   withval="$with_gtk_prefix"
19787   gtk_config_prefix="$withval"
19788 else
19789   gtk_config_prefix=""
19790 fi;
19791
19792 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19793 if test "${with_gtk_exec_prefix+set}" = set; then
19794   withval="$with_gtk_exec_prefix"
19795   gtk_config_exec_prefix="$withval"
19796 else
19797   gtk_config_exec_prefix=""
19798 fi;
19799 # Check whether --enable-gtktest or --disable-gtktest was given.
19800 if test "${enable_gtktest+set}" = set; then
19801   enableval="$enable_gtktest"
19802
19803 else
19804   enable_gtktest=yes
19805 fi;
19806
19807   for module in . $GTK_MODULES
19808   do
19809       case "$module" in
19810          gthread)
19811              gtk_config_args="$gtk_config_args gthread"
19812          ;;
19813       esac
19814   done
19815
19816   if test x$gtk_config_exec_prefix != x ; then
19817      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19818      if test x${GTK_CONFIG+set} != xset ; then
19819         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19820      fi
19821   fi
19822   if test x$gtk_config_prefix != x ; then
19823      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19824      if test x${GTK_CONFIG+set} != xset ; then
19825         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19826      fi
19827   fi
19828
19829   # Extract the first word of "gtk-config", so it can be a program name with args.
19830 set dummy gtk-config; ac_word=$2
19831 echo "$as_me:$LINENO: checking for $ac_word" >&5
19832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19833 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   case $GTK_CONFIG in
19837   [\\/]* | ?:[\\/]*)
19838   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19839   ;;
19840   *)
19841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19843 do
19844   IFS=$as_save_IFS
19845   test -z "$as_dir" && as_dir=.
19846   for ac_exec_ext in '' $ac_executable_extensions; do
19847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19848     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19850     break 2
19851   fi
19852 done
19853 done
19854
19855   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19856   ;;
19857 esac
19858 fi
19859 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19860
19861 if test -n "$GTK_CONFIG"; then
19862   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19863 echo "${ECHO_T}$GTK_CONFIG" >&6
19864 else
19865   echo "$as_me:$LINENO: result: no" >&5
19866 echo "${ECHO_T}no" >&6
19867 fi
19868
19869   min_gtk_version=1.2.7
19870   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19871 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
19872   no_gtk=""
19873   if test "$GTK_CONFIG" = "no" ; then
19874     no_gtk=yes
19875   else
19876     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19877     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19878     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19879            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19880     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19881            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19882     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19883            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19884     if test "x$enable_gtktest" = "xyes" ; then
19885       ac_save_CFLAGS="$CFLAGS"
19886       ac_save_LIBS="$LIBS"
19887       CFLAGS="$CFLAGS $GTK_CFLAGS"
19888       LIBS="$GTK_LIBS $LIBS"
19889       rm -f conf.gtktest
19890       if test "$cross_compiling" = yes; then
19891   echo $ac_n "cross compiling; assumed OK... $ac_c"
19892 else
19893   cat >conftest.$ac_ext <<_ACEOF
19894 #line $LINENO "configure"
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900
19901 #include <gtk/gtk.h>
19902 #include <stdio.h>
19903 #include <stdlib.h>
19904
19905 int
19906 main ()
19907 {
19908   int major, minor, micro;
19909   char *tmp_version;
19910
19911   system ("touch conf.gtktest");
19912
19913   /* HP/UX 9 (%@#!) writes to sscanf strings */
19914   tmp_version = g_strdup("$min_gtk_version");
19915   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19916      printf("%s, bad version string\n", "$min_gtk_version");
19917      exit(1);
19918    }
19919
19920   if ((gtk_major_version != $gtk_config_major_version) ||
19921       (gtk_minor_version != $gtk_config_minor_version) ||
19922       (gtk_micro_version != $gtk_config_micro_version))
19923     {
19924       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19925              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19926              gtk_major_version, gtk_minor_version, gtk_micro_version);
19927       printf ("*** was found! If gtk-config was correct, then it is best\n");
19928       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19929       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19930       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19931       printf("*** required on your system.\n");
19932       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19933       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19934       printf("*** before re-running configure\n");
19935     }
19936 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19937   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19938            (gtk_minor_version != GTK_MINOR_VERSION) ||
19939            (gtk_micro_version != GTK_MICRO_VERSION))
19940     {
19941       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19942              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19943       printf("*** library (version %d.%d.%d)\n",
19944              gtk_major_version, gtk_minor_version, gtk_micro_version);
19945     }
19946 #endif /* defined (GTK_MAJOR_VERSION) ... */
19947   else
19948     {
19949       if ((gtk_major_version > major) ||
19950         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19951         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19952       {
19953         return 0;
19954        }
19955      else
19956       {
19957         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19958                gtk_major_version, gtk_minor_version, gtk_micro_version);
19959         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19960                major, minor, micro);
19961         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19962         printf("***\n");
19963         printf("*** If you have already installed a sufficiently new version, this error\n");
19964         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19965         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19966         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19967         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19968         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19969         printf("*** so that the correct libraries are found at run-time))\n");
19970       }
19971     }
19972   return 1;
19973 }
19974
19975 _ACEOF
19976 rm -f conftest$ac_exeext
19977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19978   (eval $ac_link) 2>&5
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; }; then
19987   :
19988 else
19989   echo "$as_me: program exited with status $ac_status" >&5
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 ( exit $ac_status )
19994 no_gtk=yes
19995 fi
19996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19997 fi
19998        CFLAGS="$ac_save_CFLAGS"
19999        LIBS="$ac_save_LIBS"
20000      fi
20001   fi
20002   if test "x$no_gtk" = x ; then
20003      echo "$as_me:$LINENO: result: yes" >&5
20004 echo "${ECHO_T}yes" >&6
20005      wx_cv_lib_gtk=1.2.7
20006   else
20007      echo "$as_me:$LINENO: result: no" >&5
20008 echo "${ECHO_T}no" >&6
20009      if test "$GTK_CONFIG" = "no" ; then
20010        echo "*** The gtk-config script installed by GTK could not be found"
20011        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20012        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20013        echo "*** full path to gtk-config."
20014      else
20015        if test -f conf.gtktest ; then
20016         :
20017        else
20018           echo "*** Could not run GTK test program, checking why..."
20019           CFLAGS="$CFLAGS $GTK_CFLAGS"
20020           LIBS="$LIBS $GTK_LIBS"
20021           cat >conftest.$ac_ext <<_ACEOF
20022 #line $LINENO "configure"
20023 /* confdefs.h.  */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h.  */
20028
20029 #include <gtk/gtk.h>
20030 #include <stdio.h>
20031
20032 int
20033 main ()
20034 {
20035  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20042   (eval $ac_link) 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } &&
20046          { ac_try='test -s conftest$ac_exeext'
20047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048   (eval $ac_try) 2>&5
20049   ac_status=$?
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); }; }; then
20052    echo "*** The test program compiled, but did not run. This usually means"
20053           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20054           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20055           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20056           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20057           echo "*** is required on your system"
20058           echo "***"
20059           echo "*** If you have an old version installed, it is best to remove it, although"
20060           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20061           echo "***"
20062           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20063           echo "*** came with the system with the command"
20064           echo "***"
20065           echo "***    rpm --erase --nodeps gtk gtk-devel"
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070  echo "*** The test program failed to compile or link. See the file config.log for the"
20071           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20072           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20073           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20074 fi
20075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20076           CFLAGS="$ac_save_CFLAGS"
20077           LIBS="$ac_save_LIBS"
20078        fi
20079      fi
20080      GTK_CFLAGS=""
20081      GTK_LIBS=""
20082      :
20083   fi
20084
20085
20086   rm -f conf.gtktest
20087
20088
20089                     if test -z "$wx_cv_lib_gtk"; then
20090
20091 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20092 if test "${with_gtk_prefix+set}" = set; then
20093   withval="$with_gtk_prefix"
20094   gtk_config_prefix="$withval"
20095 else
20096   gtk_config_prefix=""
20097 fi;
20098
20099 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20100 if test "${with_gtk_exec_prefix+set}" = set; then
20101   withval="$with_gtk_exec_prefix"
20102   gtk_config_exec_prefix="$withval"
20103 else
20104   gtk_config_exec_prefix=""
20105 fi;
20106 # Check whether --enable-gtktest or --disable-gtktest was given.
20107 if test "${enable_gtktest+set}" = set; then
20108   enableval="$enable_gtktest"
20109
20110 else
20111   enable_gtktest=yes
20112 fi;
20113
20114   for module in . $GTK_MODULES
20115   do
20116       case "$module" in
20117          gthread)
20118              gtk_config_args="$gtk_config_args gthread"
20119          ;;
20120       esac
20121   done
20122
20123   if test x$gtk_config_exec_prefix != x ; then
20124      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20125      if test x${GTK_CONFIG+set} != xset ; then
20126         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20127      fi
20128   fi
20129   if test x$gtk_config_prefix != x ; then
20130      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20131      if test x${GTK_CONFIG+set} != xset ; then
20132         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20133      fi
20134   fi
20135
20136   # Extract the first word of "gtk-config", so it can be a program name with args.
20137 set dummy gtk-config; ac_word=$2
20138 echo "$as_me:$LINENO: checking for $ac_word" >&5
20139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20140 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   case $GTK_CONFIG in
20144   [\\/]* | ?:[\\/]*)
20145   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20146   ;;
20147   *)
20148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in $PATH
20150 do
20151   IFS=$as_save_IFS
20152   test -z "$as_dir" && as_dir=.
20153   for ac_exec_ext in '' $ac_executable_extensions; do
20154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20155     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20157     break 2
20158   fi
20159 done
20160 done
20161
20162   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20163   ;;
20164 esac
20165 fi
20166 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20167
20168 if test -n "$GTK_CONFIG"; then
20169   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20170 echo "${ECHO_T}$GTK_CONFIG" >&6
20171 else
20172   echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6
20174 fi
20175
20176   min_gtk_version=1.2.3
20177   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20178 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20179   no_gtk=""
20180   if test "$GTK_CONFIG" = "no" ; then
20181     no_gtk=yes
20182   else
20183     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20184     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20185     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20186            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20187     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20188            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20189     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20190            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20191     if test "x$enable_gtktest" = "xyes" ; then
20192       ac_save_CFLAGS="$CFLAGS"
20193       ac_save_LIBS="$LIBS"
20194       CFLAGS="$CFLAGS $GTK_CFLAGS"
20195       LIBS="$GTK_LIBS $LIBS"
20196       rm -f conf.gtktest
20197       if test "$cross_compiling" = yes; then
20198   echo $ac_n "cross compiling; assumed OK... $ac_c"
20199 else
20200   cat >conftest.$ac_ext <<_ACEOF
20201 #line $LINENO "configure"
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207
20208 #include <gtk/gtk.h>
20209 #include <stdio.h>
20210 #include <stdlib.h>
20211
20212 int
20213 main ()
20214 {
20215   int major, minor, micro;
20216   char *tmp_version;
20217
20218   system ("touch conf.gtktest");
20219
20220   /* HP/UX 9 (%@#!) writes to sscanf strings */
20221   tmp_version = g_strdup("$min_gtk_version");
20222   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20223      printf("%s, bad version string\n", "$min_gtk_version");
20224      exit(1);
20225    }
20226
20227   if ((gtk_major_version != $gtk_config_major_version) ||
20228       (gtk_minor_version != $gtk_config_minor_version) ||
20229       (gtk_micro_version != $gtk_config_micro_version))
20230     {
20231       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20232              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20233              gtk_major_version, gtk_minor_version, gtk_micro_version);
20234       printf ("*** was found! If gtk-config was correct, then it is best\n");
20235       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20236       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20237       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20238       printf("*** required on your system.\n");
20239       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20240       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20241       printf("*** before re-running configure\n");
20242     }
20243 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20244   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20245            (gtk_minor_version != GTK_MINOR_VERSION) ||
20246            (gtk_micro_version != GTK_MICRO_VERSION))
20247     {
20248       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20249              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20250       printf("*** library (version %d.%d.%d)\n",
20251              gtk_major_version, gtk_minor_version, gtk_micro_version);
20252     }
20253 #endif /* defined (GTK_MAJOR_VERSION) ... */
20254   else
20255     {
20256       if ((gtk_major_version > major) ||
20257         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20258         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20259       {
20260         return 0;
20261        }
20262      else
20263       {
20264         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20265                gtk_major_version, gtk_minor_version, gtk_micro_version);
20266         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20267                major, minor, micro);
20268         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20269         printf("***\n");
20270         printf("*** If you have already installed a sufficiently new version, this error\n");
20271         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20272         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20273         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20274         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20275         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20276         printf("*** so that the correct libraries are found at run-time))\n");
20277       }
20278     }
20279   return 1;
20280 }
20281
20282 _ACEOF
20283 rm -f conftest$ac_exeext
20284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20285   (eval $ac_link) 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   :
20295 else
20296   echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 ( exit $ac_status )
20301 no_gtk=yes
20302 fi
20303 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20304 fi
20305        CFLAGS="$ac_save_CFLAGS"
20306        LIBS="$ac_save_LIBS"
20307      fi
20308   fi
20309   if test "x$no_gtk" = x ; then
20310      echo "$as_me:$LINENO: result: yes" >&5
20311 echo "${ECHO_T}yes" >&6
20312      wx_cv_lib_gtk=1.2.3
20313   else
20314      echo "$as_me:$LINENO: result: no" >&5
20315 echo "${ECHO_T}no" >&6
20316      if test "$GTK_CONFIG" = "no" ; then
20317        echo "*** The gtk-config script installed by GTK could not be found"
20318        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20319        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20320        echo "*** full path to gtk-config."
20321      else
20322        if test -f conf.gtktest ; then
20323         :
20324        else
20325           echo "*** Could not run GTK test program, checking why..."
20326           CFLAGS="$CFLAGS $GTK_CFLAGS"
20327           LIBS="$LIBS $GTK_LIBS"
20328           cat >conftest.$ac_ext <<_ACEOF
20329 #line $LINENO "configure"
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335
20336 #include <gtk/gtk.h>
20337 #include <stdio.h>
20338
20339 int
20340 main ()
20341 {
20342  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349   (eval $ac_link) 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -s conftest$ac_exeext'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359    echo "*** The test program compiled, but did not run. This usually means"
20360           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20361           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20362           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20363           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20364           echo "*** is required on your system"
20365           echo "***"
20366           echo "*** If you have an old version installed, it is best to remove it, although"
20367           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20368           echo "***"
20369           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20370           echo "*** came with the system with the command"
20371           echo "***"
20372           echo "***    rpm --erase --nodeps gtk gtk-devel"
20373 else
20374   echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377  echo "*** The test program failed to compile or link. See the file config.log for the"
20378           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20379           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20380           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20381 fi
20382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20383           CFLAGS="$ac_save_CFLAGS"
20384           LIBS="$ac_save_LIBS"
20385        fi
20386      fi
20387      GTK_CFLAGS=""
20388      GTK_LIBS=""
20389      :
20390   fi
20391
20392
20393   rm -f conf.gtktest
20394
20395                     fi
20396                 fi
20397
20398                 if test -z "$wx_cv_lib_gtk"; then
20399                                         wx_cv_lib_gtk=none
20400                 else
20401                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
20402                     wx_cv_libs_gtk=$GTK_LIBS
20403                 fi
20404
20405
20406 fi
20407
20408
20409                         if test "$gtk_version_cached" = 1; then
20410             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20411 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
20412         fi
20413
20414         case "$wx_cv_lib_gtk" in
20415             2.0)    WXGTK20=1
20416                     TOOLKIT_VERSION=2
20417                     ;;
20418             1.2.7)  WXGTK127=1
20419                     WXGTK12=1
20420                     ;;
20421             1.2.3)  WXGTK12=1
20422                     ;;
20423             *)      { { echo "$as_me:$LINENO: error:
20424 Please check that gtk-config is in path, the directory
20425 where GTK+ libraries are installed (returned by
20426 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20427 equivalent variable and GTK+ is version 1.2.3 or above.
20428                             " >&5
20429 echo "$as_me: error:
20430 Please check that gtk-config is in path, the directory
20431 where GTK+ libraries are installed (returned by
20432 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20433 equivalent variable and GTK+ is version 1.2.3 or above.
20434                             " >&2;}
20435    { (exit 1); exit 1; }; }
20436                     ;;
20437         esac
20438
20439         if test "$WXGTK20" = 1; then
20440             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20441
20442   succeeded=no
20443
20444   if test -z "$PKG_CONFIG"; then
20445     # Extract the first word of "pkg-config", so it can be a program name with args.
20446 set dummy pkg-config; ac_word=$2
20447 echo "$as_me:$LINENO: checking for $ac_word" >&5
20448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20450   echo $ECHO_N "(cached) $ECHO_C" >&6
20451 else
20452   case $PKG_CONFIG in
20453   [\\/]* | ?:[\\/]*)
20454   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20455   ;;
20456   *)
20457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20458 for as_dir in $PATH
20459 do
20460   IFS=$as_save_IFS
20461   test -z "$as_dir" && as_dir=.
20462   for ac_exec_ext in '' $ac_executable_extensions; do
20463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20464     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20466     break 2
20467   fi
20468 done
20469 done
20470
20471   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20472   ;;
20473 esac
20474 fi
20475 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20476
20477 if test -n "$PKG_CONFIG"; then
20478   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20479 echo "${ECHO_T}$PKG_CONFIG" >&6
20480 else
20481   echo "$as_me:$LINENO: result: no" >&5
20482 echo "${ECHO_T}no" >&6
20483 fi
20484
20485   fi
20486
20487   if test "$PKG_CONFIG" = "no" ; then
20488      echo "*** The pkg-config script could not be found. Make sure it is"
20489      echo "*** in your path, or set the PKG_CONFIG environment variable"
20490      echo "*** to the full path to pkg-config."
20491      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20492   else
20493      PKG_CONFIG_MIN_VERSION=0.9.0
20494      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20495         echo "$as_me:$LINENO: checking for pangoft2" >&5
20496 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
20497
20498         if $PKG_CONFIG --exists "pangoft2" ; then
20499             echo "$as_me:$LINENO: result: yes" >&5
20500 echo "${ECHO_T}yes" >&6
20501             succeeded=yes
20502
20503             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20504 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20505             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20506             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20507 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20508
20509             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20510 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20511             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20512             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20513 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20514         else
20515             PANGOFT2_CFLAGS=""
20516             PANGOFT2_LIBS=""
20517             ## If we have a custom action on failure, don't print errors, but
20518             ## do set a variable so people can do so.
20519             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20520
20521         fi
20522
20523
20524
20525      else
20526         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20527         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20528      fi
20529   fi
20530
20531   if test $succeeded = yes; then
20532
20533                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20534                         LIBS="$LIBS $PANGOFT2_LIBS"
20535
20536   else
20537
20538                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20539 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
20540                         wxUSE_PRINTING_ARCHITECTURE="no"
20541
20542
20543   fi
20544
20545             fi
20546         else
20547             if test "$wxUSE_UNICODE" = "yes"; then
20548                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20549 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
20550                 wxUSE_UNICODE=no
20551             fi
20552         fi
20553
20554                         if test "$USE_DARWIN" != 1; then
20555
20556 for ac_func in poll
20557 do
20558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559 echo "$as_me:$LINENO: checking for $ac_func" >&5
20560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_var+set}\" = set"; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   cat >conftest.$ac_ext <<_ACEOF
20565 #line $LINENO "configure"
20566 /* confdefs.h.  */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h.  */
20571 /* System header to define __stub macros and hopefully few prototypes,
20572     which can conflict with char $ac_func (); below.
20573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20574     <limits.h> exists even on freestanding compilers.  */
20575 #ifdef __STDC__
20576 # include <limits.h>
20577 #else
20578 # include <assert.h>
20579 #endif
20580 /* Override any gcc2 internal prototype to avoid an error.  */
20581 #ifdef __cplusplus
20582 extern "C"
20583 {
20584 #endif
20585 /* We use char because int might match the return type of a gcc2
20586    builtin and then its argument prototype would still apply.  */
20587 char $ac_func ();
20588 /* The GNU C library defines this for functions which it implements
20589     to always fail with ENOSYS.  Some functions are actually named
20590     something starting with __ and the normal name is an alias.  */
20591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20592 choke me
20593 #else
20594 char (*f) () = $ac_func;
20595 #endif
20596 #ifdef __cplusplus
20597 }
20598 #endif
20599
20600 int
20601 main ()
20602 {
20603 return f != $ac_func;
20604   ;
20605   return 0;
20606 }
20607 _ACEOF
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20610   (eval $ac_link) 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } &&
20614          { ac_try='test -s conftest$ac_exeext'
20615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616   (eval $ac_try) 2>&5
20617   ac_status=$?
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); }; }; then
20620   eval "$as_ac_var=yes"
20621 else
20622   echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 eval "$as_ac_var=no"
20626 fi
20627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20628 fi
20629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20631 if test `eval echo '${'$as_ac_var'}'` = yes; then
20632   cat >>confdefs.h <<_ACEOF
20633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20634 _ACEOF
20635
20636 fi
20637 done
20638
20639         fi
20640
20641         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20642         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
20643
20644         AFMINSTALL=afminstall
20645         TOOLKIT=GTK
20646         GUIDIST=GTK_DIST
20647
20648                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20649 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20650 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   ac_check_lib_save_LIBS=$LIBS
20654 LIBS="-lgdk  $LIBS"
20655 cat >conftest.$ac_ext <<_ACEOF
20656 #line $LINENO "configure"
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662
20663 /* Override any gcc2 internal prototype to avoid an error.  */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 /* We use char because int might match the return type of a gcc2
20668    builtin and then its argument prototype would still apply.  */
20669 char gdk_im_open ();
20670 int
20671 main ()
20672 {
20673 gdk_im_open ();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20680   (eval $ac_link) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } &&
20684          { ac_try='test -s conftest$ac_exeext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ac_cv_lib_gdk_gdk_im_open=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ac_cv_lib_gdk_gdk_im_open=no
20696 fi
20697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20698 LIBS=$ac_check_lib_save_LIBS
20699 fi
20700 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20701 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20702 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20703   cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_XIM 1
20705 _ACEOF
20706
20707 fi
20708
20709     fi
20710
20711     if test "$wxUSE_MGL" = 1; then
20712        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20713 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
20714         if test "x$MGL_ROOT" = x ; then
20715             echo "$as_me:$LINENO: result: not found" >&5
20716 echo "${ECHO_T}not found" >&6
20717             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20718 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20719    { (exit 1); exit 1; }; }
20720         else
20721             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20722 echo "${ECHO_T}$MGL_ROOT" >&6
20723         fi
20724
20725         echo "$as_me:$LINENO: checking for libmgl location" >&5
20726 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
20727                         case "${host}" in
20728             *-*-linux* )
20729               if test "x$wxUSE_SHARED" = xyes ; then
20730                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20731               else
20732                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20733               fi
20734               ;;
20735             *-pc-msdosdjgpp )
20736               mgl_os_candidates="dos32/dj2"
20737               ;;
20738             *)
20739               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20740 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20741    { (exit 1); exit 1; }; }
20742         esac
20743
20744         mgl_lib_type=""
20745         mgl_os=""
20746
20747         for mgl_os_i in $mgl_os_candidates ; do
20748             if test "x$mgl_os" = x ; then
20749                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20750                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20751                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20752                         mgl_lib_type=debug
20753                         mgl_os=$mgl_os_i
20754                     fi
20755                 fi
20756                 if test "x$mgl_lib_type" = x ; then
20757                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20758                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20759                         mgl_lib_type=release
20760                         mgl_os=$mgl_os_i
20761                     fi
20762                 fi
20763             fi
20764         done
20765
20766         if test "x$mgl_os" = x ; then
20767             echo "$as_me:$LINENO: result: not found" >&5
20768 echo "${ECHO_T}not found" >&6
20769             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20770 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20771    { (exit 1); exit 1; }; }
20772         fi
20773         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20774 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
20775
20776         wxUSE_UNIVERSAL="yes"
20777
20778         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20779         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20780
20781         AFMINSTALL=afminstall
20782         TOOLKIT=MGL
20783         GUIDIST=MGL_DIST
20784     fi
20785
20786     if test "$wxUSE_MICROWIN" = 1; then
20787         echo "$as_me:$LINENO: checking for MicroWindows" >&5
20788 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
20789         if test "x$MICROWINDOWS" = x ; then
20790             echo "$as_me:$LINENO: result: not found" >&5
20791 echo "${ECHO_T}not found" >&6
20792             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20793 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20794    { (exit 1); exit 1; }; }
20795         else
20796             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20797 echo "${ECHO_T}$MICROWINDOWS" >&6
20798         fi
20799
20800         if test -f $MICROWINDOWS/lib/libmwin.a; then
20801             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20802 echo "${ECHO_T}MicroWindows' libraries found." >&6
20803         else
20804             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20805 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20806    { (exit 1); exit 1; }; }
20807         fi
20808
20809         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20810         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20811
20812         wxUSE_UNIVERSAL="yes"
20813
20814         AFMINSTALL=afminstall
20815         TOOLKIT=MICROWIN
20816         GUIDIST=MICROWIN_DIST
20817
20818         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
20819     fi
20820
20821     if test "$wxUSE_X11" = 1; then
20822                         echo "$as_me:$LINENO: checking for X" >&5
20823 echo $ECHO_N "checking for X... $ECHO_C" >&6
20824
20825
20826 # Check whether --with-x or --without-x was given.
20827 if test "${with_x+set}" = set; then
20828   withval="$with_x"
20829
20830 fi;
20831 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20832 if test "x$with_x" = xno; then
20833   # The user explicitly disabled X.
20834   have_x=disabled
20835 else
20836   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20837     # Both variables are already set.
20838     have_x=yes
20839   else
20840     if test "${ac_cv_have_x+set}" = set; then
20841   echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843   # One or both of the vars are not set, and there is no cached value.
20844 ac_x_includes=no ac_x_libraries=no
20845 rm -fr conftest.dir
20846 if mkdir conftest.dir; then
20847   cd conftest.dir
20848   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20849   cat >Imakefile <<'_ACEOF'
20850 acfindx:
20851         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20852 _ACEOF
20853   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20854     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20855     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20856     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20857     for ac_extension in a so sl; do
20858       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20859          test -f $ac_im_libdir/libX11.$ac_extension; then
20860         ac_im_usrlibdir=$ac_im_libdir; break
20861       fi
20862     done
20863     # Screen out bogus values from the imake configuration.  They are
20864     # bogus both because they are the default anyway, and because
20865     # using them would break gcc on systems where it needs fixed includes.
20866     case $ac_im_incroot in
20867         /usr/include) ;;
20868         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20869     esac
20870     case $ac_im_usrlibdir in
20871         /usr/lib | /lib) ;;
20872         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20873     esac
20874   fi
20875   cd ..
20876   rm -fr conftest.dir
20877 fi
20878
20879 # Standard set of common directories for X headers.
20880 # Check X11 before X11Rn because it is often a symlink to the current release.
20881 ac_x_header_dirs='
20882 /usr/X11/include
20883 /usr/X11R6/include
20884 /usr/X11R5/include
20885 /usr/X11R4/include
20886
20887 /usr/include/X11
20888 /usr/include/X11R6
20889 /usr/include/X11R5
20890 /usr/include/X11R4
20891
20892 /usr/local/X11/include
20893 /usr/local/X11R6/include
20894 /usr/local/X11R5/include
20895 /usr/local/X11R4/include
20896
20897 /usr/local/include/X11
20898 /usr/local/include/X11R6
20899 /usr/local/include/X11R5
20900 /usr/local/include/X11R4
20901
20902 /usr/X386/include
20903 /usr/x386/include
20904 /usr/XFree86/include/X11
20905
20906 /usr/include
20907 /usr/local/include
20908 /usr/unsupported/include
20909 /usr/athena/include
20910 /usr/local/x11r5/include
20911 /usr/lpp/Xamples/include
20912
20913 /usr/openwin/include
20914 /usr/openwin/share/include'
20915
20916 if test "$ac_x_includes" = no; then
20917   # Guess where to find include files, by looking for Intrinsic.h.
20918   # First, try using that file with no special directory specified.
20919   cat >conftest.$ac_ext <<_ACEOF
20920 #line $LINENO "configure"
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926 #include <X11/Intrinsic.h>
20927 _ACEOF
20928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20930   ac_status=$?
20931   grep -v '^ *+' conftest.er1 >conftest.err
20932   rm -f conftest.er1
20933   cat conftest.err >&5
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } >/dev/null; then
20936   if test -s conftest.err; then
20937     ac_cpp_err=$ac_c_preproc_warn_flag
20938   else
20939     ac_cpp_err=
20940   fi
20941 else
20942   ac_cpp_err=yes
20943 fi
20944 if test -z "$ac_cpp_err"; then
20945   # We can compile using X headers with no special include directory.
20946 ac_x_includes=
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951   for ac_dir in $ac_x_header_dirs; do
20952   if test -r "$ac_dir/X11/Intrinsic.h"; then
20953     ac_x_includes=$ac_dir
20954     break
20955   fi
20956 done
20957 fi
20958 rm -f conftest.err conftest.$ac_ext
20959 fi # $ac_x_includes = no
20960
20961 if test "$ac_x_libraries" = no; then
20962   # Check for the libraries.
20963   # See if we find them without any special options.
20964   # Don't add to $LIBS permanently.
20965   ac_save_LIBS=$LIBS
20966   LIBS="-lXt $LIBS"
20967   cat >conftest.$ac_ext <<_ACEOF
20968 #line $LINENO "configure"
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <X11/Intrinsic.h>
20975 int
20976 main ()
20977 {
20978 XtMalloc (0)
20979   ;
20980   return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext conftest$ac_exeext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20985   (eval $ac_link) 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } &&
20989          { ac_try='test -s conftest$ac_exeext'
20990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991   (eval $ac_try) 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; }; then
20995   LIBS=$ac_save_LIBS
20996 # We can link X programs with no special library path.
20997 ac_x_libraries=
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 LIBS=$ac_save_LIBS
21003 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21004 do
21005   # Don't even attempt the hair of trying to link an X program!
21006   for ac_extension in a so sl; do
21007     if test -r $ac_dir/libXt.$ac_extension; then
21008       ac_x_libraries=$ac_dir
21009       break 2
21010     fi
21011   done
21012 done
21013 fi
21014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21015 fi # $ac_x_libraries = no
21016
21017 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21018   # Didn't find X anywhere.  Cache the known absence of X.
21019   ac_cv_have_x="have_x=no"
21020 else
21021   # Record where we found X for the cache.
21022   ac_cv_have_x="have_x=yes \
21023                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21024 fi
21025 fi
21026
21027   fi
21028   eval "$ac_cv_have_x"
21029 fi # $with_x != no
21030
21031 if test "$have_x" != yes; then
21032   echo "$as_me:$LINENO: result: $have_x" >&5
21033 echo "${ECHO_T}$have_x" >&6
21034   no_x=yes
21035 else
21036   # If each of the values was on the command line, it overrides each guess.
21037   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21038   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21039   # Update the cache value to reflect the command line values.
21040   ac_cv_have_x="have_x=yes \
21041                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21042   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21043 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21044 fi
21045
21046 if test "$no_x" = yes; then
21047   # Not all programs may use this symbol, but it does not hurt to define it.
21048
21049 cat >>confdefs.h <<\_ACEOF
21050 #define X_DISPLAY_MISSING 1
21051 _ACEOF
21052
21053   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21054 else
21055   if test -n "$x_includes"; then
21056     X_CFLAGS="$X_CFLAGS -I$x_includes"
21057   fi
21058
21059   # It would also be nice to do this for all -L options, not just this one.
21060   if test -n "$x_libraries"; then
21061     X_LIBS="$X_LIBS -L$x_libraries"
21062     # For Solaris; some versions of Sun CC require a space after -R and
21063     # others require no space.  Words are not sufficient . . . .
21064     case `(uname -sr) 2>/dev/null` in
21065     "SunOS 5"*)
21066       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21067 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21068       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21069       cat >conftest.$ac_ext <<_ACEOF
21070 #line $LINENO "configure"
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076
21077 int
21078 main ()
21079 {
21080
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 rm -f conftest.$ac_objext conftest$ac_exeext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21087   (eval $ac_link) 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); } &&
21091          { ac_try='test -s conftest$ac_exeext'
21092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093   (eval $ac_try) 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; }; then
21097   ac_R_nospace=yes
21098 else
21099   echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ac_R_nospace=no
21103 fi
21104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21105       if test $ac_R_nospace = yes; then
21106         echo "$as_me:$LINENO: result: no" >&5
21107 echo "${ECHO_T}no" >&6
21108         X_LIBS="$X_LIBS -R$x_libraries"
21109       else
21110         LIBS="$ac_xsave_LIBS -R $x_libraries"
21111         cat >conftest.$ac_ext <<_ACEOF
21112 #line $LINENO "configure"
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118
21119 int
21120 main ()
21121 {
21122
21123   ;
21124   return 0;
21125 }
21126 _ACEOF
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21129   (eval $ac_link) 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } &&
21133          { ac_try='test -s conftest$ac_exeext'
21134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135   (eval $ac_try) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); }; }; then
21139   ac_R_space=yes
21140 else
21141   echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144 ac_R_space=no
21145 fi
21146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21147         if test $ac_R_space = yes; then
21148           echo "$as_me:$LINENO: result: yes" >&5
21149 echo "${ECHO_T}yes" >&6
21150           X_LIBS="$X_LIBS -R $x_libraries"
21151         else
21152           echo "$as_me:$LINENO: result: neither works" >&5
21153 echo "${ECHO_T}neither works" >&6
21154         fi
21155       fi
21156       LIBS=$ac_xsave_LIBS
21157     esac
21158   fi
21159
21160   # Check for system-dependent libraries X programs must link with.
21161   # Do this before checking for the system-independent R6 libraries
21162   # (-lICE), since we may need -lsocket or whatever for X linking.
21163
21164   if test "$ISC" = yes; then
21165     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21166   else
21167     # Martyn Johnson says this is needed for Ultrix, if the X
21168     # libraries were built with DECnet support.  And Karl Berry says
21169     # the Alpha needs dnet_stub (dnet does not exist).
21170     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21171     cat >conftest.$ac_ext <<_ACEOF
21172 #line $LINENO "configure"
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178
21179 /* Override any gcc2 internal prototype to avoid an error.  */
21180 #ifdef __cplusplus
21181 extern "C"
21182 #endif
21183 /* We use char because int might match the return type of a gcc2
21184    builtin and then its argument prototype would still apply.  */
21185 char XOpenDisplay ();
21186 int
21187 main ()
21188 {
21189 XOpenDisplay ();
21190   ;
21191   return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest.$ac_objext conftest$ac_exeext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21196   (eval $ac_link) 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } &&
21200          { ac_try='test -s conftest$ac_exeext'
21201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202   (eval $ac_try) 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); }; }; then
21206   :
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21212 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21213 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   ac_check_lib_save_LIBS=$LIBS
21217 LIBS="-ldnet  $LIBS"
21218 cat >conftest.$ac_ext <<_ACEOF
21219 #line $LINENO "configure"
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225
21226 /* Override any gcc2 internal prototype to avoid an error.  */
21227 #ifdef __cplusplus
21228 extern "C"
21229 #endif
21230 /* We use char because int might match the return type of a gcc2
21231    builtin and then its argument prototype would still apply.  */
21232 char dnet_ntoa ();
21233 int
21234 main ()
21235 {
21236 dnet_ntoa ();
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21243   (eval $ac_link) 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); } &&
21247          { ac_try='test -s conftest$ac_exeext'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253   ac_cv_lib_dnet_dnet_ntoa=yes
21254 else
21255   echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21257
21258 ac_cv_lib_dnet_dnet_ntoa=no
21259 fi
21260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21261 LIBS=$ac_check_lib_save_LIBS
21262 fi
21263 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21264 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21265 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21266   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21267 fi
21268
21269     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21270       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21271 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21272 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21273   echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275   ac_check_lib_save_LIBS=$LIBS
21276 LIBS="-ldnet_stub  $LIBS"
21277 cat >conftest.$ac_ext <<_ACEOF
21278 #line $LINENO "configure"
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284
21285 /* Override any gcc2 internal prototype to avoid an error.  */
21286 #ifdef __cplusplus
21287 extern "C"
21288 #endif
21289 /* We use char because int might match the return type of a gcc2
21290    builtin and then its argument prototype would still apply.  */
21291 char dnet_ntoa ();
21292 int
21293 main ()
21294 {
21295 dnet_ntoa ();
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext conftest$ac_exeext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21302   (eval $ac_link) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -s conftest$ac_exeext'
21307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308   (eval $ac_try) 2>&5
21309   ac_status=$?
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); }; }; then
21312   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 ac_cv_lib_dnet_stub_dnet_ntoa=no
21318 fi
21319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21321 fi
21322 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21323 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21324 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21325   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21326 fi
21327
21328     fi
21329 fi
21330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21331     LIBS="$ac_xsave_LIBS"
21332
21333     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21334     # to get the SysV transport functions.
21335     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21336     # needs -lnsl.
21337     # The nsl library prevents programs from opening the X display
21338     # on Irix 5.2, according to T.E. Dickey.
21339     # The functions gethostbyname, getservbyname, and inet_addr are
21340     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21341     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21342 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21343 if test "${ac_cv_func_gethostbyname+set}" = set; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   cat >conftest.$ac_ext <<_ACEOF
21347 #line $LINENO "configure"
21348 /* confdefs.h.  */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h.  */
21353 /* System header to define __stub macros and hopefully few prototypes,
21354     which can conflict with char gethostbyname (); below.
21355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21356     <limits.h> exists even on freestanding compilers.  */
21357 #ifdef __STDC__
21358 # include <limits.h>
21359 #else
21360 # include <assert.h>
21361 #endif
21362 /* Override any gcc2 internal prototype to avoid an error.  */
21363 #ifdef __cplusplus
21364 extern "C"
21365 {
21366 #endif
21367 /* We use char because int might match the return type of a gcc2
21368    builtin and then its argument prototype would still apply.  */
21369 char gethostbyname ();
21370 /* The GNU C library defines this for functions which it implements
21371     to always fail with ENOSYS.  Some functions are actually named
21372     something starting with __ and the normal name is an alias.  */
21373 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21374 choke me
21375 #else
21376 char (*f) () = gethostbyname;
21377 #endif
21378 #ifdef __cplusplus
21379 }
21380 #endif
21381
21382 int
21383 main ()
21384 {
21385 return f != gethostbyname;
21386   ;
21387   return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext conftest$ac_exeext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21392   (eval $ac_link) 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); } &&
21396          { ac_try='test -s conftest$ac_exeext'
21397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398   (eval $ac_try) 2>&5
21399   ac_status=$?
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); }; }; then
21402   ac_cv_func_gethostbyname=yes
21403 else
21404   echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21406
21407 ac_cv_func_gethostbyname=no
21408 fi
21409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21410 fi
21411 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21412 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21413
21414     if test $ac_cv_func_gethostbyname = no; then
21415       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21416 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21417 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21418   echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420   ac_check_lib_save_LIBS=$LIBS
21421 LIBS="-lnsl  $LIBS"
21422 cat >conftest.$ac_ext <<_ACEOF
21423 #line $LINENO "configure"
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429
21430 /* Override any gcc2 internal prototype to avoid an error.  */
21431 #ifdef __cplusplus
21432 extern "C"
21433 #endif
21434 /* We use char because int might match the return type of a gcc2
21435    builtin and then its argument prototype would still apply.  */
21436 char gethostbyname ();
21437 int
21438 main ()
21439 {
21440 gethostbyname ();
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext conftest$ac_exeext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21447   (eval $ac_link) 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); } &&
21451          { ac_try='test -s conftest$ac_exeext'
21452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453   (eval $ac_try) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); }; }; then
21457   ac_cv_lib_nsl_gethostbyname=yes
21458 else
21459   echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 ac_cv_lib_nsl_gethostbyname=no
21463 fi
21464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21465 LIBS=$ac_check_lib_save_LIBS
21466 fi
21467 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21468 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21469 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21470   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21471 fi
21472
21473       if test $ac_cv_lib_nsl_gethostbyname = no; then
21474         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21475 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21476 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   ac_check_lib_save_LIBS=$LIBS
21480 LIBS="-lbsd  $LIBS"
21481 cat >conftest.$ac_ext <<_ACEOF
21482 #line $LINENO "configure"
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488
21489 /* Override any gcc2 internal prototype to avoid an error.  */
21490 #ifdef __cplusplus
21491 extern "C"
21492 #endif
21493 /* We use char because int might match the return type of a gcc2
21494    builtin and then its argument prototype would still apply.  */
21495 char gethostbyname ();
21496 int
21497 main ()
21498 {
21499 gethostbyname ();
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506   (eval $ac_link) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -s conftest$ac_exeext'
21511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512   (eval $ac_try) 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; }; then
21516   ac_cv_lib_bsd_gethostbyname=yes
21517 else
21518   echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 ac_cv_lib_bsd_gethostbyname=no
21522 fi
21523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21524 LIBS=$ac_check_lib_save_LIBS
21525 fi
21526 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21527 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21528 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21529   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21530 fi
21531
21532       fi
21533     fi
21534
21535     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21536     # socket/setsockopt and other routines are undefined under SCO ODT
21537     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21538     # on later versions), says Simon Leinen: it contains gethostby*
21539     # variants that don't use the name server (or something).  -lsocket
21540     # must be given before -lnsl if both are needed.  We assume that
21541     # if connect needs -lnsl, so does gethostbyname.
21542     echo "$as_me:$LINENO: checking for connect" >&5
21543 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21544 if test "${ac_cv_func_connect+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 #line $LINENO "configure"
21549 /* confdefs.h.  */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h.  */
21554 /* System header to define __stub macros and hopefully few prototypes,
21555     which can conflict with char connect (); below.
21556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21557     <limits.h> exists even on freestanding compilers.  */
21558 #ifdef __STDC__
21559 # include <limits.h>
21560 #else
21561 # include <assert.h>
21562 #endif
21563 /* Override any gcc2 internal prototype to avoid an error.  */
21564 #ifdef __cplusplus
21565 extern "C"
21566 {
21567 #endif
21568 /* We use char because int might match the return type of a gcc2
21569    builtin and then its argument prototype would still apply.  */
21570 char connect ();
21571 /* The GNU C library defines this for functions which it implements
21572     to always fail with ENOSYS.  Some functions are actually named
21573     something starting with __ and the normal name is an alias.  */
21574 #if defined (__stub_connect) || defined (__stub___connect)
21575 choke me
21576 #else
21577 char (*f) () = connect;
21578 #endif
21579 #ifdef __cplusplus
21580 }
21581 #endif
21582
21583 int
21584 main ()
21585 {
21586 return f != connect;
21587   ;
21588   return 0;
21589 }
21590 _ACEOF
21591 rm -f conftest.$ac_objext conftest$ac_exeext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21593   (eval $ac_link) 2>&5
21594   ac_status=$?
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } &&
21597          { ac_try='test -s conftest$ac_exeext'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; }; then
21603   ac_cv_func_connect=yes
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608 ac_cv_func_connect=no
21609 fi
21610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21611 fi
21612 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21613 echo "${ECHO_T}$ac_cv_func_connect" >&6
21614
21615     if test $ac_cv_func_connect = no; then
21616       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21617 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21618 if test "${ac_cv_lib_socket_connect+set}" = set; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621   ac_check_lib_save_LIBS=$LIBS
21622 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21623 cat >conftest.$ac_ext <<_ACEOF
21624 #line $LINENO "configure"
21625 /* confdefs.h.  */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h.  */
21630
21631 /* Override any gcc2 internal prototype to avoid an error.  */
21632 #ifdef __cplusplus
21633 extern "C"
21634 #endif
21635 /* We use char because int might match the return type of a gcc2
21636    builtin and then its argument prototype would still apply.  */
21637 char connect ();
21638 int
21639 main ()
21640 {
21641 connect ();
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } &&
21652          { ac_try='test -s conftest$ac_exeext'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   ac_cv_lib_socket_connect=yes
21659 else
21660   echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ac_cv_lib_socket_connect=no
21664 fi
21665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21666 LIBS=$ac_check_lib_save_LIBS
21667 fi
21668 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21669 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21670 if test $ac_cv_lib_socket_connect = yes; then
21671   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21672 fi
21673
21674     fi
21675
21676     # Guillermo Gomez says -lposix is necessary on A/UX.
21677     echo "$as_me:$LINENO: checking for remove" >&5
21678 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21679 if test "${ac_cv_func_remove+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 #line $LINENO "configure"
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689 /* System header to define __stub macros and hopefully few prototypes,
21690     which can conflict with char remove (); below.
21691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692     <limits.h> exists even on freestanding compilers.  */
21693 #ifdef __STDC__
21694 # include <limits.h>
21695 #else
21696 # include <assert.h>
21697 #endif
21698 /* Override any gcc2 internal prototype to avoid an error.  */
21699 #ifdef __cplusplus
21700 extern "C"
21701 {
21702 #endif
21703 /* We use char because int might match the return type of a gcc2
21704    builtin and then its argument prototype would still apply.  */
21705 char remove ();
21706 /* The GNU C library defines this for functions which it implements
21707     to always fail with ENOSYS.  Some functions are actually named
21708     something starting with __ and the normal name is an alias.  */
21709 #if defined (__stub_remove) || defined (__stub___remove)
21710 choke me
21711 #else
21712 char (*f) () = remove;
21713 #endif
21714 #ifdef __cplusplus
21715 }
21716 #endif
21717
21718 int
21719 main ()
21720 {
21721 return f != remove;
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728   (eval $ac_link) 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); } &&
21732          { ac_try='test -s conftest$ac_exeext'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; }; then
21738   ac_cv_func_remove=yes
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_cv_func_remove=no
21744 fi
21745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21746 fi
21747 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21748 echo "${ECHO_T}$ac_cv_func_remove" >&6
21749
21750     if test $ac_cv_func_remove = no; then
21751       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21752 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21753 if test "${ac_cv_lib_posix_remove+set}" = set; then
21754   echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756   ac_check_lib_save_LIBS=$LIBS
21757 LIBS="-lposix  $LIBS"
21758 cat >conftest.$ac_ext <<_ACEOF
21759 #line $LINENO "configure"
21760 /* confdefs.h.  */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h.  */
21765
21766 /* Override any gcc2 internal prototype to avoid an error.  */
21767 #ifdef __cplusplus
21768 extern "C"
21769 #endif
21770 /* We use char because int might match the return type of a gcc2
21771    builtin and then its argument prototype would still apply.  */
21772 char remove ();
21773 int
21774 main ()
21775 {
21776 remove ();
21777   ;
21778   return 0;
21779 }
21780 _ACEOF
21781 rm -f conftest.$ac_objext conftest$ac_exeext
21782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21783   (eval $ac_link) 2>&5
21784   ac_status=$?
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } &&
21787          { ac_try='test -s conftest$ac_exeext'
21788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); }; }; then
21793   ac_cv_lib_posix_remove=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 ac_cv_lib_posix_remove=no
21799 fi
21800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21801 LIBS=$ac_check_lib_save_LIBS
21802 fi
21803 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21804 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21805 if test $ac_cv_lib_posix_remove = yes; then
21806   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21807 fi
21808
21809     fi
21810
21811     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21812     echo "$as_me:$LINENO: checking for shmat" >&5
21813 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21814 if test "${ac_cv_func_shmat+set}" = set; then
21815   echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817   cat >conftest.$ac_ext <<_ACEOF
21818 #line $LINENO "configure"
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 /* System header to define __stub macros and hopefully few prototypes,
21825     which can conflict with char shmat (); below.
21826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21827     <limits.h> exists even on freestanding compilers.  */
21828 #ifdef __STDC__
21829 # include <limits.h>
21830 #else
21831 # include <assert.h>
21832 #endif
21833 /* Override any gcc2 internal prototype to avoid an error.  */
21834 #ifdef __cplusplus
21835 extern "C"
21836 {
21837 #endif
21838 /* We use char because int might match the return type of a gcc2
21839    builtin and then its argument prototype would still apply.  */
21840 char shmat ();
21841 /* The GNU C library defines this for functions which it implements
21842     to always fail with ENOSYS.  Some functions are actually named
21843     something starting with __ and the normal name is an alias.  */
21844 #if defined (__stub_shmat) || defined (__stub___shmat)
21845 choke me
21846 #else
21847 char (*f) () = shmat;
21848 #endif
21849 #ifdef __cplusplus
21850 }
21851 #endif
21852
21853 int
21854 main ()
21855 {
21856 return f != shmat;
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863   (eval $ac_link) 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); } &&
21867          { ac_try='test -s conftest$ac_exeext'
21868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869   (eval $ac_try) 2>&5
21870   ac_status=$?
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); }; }; then
21873   ac_cv_func_shmat=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878 ac_cv_func_shmat=no
21879 fi
21880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21881 fi
21882 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21883 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21884
21885     if test $ac_cv_func_shmat = no; then
21886       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21887 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21888 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21889   echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891   ac_check_lib_save_LIBS=$LIBS
21892 LIBS="-lipc  $LIBS"
21893 cat >conftest.$ac_ext <<_ACEOF
21894 #line $LINENO "configure"
21895 /* confdefs.h.  */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h.  */
21900
21901 /* Override any gcc2 internal prototype to avoid an error.  */
21902 #ifdef __cplusplus
21903 extern "C"
21904 #endif
21905 /* We use char because int might match the return type of a gcc2
21906    builtin and then its argument prototype would still apply.  */
21907 char shmat ();
21908 int
21909 main ()
21910 {
21911 shmat ();
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918   (eval $ac_link) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -s conftest$ac_exeext'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   ac_cv_lib_ipc_shmat=yes
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 ac_cv_lib_ipc_shmat=no
21934 fi
21935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21936 LIBS=$ac_check_lib_save_LIBS
21937 fi
21938 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21939 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21940 if test $ac_cv_lib_ipc_shmat = yes; then
21941   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21942 fi
21943
21944     fi
21945   fi
21946
21947   # Check for libraries that X11R6 Xt/Xaw programs need.
21948   ac_save_LDFLAGS=$LDFLAGS
21949   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21950   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21951   # check for ICE first), but we must link in the order -lSM -lICE or
21952   # we get undefined symbols.  So assume we have SM if we have ICE.
21953   # These have to be linked with before -lX11, unlike the other
21954   # libraries we check for below, so use a different variable.
21955   # John Interrante, Karl Berry
21956   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21957 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21958 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21959   echo $ECHO_N "(cached) $ECHO_C" >&6
21960 else
21961   ac_check_lib_save_LIBS=$LIBS
21962 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21963 cat >conftest.$ac_ext <<_ACEOF
21964 #line $LINENO "configure"
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970
21971 /* Override any gcc2 internal prototype to avoid an error.  */
21972 #ifdef __cplusplus
21973 extern "C"
21974 #endif
21975 /* We use char because int might match the return type of a gcc2
21976    builtin and then its argument prototype would still apply.  */
21977 char IceConnectionNumber ();
21978 int
21979 main ()
21980 {
21981 IceConnectionNumber ();
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext conftest$ac_exeext
21987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21988   (eval $ac_link) 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); } &&
21992          { ac_try='test -s conftest$ac_exeext'
21993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994   (eval $ac_try) 2>&5
21995   ac_status=$?
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); }; }; then
21998   ac_cv_lib_ICE_IceConnectionNumber=yes
21999 else
22000   echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003 ac_cv_lib_ICE_IceConnectionNumber=no
22004 fi
22005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22006 LIBS=$ac_check_lib_save_LIBS
22007 fi
22008 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22009 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22010 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22011   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22012 fi
22013
22014   LDFLAGS=$ac_save_LDFLAGS
22015
22016 fi
22017
22018
22019         if test "$no_x" = "yes"; then
22020           { { echo "$as_me:$LINENO: error: X11 not found" >&5
22021 echo "$as_me: error: X11 not found" >&2;}
22022    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
22023         fi
22024
22025         GUI_TK_LIBRARY="$X_LIBS"
22026         TOOLKIT_INCLUDE="$X_CFLAGS"
22027         AFMINSTALL=afminstall
22028         COMPILED_X_PROGRAM=0
22029
22030         if test "$wxUSE_NANOX" = "yes"; then
22031             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22032 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
22033             if test "x$MICROWIN" = x ; then
22034                 echo "$as_me:$LINENO: result: not found" >&5
22035 echo "${ECHO_T}not found" >&6
22036                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22037 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22038    { (exit 1); exit 1; }; }
22039             else
22040                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22041 echo "${ECHO_T}$MICROWIN" >&6
22042                 cat >>confdefs.h <<\_ACEOF
22043 #define wxUSE_NANOX 1
22044 _ACEOF
22045
22046             fi
22047         fi
22048
22049         xpm_link=
22050         echo "$as_me:$LINENO: checking for Xpm library" >&5
22051 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22052
22053 ac_find_libraries=
22054 for ac_dir in $SEARCH_LIB /usr/lib;
22055   do
22056     for ac_extension in a so sl dylib; do
22057       if test -f "$ac_dir/libXpm.$ac_extension"; then
22058         ac_find_libraries=$ac_dir
22059         break 2
22060       fi
22061     done
22062   done
22063
22064         if test "$ac_find_libraries" != "" ; then
22065
22066   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22067   result=$?
22068   if test $result = 0; then
22069     ac_path_to_link=""
22070   else
22071     ac_path_to_link=" -L$ac_find_libraries"
22072   fi
22073
22074             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22075             xpm_link=" -lXpm"
22076             cat >>confdefs.h <<\_ACEOF
22077 #define wxHAVE_LIB_XPM 1
22078 _ACEOF
22079
22080             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22081 echo "${ECHO_T}found at $ac_find_libraries" >&6
22082         else
22083             cat >conftest.$ac_ext <<_ACEOF
22084 #line $LINENO "configure"
22085 /* confdefs.h.  */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h.  */
22090
22091                     #include <X11/xpm.h>
22092
22093 int
22094 main ()
22095 {
22096
22097                     int version;
22098                     version = XpmLibraryVersion();
22099
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 rm -f conftest.$ac_objext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22106   (eval $ac_compile) 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } &&
22110          { ac_try='test -s conftest.$ac_objext'
22111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; }; then
22116
22117                     xpm_link=" -lXpm"
22118                     cat >>confdefs.h <<\_ACEOF
22119 #define wxHAVE_LIB_XPM 1
22120 _ACEOF
22121
22122                     echo "$as_me:$LINENO: result: found in default search path" >&5
22123 echo "${ECHO_T}found in default search path" >&6
22124                     COMPILED_X_PROGRAM=0
22125
22126 else
22127   echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130
22131                     echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6
22133                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22134 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22135
22136
22137 fi
22138 rm -f conftest.$ac_objext conftest.$ac_ext
22139         fi
22140
22141         echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22142 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22143 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   ac_check_lib_save_LIBS=$LIBS
22147 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
22148 cat >conftest.$ac_ext <<_ACEOF
22149 #line $LINENO "configure"
22150 /* confdefs.h.  */
22151 _ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h.  */
22155
22156 /* Override any gcc2 internal prototype to avoid an error.  */
22157 #ifdef __cplusplus
22158 extern "C"
22159 #endif
22160 /* We use char because int might match the return type of a gcc2
22161    builtin and then its argument prototype would still apply.  */
22162 char XShapeQueryExtension ();
22163 int
22164 main ()
22165 {
22166 XShapeQueryExtension ();
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 rm -f conftest.$ac_objext conftest$ac_exeext
22172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22173   (eval $ac_link) 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); } &&
22177          { ac_try='test -s conftest$ac_exeext'
22178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179   (eval $ac_try) 2>&5
22180   ac_status=$?
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); }; }; then
22183   ac_cv_lib_Xext_XShapeQueryExtension=yes
22184 else
22185   echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188 ac_cv_lib_Xext_XShapeQueryExtension=no
22189 fi
22190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22191 LIBS=$ac_check_lib_save_LIBS
22192 fi
22193 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22194 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22195 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
22196
22197                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22198                       wxHAVE_XEXT_LIB=1
22199
22200 fi
22201
22202
22203         if test "$wxUSE_UNICODE" = "yes"; then
22204
22205   succeeded=no
22206
22207   if test -z "$PKG_CONFIG"; then
22208     # Extract the first word of "pkg-config", so it can be a program name with args.
22209 set dummy pkg-config; ac_word=$2
22210 echo "$as_me:$LINENO: checking for $ac_word" >&5
22211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22212 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   case $PKG_CONFIG in
22216   [\\/]* | ?:[\\/]*)
22217   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22218   ;;
22219   *)
22220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223   IFS=$as_save_IFS
22224   test -z "$as_dir" && as_dir=.
22225   for ac_exec_ext in '' $ac_executable_extensions; do
22226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22229     break 2
22230   fi
22231 done
22232 done
22233
22234   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22235   ;;
22236 esac
22237 fi
22238 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22239
22240 if test -n "$PKG_CONFIG"; then
22241   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22242 echo "${ECHO_T}$PKG_CONFIG" >&6
22243 else
22244   echo "$as_me:$LINENO: result: no" >&5
22245 echo "${ECHO_T}no" >&6
22246 fi
22247
22248   fi
22249
22250   if test "$PKG_CONFIG" = "no" ; then
22251      echo "*** The pkg-config script could not be found. Make sure it is"
22252      echo "*** in your path, or set the PKG_CONFIG environment variable"
22253      echo "*** to the full path to pkg-config."
22254      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22255   else
22256      PKG_CONFIG_MIN_VERSION=0.9.0
22257      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22258         echo "$as_me:$LINENO: checking for pangox" >&5
22259 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
22260
22261         if $PKG_CONFIG --exists "pangox" ; then
22262             echo "$as_me:$LINENO: result: yes" >&5
22263 echo "${ECHO_T}yes" >&6
22264             succeeded=yes
22265
22266             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22267 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
22268             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
22269             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22270 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
22271
22272             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22273 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
22274             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
22275             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22276 echo "${ECHO_T}$PANGOX_LIBS" >&6
22277         else
22278             PANGOX_CFLAGS=""
22279             PANGOX_LIBS=""
22280             ## If we have a custom action on failure, don't print errors, but
22281             ## do set a variable so people can do so.
22282             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
22283
22284         fi
22285
22286
22287
22288      else
22289         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22290         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22291      fi
22292   fi
22293
22294   if test $succeeded = yes; then
22295
22296                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22297                         LIBS="$LIBS $PANGOX_LIBS"
22298
22299   else
22300
22301                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22302 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22303    { (exit 1); exit 1; }; }
22304
22305
22306   fi
22307
22308
22309   succeeded=no
22310
22311   if test -z "$PKG_CONFIG"; then
22312     # Extract the first word of "pkg-config", so it can be a program name with args.
22313 set dummy pkg-config; ac_word=$2
22314 echo "$as_me:$LINENO: checking for $ac_word" >&5
22315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22317   echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319   case $PKG_CONFIG in
22320   [\\/]* | ?:[\\/]*)
22321   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22322   ;;
22323   *)
22324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22326 do
22327   IFS=$as_save_IFS
22328   test -z "$as_dir" && as_dir=.
22329   for ac_exec_ext in '' $ac_executable_extensions; do
22330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22331     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22333     break 2
22334   fi
22335 done
22336 done
22337
22338   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22339   ;;
22340 esac
22341 fi
22342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22343
22344 if test -n "$PKG_CONFIG"; then
22345   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22346 echo "${ECHO_T}$PKG_CONFIG" >&6
22347 else
22348   echo "$as_me:$LINENO: result: no" >&5
22349 echo "${ECHO_T}no" >&6
22350 fi
22351
22352   fi
22353
22354   if test "$PKG_CONFIG" = "no" ; then
22355      echo "*** The pkg-config script could not be found. Make sure it is"
22356      echo "*** in your path, or set the PKG_CONFIG environment variable"
22357      echo "*** to the full path to pkg-config."
22358      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22359   else
22360      PKG_CONFIG_MIN_VERSION=0.9.0
22361      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22362         echo "$as_me:$LINENO: checking for pangoft2" >&5
22363 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22364
22365         if $PKG_CONFIG --exists "pangoft2" ; then
22366             echo "$as_me:$LINENO: result: yes" >&5
22367 echo "${ECHO_T}yes" >&6
22368             succeeded=yes
22369
22370             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22371 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22372             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22373             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22374 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22375
22376             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22377 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22378             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22379             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22380 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22381         else
22382             PANGOFT2_CFLAGS=""
22383             PANGOFT2_LIBS=""
22384             ## If we have a custom action on failure, don't print errors, but
22385             ## do set a variable so people can do so.
22386             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22387
22388         fi
22389
22390
22391
22392      else
22393         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22394         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22395      fi
22396   fi
22397
22398   if test $succeeded = yes; then
22399
22400                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22401                         LIBS="$LIBS $PANGOFT2_LIBS"
22402
22403   else
22404
22405                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22406 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22407                         wxUSE_PRINTING_ARCHITECTURE="no"
22408
22409
22410   fi
22411
22412
22413   succeeded=no
22414
22415   if test -z "$PKG_CONFIG"; then
22416     # Extract the first word of "pkg-config", so it can be a program name with args.
22417 set dummy pkg-config; ac_word=$2
22418 echo "$as_me:$LINENO: checking for $ac_word" >&5
22419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22421   echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423   case $PKG_CONFIG in
22424   [\\/]* | ?:[\\/]*)
22425   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22426   ;;
22427   *)
22428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22429 for as_dir in $PATH
22430 do
22431   IFS=$as_save_IFS
22432   test -z "$as_dir" && as_dir=.
22433   for ac_exec_ext in '' $ac_executable_extensions; do
22434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22435     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22437     break 2
22438   fi
22439 done
22440 done
22441
22442   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22443   ;;
22444 esac
22445 fi
22446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22447
22448 if test -n "$PKG_CONFIG"; then
22449   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22450 echo "${ECHO_T}$PKG_CONFIG" >&6
22451 else
22452   echo "$as_me:$LINENO: result: no" >&5
22453 echo "${ECHO_T}no" >&6
22454 fi
22455
22456   fi
22457
22458   if test "$PKG_CONFIG" = "no" ; then
22459      echo "*** The pkg-config script could not be found. Make sure it is"
22460      echo "*** in your path, or set the PKG_CONFIG environment variable"
22461      echo "*** to the full path to pkg-config."
22462      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22463   else
22464      PKG_CONFIG_MIN_VERSION=0.9.0
22465      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22466         echo "$as_me:$LINENO: checking for pangoxft" >&5
22467 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
22468
22469         if $PKG_CONFIG --exists "pangoxft" ; then
22470             echo "$as_me:$LINENO: result: yes" >&5
22471 echo "${ECHO_T}yes" >&6
22472             succeeded=yes
22473
22474             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22475 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
22476             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
22477             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22478 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
22479
22480             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22481 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
22482             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
22483             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22484 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
22485         else
22486             PANGOXFT_CFLAGS=""
22487             PANGOXFT_LIBS=""
22488             ## If we have a custom action on failure, don't print errors, but
22489             ## do set a variable so people can do so.
22490             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
22491
22492         fi
22493
22494
22495
22496      else
22497         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22498         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22499      fi
22500   fi
22501
22502   if test $succeeded = yes; then
22503
22504                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22505                         LIBS="$LIBS $PANGOXFT_LIBS"
22506
22507   else
22508
22509                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22510 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22511
22512
22513   fi
22514
22515         fi
22516
22517         wxUSE_UNIVERSAL="yes"
22518
22519         if test "$wxUSE_NANOX" = "yes"; then
22520             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
22521             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"
22522             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22523         else
22524             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22525         fi
22526
22527         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22528         TOOLKIT=X11
22529         GUIDIST=X11_DIST
22530     fi
22531
22532     if test "$wxUSE_MOTIF" = 1; then
22533                         if test "$no_x" = yes; then
22534   # Not all programs may use this symbol, but it does not hurt to define it.
22535
22536 cat >>confdefs.h <<\_ACEOF
22537 #define X_DISPLAY_MISSING 1
22538 _ACEOF
22539
22540   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22541 else
22542   if test -n "$x_includes"; then
22543     X_CFLAGS="$X_CFLAGS -I$x_includes"
22544   fi
22545
22546   # It would also be nice to do this for all -L options, not just this one.
22547   if test -n "$x_libraries"; then
22548     X_LIBS="$X_LIBS -L$x_libraries"
22549     # For Solaris; some versions of Sun CC require a space after -R and
22550     # others require no space.  Words are not sufficient . . . .
22551     case `(uname -sr) 2>/dev/null` in
22552     "SunOS 5"*)
22553       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22554 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22555       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22556       cat >conftest.$ac_ext <<_ACEOF
22557 #line $LINENO "configure"
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563
22564 int
22565 main ()
22566 {
22567
22568   ;
22569   return 0;
22570 }
22571 _ACEOF
22572 rm -f conftest.$ac_objext conftest$ac_exeext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574   (eval $ac_link) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } &&
22578          { ac_try='test -s conftest$ac_exeext'
22579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580   (eval $ac_try) 2>&5
22581   ac_status=$?
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); }; }; then
22584   ac_R_nospace=yes
22585 else
22586   echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ac_R_nospace=no
22590 fi
22591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22592       if test $ac_R_nospace = yes; then
22593         echo "$as_me:$LINENO: result: no" >&5
22594 echo "${ECHO_T}no" >&6
22595         X_LIBS="$X_LIBS -R$x_libraries"
22596       else
22597         LIBS="$ac_xsave_LIBS -R $x_libraries"
22598         cat >conftest.$ac_ext <<_ACEOF
22599 #line $LINENO "configure"
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605
22606 int
22607 main ()
22608 {
22609
22610   ;
22611   return 0;
22612 }
22613 _ACEOF
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22616   (eval $ac_link) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); } &&
22620          { ac_try='test -s conftest$ac_exeext'
22621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622   (eval $ac_try) 2>&5
22623   ac_status=$?
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); }; }; then
22626   ac_R_space=yes
22627 else
22628   echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 ac_R_space=no
22632 fi
22633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22634         if test $ac_R_space = yes; then
22635           echo "$as_me:$LINENO: result: yes" >&5
22636 echo "${ECHO_T}yes" >&6
22637           X_LIBS="$X_LIBS -R $x_libraries"
22638         else
22639           echo "$as_me:$LINENO: result: neither works" >&5
22640 echo "${ECHO_T}neither works" >&6
22641         fi
22642       fi
22643       LIBS=$ac_xsave_LIBS
22644     esac
22645   fi
22646
22647   # Check for system-dependent libraries X programs must link with.
22648   # Do this before checking for the system-independent R6 libraries
22649   # (-lICE), since we may need -lsocket or whatever for X linking.
22650
22651   if test "$ISC" = yes; then
22652     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22653   else
22654     # Martyn Johnson says this is needed for Ultrix, if the X
22655     # libraries were built with DECnet support.  And Karl Berry says
22656     # the Alpha needs dnet_stub (dnet does not exist).
22657     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22658     cat >conftest.$ac_ext <<_ACEOF
22659 #line $LINENO "configure"
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665
22666 /* Override any gcc2 internal prototype to avoid an error.  */
22667 #ifdef __cplusplus
22668 extern "C"
22669 #endif
22670 /* We use char because int might match the return type of a gcc2
22671    builtin and then its argument prototype would still apply.  */
22672 char XOpenDisplay ();
22673 int
22674 main ()
22675 {
22676 XOpenDisplay ();
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext conftest$ac_exeext
22682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22683   (eval $ac_link) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); } &&
22687          { ac_try='test -s conftest$ac_exeext'
22688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689   (eval $ac_try) 2>&5
22690   ac_status=$?
22691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692   (exit $ac_status); }; }; then
22693   :
22694 else
22695   echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22699 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22700 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22701   echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703   ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-ldnet  $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22706 #line $LINENO "configure"
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712
22713 /* Override any gcc2 internal prototype to avoid an error.  */
22714 #ifdef __cplusplus
22715 extern "C"
22716 #endif
22717 /* We use char because int might match the return type of a gcc2
22718    builtin and then its argument prototype would still apply.  */
22719 char dnet_ntoa ();
22720 int
22721 main ()
22722 {
22723 dnet_ntoa ();
22724   ;
22725   return 0;
22726 }
22727 _ACEOF
22728 rm -f conftest.$ac_objext conftest$ac_exeext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22730   (eval $ac_link) 2>&5
22731   ac_status=$?
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } &&
22734          { ac_try='test -s conftest$ac_exeext'
22735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736   (eval $ac_try) 2>&5
22737   ac_status=$?
22738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739   (exit $ac_status); }; }; then
22740   ac_cv_lib_dnet_dnet_ntoa=yes
22741 else
22742   echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22744
22745 ac_cv_lib_dnet_dnet_ntoa=no
22746 fi
22747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22748 LIBS=$ac_check_lib_save_LIBS
22749 fi
22750 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22751 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22752 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22753   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22754 fi
22755
22756     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22757       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22758 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22759 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22760   echo $ECHO_N "(cached) $ECHO_C" >&6
22761 else
22762   ac_check_lib_save_LIBS=$LIBS
22763 LIBS="-ldnet_stub  $LIBS"
22764 cat >conftest.$ac_ext <<_ACEOF
22765 #line $LINENO "configure"
22766 /* confdefs.h.  */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h.  */
22771
22772 /* Override any gcc2 internal prototype to avoid an error.  */
22773 #ifdef __cplusplus
22774 extern "C"
22775 #endif
22776 /* We use char because int might match the return type of a gcc2
22777    builtin and then its argument prototype would still apply.  */
22778 char dnet_ntoa ();
22779 int
22780 main ()
22781 {
22782 dnet_ntoa ();
22783   ;
22784   return 0;
22785 }
22786 _ACEOF
22787 rm -f conftest.$ac_objext conftest$ac_exeext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22789   (eval $ac_link) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } &&
22793          { ac_try='test -s conftest$ac_exeext'
22794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795   (eval $ac_try) 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   ac_cv_lib_dnet_stub_dnet_ntoa=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804 ac_cv_lib_dnet_stub_dnet_ntoa=no
22805 fi
22806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22807 LIBS=$ac_check_lib_save_LIBS
22808 fi
22809 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22810 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22811 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22812   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22813 fi
22814
22815     fi
22816 fi
22817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22818     LIBS="$ac_xsave_LIBS"
22819
22820     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22821     # to get the SysV transport functions.
22822     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22823     # needs -lnsl.
22824     # The nsl library prevents programs from opening the X display
22825     # on Irix 5.2, according to T.E. Dickey.
22826     # The functions gethostbyname, getservbyname, and inet_addr are
22827     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22828     echo "$as_me:$LINENO: checking for gethostbyname" >&5
22829 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22830 if test "${ac_cv_func_gethostbyname+set}" = set; then
22831   echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833   cat >conftest.$ac_ext <<_ACEOF
22834 #line $LINENO "configure"
22835 /* confdefs.h.  */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h.  */
22840 /* System header to define __stub macros and hopefully few prototypes,
22841     which can conflict with char gethostbyname (); below.
22842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22843     <limits.h> exists even on freestanding compilers.  */
22844 #ifdef __STDC__
22845 # include <limits.h>
22846 #else
22847 # include <assert.h>
22848 #endif
22849 /* Override any gcc2 internal prototype to avoid an error.  */
22850 #ifdef __cplusplus
22851 extern "C"
22852 {
22853 #endif
22854 /* We use char because int might match the return type of a gcc2
22855    builtin and then its argument prototype would still apply.  */
22856 char gethostbyname ();
22857 /* The GNU C library defines this for functions which it implements
22858     to always fail with ENOSYS.  Some functions are actually named
22859     something starting with __ and the normal name is an alias.  */
22860 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22861 choke me
22862 #else
22863 char (*f) () = gethostbyname;
22864 #endif
22865 #ifdef __cplusplus
22866 }
22867 #endif
22868
22869 int
22870 main ()
22871 {
22872 return f != gethostbyname;
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22879   (eval $ac_link) 2>&5
22880   ac_status=$?
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } &&
22883          { ac_try='test -s conftest$ac_exeext'
22884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885   (eval $ac_try) 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; }; then
22889   ac_cv_func_gethostbyname=yes
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894 ac_cv_func_gethostbyname=no
22895 fi
22896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22897 fi
22898 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22899 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22900
22901     if test $ac_cv_func_gethostbyname = no; then
22902       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22903 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22904 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22905   echo $ECHO_N "(cached) $ECHO_C" >&6
22906 else
22907   ac_check_lib_save_LIBS=$LIBS
22908 LIBS="-lnsl  $LIBS"
22909 cat >conftest.$ac_ext <<_ACEOF
22910 #line $LINENO "configure"
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916
22917 /* Override any gcc2 internal prototype to avoid an error.  */
22918 #ifdef __cplusplus
22919 extern "C"
22920 #endif
22921 /* We use char because int might match the return type of a gcc2
22922    builtin and then its argument prototype would still apply.  */
22923 char gethostbyname ();
22924 int
22925 main ()
22926 {
22927 gethostbyname ();
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22934   (eval $ac_link) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } &&
22938          { ac_try='test -s conftest$ac_exeext'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; }; then
22944   ac_cv_lib_nsl_gethostbyname=yes
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949 ac_cv_lib_nsl_gethostbyname=no
22950 fi
22951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22952 LIBS=$ac_check_lib_save_LIBS
22953 fi
22954 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22955 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22956 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22957   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22958 fi
22959
22960       if test $ac_cv_lib_nsl_gethostbyname = no; then
22961         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22962 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22963 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22964   echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966   ac_check_lib_save_LIBS=$LIBS
22967 LIBS="-lbsd  $LIBS"
22968 cat >conftest.$ac_ext <<_ACEOF
22969 #line $LINENO "configure"
22970 /* confdefs.h.  */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h.  */
22975
22976 /* Override any gcc2 internal prototype to avoid an error.  */
22977 #ifdef __cplusplus
22978 extern "C"
22979 #endif
22980 /* We use char because int might match the return type of a gcc2
22981    builtin and then its argument prototype would still apply.  */
22982 char gethostbyname ();
22983 int
22984 main ()
22985 {
22986 gethostbyname ();
22987   ;
22988   return 0;
22989 }
22990 _ACEOF
22991 rm -f conftest.$ac_objext conftest$ac_exeext
22992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22993   (eval $ac_link) 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } &&
22997          { ac_try='test -s conftest$ac_exeext'
22998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999   (eval $ac_try) 2>&5
23000   ac_status=$?
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); }; }; then
23003   ac_cv_lib_bsd_gethostbyname=yes
23004 else
23005   echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23007
23008 ac_cv_lib_bsd_gethostbyname=no
23009 fi
23010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23011 LIBS=$ac_check_lib_save_LIBS
23012 fi
23013 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23014 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23015 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23016   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23017 fi
23018
23019       fi
23020     fi
23021
23022     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23023     # socket/setsockopt and other routines are undefined under SCO ODT
23024     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23025     # on later versions), says Simon Leinen: it contains gethostby*
23026     # variants that don't use the name server (or something).  -lsocket
23027     # must be given before -lnsl if both are needed.  We assume that
23028     # if connect needs -lnsl, so does gethostbyname.
23029     echo "$as_me:$LINENO: checking for connect" >&5
23030 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23031 if test "${ac_cv_func_connect+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   cat >conftest.$ac_ext <<_ACEOF
23035 #line $LINENO "configure"
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 /* System header to define __stub macros and hopefully few prototypes,
23042     which can conflict with char connect (); below.
23043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23044     <limits.h> exists even on freestanding compilers.  */
23045 #ifdef __STDC__
23046 # include <limits.h>
23047 #else
23048 # include <assert.h>
23049 #endif
23050 /* Override any gcc2 internal prototype to avoid an error.  */
23051 #ifdef __cplusplus
23052 extern "C"
23053 {
23054 #endif
23055 /* We use char because int might match the return type of a gcc2
23056    builtin and then its argument prototype would still apply.  */
23057 char connect ();
23058 /* The GNU C library defines this for functions which it implements
23059     to always fail with ENOSYS.  Some functions are actually named
23060     something starting with __ and the normal name is an alias.  */
23061 #if defined (__stub_connect) || defined (__stub___connect)
23062 choke me
23063 #else
23064 char (*f) () = connect;
23065 #endif
23066 #ifdef __cplusplus
23067 }
23068 #endif
23069
23070 int
23071 main ()
23072 {
23073 return f != connect;
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 rm -f conftest.$ac_objext conftest$ac_exeext
23079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23080   (eval $ac_link) 2>&5
23081   ac_status=$?
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); } &&
23084          { ac_try='test -s conftest$ac_exeext'
23085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086   (eval $ac_try) 2>&5
23087   ac_status=$?
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); }; }; then
23090   ac_cv_func_connect=yes
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095 ac_cv_func_connect=no
23096 fi
23097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23098 fi
23099 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23100 echo "${ECHO_T}$ac_cv_func_connect" >&6
23101
23102     if test $ac_cv_func_connect = no; then
23103       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23104 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23105 if test "${ac_cv_lib_socket_connect+set}" = set; then
23106   echo $ECHO_N "(cached) $ECHO_C" >&6
23107 else
23108   ac_check_lib_save_LIBS=$LIBS
23109 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23110 cat >conftest.$ac_ext <<_ACEOF
23111 #line $LINENO "configure"
23112 /* confdefs.h.  */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h.  */
23117
23118 /* Override any gcc2 internal prototype to avoid an error.  */
23119 #ifdef __cplusplus
23120 extern "C"
23121 #endif
23122 /* We use char because int might match the return type of a gcc2
23123    builtin and then its argument prototype would still apply.  */
23124 char connect ();
23125 int
23126 main ()
23127 {
23128 connect ();
23129   ;
23130   return 0;
23131 }
23132 _ACEOF
23133 rm -f conftest.$ac_objext conftest$ac_exeext
23134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23135   (eval $ac_link) 2>&5
23136   ac_status=$?
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } &&
23139          { ac_try='test -s conftest$ac_exeext'
23140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141   (eval $ac_try) 2>&5
23142   ac_status=$?
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); }; }; then
23145   ac_cv_lib_socket_connect=yes
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150 ac_cv_lib_socket_connect=no
23151 fi
23152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23153 LIBS=$ac_check_lib_save_LIBS
23154 fi
23155 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23156 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23157 if test $ac_cv_lib_socket_connect = yes; then
23158   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23159 fi
23160
23161     fi
23162
23163     # Guillermo Gomez says -lposix is necessary on A/UX.
23164     echo "$as_me:$LINENO: checking for remove" >&5
23165 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23166 if test "${ac_cv_func_remove+set}" = set; then
23167   echo $ECHO_N "(cached) $ECHO_C" >&6
23168 else
23169   cat >conftest.$ac_ext <<_ACEOF
23170 #line $LINENO "configure"
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176 /* System header to define __stub macros and hopefully few prototypes,
23177     which can conflict with char remove (); below.
23178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23179     <limits.h> exists even on freestanding compilers.  */
23180 #ifdef __STDC__
23181 # include <limits.h>
23182 #else
23183 # include <assert.h>
23184 #endif
23185 /* Override any gcc2 internal prototype to avoid an error.  */
23186 #ifdef __cplusplus
23187 extern "C"
23188 {
23189 #endif
23190 /* We use char because int might match the return type of a gcc2
23191    builtin and then its argument prototype would still apply.  */
23192 char remove ();
23193 /* The GNU C library defines this for functions which it implements
23194     to always fail with ENOSYS.  Some functions are actually named
23195     something starting with __ and the normal name is an alias.  */
23196 #if defined (__stub_remove) || defined (__stub___remove)
23197 choke me
23198 #else
23199 char (*f) () = remove;
23200 #endif
23201 #ifdef __cplusplus
23202 }
23203 #endif
23204
23205 int
23206 main ()
23207 {
23208 return f != remove;
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext conftest$ac_exeext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215   (eval $ac_link) 2>&5
23216   ac_status=$?
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } &&
23219          { ac_try='test -s conftest$ac_exeext'
23220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221   (eval $ac_try) 2>&5
23222   ac_status=$?
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); }; }; then
23225   ac_cv_func_remove=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_cv_func_remove=no
23231 fi
23232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23233 fi
23234 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23235 echo "${ECHO_T}$ac_cv_func_remove" >&6
23236
23237     if test $ac_cv_func_remove = no; then
23238       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23239 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23240 if test "${ac_cv_lib_posix_remove+set}" = set; then
23241   echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243   ac_check_lib_save_LIBS=$LIBS
23244 LIBS="-lposix  $LIBS"
23245 cat >conftest.$ac_ext <<_ACEOF
23246 #line $LINENO "configure"
23247 /* confdefs.h.  */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h.  */
23252
23253 /* Override any gcc2 internal prototype to avoid an error.  */
23254 #ifdef __cplusplus
23255 extern "C"
23256 #endif
23257 /* We use char because int might match the return type of a gcc2
23258    builtin and then its argument prototype would still apply.  */
23259 char remove ();
23260 int
23261 main ()
23262 {
23263 remove ();
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23270   (eval $ac_link) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -s conftest$ac_exeext'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; }; then
23280   ac_cv_lib_posix_remove=yes
23281 else
23282   echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 ac_cv_lib_posix_remove=no
23286 fi
23287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23288 LIBS=$ac_check_lib_save_LIBS
23289 fi
23290 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23291 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23292 if test $ac_cv_lib_posix_remove = yes; then
23293   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23294 fi
23295
23296     fi
23297
23298     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23299     echo "$as_me:$LINENO: checking for shmat" >&5
23300 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23301 if test "${ac_cv_func_shmat+set}" = set; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304   cat >conftest.$ac_ext <<_ACEOF
23305 #line $LINENO "configure"
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 /* System header to define __stub macros and hopefully few prototypes,
23312     which can conflict with char shmat (); below.
23313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23314     <limits.h> exists even on freestanding compilers.  */
23315 #ifdef __STDC__
23316 # include <limits.h>
23317 #else
23318 # include <assert.h>
23319 #endif
23320 /* Override any gcc2 internal prototype to avoid an error.  */
23321 #ifdef __cplusplus
23322 extern "C"
23323 {
23324 #endif
23325 /* We use char because int might match the return type of a gcc2
23326    builtin and then its argument prototype would still apply.  */
23327 char shmat ();
23328 /* The GNU C library defines this for functions which it implements
23329     to always fail with ENOSYS.  Some functions are actually named
23330     something starting with __ and the normal name is an alias.  */
23331 #if defined (__stub_shmat) || defined (__stub___shmat)
23332 choke me
23333 #else
23334 char (*f) () = shmat;
23335 #endif
23336 #ifdef __cplusplus
23337 }
23338 #endif
23339
23340 int
23341 main ()
23342 {
23343 return f != shmat;
23344   ;
23345   return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23350   (eval $ac_link) 2>&5
23351   ac_status=$?
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); } &&
23354          { ac_try='test -s conftest$ac_exeext'
23355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356   (eval $ac_try) 2>&5
23357   ac_status=$?
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); }; }; then
23360   ac_cv_func_shmat=yes
23361 else
23362   echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365 ac_cv_func_shmat=no
23366 fi
23367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23368 fi
23369 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23370 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23371
23372     if test $ac_cv_func_shmat = no; then
23373       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23374 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23375 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23376   echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378   ac_check_lib_save_LIBS=$LIBS
23379 LIBS="-lipc  $LIBS"
23380 cat >conftest.$ac_ext <<_ACEOF
23381 #line $LINENO "configure"
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387
23388 /* Override any gcc2 internal prototype to avoid an error.  */
23389 #ifdef __cplusplus
23390 extern "C"
23391 #endif
23392 /* We use char because int might match the return type of a gcc2
23393    builtin and then its argument prototype would still apply.  */
23394 char shmat ();
23395 int
23396 main ()
23397 {
23398 shmat ();
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext conftest$ac_exeext
23404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23405   (eval $ac_link) 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); } &&
23409          { ac_try='test -s conftest$ac_exeext'
23410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411   (eval $ac_try) 2>&5
23412   ac_status=$?
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); }; }; then
23415   ac_cv_lib_ipc_shmat=yes
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420 ac_cv_lib_ipc_shmat=no
23421 fi
23422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23423 LIBS=$ac_check_lib_save_LIBS
23424 fi
23425 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23426 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23427 if test $ac_cv_lib_ipc_shmat = yes; then
23428   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23429 fi
23430
23431     fi
23432   fi
23433
23434   # Check for libraries that X11R6 Xt/Xaw programs need.
23435   ac_save_LDFLAGS=$LDFLAGS
23436   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23437   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23438   # check for ICE first), but we must link in the order -lSM -lICE or
23439   # we get undefined symbols.  So assume we have SM if we have ICE.
23440   # These have to be linked with before -lX11, unlike the other
23441   # libraries we check for below, so use a different variable.
23442   # John Interrante, Karl Berry
23443   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23444 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23445 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   ac_check_lib_save_LIBS=$LIBS
23449 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23450 cat >conftest.$ac_ext <<_ACEOF
23451 #line $LINENO "configure"
23452 /* confdefs.h.  */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h.  */
23457
23458 /* Override any gcc2 internal prototype to avoid an error.  */
23459 #ifdef __cplusplus
23460 extern "C"
23461 #endif
23462 /* We use char because int might match the return type of a gcc2
23463    builtin and then its argument prototype would still apply.  */
23464 char IceConnectionNumber ();
23465 int
23466 main ()
23467 {
23468 IceConnectionNumber ();
23469   ;
23470   return 0;
23471 }
23472 _ACEOF
23473 rm -f conftest.$ac_objext conftest$ac_exeext
23474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23475   (eval $ac_link) 2>&5
23476   ac_status=$?
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); } &&
23479          { ac_try='test -s conftest$ac_exeext'
23480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481   (eval $ac_try) 2>&5
23482   ac_status=$?
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); }; }; then
23485   ac_cv_lib_ICE_IceConnectionNumber=yes
23486 else
23487   echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ac_cv_lib_ICE_IceConnectionNumber=no
23491 fi
23492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23493 LIBS=$ac_check_lib_save_LIBS
23494 fi
23495 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23496 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23497 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23498   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23499 fi
23500
23501   LDFLAGS=$ac_save_LDFLAGS
23502
23503 fi
23504
23505
23506         if test "$no_x" = "yes"; then
23507           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23508 echo "$as_me: error: X11 not found" >&2;}
23509    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23510         fi
23511
23512                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23513         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
23514         AFMINSTALL=afminstall
23515         COMPILED_X_PROGRAM=0
23516
23517         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23518 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23519
23520 ac_find_includes=
23521 for ac_dir in $SEARCH_INCLUDE /usr/include;
23522   do
23523     if test -f "$ac_dir/Xm/Xm.h"; then
23524       ac_find_includes=$ac_dir
23525       break
23526     fi
23527   done
23528
23529         if test "$ac_find_includes" != "" ; then
23530             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23531 echo "${ECHO_T}found in $ac_find_includes" >&6
23532
23533     if test "x$ac_find_includes" = "x/usr/include"; then
23534     ac_path_to_include=""
23535   else
23536     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23537     result=$?
23538     if test $result = 0; then
23539       ac_path_to_include=""
23540     else
23541       ac_path_to_include=" -I$ac_find_includes"
23542     fi
23543   fi
23544
23545             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
23546         else
23547             cat >conftest.$ac_ext <<_ACEOF
23548 #line $LINENO "configure"
23549 /* confdefs.h.  */
23550 _ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h.  */
23554
23555                     #include <Xm/Xm.h>
23556
23557 int
23558 main ()
23559 {
23560
23561                     int version;
23562                     version = xmUseVersion;
23563
23564   ;
23565   return 0;
23566 }
23567 _ACEOF
23568 rm -f conftest.$ac_objext
23569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23570   (eval $ac_compile) 2>&5
23571   ac_status=$?
23572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573   (exit $ac_status); } &&
23574          { ac_try='test -s conftest.$ac_objext'
23575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576   (eval $ac_try) 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; }; then
23580
23581                     echo "$as_me:$LINENO: result: found in default search path" >&5
23582 echo "${ECHO_T}found in default search path" >&6
23583                     COMPILED_X_PROGRAM=1
23584
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589
23590                     echo "$as_me:$LINENO: result: no" >&5
23591 echo "${ECHO_T}no" >&6
23592                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23593 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23594    { (exit 1); exit 1; }; }
23595
23596
23597 fi
23598 rm -f conftest.$ac_objext conftest.$ac_ext
23599         fi
23600
23601         if test "$COMPILED_X_PROGRAM" = 0; then
23602             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23603 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23604
23605 ac_find_libraries=
23606 for ac_dir in $SEARCH_LIB /usr/lib;
23607   do
23608     for ac_extension in a so sl dylib; do
23609       if test -f "$ac_dir/libXm.$ac_extension"; then
23610         ac_find_libraries=$ac_dir
23611         break 2
23612       fi
23613     done
23614   done
23615
23616             if test "$ac_find_libraries" != "" ; then
23617                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23618 echo "${ECHO_T}found at $ac_find_libraries" >&6
23619
23620
23621   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23622   result=$?
23623   if test $result = 0; then
23624     ac_path_to_link=""
23625   else
23626     ac_path_to_link=" -L$ac_find_libraries"
23627   fi
23628
23629                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23630             else
23631                                                                 save_CFLAGS=$CFLAGS
23632                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23633
23634                 cat >conftest.$ac_ext <<_ACEOF
23635 #line $LINENO "configure"
23636 /* confdefs.h.  */
23637 _ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h.  */
23641
23642                         #include <Xm/Xm.h>
23643
23644 int
23645 main ()
23646 {
23647
23648                         int version;
23649                         version = xmUseVersion;
23650
23651   ;
23652   return 0;
23653 }
23654 _ACEOF
23655 rm -f conftest.$ac_objext
23656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23657   (eval $ac_compile) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); } &&
23661          { ac_try='test -s conftest.$ac_objext'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667
23668                         echo "$as_me:$LINENO: result: found in default search path" >&5
23669 echo "${ECHO_T}found in default search path" >&6
23670                         COMPILED_X_PROGRAM=1
23671
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676
23677                         echo "$as_me:$LINENO: result: no" >&5
23678 echo "${ECHO_T}no" >&6
23679                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23680 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23681    { (exit 1); exit 1; }; }
23682
23683
23684 fi
23685 rm -f conftest.$ac_objext conftest.$ac_ext
23686
23687                 CFLAGS=$save_CFLAGS
23688             fi
23689         fi
23690
23691         xpm_link=
23692         echo "$as_me:$LINENO: checking for Xpm library" >&5
23693 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23694
23695 ac_find_libraries=
23696 for ac_dir in $SEARCH_LIB /usr/lib;
23697   do
23698     for ac_extension in a so sl dylib; do
23699       if test -f "$ac_dir/libXpm.$ac_extension"; then
23700         ac_find_libraries=$ac_dir
23701         break 2
23702       fi
23703     done
23704   done
23705
23706         if test "$ac_find_libraries" != "" ; then
23707
23708   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23709   result=$?
23710   if test $result = 0; then
23711     ac_path_to_link=""
23712   else
23713     ac_path_to_link=" -L$ac_find_libraries"
23714   fi
23715
23716             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23717
23718             xpm_link=" -lXpm"
23719             cat >>confdefs.h <<\_ACEOF
23720 #define wxHAVE_LIB_XPM 1
23721 _ACEOF
23722
23723             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23724 echo "${ECHO_T}found at $ac_find_libraries" >&6
23725         else
23726             save_CFLAGS=$CFLAGS
23727             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23728
23729             cat >conftest.$ac_ext <<_ACEOF
23730 #line $LINENO "configure"
23731 /* confdefs.h.  */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h.  */
23736
23737                     #include <X11/xpm.h>
23738
23739 int
23740 main ()
23741 {
23742
23743                     int version;
23744                     version = XpmLibraryVersion();
23745
23746   ;
23747   return 0;
23748 }
23749 _ACEOF
23750 rm -f conftest.$ac_objext
23751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23752   (eval $ac_compile) 2>&5
23753   ac_status=$?
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); } &&
23756          { ac_try='test -s conftest.$ac_objext'
23757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758   (eval $ac_try) 2>&5
23759   ac_status=$?
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); }; }; then
23762
23763                     xpm_link=" -lXpm"
23764                     cat >>confdefs.h <<\_ACEOF
23765 #define wxHAVE_LIB_XPM 1
23766 _ACEOF
23767
23768                     echo "$as_me:$LINENO: result: found in default search path" >&5
23769 echo "${ECHO_T}found in default search path" >&6
23770                     COMPILED_X_PROGRAM=0
23771
23772 else
23773   echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776
23777                     echo "$as_me:$LINENO: result: no" >&5
23778 echo "${ECHO_T}no" >&6
23779                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23780 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23781
23782
23783 fi
23784 rm -f conftest.$ac_objext conftest.$ac_ext
23785
23786             CFLAGS=$save_CFLAGS
23787         fi
23788
23789         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23790 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
23791         libp_link=""
23792         libsm_ice_link=""
23793         libs_found=0
23794         for libp in "" " -lXp"; do
23795             if test "$libs_found" = "0"; then
23796                 for libsm_ice in " -lSM -lICE"; do
23797                     if test "$libs_found" = "0"; then
23798                         save_LIBS="$LIBS"
23799                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
23800                         save_CFLAGS=$CFLAGS
23801                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23802
23803                         cat >conftest.$ac_ext <<_ACEOF
23804 #line $LINENO "configure"
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810
23811                                 #include <Xm/Xm.h>
23812                                 #include <Xm/List.h>
23813
23814 int
23815 main ()
23816 {
23817
23818                                 XmString string = NULL;
23819                                 Widget w = NULL;
23820                                 int position = 0;
23821                                 XmListAddItem(w, string, position);
23822
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829   (eval $ac_link) 2>&5
23830   ac_status=$?
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } &&
23833          { ac_try='test -s conftest$ac_exeext'
23834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835   (eval $ac_try) 2>&5
23836   ac_status=$?
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); }; }; then
23839
23840                                 libp_link="$libp"
23841                                 libsm_ice_link="$libsm_ice"
23842                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23843 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
23844                                 libs_found=1
23845
23846 else
23847   echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850
23851
23852 fi
23853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23854
23855                         LIBS="$save_LIBS"
23856                         CFLAGS=$save_CFLAGS
23857                     fi
23858                 done
23859             fi
23860         done
23861
23862         if test "$libs_found" = "0"; then
23863             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23864 echo "${ECHO_T}can't find the right libraries" >&6
23865             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23866 echo "$as_me: error: can't link a simple motif program" >&2;}
23867    { (exit 1); exit 1; }; }
23868         fi
23869
23870         save_CFLAGS=$CFLAGS
23871         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23872         echo "$as_me:$LINENO: checking for Motif 2" >&5
23873 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23874         cat >conftest.$ac_ext <<_ACEOF
23875 #line $LINENO "configure"
23876 /* confdefs.h.  */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h.  */
23881
23882                         #include <Xm/Xm.h>
23883
23884 int
23885 main ()
23886 {
23887
23888                         #if XmVersion < 2000
23889                         #error "Not Motif 2"
23890                         #endif
23891
23892   ;
23893   return 0;
23894 }
23895 _ACEOF
23896 rm -f conftest.$ac_objext
23897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23898   (eval $ac_compile) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); } &&
23902          { ac_try='test -s conftest.$ac_objext'
23903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904   (eval $ac_try) 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; }; then
23908
23909                         cat >>confdefs.h <<\_ACEOF
23910 #define __WXMOTIF20__ 1
23911 _ACEOF
23912
23913                         echo "$as_me:$LINENO: result: found" >&5
23914 echo "${ECHO_T}found" >&6
23915
23916 else
23917   echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23919
23920
23921                         cat >>confdefs.h <<\_ACEOF
23922 #define __WXMOTIF20__ 0
23923 _ACEOF
23924
23925                         echo "$as_me:$LINENO: result: not found" >&5
23926 echo "${ECHO_T}not found" >&6
23927
23928 fi
23929 rm -f conftest.$ac_objext conftest.$ac_ext
23930         CFLAGS=$save_CFLAGS
23931
23932         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
23933         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
23934         TOOLKIT=MOTIF
23935         GUIDIST=MOTIF_DIST
23936         wxHAVE_XEXT_LIB=1
23937     fi
23938
23939     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23940        test "$wxHAVE_XEXT_LIB" = 1; then
23941         save_CFLAGS="$CFLAGS"
23942         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23943
23944         echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23945 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23946         cat >conftest.$ac_ext <<_ACEOF
23947 #line $LINENO "configure"
23948 /* confdefs.h.  */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h.  */
23953
23954                         #include <X11/Xlib.h>
23955                         #include <X11/extensions/shape.h>
23956
23957 int
23958 main ()
23959 {
23960
23961                         int dummy1, dummy2;
23962                         XShapeQueryExtension((Display*)NULL,
23963                                              (int*)NULL, (int*)NULL);
23964
23965   ;
23966   return 0;
23967 }
23968 _ACEOF
23969 rm -f conftest.$ac_objext
23970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23971   (eval $ac_compile) 2>&5
23972   ac_status=$?
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } &&
23975          { ac_try='test -s conftest.$ac_objext'
23976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977   (eval $ac_try) 2>&5
23978   ac_status=$?
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; }; then
23981
23982                         cat >>confdefs.h <<\_ACEOF
23983 #define HAVE_XSHAPE 1
23984 _ACEOF
23985
23986                         echo "$as_me:$LINENO: result: found" >&5
23987 echo "${ECHO_T}found" >&6
23988
23989 else
23990   echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993
23994                         echo "$as_me:$LINENO: result: not found" >&5
23995 echo "${ECHO_T}not found" >&6
23996
23997 fi
23998 rm -f conftest.$ac_objext conftest.$ac_ext
23999         CFLAGS="$save_CFLAGS"
24000     fi
24001
24002     if test "$wxUSE_MAC" = 1; then
24003         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
24004
24005         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
24006         TOOLKIT=MAC
24007                 GUIDIST=MACX_DIST
24008     fi
24009
24010     if test "$wxUSE_COCOA" = 1; then
24011         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24012         TOOLKIT=COCOA
24013         GUIDIST=COCOA_DIST
24014     fi
24015
24016     if test "$wxUSE_PM" = 1; then
24017         TOOLKIT=PM
24018         GUIDIST=GTK_DIST
24019         { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24020 echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
24021         wxUSE_THREADS="no"
24022     fi
24023
24024         if test "$TOOLKIT" = "PM" ; then
24025         TOOLKIT_DIR="os2"
24026     else
24027         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24028     fi
24029
24030         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24031
24032     if test "$wxUSE_UNIVERSAL" = "yes"; then
24033         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24034
24035                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24036         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24037
24038         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24039         if test "$wxUSE_X11" = 1; then
24040             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24041         else
24042             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24043         fi
24044         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24045         WIDGET_SET=univ
24046     else
24047         ALL_OBJECTS="\$(GUIOBJS)"
24048         ALL_SOURCES="\$(ALL_SOURCES)"
24049         ALL_HEADERS="\$(ALL_HEADERS)"
24050     fi
24051
24052     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24053
24054     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24055         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24056     fi
24057
24058     if test "$wxUSE_HTML" = "yes"; then
24059         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24060     fi
24061
24062     if test "$wxUSE_LIBJPEG" = "builtin" ; then
24063         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24064     fi
24065     if test "$wxUSE_LIBTIFF" = "builtin" ; then
24066         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24067     fi
24068     if test "$wxUSE_LIBPNG" = "builtin" ; then
24069         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24070     fi
24071
24072         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24073     DISTDIR="wx\$(TOOLKIT)"
24074 else
24075     USE_GUI=0
24076
24077             TOOLKIT_DIR="base"
24078
24079         if test "$USE_WIN32" = 1 ; then
24080         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24081         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24082
24083                         TOOLKIT="MSW"
24084     else
24085         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24086         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24087     fi
24088
24089     ALL_SOURCES="\$(ALL_SOURCES)"
24090     ALL_HEADERS="\$(ALL_HEADERS)"
24091
24092     PORT_FILES="\${top_srcdir}/src/files.lst"
24093
24094         GUIDIST="BASE_DIST"
24095     DISTDIR="wxBase"
24096 fi
24097
24098
24099
24100
24101 IODBC_C_SRC=""
24102
24103
24104 if test "$TOOLKIT" != "MSW" ; then
24105
24106     if test "$wxUSE_ODBC" != "no" ; then
24107         cat >>confdefs.h <<\_ACEOF
24108 #define wxUSE_ODBC 1
24109 _ACEOF
24110
24111         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24112
24113                 WXODBCFLAG="-D_IODBC_"
24114
24115
24116         if test "$wxUSE_ODBC" = "sys" ; then
24117
24118             if test "${ac_cv_header_sql_h+set}" = set; then
24119   echo "$as_me:$LINENO: checking for sql.h" >&5
24120 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24121 if test "${ac_cv_header_sql_h+set}" = set; then
24122   echo $ECHO_N "(cached) $ECHO_C" >&6
24123 fi
24124 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24125 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24126 else
24127   # Is the header compilable?
24128 echo "$as_me:$LINENO: checking sql.h usability" >&5
24129 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24130 cat >conftest.$ac_ext <<_ACEOF
24131 #line $LINENO "configure"
24132 /* confdefs.h.  */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h.  */
24137 $ac_includes_default
24138 #include <sql.h>
24139 _ACEOF
24140 rm -f conftest.$ac_objext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24142   (eval $ac_compile) 2>&5
24143   ac_status=$?
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } &&
24146          { ac_try='test -s conftest.$ac_objext'
24147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; }; then
24152   ac_header_compiler=yes
24153 else
24154   echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24156
24157 ac_header_compiler=no
24158 fi
24159 rm -f conftest.$ac_objext conftest.$ac_ext
24160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24161 echo "${ECHO_T}$ac_header_compiler" >&6
24162
24163 # Is the header present?
24164 echo "$as_me:$LINENO: checking sql.h presence" >&5
24165 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24166 cat >conftest.$ac_ext <<_ACEOF
24167 #line $LINENO "configure"
24168 /* confdefs.h.  */
24169 _ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h.  */
24173 #include <sql.h>
24174 _ACEOF
24175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24177   ac_status=$?
24178   grep -v '^ *+' conftest.er1 >conftest.err
24179   rm -f conftest.er1
24180   cat conftest.err >&5
24181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182   (exit $ac_status); } >/dev/null; then
24183   if test -s conftest.err; then
24184     ac_cpp_err=$ac_c_preproc_warn_flag
24185   else
24186     ac_cpp_err=
24187   fi
24188 else
24189   ac_cpp_err=yes
24190 fi
24191 if test -z "$ac_cpp_err"; then
24192   ac_header_preproc=yes
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197   ac_header_preproc=no
24198 fi
24199 rm -f conftest.err conftest.$ac_ext
24200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24201 echo "${ECHO_T}$ac_header_preproc" >&6
24202
24203 # So?  What about this header?
24204 case $ac_header_compiler:$ac_header_preproc in
24205   yes:no )
24206     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24207 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24208     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24209 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24210     (
24211       cat <<\_ASBOX
24212 ## ------------------------------------ ##
24213 ## Report this to bug-autoconf@gnu.org. ##
24214 ## ------------------------------------ ##
24215 _ASBOX
24216     ) |
24217       sed "s/^/$as_me: WARNING:     /" >&2
24218     ;;
24219   no:yes )
24220     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24221 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24222     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24223 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24224     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24225 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24226     (
24227       cat <<\_ASBOX
24228 ## ------------------------------------ ##
24229 ## Report this to bug-autoconf@gnu.org. ##
24230 ## ------------------------------------ ##
24231 _ASBOX
24232     ) |
24233       sed "s/^/$as_me: WARNING:     /" >&2
24234     ;;
24235 esac
24236 echo "$as_me:$LINENO: checking for sql.h" >&5
24237 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24238 if test "${ac_cv_header_sql_h+set}" = set; then
24239   echo $ECHO_N "(cached) $ECHO_C" >&6
24240 else
24241   ac_cv_header_sql_h=$ac_header_preproc
24242 fi
24243 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24244 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24245
24246 fi
24247
24248
24249             echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24250 echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24251 if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24252   echo $ECHO_N "(cached) $ECHO_C" >&6
24253 else
24254   ac_func_search_save_LIBS=$LIBS
24255 ac_cv_search_SQLAllocEnv=no
24256 cat >conftest.$ac_ext <<_ACEOF
24257 #line $LINENO "configure"
24258 /* confdefs.h.  */
24259 _ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h.  */
24263
24264 /* Override any gcc2 internal prototype to avoid an error.  */
24265 #ifdef __cplusplus
24266 extern "C"
24267 #endif
24268 /* We use char because int might match the return type of a gcc2
24269    builtin and then its argument prototype would still apply.  */
24270 char SQLAllocEnv ();
24271 int
24272 main ()
24273 {
24274 SQLAllocEnv ();
24275   ;
24276   return 0;
24277 }
24278 _ACEOF
24279 rm -f conftest.$ac_objext conftest$ac_exeext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281   (eval $ac_link) 2>&5
24282   ac_status=$?
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } &&
24285          { ac_try='test -s conftest$ac_exeext'
24286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24287   (eval $ac_try) 2>&5
24288   ac_status=$?
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); }; }; then
24291   ac_cv_search_SQLAllocEnv="none required"
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 if test "$ac_cv_search_SQLAllocEnv" = no; then
24299   for ac_lib in iodbc unixodbc odbc ; do
24300     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24301     cat >conftest.$ac_ext <<_ACEOF
24302 #line $LINENO "configure"
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308
24309 /* Override any gcc2 internal prototype to avoid an error.  */
24310 #ifdef __cplusplus
24311 extern "C"
24312 #endif
24313 /* We use char because int might match the return type of a gcc2
24314    builtin and then its argument prototype would still apply.  */
24315 char SQLAllocEnv ();
24316 int
24317 main ()
24318 {
24319 SQLAllocEnv ();
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326   (eval $ac_link) 2>&5
24327   ac_status=$?
24328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329   (exit $ac_status); } &&
24330          { ac_try='test -s conftest$ac_exeext'
24331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332   (eval $ac_try) 2>&5
24333   ac_status=$?
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); }; }; then
24336   ac_cv_search_SQLAllocEnv="-l$ac_lib"
24337 break
24338 else
24339   echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 fi
24343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24344   done
24345 fi
24346 LIBS=$ac_func_search_save_LIBS
24347 fi
24348 echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24349 echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24350 if test "$ac_cv_search_SQLAllocEnv" != no; then
24351   test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
24352
24353 else
24354
24355                 wxUSE_ODBC=builtin;
24356                 { echo "$as_me:$LINENO: WARNING:  can't find system Odbc library falling back to builtin " >&5
24357 echo "$as_me: WARNING:  can't find system Odbc library falling back to builtin " >&2;}
24358
24359 fi
24360
24361         fi
24362                 if test "$wxUSE_ODBC" != "sys" ; then
24363             ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
24364         fi
24365
24366     fi
24367
24368 fi
24369
24370 if test "$wxUSE_REGEX" = "builtin" ; then
24371     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
24372 fi
24373 if test "$wxUSE_ZLIB" = "builtin" ; then
24374     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
24375 fi
24376
24377
24378 if test "$wxUSE_OPENGL" = "yes"; then
24379     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
24380         OPENGL_LIBS="-framework OpenGL -framework AGL"
24381     elif test "$wxUSE_MSW" = 1; then
24382         OPENGL_LIBS="-lopengl32 -lglu32"
24383     else
24384
24385
24386 ac_find_includes=
24387 for ac_dir in $SEARCH_INCLUDE /usr/include;
24388   do
24389     if test -f "$ac_dir/GL/gl.h"; then
24390       ac_find_includes=$ac_dir
24391       break
24392     fi
24393   done
24394
24395         if test "$ac_find_includes" != "" ; then
24396             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24397 echo "${ECHO_T}found in $ac_find_includes" >&6
24398             set -x
24399
24400     if test "x$ac_find_includes" = "x/usr/include"; then
24401     ac_path_to_include=""
24402   else
24403     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24404     result=$?
24405     if test $result = 0; then
24406       ac_path_to_include=""
24407     else
24408       ac_path_to_include=" -I$ac_find_includes"
24409     fi
24410   fi
24411
24412             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24413             set +x
24414         fi
24415
24416         if test "${ac_cv_header_GL_gl_h+set}" = set; then
24417   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24418 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24419 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24420   echo $ECHO_N "(cached) $ECHO_C" >&6
24421 fi
24422 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24423 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24424 else
24425   # Is the header compilable?
24426 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24427 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24428 cat >conftest.$ac_ext <<_ACEOF
24429 #line $LINENO "configure"
24430 /* confdefs.h.  */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h.  */
24435 $ac_includes_default
24436 #include <GL/gl.h>
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24440   (eval $ac_compile) 2>&5
24441   ac_status=$?
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); } &&
24444          { ac_try='test -s conftest.$ac_objext'
24445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446   (eval $ac_try) 2>&5
24447   ac_status=$?
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); }; }; then
24450   ac_header_compiler=yes
24451 else
24452   echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455 ac_header_compiler=no
24456 fi
24457 rm -f conftest.$ac_objext conftest.$ac_ext
24458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24459 echo "${ECHO_T}$ac_header_compiler" >&6
24460
24461 # Is the header present?
24462 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24463 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <GL/gl.h>
24472 _ACEOF
24473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24475   ac_status=$?
24476   grep -v '^ *+' conftest.er1 >conftest.err
24477   rm -f conftest.er1
24478   cat conftest.err >&5
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); } >/dev/null; then
24481   if test -s conftest.err; then
24482     ac_cpp_err=$ac_c_preproc_warn_flag
24483   else
24484     ac_cpp_err=
24485   fi
24486 else
24487   ac_cpp_err=yes
24488 fi
24489 if test -z "$ac_cpp_err"; then
24490   ac_header_preproc=yes
24491 else
24492   echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495   ac_header_preproc=no
24496 fi
24497 rm -f conftest.err conftest.$ac_ext
24498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499 echo "${ECHO_T}$ac_header_preproc" >&6
24500
24501 # So?  What about this header?
24502 case $ac_header_compiler:$ac_header_preproc in
24503   yes:no )
24504     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24505 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24506     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24507 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24508     (
24509       cat <<\_ASBOX
24510 ## ------------------------------------ ##
24511 ## Report this to bug-autoconf@gnu.org. ##
24512 ## ------------------------------------ ##
24513 _ASBOX
24514     ) |
24515       sed "s/^/$as_me: WARNING:     /" >&2
24516     ;;
24517   no:yes )
24518     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24519 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24520     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24521 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24522     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24523 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24524     (
24525       cat <<\_ASBOX
24526 ## ------------------------------------ ##
24527 ## Report this to bug-autoconf@gnu.org. ##
24528 ## ------------------------------------ ##
24529 _ASBOX
24530     ) |
24531       sed "s/^/$as_me: WARNING:     /" >&2
24532     ;;
24533 esac
24534 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24535 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24536 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   ac_cv_header_GL_gl_h=$ac_header_preproc
24540 fi
24541 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24542 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24543
24544 fi
24545 if test $ac_cv_header_GL_gl_h = yes; then
24546
24547                 found_gl=0
24548
24549                 echo "$as_me:$LINENO: checking for -lGL" >&5
24550 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24551
24552 ac_find_libraries=
24553 for ac_dir in $SEARCH_LIB /usr/lib;
24554   do
24555     for ac_extension in a so sl dylib; do
24556       if test -f "$ac_dir/libGL.$ac_extension"; then
24557         ac_find_libraries=$ac_dir
24558         break 2
24559       fi
24560     done
24561   done
24562
24563                 if test "$ac_find_libraries" != "" ; then
24564
24565   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24566   result=$?
24567   if test $result = 0; then
24568     ac_path_to_link=""
24569   else
24570     ac_path_to_link=" -L$ac_find_libraries"
24571   fi
24572
24573                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
24574                         LDFLAGS_GL="$ac_path_to_link"
24575                     fi
24576
24577
24578 ac_find_libraries=
24579 for ac_dir in $SEARCH_LIB /usr/lib;
24580   do
24581     for ac_extension in a so sl dylib; do
24582       if test -f "$ac_dir/libGLU.$ac_extension"; then
24583         ac_find_libraries=$ac_dir
24584         break 2
24585       fi
24586     done
24587   done
24588
24589                     if test "$ac_find_libraries" != "" ; then
24590
24591   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24592   result=$?
24593   if test $result = 0; then
24594     ac_path_to_link=""
24595   else
24596     ac_path_to_link=" -L$ac_find_libraries"
24597   fi
24598
24599                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
24600                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
24601                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24602                         fi
24603
24604                         found_gl=1
24605                         OPENGL_LIBS="-lGL -lGLU"
24606                         echo "$as_me:$LINENO: result: yes" >&5
24607 echo "${ECHO_T}yes" >&6
24608                     fi
24609                 fi
24610
24611                 if "$found_gl" != 1; then
24612                     echo "$as_me:$LINENO: result: no" >&5
24613 echo "${ECHO_T}no" >&6
24614                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24615 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24616
24617 ac_find_libraries=
24618 for ac_dir in $SEARCH_LIB /usr/lib;
24619   do
24620     for ac_extension in a so sl dylib; do
24621       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24622         ac_find_libraries=$ac_dir
24623         break 2
24624       fi
24625     done
24626   done
24627
24628                     if test "$ac_find_libraries" != "" ; then
24629
24630   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24631   result=$?
24632   if test $result = 0; then
24633     ac_path_to_link=""
24634   else
24635     ac_path_to_link=" -L$ac_find_libraries"
24636   fi
24637
24638                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24639                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
24640                         echo "$as_me:$LINENO: result: yes" >&5
24641 echo "${ECHO_T}yes" >&6
24642                     else
24643                         echo "$as_me:$LINENO: result: no" >&5
24644 echo "${ECHO_T}no" >&6
24645                     fi
24646                 fi
24647
24648 fi
24649
24650
24651
24652         if test "x$OPENGL_LIBS" = "x"; then
24653                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24654 echo "$as_me: error: OpenGL libraries not available" >&2;}
24655    { (exit 1); exit 1; }; }
24656         fi
24657     fi
24658
24659     if test "$wxUSE_OPENGL" = "yes"; then
24660         cat >>confdefs.h <<\_ACEOF
24661 #define wxUSE_OPENGL 1
24662 _ACEOF
24663
24664         cat >>confdefs.h <<\_ACEOF
24665 #define wxUSE_GLCANVAS 1
24666 _ACEOF
24667
24668         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24669     fi
24670 fi
24671
24672 if test -z "$TOOLKIT_VPATH" ; then
24673     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
24674 fi
24675
24676 if test -n "$TOOLKIT" ; then
24677     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24678 fi
24679
24680 UNICODE=0
24681 lib_unicode_suffix=
24682 if test "$wxUSE_UNICODE" = "yes"; then
24683     lib_unicode_suffix=u
24684     UNICODE=1
24685 fi
24686
24687 lib_debug_suffix=
24688 BUILD=release
24689 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24690     lib_debug_suffix=d
24691     BUILD=debug
24692 fi
24693
24694 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24695
24696 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24697 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
24698
24699 if test "$cross_compiling" = "yes"; then
24700     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24701     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24702 fi
24703
24704 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24705 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
24706 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
24707
24708 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24709 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24710
24711 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24712 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24713 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24714 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24715
24716 case "${host}" in
24717     *-*-cygwin* | *-*-mingw32* )
24718
24719
24720
24721         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
24722             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24723             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24724             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
24725             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
24726         else
24727             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24728             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24729         fi
24730         ;;
24731
24732     *-*-darwin* )
24733
24734         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24735         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24736
24737         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24738         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24739         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24740         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24741
24742                         if test "$wxUSE_MAC" = 1; then
24743                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24744             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
24745         fi
24746         ;;
24747 esac
24748
24749 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24750 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24751
24752 WXCONFIG_LIBS="-l${WX_LIBRARY}"
24753 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24754
24755 if test "$wxUSE_OPENGL" = "yes"; then
24756     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24757     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24758 fi
24759
24760
24761
24762 if test "$wxUSE_SHARED" = "yes"; then
24763     case "${host}" in
24764       *-pc-os2_emx | *-pc-os2-emx | \
24765       *-pc-msdosdjgpp )
24766                 wxUSE_SHARED=no
24767         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24768 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
24769       ;;
24770     esac
24771 fi
24772
24773 SHARED=0
24774 if test "$wxUSE_SHARED" = "yes"; then
24775     SHARED=1
24776
24777         if test "$wxUSE_OPENGL" = "yes"; then
24778         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
24779         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
24780     else
24781         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24782         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
24783     fi
24784
24785         if test "$GCC" = "yes"; then
24786                 PIC_FLAG="-fPIC"
24787     fi
24788
24789
24790
24791   found_versioning=no
24792
24793
24794     if test $found_versioning = no ; then
24795       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24796 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24797 if test "${wx_cv_version_script+set}" = set; then
24798   echo $ECHO_N "(cached) $ECHO_C" >&6
24799 else
24800
24801         echo "VER_1 { *; };" >conftest.sym
24802         echo "int main() { return 0; }" >conftest.cpp
24803
24804         if { ac_try='
24805                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
24806                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808   (eval $ac_try) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; } ; then
24812           if test -s conftest.stderr ; then
24813               wx_cv_version_script=no
24814           else
24815               wx_cv_version_script=yes
24816           fi
24817         else
24818           wx_cv_version_script=no
24819         fi
24820         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
24821
24822 fi
24823 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24824 echo "${ECHO_T}$wx_cv_version_script" >&6
24825       if test $wx_cv_version_script = yes ; then
24826         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
24827       fi
24828   fi
24829
24830
24831         SHARED_LD="${CXX} -shared -o"
24832
24833     case "${host}" in
24834       *-hp-hpux* )
24835                 if test "$GCC" = "yes"; then
24836                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
24837         else
24838                         LDFLAGS="$LDFLAGS -L/usr/lib"
24839
24840             SHARED_LD="${CXX} -b -o"
24841             PIC_FLAG="+Z"
24842         fi
24843
24844                 if test "$wxUSE_OPENGL" = "yes"; then
24845             WX_ALL_INSTALLED="preinstall_gl"
24846             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
24847         else
24848             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24849         fi
24850       ;;
24851
24852       *-*-linux* | *-*-gnu* )
24853         if test "$GCC" != "yes"; then
24854             echo "$as_me:$LINENO: checking for Intel compiler" >&5
24855 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
24856 if test "${wx_cv_prog_icc+set}" = set; then
24857   echo $ECHO_N "(cached) $ECHO_C" >&6
24858 else
24859
24860                 cat >conftest.$ac_ext <<_ACEOF
24861 #line $LINENO "configure"
24862 /* confdefs.h.  */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h.  */
24867
24868 int
24869 main ()
24870 {
24871
24872                         #ifndef __INTEL_COMPILER
24873                         #error Not icc
24874                         #endif
24875
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882   (eval $ac_compile) 2>&5
24883   ac_status=$?
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); } &&
24886          { ac_try='test -s conftest.$ac_objext'
24887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888   (eval $ac_try) 2>&5
24889   ac_status=$?
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); }; }; then
24892   wx_cv_prog_icc=yes
24893 else
24894   echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24896
24897 wx_cv_prog_icc=no
24898
24899 fi
24900 rm -f conftest.$ac_objext conftest.$ac_ext
24901
24902 fi
24903 echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5
24904 echo "${ECHO_T}$wx_cv_prog_icc" >&6
24905             if test "$wx_cv_prog_icc" = "yes"; then
24906                 PIC_FLAG="-KPIC"
24907             fi
24908         fi
24909
24910         if test "$wxUSE_SONAME" = "yes" ; then
24911             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
24912             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
24913                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
24914         fi
24915         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24916       ;;
24917
24918       *-*-solaris2* )
24919         if test "$GCC" = yes ; then
24920                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
24921
24922                                     saveLdflags="$LDFLAGS"
24923             LDFLAGS="$saveLdflags -Wl,-rpath,/"
24924             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24925 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24926             cat >conftest.$ac_ext <<_ACEOF
24927 #line $LINENO "configure"
24928 /* confdefs.h.  */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h.  */
24933
24934 int
24935 main ()
24936 {
24937
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944   (eval $ac_link) 2>&5
24945   ac_status=$?
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } &&
24948          { ac_try='test -s conftest$ac_exeext'
24949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950   (eval $ac_try) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; }; then
24954
24955                     echo "$as_me:$LINENO: result: yes" >&5
24956 echo "${ECHO_T}yes" >&6
24957                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24958
24959 else
24960   echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963
24964                     echo "$as_me:$LINENO: result: no" >&5
24965 echo "${ECHO_T}no" >&6
24966                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24967 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
24968                     LDFLAGS="$saveLdflags -Wl,-R,/"
24969                     cat >conftest.$ac_ext <<_ACEOF
24970 #line $LINENO "configure"
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976
24977 int
24978 main ()
24979 {
24980
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext conftest$ac_exeext
24986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24987   (eval $ac_link) 2>&5
24988   ac_status=$?
24989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990   (exit $ac_status); } &&
24991          { ac_try='test -s conftest$ac_exeext'
24992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993   (eval $ac_try) 2>&5
24994   ac_status=$?
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); }; }; then
24997
24998                              echo "$as_me:$LINENO: result: yes" >&5
24999 echo "${ECHO_T}yes" >&6
25000                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25001 else
25002   echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005
25006                             echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6
25008
25009 fi
25010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25011
25012 fi
25013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25014             LDFLAGS="$saveLdflags"
25015         else
25016             SHARED_LD="${CXX} -G -o"
25017             PIC_FLAG="-KPIC"
25018             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
25019             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
25020             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
25021         fi
25022       ;;
25023
25024       *-*-darwin* )
25025                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
25026         CFLAGS="$CFLAGS -fno-common"
25027         CXXFLAGS="$CXXFLAGS -fno-common"
25028                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
25029         PIC_FLAG="-dynamic -fPIC"
25030                                 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
25031         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
25032       ;;
25033
25034       *-*-aix* )
25035                 if test "$GCC" != "yes"; then
25036                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
25037 set dummy makeC++SharedLib; ac_word=$2
25038 echo "$as_me:$LINENO: checking for $ac_word" >&5
25039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25040 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
25041   echo $ECHO_N "(cached) $ECHO_C" >&6
25042 else
25043   if test -n "$AIX_CXX_LD"; then
25044   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
25045 else
25046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25047 for as_dir in $PATH
25048 do
25049   IFS=$as_save_IFS
25050   test -z "$as_dir" && as_dir=.
25051   for ac_exec_ext in '' $ac_executable_extensions; do
25052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25053     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
25054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25055     break 2
25056   fi
25057 done
25058 done
25059
25060   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
25061 fi
25062 fi
25063 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
25064 if test -n "$AIX_CXX_LD"; then
25065   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
25066 echo "${ECHO_T}$AIX_CXX_LD" >&6
25067 else
25068   echo "$as_me:$LINENO: result: no" >&5
25069 echo "${ECHO_T}no" >&6
25070 fi
25071
25072
25073             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
25074         fi
25075       ;;
25076
25077       *-*-cygwin* | *-*-mingw32* )
25078         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
25079
25080         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
25081         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25082
25083         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
25084
25085                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
25086         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
25087
25088         if test "$wxUSE_OPENGL" = "yes"; then
25089             LIBS="${LIBS} ${OPENGL_LIBS}"
25090         fi
25091       ;;
25092
25093       *-*-beos* )
25094                         SHARED_LD="${LD} -shared -o"
25095       ;;
25096
25097       *-*-irix* )
25098                 if test "$GCC" != "yes"; then
25099             PIC_FLAG="-KPIC"
25100         fi
25101       ;;
25102
25103       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
25104       *-*-sunos4* | \
25105       *-*-osf* | \
25106       *-*-dgux5* | \
25107       *-*-sysv5* )
25108               ;;
25109
25110       *)
25111         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
25112 echo "$as_me: error: unknown system type $host." >&2;}
25113    { (exit 1); exit 1; }; }
25114     esac
25115
25116         if test "x$WX_TARGET_LIBRARY" = "x"; then
25117         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25118         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25119     fi
25120
25121         WX_TARGET_LIBRARY_TYPE="so"
25122     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
25123 fi
25124
25125 if test "$wxUSE_SHARED" = "no"; then
25126
25127         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25128                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25129     fi
25130
25131     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
25132         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25133     fi
25134
25135     if test "$wxUSE_OPENGL" = "yes"; then
25136         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25137         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25138     else
25139         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25140     fi
25141
25142     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25143     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25144
25145     WX_TARGET_LIBRARY_TYPE="a"
25146     INSTALL_LIBRARY='$(INSTALL_DATA)'
25147
25148             STATIC_FLAG="yes"
25149 else
25150     STATIC_FLAG="no"
25151 fi
25152
25153 MACRESCOMP="@#"
25154 MACSETFILE="@#"
25155 MACRESWXCONFIG="#"
25156 if test "$wxUSE_MAC" = 1; then
25157         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
25158     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25159     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25160     # Extract the first word of "Rez", so it can be a program name with args.
25161 set dummy Rez; ac_word=$2
25162 echo "$as_me:$LINENO: checking for $ac_word" >&5
25163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25164 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25165   echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167   if test -n "$RESCOMP"; then
25168   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25169 else
25170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171 for as_dir in $PATH
25172 do
25173   IFS=$as_save_IFS
25174   test -z "$as_dir" && as_dir=.
25175   for ac_exec_ext in '' $ac_executable_extensions; do
25176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25177     ac_cv_prog_RESCOMP="Rez"
25178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25179     break 2
25180   fi
25181 done
25182 done
25183
25184   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25185 fi
25186 fi
25187 RESCOMP=$ac_cv_prog_RESCOMP
25188 if test -n "$RESCOMP"; then
25189   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25190 echo "${ECHO_T}$RESCOMP" >&6
25191 else
25192   echo "$as_me:$LINENO: result: no" >&5
25193 echo "${ECHO_T}no" >&6
25194 fi
25195
25196     # Extract the first word of "DeRez", so it can be a program name with args.
25197 set dummy DeRez; ac_word=$2
25198 echo "$as_me:$LINENO: checking for $ac_word" >&5
25199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25200 if test "${ac_cv_prog_DEREZ+set}" = set; then
25201   echo $ECHO_N "(cached) $ECHO_C" >&6
25202 else
25203   if test -n "$DEREZ"; then
25204   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25205 else
25206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25207 for as_dir in $PATH
25208 do
25209   IFS=$as_save_IFS
25210   test -z "$as_dir" && as_dir=.
25211   for ac_exec_ext in '' $ac_executable_extensions; do
25212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25213     ac_cv_prog_DEREZ="DeRez"
25214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25215     break 2
25216   fi
25217 done
25218 done
25219
25220   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25221 fi
25222 fi
25223 DEREZ=$ac_cv_prog_DEREZ
25224 if test -n "$DEREZ"; then
25225   echo "$as_me:$LINENO: result: $DEREZ" >&5
25226 echo "${ECHO_T}$DEREZ" >&6
25227 else
25228   echo "$as_me:$LINENO: result: no" >&5
25229 echo "${ECHO_T}no" >&6
25230 fi
25231
25232     # Extract the first word of "SetFile", so it can be a program name with args.
25233 set dummy SetFile; ac_word=$2
25234 echo "$as_me:$LINENO: checking for $ac_word" >&5
25235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25236 if test "${ac_cv_prog_SETFILE+set}" = set; then
25237   echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239   if test -n "$SETFILE"; then
25240   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25241 else
25242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25243 for as_dir in $PATH
25244 do
25245   IFS=$as_save_IFS
25246   test -z "$as_dir" && as_dir=.
25247   for ac_exec_ext in '' $ac_executable_extensions; do
25248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25249     ac_cv_prog_SETFILE="SetFile"
25250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25251     break 2
25252   fi
25253 done
25254 done
25255
25256   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25257 fi
25258 fi
25259 SETFILE=$ac_cv_prog_SETFILE
25260 if test -n "$SETFILE"; then
25261   echo "$as_me:$LINENO: result: $SETFILE" >&5
25262 echo "${ECHO_T}$SETFILE" >&6
25263 else
25264   echo "$as_me:$LINENO: result: no" >&5
25265 echo "${ECHO_T}no" >&6
25266 fi
25267
25268     MACOSX_BUNDLE="bundle"
25269             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25270     MACSETFILE="\$(SETFILE)"
25271     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25272 elif test "$wxUSE_COCOA" = 1; then
25273     # Extract the first word of "Rez", so it can be a program name with args.
25274 set dummy Rez; ac_word=$2
25275 echo "$as_me:$LINENO: checking for $ac_word" >&5
25276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25277 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25278   echo $ECHO_N "(cached) $ECHO_C" >&6
25279 else
25280   if test -n "$RESCOMP"; then
25281   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25282 else
25283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25284 for as_dir in $PATH
25285 do
25286   IFS=$as_save_IFS
25287   test -z "$as_dir" && as_dir=.
25288   for ac_exec_ext in '' $ac_executable_extensions; do
25289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25290     ac_cv_prog_RESCOMP="Rez"
25291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25292     break 2
25293   fi
25294 done
25295 done
25296
25297   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25298 fi
25299 fi
25300 RESCOMP=$ac_cv_prog_RESCOMP
25301 if test -n "$RESCOMP"; then
25302   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25303 echo "${ECHO_T}$RESCOMP" >&6
25304 else
25305   echo "$as_me:$LINENO: result: no" >&5
25306 echo "${ECHO_T}no" >&6
25307 fi
25308
25309     # Extract the first word of "DeRez", so it can be a program name with args.
25310 set dummy DeRez; ac_word=$2
25311 echo "$as_me:$LINENO: checking for $ac_word" >&5
25312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25313 if test "${ac_cv_prog_DEREZ+set}" = set; then
25314   echo $ECHO_N "(cached) $ECHO_C" >&6
25315 else
25316   if test -n "$DEREZ"; then
25317   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25318 else
25319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25320 for as_dir in $PATH
25321 do
25322   IFS=$as_save_IFS
25323   test -z "$as_dir" && as_dir=.
25324   for ac_exec_ext in '' $ac_executable_extensions; do
25325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25326     ac_cv_prog_DEREZ="DeRez"
25327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25328     break 2
25329   fi
25330 done
25331 done
25332
25333   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25334 fi
25335 fi
25336 DEREZ=$ac_cv_prog_DEREZ
25337 if test -n "$DEREZ"; then
25338   echo "$as_me:$LINENO: result: $DEREZ" >&5
25339 echo "${ECHO_T}$DEREZ" >&6
25340 else
25341   echo "$as_me:$LINENO: result: no" >&5
25342 echo "${ECHO_T}no" >&6
25343 fi
25344
25345     # Extract the first word of "SetFile", so it can be a program name with args.
25346 set dummy SetFile; ac_word=$2
25347 echo "$as_me:$LINENO: checking for $ac_word" >&5
25348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25349 if test "${ac_cv_prog_SETFILE+set}" = set; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25351 else
25352   if test -n "$SETFILE"; then
25353   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25354 else
25355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25356 for as_dir in $PATH
25357 do
25358   IFS=$as_save_IFS
25359   test -z "$as_dir" && as_dir=.
25360   for ac_exec_ext in '' $ac_executable_extensions; do
25361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25362     ac_cv_prog_SETFILE="SetFile"
25363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25364     break 2
25365   fi
25366 done
25367 done
25368
25369   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25370 fi
25371 fi
25372 SETFILE=$ac_cv_prog_SETFILE
25373 if test -n "$SETFILE"; then
25374   echo "$as_me:$LINENO: result: $SETFILE" >&5
25375 echo "${ECHO_T}$SETFILE" >&6
25376 else
25377   echo "$as_me:$LINENO: result: no" >&5
25378 echo "${ECHO_T}no" >&6
25379 fi
25380
25381     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25382     MACSETFILE="\$(SETFILE)"
25383     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25384 else
25385     if test "$wxUSE_PM" = 1; then
25386         MACRESCOMP="emxbind -ep"
25387     fi
25388 fi
25389
25390
25391 echo "$as_me:$LINENO: checking for mode_t" >&5
25392 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25393 if test "${ac_cv_type_mode_t+set}" = set; then
25394   echo $ECHO_N "(cached) $ECHO_C" >&6
25395 else
25396   cat >conftest.$ac_ext <<_ACEOF
25397 #line $LINENO "configure"
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 $ac_includes_default
25404 int
25405 main ()
25406 {
25407 if ((mode_t *) 0)
25408   return 0;
25409 if (sizeof (mode_t))
25410   return 0;
25411   ;
25412   return 0;
25413 }
25414 _ACEOF
25415 rm -f conftest.$ac_objext
25416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25417   (eval $ac_compile) 2>&5
25418   ac_status=$?
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); } &&
25421          { ac_try='test -s conftest.$ac_objext'
25422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423   (eval $ac_try) 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; }; then
25427   ac_cv_type_mode_t=yes
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432 ac_cv_type_mode_t=no
25433 fi
25434 rm -f conftest.$ac_objext conftest.$ac_ext
25435 fi
25436 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25437 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25438 if test $ac_cv_type_mode_t = yes; then
25439   :
25440 else
25441
25442 cat >>confdefs.h <<_ACEOF
25443 #define mode_t int
25444 _ACEOF
25445
25446 fi
25447
25448 echo "$as_me:$LINENO: checking for off_t" >&5
25449 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25450 if test "${ac_cv_type_off_t+set}" = set; then
25451   echo $ECHO_N "(cached) $ECHO_C" >&6
25452 else
25453   cat >conftest.$ac_ext <<_ACEOF
25454 #line $LINENO "configure"
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460 $ac_includes_default
25461 int
25462 main ()
25463 {
25464 if ((off_t *) 0)
25465   return 0;
25466 if (sizeof (off_t))
25467   return 0;
25468   ;
25469   return 0;
25470 }
25471 _ACEOF
25472 rm -f conftest.$ac_objext
25473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25474   (eval $ac_compile) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } &&
25478          { ac_try='test -s conftest.$ac_objext'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; }; then
25484   ac_cv_type_off_t=yes
25485 else
25486   echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25488
25489 ac_cv_type_off_t=no
25490 fi
25491 rm -f conftest.$ac_objext conftest.$ac_ext
25492 fi
25493 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25494 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25495 if test $ac_cv_type_off_t = yes; then
25496   :
25497 else
25498
25499 cat >>confdefs.h <<_ACEOF
25500 #define off_t long
25501 _ACEOF
25502
25503 fi
25504
25505 echo "$as_me:$LINENO: checking for pid_t" >&5
25506 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25507 if test "${ac_cv_type_pid_t+set}" = set; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510   cat >conftest.$ac_ext <<_ACEOF
25511 #line $LINENO "configure"
25512 /* confdefs.h.  */
25513 _ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h.  */
25517 $ac_includes_default
25518 int
25519 main ()
25520 {
25521 if ((pid_t *) 0)
25522   return 0;
25523 if (sizeof (pid_t))
25524   return 0;
25525   ;
25526   return 0;
25527 }
25528 _ACEOF
25529 rm -f conftest.$ac_objext
25530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25531   (eval $ac_compile) 2>&5
25532   ac_status=$?
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); } &&
25535          { ac_try='test -s conftest.$ac_objext'
25536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537   (eval $ac_try) 2>&5
25538   ac_status=$?
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); }; }; then
25541   ac_cv_type_pid_t=yes
25542 else
25543   echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546 ac_cv_type_pid_t=no
25547 fi
25548 rm -f conftest.$ac_objext conftest.$ac_ext
25549 fi
25550 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25551 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25552 if test $ac_cv_type_pid_t = yes; then
25553   :
25554 else
25555
25556 cat >>confdefs.h <<_ACEOF
25557 #define pid_t int
25558 _ACEOF
25559
25560 fi
25561
25562 echo "$as_me:$LINENO: checking for size_t" >&5
25563 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25564 if test "${ac_cv_type_size_t+set}" = set; then
25565   echo $ECHO_N "(cached) $ECHO_C" >&6
25566 else
25567   cat >conftest.$ac_ext <<_ACEOF
25568 #line $LINENO "configure"
25569 /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574 $ac_includes_default
25575 int
25576 main ()
25577 {
25578 if ((size_t *) 0)
25579   return 0;
25580 if (sizeof (size_t))
25581   return 0;
25582   ;
25583   return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext
25587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25588   (eval $ac_compile) 2>&5
25589   ac_status=$?
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); } &&
25592          { ac_try='test -s conftest.$ac_objext'
25593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594   (eval $ac_try) 2>&5
25595   ac_status=$?
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); }; }; then
25598   ac_cv_type_size_t=yes
25599 else
25600   echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603 ac_cv_type_size_t=no
25604 fi
25605 rm -f conftest.$ac_objext conftest.$ac_ext
25606 fi
25607 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25608 echo "${ECHO_T}$ac_cv_type_size_t" >&6
25609 if test $ac_cv_type_size_t = yes; then
25610   :
25611 else
25612
25613 cat >>confdefs.h <<_ACEOF
25614 #define size_t unsigned
25615 _ACEOF
25616
25617 fi
25618
25619 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25620 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25621 if test "${ac_cv_type_uid_t+set}" = set; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   cat >conftest.$ac_ext <<_ACEOF
25625 #line $LINENO "configure"
25626 /* confdefs.h.  */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h.  */
25631 #include <sys/types.h>
25632
25633 _ACEOF
25634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25635   $EGREP "uid_t" >/dev/null 2>&1; then
25636   ac_cv_type_uid_t=yes
25637 else
25638   ac_cv_type_uid_t=no
25639 fi
25640 rm -f conftest*
25641
25642 fi
25643 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25644 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
25645 if test $ac_cv_type_uid_t = no; then
25646
25647 cat >>confdefs.h <<\_ACEOF
25648 #define uid_t int
25649 _ACEOF
25650
25651
25652 cat >>confdefs.h <<\_ACEOF
25653 #define gid_t int
25654 _ACEOF
25655
25656 fi
25657
25658
25659
25660
25661 ac_ext=cc
25662 ac_cpp='$CXXCPP $CPPFLAGS'
25663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25666
25667 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25668 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25669 if test "${wx_cv_size_t_is_uint+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672
25673                             cat >conftest.$ac_ext <<_ACEOF
25674 #line $LINENO "configure"
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680 #include <stddef.h>
25681 int
25682 main ()
25683 {
25684
25685             return 0; }
25686
25687             struct Foo { void foo(size_t); void foo(unsigned int); };
25688
25689             int bar() {
25690
25691   ;
25692   return 0;
25693 }
25694 _ACEOF
25695 rm -f conftest.$ac_objext
25696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25697   (eval $ac_compile) 2>&5
25698   ac_status=$?
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } &&
25701          { ac_try='test -s conftest.$ac_objext'
25702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703   (eval $ac_try) 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   wx_cv_size_t_is_uint=no
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712 wx_cv_size_t_is_uint=yes
25713
25714 fi
25715 rm -f conftest.$ac_objext conftest.$ac_ext
25716
25717
25718 fi
25719 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25720 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
25721
25722 if test "$wx_cv_size_t_is_uint" = "yes"; then
25723     cat >>confdefs.h <<\_ACEOF
25724 #define wxSIZE_T_IS_UINT 1
25725 _ACEOF
25726
25727 else
25728     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25729 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25730 if test "${wx_cv_size_t_is_ulong+set}" = set; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733   cat >conftest.$ac_ext <<_ACEOF
25734 #line $LINENO "configure"
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 #include <stddef.h>
25741 int
25742 main ()
25743 {
25744
25745                 return 0; }
25746
25747                 struct Foo { void foo(size_t); void foo(unsigned long); };
25748
25749                 int bar() {
25750
25751   ;
25752   return 0;
25753 }
25754 _ACEOF
25755 rm -f conftest.$ac_objext
25756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25757   (eval $ac_compile) 2>&5
25758   ac_status=$?
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } &&
25761          { ac_try='test -s conftest.$ac_objext'
25762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763   (eval $ac_try) 2>&5
25764   ac_status=$?
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); }; }; then
25767   wx_cv_size_t_is_ulong=no
25768 else
25769   echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25771
25772 wx_cv_size_t_is_ulong=yes
25773
25774 fi
25775 rm -f conftest.$ac_objext conftest.$ac_ext
25776
25777 fi
25778 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25779 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
25780
25781     if test "$wx_cv_size_t_is_ulong" = "yes"; then
25782         cat >>confdefs.h <<\_ACEOF
25783 #define wxSIZE_T_IS_ULONG 1
25784 _ACEOF
25785
25786     fi
25787 fi
25788
25789 ac_ext=c
25790 ac_cpp='$CPP $CPPFLAGS'
25791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25794
25795
25796
25797 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25798 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25799 if test "${wx_cv_struct_pw_gecos+set}" = set; then
25800   echo $ECHO_N "(cached) $ECHO_C" >&6
25801 else
25802
25803         cat >conftest.$ac_ext <<_ACEOF
25804 #line $LINENO "configure"
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810 #include <pwd.h>
25811 int
25812 main ()
25813 {
25814
25815                 char *p;
25816                 struct passwd *pw;
25817                 p = pw->pw_gecos;
25818
25819   ;
25820   return 0;
25821 }
25822 _ACEOF
25823 rm -f conftest.$ac_objext
25824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25825   (eval $ac_compile) 2>&5
25826   ac_status=$?
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } &&
25829          { ac_try='test -s conftest.$ac_objext'
25830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831   (eval $ac_try) 2>&5
25832   ac_status=$?
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); }; }; then
25835
25836                 wx_cv_struct_pw_gecos=yes
25837
25838 else
25839   echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25841
25842
25843                 wx_cv_struct_pw_gecos=no
25844
25845
25846 fi
25847 rm -f conftest.$ac_objext conftest.$ac_ext
25848
25849
25850 fi
25851 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25852 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
25853
25854 if test "$wx_cv_struct_pw_gecos" = "yes"; then
25855     cat >>confdefs.h <<\_ACEOF
25856 #define HAVE_PW_GECOS 1
25857 _ACEOF
25858
25859 fi
25860
25861
25862 if test "$wx_cv_sizeof_wchar_t" != "0"; then
25863     cat >>confdefs.h <<\_ACEOF
25864 #define wxUSE_WCHAR_T 1
25865 _ACEOF
25866
25867
25868         WCSLEN_FOUND=0
25869     WCHAR_LINK=
25870
25871 for ac_func in wcslen
25872 do
25873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874 echo "$as_me:$LINENO: checking for $ac_func" >&5
25875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25876 if eval "test \"\${$as_ac_var+set}\" = set"; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 #line $LINENO "configure"
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886 /* System header to define __stub macros and hopefully few prototypes,
25887     which can conflict with char $ac_func (); below.
25888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25889     <limits.h> exists even on freestanding compilers.  */
25890 #ifdef __STDC__
25891 # include <limits.h>
25892 #else
25893 # include <assert.h>
25894 #endif
25895 /* Override any gcc2 internal prototype to avoid an error.  */
25896 #ifdef __cplusplus
25897 extern "C"
25898 {
25899 #endif
25900 /* We use char because int might match the return type of a gcc2
25901    builtin and then its argument prototype would still apply.  */
25902 char $ac_func ();
25903 /* The GNU C library defines this for functions which it implements
25904     to always fail with ENOSYS.  Some functions are actually named
25905     something starting with __ and the normal name is an alias.  */
25906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25907 choke me
25908 #else
25909 char (*f) () = $ac_func;
25910 #endif
25911 #ifdef __cplusplus
25912 }
25913 #endif
25914
25915 int
25916 main ()
25917 {
25918 return f != $ac_func;
25919   ;
25920   return 0;
25921 }
25922 _ACEOF
25923 rm -f conftest.$ac_objext conftest$ac_exeext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925   (eval $ac_link) 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); } &&
25929          { ac_try='test -s conftest$ac_exeext'
25930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931   (eval $ac_try) 2>&5
25932   ac_status=$?
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); }; }; then
25935   eval "$as_ac_var=yes"
25936 else
25937   echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25939
25940 eval "$as_ac_var=no"
25941 fi
25942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25943 fi
25944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25946 if test `eval echo '${'$as_ac_var'}'` = yes; then
25947   cat >>confdefs.h <<_ACEOF
25948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25949 _ACEOF
25950  WCSLEN_FOUND=1
25951 fi
25952 done
25953
25954
25955     if test "$WCSLEN_FOUND" = 0; then
25956         if test "$TOOLKIT" = "MSW"; then
25957             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25958 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25959 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   ac_check_lib_save_LIBS=$LIBS
25963 LIBS="-lmsvcrt  $LIBS"
25964 cat >conftest.$ac_ext <<_ACEOF
25965 #line $LINENO "configure"
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971
25972 /* Override any gcc2 internal prototype to avoid an error.  */
25973 #ifdef __cplusplus
25974 extern "C"
25975 #endif
25976 /* We use char because int might match the return type of a gcc2
25977    builtin and then its argument prototype would still apply.  */
25978 char wcslen ();
25979 int
25980 main ()
25981 {
25982 wcslen ();
25983   ;
25984   return 0;
25985 }
25986 _ACEOF
25987 rm -f conftest.$ac_objext conftest$ac_exeext
25988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25989   (eval $ac_link) 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); } &&
25993          { ac_try='test -s conftest$ac_exeext'
25994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995   (eval $ac_try) 2>&5
25996   ac_status=$?
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); }; }; then
25999   ac_cv_lib_msvcrt_wcslen=yes
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004 ac_cv_lib_msvcrt_wcslen=no
26005 fi
26006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26007 LIBS=$ac_check_lib_save_LIBS
26008 fi
26009 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26010 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26011 if test $ac_cv_lib_msvcrt_wcslen = yes; then
26012   WCHAR_OK=1
26013 fi
26014
26015         else
26016             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26017 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26018 if test "${ac_cv_lib_w_wcslen+set}" = set; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   ac_check_lib_save_LIBS=$LIBS
26022 LIBS="-lw  $LIBS"
26023 cat >conftest.$ac_ext <<_ACEOF
26024 #line $LINENO "configure"
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030
26031 /* Override any gcc2 internal prototype to avoid an error.  */
26032 #ifdef __cplusplus
26033 extern "C"
26034 #endif
26035 /* We use char because int might match the return type of a gcc2
26036    builtin and then its argument prototype would still apply.  */
26037 char wcslen ();
26038 int
26039 main ()
26040 {
26041 wcslen ();
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 rm -f conftest.$ac_objext conftest$ac_exeext
26047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26048   (eval $ac_link) 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); } &&
26052          { ac_try='test -s conftest$ac_exeext'
26053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054   (eval $ac_try) 2>&5
26055   ac_status=$?
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); }; }; then
26058   ac_cv_lib_w_wcslen=yes
26059 else
26060   echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063 ac_cv_lib_w_wcslen=no
26064 fi
26065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26066 LIBS=$ac_check_lib_save_LIBS
26067 fi
26068 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26069 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26070 if test $ac_cv_lib_w_wcslen = yes; then
26071
26072                             WCHAR_LINK=" -lw"
26073                             WCSLEN_FOUND=1
26074
26075 fi
26076
26077         fi
26078     fi
26079
26080     if test "$WCSLEN_FOUND" = 1; then
26081         cat >>confdefs.h <<\_ACEOF
26082 #define HAVE_WCSLEN 1
26083 _ACEOF
26084
26085     fi
26086
26087
26088 for ac_func in wcsrtombs
26089 do
26090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26091 echo "$as_me:$LINENO: checking for $ac_func" >&5
26092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26093 if eval "test \"\${$as_ac_var+set}\" = set"; then
26094   echo $ECHO_N "(cached) $ECHO_C" >&6
26095 else
26096   cat >conftest.$ac_ext <<_ACEOF
26097 #line $LINENO "configure"
26098 /* confdefs.h.  */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h.  */
26103 /* System header to define __stub macros and hopefully few prototypes,
26104     which can conflict with char $ac_func (); below.
26105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26106     <limits.h> exists even on freestanding compilers.  */
26107 #ifdef __STDC__
26108 # include <limits.h>
26109 #else
26110 # include <assert.h>
26111 #endif
26112 /* Override any gcc2 internal prototype to avoid an error.  */
26113 #ifdef __cplusplus
26114 extern "C"
26115 {
26116 #endif
26117 /* We use char because int might match the return type of a gcc2
26118    builtin and then its argument prototype would still apply.  */
26119 char $ac_func ();
26120 /* The GNU C library defines this for functions which it implements
26121     to always fail with ENOSYS.  Some functions are actually named
26122     something starting with __ and the normal name is an alias.  */
26123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26124 choke me
26125 #else
26126 char (*f) () = $ac_func;
26127 #endif
26128 #ifdef __cplusplus
26129 }
26130 #endif
26131
26132 int
26133 main ()
26134 {
26135 return f != $ac_func;
26136   ;
26137   return 0;
26138 }
26139 _ACEOF
26140 rm -f conftest.$ac_objext conftest$ac_exeext
26141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26142   (eval $ac_link) 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } &&
26146          { ac_try='test -s conftest$ac_exeext'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; }; then
26152   eval "$as_ac_var=yes"
26153 else
26154   echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157 eval "$as_ac_var=no"
26158 fi
26159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26160 fi
26161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26163 if test `eval echo '${'$as_ac_var'}'` = yes; then
26164   cat >>confdefs.h <<_ACEOF
26165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26166 _ACEOF
26167
26168 fi
26169 done
26170
26171 else
26172     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26173 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
26174 fi
26175
26176
26177
26178 ac_ext=cc
26179 ac_cpp='$CXXCPP $CPPFLAGS'
26180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26183
26184
26185
26186 for ac_func in vsnprintf
26187 do
26188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26189 echo "$as_me:$LINENO: checking for $ac_func" >&5
26190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26191 if eval "test \"\${$as_ac_var+set}\" = set"; then
26192   echo $ECHO_N "(cached) $ECHO_C" >&6
26193 else
26194   cat >conftest.$ac_ext <<_ACEOF
26195 #line $LINENO "configure"
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 /* System header to define __stub macros and hopefully few prototypes,
26202     which can conflict with char $ac_func (); below.
26203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26204     <limits.h> exists even on freestanding compilers.  */
26205 #ifdef __STDC__
26206 # include <limits.h>
26207 #else
26208 # include <assert.h>
26209 #endif
26210 /* Override any gcc2 internal prototype to avoid an error.  */
26211 #ifdef __cplusplus
26212 extern "C"
26213 {
26214 #endif
26215 /* We use char because int might match the return type of a gcc2
26216    builtin and then its argument prototype would still apply.  */
26217 char $ac_func ();
26218 /* The GNU C library defines this for functions which it implements
26219     to always fail with ENOSYS.  Some functions are actually named
26220     something starting with __ and the normal name is an alias.  */
26221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26222 choke me
26223 #else
26224 char (*f) () = $ac_func;
26225 #endif
26226 #ifdef __cplusplus
26227 }
26228 #endif
26229
26230 int
26231 main ()
26232 {
26233 return f != $ac_func;
26234   ;
26235   return 0;
26236 }
26237 _ACEOF
26238 rm -f conftest.$ac_objext conftest$ac_exeext
26239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26240   (eval $ac_link) 2>&5
26241   ac_status=$?
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } &&
26244          { ac_try='test -s conftest$ac_exeext'
26245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246   (eval $ac_try) 2>&5
26247   ac_status=$?
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); }; }; then
26250   eval "$as_ac_var=yes"
26251 else
26252   echo "$as_me: failed program was:" >&5
26253 sed 's/^/| /' conftest.$ac_ext >&5
26254
26255 eval "$as_ac_var=no"
26256 fi
26257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26258 fi
26259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26261 if test `eval echo '${'$as_ac_var'}'` = yes; then
26262   cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26264 _ACEOF
26265
26266 fi
26267 done
26268
26269
26270 if test "$ac_cv_func_vsnprintf" = "yes"; then
26271         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26272 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26273 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26274   echo $ECHO_N "(cached) $ECHO_C" >&6
26275 else
26276
26277             cat >conftest.$ac_ext <<_ACEOF
26278 #line $LINENO "configure"
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284
26285                     #include <stdio.h>
26286                     #include <stdarg.h>
26287
26288 int
26289 main ()
26290 {
26291
26292                     char *buf;
26293                     va_list ap;
26294                     vsnprintf(buf, 10u, "%s", ap);
26295
26296   ;
26297   return 0;
26298 }
26299 _ACEOF
26300 rm -f conftest.$ac_objext
26301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26302   (eval $ac_compile) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } &&
26306          { ac_try='test -s conftest.$ac_objext'
26307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308   (eval $ac_try) 2>&5
26309   ac_status=$?
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); }; }; then
26312   wx_cv_func_vsnprintf_decl=yes
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317 wx_cv_func_vsnprintf_decl=no
26318
26319 fi
26320 rm -f conftest.$ac_objext conftest.$ac_ext
26321
26322
26323 fi
26324 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26325 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
26326
26327     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
26328         cat >>confdefs.h <<\_ACEOF
26329 #define HAVE_VSNPRINTF_DECL 1
26330 _ACEOF
26331
26332     fi
26333 fi
26334
26335 if test "$wxUSE_UNICODE" = yes; then
26336
26337
26338
26339 for ac_func in fputwc wprintf vswprintf
26340 do
26341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26342 echo "$as_me:$LINENO: checking for $ac_func" >&5
26343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26344 if eval "test \"\${$as_ac_var+set}\" = set"; then
26345   echo $ECHO_N "(cached) $ECHO_C" >&6
26346 else
26347   cat >conftest.$ac_ext <<_ACEOF
26348 #line $LINENO "configure"
26349 /* confdefs.h.  */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h.  */
26354 /* System header to define __stub macros and hopefully few prototypes,
26355     which can conflict with char $ac_func (); below.
26356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26357     <limits.h> exists even on freestanding compilers.  */
26358 #ifdef __STDC__
26359 # include <limits.h>
26360 #else
26361 # include <assert.h>
26362 #endif
26363 /* Override any gcc2 internal prototype to avoid an error.  */
26364 #ifdef __cplusplus
26365 extern "C"
26366 {
26367 #endif
26368 /* We use char because int might match the return type of a gcc2
26369    builtin and then its argument prototype would still apply.  */
26370 char $ac_func ();
26371 /* The GNU C library defines this for functions which it implements
26372     to always fail with ENOSYS.  Some functions are actually named
26373     something starting with __ and the normal name is an alias.  */
26374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26375 choke me
26376 #else
26377 char (*f) () = $ac_func;
26378 #endif
26379 #ifdef __cplusplus
26380 }
26381 #endif
26382
26383 int
26384 main ()
26385 {
26386 return f != $ac_func;
26387   ;
26388   return 0;
26389 }
26390 _ACEOF
26391 rm -f conftest.$ac_objext conftest$ac_exeext
26392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26393   (eval $ac_link) 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); } &&
26397          { ac_try='test -s conftest$ac_exeext'
26398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399   (eval $ac_try) 2>&5
26400   ac_status=$?
26401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402   (exit $ac_status); }; }; then
26403   eval "$as_ac_var=yes"
26404 else
26405   echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408 eval "$as_ac_var=no"
26409 fi
26410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26411 fi
26412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26414 if test `eval echo '${'$as_ac_var'}'` = yes; then
26415   cat >>confdefs.h <<_ACEOF
26416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26417 _ACEOF
26418
26419 fi
26420 done
26421
26422
26423                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26424 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26425     cat >conftest.$ac_ext <<_ACEOF
26426 #line $LINENO "configure"
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432 #include <wchar.h>
26433 int
26434 main ()
26435 {
26436 &_vsnwprintf;
26437   ;
26438   return 0;
26439 }
26440 _ACEOF
26441 rm -f conftest.$ac_objext
26442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26443   (eval $ac_compile) 2>&5
26444   ac_status=$?
26445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); } &&
26447          { ac_try='test -s conftest.$ac_objext'
26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449   (eval $ac_try) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; }; then
26453   echo "$as_me:$LINENO: result: yes" >&5
26454 echo "${ECHO_T}yes" >&6
26455                     cat >>confdefs.h <<\_ACEOF
26456 #define HAVE__VSNWPRINTF 1
26457 _ACEOF
26458
26459 else
26460   echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26462
26463 echo "$as_me:$LINENO: result: no" >&5
26464 echo "${ECHO_T}no" >&6
26465 fi
26466 rm -f conftest.$ac_objext conftest.$ac_ext;
26467 fi
26468
26469 ac_ext=c
26470 ac_cpp='$CPP $CPPFLAGS'
26471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26474
26475
26476
26477
26478 if test "$TOOLKIT" != "MSW"; then
26479
26480
26481
26482
26483 ac_ext=cc
26484 ac_cpp='$CXXCPP $CPPFLAGS'
26485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26488
26489
26490
26491
26492 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26493 if test "${with_libiconv_prefix+set}" = set; then
26494   withval="$with_libiconv_prefix"
26495
26496     for dir in `echo "$withval" | tr : ' '`; do
26497       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26498       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26499     done
26500
26501 fi;
26502
26503   echo "$as_me:$LINENO: checking for iconv" >&5
26504 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26505 if test "${am_cv_func_iconv+set}" = set; then
26506   echo $ECHO_N "(cached) $ECHO_C" >&6
26507 else
26508
26509     am_cv_func_iconv="no, consider installing GNU libiconv"
26510     am_cv_lib_iconv=no
26511     cat >conftest.$ac_ext <<_ACEOF
26512 #line $LINENO "configure"
26513 /* confdefs.h.  */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h.  */
26518 #include <stdlib.h>
26519 #include <iconv.h>
26520 int
26521 main ()
26522 {
26523 iconv_t cd = iconv_open("","");
26524        iconv(cd,NULL,NULL,NULL,NULL);
26525        iconv_close(cd);
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26532   (eval $ac_link) 2>&5
26533   ac_status=$?
26534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535   (exit $ac_status); } &&
26536          { ac_try='test -s conftest$ac_exeext'
26537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538   (eval $ac_try) 2>&5
26539   ac_status=$?
26540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); }; }; then
26542   am_cv_func_iconv=yes
26543 else
26544   echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26546
26547 fi
26548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26549     if test "$am_cv_func_iconv" != yes; then
26550       am_save_LIBS="$LIBS"
26551       LIBS="$LIBS -liconv"
26552       cat >conftest.$ac_ext <<_ACEOF
26553 #line $LINENO "configure"
26554 /* confdefs.h.  */
26555 _ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h.  */
26559 #include <stdlib.h>
26560 #include <iconv.h>
26561 int
26562 main ()
26563 {
26564 iconv_t cd = iconv_open("","");
26565          iconv(cd,NULL,NULL,NULL,NULL);
26566          iconv_close(cd);
26567   ;
26568   return 0;
26569 }
26570 _ACEOF
26571 rm -f conftest.$ac_objext conftest$ac_exeext
26572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26573   (eval $ac_link) 2>&5
26574   ac_status=$?
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } &&
26577          { ac_try='test -s conftest$ac_exeext'
26578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26579   (eval $ac_try) 2>&5
26580   ac_status=$?
26581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582   (exit $ac_status); }; }; then
26583   am_cv_lib_iconv=yes
26584         am_cv_func_iconv=yes
26585 else
26586   echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26588
26589 fi
26590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26591       LIBS="$am_save_LIBS"
26592     fi
26593
26594 fi
26595 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26596 echo "${ECHO_T}$am_cv_func_iconv" >&6
26597   if test "$am_cv_func_iconv" = yes; then
26598
26599 cat >>confdefs.h <<\_ACEOF
26600 #define HAVE_ICONV 1
26601 _ACEOF
26602
26603     echo "$as_me:$LINENO: checking if iconv needs const" >&5
26604 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26605 if test "${wx_cv_func_iconv_const+set}" = set; then
26606   echo $ECHO_N "(cached) $ECHO_C" >&6
26607 else
26608   cat >conftest.$ac_ext <<_ACEOF
26609 #line $LINENO "configure"
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615
26616 #include <stdlib.h>
26617 #include <iconv.h>
26618 extern
26619 #ifdef __cplusplus
26620 "C"
26621 #endif
26622 #if defined(__STDC__) || defined(__cplusplus)
26623 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26624 #else
26625 size_t iconv();
26626 #endif
26627
26628 int
26629 main ()
26630 {
26631
26632   ;
26633   return 0;
26634 }
26635 _ACEOF
26636 rm -f conftest.$ac_objext
26637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26638   (eval $ac_compile) 2>&5
26639   ac_status=$?
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); } &&
26642          { ac_try='test -s conftest.$ac_objext'
26643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644   (eval $ac_try) 2>&5
26645   ac_status=$?
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); }; }; then
26648   wx_cv_func_iconv_const="no"
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653 wx_cv_func_iconv_const="yes"
26654
26655 fi
26656 rm -f conftest.$ac_objext conftest.$ac_ext
26657
26658 fi
26659 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26660 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
26661
26662     iconv_const=
26663     if test "x$wx_cv_func_iconv_const" = "xyes"; then
26664         iconv_const="const"
26665     fi
26666
26667
26668 cat >>confdefs.h <<_ACEOF
26669 #define ICONV_CONST $iconv_const
26670 _ACEOF
26671
26672   fi
26673   LIBICONV=
26674   if test "$am_cv_lib_iconv" = yes; then
26675     LIBICONV="-liconv"
26676   fi
26677
26678
26679 LIBS="$LIBICONV $LIBS"
26680 ac_ext=c
26681 ac_cpp='$CPP $CPPFLAGS'
26682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26685
26686
26687 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
26688
26689 for ac_func in sigaction
26690 do
26691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26692 echo "$as_me:$LINENO: checking for $ac_func" >&5
26693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26694 if eval "test \"\${$as_ac_var+set}\" = set"; then
26695   echo $ECHO_N "(cached) $ECHO_C" >&6
26696 else
26697   cat >conftest.$ac_ext <<_ACEOF
26698 #line $LINENO "configure"
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 /* System header to define __stub macros and hopefully few prototypes,
26705     which can conflict with char $ac_func (); below.
26706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26707     <limits.h> exists even on freestanding compilers.  */
26708 #ifdef __STDC__
26709 # include <limits.h>
26710 #else
26711 # include <assert.h>
26712 #endif
26713 /* Override any gcc2 internal prototype to avoid an error.  */
26714 #ifdef __cplusplus
26715 extern "C"
26716 {
26717 #endif
26718 /* We use char because int might match the return type of a gcc2
26719    builtin and then its argument prototype would still apply.  */
26720 char $ac_func ();
26721 /* The GNU C library defines this for functions which it implements
26722     to always fail with ENOSYS.  Some functions are actually named
26723     something starting with __ and the normal name is an alias.  */
26724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26725 choke me
26726 #else
26727 char (*f) () = $ac_func;
26728 #endif
26729 #ifdef __cplusplus
26730 }
26731 #endif
26732
26733 int
26734 main ()
26735 {
26736 return f != $ac_func;
26737   ;
26738   return 0;
26739 }
26740 _ACEOF
26741 rm -f conftest.$ac_objext conftest$ac_exeext
26742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26743   (eval $ac_link) 2>&5
26744   ac_status=$?
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); } &&
26747          { ac_try='test -s conftest$ac_exeext'
26748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749   (eval $ac_try) 2>&5
26750   ac_status=$?
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); }; }; then
26753   eval "$as_ac_var=yes"
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758 eval "$as_ac_var=no"
26759 fi
26760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26761 fi
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26764 if test `eval echo '${'$as_ac_var'}'` = yes; then
26765   cat >>confdefs.h <<_ACEOF
26766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26767 _ACEOF
26768
26769 fi
26770 done
26771
26772
26773     if test "$ac_cv_func_sigaction" = "no"; then
26774         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26775 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
26776         wxUSE_ON_FATAL_EXCEPTION=no
26777     fi
26778
26779     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
26780
26781
26782       ac_ext=cc
26783 ac_cpp='$CXXCPP $CPPFLAGS'
26784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26787
26788
26789       echo "$as_me:$LINENO: checking for sa_handler type" >&5
26790 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26791 if test "${wx_cv_type_sa_handler+set}" = set; then
26792   echo $ECHO_N "(cached) $ECHO_C" >&6
26793 else
26794
26795         cat >conftest.$ac_ext <<_ACEOF
26796 #line $LINENO "configure"
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 #include <signal.h>
26803 int
26804 main ()
26805 {
26806
26807                         extern void testSigHandler(int);
26808
26809                         struct sigaction sa;
26810                         sa.sa_handler = testSigHandler;
26811
26812   ;
26813   return 0;
26814 }
26815 _ACEOF
26816 rm -f conftest.$ac_objext
26817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26818   (eval $ac_compile) 2>&5
26819   ac_status=$?
26820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); } &&
26822          { ac_try='test -s conftest.$ac_objext'
26823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824   (eval $ac_try) 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); }; }; then
26828
26829                         wx_cv_type_sa_handler=int
26830
26831 else
26832   echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835
26836                         wx_cv_type_sa_handler=void
26837
26838 fi
26839 rm -f conftest.$ac_objext conftest.$ac_ext
26840
26841 fi
26842 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26843 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
26844
26845       ac_ext=c
26846 ac_cpp='$CPP $CPPFLAGS'
26847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26850
26851
26852       cat >>confdefs.h <<_ACEOF
26853 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
26854 _ACEOF
26855
26856     fi
26857 fi
26858
26859
26860
26861 for ac_func in mkstemp mktemp
26862 do
26863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26864 echo "$as_me:$LINENO: checking for $ac_func" >&5
26865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26866 if eval "test \"\${$as_ac_var+set}\" = set"; then
26867   echo $ECHO_N "(cached) $ECHO_C" >&6
26868 else
26869   cat >conftest.$ac_ext <<_ACEOF
26870 #line $LINENO "configure"
26871 /* confdefs.h.  */
26872 _ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h.  */
26876 /* System header to define __stub macros and hopefully few prototypes,
26877     which can conflict with char $ac_func (); below.
26878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26879     <limits.h> exists even on freestanding compilers.  */
26880 #ifdef __STDC__
26881 # include <limits.h>
26882 #else
26883 # include <assert.h>
26884 #endif
26885 /* Override any gcc2 internal prototype to avoid an error.  */
26886 #ifdef __cplusplus
26887 extern "C"
26888 {
26889 #endif
26890 /* We use char because int might match the return type of a gcc2
26891    builtin and then its argument prototype would still apply.  */
26892 char $ac_func ();
26893 /* The GNU C library defines this for functions which it implements
26894     to always fail with ENOSYS.  Some functions are actually named
26895     something starting with __ and the normal name is an alias.  */
26896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26897 choke me
26898 #else
26899 char (*f) () = $ac_func;
26900 #endif
26901 #ifdef __cplusplus
26902 }
26903 #endif
26904
26905 int
26906 main ()
26907 {
26908 return f != $ac_func;
26909   ;
26910   return 0;
26911 }
26912 _ACEOF
26913 rm -f conftest.$ac_objext conftest$ac_exeext
26914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26915   (eval $ac_link) 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); } &&
26919          { ac_try='test -s conftest$ac_exeext'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; }; then
26925   eval "$as_ac_var=yes"
26926 else
26927   echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 eval "$as_ac_var=no"
26931 fi
26932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26933 fi
26934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26936 if test `eval echo '${'$as_ac_var'}'` = yes; then
26937   cat >>confdefs.h <<_ACEOF
26938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26939 _ACEOF
26940  break
26941 fi
26942 done
26943
26944
26945 echo "$as_me:$LINENO: checking for statfs" >&5
26946 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26947 if test "${wx_cv_func_statfs+set}" = set; then
26948   echo $ECHO_N "(cached) $ECHO_C" >&6
26949 else
26950   cat >conftest.$ac_ext <<_ACEOF
26951 #line $LINENO "configure"
26952 /* confdefs.h.  */
26953 _ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h.  */
26957
26958              #if defined(__BSD__)
26959                #include <sys/param.h>
26960                #include <sys/mount.h>
26961              #else
26962                #include <sys/vfs.h>
26963              #endif
26964
26965 int
26966 main ()
26967 {
26968
26969              long l;
26970              struct statfs fs;
26971              statfs("/", &fs);
26972              l = fs.f_bsize;
26973              l += fs.f_blocks;
26974              l += fs.f_bavail;
26975
26976   ;
26977   return 0;
26978 }
26979 _ACEOF
26980 rm -f conftest.$ac_objext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26982   (eval $ac_compile) 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } &&
26986          { ac_try='test -s conftest.$ac_objext'
26987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988   (eval $ac_try) 2>&5
26989   ac_status=$?
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); }; }; then
26992
26993              wx_cv_func_statfs=yes
26994
26995 else
26996   echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999
27000              wx_cv_func_statfs=no
27001
27002
27003 fi
27004 rm -f conftest.$ac_objext conftest.$ac_ext
27005
27006 fi
27007 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27008 echo "${ECHO_T}$wx_cv_func_statfs" >&6
27009
27010 if test "$wx_cv_func_statfs" = "yes"; then
27011     wx_cv_type_statvfs_t="struct statfs"
27012     cat >>confdefs.h <<\_ACEOF
27013 #define HAVE_STATFS 1
27014 _ACEOF
27015
27016 else
27017     echo "$as_me:$LINENO: checking for statvfs" >&5
27018 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27019 if test "${wx_cv_func_statvfs+set}" = set; then
27020   echo $ECHO_N "(cached) $ECHO_C" >&6
27021 else
27022   cat >conftest.$ac_ext <<_ACEOF
27023 #line $LINENO "configure"
27024 /* confdefs.h.  */
27025 _ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h.  */
27029
27030                 #include <stddef.h>
27031                 #include <sys/statvfs.h>
27032
27033 int
27034 main ()
27035 {
27036
27037                 statvfs("/", NULL);
27038
27039   ;
27040   return 0;
27041 }
27042 _ACEOF
27043 rm -f conftest.$ac_objext
27044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27045   (eval $ac_compile) 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } &&
27049          { ac_try='test -s conftest.$ac_objext'
27050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051   (eval $ac_try) 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); }; }; then
27055   wx_cv_func_statvfs=yes
27056 else
27057   echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27059
27060 wx_cv_func_statvfs=no
27061
27062 fi
27063 rm -f conftest.$ac_objext conftest.$ac_ext
27064
27065 fi
27066 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27067 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
27068
27069     if test "$wx_cv_func_statvfs" = "yes"; then
27070
27071
27072         ac_ext=cc
27073 ac_cpp='$CXXCPP $CPPFLAGS'
27074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27077
27078
27079         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27080 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27081 if test "${wx_cv_type_statvfs_t+set}" = set; then
27082   echo $ECHO_N "(cached) $ECHO_C" >&6
27083 else
27084   cat >conftest.$ac_ext <<_ACEOF
27085 #line $LINENO "configure"
27086 /* confdefs.h.  */
27087 _ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h.  */
27091
27092                     #include <sys/statvfs.h>
27093
27094 int
27095 main ()
27096 {
27097
27098                     long l;
27099                     statvfs_t fs;
27100                     statvfs("/", &fs);
27101                     l = fs.f_bsize;
27102                     l += fs.f_blocks;
27103                     l += fs.f_bavail;
27104
27105   ;
27106   return 0;
27107 }
27108 _ACEOF
27109 rm -f conftest.$ac_objext
27110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27111   (eval $ac_compile) 2>&5
27112   ac_status=$?
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } &&
27115          { ac_try='test -s conftest.$ac_objext'
27116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117   (eval $ac_try) 2>&5
27118   ac_status=$?
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); }; }; then
27121   wx_cv_type_statvfs_t=statvfs_t
27122 else
27123   echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.$ac_ext >&5
27125
27126
27127                     cat >conftest.$ac_ext <<_ACEOF
27128 #line $LINENO "configure"
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134
27135                             #include <sys/statvfs.h>
27136
27137 int
27138 main ()
27139 {
27140
27141                             long l;
27142                             struct statvfs fs;
27143                             statvfs("/", &fs);
27144                             l = fs.f_bsize;
27145                             l += fs.f_blocks;
27146                             l += fs.f_bavail;
27147
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext
27153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27154   (eval $ac_compile) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); } &&
27158          { ac_try='test -s conftest.$ac_objext'
27159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160   (eval $ac_try) 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); }; }; then
27164   wx_cv_type_statvfs_t="struct statvfs"
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169 wx_cv_type_statvfs_t="unknown"
27170
27171 fi
27172 rm -f conftest.$ac_objext conftest.$ac_ext
27173
27174
27175 fi
27176 rm -f conftest.$ac_objext conftest.$ac_ext
27177
27178 fi
27179 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27180 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
27181
27182         ac_ext=c
27183 ac_cpp='$CPP $CPPFLAGS'
27184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27187
27188
27189         if test "$wx_cv_type_statvfs_t" != "unknown"; then
27190             cat >>confdefs.h <<\_ACEOF
27191 #define HAVE_STATVFS 1
27192 _ACEOF
27193
27194         fi
27195     else
27196                 wx_cv_type_statvfs_t="unknown"
27197     fi
27198 fi
27199
27200 if test "$wx_cv_type_statvfs_t" != "unknown"; then
27201     cat >>confdefs.h <<_ACEOF
27202 #define WX_STATFS_T $wx_cv_type_statvfs_t
27203 _ACEOF
27204
27205 else
27206     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27207 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
27208 fi
27209
27210 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
27211
27212
27213 for ac_func in fcntl flock
27214 do
27215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27216 echo "$as_me:$LINENO: checking for $ac_func" >&5
27217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27218 if eval "test \"\${$as_ac_var+set}\" = set"; then
27219   echo $ECHO_N "(cached) $ECHO_C" >&6
27220 else
27221   cat >conftest.$ac_ext <<_ACEOF
27222 #line $LINENO "configure"
27223 /* confdefs.h.  */
27224 _ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h.  */
27228 /* System header to define __stub macros and hopefully few prototypes,
27229     which can conflict with char $ac_func (); below.
27230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27231     <limits.h> exists even on freestanding compilers.  */
27232 #ifdef __STDC__
27233 # include <limits.h>
27234 #else
27235 # include <assert.h>
27236 #endif
27237 /* Override any gcc2 internal prototype to avoid an error.  */
27238 #ifdef __cplusplus
27239 extern "C"
27240 {
27241 #endif
27242 /* We use char because int might match the return type of a gcc2
27243    builtin and then its argument prototype would still apply.  */
27244 char $ac_func ();
27245 /* The GNU C library defines this for functions which it implements
27246     to always fail with ENOSYS.  Some functions are actually named
27247     something starting with __ and the normal name is an alias.  */
27248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27249 choke me
27250 #else
27251 char (*f) () = $ac_func;
27252 #endif
27253 #ifdef __cplusplus
27254 }
27255 #endif
27256
27257 int
27258 main ()
27259 {
27260 return f != $ac_func;
27261   ;
27262   return 0;
27263 }
27264 _ACEOF
27265 rm -f conftest.$ac_objext conftest$ac_exeext
27266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27267   (eval $ac_link) 2>&5
27268   ac_status=$?
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); } &&
27271          { ac_try='test -s conftest$ac_exeext'
27272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273   (eval $ac_try) 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; }; then
27277   eval "$as_ac_var=yes"
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282 eval "$as_ac_var=no"
27283 fi
27284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27285 fi
27286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27288 if test `eval echo '${'$as_ac_var'}'` = yes; then
27289   cat >>confdefs.h <<_ACEOF
27290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27291 _ACEOF
27292  break
27293 fi
27294 done
27295
27296
27297     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
27298         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27299 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
27300         wxUSE_SNGLINST_CHECKER=no
27301     fi
27302 fi
27303
27304
27305 for ac_func in timegm
27306 do
27307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27308 echo "$as_me:$LINENO: checking for $ac_func" >&5
27309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27310 if eval "test \"\${$as_ac_var+set}\" = set"; then
27311   echo $ECHO_N "(cached) $ECHO_C" >&6
27312 else
27313   cat >conftest.$ac_ext <<_ACEOF
27314 #line $LINENO "configure"
27315 /* confdefs.h.  */
27316 _ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h.  */
27320 /* System header to define __stub macros and hopefully few prototypes,
27321     which can conflict with char $ac_func (); below.
27322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27323     <limits.h> exists even on freestanding compilers.  */
27324 #ifdef __STDC__
27325 # include <limits.h>
27326 #else
27327 # include <assert.h>
27328 #endif
27329 /* Override any gcc2 internal prototype to avoid an error.  */
27330 #ifdef __cplusplus
27331 extern "C"
27332 {
27333 #endif
27334 /* We use char because int might match the return type of a gcc2
27335    builtin and then its argument prototype would still apply.  */
27336 char $ac_func ();
27337 /* The GNU C library defines this for functions which it implements
27338     to always fail with ENOSYS.  Some functions are actually named
27339     something starting with __ and the normal name is an alias.  */
27340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27341 choke me
27342 #else
27343 char (*f) () = $ac_func;
27344 #endif
27345 #ifdef __cplusplus
27346 }
27347 #endif
27348
27349 int
27350 main ()
27351 {
27352 return f != $ac_func;
27353   ;
27354   return 0;
27355 }
27356 _ACEOF
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27359   (eval $ac_link) 2>&5
27360   ac_status=$?
27361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); } &&
27363          { ac_try='test -s conftest$ac_exeext'
27364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365   (eval $ac_try) 2>&5
27366   ac_status=$?
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); }; }; then
27369   eval "$as_ac_var=yes"
27370 else
27371   echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27373
27374 eval "$as_ac_var=no"
27375 fi
27376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27377 fi
27378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27380 if test `eval echo '${'$as_ac_var'}'` = yes; then
27381   cat >>confdefs.h <<_ACEOF
27382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27383 _ACEOF
27384
27385 fi
27386 done
27387
27388
27389
27390
27391 for ac_func in putenv setenv
27392 do
27393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27394 echo "$as_me:$LINENO: checking for $ac_func" >&5
27395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27396 if eval "test \"\${$as_ac_var+set}\" = set"; then
27397   echo $ECHO_N "(cached) $ECHO_C" >&6
27398 else
27399   cat >conftest.$ac_ext <<_ACEOF
27400 #line $LINENO "configure"
27401 /* confdefs.h.  */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h.  */
27406 /* System header to define __stub macros and hopefully few prototypes,
27407     which can conflict with char $ac_func (); below.
27408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27409     <limits.h> exists even on freestanding compilers.  */
27410 #ifdef __STDC__
27411 # include <limits.h>
27412 #else
27413 # include <assert.h>
27414 #endif
27415 /* Override any gcc2 internal prototype to avoid an error.  */
27416 #ifdef __cplusplus
27417 extern "C"
27418 {
27419 #endif
27420 /* We use char because int might match the return type of a gcc2
27421    builtin and then its argument prototype would still apply.  */
27422 char $ac_func ();
27423 /* The GNU C library defines this for functions which it implements
27424     to always fail with ENOSYS.  Some functions are actually named
27425     something starting with __ and the normal name is an alias.  */
27426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27427 choke me
27428 #else
27429 char (*f) () = $ac_func;
27430 #endif
27431 #ifdef __cplusplus
27432 }
27433 #endif
27434
27435 int
27436 main ()
27437 {
27438 return f != $ac_func;
27439   ;
27440   return 0;
27441 }
27442 _ACEOF
27443 rm -f conftest.$ac_objext conftest$ac_exeext
27444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27445   (eval $ac_link) 2>&5
27446   ac_status=$?
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); } &&
27449          { ac_try='test -s conftest$ac_exeext'
27450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451   (eval $ac_try) 2>&5
27452   ac_status=$?
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); }; }; then
27455   eval "$as_ac_var=yes"
27456 else
27457   echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27459
27460 eval "$as_ac_var=no"
27461 fi
27462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27463 fi
27464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27466 if test `eval echo '${'$as_ac_var'}'` = yes; then
27467   cat >>confdefs.h <<_ACEOF
27468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27469 _ACEOF
27470  break
27471 fi
27472 done
27473
27474
27475 HAVE_SOME_SLEEP_FUNC=0
27476 if test "$USE_BEOS" = 1; then
27477             cat >>confdefs.h <<\_ACEOF
27478 #define HAVE_SLEEP 1
27479 _ACEOF
27480
27481     HAVE_SOME_SLEEP_FUNC=1
27482 fi
27483
27484 if test "$USE_DARWIN" = 1; then
27485             cat >>confdefs.h <<\_ACEOF
27486 #define HAVE_USLEEP 1
27487 _ACEOF
27488
27489     HAVE_SOME_SLEEP_FUNC=1
27490 fi
27491
27492 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27493         POSIX4_LINK=
27494
27495 for ac_func in nanosleep
27496 do
27497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27498 echo "$as_me:$LINENO: checking for $ac_func" >&5
27499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27500 if eval "test \"\${$as_ac_var+set}\" = set"; then
27501   echo $ECHO_N "(cached) $ECHO_C" >&6
27502 else
27503   cat >conftest.$ac_ext <<_ACEOF
27504 #line $LINENO "configure"
27505 /* confdefs.h.  */
27506 _ACEOF
27507 cat confdefs.h >>conftest.$ac_ext
27508 cat >>conftest.$ac_ext <<_ACEOF
27509 /* end confdefs.h.  */
27510 /* System header to define __stub macros and hopefully few prototypes,
27511     which can conflict with char $ac_func (); below.
27512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27513     <limits.h> exists even on freestanding compilers.  */
27514 #ifdef __STDC__
27515 # include <limits.h>
27516 #else
27517 # include <assert.h>
27518 #endif
27519 /* Override any gcc2 internal prototype to avoid an error.  */
27520 #ifdef __cplusplus
27521 extern "C"
27522 {
27523 #endif
27524 /* We use char because int might match the return type of a gcc2
27525    builtin and then its argument prototype would still apply.  */
27526 char $ac_func ();
27527 /* The GNU C library defines this for functions which it implements
27528     to always fail with ENOSYS.  Some functions are actually named
27529     something starting with __ and the normal name is an alias.  */
27530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27531 choke me
27532 #else
27533 char (*f) () = $ac_func;
27534 #endif
27535 #ifdef __cplusplus
27536 }
27537 #endif
27538
27539 int
27540 main ()
27541 {
27542 return f != $ac_func;
27543   ;
27544   return 0;
27545 }
27546 _ACEOF
27547 rm -f conftest.$ac_objext conftest$ac_exeext
27548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27549   (eval $ac_link) 2>&5
27550   ac_status=$?
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); } &&
27553          { ac_try='test -s conftest$ac_exeext'
27554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555   (eval $ac_try) 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); }; }; then
27559   eval "$as_ac_var=yes"
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564 eval "$as_ac_var=no"
27565 fi
27566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27567 fi
27568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27570 if test `eval echo '${'$as_ac_var'}'` = yes; then
27571   cat >>confdefs.h <<_ACEOF
27572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27573 _ACEOF
27574  cat >>confdefs.h <<\_ACEOF
27575 #define HAVE_NANOSLEEP 1
27576 _ACEOF
27577
27578 else
27579
27580             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27581 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27582 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27583   echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585   ac_check_lib_save_LIBS=$LIBS
27586 LIBS="-lposix4  $LIBS"
27587 cat >conftest.$ac_ext <<_ACEOF
27588 #line $LINENO "configure"
27589 /* confdefs.h.  */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h.  */
27594
27595 /* Override any gcc2 internal prototype to avoid an error.  */
27596 #ifdef __cplusplus
27597 extern "C"
27598 #endif
27599 /* We use char because int might match the return type of a gcc2
27600    builtin and then its argument prototype would still apply.  */
27601 char nanosleep ();
27602 int
27603 main ()
27604 {
27605 nanosleep ();
27606   ;
27607   return 0;
27608 }
27609 _ACEOF
27610 rm -f conftest.$ac_objext conftest$ac_exeext
27611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27612   (eval $ac_link) 2>&5
27613   ac_status=$?
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); } &&
27616          { ac_try='test -s conftest$ac_exeext'
27617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618   (eval $ac_try) 2>&5
27619   ac_status=$?
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); }; }; then
27622   ac_cv_lib_posix4_nanosleep=yes
27623 else
27624   echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627 ac_cv_lib_posix4_nanosleep=no
27628 fi
27629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27630 LIBS=$ac_check_lib_save_LIBS
27631 fi
27632 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27633 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27634 if test $ac_cv_lib_posix4_nanosleep = yes; then
27635
27636                     cat >>confdefs.h <<\_ACEOF
27637 #define HAVE_NANOSLEEP 1
27638 _ACEOF
27639
27640                     POSIX4_LINK=" -lposix4"
27641
27642 else
27643
27644
27645 for ac_func in usleep
27646 do
27647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27648 echo "$as_me:$LINENO: checking for $ac_func" >&5
27649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27650 if eval "test \"\${$as_ac_var+set}\" = set"; then
27651   echo $ECHO_N "(cached) $ECHO_C" >&6
27652 else
27653   cat >conftest.$ac_ext <<_ACEOF
27654 #line $LINENO "configure"
27655 /* confdefs.h.  */
27656 _ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h.  */
27660 /* System header to define __stub macros and hopefully few prototypes,
27661     which can conflict with char $ac_func (); below.
27662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27663     <limits.h> exists even on freestanding compilers.  */
27664 #ifdef __STDC__
27665 # include <limits.h>
27666 #else
27667 # include <assert.h>
27668 #endif
27669 /* Override any gcc2 internal prototype to avoid an error.  */
27670 #ifdef __cplusplus
27671 extern "C"
27672 {
27673 #endif
27674 /* We use char because int might match the return type of a gcc2
27675    builtin and then its argument prototype would still apply.  */
27676 char $ac_func ();
27677 /* The GNU C library defines this for functions which it implements
27678     to always fail with ENOSYS.  Some functions are actually named
27679     something starting with __ and the normal name is an alias.  */
27680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27681 choke me
27682 #else
27683 char (*f) () = $ac_func;
27684 #endif
27685 #ifdef __cplusplus
27686 }
27687 #endif
27688
27689 int
27690 main ()
27691 {
27692 return f != $ac_func;
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext conftest$ac_exeext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27699   (eval $ac_link) 2>&5
27700   ac_status=$?
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); } &&
27703          { ac_try='test -s conftest$ac_exeext'
27704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705   (eval $ac_try) 2>&5
27706   ac_status=$?
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); }; }; then
27709   eval "$as_ac_var=yes"
27710 else
27711   echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714 eval "$as_ac_var=no"
27715 fi
27716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27717 fi
27718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27720 if test `eval echo '${'$as_ac_var'}'` = yes; then
27721   cat >>confdefs.h <<_ACEOF
27722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27723 _ACEOF
27724  cat >>confdefs.h <<\_ACEOF
27725 #define HAVE_USLEEP 1
27726 _ACEOF
27727
27728 else
27729   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27730 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27731
27732 fi
27733 done
27734
27735
27736
27737 fi
27738
27739
27740
27741 fi
27742 done
27743
27744 fi
27745
27746
27747
27748 for ac_func in uname gethostname
27749 do
27750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27751 echo "$as_me:$LINENO: checking for $ac_func" >&5
27752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27753 if eval "test \"\${$as_ac_var+set}\" = set"; then
27754   echo $ECHO_N "(cached) $ECHO_C" >&6
27755 else
27756   cat >conftest.$ac_ext <<_ACEOF
27757 #line $LINENO "configure"
27758 /* confdefs.h.  */
27759 _ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h.  */
27763 /* System header to define __stub macros and hopefully few prototypes,
27764     which can conflict with char $ac_func (); below.
27765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27766     <limits.h> exists even on freestanding compilers.  */
27767 #ifdef __STDC__
27768 # include <limits.h>
27769 #else
27770 # include <assert.h>
27771 #endif
27772 /* Override any gcc2 internal prototype to avoid an error.  */
27773 #ifdef __cplusplus
27774 extern "C"
27775 {
27776 #endif
27777 /* We use char because int might match the return type of a gcc2
27778    builtin and then its argument prototype would still apply.  */
27779 char $ac_func ();
27780 /* The GNU C library defines this for functions which it implements
27781     to always fail with ENOSYS.  Some functions are actually named
27782     something starting with __ and the normal name is an alias.  */
27783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27784 choke me
27785 #else
27786 char (*f) () = $ac_func;
27787 #endif
27788 #ifdef __cplusplus
27789 }
27790 #endif
27791
27792 int
27793 main ()
27794 {
27795 return f != $ac_func;
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest.$ac_objext conftest$ac_exeext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802   (eval $ac_link) 2>&5
27803   ac_status=$?
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); } &&
27806          { ac_try='test -s conftest$ac_exeext'
27807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808   (eval $ac_try) 2>&5
27809   ac_status=$?
27810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); }; }; then
27812   eval "$as_ac_var=yes"
27813 else
27814   echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 eval "$as_ac_var=no"
27818 fi
27819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27820 fi
27821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27823 if test `eval echo '${'$as_ac_var'}'` = yes; then
27824   cat >>confdefs.h <<_ACEOF
27825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27826 _ACEOF
27827  break
27828 fi
27829 done
27830
27831
27832
27833
27834 ac_ext=cc
27835 ac_cpp='$CXXCPP $CPPFLAGS'
27836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27839
27840
27841
27842 for ac_func in strtok_r
27843 do
27844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27845 echo "$as_me:$LINENO: checking for $ac_func" >&5
27846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27847 if eval "test \"\${$as_ac_var+set}\" = set"; then
27848   echo $ECHO_N "(cached) $ECHO_C" >&6
27849 else
27850   cat >conftest.$ac_ext <<_ACEOF
27851 #line $LINENO "configure"
27852 /* confdefs.h.  */
27853 _ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h.  */
27857 /* System header to define __stub macros and hopefully few prototypes,
27858     which can conflict with char $ac_func (); below.
27859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27860     <limits.h> exists even on freestanding compilers.  */
27861 #ifdef __STDC__
27862 # include <limits.h>
27863 #else
27864 # include <assert.h>
27865 #endif
27866 /* Override any gcc2 internal prototype to avoid an error.  */
27867 #ifdef __cplusplus
27868 extern "C"
27869 {
27870 #endif
27871 /* We use char because int might match the return type of a gcc2
27872    builtin and then its argument prototype would still apply.  */
27873 char $ac_func ();
27874 /* The GNU C library defines this for functions which it implements
27875     to always fail with ENOSYS.  Some functions are actually named
27876     something starting with __ and the normal name is an alias.  */
27877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27878 choke me
27879 #else
27880 char (*f) () = $ac_func;
27881 #endif
27882 #ifdef __cplusplus
27883 }
27884 #endif
27885
27886 int
27887 main ()
27888 {
27889 return f != $ac_func;
27890   ;
27891   return 0;
27892 }
27893 _ACEOF
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896   (eval $ac_link) 2>&5
27897   ac_status=$?
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); } &&
27900          { ac_try='test -s conftest$ac_exeext'
27901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902   (eval $ac_try) 2>&5
27903   ac_status=$?
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); }; }; then
27906   eval "$as_ac_var=yes"
27907 else
27908   echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27910
27911 eval "$as_ac_var=no"
27912 fi
27913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27914 fi
27915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27917 if test `eval echo '${'$as_ac_var'}'` = yes; then
27918   cat >>confdefs.h <<_ACEOF
27919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27920 _ACEOF
27921
27922 fi
27923 done
27924
27925
27926 ac_ext=c
27927 ac_cpp='$CPP $CPPFLAGS'
27928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27931
27932
27933 INET_LINK=
27934
27935 for ac_func in inet_addr
27936 do
27937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27938 echo "$as_me:$LINENO: checking for $ac_func" >&5
27939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27940 if eval "test \"\${$as_ac_var+set}\" = set"; then
27941   echo $ECHO_N "(cached) $ECHO_C" >&6
27942 else
27943   cat >conftest.$ac_ext <<_ACEOF
27944 #line $LINENO "configure"
27945 /* confdefs.h.  */
27946 _ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h.  */
27950 /* System header to define __stub macros and hopefully few prototypes,
27951     which can conflict with char $ac_func (); below.
27952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27953     <limits.h> exists even on freestanding compilers.  */
27954 #ifdef __STDC__
27955 # include <limits.h>
27956 #else
27957 # include <assert.h>
27958 #endif
27959 /* Override any gcc2 internal prototype to avoid an error.  */
27960 #ifdef __cplusplus
27961 extern "C"
27962 {
27963 #endif
27964 /* We use char because int might match the return type of a gcc2
27965    builtin and then its argument prototype would still apply.  */
27966 char $ac_func ();
27967 /* The GNU C library defines this for functions which it implements
27968     to always fail with ENOSYS.  Some functions are actually named
27969     something starting with __ and the normal name is an alias.  */
27970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27971 choke me
27972 #else
27973 char (*f) () = $ac_func;
27974 #endif
27975 #ifdef __cplusplus
27976 }
27977 #endif
27978
27979 int
27980 main ()
27981 {
27982 return f != $ac_func;
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 rm -f conftest.$ac_objext conftest$ac_exeext
27988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27989   (eval $ac_link) 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); } &&
27993          { ac_try='test -s conftest$ac_exeext'
27994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995   (eval $ac_try) 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; }; then
27999   eval "$as_ac_var=yes"
28000 else
28001   echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004 eval "$as_ac_var=no"
28005 fi
28006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28007 fi
28008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28010 if test `eval echo '${'$as_ac_var'}'` = yes; then
28011   cat >>confdefs.h <<_ACEOF
28012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28013 _ACEOF
28014  cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_INET_ADDR 1
28016 _ACEOF
28017
28018 else
28019
28020         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28021 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28022 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28023   echo $ECHO_N "(cached) $ECHO_C" >&6
28024 else
28025   ac_check_lib_save_LIBS=$LIBS
28026 LIBS="-lnsl  $LIBS"
28027 cat >conftest.$ac_ext <<_ACEOF
28028 #line $LINENO "configure"
28029 /* confdefs.h.  */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h.  */
28034
28035 /* Override any gcc2 internal prototype to avoid an error.  */
28036 #ifdef __cplusplus
28037 extern "C"
28038 #endif
28039 /* We use char because int might match the return type of a gcc2
28040    builtin and then its argument prototype would still apply.  */
28041 char inet_addr ();
28042 int
28043 main ()
28044 {
28045 inet_addr ();
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28052   (eval $ac_link) 2>&5
28053   ac_status=$?
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } &&
28056          { ac_try='test -s conftest$ac_exeext'
28057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058   (eval $ac_try) 2>&5
28059   ac_status=$?
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); }; }; then
28062   ac_cv_lib_nsl_inet_addr=yes
28063 else
28064   echo "$as_me: failed program was:" >&5
28065 sed 's/^/| /' conftest.$ac_ext >&5
28066
28067 ac_cv_lib_nsl_inet_addr=no
28068 fi
28069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28070 LIBS=$ac_check_lib_save_LIBS
28071 fi
28072 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28073 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28074 if test $ac_cv_lib_nsl_inet_addr = yes; then
28075   INET_LINK="nsl"
28076 else
28077   echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28078 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28079 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28080   echo $ECHO_N "(cached) $ECHO_C" >&6
28081 else
28082   ac_check_lib_save_LIBS=$LIBS
28083 LIBS="-lresolv  $LIBS"
28084 cat >conftest.$ac_ext <<_ACEOF
28085 #line $LINENO "configure"
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091
28092 /* Override any gcc2 internal prototype to avoid an error.  */
28093 #ifdef __cplusplus
28094 extern "C"
28095 #endif
28096 /* We use char because int might match the return type of a gcc2
28097    builtin and then its argument prototype would still apply.  */
28098 char inet_addr ();
28099 int
28100 main ()
28101 {
28102 inet_addr ();
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 rm -f conftest.$ac_objext conftest$ac_exeext
28108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28109   (eval $ac_link) 2>&5
28110   ac_status=$?
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); } &&
28113          { ac_try='test -s conftest$ac_exeext'
28114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115   (eval $ac_try) 2>&5
28116   ac_status=$?
28117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118   (exit $ac_status); }; }; then
28119   ac_cv_lib_resolv_inet_addr=yes
28120 else
28121   echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28123
28124 ac_cv_lib_resolv_inet_addr=no
28125 fi
28126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28127 LIBS=$ac_check_lib_save_LIBS
28128 fi
28129 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28130 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28131 if test $ac_cv_lib_resolv_inet_addr = yes; then
28132   INET_LINK="resolv"
28133 else
28134   echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28135 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28136 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28137   echo $ECHO_N "(cached) $ECHO_C" >&6
28138 else
28139   ac_check_lib_save_LIBS=$LIBS
28140 LIBS="-lsocket  $LIBS"
28141 cat >conftest.$ac_ext <<_ACEOF
28142 #line $LINENO "configure"
28143 /* confdefs.h.  */
28144 _ACEOF
28145 cat confdefs.h >>conftest.$ac_ext
28146 cat >>conftest.$ac_ext <<_ACEOF
28147 /* end confdefs.h.  */
28148
28149 /* Override any gcc2 internal prototype to avoid an error.  */
28150 #ifdef __cplusplus
28151 extern "C"
28152 #endif
28153 /* We use char because int might match the return type of a gcc2
28154    builtin and then its argument prototype would still apply.  */
28155 char inet_addr ();
28156 int
28157 main ()
28158 {
28159 inet_addr ();
28160   ;
28161   return 0;
28162 }
28163 _ACEOF
28164 rm -f conftest.$ac_objext conftest$ac_exeext
28165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28166   (eval $ac_link) 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } &&
28170          { ac_try='test -s conftest$ac_exeext'
28171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172   (eval $ac_try) 2>&5
28173   ac_status=$?
28174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); }; }; then
28176   ac_cv_lib_socket_inet_addr=yes
28177 else
28178   echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28180
28181 ac_cv_lib_socket_inet_addr=no
28182 fi
28183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28184 LIBS=$ac_check_lib_save_LIBS
28185 fi
28186 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28187 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28188 if test $ac_cv_lib_socket_inet_addr = yes; then
28189   INET_LINK="socket"
28190
28191 fi
28192
28193
28194 fi
28195
28196
28197 fi
28198
28199
28200
28201 fi
28202 done
28203
28204
28205
28206 for ac_func in inet_aton
28207 do
28208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28209 echo "$as_me:$LINENO: checking for $ac_func" >&5
28210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28211 if eval "test \"\${$as_ac_var+set}\" = set"; then
28212   echo $ECHO_N "(cached) $ECHO_C" >&6
28213 else
28214   cat >conftest.$ac_ext <<_ACEOF
28215 #line $LINENO "configure"
28216 /* confdefs.h.  */
28217 _ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h.  */
28221 /* System header to define __stub macros and hopefully few prototypes,
28222     which can conflict with char $ac_func (); below.
28223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28224     <limits.h> exists even on freestanding compilers.  */
28225 #ifdef __STDC__
28226 # include <limits.h>
28227 #else
28228 # include <assert.h>
28229 #endif
28230 /* Override any gcc2 internal prototype to avoid an error.  */
28231 #ifdef __cplusplus
28232 extern "C"
28233 {
28234 #endif
28235 /* We use char because int might match the return type of a gcc2
28236    builtin and then its argument prototype would still apply.  */
28237 char $ac_func ();
28238 /* The GNU C library defines this for functions which it implements
28239     to always fail with ENOSYS.  Some functions are actually named
28240     something starting with __ and the normal name is an alias.  */
28241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28242 choke me
28243 #else
28244 char (*f) () = $ac_func;
28245 #endif
28246 #ifdef __cplusplus
28247 }
28248 #endif
28249
28250 int
28251 main ()
28252 {
28253 return f != $ac_func;
28254   ;
28255   return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest.$ac_objext conftest$ac_exeext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28260   (eval $ac_link) 2>&5
28261   ac_status=$?
28262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263   (exit $ac_status); } &&
28264          { ac_try='test -s conftest$ac_exeext'
28265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266   (eval $ac_try) 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); }; }; then
28270   eval "$as_ac_var=yes"
28271 else
28272   echo "$as_me: failed program was:" >&5
28273 sed 's/^/| /' conftest.$ac_ext >&5
28274
28275 eval "$as_ac_var=no"
28276 fi
28277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28278 fi
28279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28281 if test `eval echo '${'$as_ac_var'}'` = yes; then
28282   cat >>confdefs.h <<_ACEOF
28283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28284 _ACEOF
28285  cat >>confdefs.h <<\_ACEOF
28286 #define HAVE_INET_ATON 1
28287 _ACEOF
28288
28289 else
28290
28291                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28292 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28293 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28294 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28295   echo $ECHO_N "(cached) $ECHO_C" >&6
28296 else
28297   ac_check_lib_save_LIBS=$LIBS
28298 LIBS="-l$INET_LINK  $LIBS"
28299 cat >conftest.$ac_ext <<_ACEOF
28300 #line $LINENO "configure"
28301 /* confdefs.h.  */
28302 _ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h.  */
28306
28307 /* Override any gcc2 internal prototype to avoid an error.  */
28308 #ifdef __cplusplus
28309 extern "C"
28310 #endif
28311 /* We use char because int might match the return type of a gcc2
28312    builtin and then its argument prototype would still apply.  */
28313 char inet_aton ();
28314 int
28315 main ()
28316 {
28317 inet_aton ();
28318   ;
28319   return 0;
28320 }
28321 _ACEOF
28322 rm -f conftest.$ac_objext conftest$ac_exeext
28323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28324   (eval $ac_link) 2>&5
28325   ac_status=$?
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); } &&
28328          { ac_try='test -s conftest$ac_exeext'
28329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28330   (eval $ac_try) 2>&5
28331   ac_status=$?
28332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333   (exit $ac_status); }; }; then
28334   eval "$as_ac_Lib=yes"
28335 else
28336   echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.$ac_ext >&5
28338
28339 eval "$as_ac_Lib=no"
28340 fi
28341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28342 LIBS=$ac_check_lib_save_LIBS
28343 fi
28344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28345 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28346 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28347   cat >>confdefs.h <<\_ACEOF
28348 #define HAVE_INET_ATON 1
28349 _ACEOF
28350
28351 fi
28352
28353
28354 fi
28355 done
28356
28357
28358 if test "x$INET_LINK" != "x"; then
28359     cat >>confdefs.h <<\_ACEOF
28360 #define HAVE_INET_ADDR 1
28361 _ACEOF
28362
28363     INET_LINK=" -l$INET_LINK"
28364 fi
28365
28366 fi
28367
28368
28369
28370 ESD_LINK=
28371 if test "${ac_cv_header_esd_h+set}" = set; then
28372   echo "$as_me:$LINENO: checking for esd.h" >&5
28373 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28374 if test "${ac_cv_header_esd_h+set}" = set; then
28375   echo $ECHO_N "(cached) $ECHO_C" >&6
28376 fi
28377 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28378 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28379 else
28380   # Is the header compilable?
28381 echo "$as_me:$LINENO: checking esd.h usability" >&5
28382 echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28383 cat >conftest.$ac_ext <<_ACEOF
28384 #line $LINENO "configure"
28385 /* confdefs.h.  */
28386 _ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h.  */
28390 $ac_includes_default
28391 #include <esd.h>
28392 _ACEOF
28393 rm -f conftest.$ac_objext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28395   (eval $ac_compile) 2>&5
28396   ac_status=$?
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } &&
28399          { ac_try='test -s conftest.$ac_objext'
28400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401   (eval $ac_try) 2>&5
28402   ac_status=$?
28403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; }; then
28405   ac_header_compiler=yes
28406 else
28407   echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28409
28410 ac_header_compiler=no
28411 fi
28412 rm -f conftest.$ac_objext conftest.$ac_ext
28413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28414 echo "${ECHO_T}$ac_header_compiler" >&6
28415
28416 # Is the header present?
28417 echo "$as_me:$LINENO: checking esd.h presence" >&5
28418 echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28419 cat >conftest.$ac_ext <<_ACEOF
28420 #line $LINENO "configure"
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426 #include <esd.h>
28427 _ACEOF
28428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28430   ac_status=$?
28431   grep -v '^ *+' conftest.er1 >conftest.err
28432   rm -f conftest.er1
28433   cat conftest.err >&5
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); } >/dev/null; then
28436   if test -s conftest.err; then
28437     ac_cpp_err=$ac_c_preproc_warn_flag
28438   else
28439     ac_cpp_err=
28440   fi
28441 else
28442   ac_cpp_err=yes
28443 fi
28444 if test -z "$ac_cpp_err"; then
28445   ac_header_preproc=yes
28446 else
28447   echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28449
28450   ac_header_preproc=no
28451 fi
28452 rm -f conftest.err conftest.$ac_ext
28453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28454 echo "${ECHO_T}$ac_header_preproc" >&6
28455
28456 # So?  What about this header?
28457 case $ac_header_compiler:$ac_header_preproc in
28458   yes:no )
28459     { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28460 echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28461     { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28462 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28463     (
28464       cat <<\_ASBOX
28465 ## ------------------------------------ ##
28466 ## Report this to bug-autoconf@gnu.org. ##
28467 ## ------------------------------------ ##
28468 _ASBOX
28469     ) |
28470       sed "s/^/$as_me: WARNING:     /" >&2
28471     ;;
28472   no:yes )
28473     { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28474 echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28475     { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28476 echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28477     { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28478 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28479     (
28480       cat <<\_ASBOX
28481 ## ------------------------------------ ##
28482 ## Report this to bug-autoconf@gnu.org. ##
28483 ## ------------------------------------ ##
28484 _ASBOX
28485     ) |
28486       sed "s/^/$as_me: WARNING:     /" >&2
28487     ;;
28488 esac
28489 echo "$as_me:$LINENO: checking for esd.h" >&5
28490 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28491 if test "${ac_cv_header_esd_h+set}" = set; then
28492   echo $ECHO_N "(cached) $ECHO_C" >&6
28493 else
28494   ac_cv_header_esd_h=$ac_header_preproc
28495 fi
28496 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28497 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28498
28499 fi
28500 if test $ac_cv_header_esd_h = yes; then
28501
28502   echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28503 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28504 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28505   echo $ECHO_N "(cached) $ECHO_C" >&6
28506 else
28507   ac_check_lib_save_LIBS=$LIBS
28508 LIBS="-lesd  $LIBS"
28509 cat >conftest.$ac_ext <<_ACEOF
28510 #line $LINENO "configure"
28511 /* confdefs.h.  */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h.  */
28516
28517 /* Override any gcc2 internal prototype to avoid an error.  */
28518 #ifdef __cplusplus
28519 extern "C"
28520 #endif
28521 /* We use char because int might match the return type of a gcc2
28522    builtin and then its argument prototype would still apply.  */
28523 char esd_close ();
28524 int
28525 main ()
28526 {
28527 esd_close ();
28528   ;
28529   return 0;
28530 }
28531 _ACEOF
28532 rm -f conftest.$ac_objext conftest$ac_exeext
28533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28534   (eval $ac_link) 2>&5
28535   ac_status=$?
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } &&
28538          { ac_try='test -s conftest$ac_exeext'
28539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540   (eval $ac_try) 2>&5
28541   ac_status=$?
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); }; }; then
28544   ac_cv_lib_esd_esd_close=yes
28545 else
28546   echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549 ac_cv_lib_esd_esd_close=no
28550 fi
28551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28552 LIBS=$ac_check_lib_save_LIBS
28553 fi
28554 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28555 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28556 if test $ac_cv_lib_esd_esd_close = yes; then
28557
28558     ESD_LINK="-lesd"
28559
28560 fi
28561
28562
28563 fi
28564
28565
28566
28567
28568
28569 cat >confcache <<\_ACEOF
28570 # This file is a shell script that caches the results of configure
28571 # tests run on this system so they can be shared between configure
28572 # scripts and configure runs, see configure's option --config-cache.
28573 # It is not useful on other systems.  If it contains results you don't
28574 # want to keep, you may remove or edit it.
28575 #
28576 # config.status only pays attention to the cache file if you give it
28577 # the --recheck option to rerun configure.
28578 #
28579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28581 # following values.
28582
28583 _ACEOF
28584
28585 # The following way of writing the cache mishandles newlines in values,
28586 # but we know of no workaround that is simple, portable, and efficient.
28587 # So, don't put newlines in cache variables' values.
28588 # Ultrix sh set writes to stderr and can't be redirected directly,
28589 # and sets the high bit in the cache file unless we assign to the vars.
28590 {
28591   (set) 2>&1 |
28592     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28593     *ac_space=\ *)
28594       # `set' does not quote correctly, so add quotes (double-quote
28595       # substitution turns \\\\ into \\, and sed turns \\ into \).
28596       sed -n \
28597         "s/'/'\\\\''/g;
28598           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28599       ;;
28600     *)
28601       # `set' quotes correctly as required by POSIX, so do not add quotes.
28602       sed -n \
28603         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28604       ;;
28605     esac;
28606 } |
28607   sed '
28608      t clear
28609      : clear
28610      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28611      t end
28612      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28613      : end' >>confcache
28614 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28615   if test -w $cache_file; then
28616     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28617     cat confcache >$cache_file
28618   else
28619     echo "not updating unwritable cache $cache_file"
28620   fi
28621 fi
28622 rm -f confcache
28623
28624
28625 CPP_MT_FLAG=
28626 if test "$TOOLKIT" != "MSW"; then
28627
28628
28629     THREADS_LINK=
28630     THREADS_CFLAGS=
28631
28632     if test "$wxUSE_THREADS" = "yes" ; then
28633         if test "$USE_BEOS" = 1; then
28634             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28635 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
28636             wxUSE_THREADS="no"
28637         fi
28638     fi
28639
28640     if test "$wxUSE_THREADS" = "yes" ; then
28641
28642
28643                                 THREAD_OPTS="-pthread"
28644         case "${host}" in
28645           *-*-solaris2* | *-*-sunos4* )
28646                 if test "x$GCC" = "xyes"; then
28647                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
28648                 else
28649                     THREAD_OPTS="-mt $THREAD_OPTS"
28650                 fi
28651                 ;;
28652           *-*-freebsd*)
28653                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28654                 ;;
28655           *-*-darwin* | *-*-cygwin* )
28656                                                 THREAD_OPTS=""
28657                 ;;
28658           *-*-aix*)
28659                                 THREAD_OPTS="pthreads"
28660                 ;;
28661           *-hp-hpux* )
28662                                                                 if test "x$GCC" != "xyes"; then
28663                     THREAD_OPTS=""
28664                 fi
28665                 ;;
28666
28667           *-*-irix* )
28668                                                                 if test "x$GCC" = "xyes"; then
28669                     THREAD_OPTS=""
28670                 fi
28671                 ;;
28672
28673           *-*-*UnixWare*)
28674                                 if test "x$GCC" != "xyes"; then
28675                     THREAD_OPTS="-Ethread"
28676                 fi
28677                 ;;
28678         esac
28679
28680                                 THREAD_OPTS="$THREAD_OPTS pthread none"
28681
28682                 THREADS_OK=no
28683         for flag in $THREAD_OPTS; do
28684             case $flag in
28685                 none)
28686                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28687 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
28688                     ;;
28689
28690                 -*)
28691                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28692 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
28693                     THREADS_CFLAGS="$flag"
28694                     ;;
28695
28696                 *)
28697                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28698 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
28699                     THREADS_LINK="-l$flag"
28700                     ;;
28701               esac
28702
28703               save_LIBS="$LIBS"
28704               save_CFLAGS="$CFLAGS"
28705               LIBS="$THREADS_LINK $LIBS"
28706               CFLAGS="$THREADS_CFLAGS $CFLAGS"
28707
28708               cat >conftest.$ac_ext <<_ACEOF
28709 #line $LINENO "configure"
28710 /* confdefs.h.  */
28711 _ACEOF
28712 cat confdefs.h >>conftest.$ac_ext
28713 cat >>conftest.$ac_ext <<_ACEOF
28714 /* end confdefs.h.  */
28715 #include <pthread.h>
28716 int
28717 main ()
28718 {
28719 pthread_create(0,0,0,0);
28720   ;
28721   return 0;
28722 }
28723 _ACEOF
28724 rm -f conftest.$ac_objext conftest$ac_exeext
28725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28726   (eval $ac_link) 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); } &&
28730          { ac_try='test -s conftest$ac_exeext'
28731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732   (eval $ac_try) 2>&5
28733   ac_status=$?
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); }; }; then
28736   THREADS_OK=yes
28737 else
28738   echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28740
28741 fi
28742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28743
28744               LIBS="$save_LIBS"
28745               CFLAGS="$save_CFLAGS"
28746
28747               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28748 echo "${ECHO_T}$THREADS_OK" >&6
28749               if test "x$THREADS_OK" = "xyes"; then
28750                       break;
28751               fi
28752
28753               THREADS_LINK=""
28754               THREADS_CFLAGS=""
28755       done
28756
28757       if test "x$THREADS_OK" != "xyes"; then
28758           wxUSE_THREADS=no
28759           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28760 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
28761       else
28762                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28763           LIBS="$THREADS_LINK $LIBS"
28764
28765           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28766 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
28767           flag=no
28768           case "${host}" in
28769             *-aix*)
28770                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28771                 flag="-D_THREAD_SAFE"
28772                 ;;
28773             *-freebsd*)
28774                 flag="-D_THREAD_SAFE"
28775                 ;;
28776             *-hp-hpux* )
28777                 flag="-D_REENTRANT"
28778                 if test "x$GCC" != "xyes"; then
28779                                         flag="$flag -D_RWSTD_MULTI_THREAD"
28780                 fi
28781                 ;;
28782             *solaris* | alpha*-osf*)
28783                 flag="-D_REENTRANT"
28784                 ;;
28785           esac
28786           echo "$as_me:$LINENO: result: ${flag}" >&5
28787 echo "${ECHO_T}${flag}" >&6
28788           if test "x$flag" != xno; then
28789               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
28790           fi
28791
28792           if test "x$THREADS_CFLAGS" != "x"; then
28793                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
28794             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28795           fi
28796       fi
28797     fi
28798
28799         if test "$wxUSE_THREADS" = "yes" ; then
28800
28801 for ac_func in thr_setconcurrency
28802 do
28803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28804 echo "$as_me:$LINENO: checking for $ac_func" >&5
28805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28806 if eval "test \"\${$as_ac_var+set}\" = set"; then
28807   echo $ECHO_N "(cached) $ECHO_C" >&6
28808 else
28809   cat >conftest.$ac_ext <<_ACEOF
28810 #line $LINENO "configure"
28811 /* confdefs.h.  */
28812 _ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h.  */
28816 /* System header to define __stub macros and hopefully few prototypes,
28817     which can conflict with char $ac_func (); below.
28818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28819     <limits.h> exists even on freestanding compilers.  */
28820 #ifdef __STDC__
28821 # include <limits.h>
28822 #else
28823 # include <assert.h>
28824 #endif
28825 /* Override any gcc2 internal prototype to avoid an error.  */
28826 #ifdef __cplusplus
28827 extern "C"
28828 {
28829 #endif
28830 /* We use char because int might match the return type of a gcc2
28831    builtin and then its argument prototype would still apply.  */
28832 char $ac_func ();
28833 /* The GNU C library defines this for functions which it implements
28834     to always fail with ENOSYS.  Some functions are actually named
28835     something starting with __ and the normal name is an alias.  */
28836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28837 choke me
28838 #else
28839 char (*f) () = $ac_func;
28840 #endif
28841 #ifdef __cplusplus
28842 }
28843 #endif
28844
28845 int
28846 main ()
28847 {
28848 return f != $ac_func;
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 rm -f conftest.$ac_objext conftest$ac_exeext
28854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855   (eval $ac_link) 2>&5
28856   ac_status=$?
28857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858   (exit $ac_status); } &&
28859          { ac_try='test -s conftest$ac_exeext'
28860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861   (eval $ac_try) 2>&5
28862   ac_status=$?
28863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864   (exit $ac_status); }; }; then
28865   eval "$as_ac_var=yes"
28866 else
28867   echo "$as_me: failed program was:" >&5
28868 sed 's/^/| /' conftest.$ac_ext >&5
28869
28870 eval "$as_ac_var=no"
28871 fi
28872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28873 fi
28874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28876 if test `eval echo '${'$as_ac_var'}'` = yes; then
28877   cat >>confdefs.h <<_ACEOF
28878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28879 _ACEOF
28880
28881 fi
28882 done
28883
28884
28885
28886 for ac_header in sched.h
28887 do
28888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28890   echo "$as_me:$LINENO: checking for $ac_header" >&5
28891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28893   echo $ECHO_N "(cached) $ECHO_C" >&6
28894 fi
28895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28897 else
28898   # Is the header compilable?
28899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28901 cat >conftest.$ac_ext <<_ACEOF
28902 #line $LINENO "configure"
28903 /* confdefs.h.  */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h.  */
28908 $ac_includes_default
28909 #include <$ac_header>
28910 _ACEOF
28911 rm -f conftest.$ac_objext
28912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28913   (eval $ac_compile) 2>&5
28914   ac_status=$?
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); } &&
28917          { ac_try='test -s conftest.$ac_objext'
28918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919   (eval $ac_try) 2>&5
28920   ac_status=$?
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); }; }; then
28923   ac_header_compiler=yes
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928 ac_header_compiler=no
28929 fi
28930 rm -f conftest.$ac_objext conftest.$ac_ext
28931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28932 echo "${ECHO_T}$ac_header_compiler" >&6
28933
28934 # Is the header present?
28935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28937 cat >conftest.$ac_ext <<_ACEOF
28938 #line $LINENO "configure"
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 #include <$ac_header>
28945 _ACEOF
28946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28948   ac_status=$?
28949   grep -v '^ *+' conftest.er1 >conftest.err
28950   rm -f conftest.er1
28951   cat conftest.err >&5
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); } >/dev/null; then
28954   if test -s conftest.err; then
28955     ac_cpp_err=$ac_c_preproc_warn_flag
28956   else
28957     ac_cpp_err=
28958   fi
28959 else
28960   ac_cpp_err=yes
28961 fi
28962 if test -z "$ac_cpp_err"; then
28963   ac_header_preproc=yes
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968   ac_header_preproc=no
28969 fi
28970 rm -f conftest.err conftest.$ac_ext
28971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28972 echo "${ECHO_T}$ac_header_preproc" >&6
28973
28974 # So?  What about this header?
28975 case $ac_header_compiler:$ac_header_preproc in
28976   yes:no )
28977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28981     (
28982       cat <<\_ASBOX
28983 ## ------------------------------------ ##
28984 ## Report this to bug-autoconf@gnu.org. ##
28985 ## ------------------------------------ ##
28986 _ASBOX
28987     ) |
28988       sed "s/^/$as_me: WARNING:     /" >&2
28989     ;;
28990   no:yes )
28991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28993     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28997     (
28998       cat <<\_ASBOX
28999 ## ------------------------------------ ##
29000 ## Report this to bug-autoconf@gnu.org. ##
29001 ## ------------------------------------ ##
29002 _ASBOX
29003     ) |
29004       sed "s/^/$as_me: WARNING:     /" >&2
29005     ;;
29006 esac
29007 echo "$as_me:$LINENO: checking for $ac_header" >&5
29008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29010   echo $ECHO_N "(cached) $ECHO_C" >&6
29011 else
29012   eval "$as_ac_Header=$ac_header_preproc"
29013 fi
29014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29016
29017 fi
29018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29019   cat >>confdefs.h <<_ACEOF
29020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29021 _ACEOF
29022
29023 fi
29024
29025 done
29026
29027       if test "$ac_cv_header_sched_h" = "yes"; then
29028           echo "$as_me:$LINENO: checking for sched_yield" >&5
29029 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29030 if test "${ac_cv_func_sched_yield+set}" = set; then
29031   echo $ECHO_N "(cached) $ECHO_C" >&6
29032 else
29033   cat >conftest.$ac_ext <<_ACEOF
29034 #line $LINENO "configure"
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040 /* System header to define __stub macros and hopefully few prototypes,
29041     which can conflict with char sched_yield (); below.
29042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29043     <limits.h> exists even on freestanding compilers.  */
29044 #ifdef __STDC__
29045 # include <limits.h>
29046 #else
29047 # include <assert.h>
29048 #endif
29049 /* Override any gcc2 internal prototype to avoid an error.  */
29050 #ifdef __cplusplus
29051 extern "C"
29052 {
29053 #endif
29054 /* We use char because int might match the return type of a gcc2
29055    builtin and then its argument prototype would still apply.  */
29056 char sched_yield ();
29057 /* The GNU C library defines this for functions which it implements
29058     to always fail with ENOSYS.  Some functions are actually named
29059     something starting with __ and the normal name is an alias.  */
29060 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29061 choke me
29062 #else
29063 char (*f) () = sched_yield;
29064 #endif
29065 #ifdef __cplusplus
29066 }
29067 #endif
29068
29069 int
29070 main ()
29071 {
29072 return f != sched_yield;
29073   ;
29074   return 0;
29075 }
29076 _ACEOF
29077 rm -f conftest.$ac_objext conftest$ac_exeext
29078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29079   (eval $ac_link) 2>&5
29080   ac_status=$?
29081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082   (exit $ac_status); } &&
29083          { ac_try='test -s conftest$ac_exeext'
29084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29085   (eval $ac_try) 2>&5
29086   ac_status=$?
29087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088   (exit $ac_status); }; }; then
29089   ac_cv_func_sched_yield=yes
29090 else
29091   echo "$as_me: failed program was:" >&5
29092 sed 's/^/| /' conftest.$ac_ext >&5
29093
29094 ac_cv_func_sched_yield=no
29095 fi
29096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29097 fi
29098 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29099 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29100 if test $ac_cv_func_sched_yield = yes; then
29101   cat >>confdefs.h <<\_ACEOF
29102 #define HAVE_SCHED_YIELD 1
29103 _ACEOF
29104
29105 else
29106
29107                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29108 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29109 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29110   echo $ECHO_N "(cached) $ECHO_C" >&6
29111 else
29112   ac_check_lib_save_LIBS=$LIBS
29113 LIBS="-lposix4  $LIBS"
29114 cat >conftest.$ac_ext <<_ACEOF
29115 #line $LINENO "configure"
29116 /* confdefs.h.  */
29117 _ACEOF
29118 cat confdefs.h >>conftest.$ac_ext
29119 cat >>conftest.$ac_ext <<_ACEOF
29120 /* end confdefs.h.  */
29121
29122 /* Override any gcc2 internal prototype to avoid an error.  */
29123 #ifdef __cplusplus
29124 extern "C"
29125 #endif
29126 /* We use char because int might match the return type of a gcc2
29127    builtin and then its argument prototype would still apply.  */
29128 char sched_yield ();
29129 int
29130 main ()
29131 {
29132 sched_yield ();
29133   ;
29134   return 0;
29135 }
29136 _ACEOF
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29139   (eval $ac_link) 2>&5
29140   ac_status=$?
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); } &&
29143          { ac_try='test -s conftest$ac_exeext'
29144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145   (eval $ac_try) 2>&5
29146   ac_status=$?
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); }; }; then
29149   ac_cv_lib_posix4_sched_yield=yes
29150 else
29151   echo "$as_me: failed program was:" >&5
29152 sed 's/^/| /' conftest.$ac_ext >&5
29153
29154 ac_cv_lib_posix4_sched_yield=no
29155 fi
29156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29157 LIBS=$ac_check_lib_save_LIBS
29158 fi
29159 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29160 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29161 if test $ac_cv_lib_posix4_sched_yield = yes; then
29162   cat >>confdefs.h <<\_ACEOF
29163 #define HAVE_SCHED_YIELD 1
29164 _ACEOF
29165  POSIX4_LINK=" -lposix4"
29166 else
29167   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29168 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29169
29170 fi
29171
29172
29173
29174 fi
29175
29176       fi
29177
29178                                           HAVE_PRIOR_FUNCS=0
29179       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29180 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29181 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29182   echo $ECHO_N "(cached) $ECHO_C" >&6
29183 else
29184   cat >conftest.$ac_ext <<_ACEOF
29185 #line $LINENO "configure"
29186 /* confdefs.h.  */
29187 _ACEOF
29188 cat confdefs.h >>conftest.$ac_ext
29189 cat >>conftest.$ac_ext <<_ACEOF
29190 /* end confdefs.h.  */
29191 /* System header to define __stub macros and hopefully few prototypes,
29192     which can conflict with char pthread_attr_getschedpolicy (); below.
29193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29194     <limits.h> exists even on freestanding compilers.  */
29195 #ifdef __STDC__
29196 # include <limits.h>
29197 #else
29198 # include <assert.h>
29199 #endif
29200 /* Override any gcc2 internal prototype to avoid an error.  */
29201 #ifdef __cplusplus
29202 extern "C"
29203 {
29204 #endif
29205 /* We use char because int might match the return type of a gcc2
29206    builtin and then its argument prototype would still apply.  */
29207 char pthread_attr_getschedpolicy ();
29208 /* The GNU C library defines this for functions which it implements
29209     to always fail with ENOSYS.  Some functions are actually named
29210     something starting with __ and the normal name is an alias.  */
29211 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29212 choke me
29213 #else
29214 char (*f) () = pthread_attr_getschedpolicy;
29215 #endif
29216 #ifdef __cplusplus
29217 }
29218 #endif
29219
29220 int
29221 main ()
29222 {
29223 return f != pthread_attr_getschedpolicy;
29224   ;
29225   return 0;
29226 }
29227 _ACEOF
29228 rm -f conftest.$ac_objext conftest$ac_exeext
29229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29230   (eval $ac_link) 2>&5
29231   ac_status=$?
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); } &&
29234          { ac_try='test -s conftest$ac_exeext'
29235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236   (eval $ac_try) 2>&5
29237   ac_status=$?
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); }; }; then
29240   ac_cv_func_pthread_attr_getschedpolicy=yes
29241 else
29242   echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29244
29245 ac_cv_func_pthread_attr_getschedpolicy=no
29246 fi
29247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29248 fi
29249 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29250 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29251 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29252   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29253 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29254 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257   cat >conftest.$ac_ext <<_ACEOF
29258 #line $LINENO "configure"
29259 /* confdefs.h.  */
29260 _ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h.  */
29264 /* System header to define __stub macros and hopefully few prototypes,
29265     which can conflict with char pthread_attr_setschedparam (); below.
29266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29267     <limits.h> exists even on freestanding compilers.  */
29268 #ifdef __STDC__
29269 # include <limits.h>
29270 #else
29271 # include <assert.h>
29272 #endif
29273 /* Override any gcc2 internal prototype to avoid an error.  */
29274 #ifdef __cplusplus
29275 extern "C"
29276 {
29277 #endif
29278 /* We use char because int might match the return type of a gcc2
29279    builtin and then its argument prototype would still apply.  */
29280 char pthread_attr_setschedparam ();
29281 /* The GNU C library defines this for functions which it implements
29282     to always fail with ENOSYS.  Some functions are actually named
29283     something starting with __ and the normal name is an alias.  */
29284 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29285 choke me
29286 #else
29287 char (*f) () = pthread_attr_setschedparam;
29288 #endif
29289 #ifdef __cplusplus
29290 }
29291 #endif
29292
29293 int
29294 main ()
29295 {
29296 return f != pthread_attr_setschedparam;
29297   ;
29298   return 0;
29299 }
29300 _ACEOF
29301 rm -f conftest.$ac_objext conftest$ac_exeext
29302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29303   (eval $ac_link) 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); } &&
29307          { ac_try='test -s conftest$ac_exeext'
29308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309   (eval $ac_try) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); }; }; then
29313   ac_cv_func_pthread_attr_setschedparam=yes
29314 else
29315   echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318 ac_cv_func_pthread_attr_setschedparam=no
29319 fi
29320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29321 fi
29322 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29323 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29324 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29325   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29326 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29327 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29328   echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330   cat >conftest.$ac_ext <<_ACEOF
29331 #line $LINENO "configure"
29332 /* confdefs.h.  */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h.  */
29337 /* System header to define __stub macros and hopefully few prototypes,
29338     which can conflict with char sched_get_priority_max (); below.
29339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29340     <limits.h> exists even on freestanding compilers.  */
29341 #ifdef __STDC__
29342 # include <limits.h>
29343 #else
29344 # include <assert.h>
29345 #endif
29346 /* Override any gcc2 internal prototype to avoid an error.  */
29347 #ifdef __cplusplus
29348 extern "C"
29349 {
29350 #endif
29351 /* We use char because int might match the return type of a gcc2
29352    builtin and then its argument prototype would still apply.  */
29353 char sched_get_priority_max ();
29354 /* The GNU C library defines this for functions which it implements
29355     to always fail with ENOSYS.  Some functions are actually named
29356     something starting with __ and the normal name is an alias.  */
29357 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29358 choke me
29359 #else
29360 char (*f) () = sched_get_priority_max;
29361 #endif
29362 #ifdef __cplusplus
29363 }
29364 #endif
29365
29366 int
29367 main ()
29368 {
29369 return f != sched_get_priority_max;
29370   ;
29371   return 0;
29372 }
29373 _ACEOF
29374 rm -f conftest.$ac_objext conftest$ac_exeext
29375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29376   (eval $ac_link) 2>&5
29377   ac_status=$?
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); } &&
29380          { ac_try='test -s conftest$ac_exeext'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; }; then
29386   ac_cv_func_sched_get_priority_max=yes
29387 else
29388   echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29390
29391 ac_cv_func_sched_get_priority_max=no
29392 fi
29393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29394 fi
29395 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29396 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29397 if test $ac_cv_func_sched_get_priority_max = yes; then
29398   HAVE_PRIOR_FUNCS=1
29399 else
29400   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29401 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29402 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29403   echo $ECHO_N "(cached) $ECHO_C" >&6
29404 else
29405   ac_check_lib_save_LIBS=$LIBS
29406 LIBS="-lposix4  $LIBS"
29407 cat >conftest.$ac_ext <<_ACEOF
29408 #line $LINENO "configure"
29409 /* confdefs.h.  */
29410 _ACEOF
29411 cat confdefs.h >>conftest.$ac_ext
29412 cat >>conftest.$ac_ext <<_ACEOF
29413 /* end confdefs.h.  */
29414
29415 /* Override any gcc2 internal prototype to avoid an error.  */
29416 #ifdef __cplusplus
29417 extern "C"
29418 #endif
29419 /* We use char because int might match the return type of a gcc2
29420    builtin and then its argument prototype would still apply.  */
29421 char sched_get_priority_max ();
29422 int
29423 main ()
29424 {
29425 sched_get_priority_max ();
29426   ;
29427   return 0;
29428 }
29429 _ACEOF
29430 rm -f conftest.$ac_objext conftest$ac_exeext
29431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29432   (eval $ac_link) 2>&5
29433   ac_status=$?
29434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); } &&
29436          { ac_try='test -s conftest$ac_exeext'
29437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438   (eval $ac_try) 2>&5
29439   ac_status=$?
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); }; }; then
29442   ac_cv_lib_posix4_sched_get_priority_max=yes
29443 else
29444   echo "$as_me: failed program was:" >&5
29445 sed 's/^/| /' conftest.$ac_ext >&5
29446
29447 ac_cv_lib_posix4_sched_get_priority_max=no
29448 fi
29449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29450 LIBS=$ac_check_lib_save_LIBS
29451 fi
29452 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29453 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29454 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
29455
29456                                 HAVE_PRIOR_FUNCS=1
29457                                 POSIX4_LINK=" -lposix4"
29458
29459 fi
29460
29461
29462 fi
29463
29464
29465 fi
29466
29467
29468 fi
29469
29470
29471       if test "$HAVE_PRIOR_FUNCS" = 1; then
29472         cat >>confdefs.h <<\_ACEOF
29473 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
29474 _ACEOF
29475
29476       else
29477         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29478 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
29479       fi
29480
29481       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29482 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29483 if test "${ac_cv_func_pthread_cancel+set}" = set; then
29484   echo $ECHO_N "(cached) $ECHO_C" >&6
29485 else
29486   cat >conftest.$ac_ext <<_ACEOF
29487 #line $LINENO "configure"
29488 /* confdefs.h.  */
29489 _ACEOF
29490 cat confdefs.h >>conftest.$ac_ext
29491 cat >>conftest.$ac_ext <<_ACEOF
29492 /* end confdefs.h.  */
29493 /* System header to define __stub macros and hopefully few prototypes,
29494     which can conflict with char pthread_cancel (); below.
29495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29496     <limits.h> exists even on freestanding compilers.  */
29497 #ifdef __STDC__
29498 # include <limits.h>
29499 #else
29500 # include <assert.h>
29501 #endif
29502 /* Override any gcc2 internal prototype to avoid an error.  */
29503 #ifdef __cplusplus
29504 extern "C"
29505 {
29506 #endif
29507 /* We use char because int might match the return type of a gcc2
29508    builtin and then its argument prototype would still apply.  */
29509 char pthread_cancel ();
29510 /* The GNU C library defines this for functions which it implements
29511     to always fail with ENOSYS.  Some functions are actually named
29512     something starting with __ and the normal name is an alias.  */
29513 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29514 choke me
29515 #else
29516 char (*f) () = pthread_cancel;
29517 #endif
29518 #ifdef __cplusplus
29519 }
29520 #endif
29521
29522 int
29523 main ()
29524 {
29525 return f != pthread_cancel;
29526   ;
29527   return 0;
29528 }
29529 _ACEOF
29530 rm -f conftest.$ac_objext conftest$ac_exeext
29531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29532   (eval $ac_link) 2>&5
29533   ac_status=$?
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); } &&
29536          { ac_try='test -s conftest$ac_exeext'
29537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538   (eval $ac_try) 2>&5
29539   ac_status=$?
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); }; }; then
29542   ac_cv_func_pthread_cancel=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547 ac_cv_func_pthread_cancel=no
29548 fi
29549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29550 fi
29551 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29552 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29553 if test $ac_cv_func_pthread_cancel = yes; then
29554   cat >>confdefs.h <<\_ACEOF
29555 #define HAVE_PTHREAD_CANCEL 1
29556 _ACEOF
29557
29558 else
29559   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29560 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
29561 fi
29562
29563
29564       echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29565 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29566 if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29567   echo $ECHO_N "(cached) $ECHO_C" >&6
29568 else
29569
29570         cat >conftest.$ac_ext <<_ACEOF
29571 #line $LINENO "configure"
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577 #include <pthread.h>
29578 int
29579 main ()
29580 {
29581
29582                         pthread_cleanup_push(NULL, NULL);
29583                         pthread_cleanup_pop(0);
29584
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest.$ac_objext
29590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29591   (eval $ac_compile) 2>&5
29592   ac_status=$?
29593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); } &&
29595          { ac_try='test -s conftest.$ac_objext'
29596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29597   (eval $ac_try) 2>&5
29598   ac_status=$?
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); }; }; then
29601
29602                         wx_cv_func_pthread_cleanup_push=yes
29603
29604 else
29605   echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29607
29608
29609                         wx_cv_func_pthread_cleanup_push=no
29610
29611 fi
29612 rm -f conftest.$ac_objext conftest.$ac_ext
29613
29614 fi
29615 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29616 echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
29617
29618       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
29619           cat >>confdefs.h <<\_ACEOF
29620 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
29621 _ACEOF
29622
29623       fi
29624
29625
29626       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29627 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29628 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29629   echo $ECHO_N "(cached) $ECHO_C" >&6
29630 else
29631
29632         cat >conftest.$ac_ext <<_ACEOF
29633 #line $LINENO "configure"
29634 /* confdefs.h.  */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h.  */
29639 #include <pthread.h>
29640 int
29641 main ()
29642 {
29643
29644                pthread_mutexattr_t attr;
29645                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
29646
29647   ;
29648   return 0;
29649 }
29650 _ACEOF
29651 rm -f conftest.$ac_objext
29652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29653   (eval $ac_compile) 2>&5
29654   ac_status=$?
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); } &&
29657          { ac_try='test -s conftest.$ac_objext'
29658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659   (eval $ac_try) 2>&5
29660   ac_status=$?
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); }; }; then
29663
29664                wx_cv_type_pthread_mutexattr_t=yes
29665
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670
29671                wx_cv_type_pthread_mutexattr_t=no
29672
29673
29674 fi
29675 rm -f conftest.$ac_objext conftest.$ac_ext
29676
29677 fi
29678 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29679 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
29680
29681       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
29682         cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_PTHREAD_MUTEXATTR_T 1
29684 _ACEOF
29685
29686       else
29687                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29688 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29689 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29690   echo $ECHO_N "(cached) $ECHO_C" >&6
29691 else
29692
29693             cat >conftest.$ac_ext <<_ACEOF
29694 #line $LINENO "configure"
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700 #include <pthread.h>
29701 int
29702 main ()
29703 {
29704
29705                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
29706
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 rm -f conftest.$ac_objext
29712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29713   (eval $ac_compile) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); } &&
29717          { ac_try='test -s conftest.$ac_objext'
29718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719   (eval $ac_try) 2>&5
29720   ac_status=$?
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); }; }; then
29723
29724                     wx_cv_type_pthread_rec_mutex_init=yes
29725
29726 else
29727   echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29729
29730
29731                     wx_cv_type_pthread_rec_mutex_init=no
29732
29733
29734 fi
29735 rm -f conftest.$ac_objext conftest.$ac_ext
29736
29737 fi
29738 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29739 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
29740         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
29741           cat >>confdefs.h <<\_ACEOF
29742 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
29743 _ACEOF
29744
29745         else
29746                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29747 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
29748         fi
29749       fi
29750     fi
29751
29752 else
29753     if test "$wxUSE_THREADS" = "yes" ; then
29754       case "${host}" in
29755         *-*-mingw32* )
29756                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29757 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29758 if test "${wx_cv_cflags_mthread+set}" = set; then
29759   echo $ECHO_N "(cached) $ECHO_C" >&6
29760 else
29761
29762                     CFLAGS_OLD="$CFLAGS"
29763                     CFLAGS="$CFLAGS -mthreads"
29764                     cat >conftest.$ac_ext <<_ACEOF
29765 #line $LINENO "configure"
29766 /* confdefs.h.  */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h.  */
29771
29772 int
29773 main ()
29774 {
29775
29776   ;
29777   return 0;
29778 }
29779 _ACEOF
29780 rm -f conftest.$ac_objext
29781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29782   (eval $ac_compile) 2>&5
29783   ac_status=$?
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); } &&
29786          { ac_try='test -s conftest.$ac_objext'
29787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788   (eval $ac_try) 2>&5
29789   ac_status=$?
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); }; }; then
29792   wx_cv_cflags_mthread=yes
29793 else
29794   echo "$as_me: failed program was:" >&5
29795 sed 's/^/| /' conftest.$ac_ext >&5
29796
29797 wx_cv_cflags_mthread=no
29798
29799 fi
29800 rm -f conftest.$ac_objext conftest.$ac_ext
29801
29802
29803 fi
29804 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29805 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
29806
29807             if test "$wx_cv_cflags_mthread" = "yes"; then
29808                                 CXXFLAGS="$CXXFLAGS -mthreads"
29809                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29810                 LDFLAGS="$LDFLAGS -mthreads"
29811             else
29812                                 CFLAGS="$CFLAGS_OLD"
29813             fi
29814         ;;
29815       esac
29816     fi
29817 fi
29818
29819 if test "$wxUSE_THREADS" = "yes"; then
29820   cat >>confdefs.h <<\_ACEOF
29821 #define wxUSE_THREADS 1
29822 _ACEOF
29823
29824
29825   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
29826 else
29827       if test "$ac_cv_func_strtok_r" = "yes"; then
29828     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29829 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
29830     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29831         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
29832         echo "$as_me:$LINENO: result: yes" >&5
29833 echo "${ECHO_T}yes" >&6
29834     else
29835         echo "$as_me:$LINENO: result: no" >&5
29836 echo "${ECHO_T}no" >&6
29837     fi
29838   fi
29839 fi
29840
29841 if test "$WXGTK20" = 1 ; then
29842   cat >>confdefs.h <<_ACEOF
29843 #define __WXGTK20__ $WXGTK20
29844 _ACEOF
29845
29846   WXGTK12=1
29847 fi
29848
29849 if test "$WXGTK12" = 1 ; then
29850   cat >>confdefs.h <<_ACEOF
29851 #define __WXGTK12__ $WXGTK12
29852 _ACEOF
29853
29854 fi
29855
29856 if test "$WXGTK127" = 1 ; then
29857   cat >>confdefs.h <<_ACEOF
29858 #define __WXGTK127__ $WXGTK127
29859 _ACEOF
29860
29861 fi
29862
29863 WXDEBUG=
29864
29865 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29866     WXDEBUG="-g"
29867     wxUSE_OPTIMISE=no
29868 fi
29869
29870 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29871     wxUSE_DEBUG_INFO=yes
29872     WXDEBUG="-ggdb"
29873 fi
29874
29875 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
29876     cat >>confdefs.h <<\_ACEOF
29877 #define WXDEBUG 1
29878 _ACEOF
29879
29880     WXDEBUG_DEFINE="-D__WXDEBUG__"
29881 else
29882     if test "$wxUSE_GTK" = 1 ; then
29883         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29884     fi
29885 fi
29886
29887 if test "$wxUSE_MEM_TRACING" = "yes" ; then
29888     cat >>confdefs.h <<\_ACEOF
29889 #define wxUSE_MEMORY_TRACING 1
29890 _ACEOF
29891
29892     cat >>confdefs.h <<\_ACEOF
29893 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
29894 _ACEOF
29895
29896     cat >>confdefs.h <<\_ACEOF
29897 #define wxUSE_DEBUG_NEW_ALWAYS 1
29898 _ACEOF
29899
29900     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29901 fi
29902
29903 if test "$wxUSE_DMALLOC" = "yes" ; then
29904     DMALLOC_LIBS="-ldmalloc"
29905 fi
29906
29907 PROFILE=
29908 if test "$wxUSE_PROFILE" = "yes" ; then
29909     PROFILE=" -pg"
29910 fi
29911
29912 CODE_GEN_FLAGS=
29913 CODE_GEN_FLAGS_CXX=
29914 if test "$GCC" = "yes" ; then
29915     if test "$wxUSE_NO_RTTI" = "yes" ; then
29916         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
29917     fi
29918     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29919         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29920     fi
29921     if test "$wxUSE_PERMISSIVE" = "yes" ; then
29922         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29923     fi
29924     if test "$USE_WIN32" = 1 ; then
29925         # I'm not even really sure what this was ever added to solve,
29926         # but someone added it for mingw native builds, so I guess
29927         # they had a reason, right??
29928         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
29929     fi
29930
29931                                                 case "${host}" in
29932       powerpc*-*-aix* )
29933         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29934         ;;
29935       *-hppa* )
29936         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29937         ;;
29938     esac
29939 fi
29940
29941 OPTIMISE=
29942 if test "$wxUSE_OPTIMISE" = "no" ; then
29943     if test "$GCC" = yes ; then
29944                         OPTIMISE="-O0"
29945     fi
29946 else
29947     if test "$GCC" = yes ; then
29948         OPTIMISE="-O2"
29949
29950                 case "${host}" in
29951             i586-*-*|i686-*-* )
29952             OPTIMISE="${OPTIMISE} "
29953         ;;
29954         esac
29955     else
29956         OPTIMISE="-O"
29957     fi
29958 fi
29959
29960
29961 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
29962     cat >>confdefs.h <<\_ACEOF
29963 #define WXWIN_COMPATIBILITY_2 1
29964 _ACEOF
29965
29966
29967     WXWIN_COMPATIBILITY_2_2="yes"
29968 fi
29969
29970 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
29971     cat >>confdefs.h <<\_ACEOF
29972 #define WXWIN_COMPATIBILITY_2_2 1
29973 _ACEOF
29974
29975
29976     WXWIN_COMPATIBILITY_2_4="yes"
29977 fi
29978
29979 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
29980     cat >>confdefs.h <<\_ACEOF
29981 #define WXWIN_COMPATIBILITY_2_4 1
29982 _ACEOF
29983
29984 fi
29985
29986
29987 if test "$wxUSE_GUI" = "yes"; then
29988   cat >>confdefs.h <<\_ACEOF
29989 #define wxUSE_GUI 1
29990 _ACEOF
29991
29992
29993                       else
29994   cat >>confdefs.h <<\_ACEOF
29995 #define wxUSE_NOGUI 1
29996 _ACEOF
29997
29998 fi
29999
30000
30001 if test "$wxUSE_UNIX" = "yes"; then
30002   cat >>confdefs.h <<\_ACEOF
30003 #define wxUSE_UNIX 1
30004 _ACEOF
30005
30006 fi
30007
30008
30009 if test "$wxUSE_APPLE_IEEE" = "yes"; then
30010   cat >>confdefs.h <<\_ACEOF
30011 #define wxUSE_APPLE_IEEE 1
30012 _ACEOF
30013
30014 fi
30015
30016 if test "$wxUSE_TIMER" = "yes"; then
30017   cat >>confdefs.h <<\_ACEOF
30018 #define wxUSE_TIMER 1
30019 _ACEOF
30020
30021 fi
30022
30023 if test "$wxUSE_WAVE" = "yes"; then
30024   cat >>confdefs.h <<\_ACEOF
30025 #define wxUSE_WAVE 1
30026 _ACEOF
30027
30028 fi
30029
30030 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
30031   cat >>confdefs.h <<\_ACEOF
30032 #define wxUSE_CMDLINE_PARSER 1
30033 _ACEOF
30034
30035 fi
30036
30037 if test "$wxUSE_STOPWATCH" = "yes"; then
30038   cat >>confdefs.h <<\_ACEOF
30039 #define wxUSE_STOPWATCH 1
30040 _ACEOF
30041
30042 fi
30043
30044 if test "$wxUSE_DATETIME" = "yes"; then
30045   cat >>confdefs.h <<\_ACEOF
30046 #define wxUSE_DATETIME 1
30047 _ACEOF
30048
30049 fi
30050
30051 if test "$wxUSE_FILE" = "yes"; then
30052   cat >>confdefs.h <<\_ACEOF
30053 #define wxUSE_FILE 1
30054 _ACEOF
30055
30056 fi
30057
30058 if test "$wxUSE_FFILE" = "yes"; then
30059   cat >>confdefs.h <<\_ACEOF
30060 #define wxUSE_FFILE 1
30061 _ACEOF
30062
30063 fi
30064
30065 if test "$wxUSE_FILESYSTEM" = "yes"; then
30066   cat >>confdefs.h <<\_ACEOF
30067 #define wxUSE_FILESYSTEM 1
30068 _ACEOF
30069
30070 fi
30071
30072 if test "$wxUSE_FS_INET" = "yes"; then
30073   cat >>confdefs.h <<\_ACEOF
30074 #define wxUSE_FS_INET 1
30075 _ACEOF
30076
30077 fi
30078
30079 if test "$wxUSE_FS_ZIP" = "yes"; then
30080   cat >>confdefs.h <<\_ACEOF
30081 #define wxUSE_FS_ZIP 1
30082 _ACEOF
30083
30084 fi
30085
30086 if test "$wxUSE_ZIPSTREAM" = "yes"; then
30087   cat >>confdefs.h <<\_ACEOF
30088 #define wxUSE_ZIPSTREAM 1
30089 _ACEOF
30090
30091 fi
30092
30093 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30094   cat >>confdefs.h <<\_ACEOF
30095 #define wxUSE_ON_FATAL_EXCEPTION 1
30096 _ACEOF
30097
30098 fi
30099
30100 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30101   cat >>confdefs.h <<\_ACEOF
30102 #define wxUSE_SNGLINST_CHECKER 1
30103 _ACEOF
30104
30105 fi
30106
30107 if test "$wxUSE_BUSYINFO" = "yes"; then
30108   cat >>confdefs.h <<\_ACEOF
30109 #define wxUSE_BUSYINFO 1
30110 _ACEOF
30111
30112 fi
30113
30114 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
30115   cat >>confdefs.h <<\_ACEOF
30116 #define wxUSE_STD_IOSTREAM 1
30117 _ACEOF
30118
30119 fi
30120
30121 if test "$wxUSE_TEXTBUFFER" = "yes"; then
30122     cat >>confdefs.h <<\_ACEOF
30123 #define wxUSE_TEXTBUFFER 1
30124 _ACEOF
30125
30126 fi
30127
30128 if test "$wxUSE_TEXTFILE" = "yes"; then
30129   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
30130     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30131 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
30132   else
30133     cat >>confdefs.h <<\_ACEOF
30134 #define wxUSE_TEXTFILE 1
30135 _ACEOF
30136
30137   fi
30138 fi
30139
30140 if test "$wxUSE_CONFIG" = "yes" ; then
30141   if test "$wxUSE_TEXTFILE" != "yes"; then
30142     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30143 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
30144   else
30145     cat >>confdefs.h <<\_ACEOF
30146 #define wxUSE_CONFIG 1
30147 _ACEOF
30148
30149     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30150   fi
30151 fi
30152
30153 if test "$wxUSE_INTL" = "yes" ; then
30154   if test "$wxUSE_FILE" != "yes"; then
30155     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30156 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
30157   else
30158     cat >>confdefs.h <<\_ACEOF
30159 #define wxUSE_INTL 1
30160 _ACEOF
30161
30162     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
30163     GUIDIST="$GUIDIST INTL_DIST"
30164   fi
30165 fi
30166
30167 if test "$wxUSE_LOG" = "yes"; then
30168   cat >>confdefs.h <<\_ACEOF
30169 #define wxUSE_LOG 1
30170 _ACEOF
30171
30172
30173     if test "$wxUSE_LOGGUI" = "yes"; then
30174       cat >>confdefs.h <<\_ACEOF
30175 #define wxUSE_LOGGUI 1
30176 _ACEOF
30177
30178     fi
30179
30180     if test "$wxUSE_LOGWINDOW" = "yes"; then
30181       cat >>confdefs.h <<\_ACEOF
30182 #define wxUSE_LOGWINDOW 1
30183 _ACEOF
30184
30185     fi
30186
30187     if test "$wxUSE_LOGDIALOG" = "yes"; then
30188       cat >>confdefs.h <<\_ACEOF
30189 #define wxUSE_LOG_DIALOG 1
30190 _ACEOF
30191
30192     fi
30193 fi
30194
30195 if test "$wxUSE_LONGLONG" = "yes"; then
30196   cat >>confdefs.h <<\_ACEOF
30197 #define wxUSE_LONGLONG 1
30198 _ACEOF
30199
30200 fi
30201
30202 if test "$wxUSE_GEOMETRY" = "yes"; then
30203   cat >>confdefs.h <<\_ACEOF
30204 #define wxUSE_GEOMETRY 1
30205 _ACEOF
30206
30207 fi
30208
30209 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
30210   cat >>confdefs.h <<\_ACEOF
30211 #define wxUSE_DIALUP_MANAGER 1
30212 _ACEOF
30213
30214   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
30215 fi
30216
30217 if test "$wxUSE_STREAMS" = "yes" ; then
30218   cat >>confdefs.h <<\_ACEOF
30219 #define wxUSE_STREAMS 1
30220 _ACEOF
30221
30222 fi
30223
30224
30225 if test "$wxUSE_DATETIME" = "yes"; then
30226
30227 for ac_func in strptime
30228 do
30229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30230 echo "$as_me:$LINENO: checking for $ac_func" >&5
30231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30232 if eval "test \"\${$as_ac_var+set}\" = set"; then
30233   echo $ECHO_N "(cached) $ECHO_C" >&6
30234 else
30235   cat >conftest.$ac_ext <<_ACEOF
30236 #line $LINENO "configure"
30237 /* confdefs.h.  */
30238 _ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h.  */
30242 /* System header to define __stub macros and hopefully few prototypes,
30243     which can conflict with char $ac_func (); below.
30244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30245     <limits.h> exists even on freestanding compilers.  */
30246 #ifdef __STDC__
30247 # include <limits.h>
30248 #else
30249 # include <assert.h>
30250 #endif
30251 /* Override any gcc2 internal prototype to avoid an error.  */
30252 #ifdef __cplusplus
30253 extern "C"
30254 {
30255 #endif
30256 /* We use char because int might match the return type of a gcc2
30257    builtin and then its argument prototype would still apply.  */
30258 char $ac_func ();
30259 /* The GNU C library defines this for functions which it implements
30260     to always fail with ENOSYS.  Some functions are actually named
30261     something starting with __ and the normal name is an alias.  */
30262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30263 choke me
30264 #else
30265 char (*f) () = $ac_func;
30266 #endif
30267 #ifdef __cplusplus
30268 }
30269 #endif
30270
30271 int
30272 main ()
30273 {
30274 return f != $ac_func;
30275   ;
30276   return 0;
30277 }
30278 _ACEOF
30279 rm -f conftest.$ac_objext conftest$ac_exeext
30280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30281   (eval $ac_link) 2>&5
30282   ac_status=$?
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); } &&
30285          { ac_try='test -s conftest$ac_exeext'
30286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287   (eval $ac_try) 2>&5
30288   ac_status=$?
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); }; }; then
30291   eval "$as_ac_var=yes"
30292 else
30293   echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30295
30296 eval "$as_ac_var=no"
30297 fi
30298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30299 fi
30300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30302 if test `eval echo '${'$as_ac_var'}'` = yes; then
30303   cat >>confdefs.h <<_ACEOF
30304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30305 _ACEOF
30306
30307 fi
30308 done
30309
30310
30311             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30312 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30313 if test "${wx_cv_var_timezone+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316
30317                         cat >conftest.$ac_ext <<_ACEOF
30318 #line $LINENO "configure"
30319 /* confdefs.h.  */
30320 _ACEOF
30321 cat confdefs.h >>conftest.$ac_ext
30322 cat >>conftest.$ac_ext <<_ACEOF
30323 /* end confdefs.h.  */
30324
30325                                 #include <time.h>
30326
30327 int
30328 main ()
30329 {
30330
30331                                 int tz;
30332                                 tz = timezone;
30333
30334   ;
30335   return 0;
30336 }
30337 _ACEOF
30338 rm -f conftest.$ac_objext
30339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30340   (eval $ac_compile) 2>&5
30341   ac_status=$?
30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343   (exit $ac_status); } &&
30344          { ac_try='test -s conftest.$ac_objext'
30345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30346   (eval $ac_try) 2>&5
30347   ac_status=$?
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); }; }; then
30350
30351                                 wx_cv_var_timezone=timezone
30352
30353 else
30354   echo "$as_me: failed program was:" >&5
30355 sed 's/^/| /' conftest.$ac_ext >&5
30356
30357
30358                                 cat >conftest.$ac_ext <<_ACEOF
30359 #line $LINENO "configure"
30360 /* confdefs.h.  */
30361 _ACEOF
30362 cat confdefs.h >>conftest.$ac_ext
30363 cat >>conftest.$ac_ext <<_ACEOF
30364 /* end confdefs.h.  */
30365
30366                                         #include <time.h>
30367
30368 int
30369 main ()
30370 {
30371
30372                                         int tz;
30373                                         tz = _timezone;
30374
30375   ;
30376   return 0;
30377 }
30378 _ACEOF
30379 rm -f conftest.$ac_objext
30380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30381   (eval $ac_compile) 2>&5
30382   ac_status=$?
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } &&
30385          { ac_try='test -s conftest.$ac_objext'
30386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30387   (eval $ac_try) 2>&5
30388   ac_status=$?
30389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390   (exit $ac_status); }; }; then
30391
30392                                         wx_cv_var_timezone=_timezone
30393
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398
30399                                         cat >conftest.$ac_ext <<_ACEOF
30400 #line $LINENO "configure"
30401 /* confdefs.h.  */
30402 _ACEOF
30403 cat confdefs.h >>conftest.$ac_ext
30404 cat >>conftest.$ac_ext <<_ACEOF
30405 /* end confdefs.h.  */
30406
30407                                                 #include <time.h>
30408
30409 int
30410 main ()
30411 {
30412
30413                                                 int tz;
30414                                                 tz = __timezone;
30415
30416   ;
30417   return 0;
30418 }
30419 _ACEOF
30420 rm -f conftest.$ac_objext
30421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30422   (eval $ac_compile) 2>&5
30423   ac_status=$?
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); } &&
30426          { ac_try='test -s conftest.$ac_objext'
30427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428   (eval $ac_try) 2>&5
30429   ac_status=$?
30430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431   (exit $ac_status); }; }; then
30432
30433                                                 wx_cv_var_timezone=__timezone
30434
30435 else
30436   echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30438
30439
30440                                                 if test "$USE_DOS" = 0 ; then
30441                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30442 echo "$as_me: WARNING: no timezone variable" >&2;}
30443                                                 fi
30444
30445
30446 fi
30447 rm -f conftest.$ac_objext conftest.$ac_ext
30448
30449
30450 fi
30451 rm -f conftest.$ac_objext conftest.$ac_ext
30452
30453
30454 fi
30455 rm -f conftest.$ac_objext conftest.$ac_ext
30456
30457
30458 fi
30459 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30460 echo "${ECHO_T}$wx_cv_var_timezone" >&6
30461
30462         if test "x$wx_cv_var_timezone" != x ; then
30463         cat >>confdefs.h <<_ACEOF
30464 #define WX_TIMEZONE $wx_cv_var_timezone
30465 _ACEOF
30466
30467     fi
30468
30469
30470 for ac_func in localtime
30471 do
30472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30473 echo "$as_me:$LINENO: checking for $ac_func" >&5
30474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30475 if eval "test \"\${$as_ac_var+set}\" = set"; then
30476   echo $ECHO_N "(cached) $ECHO_C" >&6
30477 else
30478   cat >conftest.$ac_ext <<_ACEOF
30479 #line $LINENO "configure"
30480 /* confdefs.h.  */
30481 _ACEOF
30482 cat confdefs.h >>conftest.$ac_ext
30483 cat >>conftest.$ac_ext <<_ACEOF
30484 /* end confdefs.h.  */
30485 /* System header to define __stub macros and hopefully few prototypes,
30486     which can conflict with char $ac_func (); below.
30487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30488     <limits.h> exists even on freestanding compilers.  */
30489 #ifdef __STDC__
30490 # include <limits.h>
30491 #else
30492 # include <assert.h>
30493 #endif
30494 /* Override any gcc2 internal prototype to avoid an error.  */
30495 #ifdef __cplusplus
30496 extern "C"
30497 {
30498 #endif
30499 /* We use char because int might match the return type of a gcc2
30500    builtin and then its argument prototype would still apply.  */
30501 char $ac_func ();
30502 /* The GNU C library defines this for functions which it implements
30503     to always fail with ENOSYS.  Some functions are actually named
30504     something starting with __ and the normal name is an alias.  */
30505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30506 choke me
30507 #else
30508 char (*f) () = $ac_func;
30509 #endif
30510 #ifdef __cplusplus
30511 }
30512 #endif
30513
30514 int
30515 main ()
30516 {
30517 return f != $ac_func;
30518   ;
30519   return 0;
30520 }
30521 _ACEOF
30522 rm -f conftest.$ac_objext conftest$ac_exeext
30523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30524   (eval $ac_link) 2>&5
30525   ac_status=$?
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); } &&
30528          { ac_try='test -s conftest$ac_exeext'
30529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530   (eval $ac_try) 2>&5
30531   ac_status=$?
30532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533   (exit $ac_status); }; }; then
30534   eval "$as_ac_var=yes"
30535 else
30536   echo "$as_me: failed program was:" >&5
30537 sed 's/^/| /' conftest.$ac_ext >&5
30538
30539 eval "$as_ac_var=no"
30540 fi
30541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30542 fi
30543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30545 if test `eval echo '${'$as_ac_var'}'` = yes; then
30546   cat >>confdefs.h <<_ACEOF
30547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30548 _ACEOF
30549
30550 fi
30551 done
30552
30553
30554     if test "$ac_cv_func_localtime" = "yes"; then
30555         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30556 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30557 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30558   echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560
30561             cat >conftest.$ac_ext <<_ACEOF
30562 #line $LINENO "configure"
30563 /* confdefs.h.  */
30564 _ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h.  */
30568
30569                     #include <time.h>
30570
30571 int
30572 main ()
30573 {
30574
30575                     struct tm tm;
30576                     tm.tm_gmtoff++;
30577
30578   ;
30579   return 0;
30580 }
30581 _ACEOF
30582 rm -f conftest.$ac_objext
30583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30584   (eval $ac_compile) 2>&5
30585   ac_status=$?
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); } &&
30588          { ac_try='test -s conftest.$ac_objext'
30589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590   (eval $ac_try) 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; }; then
30594
30595                     wx_cv_struct_tm_has_gmtoff=yes
30596
30597 else
30598   echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30600
30601 wx_cv_struct_tm_has_gmtoff=no
30602
30603 fi
30604 rm -f conftest.$ac_objext conftest.$ac_ext
30605
30606 fi
30607 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30608 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
30609     fi
30610
30611     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
30612         cat >>confdefs.h <<\_ACEOF
30613 #define WX_GMTOFF_IN_TM 1
30614 _ACEOF
30615
30616     fi
30617
30618
30619
30620 for ac_func in gettimeofday ftime
30621 do
30622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30623 echo "$as_me:$LINENO: checking for $ac_func" >&5
30624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30625 if eval "test \"\${$as_ac_var+set}\" = set"; then
30626   echo $ECHO_N "(cached) $ECHO_C" >&6
30627 else
30628   cat >conftest.$ac_ext <<_ACEOF
30629 #line $LINENO "configure"
30630 /* confdefs.h.  */
30631 _ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h.  */
30635 /* System header to define __stub macros and hopefully few prototypes,
30636     which can conflict with char $ac_func (); below.
30637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30638     <limits.h> exists even on freestanding compilers.  */
30639 #ifdef __STDC__
30640 # include <limits.h>
30641 #else
30642 # include <assert.h>
30643 #endif
30644 /* Override any gcc2 internal prototype to avoid an error.  */
30645 #ifdef __cplusplus
30646 extern "C"
30647 {
30648 #endif
30649 /* We use char because int might match the return type of a gcc2
30650    builtin and then its argument prototype would still apply.  */
30651 char $ac_func ();
30652 /* The GNU C library defines this for functions which it implements
30653     to always fail with ENOSYS.  Some functions are actually named
30654     something starting with __ and the normal name is an alias.  */
30655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30656 choke me
30657 #else
30658 char (*f) () = $ac_func;
30659 #endif
30660 #ifdef __cplusplus
30661 }
30662 #endif
30663
30664 int
30665 main ()
30666 {
30667 return f != $ac_func;
30668   ;
30669   return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30674   (eval $ac_link) 2>&5
30675   ac_status=$?
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); } &&
30678          { ac_try='test -s conftest$ac_exeext'
30679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30680   (eval $ac_try) 2>&5
30681   ac_status=$?
30682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683   (exit $ac_status); }; }; then
30684   eval "$as_ac_var=yes"
30685 else
30686   echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30688
30689 eval "$as_ac_var=no"
30690 fi
30691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30692 fi
30693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30695 if test `eval echo '${'$as_ac_var'}'` = yes; then
30696   cat >>confdefs.h <<_ACEOF
30697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698 _ACEOF
30699  break
30700 fi
30701 done
30702
30703
30704     if test "$ac_cv_func_gettimeofday" = "yes"; then
30705         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30706 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30707 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30708   echo $ECHO_N "(cached) $ECHO_C" >&6
30709 else
30710
30711
30712
30713             ac_ext=cc
30714 ac_cpp='$CXXCPP $CPPFLAGS'
30715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30718
30719
30720             cat >conftest.$ac_ext <<_ACEOF
30721 #line $LINENO "configure"
30722 /* confdefs.h.  */
30723 _ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h.  */
30727
30728                     #include <sys/time.h>
30729                     #include <unistd.h>
30730
30731 int
30732 main ()
30733 {
30734
30735                     struct timeval tv;
30736                     gettimeofday(&tv, NULL);
30737
30738   ;
30739   return 0;
30740 }
30741 _ACEOF
30742 rm -f conftest.$ac_objext
30743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30744   (eval $ac_compile) 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } &&
30748          { ac_try='test -s conftest.$ac_objext'
30749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30750   (eval $ac_try) 2>&5
30751   ac_status=$?
30752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753   (exit $ac_status); }; }; then
30754   wx_cv_func_gettimeofday_has_2_args=yes
30755 else
30756   echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30758
30759 cat >conftest.$ac_ext <<_ACEOF
30760 #line $LINENO "configure"
30761 /* confdefs.h.  */
30762 _ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h.  */
30766
30767                         #include <sys/time.h>
30768                         #include <unistd.h>
30769
30770 int
30771 main ()
30772 {
30773
30774                         struct timeval tv;
30775                         gettimeofday(&tv);
30776
30777   ;
30778   return 0;
30779 }
30780 _ACEOF
30781 rm -f conftest.$ac_objext
30782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30783   (eval $ac_compile) 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); } &&
30787          { ac_try='test -s conftest.$ac_objext'
30788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30789   (eval $ac_try) 2>&5
30790   ac_status=$?
30791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792   (exit $ac_status); }; }; then
30793   wx_cv_func_gettimeofday_has_2_args=no
30794 else
30795   echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798
30799                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30800 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
30801                         wx_cv_func_gettimeofday_has_2_args=unknown
30802
30803
30804 fi
30805 rm -f conftest.$ac_objext conftest.$ac_ext
30806
30807 fi
30808 rm -f conftest.$ac_objext conftest.$ac_ext
30809             ac_ext=c
30810 ac_cpp='$CPP $CPPFLAGS'
30811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30814
30815
30816 fi
30817 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30818 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
30819
30820         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
30821             cat >>confdefs.h <<\_ACEOF
30822 #define WX_GETTIMEOFDAY_NO_TZ 1
30823 _ACEOF
30824
30825         fi
30826     fi
30827
30828     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30829 fi
30830
30831
30832 if test "$wxUSE_SOCKETS" = "yes"; then
30833     if test "$wxUSE_MGL" = "1"; then
30834         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30835 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
30836         wxUSE_SOCKETS="no"
30837     fi
30838 fi
30839
30840 if test "$wxUSE_SOCKETS" = "yes"; then
30841         if test "$TOOLKIT" != "MSW"; then
30842                 echo "$as_me:$LINENO: checking for socket" >&5
30843 echo $ECHO_N "checking for socket... $ECHO_C" >&6
30844 if test "${ac_cv_func_socket+set}" = set; then
30845   echo $ECHO_N "(cached) $ECHO_C" >&6
30846 else
30847   cat >conftest.$ac_ext <<_ACEOF
30848 #line $LINENO "configure"
30849 /* confdefs.h.  */
30850 _ACEOF
30851 cat confdefs.h >>conftest.$ac_ext
30852 cat >>conftest.$ac_ext <<_ACEOF
30853 /* end confdefs.h.  */
30854 /* System header to define __stub macros and hopefully few prototypes,
30855     which can conflict with char socket (); below.
30856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30857     <limits.h> exists even on freestanding compilers.  */
30858 #ifdef __STDC__
30859 # include <limits.h>
30860 #else
30861 # include <assert.h>
30862 #endif
30863 /* Override any gcc2 internal prototype to avoid an error.  */
30864 #ifdef __cplusplus
30865 extern "C"
30866 {
30867 #endif
30868 /* We use char because int might match the return type of a gcc2
30869    builtin and then its argument prototype would still apply.  */
30870 char socket ();
30871 /* The GNU C library defines this for functions which it implements
30872     to always fail with ENOSYS.  Some functions are actually named
30873     something starting with __ and the normal name is an alias.  */
30874 #if defined (__stub_socket) || defined (__stub___socket)
30875 choke me
30876 #else
30877 char (*f) () = socket;
30878 #endif
30879 #ifdef __cplusplus
30880 }
30881 #endif
30882
30883 int
30884 main ()
30885 {
30886 return f != socket;
30887   ;
30888   return 0;
30889 }
30890 _ACEOF
30891 rm -f conftest.$ac_objext conftest$ac_exeext
30892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30893   (eval $ac_link) 2>&5
30894   ac_status=$?
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); } &&
30897          { ac_try='test -s conftest$ac_exeext'
30898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30899   (eval $ac_try) 2>&5
30900   ac_status=$?
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); }; }; then
30903   ac_cv_func_socket=yes
30904 else
30905   echo "$as_me: failed program was:" >&5
30906 sed 's/^/| /' conftest.$ac_ext >&5
30907
30908 ac_cv_func_socket=no
30909 fi
30910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30911 fi
30912 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30913 echo "${ECHO_T}$ac_cv_func_socket" >&6
30914 if test $ac_cv_func_socket = yes; then
30915   :
30916 else
30917   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30918 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30919 if test "${ac_cv_lib_socket_socket+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   ac_check_lib_save_LIBS=$LIBS
30923 LIBS="-lsocket  $LIBS"
30924 cat >conftest.$ac_ext <<_ACEOF
30925 #line $LINENO "configure"
30926 /* confdefs.h.  */
30927 _ACEOF
30928 cat confdefs.h >>conftest.$ac_ext
30929 cat >>conftest.$ac_ext <<_ACEOF
30930 /* end confdefs.h.  */
30931
30932 /* Override any gcc2 internal prototype to avoid an error.  */
30933 #ifdef __cplusplus
30934 extern "C"
30935 #endif
30936 /* We use char because int might match the return type of a gcc2
30937    builtin and then its argument prototype would still apply.  */
30938 char socket ();
30939 int
30940 main ()
30941 {
30942 socket ();
30943   ;
30944   return 0;
30945 }
30946 _ACEOF
30947 rm -f conftest.$ac_objext conftest$ac_exeext
30948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30949   (eval $ac_link) 2>&5
30950   ac_status=$?
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); } &&
30953          { ac_try='test -s conftest$ac_exeext'
30954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955   (eval $ac_try) 2>&5
30956   ac_status=$?
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); }; }; then
30959   ac_cv_lib_socket_socket=yes
30960 else
30961   echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30963
30964 ac_cv_lib_socket_socket=no
30965 fi
30966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30967 LIBS=$ac_check_lib_save_LIBS
30968 fi
30969 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30970 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30971 if test $ac_cv_lib_socket_socket = yes; then
30972   if test "$INET_LINK" != " -lsocket"; then
30973                     INET_LINK="$INET_LINK -lsocket"
30974                 fi
30975 else
30976
30977                     { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30978 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
30979                     wxUSE_SOCKETS=no
30980
30981
30982 fi
30983
30984
30985 fi
30986
30987     fi
30988 fi
30989
30990 if test "$wxUSE_SOCKETS" = "yes" ; then
30991                 if test "$TOOLKIT" != "MSW"; then
30992                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30993 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30994 if test "${wx_cv_type_getsockname3+set}" = set; then
30995   echo $ECHO_N "(cached) $ECHO_C" >&6
30996 else
30997
30998                 cat >conftest.$ac_ext <<_ACEOF
30999 #line $LINENO "configure"
31000 /* confdefs.h.  */
31001 _ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h.  */
31005
31006                         #include <sys/types.h>
31007                         #include <sys/socket.h>
31008
31009 int
31010 main ()
31011 {
31012
31013                         socklen_t len;
31014                         getsockname(0, 0, &len);
31015
31016   ;
31017   return 0;
31018 }
31019 _ACEOF
31020 rm -f conftest.$ac_objext
31021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31022   (eval $ac_compile) 2>&5
31023   ac_status=$?
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); } &&
31026          { ac_try='test -s conftest.$ac_objext'
31027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31028   (eval $ac_try) 2>&5
31029   ac_status=$?
31030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031   (exit $ac_status); }; }; then
31032   wx_cv_type_getsockname3=socklen_t
31033 else
31034   echo "$as_me: failed program was:" >&5
31035 sed 's/^/| /' conftest.$ac_ext >&5
31036
31037
31038                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
31039                         if test "$GCC" = yes ; then
31040                             CFLAGS="$CFLAGS -Werror"
31041                         fi
31042
31043                         cat >conftest.$ac_ext <<_ACEOF
31044 #line $LINENO "configure"
31045 /* confdefs.h.  */
31046 _ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h.  */
31050
31051                                 #include <sys/types.h>
31052                                 #include <sys/socket.h>
31053
31054 int
31055 main ()
31056 {
31057
31058                                 size_t len;
31059                                 getsockname(0, 0, &len);
31060
31061   ;
31062   return 0;
31063 }
31064 _ACEOF
31065 rm -f conftest.$ac_objext
31066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31067   (eval $ac_compile) 2>&5
31068   ac_status=$?
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); } &&
31071          { ac_try='test -s conftest.$ac_objext'
31072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073   (eval $ac_try) 2>&5
31074   ac_status=$?
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); }; }; then
31077   wx_cv_type_getsockname3=size_t
31078 else
31079   echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31081
31082 cat >conftest.$ac_ext <<_ACEOF
31083 #line $LINENO "configure"
31084 /* confdefs.h.  */
31085 _ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h.  */
31089
31090                                     #include <sys/types.h>
31091                                     #include <sys/socket.h>
31092
31093 int
31094 main ()
31095 {
31096
31097                                     int len;
31098                                     getsockname(0, 0, &len);
31099
31100   ;
31101   return 0;
31102 }
31103 _ACEOF
31104 rm -f conftest.$ac_objext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31106   (eval $ac_compile) 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); } &&
31110          { ac_try='test -s conftest.$ac_objext'
31111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31112   (eval $ac_try) 2>&5
31113   ac_status=$?
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); }; }; then
31116   wx_cv_type_getsockname3=int
31117 else
31118   echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31120
31121 wx_cv_type_getsockname3=unknown
31122
31123 fi
31124 rm -f conftest.$ac_objext conftest.$ac_ext
31125
31126 fi
31127 rm -f conftest.$ac_objext conftest.$ac_ext
31128
31129                         CFLAGS="$CFLAGS_OLD"
31130
31131
31132 fi
31133 rm -f conftest.$ac_objext conftest.$ac_ext
31134
31135 fi
31136 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31137 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
31138
31139         if test "$wx_cv_type_getsockname3" = "unknown"; then
31140             wxUSE_SOCKETS=no
31141             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31142 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
31143         else
31144             cat >>confdefs.h <<_ACEOF
31145 #define SOCKLEN_T $wx_cv_type_getsockname3
31146 _ACEOF
31147
31148         fi
31149     fi
31150 fi
31151
31152 if test "$wxUSE_SOCKETS" = "yes" ; then
31153     cat >>confdefs.h <<\_ACEOF
31154 #define wxUSE_SOCKETS 1
31155 _ACEOF
31156
31157     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
31158 fi
31159
31160
31161 if test "$wxUSE_GUI" = "yes"; then
31162
31163     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
31164         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31165 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
31166         wxUSE_JOYSTICK=no
31167      fi
31168     if test "$TOOLKIT" = "MOTIF"; then
31169         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31170 echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
31171         wxUSE_JOYSTICK=no
31172      fi
31173     if test "$TOOLKIT" = "X11"; then
31174         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31175 echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
31176         wxUSE_JOYSTICK=no
31177      fi
31178
31179         if test "$TOOLKIT" != "MSW"; then
31180         if test "$wxUSE_JOYSTICK" = "yes"; then
31181
31182 for ac_header in linux/joystick.h
31183 do
31184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31186   echo "$as_me:$LINENO: checking for $ac_header" >&5
31187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31189   echo $ECHO_N "(cached) $ECHO_C" >&6
31190 fi
31191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31193 else
31194   # Is the header compilable?
31195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31197 cat >conftest.$ac_ext <<_ACEOF
31198 #line $LINENO "configure"
31199 /* confdefs.h.  */
31200 _ACEOF
31201 cat confdefs.h >>conftest.$ac_ext
31202 cat >>conftest.$ac_ext <<_ACEOF
31203 /* end confdefs.h.  */
31204 $ac_includes_default
31205 #include <$ac_header>
31206 _ACEOF
31207 rm -f conftest.$ac_objext
31208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31209   (eval $ac_compile) 2>&5
31210   ac_status=$?
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); } &&
31213          { ac_try='test -s conftest.$ac_objext'
31214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215   (eval $ac_try) 2>&5
31216   ac_status=$?
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); }; }; then
31219   ac_header_compiler=yes
31220 else
31221   echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31223
31224 ac_header_compiler=no
31225 fi
31226 rm -f conftest.$ac_objext conftest.$ac_ext
31227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31228 echo "${ECHO_T}$ac_header_compiler" >&6
31229
31230 # Is the header present?
31231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31233 cat >conftest.$ac_ext <<_ACEOF
31234 #line $LINENO "configure"
31235 /* confdefs.h.  */
31236 _ACEOF
31237 cat confdefs.h >>conftest.$ac_ext
31238 cat >>conftest.$ac_ext <<_ACEOF
31239 /* end confdefs.h.  */
31240 #include <$ac_header>
31241 _ACEOF
31242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31244   ac_status=$?
31245   grep -v '^ *+' conftest.er1 >conftest.err
31246   rm -f conftest.er1
31247   cat conftest.err >&5
31248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249   (exit $ac_status); } >/dev/null; then
31250   if test -s conftest.err; then
31251     ac_cpp_err=$ac_c_preproc_warn_flag
31252   else
31253     ac_cpp_err=
31254   fi
31255 else
31256   ac_cpp_err=yes
31257 fi
31258 if test -z "$ac_cpp_err"; then
31259   ac_header_preproc=yes
31260 else
31261   echo "$as_me: failed program was:" >&5
31262 sed 's/^/| /' conftest.$ac_ext >&5
31263
31264   ac_header_preproc=no
31265 fi
31266 rm -f conftest.err conftest.$ac_ext
31267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31268 echo "${ECHO_T}$ac_header_preproc" >&6
31269
31270 # So?  What about this header?
31271 case $ac_header_compiler:$ac_header_preproc in
31272   yes:no )
31273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31277     (
31278       cat <<\_ASBOX
31279 ## ------------------------------------ ##
31280 ## Report this to bug-autoconf@gnu.org. ##
31281 ## ------------------------------------ ##
31282 _ASBOX
31283     ) |
31284       sed "s/^/$as_me: WARNING:     /" >&2
31285     ;;
31286   no:yes )
31287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31289     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31293     (
31294       cat <<\_ASBOX
31295 ## ------------------------------------ ##
31296 ## Report this to bug-autoconf@gnu.org. ##
31297 ## ------------------------------------ ##
31298 _ASBOX
31299     ) |
31300       sed "s/^/$as_me: WARNING:     /" >&2
31301     ;;
31302 esac
31303 echo "$as_me:$LINENO: checking for $ac_header" >&5
31304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31306   echo $ECHO_N "(cached) $ECHO_C" >&6
31307 else
31308   eval "$as_ac_Header=$ac_header_preproc"
31309 fi
31310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31312
31313 fi
31314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31315   cat >>confdefs.h <<_ACEOF
31316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31317 _ACEOF
31318
31319 fi
31320
31321 done
31322
31323             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31324                 wxUSE_JOYSTICK=no
31325                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31326 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
31327             fi
31328         fi
31329     fi
31330
31331     if test "$wxUSE_JOYSTICK" = "yes"; then
31332         cat >>confdefs.h <<\_ACEOF
31333 #define wxUSE_JOYSTICK 1
31334 _ACEOF
31335
31336         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31337     fi
31338 fi
31339
31340
31341 if test "$TOOLKIT" != "MSW"; then
31342
31343     HAVE_DL_FUNCS=0
31344     HAVE_SHL_FUNCS=0
31345     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31346         if test "$USE_DARWIN" = 1; then
31347                         HAVE_DL_FUNCS=1
31348         else
31349
31350 for ac_func in dlopen
31351 do
31352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31353 echo "$as_me:$LINENO: checking for $ac_func" >&5
31354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31355 if eval "test \"\${$as_ac_var+set}\" = set"; then
31356   echo $ECHO_N "(cached) $ECHO_C" >&6
31357 else
31358   cat >conftest.$ac_ext <<_ACEOF
31359 #line $LINENO "configure"
31360 /* confdefs.h.  */
31361 _ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h.  */
31365 /* System header to define __stub macros and hopefully few prototypes,
31366     which can conflict with char $ac_func (); below.
31367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31368     <limits.h> exists even on freestanding compilers.  */
31369 #ifdef __STDC__
31370 # include <limits.h>
31371 #else
31372 # include <assert.h>
31373 #endif
31374 /* Override any gcc2 internal prototype to avoid an error.  */
31375 #ifdef __cplusplus
31376 extern "C"
31377 {
31378 #endif
31379 /* We use char because int might match the return type of a gcc2
31380    builtin and then its argument prototype would still apply.  */
31381 char $ac_func ();
31382 /* The GNU C library defines this for functions which it implements
31383     to always fail with ENOSYS.  Some functions are actually named
31384     something starting with __ and the normal name is an alias.  */
31385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31386 choke me
31387 #else
31388 char (*f) () = $ac_func;
31389 #endif
31390 #ifdef __cplusplus
31391 }
31392 #endif
31393
31394 int
31395 main ()
31396 {
31397 return f != $ac_func;
31398   ;
31399   return 0;
31400 }
31401 _ACEOF
31402 rm -f conftest.$ac_objext conftest$ac_exeext
31403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31404   (eval $ac_link) 2>&5
31405   ac_status=$?
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); } &&
31408          { ac_try='test -s conftest$ac_exeext'
31409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410   (eval $ac_try) 2>&5
31411   ac_status=$?
31412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413   (exit $ac_status); }; }; then
31414   eval "$as_ac_var=yes"
31415 else
31416   echo "$as_me: failed program was:" >&5
31417 sed 's/^/| /' conftest.$ac_ext >&5
31418
31419 eval "$as_ac_var=no"
31420 fi
31421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31422 fi
31423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31425 if test `eval echo '${'$as_ac_var'}'` = yes; then
31426   cat >>confdefs.h <<_ACEOF
31427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31428 _ACEOF
31429
31430                 cat >>confdefs.h <<\_ACEOF
31431 #define HAVE_DLOPEN 1
31432 _ACEOF
31433
31434                 HAVE_DL_FUNCS=1
31435
31436 else
31437
31438                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31441   echo $ECHO_N "(cached) $ECHO_C" >&6
31442 else
31443   ac_check_lib_save_LIBS=$LIBS
31444 LIBS="-ldl  $LIBS"
31445 cat >conftest.$ac_ext <<_ACEOF
31446 #line $LINENO "configure"
31447 /* confdefs.h.  */
31448 _ACEOF
31449 cat confdefs.h >>conftest.$ac_ext
31450 cat >>conftest.$ac_ext <<_ACEOF
31451 /* end confdefs.h.  */
31452
31453 /* Override any gcc2 internal prototype to avoid an error.  */
31454 #ifdef __cplusplus
31455 extern "C"
31456 #endif
31457 /* We use char because int might match the return type of a gcc2
31458    builtin and then its argument prototype would still apply.  */
31459 char dlopen ();
31460 int
31461 main ()
31462 {
31463 dlopen ();
31464   ;
31465   return 0;
31466 }
31467 _ACEOF
31468 rm -f conftest.$ac_objext conftest$ac_exeext
31469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31470   (eval $ac_link) 2>&5
31471   ac_status=$?
31472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473   (exit $ac_status); } &&
31474          { ac_try='test -s conftest$ac_exeext'
31475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31476   (eval $ac_try) 2>&5
31477   ac_status=$?
31478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31479   (exit $ac_status); }; }; then
31480   ac_cv_lib_dl_dlopen=yes
31481 else
31482   echo "$as_me: failed program was:" >&5
31483 sed 's/^/| /' conftest.$ac_ext >&5
31484
31485 ac_cv_lib_dl_dlopen=no
31486 fi
31487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31488 LIBS=$ac_check_lib_save_LIBS
31489 fi
31490 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31491 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31492 if test $ac_cv_lib_dl_dlopen = yes; then
31493
31494                                 cat >>confdefs.h <<\_ACEOF
31495 #define HAVE_DLOPEN 1
31496 _ACEOF
31497
31498                                 HAVE_DL_FUNCS=1
31499                                 DL_LINK=" -ldl$DL_LINK"
31500
31501 else
31502
31503
31504 for ac_func in shl_load
31505 do
31506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31507 echo "$as_me:$LINENO: checking for $ac_func" >&5
31508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31509 if eval "test \"\${$as_ac_var+set}\" = set"; then
31510   echo $ECHO_N "(cached) $ECHO_C" >&6
31511 else
31512   cat >conftest.$ac_ext <<_ACEOF
31513 #line $LINENO "configure"
31514 /* confdefs.h.  */
31515 _ACEOF
31516 cat confdefs.h >>conftest.$ac_ext
31517 cat >>conftest.$ac_ext <<_ACEOF
31518 /* end confdefs.h.  */
31519 /* System header to define __stub macros and hopefully few prototypes,
31520     which can conflict with char $ac_func (); below.
31521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522     <limits.h> exists even on freestanding compilers.  */
31523 #ifdef __STDC__
31524 # include <limits.h>
31525 #else
31526 # include <assert.h>
31527 #endif
31528 /* Override any gcc2 internal prototype to avoid an error.  */
31529 #ifdef __cplusplus
31530 extern "C"
31531 {
31532 #endif
31533 /* We use char because int might match the return type of a gcc2
31534    builtin and then its argument prototype would still apply.  */
31535 char $ac_func ();
31536 /* The GNU C library defines this for functions which it implements
31537     to always fail with ENOSYS.  Some functions are actually named
31538     something starting with __ and the normal name is an alias.  */
31539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31540 choke me
31541 #else
31542 char (*f) () = $ac_func;
31543 #endif
31544 #ifdef __cplusplus
31545 }
31546 #endif
31547
31548 int
31549 main ()
31550 {
31551 return f != $ac_func;
31552   ;
31553   return 0;
31554 }
31555 _ACEOF
31556 rm -f conftest.$ac_objext conftest$ac_exeext
31557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31558   (eval $ac_link) 2>&5
31559   ac_status=$?
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); } &&
31562          { ac_try='test -s conftest$ac_exeext'
31563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564   (eval $ac_try) 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); }; }; then
31568   eval "$as_ac_var=yes"
31569 else
31570   echo "$as_me: failed program was:" >&5
31571 sed 's/^/| /' conftest.$ac_ext >&5
31572
31573 eval "$as_ac_var=no"
31574 fi
31575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31576 fi
31577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31579 if test `eval echo '${'$as_ac_var'}'` = yes; then
31580   cat >>confdefs.h <<_ACEOF
31581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31582 _ACEOF
31583
31584                                                 cat >>confdefs.h <<\_ACEOF
31585 #define HAVE_SHL_LOAD 1
31586 _ACEOF
31587
31588                                                 HAVE_SHL_FUNCS=1
31589
31590 else
31591
31592                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31593 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31594 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31595   echo $ECHO_N "(cached) $ECHO_C" >&6
31596 else
31597   ac_check_lib_save_LIBS=$LIBS
31598 LIBS="-lshl_load  $LIBS"
31599 cat >conftest.$ac_ext <<_ACEOF
31600 #line $LINENO "configure"
31601 /* confdefs.h.  */
31602 _ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h.  */
31606
31607 /* Override any gcc2 internal prototype to avoid an error.  */
31608 #ifdef __cplusplus
31609 extern "C"
31610 #endif
31611 /* We use char because int might match the return type of a gcc2
31612    builtin and then its argument prototype would still apply.  */
31613 char dld ();
31614 int
31615 main ()
31616 {
31617 dld ();
31618   ;
31619   return 0;
31620 }
31621 _ACEOF
31622 rm -f conftest.$ac_objext conftest$ac_exeext
31623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31624   (eval $ac_link) 2>&5
31625   ac_status=$?
31626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627   (exit $ac_status); } &&
31628          { ac_try='test -s conftest$ac_exeext'
31629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630   (eval $ac_try) 2>&5
31631   ac_status=$?
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); }; }; then
31634   ac_cv_lib_shl_load_dld=yes
31635 else
31636   echo "$as_me: failed program was:" >&5
31637 sed 's/^/| /' conftest.$ac_ext >&5
31638
31639 ac_cv_lib_shl_load_dld=no
31640 fi
31641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31642 LIBS=$ac_check_lib_save_LIBS
31643 fi
31644 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31645 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31646 if test $ac_cv_lib_shl_load_dld = yes; then
31647
31648                                                                 HAVE_SHL_FUNCS=1
31649                                                                 DL_LINK=" -ldld$DL_LINK"
31650
31651 fi
31652
31653
31654 fi
31655 done
31656
31657
31658 fi
31659
31660
31661 fi
31662 done
31663
31664
31665                 if test "$HAVE_DL_FUNCS" = 1; then
31666
31667 for ac_func in dlerror
31668 do
31669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31670 echo "$as_me:$LINENO: checking for $ac_func" >&5
31671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31672 if eval "test \"\${$as_ac_var+set}\" = set"; then
31673   echo $ECHO_N "(cached) $ECHO_C" >&6
31674 else
31675   cat >conftest.$ac_ext <<_ACEOF
31676 #line $LINENO "configure"
31677 /* confdefs.h.  */
31678 _ACEOF
31679 cat confdefs.h >>conftest.$ac_ext
31680 cat >>conftest.$ac_ext <<_ACEOF
31681 /* end confdefs.h.  */
31682 /* System header to define __stub macros and hopefully few prototypes,
31683     which can conflict with char $ac_func (); below.
31684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31685     <limits.h> exists even on freestanding compilers.  */
31686 #ifdef __STDC__
31687 # include <limits.h>
31688 #else
31689 # include <assert.h>
31690 #endif
31691 /* Override any gcc2 internal prototype to avoid an error.  */
31692 #ifdef __cplusplus
31693 extern "C"
31694 {
31695 #endif
31696 /* We use char because int might match the return type of a gcc2
31697    builtin and then its argument prototype would still apply.  */
31698 char $ac_func ();
31699 /* The GNU C library defines this for functions which it implements
31700     to always fail with ENOSYS.  Some functions are actually named
31701     something starting with __ and the normal name is an alias.  */
31702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31703 choke me
31704 #else
31705 char (*f) () = $ac_func;
31706 #endif
31707 #ifdef __cplusplus
31708 }
31709 #endif
31710
31711 int
31712 main ()
31713 {
31714 return f != $ac_func;
31715   ;
31716   return 0;
31717 }
31718 _ACEOF
31719 rm -f conftest.$ac_objext conftest$ac_exeext
31720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31721   (eval $ac_link) 2>&5
31722   ac_status=$?
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); } &&
31725          { ac_try='test -s conftest$ac_exeext'
31726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727   (eval $ac_try) 2>&5
31728   ac_status=$?
31729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730   (exit $ac_status); }; }; then
31731   eval "$as_ac_var=yes"
31732 else
31733   echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31735
31736 eval "$as_ac_var=no"
31737 fi
31738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31739 fi
31740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31742 if test `eval echo '${'$as_ac_var'}'` = yes; then
31743   cat >>confdefs.h <<_ACEOF
31744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31745 _ACEOF
31746  cat >>confdefs.h <<\_ACEOF
31747 #define HAVE_DLERROR 1
31748 _ACEOF
31749
31750 else
31751   echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31752 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31753 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31754   echo $ECHO_N "(cached) $ECHO_C" >&6
31755 else
31756   ac_check_lib_save_LIBS=$LIBS
31757 LIBS="-ldl  $LIBS"
31758 cat >conftest.$ac_ext <<_ACEOF
31759 #line $LINENO "configure"
31760 /* confdefs.h.  */
31761 _ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h.  */
31765
31766 /* Override any gcc2 internal prototype to avoid an error.  */
31767 #ifdef __cplusplus
31768 extern "C"
31769 #endif
31770 /* We use char because int might match the return type of a gcc2
31771    builtin and then its argument prototype would still apply.  */
31772 char dlerror ();
31773 int
31774 main ()
31775 {
31776 dlerror ();
31777   ;
31778   return 0;
31779 }
31780 _ACEOF
31781 rm -f conftest.$ac_objext conftest$ac_exeext
31782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31783   (eval $ac_link) 2>&5
31784   ac_status=$?
31785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786   (exit $ac_status); } &&
31787          { ac_try='test -s conftest$ac_exeext'
31788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31789   (eval $ac_try) 2>&5
31790   ac_status=$?
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); }; }; then
31793   ac_cv_lib_dl_dlerror=yes
31794 else
31795   echo "$as_me: failed program was:" >&5
31796 sed 's/^/| /' conftest.$ac_ext >&5
31797
31798 ac_cv_lib_dl_dlerror=no
31799 fi
31800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31801 LIBS=$ac_check_lib_save_LIBS
31802 fi
31803 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31804 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31805 if test $ac_cv_lib_dl_dlerror = yes; then
31806   cat >>confdefs.h <<\_ACEOF
31807 #define HAVE_DLERROR 1
31808 _ACEOF
31809
31810 fi
31811
31812 fi
31813 done
31814
31815         fi
31816         fi
31817
31818         if test "$HAVE_DL_FUNCS" = 0; then
31819             if test "$HAVE_SHL_FUNCS" = 0; then
31820               if test "$USE_UNIX" = 1; then
31821                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31822 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31823                   wxUSE_DYNAMIC_LOADER=no
31824                   wxUSE_DYNLIB_CLASS=no
31825               else
31826                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31827 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31828               fi
31829             fi
31830         fi
31831     fi
31832 fi
31833
31834 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31835     cat >>confdefs.h <<\_ACEOF
31836 #define wxUSE_DYNAMIC_LOADER 1
31837 _ACEOF
31838
31839 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31840     cat >>confdefs.h <<\_ACEOF
31841 #define wxUSE_DYNLIB_CLASS 1
31842 _ACEOF
31843
31844 fi
31845
31846
31847 if test "$wxUSE_FONTMAP" = "yes" ; then
31848   cat >>confdefs.h <<\_ACEOF
31849 #define wxUSE_FONTMAP 1
31850 _ACEOF
31851
31852 fi
31853
31854 if test "$wxUSE_UNICODE" = "yes" ; then
31855   cat >>confdefs.h <<\_ACEOF
31856 #define wxUSE_UNICODE 1
31857 _ACEOF
31858
31859
31860   if test "$wxUSE_MSW" != 1; then
31861       wxUSE_UNICODE_MSLU=no
31862   fi
31863
31864   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
31865         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31866 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31867 if test "${ac_cv_lib_unicows_main+set}" = set; then
31868   echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870   ac_check_lib_save_LIBS=$LIBS
31871 LIBS="-lunicows  $LIBS"
31872 cat >conftest.$ac_ext <<_ACEOF
31873 #line $LINENO "configure"
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879
31880
31881 int
31882 main ()
31883 {
31884 main ();
31885   ;
31886   return 0;
31887 }
31888 _ACEOF
31889 rm -f conftest.$ac_objext conftest$ac_exeext
31890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31891   (eval $ac_link) 2>&5
31892   ac_status=$?
31893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894   (exit $ac_status); } &&
31895          { ac_try='test -s conftest$ac_exeext'
31896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897   (eval $ac_try) 2>&5
31898   ac_status=$?
31899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900   (exit $ac_status); }; }; then
31901   ac_cv_lib_unicows_main=yes
31902 else
31903   echo "$as_me: failed program was:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31905
31906 ac_cv_lib_unicows_main=no
31907 fi
31908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31909 LIBS=$ac_check_lib_save_LIBS
31910 fi
31911 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31912 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31913 if test $ac_cv_lib_unicows_main = yes; then
31914
31915                 cat >>confdefs.h <<\_ACEOF
31916 #define wxUSE_UNICODE_MSLU 1
31917 _ACEOF
31918
31919
31920 else
31921
31922                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31923                              Applications will only run on Windows NT/2000/XP!" >&5
31924 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31925                              Applications will only run on Windows NT/2000/XP!" >&2;}
31926                 wxUSE_UNICODE_MSLU=no
31927
31928 fi
31929
31930     fi
31931 fi
31932
31933 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
31934   cat >>confdefs.h <<\_ACEOF
31935 #define wxUSE_EXPERIMENTAL_PRINTF 1
31936 _ACEOF
31937
31938 fi
31939
31940
31941 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
31942   cat >>confdefs.h <<\_ACEOF
31943 #define wxUSE_POSTSCRIPT 1
31944 _ACEOF
31945
31946 fi
31947
31948 cat >>confdefs.h <<\_ACEOF
31949 #define wxUSE_AFM_FOR_POSTSCRIPT 1
31950 _ACEOF
31951
31952
31953 cat >>confdefs.h <<\_ACEOF
31954 #define wxUSE_NORMALIZED_PS_FONTS 1
31955 _ACEOF
31956
31957
31958
31959 if test "$wxUSE_CONSTRAINTS" = "yes"; then
31960     cat >>confdefs.h <<\_ACEOF
31961 #define wxUSE_CONSTRAINTS 1
31962 _ACEOF
31963
31964     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31965 fi
31966
31967 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31968
31969
31970    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31971        cat >>confdefs.h <<\_ACEOF
31972 #define wxUSE_MDI_ARCHITECTURE 1
31973 _ACEOF
31974
31975        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31976    fi
31977 fi
31978
31979 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
31980     cat >>confdefs.h <<\_ACEOF
31981 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
31982 _ACEOF
31983
31984     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31985     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31986         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31987     fi
31988 fi
31989
31990 if test "$wxUSE_HELP" = "yes"; then
31991     cat >>confdefs.h <<\_ACEOF
31992 #define wxUSE_HELP 1
31993 _ACEOF
31994
31995     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
31996
31997     if test "$wxUSE_MSW" = 1; then
31998       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
31999         cat >>confdefs.h <<\_ACEOF
32000 #define wxUSE_MS_HTML_HELP 1
32001 _ACEOF
32002
32003       fi
32004     fi
32005
32006     if test "$wxUSE_WXHTML_HELP" = "yes"; then
32007       if test "$wxUSE_HTML" = "yes"; then
32008         cat >>confdefs.h <<\_ACEOF
32009 #define wxUSE_WXHTML_HELP 1
32010 _ACEOF
32011
32012       else
32013         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32014 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
32015         wxUSE_WXHTML_HELP=no
32016       fi
32017     fi
32018 fi
32019
32020 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32021     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32022         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32023 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
32024     else
32025         cat >>confdefs.h <<\_ACEOF
32026 #define wxUSE_PRINTING_ARCHITECTURE 1
32027 _ACEOF
32028
32029     fi
32030     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32031 fi
32032
32033 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
32034     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32035 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32036    { (exit 1); exit 1; }; }
32037 fi
32038
32039
32040 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
32041                           -o "$wxUSE_CLIPBOARD"     = "yes" \
32042                           -o "$wxUSE_OLE"     = "yes" \
32043                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32044
32045 for ac_header in ole2.h
32046 do
32047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32049   echo "$as_me:$LINENO: checking for $ac_header" >&5
32050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32052   echo $ECHO_N "(cached) $ECHO_C" >&6
32053 fi
32054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32056 else
32057   # Is the header compilable?
32058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32060 cat >conftest.$ac_ext <<_ACEOF
32061 #line $LINENO "configure"
32062 /* confdefs.h.  */
32063 _ACEOF
32064 cat confdefs.h >>conftest.$ac_ext
32065 cat >>conftest.$ac_ext <<_ACEOF
32066 /* end confdefs.h.  */
32067 $ac_includes_default
32068 #include <$ac_header>
32069 _ACEOF
32070 rm -f conftest.$ac_objext
32071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32072   (eval $ac_compile) 2>&5
32073   ac_status=$?
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); } &&
32076          { ac_try='test -s conftest.$ac_objext'
32077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078   (eval $ac_try) 2>&5
32079   ac_status=$?
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); }; }; then
32082   ac_header_compiler=yes
32083 else
32084   echo "$as_me: failed program was:" >&5
32085 sed 's/^/| /' conftest.$ac_ext >&5
32086
32087 ac_header_compiler=no
32088 fi
32089 rm -f conftest.$ac_objext conftest.$ac_ext
32090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32091 echo "${ECHO_T}$ac_header_compiler" >&6
32092
32093 # Is the header present?
32094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32096 cat >conftest.$ac_ext <<_ACEOF
32097 #line $LINENO "configure"
32098 /* confdefs.h.  */
32099 _ACEOF
32100 cat confdefs.h >>conftest.$ac_ext
32101 cat >>conftest.$ac_ext <<_ACEOF
32102 /* end confdefs.h.  */
32103 #include <$ac_header>
32104 _ACEOF
32105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32107   ac_status=$?
32108   grep -v '^ *+' conftest.er1 >conftest.err
32109   rm -f conftest.er1
32110   cat conftest.err >&5
32111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112   (exit $ac_status); } >/dev/null; then
32113   if test -s conftest.err; then
32114     ac_cpp_err=$ac_c_preproc_warn_flag
32115   else
32116     ac_cpp_err=
32117   fi
32118 else
32119   ac_cpp_err=yes
32120 fi
32121 if test -z "$ac_cpp_err"; then
32122   ac_header_preproc=yes
32123 else
32124   echo "$as_me: failed program was:" >&5
32125 sed 's/^/| /' conftest.$ac_ext >&5
32126
32127   ac_header_preproc=no
32128 fi
32129 rm -f conftest.err conftest.$ac_ext
32130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32131 echo "${ECHO_T}$ac_header_preproc" >&6
32132
32133 # So?  What about this header?
32134 case $ac_header_compiler:$ac_header_preproc in
32135   yes:no )
32136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32140     (
32141       cat <<\_ASBOX
32142 ## ------------------------------------ ##
32143 ## Report this to bug-autoconf@gnu.org. ##
32144 ## ------------------------------------ ##
32145 _ASBOX
32146     ) |
32147       sed "s/^/$as_me: WARNING:     /" >&2
32148     ;;
32149   no:yes )
32150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32152     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32156     (
32157       cat <<\_ASBOX
32158 ## ------------------------------------ ##
32159 ## Report this to bug-autoconf@gnu.org. ##
32160 ## ------------------------------------ ##
32161 _ASBOX
32162     ) |
32163       sed "s/^/$as_me: WARNING:     /" >&2
32164     ;;
32165 esac
32166 echo "$as_me:$LINENO: checking for $ac_header" >&5
32167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32169   echo $ECHO_N "(cached) $ECHO_C" >&6
32170 else
32171   eval "$as_ac_Header=$ac_header_preproc"
32172 fi
32173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32175
32176 fi
32177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32178   cat >>confdefs.h <<_ACEOF
32179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32180 _ACEOF
32181
32182 fi
32183
32184 done
32185
32186
32187     if test "$ac_cv_header_ole2_h" = "yes" ; then
32188         if test "$GCC" = yes ; then
32189
32190
32191             ac_ext=cc
32192 ac_cpp='$CXXCPP $CPPFLAGS'
32193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32196
32197
32198             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32199 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32200             cat >conftest.$ac_ext <<_ACEOF
32201 #line $LINENO "configure"
32202 /* confdefs.h.  */
32203 _ACEOF
32204 cat confdefs.h >>conftest.$ac_ext
32205 cat >>conftest.$ac_ext <<_ACEOF
32206 /* end confdefs.h.  */
32207 #include <windows.h>
32208                             #include <ole2.h>
32209 int
32210 main ()
32211 {
32212
32213   ;
32214   return 0;
32215 }
32216 _ACEOF
32217 rm -f conftest.$ac_objext
32218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32219   (eval $ac_compile) 2>&5
32220   ac_status=$?
32221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222   (exit $ac_status); } &&
32223          { ac_try='test -s conftest.$ac_objext'
32224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225   (eval $ac_try) 2>&5
32226   ac_status=$?
32227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228   (exit $ac_status); }; }; then
32229   echo "$as_me:$LINENO: result: no" >&5
32230 echo "${ECHO_T}no" >&6
32231 else
32232   echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32234
32235 echo "$as_me:$LINENO: result: yes" >&5
32236 echo "${ECHO_T}yes" >&6
32237                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32238 fi
32239 rm -f conftest.$ac_objext conftest.$ac_ext
32240             ac_ext=c
32241 ac_cpp='$CPP $CPPFLAGS'
32242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32245
32246             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
32247             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
32248             cat >>confdefs.h <<\_ACEOF
32249 #define wxUSE_OLE 1
32250 _ACEOF
32251
32252
32253         fi
32254
32255                 cat >>confdefs.h <<\_ACEOF
32256 #define wxUSE_DATAOBJ 1
32257 _ACEOF
32258
32259     else
32260         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32261 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
32262
32263         wxUSE_CLIPBOARD=no
32264         wxUSE_DRAG_AND_DROP=no
32265         wxUSE_DATAOBJ=no
32266         wxUSE_OLE=no
32267     fi
32268
32269     if test "$wxUSE_METAFILE" = "yes"; then
32270         cat >>confdefs.h <<\_ACEOF
32271 #define wxUSE_METAFILE 1
32272 _ACEOF
32273
32274
32275                 cat >>confdefs.h <<\_ACEOF
32276 #define wxUSE_ENH_METAFILE 1
32277 _ACEOF
32278
32279     fi
32280 fi
32281
32282 if test "$wxUSE_IPC" = "yes"; then
32283     if test "$wxUSE_SOCKETS" != "yes"; then
32284         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32285 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
32286     fi
32287
32288     cat >>confdefs.h <<\_ACEOF
32289 #define wxUSE_IPC 1
32290 _ACEOF
32291
32292 fi
32293
32294 if test "$wxUSE_CLIPBOARD" = "yes"; then
32295     if test "$wxUSE_MGL" = 1; then
32296         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32297 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
32298         wxUSE_CLIPBOARD=no
32299     fi
32300
32301     if test "$wxUSE_CLIPBOARD" = "yes"; then
32302         cat >>confdefs.h <<\_ACEOF
32303 #define wxUSE_CLIPBOARD 1
32304 _ACEOF
32305
32306
32307                 cat >>confdefs.h <<\_ACEOF
32308 #define wxUSE_DATAOBJ 1
32309 _ACEOF
32310
32311     fi
32312 fi
32313
32314 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32315     if test "$wxUSE_GTK" = 1; then
32316         if test "$WXGTK12" != 1; then
32317             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32318 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
32319             wxUSE_DRAG_AND_DROP=no
32320         fi
32321     fi
32322
32323     if test "$wxUSE_MOTIF" = 1; then
32324         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32325 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
32326         wxUSE_DRAG_AND_DROP=no
32327     fi
32328
32329     if test "$wxUSE_X11" = 1; then
32330         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32331 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
32332         wxUSE_DRAG_AND_DROP=no
32333     fi
32334
32335     if test "$wxUSE_MGL" = 1; then
32336         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32337 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
32338         wxUSE_DRAG_AND_DROP=no
32339     fi
32340
32341     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
32342         cat >>confdefs.h <<\_ACEOF
32343 #define wxUSE_DRAG_AND_DROP 1
32344 _ACEOF
32345
32346         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32347     fi
32348
32349 fi
32350
32351 if test "$wxUSE_SPLINES" = "yes" ; then
32352   cat >>confdefs.h <<\_ACEOF
32353 #define wxUSE_SPLINES 1
32354 _ACEOF
32355
32356 fi
32357
32358
32359 USES_CONTROLS=0
32360 if test "$wxUSE_CONTROLS" = "yes"; then
32361   USES_CONTROLS=1
32362 fi
32363
32364 if test "$wxUSE_ACCEL" = "yes"; then
32365   cat >>confdefs.h <<\_ACEOF
32366 #define wxUSE_ACCEL 1
32367 _ACEOF
32368
32369   USES_CONTROLS=1
32370 fi
32371
32372 if test "$wxUSE_BUTTON" = "yes"; then
32373   cat >>confdefs.h <<\_ACEOF
32374 #define wxUSE_BUTTON 1
32375 _ACEOF
32376
32377   USES_CONTROLS=1
32378 fi
32379
32380 if test "$wxUSE_BMPBUTTON" = "yes"; then
32381   cat >>confdefs.h <<\_ACEOF
32382 #define wxUSE_BMPBUTTON 1
32383 _ACEOF
32384
32385   USES_CONTROLS=1
32386 fi
32387
32388 if test "$wxUSE_CALCTRL" = "yes"; then
32389   cat >>confdefs.h <<\_ACEOF
32390 #define wxUSE_CALENDARCTRL 1
32391 _ACEOF
32392
32393   USES_CONTROLS=1
32394   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
32395 fi
32396
32397 if test "$wxUSE_CARET" = "yes"; then
32398   cat >>confdefs.h <<\_ACEOF
32399 #define wxUSE_CARET 1
32400 _ACEOF
32401
32402   USES_CONTROLS=1
32403   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32404 fi
32405
32406 if test "$wxUSE_COMBOBOX" = "yes"; then
32407   cat >>confdefs.h <<\_ACEOF
32408 #define wxUSE_COMBOBOX 1
32409 _ACEOF
32410
32411   USES_CONTROLS=1
32412 fi
32413
32414 if test "$wxUSE_CHOICE" = "yes"; then
32415   cat >>confdefs.h <<\_ACEOF
32416 #define wxUSE_CHOICE 1
32417 _ACEOF
32418
32419   USES_CONTROLS=1
32420 fi
32421
32422 if test "$wxUSE_CHECKBOX" = "yes"; then
32423   cat >>confdefs.h <<\_ACEOF
32424 #define wxUSE_CHECKBOX 1
32425 _ACEOF
32426
32427   USES_CONTROLS=1
32428 fi
32429
32430 if test "$wxUSE_CHECKLST" = "yes"; then
32431   cat >>confdefs.h <<\_ACEOF
32432 #define wxUSE_CHECKLISTBOX 1
32433 _ACEOF
32434
32435   USES_CONTROLS=1
32436   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32437 fi
32438
32439 if test "$wxUSE_DISPLAY" = "yes"; then
32440     cat >>confdefs.h <<\_ACEOF
32441 #define wxUSE_DISPLAY 1
32442 _ACEOF
32443
32444     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32445 fi
32446
32447 if test "$wxUSE_GAUGE" = "yes"; then
32448   cat >>confdefs.h <<\_ACEOF
32449 #define wxUSE_GAUGE 1
32450 _ACEOF
32451
32452   USES_CONTROLS=1
32453 fi
32454
32455 if test "$wxUSE_GRID" = "yes"; then
32456   cat >>confdefs.h <<\_ACEOF
32457 #define wxUSE_GRID 1
32458 _ACEOF
32459
32460   USES_CONTROLS=1
32461   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
32462 fi
32463
32464 if test "$wxUSE_IMAGLIST" = "yes"; then
32465     cat >>confdefs.h <<\_ACEOF
32466 #define wxUSE_IMAGLIST 1
32467 _ACEOF
32468
32469 fi
32470
32471 if test "$wxUSE_LISTBOX" = "yes"; then
32472     cat >>confdefs.h <<\_ACEOF
32473 #define wxUSE_LISTBOX 1
32474 _ACEOF
32475
32476     USES_CONTROLS=1
32477 fi
32478
32479 if test "$wxUSE_LISTCTRL" = "yes"; then
32480     if test "$wxUSE_IMAGLIST" = "yes"; then
32481         cat >>confdefs.h <<\_ACEOF
32482 #define wxUSE_LISTCTRL 1
32483 _ACEOF
32484
32485         USES_CONTROLS=1
32486         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32487     else
32488         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32489 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
32490     fi
32491 fi
32492
32493 if test "$wxUSE_NOTEBOOK" = "yes"; then
32494     cat >>confdefs.h <<\_ACEOF
32495 #define wxUSE_NOTEBOOK 1
32496 _ACEOF
32497
32498     USES_CONTROLS=1
32499     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32500 fi
32501
32502
32503 if test "$wxUSE_RADIOBOX" = "yes"; then
32504     cat >>confdefs.h <<\_ACEOF
32505 #define wxUSE_RADIOBOX 1
32506 _ACEOF
32507
32508     USES_CONTROLS=1
32509 fi
32510
32511 if test "$wxUSE_RADIOBTN" = "yes"; then
32512     cat >>confdefs.h <<\_ACEOF
32513 #define wxUSE_RADIOBTN 1
32514 _ACEOF
32515
32516     USES_CONTROLS=1
32517 fi
32518
32519 if test "$wxUSE_SASH" = "yes"; then
32520     cat >>confdefs.h <<\_ACEOF
32521 #define wxUSE_SASH 1
32522 _ACEOF
32523
32524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32525 fi
32526
32527 if test "$wxUSE_SCROLLBAR" = "yes"; then
32528     cat >>confdefs.h <<\_ACEOF
32529 #define wxUSE_SCROLLBAR 1
32530 _ACEOF
32531
32532     USES_CONTROLS=1
32533     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
32534 fi
32535
32536 if test "$wxUSE_SLIDER" = "yes"; then
32537     cat >>confdefs.h <<\_ACEOF
32538 #define wxUSE_SLIDER 1
32539 _ACEOF
32540
32541     USES_CONTROLS=1
32542 fi
32543
32544 if test "$wxUSE_SPINBTN" = "yes"; then
32545     cat >>confdefs.h <<\_ACEOF
32546 #define wxUSE_SPINBTN 1
32547 _ACEOF
32548
32549     USES_CONTROLS=1
32550 fi
32551
32552 if test "$wxUSE_SPINCTRL" = "yes"; then
32553     cat >>confdefs.h <<\_ACEOF
32554 #define wxUSE_SPINCTRL 1
32555 _ACEOF
32556
32557     USES_CONTROLS=1
32558 fi
32559
32560 if test "$wxUSE_SPLITTER" = "yes"; then
32561     cat >>confdefs.h <<\_ACEOF
32562 #define wxUSE_SPLITTER 1
32563 _ACEOF
32564
32565     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32566 fi
32567
32568 if test "$wxUSE_STATBMP" = "yes"; then
32569     cat >>confdefs.h <<\_ACEOF
32570 #define wxUSE_STATBMP 1
32571 _ACEOF
32572
32573     USES_CONTROLS=1
32574 fi
32575
32576 if test "$wxUSE_STATBOX" = "yes"; then
32577     cat >>confdefs.h <<\_ACEOF
32578 #define wxUSE_STATBOX 1
32579 _ACEOF
32580
32581     USES_CONTROLS=1
32582 fi
32583
32584 if test "$wxUSE_STATTEXT" = "yes"; then
32585     cat >>confdefs.h <<\_ACEOF
32586 #define wxUSE_STATTEXT 1
32587 _ACEOF
32588
32589     USES_CONTROLS=1
32590 fi
32591
32592 if test "$wxUSE_STATLINE" = "yes"; then
32593     cat >>confdefs.h <<\_ACEOF
32594 #define wxUSE_STATLINE 1
32595 _ACEOF
32596
32597     USES_CONTROLS=1
32598 fi
32599
32600 if test "$wxUSE_STATUSBAR" = "yes"; then
32601     cat >>confdefs.h <<\_ACEOF
32602 #define wxUSE_STATUSBAR 1
32603 _ACEOF
32604
32605     USES_CONTROLS=1
32606
32607     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
32608 fi
32609
32610 if test "$wxUSE_TABDIALOG" = "yes"; then
32611     cat >>confdefs.h <<\_ACEOF
32612 #define wxUSE_TAB_DIALOG 1
32613 _ACEOF
32614
32615     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32616 fi
32617
32618 if test "$wxUSE_TEXTCTRL" = "yes"; then
32619     cat >>confdefs.h <<\_ACEOF
32620 #define wxUSE_TEXTCTRL 1
32621 _ACEOF
32622
32623     USES_CONTROLS=1
32624     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32625 fi
32626
32627 if test "$wxUSE_TOGGLEBTN" = "yes"; then
32628     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32629         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32630 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
32631         wxUSE_TOGGLEBTN=no
32632     fi
32633     if test "$wxUSE_UNIVERSAL" = "yes"; then
32634         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32635 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
32636         wxUSE_TOGGLEBTN=no
32637     fi
32638
32639     if test "$wxUSE_TOGGLEBTN" = "yes"; then
32640         cat >>confdefs.h <<\_ACEOF
32641 #define wxUSE_TOGGLEBTN 1
32642 _ACEOF
32643
32644         USES_CONTROLS=1
32645     fi
32646 fi
32647
32648 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
32649     cat >>confdefs.h <<\_ACEOF
32650 #define wxUSE_TOOLBAR_SIMPLE 1
32651 _ACEOF
32652
32653     wxUSE_TOOLBAR="yes"
32654     USES_CONTROLS=1
32655 fi
32656
32657 if test "$wxUSE_TOOLBAR" = "yes"; then
32658     cat >>confdefs.h <<\_ACEOF
32659 #define wxUSE_TOOLBAR 1
32660 _ACEOF
32661
32662     USES_CONTROLS=1
32663
32664         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32665         wxUSE_TOOLBAR_NATIVE="yes"
32666     fi
32667
32668     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
32669         cat >>confdefs.h <<\_ACEOF
32670 #define wxUSE_TOOLBAR_NATIVE 1
32671 _ACEOF
32672
32673         USES_CONTROLS=1
32674     fi
32675
32676     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
32677 fi
32678
32679 if test "$wxUSE_TOOLTIPS" = "yes"; then
32680     if test "$wxUSE_MOTIF" = 1; then
32681         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32682 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
32683     else
32684         if test "$wxUSE_UNIVERSAL" = "yes"; then
32685             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32686 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
32687         else
32688             cat >>confdefs.h <<\_ACEOF
32689 #define wxUSE_TOOLTIPS 1
32690 _ACEOF
32691
32692         fi
32693     fi
32694 fi
32695
32696 if test "$wxUSE_TREECTRL" = "yes"; then
32697     if test "$wxUSE_IMAGLIST" = "yes"; then
32698         cat >>confdefs.h <<\_ACEOF
32699 #define wxUSE_TREECTRL 1
32700 _ACEOF
32701
32702         USES_CONTROLS=1
32703         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32704     else
32705         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32706 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
32707     fi
32708 fi
32709
32710 if test "$wxUSE_POPUPWIN" = "yes"; then
32711     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32712         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32713 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
32714     else
32715         if test "$wxUSE_MOTIF" = 1; then
32716             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32717 echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
32718         else
32719             if test "$wxUSE_PM" = 1; then
32720                 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32721 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
32722             else
32723                 cat >>confdefs.h <<\_ACEOF
32724 #define wxUSE_POPUPWIN 1
32725 _ACEOF
32726
32727
32728                 USES_CONTROLS=1
32729             fi
32730         fi
32731     fi
32732 fi
32733
32734 if test "$wxUSE_TIPWINDOW" = "yes"; then
32735     if test "$wxUSE_PM" = 1; then
32736         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32737 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
32738     else
32739         cat >>confdefs.h <<\_ACEOF
32740 #define wxUSE_TIPWINDOW 1
32741 _ACEOF
32742
32743     fi
32744 fi
32745
32746 if test "$USES_CONTROLS" = 1; then
32747     cat >>confdefs.h <<\_ACEOF
32748 #define wxUSE_CONTROLS 1
32749 _ACEOF
32750
32751 fi
32752
32753
32754
32755 if test "$wxUSE_DRAGIMAGE" = "yes"; then
32756     cat >>confdefs.h <<\_ACEOF
32757 #define wxUSE_DRAGIMAGE 1
32758 _ACEOF
32759
32760     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32761 fi
32762
32763 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
32764     cat >>confdefs.h <<\_ACEOF
32765 #define wxUSE_ACCESSIBILITY 1
32766 _ACEOF
32767
32768     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32769 fi
32770
32771 if test "$wxUSE_MENUS" = "yes"; then
32772     cat >>confdefs.h <<\_ACEOF
32773 #define wxUSE_MENUS 1
32774 _ACEOF
32775
32776     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
32777 fi
32778
32779 if test "$wxUSE_METAFILE" = "yes"; then
32780     cat >>confdefs.h <<\_ACEOF
32781 #define wxUSE_METAFILE 1
32782 _ACEOF
32783
32784 fi
32785
32786 if test "$wxUSE_MIMETYPE" = "yes"; then
32787     cat >>confdefs.h <<\_ACEOF
32788 #define wxUSE_MIMETYPE 1
32789 _ACEOF
32790
32791 fi
32792
32793 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
32794     cat >>confdefs.h <<\_ACEOF
32795 #define wxUSE_SYSTEM_OPTIONS 1
32796 _ACEOF
32797
32798 if test "$TOOLKIT" = "MSW"; then
32799     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32800 fi
32801
32802 fi
32803
32804 if test "$wxUSE_PROTOCOL" = "yes"; then
32805     if test "$wxUSE_SOCKETS" != "yes"; then
32806         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32807 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
32808         wxUSE_PROTOCOL=no
32809     fi
32810
32811     if test "$wxUSE_PROTOCOL" = "yes"; then
32812         cat >>confdefs.h <<\_ACEOF
32813 #define wxUSE_PROTOCOL 1
32814 _ACEOF
32815
32816
32817         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
32818             cat >>confdefs.h <<\_ACEOF
32819 #define wxUSE_PROTOCOL_HTTP 1
32820 _ACEOF
32821
32822         fi
32823         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
32824             cat >>confdefs.h <<\_ACEOF
32825 #define wxUSE_PROTOCOL_FTP 1
32826 _ACEOF
32827
32828         fi
32829         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
32830             cat >>confdefs.h <<\_ACEOF
32831 #define wxUSE_PROTOCOL_FILE 1
32832 _ACEOF
32833
32834         fi
32835     fi
32836 fi
32837
32838 if test "$wxUSE_URL" = "yes"; then
32839     if test "$wxUSE_PROTOCOL" != "yes"; then
32840         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32841 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
32842         wxUSE_URL=no
32843     fi
32844     if test "$wxUSE_URL" = "yes"; then
32845         cat >>confdefs.h <<\_ACEOF
32846 #define wxUSE_URL 1
32847 _ACEOF
32848
32849     fi
32850 fi
32851
32852 if test "$wxUSE_MINIFRAME" = "yes"; then
32853     cat >>confdefs.h <<\_ACEOF
32854 #define wxUSE_MINIFRAME 1
32855 _ACEOF
32856
32857     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32858 fi
32859
32860 if test "$wxUSE_HTML" = "yes"; then
32861     cat >>confdefs.h <<\_ACEOF
32862 #define wxUSE_HTML 1
32863 _ACEOF
32864
32865     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
32866 fi
32867
32868 if test "$wxUSE_VALIDATORS" = "yes"; then
32869     cat >>confdefs.h <<\_ACEOF
32870 #define wxUSE_VALIDATORS 1
32871 _ACEOF
32872
32873     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32874 fi
32875
32876 if test "$wxUSE_PALETTE" = "yes" ; then
32877   cat >>confdefs.h <<\_ACEOF
32878 #define wxUSE_PALETTE 1
32879 _ACEOF
32880
32881 fi
32882
32883 if test "$wxUSE_IMAGE" = "yes" ; then
32884   cat >>confdefs.h <<\_ACEOF
32885 #define wxUSE_IMAGE 1
32886 _ACEOF
32887
32888 fi
32889
32890 if test "$wxUSE_GIF" = "yes" ; then
32891   cat >>confdefs.h <<\_ACEOF
32892 #define wxUSE_GIF 1
32893 _ACEOF
32894
32895 fi
32896
32897 if test "$wxUSE_PCX" = "yes" ; then
32898   cat >>confdefs.h <<\_ACEOF
32899 #define wxUSE_PCX 1
32900 _ACEOF
32901
32902 fi
32903
32904 if test "$wxUSE_IFF" = "yes" ; then
32905   cat >>confdefs.h <<\_ACEOF
32906 #define wxUSE_IFF 1
32907 _ACEOF
32908
32909 fi
32910
32911 if test "$wxUSE_PNM" = "yes" ; then
32912   cat >>confdefs.h <<\_ACEOF
32913 #define wxUSE_PNM 1
32914 _ACEOF
32915
32916 fi
32917
32918 if test "$wxUSE_XPM" = "yes" ; then
32919   cat >>confdefs.h <<\_ACEOF
32920 #define wxUSE_XPM 1
32921 _ACEOF
32922
32923 fi
32924
32925 if test "$wxUSE_ICO_CUR" = "yes" ; then
32926   cat >>confdefs.h <<\_ACEOF
32927 #define wxUSE_ICO_CUR 1
32928 _ACEOF
32929
32930 fi
32931
32932 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32933     LIBS=" -lunicows $LIBS"
32934 fi
32935
32936
32937 if test "$wxUSE_CHOICEDLG" = "yes"; then
32938     cat >>confdefs.h <<\_ACEOF
32939 #define wxUSE_CHOICEDLG 1
32940 _ACEOF
32941
32942 fi
32943
32944 if test "$wxUSE_COLOURDLG" = "yes"; then
32945     cat >>confdefs.h <<\_ACEOF
32946 #define wxUSE_COLOURDLG 1
32947 _ACEOF
32948
32949 fi
32950
32951 if test "$wxUSE_FILEDLG" = "yes"; then
32952     cat >>confdefs.h <<\_ACEOF
32953 #define wxUSE_FILEDLG 1
32954 _ACEOF
32955
32956 fi
32957
32958 if test "$wxUSE_FINDREPLDLG" = "yes"; then
32959     cat >>confdefs.h <<\_ACEOF
32960 #define wxUSE_FINDREPLDLG 1
32961 _ACEOF
32962
32963 fi
32964
32965 if test "$wxUSE_FONTDLG" = "yes"; then
32966     cat >>confdefs.h <<\_ACEOF
32967 #define wxUSE_FONTDLG 1
32968 _ACEOF
32969
32970 fi
32971
32972 if test "$wxUSE_DIRDLG" = "yes"; then
32973     if test "$wxUSE_TREECTRL" != "yes"; then
32974         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32975 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
32976     else
32977         cat >>confdefs.h <<\_ACEOF
32978 #define wxUSE_DIRDLG 1
32979 _ACEOF
32980
32981     fi
32982 fi
32983
32984 if test "$wxUSE_MSGDLG" = "yes"; then
32985     cat >>confdefs.h <<\_ACEOF
32986 #define wxUSE_MSGDLG 1
32987 _ACEOF
32988
32989 fi
32990
32991 if test "$wxUSE_NUMBERDLG" = "yes"; then
32992     cat >>confdefs.h <<\_ACEOF
32993 #define wxUSE_NUMBERDLG 1
32994 _ACEOF
32995
32996 fi
32997
32998 if test "$wxUSE_PROGRESSDLG" = "yes"; then
32999     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33000        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33001 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
33002     else
33003         cat >>confdefs.h <<\_ACEOF
33004 #define wxUSE_PROGRESSDLG 1
33005 _ACEOF
33006
33007     fi
33008 fi
33009
33010 if test "$wxUSE_SPLASH" = "yes"; then
33011     cat >>confdefs.h <<\_ACEOF
33012 #define wxUSE_SPLASH 1
33013 _ACEOF
33014
33015 fi
33016
33017 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33018     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33019        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33020 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
33021     else
33022         cat >>confdefs.h <<\_ACEOF
33023 #define wxUSE_STARTUP_TIPS 1
33024 _ACEOF
33025
33026     fi
33027 fi
33028
33029 if test "$wxUSE_TEXTDLG" = "yes"; then
33030     cat >>confdefs.h <<\_ACEOF
33031 #define wxUSE_TEXTDLG 1
33032 _ACEOF
33033
33034 fi
33035
33036 if test "$wxUSE_WIZARDDLG" = "yes"; then
33037     cat >>confdefs.h <<\_ACEOF
33038 #define wxUSE_WIZARDDLG 1
33039 _ACEOF
33040
33041     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33042 fi
33043
33044
33045 if test "$cross_compiling" = "yes"; then
33046         OSINFO="\"$host\""
33047 else
33048         OSINFO=`uname -s -r -m`
33049     OSINFO="\"$OSINFO\""
33050 fi
33051
33052 cat >>confdefs.h <<_ACEOF
33053 #define WXWIN_OS_DESCRIPTION $OSINFO
33054 _ACEOF
33055
33056
33057
33058 if test "x$prefix" != "xNONE"; then
33059     wxPREFIX=$prefix
33060 else
33061     wxPREFIX=$ac_default_prefix
33062 fi
33063
33064 cat >>confdefs.h <<_ACEOF
33065 #define wxINSTALL_PREFIX "$wxPREFIX"
33066 _ACEOF
33067
33068
33069 top_builddir_wxconfig=`pwd`
33070
33071
33072
33073
33074 if test "$wxUSE_MAC" = 1 ; then
33075     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33076 fi
33077 if test "$wxUSE_COCOA" = 1 ; then
33078     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33079 fi
33080
33081
33082 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33083
33084 have_cos=0
33085 have_floor=0
33086
33087 for ac_func in cos
33088 do
33089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33090 echo "$as_me:$LINENO: checking for $ac_func" >&5
33091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33092 if eval "test \"\${$as_ac_var+set}\" = set"; then
33093   echo $ECHO_N "(cached) $ECHO_C" >&6
33094 else
33095   cat >conftest.$ac_ext <<_ACEOF
33096 #line $LINENO "configure"
33097 /* confdefs.h.  */
33098 _ACEOF
33099 cat confdefs.h >>conftest.$ac_ext
33100 cat >>conftest.$ac_ext <<_ACEOF
33101 /* end confdefs.h.  */
33102 /* System header to define __stub macros and hopefully few prototypes,
33103     which can conflict with char $ac_func (); below.
33104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33105     <limits.h> exists even on freestanding compilers.  */
33106 #ifdef __STDC__
33107 # include <limits.h>
33108 #else
33109 # include <assert.h>
33110 #endif
33111 /* Override any gcc2 internal prototype to avoid an error.  */
33112 #ifdef __cplusplus
33113 extern "C"
33114 {
33115 #endif
33116 /* We use char because int might match the return type of a gcc2
33117    builtin and then its argument prototype would still apply.  */
33118 char $ac_func ();
33119 /* The GNU C library defines this for functions which it implements
33120     to always fail with ENOSYS.  Some functions are actually named
33121     something starting with __ and the normal name is an alias.  */
33122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33123 choke me
33124 #else
33125 char (*f) () = $ac_func;
33126 #endif
33127 #ifdef __cplusplus
33128 }
33129 #endif
33130
33131 int
33132 main ()
33133 {
33134 return f != $ac_func;
33135   ;
33136   return 0;
33137 }
33138 _ACEOF
33139 rm -f conftest.$ac_objext conftest$ac_exeext
33140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33141   (eval $ac_link) 2>&5
33142   ac_status=$?
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } &&
33145          { ac_try='test -s conftest$ac_exeext'
33146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147   (eval $ac_try) 2>&5
33148   ac_status=$?
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); }; }; then
33151   eval "$as_ac_var=yes"
33152 else
33153   echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33155
33156 eval "$as_ac_var=no"
33157 fi
33158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33159 fi
33160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33162 if test `eval echo '${'$as_ac_var'}'` = yes; then
33163   cat >>confdefs.h <<_ACEOF
33164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33165 _ACEOF
33166  have_cos=1
33167 fi
33168 done
33169
33170
33171 for ac_func in floor
33172 do
33173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33174 echo "$as_me:$LINENO: checking for $ac_func" >&5
33175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33176 if eval "test \"\${$as_ac_var+set}\" = set"; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 else
33179   cat >conftest.$ac_ext <<_ACEOF
33180 #line $LINENO "configure"
33181 /* confdefs.h.  */
33182 _ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h.  */
33186 /* System header to define __stub macros and hopefully few prototypes,
33187     which can conflict with char $ac_func (); below.
33188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33189     <limits.h> exists even on freestanding compilers.  */
33190 #ifdef __STDC__
33191 # include <limits.h>
33192 #else
33193 # include <assert.h>
33194 #endif
33195 /* Override any gcc2 internal prototype to avoid an error.  */
33196 #ifdef __cplusplus
33197 extern "C"
33198 {
33199 #endif
33200 /* We use char because int might match the return type of a gcc2
33201    builtin and then its argument prototype would still apply.  */
33202 char $ac_func ();
33203 /* The GNU C library defines this for functions which it implements
33204     to always fail with ENOSYS.  Some functions are actually named
33205     something starting with __ and the normal name is an alias.  */
33206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33207 choke me
33208 #else
33209 char (*f) () = $ac_func;
33210 #endif
33211 #ifdef __cplusplus
33212 }
33213 #endif
33214
33215 int
33216 main ()
33217 {
33218 return f != $ac_func;
33219   ;
33220   return 0;
33221 }
33222 _ACEOF
33223 rm -f conftest.$ac_objext conftest$ac_exeext
33224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33225   (eval $ac_link) 2>&5
33226   ac_status=$?
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); } &&
33229          { ac_try='test -s conftest$ac_exeext'
33230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33231   (eval $ac_try) 2>&5
33232   ac_status=$?
33233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234   (exit $ac_status); }; }; then
33235   eval "$as_ac_var=yes"
33236 else
33237   echo "$as_me: failed program was:" >&5
33238 sed 's/^/| /' conftest.$ac_ext >&5
33239
33240 eval "$as_ac_var=no"
33241 fi
33242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33243 fi
33244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33246 if test `eval echo '${'$as_ac_var'}'` = yes; then
33247   cat >>confdefs.h <<_ACEOF
33248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33249 _ACEOF
33250  have_floor=1
33251 fi
33252 done
33253
33254 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33255 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
33256 if test "$have_cos" = 1 -a "$have_floor" = 1; then
33257     echo "$as_me:$LINENO: result: yes" >&5
33258 echo "${ECHO_T}yes" >&6
33259 else
33260     echo "$as_me:$LINENO: result: no" >&5
33261 echo "${ECHO_T}no" >&6
33262     LIBS="$LIBS -lm"
33263     # use different functions to avoid configure caching
33264     have_sin=0
33265     have_ceil=0
33266
33267 for ac_func in sin
33268 do
33269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33270 echo "$as_me:$LINENO: checking for $ac_func" >&5
33271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33272 if eval "test \"\${$as_ac_var+set}\" = set"; then
33273   echo $ECHO_N "(cached) $ECHO_C" >&6
33274 else
33275   cat >conftest.$ac_ext <<_ACEOF
33276 #line $LINENO "configure"
33277 /* confdefs.h.  */
33278 _ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h.  */
33282 /* System header to define __stub macros and hopefully few prototypes,
33283     which can conflict with char $ac_func (); below.
33284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33285     <limits.h> exists even on freestanding compilers.  */
33286 #ifdef __STDC__
33287 # include <limits.h>
33288 #else
33289 # include <assert.h>
33290 #endif
33291 /* Override any gcc2 internal prototype to avoid an error.  */
33292 #ifdef __cplusplus
33293 extern "C"
33294 {
33295 #endif
33296 /* We use char because int might match the return type of a gcc2
33297    builtin and then its argument prototype would still apply.  */
33298 char $ac_func ();
33299 /* The GNU C library defines this for functions which it implements
33300     to always fail with ENOSYS.  Some functions are actually named
33301     something starting with __ and the normal name is an alias.  */
33302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33303 choke me
33304 #else
33305 char (*f) () = $ac_func;
33306 #endif
33307 #ifdef __cplusplus
33308 }
33309 #endif
33310
33311 int
33312 main ()
33313 {
33314 return f != $ac_func;
33315   ;
33316   return 0;
33317 }
33318 _ACEOF
33319 rm -f conftest.$ac_objext conftest$ac_exeext
33320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33321   (eval $ac_link) 2>&5
33322   ac_status=$?
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); } &&
33325          { ac_try='test -s conftest$ac_exeext'
33326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33327   (eval $ac_try) 2>&5
33328   ac_status=$?
33329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330   (exit $ac_status); }; }; then
33331   eval "$as_ac_var=yes"
33332 else
33333   echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33335
33336 eval "$as_ac_var=no"
33337 fi
33338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33339 fi
33340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33342 if test `eval echo '${'$as_ac_var'}'` = yes; then
33343   cat >>confdefs.h <<_ACEOF
33344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33345 _ACEOF
33346  have_sin=1
33347 fi
33348 done
33349
33350
33351 for ac_func in ceil
33352 do
33353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33354 echo "$as_me:$LINENO: checking for $ac_func" >&5
33355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33356 if eval "test \"\${$as_ac_var+set}\" = set"; then
33357   echo $ECHO_N "(cached) $ECHO_C" >&6
33358 else
33359   cat >conftest.$ac_ext <<_ACEOF
33360 #line $LINENO "configure"
33361 /* confdefs.h.  */
33362 _ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h.  */
33366 /* System header to define __stub macros and hopefully few prototypes,
33367     which can conflict with char $ac_func (); below.
33368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33369     <limits.h> exists even on freestanding compilers.  */
33370 #ifdef __STDC__
33371 # include <limits.h>
33372 #else
33373 # include <assert.h>
33374 #endif
33375 /* Override any gcc2 internal prototype to avoid an error.  */
33376 #ifdef __cplusplus
33377 extern "C"
33378 {
33379 #endif
33380 /* We use char because int might match the return type of a gcc2
33381    builtin and then its argument prototype would still apply.  */
33382 char $ac_func ();
33383 /* The GNU C library defines this for functions which it implements
33384     to always fail with ENOSYS.  Some functions are actually named
33385     something starting with __ and the normal name is an alias.  */
33386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33387 choke me
33388 #else
33389 char (*f) () = $ac_func;
33390 #endif
33391 #ifdef __cplusplus
33392 }
33393 #endif
33394
33395 int
33396 main ()
33397 {
33398 return f != $ac_func;
33399   ;
33400   return 0;
33401 }
33402 _ACEOF
33403 rm -f conftest.$ac_objext conftest$ac_exeext
33404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33405   (eval $ac_link) 2>&5
33406   ac_status=$?
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); } &&
33409          { ac_try='test -s conftest$ac_exeext'
33410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411   (eval $ac_try) 2>&5
33412   ac_status=$?
33413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414   (exit $ac_status); }; }; then
33415   eval "$as_ac_var=yes"
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420 eval "$as_ac_var=no"
33421 fi
33422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33423 fi
33424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33426 if test `eval echo '${'$as_ac_var'}'` = yes; then
33427   cat >>confdefs.h <<_ACEOF
33428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33429 _ACEOF
33430  have_ceil=1
33431 fi
33432 done
33433
33434     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33435 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
33436     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
33437         echo "$as_me:$LINENO: result: yes" >&5
33438 echo "${ECHO_T}yes" >&6
33439     else
33440         echo "$as_me:$LINENO: result: no" >&5
33441 echo "${ECHO_T}no" >&6
33442         # not sure we should warn the user, crash, etc.
33443     fi
33444 fi
33445
33446 if test "$wxUSE_GUI" = "yes"; then
33447
33448     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
33449
33450
33451             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33452                      drawing dynamic erase event exec font image \
33453                      minimal propsize rotate shaped widgets"
33454 else
33455     SAMPLES_SUBDIRS="console"
33456 fi
33457
33458
33459 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
33460 -I\${top_srcdir}/include \
33461 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33462 $TOOLKIT_INCLUDE"
33463
33464 if test "$wxUSE_GTK" = 1; then
33465     WXCONFIG_INCLUDE=
33466 else
33467     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33468 fi
33469
33470 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33471     WXUNIV=1
33472 else
33473     WXUNIV=0
33474 fi
33475
33476
33477
33478
33479
33480
33481
33482
33483 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33484
33485 if test $wxUSE_MONOLITHIC = "yes" ; then
33486     MONOLITHIC=1
33487 else
33488     MONOLITHIC=0
33489 fi
33490
33491
33492
33493
33494
33495
33496
33497 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
33498
33499
33500
33501
33502
33503     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
33504
33505     if test -n "$ac_tool_prefix"; then
33506   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33508 echo "$as_me:$LINENO: checking for $ac_word" >&5
33509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33510 if test "${ac_cv_prog_RANLIB+set}" = set; then
33511   echo $ECHO_N "(cached) $ECHO_C" >&6
33512 else
33513   if test -n "$RANLIB"; then
33514   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33515 else
33516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33517 for as_dir in $PATH
33518 do
33519   IFS=$as_save_IFS
33520   test -z "$as_dir" && as_dir=.
33521   for ac_exec_ext in '' $ac_executable_extensions; do
33522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33523     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33525     break 2
33526   fi
33527 done
33528 done
33529
33530 fi
33531 fi
33532 RANLIB=$ac_cv_prog_RANLIB
33533 if test -n "$RANLIB"; then
33534   echo "$as_me:$LINENO: result: $RANLIB" >&5
33535 echo "${ECHO_T}$RANLIB" >&6
33536 else
33537   echo "$as_me:$LINENO: result: no" >&5
33538 echo "${ECHO_T}no" >&6
33539 fi
33540
33541 fi
33542 if test -z "$ac_cv_prog_RANLIB"; then
33543   ac_ct_RANLIB=$RANLIB
33544   # Extract the first word of "ranlib", so it can be a program name with args.
33545 set dummy ranlib; ac_word=$2
33546 echo "$as_me:$LINENO: checking for $ac_word" >&5
33547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33548 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33549   echo $ECHO_N "(cached) $ECHO_C" >&6
33550 else
33551   if test -n "$ac_ct_RANLIB"; then
33552   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33553 else
33554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33555 for as_dir in $PATH
33556 do
33557   IFS=$as_save_IFS
33558   test -z "$as_dir" && as_dir=.
33559   for ac_exec_ext in '' $ac_executable_extensions; do
33560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33561     ac_cv_prog_ac_ct_RANLIB="ranlib"
33562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33563     break 2
33564   fi
33565 done
33566 done
33567
33568   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33569 fi
33570 fi
33571 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33572 if test -n "$ac_ct_RANLIB"; then
33573   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33574 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33575 else
33576   echo "$as_me:$LINENO: result: no" >&5
33577 echo "${ECHO_T}no" >&6
33578 fi
33579
33580   RANLIB=$ac_ct_RANLIB
33581 else
33582   RANLIB="$ac_cv_prog_RANLIB"
33583 fi
33584
33585     # Find a good install program.  We prefer a C program (faster),
33586 # so one script is as good as another.  But avoid the broken or
33587 # incompatible versions:
33588 # SysV /etc/install, /usr/sbin/install
33589 # SunOS /usr/etc/install
33590 # IRIX /sbin/install
33591 # AIX /bin/install
33592 # AmigaOS /C/install, which installs bootblocks on floppy discs
33593 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
33595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33596 # ./install, which can be erroneously created by make from ./install.sh.
33597 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33598 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
33599 if test -z "$INSTALL"; then
33600 if test "${ac_cv_path_install+set}" = set; then
33601   echo $ECHO_N "(cached) $ECHO_C" >&6
33602 else
33603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33604 for as_dir in $PATH
33605 do
33606   IFS=$as_save_IFS
33607   test -z "$as_dir" && as_dir=.
33608   # Account for people who put trailing slashes in PATH elements.
33609 case $as_dir/ in
33610   ./ | .// | /cC/* | \
33611   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33612   /usr/ucb/* ) ;;
33613   *)
33614     # OSF1 and SCO ODT 3.0 have their own names for install.
33615     # Don't use installbsd from OSF since it installs stuff as root
33616     # by default.
33617     for ac_prog in ginstall scoinst install; do
33618       for ac_exec_ext in '' $ac_executable_extensions; do
33619         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33620           if test $ac_prog = install &&
33621             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33622             # AIX install.  It has an incompatible calling convention.
33623             :
33624           elif test $ac_prog = install &&
33625             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33626             # program-specific install script used by HP pwplus--don't use.
33627             :
33628           else
33629             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33630             break 3
33631           fi
33632         fi
33633       done
33634     done
33635     ;;
33636 esac
33637 done
33638
33639
33640 fi
33641   if test "${ac_cv_path_install+set}" = set; then
33642     INSTALL=$ac_cv_path_install
33643   else
33644     # As a last resort, use the slow shell script.  We don't cache a
33645     # path for INSTALL within a source directory, because that will
33646     # break other packages using the cache if that directory is
33647     # removed, or if the path is relative.
33648     INSTALL=$ac_install_sh
33649   fi
33650 fi
33651 echo "$as_me:$LINENO: result: $INSTALL" >&5
33652 echo "${ECHO_T}$INSTALL" >&6
33653
33654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33655 # It thinks the first close brace ends the variable substitution.
33656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33657
33658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
33659
33660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33661
33662     echo "$as_me:$LINENO: checking whether ln -s works" >&5
33663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33664 LN_S=$as_ln_s
33665 if test "$LN_S" = "ln -s"; then
33666   echo "$as_me:$LINENO: result: yes" >&5
33667 echo "${ECHO_T}yes" >&6
33668 else
33669   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33670 echo "${ECHO_T}no, using $LN_S" >&6
33671 fi
33672
33673
33674     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33675 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33677 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33678   echo $ECHO_N "(cached) $ECHO_C" >&6
33679 else
33680   cat >conftest.make <<\_ACEOF
33681 all:
33682         @echo 'ac_maketemp="$(MAKE)"'
33683 _ACEOF
33684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33685 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
33686 if test -n "$ac_maketemp"; then
33687   eval ac_cv_prog_make_${ac_make}_set=yes
33688 else
33689   eval ac_cv_prog_make_${ac_make}_set=no
33690 fi
33691 rm -f conftest.make
33692 fi
33693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
33694   echo "$as_me:$LINENO: result: yes" >&5
33695 echo "${ECHO_T}yes" >&6
33696   SET_MAKE=
33697 else
33698   echo "$as_me:$LINENO: result: no" >&5
33699 echo "${ECHO_T}no" >&6
33700   SET_MAKE="MAKE=${MAKE-make}"
33701 fi
33702
33703
33704
33705     if test "$build" != "$host" ; then
33706         AR=$host_alias-ar
33707         STRIP=$host_alias-strip
33708     else
33709         # Extract the first word of "ar", so it can be a program name with args.
33710 set dummy ar; ac_word=$2
33711 echo "$as_me:$LINENO: checking for $ac_word" >&5
33712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33713 if test "${ac_cv_prog_AR+set}" = set; then
33714   echo $ECHO_N "(cached) $ECHO_C" >&6
33715 else
33716   if test -n "$AR"; then
33717   ac_cv_prog_AR="$AR" # Let the user override the test.
33718 else
33719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33720 for as_dir in $PATH
33721 do
33722   IFS=$as_save_IFS
33723   test -z "$as_dir" && as_dir=.
33724   for ac_exec_ext in '' $ac_executable_extensions; do
33725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33726     ac_cv_prog_AR="ar"
33727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33728     break 2
33729   fi
33730 done
33731 done
33732
33733   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33734 fi
33735 fi
33736 AR=$ac_cv_prog_AR
33737 if test -n "$AR"; then
33738   echo "$as_me:$LINENO: result: $AR" >&5
33739 echo "${ECHO_T}$AR" >&6
33740 else
33741   echo "$as_me:$LINENO: result: no" >&5
33742 echo "${ECHO_T}no" >&6
33743 fi
33744
33745         # Extract the first word of "strip", so it can be a program name with args.
33746 set dummy strip; ac_word=$2
33747 echo "$as_me:$LINENO: checking for $ac_word" >&5
33748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33749 if test "${ac_cv_prog_STRIP+set}" = set; then
33750   echo $ECHO_N "(cached) $ECHO_C" >&6
33751 else
33752   if test -n "$STRIP"; then
33753   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33754 else
33755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33756 for as_dir in $PATH
33757 do
33758   IFS=$as_save_IFS
33759   test -z "$as_dir" && as_dir=.
33760   for ac_exec_ext in '' $ac_executable_extensions; do
33761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33762     ac_cv_prog_STRIP="strip"
33763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33764     break 2
33765   fi
33766 done
33767 done
33768
33769   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33770 fi
33771 fi
33772 STRIP=$ac_cv_prog_STRIP
33773 if test -n "$STRIP"; then
33774   echo "$as_me:$LINENO: result: $STRIP" >&5
33775 echo "${ECHO_T}$STRIP" >&6
33776 else
33777   echo "$as_me:$LINENO: result: no" >&5
33778 echo "${ECHO_T}no" >&6
33779 fi
33780
33781     fi
33782
33783     case ${host} in
33784         *-hp-hpux* )
33785             INSTALL_DIR="mkdir"
33786             ;;
33787         *)  INSTALL_DIR="$INSTALL -d"
33788             ;;
33789     esac
33790
33791
33792     fi
33793
33794         echo "$as_me:$LINENO: checking if make is GNU make" >&5
33795 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
33796 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
33797   echo $ECHO_N "(cached) $ECHO_C" >&6
33798 else
33799
33800         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33801                 egrep -s GNU > /dev/null); then
33802             bakefile_cv_prog_makeisgnu="yes"
33803         else
33804             bakefile_cv_prog_makeisgnu="no"
33805         fi
33806
33807 fi
33808 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33809 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
33810
33811     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33812         IF_GNU_MAKE=""
33813     else
33814         IF_GNU_MAKE="#"
33815     fi
33816
33817
33818
33819     PLATFORM_UNIX=0
33820     PLATFORM_WIN32=0
33821     PLATFORM_MSDOS=0
33822     PLATFORM_MAC=0
33823     PLATFORM_MACOSX=0
33824
33825     case "${host}" in
33826         *-*-cygwin* | *-*-mingw32* )
33827             PLATFORM_WIN32=1
33828         ;;
33829         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33830             PLATFORM_MSDOS=1
33831         ;;
33832         powerpc-*-darwin* )
33833             PLATFORM_MAC=1
33834             PLATFORM_MACOSX=1
33835         ;;
33836         * )
33837             PLATFORM_UNIX=1
33838         ;;
33839     esac
33840
33841
33842
33843
33844
33845
33846
33847
33848     SO_SUFFIX="so"
33849     EXEEXT=""
33850     DLLPREFIX=lib
33851
33852     case "${host}" in
33853         *-hp-hpux* )
33854             SO_SUFFIX="sl"
33855         ;;
33856         *-*-aix* )
33857                                                                         SO_SUFFIX="a"
33858         ;;
33859         *-*-cygwin* | *-*-mingw32* )
33860             SO_SUFFIX="dll"
33861             EXEEXT=".exe"
33862             DLLPREFIX=""
33863         ;;
33864         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33865             EXEEXT=".exe"
33866             DLLPREFIX=""
33867         ;;
33868         powerpc-*-darwin* )
33869             SO_SUFFIX="dylib"
33870         ;;
33871     esac
33872
33873
33874
33875
33876
33877
33878         SHARED_LD_CC="\$(CC) -shared -o"
33879     SHARED_LD_CXX="\$(CXX) -shared -o"
33880
33881         if test "x$GCC" = "xyes"; then
33882                 PIC_FLAG="-fPIC"
33883     fi
33884
33885     case "${host}" in
33886       *-hp-hpux* )
33887                 if test "x$GCC" = "xyes"; then
33888                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33889             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33890         else
33891                         LDFLAGS="$LDFLAGS -L/usr/lib"
33892
33893             SHARED_LD_CC="${CC} -b -o"
33894             SHARED_LD_CXX="${CXX} -b -o"
33895             PIC_FLAG="+Z"
33896         fi
33897       ;;
33898
33899       *-*-linux* )
33900         if test "x$GCC" != "xyes"; then
33901             echo "$as_me:$LINENO: checking for Intel compiler" >&5
33902 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33903 if test "${bakefile_cv_prog_icc+set}" = set; then
33904   echo $ECHO_N "(cached) $ECHO_C" >&6
33905 else
33906
33907                 cat >conftest.$ac_ext <<_ACEOF
33908 #line $LINENO "configure"
33909 /* confdefs.h.  */
33910 _ACEOF
33911 cat confdefs.h >>conftest.$ac_ext
33912 cat >>conftest.$ac_ext <<_ACEOF
33913 /* end confdefs.h.  */
33914
33915 int
33916 main ()
33917 {
33918
33919                         #ifndef __INTEL_COMPILER
33920                         #error Not icc
33921                         #endif
33922
33923   ;
33924   return 0;
33925 }
33926 _ACEOF
33927 rm -f conftest.$ac_objext
33928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33929   (eval $ac_compile) 2>&5
33930   ac_status=$?
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); } &&
33933          { ac_try='test -s conftest.$ac_objext'
33934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935   (eval $ac_try) 2>&5
33936   ac_status=$?
33937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938   (exit $ac_status); }; }; then
33939   bakefile_cv_prog_icc=yes
33940 else
33941   echo "$as_me: failed program was:" >&5
33942 sed 's/^/| /' conftest.$ac_ext >&5
33943
33944 bakefile_cv_prog_icc=no
33945
33946 fi
33947 rm -f conftest.$ac_objext conftest.$ac_ext
33948
33949 fi
33950 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33951 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
33952             if test "$bakefile_cv_prog_icc" = "yes"; then
33953                 PIC_FLAG="-KPIC"
33954             fi
33955         fi
33956       ;;
33957
33958       *-*-solaris2* )
33959         if test "x$GCC" != xyes ; then
33960             SHARED_LD_CC="${CC} -G -o"
33961             SHARED_LD_CXX="${CXX} -G -o"
33962             PIC_FLAG="-KPIC"
33963         fi
33964       ;;
33965
33966       *-*-darwin* )
33967                         CFLAGS="$CFLAGS -fno-common"
33968         CXXFLAGS="$CXXFLAGS -fno-common"
33969
33970
33971         cat <<EOF >shared-ld-sh
33972 #!/bin/sh
33973 #-----------------------------------------------------------------------------
33974 #-- Name:        distrib/mac/shared-ld-sh
33975 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
33976 #-- Author:      Gilles Depeyrot
33977 #-- Copyright:   (c) 2002 Gilles Depeyrot
33978 #-- Licence:     any use permitted
33979 #-----------------------------------------------------------------------------
33980
33981 verbose=0
33982 args=""
33983 objects=""
33984
33985 while test \${#} -gt 0; do
33986     case \${1} in
33987
33988        -v)
33989         verbose=1
33990         ;;
33991
33992        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33993         # collect these options and values
33994         args="\${args} \${1} \${2}"
33995         shift
33996         ;;
33997
33998        -l*|-L*|-flat_namespace)
33999         # collect these options
34000         args="\${args} \${1}"
34001         ;;
34002
34003        -dynamiclib)
34004         # skip these options
34005         ;;
34006
34007        -*)
34008         echo "shared-ld: unhandled option '\${1}'"
34009         exit 1
34010         ;;
34011
34012         *.o | *.a)
34013         # collect object files
34014         objects="\${objects} \${1}"
34015         ;;
34016
34017         *)
34018         echo "shared-ld: unhandled argument '\${1}'"
34019         exit 1
34020         ;;
34021
34022     esac
34023     shift
34024 done
34025
34026 #
34027 # Link one module containing all the others
34028 #
34029 if test \${verbose} = 1; then
34030     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34031 fi
34032 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34033 status=\$?
34034 if test \${status} != 0; then
34035     exit \${status}
34036 fi
34037
34038 #
34039 # Link the shared library from the single module created
34040 #
34041 if test \${verbose} = 1; then
34042     echo "cc -dynamiclib master.\$\$.o \${args}"
34043 fi
34044 c++ -dynamiclib master.\$\$.o \${args}
34045 status=\$?
34046 if test \${status} != 0; then
34047     exit \${status}
34048 fi
34049
34050 #
34051 # Remove intermediate module
34052 #
34053 rm -f master.\$\$.o
34054
34055 exit 0
34056 EOF
34057         chmod +x shared-ld-sh
34058
34059         SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34060         SHARED_LD_CXX="$SHARED_LD_CC"
34061         PIC_FLAG="-dynamic -fPIC"
34062                                       ;;
34063
34064       *-*-aix* )
34065                 if test "x$GCC" != "xyes"; then
34066                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34067 set dummy makeC++SharedLib; ac_word=$2
34068 echo "$as_me:$LINENO: checking for $ac_word" >&5
34069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34070 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34071   echo $ECHO_N "(cached) $ECHO_C" >&6
34072 else
34073   if test -n "$AIX_CXX_LD"; then
34074   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34075 else
34076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34077 for as_dir in $PATH
34078 do
34079   IFS=$as_save_IFS
34080   test -z "$as_dir" && as_dir=.
34081   for ac_exec_ext in '' $ac_executable_extensions; do
34082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34083     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34085     break 2
34086   fi
34087 done
34088 done
34089
34090   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34091 fi
34092 fi
34093 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
34094 if test -n "$AIX_CXX_LD"; then
34095   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34096 echo "${ECHO_T}$AIX_CXX_LD" >&6
34097 else
34098   echo "$as_me:$LINENO: result: no" >&5
34099 echo "${ECHO_T}no" >&6
34100 fi
34101
34102                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34103             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34104         fi
34105       ;;
34106
34107       *-*-beos* )
34108                         SHARED_LD_CC="${LD} -shared -o"
34109         SHARED_LD_CXX="${LD} -shared -o"
34110       ;;
34111
34112       *-*-irix* )
34113                 if test "x$GCC" != "xyes"; then
34114             PIC_FLAG="-KPIC"
34115         fi
34116       ;;
34117
34118       *-*-cygwin* | *-*-mingw32* )
34119         PIC_FLAG=""
34120       ;;
34121
34122       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34123       *-*-sunos4* | \
34124       *-*-osf* | \
34125       *-*-dgux5* | \
34126       *-*-sysv5* )
34127               ;;
34128
34129       *)
34130         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34131 echo "$as_me: error: unknown system type $host." >&2;}
34132    { (exit 1); exit 1; }; }
34133     esac
34134
34135
34136
34137
34138
34139
34140     USE_SOVERSION=0
34141     USE_SOVERLINUX=0
34142     USE_SOVERSOLARIS=0
34143     USE_SOSYMLINKS=0
34144     USE_MACVERSION=0
34145     SONAME_FLAG=
34146
34147     case "${host}" in
34148       *-*-linux* )
34149         SONAME_FLAG="-Wl,-soname,"
34150         USE_SOVERSION=1
34151         USE_SOVERLINUX=1
34152         USE_SOSYMLINKS=1
34153       ;;
34154
34155       *-*-solaris2* )
34156         SONAME_FLAG="-h "
34157         USE_SOVERSION=1
34158         USE_SOVERSOLARIS=1
34159         USE_SOSYMLINKS=1
34160       ;;
34161
34162       *-*-darwin* )
34163         USE_MACVERSION=1
34164         USE_SOVERSION=1
34165         USE_SOSYMLINKS=1
34166       ;;
34167     esac
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34178 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34179     DEPS_TRACKING=0
34180
34181     if test "x$GCC" = "xyes"; then
34182         DEPSMODE=gcc
34183         DEPS_TRACKING=1
34184         echo "$as_me:$LINENO: result: gcc" >&5
34185 echo "${ECHO_T}gcc" >&6
34186     else
34187         echo "$as_me:$LINENO: result: none" >&5
34188 echo "${ECHO_T}none" >&6
34189     fi
34190
34191     if test $DEPS_TRACKING = 1 ; then
34192         cat <<EOF >bk-deps
34193 #!/bin/sh
34194
34195 # This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34196 # It is used to track C/C++ files dependencies in portable way.
34197 #
34198 # Permission is given to use this file in any way.
34199
34200 DEPSMODE=$DEPSMODE
34201 DEPSDIR=.deps
34202
34203 mkdir -p \$DEPSDIR
34204
34205 if test \$DEPSMODE = gcc ; then
34206     \${*} -MMD
34207     status=\${?}
34208     if test \${status} != 0 ; then
34209         exit \${status}
34210     fi
34211     # move created file to the location we want it in:
34212     while test \${#} -gt 0; do
34213         case "\${1}" in
34214             -o )
34215                 shift
34216                 objfile=\${1}
34217             ;;
34218             -* )
34219             ;;
34220             * )
34221                 srcfile=\${1}
34222             ;;
34223         esac
34224         shift
34225     done
34226     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34227     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
34228     sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34229     rm -f \$depfile
34230     exit 0
34231 else
34232     \${*}
34233     exit \${?}
34234 fi
34235 EOF
34236         chmod +x bk-deps
34237     fi
34238
34239
34240
34241
34242     RESCOMP=
34243     SETFILE=
34244
34245     case ${host} in
34246         *-*-cygwin* | *-*-mingw32* )
34247                         if test "$build" != "$host" ; then
34248                 RESCOMP=$host_alias-windres
34249             else
34250                 # Extract the first word of "windres", so it can be a program name with args.
34251 set dummy windres; ac_word=$2
34252 echo "$as_me:$LINENO: checking for $ac_word" >&5
34253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34254 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34255   echo $ECHO_N "(cached) $ECHO_C" >&6
34256 else
34257   if test -n "$RESCOMP"; then
34258   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34259 else
34260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34261 for as_dir in $PATH
34262 do
34263   IFS=$as_save_IFS
34264   test -z "$as_dir" && as_dir=.
34265   for ac_exec_ext in '' $ac_executable_extensions; do
34266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34267     ac_cv_prog_RESCOMP="windres"
34268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34269     break 2
34270   fi
34271 done
34272 done
34273
34274   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34275 fi
34276 fi
34277 RESCOMP=$ac_cv_prog_RESCOMP
34278 if test -n "$RESCOMP"; then
34279   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34280 echo "${ECHO_T}$RESCOMP" >&6
34281 else
34282   echo "$as_me:$LINENO: result: no" >&5
34283 echo "${ECHO_T}no" >&6
34284 fi
34285
34286             fi
34287          ;;
34288
34289       *-*-darwin* )
34290             # Extract the first word of "Rez", so it can be a program name with args.
34291 set dummy Rez; ac_word=$2
34292 echo "$as_me:$LINENO: checking for $ac_word" >&5
34293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34294 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34295   echo $ECHO_N "(cached) $ECHO_C" >&6
34296 else
34297   if test -n "$RESCOMP"; then
34298   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34299 else
34300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34301 for as_dir in $PATH
34302 do
34303   IFS=$as_save_IFS
34304   test -z "$as_dir" && as_dir=.
34305   for ac_exec_ext in '' $ac_executable_extensions; do
34306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34307     ac_cv_prog_RESCOMP="Rez"
34308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34309     break 2
34310   fi
34311 done
34312 done
34313
34314   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34315 fi
34316 fi
34317 RESCOMP=$ac_cv_prog_RESCOMP
34318 if test -n "$RESCOMP"; then
34319   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34320 echo "${ECHO_T}$RESCOMP" >&6
34321 else
34322   echo "$as_me:$LINENO: result: no" >&5
34323 echo "${ECHO_T}no" >&6
34324 fi
34325
34326             # Extract the first word of "SetFile", so it can be a program name with args.
34327 set dummy SetFile; ac_word=$2
34328 echo "$as_me:$LINENO: checking for $ac_word" >&5
34329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34330 if test "${ac_cv_prog_SETFILE+set}" = set; then
34331   echo $ECHO_N "(cached) $ECHO_C" >&6
34332 else
34333   if test -n "$SETFILE"; then
34334   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34335 else
34336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34337 for as_dir in $PATH
34338 do
34339   IFS=$as_save_IFS
34340   test -z "$as_dir" && as_dir=.
34341   for ac_exec_ext in '' $ac_executable_extensions; do
34342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34343     ac_cv_prog_SETFILE="SetFile"
34344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34345     break 2
34346   fi
34347 done
34348 done
34349
34350   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34351 fi
34352 fi
34353 SETFILE=$ac_cv_prog_SETFILE
34354 if test -n "$SETFILE"; then
34355   echo "$as_me:$LINENO: result: $SETFILE" >&5
34356 echo "${ECHO_T}$SETFILE" >&6
34357 else
34358   echo "$as_me:$LINENO: result: no" >&5
34359 echo "${ECHO_T}no" >&6
34360 fi
34361
34362         ;;
34363     esac
34364
34365
34366
34367
34368
34369
34370
34371     COND_SHARED_1_MONOLITHIC_0="#"
34372     if test "x$SHARED" = "x1" -a \
34373             "x$MONOLITHIC" = "x0" ; then
34374         COND_SHARED_1_MONOLITHIC_0=
34375     fi
34376
34377     COND_WXUSE_LIBPNG_BUILTIN="#"
34378     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34379         COND_WXUSE_LIBPNG_BUILTIN=
34380     fi
34381
34382     COND_WXUSE_ZLIB_BUILTIN="#"
34383     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34384         COND_WXUSE_ZLIB_BUILTIN=
34385     fi
34386
34387     COND_USE_SOSYMLINKS_1="#"
34388     if test "x$USE_SOSYMLINKS" = "x1" ; then
34389         COND_USE_SOSYMLINKS_1=
34390     fi
34391
34392     COND_USE_GUI_1="#"
34393     if test "x$USE_GUI" = "x1" ; then
34394         COND_USE_GUI_1=
34395     fi
34396
34397     COND_WXUSE_ODBC_BUILTIN="#"
34398     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34399         COND_WXUSE_ODBC_BUILTIN=
34400     fi
34401
34402     COND_TOOLKIT_X11="#"
34403     if test "x$TOOLKIT" = "xX11" ; then
34404         COND_TOOLKIT_X11=
34405     fi
34406
34407     COND_TOOLKIT_MGL="#"
34408     if test "x$TOOLKIT" = "xMGL" ; then
34409         COND_TOOLKIT_MGL=
34410     fi
34411
34412     COND_TOOLKIT_GTK="#"
34413     if test "x$TOOLKIT" = "xGTK" ; then
34414         COND_TOOLKIT_GTK=
34415     fi
34416
34417     COND_TOOLKIT_MSW="#"
34418     if test "x$TOOLKIT" = "xMSW" ; then
34419         COND_TOOLKIT_MSW=
34420     fi
34421
34422     COND_TOOLKIT_MAC="#"
34423     if test "x$TOOLKIT" = "xMAC" ; then
34424         COND_TOOLKIT_MAC=
34425     fi
34426
34427     COND_USE_SOVERSION_1_PLATFORM_MACOSX_0="#"
34428     if test "x$USE_SOVERSION" = "x1" -a \
34429             "x$PLATFORM_MACOSX" = "x0" ; then
34430         COND_USE_SOVERSION_1_PLATFORM_MACOSX_0=
34431     fi
34432
34433     COND_USE_SOVERSION_1_PLATFORM_MACOSX_1="#"
34434     if test "x$USE_SOVERSION" = "x1" -a \
34435             "x$PLATFORM_MACOSX" = "x1" ; then
34436         COND_USE_SOVERSION_1_PLATFORM_MACOSX_1=
34437     fi
34438
34439     COND_PLATFORM_WIN32_1="#"
34440     if test "x$PLATFORM_WIN32" = "x1" ; then
34441         COND_PLATFORM_WIN32_1=
34442     fi
34443
34444     COND_SHARED_0_USE_GUI_1_MONOLITHIC_0="#"
34445     if test "x$SHARED" = "x0" -a \
34446             "x$USE_GUI" = "x1" -a \
34447             "x$MONOLITHIC" = "x0" ; then
34448         COND_SHARED_0_USE_GUI_1_MONOLITHIC_0=
34449     fi
34450
34451     COND_PLATFORM_UNIX_1="#"
34452     if test "x$PLATFORM_UNIX" = "x1" ; then
34453         COND_PLATFORM_UNIX_1=
34454     fi
34455
34456     COND_PLATFORM_MACOSX_1="#"
34457     if test "x$PLATFORM_MACOSX" = "x1" ; then
34458         COND_PLATFORM_MACOSX_1=
34459     fi
34460
34461     COND_WXUSE_LIBTIFF_BUILTIN="#"
34462     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34463         COND_WXUSE_LIBTIFF_BUILTIN=
34464     fi
34465
34466     COND_SHARED_1_USE_GUI_1_MONOLITHIC_0="#"
34467     if test "x$SHARED" = "x1" -a \
34468             "x$USE_GUI" = "x1" -a \
34469             "x$MONOLITHIC" = "x0" ; then
34470         COND_SHARED_1_USE_GUI_1_MONOLITHIC_0=
34471     fi
34472
34473     COND_MONOLITHIC_0="#"
34474     if test "x$MONOLITHIC" = "x0" ; then
34475         COND_MONOLITHIC_0=
34476     fi
34477
34478     COND_WXUSE_REGEX_BUILTIN="#"
34479     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34480         COND_WXUSE_REGEX_BUILTIN=
34481     fi
34482
34483     COND_TOOLKIT_MOTIF="#"
34484     if test "x$TOOLKIT" = "xMOTIF" ; then
34485         COND_TOOLKIT_MOTIF=
34486     fi
34487
34488     COND_TOOLKIT_COCOA="#"
34489     if test "x$TOOLKIT" = "xCOCOA" ; then
34490         COND_TOOLKIT_COCOA=
34491     fi
34492
34493     COND_TOOLKIT_OS2="#"
34494     if test "x$TOOLKIT" = "xOS2" ; then
34495         COND_TOOLKIT_OS2=
34496     fi
34497
34498     COND_WXUNIV_1="#"
34499     if test "x$WXUNIV" = "x1" ; then
34500         COND_WXUNIV_1=
34501     fi
34502
34503     COND_WXUSE_LIBJPEG_BUILTIN="#"
34504     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34505         COND_WXUSE_LIBJPEG_BUILTIN=
34506     fi
34507
34508     COND_USE_GUI_0="#"
34509     if test "x$USE_GUI" = "x0" ; then
34510         COND_USE_GUI_0=
34511     fi
34512
34513     COND_SHARED_1_MONOLITHIC_1="#"
34514     if test "x$SHARED" = "x1" -a \
34515             "x$MONOLITHIC" = "x1" ; then
34516         COND_SHARED_1_MONOLITHIC_1=
34517     fi
34518
34519     COND_SHARED_0_MONOLITHIC_1="#"
34520     if test "x$SHARED" = "x0" -a \
34521             "x$MONOLITHIC" = "x1" ; then
34522         COND_SHARED_0_MONOLITHIC_1=
34523     fi
34524
34525     COND_USE_SOVERLINUX_1="#"
34526     if test "x$USE_SOVERLINUX" = "x1" ; then
34527         COND_USE_SOVERLINUX_1=
34528     fi
34529
34530     COND_USE_SOVERSOLARIS_1="#"
34531     if test "x$USE_SOVERSOLARIS" = "x1" ; then
34532         COND_USE_SOVERSOLARIS_1=
34533     fi
34534
34535     COND_USE_GUI_1_WXUNIV_0="#"
34536     if test "x$USE_GUI" = "x1" -a \
34537             "x$WXUNIV" = "x0" ; then
34538         COND_USE_GUI_1_WXUNIV_0=
34539     fi
34540
34541     COND_USE_GUI_1_WXUNIV_1="#"
34542     if test "x$USE_GUI" = "x1" -a \
34543             "x$WXUNIV" = "x1" ; then
34544         COND_USE_GUI_1_WXUNIV_1=
34545     fi
34546
34547     COND_UNICODE_1="#"
34548     if test "x$UNICODE" = "x1" ; then
34549         COND_UNICODE_1=
34550     fi
34551
34552     COND_PLATFORM_WIN32_0="#"
34553     if test "x$PLATFORM_WIN32" = "x0" ; then
34554         COND_PLATFORM_WIN32_0=
34555     fi
34556
34557     COND_MONOLITHIC_1="#"
34558     if test "x$MONOLITHIC" = "x1" ; then
34559         COND_MONOLITHIC_1=
34560     fi
34561
34562     COND_SHARED_0_MONOLITHIC_0="#"
34563     if test "x$SHARED" = "x0" -a \
34564             "x$MONOLITHIC" = "x0" ; then
34565         COND_SHARED_0_MONOLITHIC_0=
34566     fi
34567
34568     COND_BUILD_DEBUG="#"
34569     if test "x$BUILD" = "xdebug" ; then
34570         COND_BUILD_DEBUG=
34571     fi
34572
34573     COND_DEPS_TYPE_GCC="#"
34574     if test "x$DEPS_TYPE" = "xgcc" ; then
34575         COND_DEPS_TYPE_GCC=
34576     fi
34577
34578     COND_PLATFORM_MAC_1="#"
34579     if test "x$PLATFORM_MAC" = "x1" ; then
34580         COND_PLATFORM_MAC_1=
34581     fi
34582
34583     COND_SHARED_1="#"
34584     if test "x$SHARED" = "x1" ; then
34585         COND_SHARED_1=
34586     fi
34587
34588     COND_SHARED_0="#"
34589     if test "x$SHARED" = "x0" ; then
34590         COND_SHARED_0=
34591     fi
34592
34593     COND_DEPS_TRACKING_1="#"
34594     if test "x$DEPS_TRACKING" = "x1" ; then
34595         COND_DEPS_TRACKING_1=
34596     fi
34597
34598     COND_DEPS_TRACKING_0="#"
34599     if test "x$DEPS_TRACKING" = "x0" ; then
34600         COND_DEPS_TRACKING_0=
34601     fi
34602
34603
34604
34605
34606 if test "$GXX" = yes ; then
34607         CXXWARNINGS="-Wall"
34608         fi
34609
34610 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34611
34612 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
34613 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34614 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
34615 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
34616
34617 LDFLAGS="$LDFLAGS $PROFILE"
34618
34619 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34724 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34725 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34726 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34727   echo $ECHO_N "(cached) $ECHO_C" >&6
34728 else
34729   cat >conftest.make <<\_ACEOF
34730 all:
34731         @echo 'ac_maketemp="$(MAKE)"'
34732 _ACEOF
34733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34734 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34735 if test -n "$ac_maketemp"; then
34736   eval ac_cv_prog_make_${ac_make}_set=yes
34737 else
34738   eval ac_cv_prog_make_${ac_make}_set=no
34739 fi
34740 rm -f conftest.make
34741 fi
34742 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34743   echo "$as_me:$LINENO: result: yes" >&5
34744 echo "${ECHO_T}yes" >&6
34745   SET_MAKE=
34746 else
34747   echo "$as_me:$LINENO: result: no" >&5
34748 echo "${ECHO_T}no" >&6
34749   SET_MAKE="MAKE=${MAKE-make}"
34750 fi
34751
34752
34753 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34754     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34755 fi
34756
34757           ac_config_headers="$ac_config_headers setup.h"
34758
34759
34760                               ac_config_files="$ac_config_files wx-config version-script Makefile"
34761
34762
34763           ac_config_commands="$ac_config_commands default"
34764
34765
34766
34767 for subdir in samples demos utils contrib ; do
34768     if test -d ${srcdir}/${subdir} ; then
34769         makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34770         for mkin in $makefiles ; do
34771             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34772                       ac_config_files="$ac_config_files $mk"
34773
34774         done
34775     fi
34776 done
34777
34778
34779 cat >confcache <<\_ACEOF
34780 # This file is a shell script that caches the results of configure
34781 # tests run on this system so they can be shared between configure
34782 # scripts and configure runs, see configure's option --config-cache.
34783 # It is not useful on other systems.  If it contains results you don't
34784 # want to keep, you may remove or edit it.
34785 #
34786 # config.status only pays attention to the cache file if you give it
34787 # the --recheck option to rerun configure.
34788 #
34789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34791 # following values.
34792
34793 _ACEOF
34794
34795 # The following way of writing the cache mishandles newlines in values,
34796 # but we know of no workaround that is simple, portable, and efficient.
34797 # So, don't put newlines in cache variables' values.
34798 # Ultrix sh set writes to stderr and can't be redirected directly,
34799 # and sets the high bit in the cache file unless we assign to the vars.
34800 {
34801   (set) 2>&1 |
34802     case `(ac_space=' '; set | grep ac_space) 2>&1` in
34803     *ac_space=\ *)
34804       # `set' does not quote correctly, so add quotes (double-quote
34805       # substitution turns \\\\ into \\, and sed turns \\ into \).
34806       sed -n \
34807         "s/'/'\\\\''/g;
34808           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34809       ;;
34810     *)
34811       # `set' quotes correctly as required by POSIX, so do not add quotes.
34812       sed -n \
34813         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34814       ;;
34815     esac;
34816 } |
34817   sed '
34818      t clear
34819      : clear
34820      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34821      t end
34822      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34823      : end' >>confcache
34824 if diff $cache_file confcache >/dev/null 2>&1; then :; else
34825   if test -w $cache_file; then
34826     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34827     cat confcache >$cache_file
34828   else
34829     echo "not updating unwritable cache $cache_file"
34830   fi
34831 fi
34832 rm -f confcache
34833
34834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34835 # Let make expand exec_prefix.
34836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34837
34838 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34839 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34840 # trailing colons and then remove the whole line if VPATH becomes empty
34841 # (actually we leave an empty line to preserve line numbers).
34842 if test "x$srcdir" = x.; then
34843   ac_vpsub='/^[         ]*VPATH[        ]*=/{
34844 s/:*\$(srcdir):*/:/;
34845 s/:*\${srcdir}:*/:/;
34846 s/:*@srcdir@:*/:/;
34847 s/^\([^=]*=[    ]*\):*/\1/;
34848 s/:*$//;
34849 s/^[^=]*=[      ]*$//;
34850 }'
34851 fi
34852
34853 DEFS=-DHAVE_CONFIG_H
34854
34855 ac_libobjs=
34856 ac_ltlibobjs=
34857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34858   # 1. Remove the extension, and $U if already installed.
34859   ac_i=`echo "$ac_i" |
34860          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34861   # 2. Add them.
34862   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34863   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34864 done
34865 LIBOBJS=$ac_libobjs
34866
34867 LTLIBOBJS=$ac_ltlibobjs
34868
34869
34870
34871 : ${CONFIG_STATUS=./config.status}
34872 ac_clean_files_save=$ac_clean_files
34873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34874 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34875 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34876 cat >$CONFIG_STATUS <<_ACEOF
34877 #! $SHELL
34878 # Generated by $as_me.
34879 # Run this file to recreate the current configuration.
34880 # Compiler output produced by configure, useful for debugging
34881 # configure, is in config.log if it exists.
34882
34883 debug=false
34884 ac_cs_recheck=false
34885 ac_cs_silent=false
34886 SHELL=\${CONFIG_SHELL-$SHELL}
34887 _ACEOF
34888
34889 cat >>$CONFIG_STATUS <<\_ACEOF
34890 ## --------------------- ##
34891 ## M4sh Initialization.  ##
34892 ## --------------------- ##
34893
34894 # Be Bourne compatible
34895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34896   emulate sh
34897   NULLCMD=:
34898   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34899   # is contrary to our usage.  Disable this feature.
34900   alias -g '${1+"$@"}'='"$@"'
34901 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34902   set -o posix
34903 fi
34904
34905 # Support unset when possible.
34906 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34907   as_unset=unset
34908 else
34909   as_unset=false
34910 fi
34911
34912
34913 # Work around bugs in pre-3.0 UWIN ksh.
34914 $as_unset ENV MAIL MAILPATH
34915 PS1='$ '
34916 PS2='> '
34917 PS4='+ '
34918
34919 # NLS nuisances.
34920 for as_var in \
34921   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34922   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34923   LC_TELEPHONE LC_TIME
34924 do
34925   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34926     eval $as_var=C; export $as_var
34927   else
34928     $as_unset $as_var
34929   fi
34930 done
34931
34932 # Required to use basename.
34933 if expr a : '\(a\)' >/dev/null 2>&1; then
34934   as_expr=expr
34935 else
34936   as_expr=false
34937 fi
34938
34939 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34940   as_basename=basename
34941 else
34942   as_basename=false
34943 fi
34944
34945
34946 # Name of the executable.
34947 as_me=`$as_basename "$0" ||
34948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34949          X"$0" : 'X\(//\)$' \| \
34950          X"$0" : 'X\(/\)$' \| \
34951          .     : '\(.\)' 2>/dev/null ||
34952 echo X/"$0" |
34953     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34954           /^X\/\(\/\/\)$/{ s//\1/; q; }
34955           /^X\/\(\/\).*/{ s//\1/; q; }
34956           s/.*/./; q'`
34957
34958
34959 # PATH needs CR, and LINENO needs CR and PATH.
34960 # Avoid depending upon Character Ranges.
34961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34964 as_cr_digits='0123456789'
34965 as_cr_alnum=$as_cr_Letters$as_cr_digits
34966
34967 # The user is always right.
34968 if test "${PATH_SEPARATOR+set}" != set; then
34969   echo "#! /bin/sh" >conf$$.sh
34970   echo  "exit 0"   >>conf$$.sh
34971   chmod +x conf$$.sh
34972   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34973     PATH_SEPARATOR=';'
34974   else
34975     PATH_SEPARATOR=:
34976   fi
34977   rm -f conf$$.sh
34978 fi
34979
34980
34981   as_lineno_1=$LINENO
34982   as_lineno_2=$LINENO
34983   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34984   test "x$as_lineno_1" != "x$as_lineno_2" &&
34985   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
34986   # Find who we are.  Look in the path if we contain no path at all
34987   # relative or not.
34988   case $0 in
34989     *[\\/]* ) as_myself=$0 ;;
34990     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34991 for as_dir in $PATH
34992 do
34993   IFS=$as_save_IFS
34994   test -z "$as_dir" && as_dir=.
34995   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34996 done
34997
34998        ;;
34999   esac
35000   # We did not find ourselves, most probably we were run as `sh COMMAND'
35001   # in which case we are not to be found in the path.
35002   if test "x$as_myself" = x; then
35003     as_myself=$0
35004   fi
35005   if test ! -f "$as_myself"; then
35006     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35007 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35008    { (exit 1); exit 1; }; }
35009   fi
35010   case $CONFIG_SHELL in
35011   '')
35012     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35013 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35014 do
35015   IFS=$as_save_IFS
35016   test -z "$as_dir" && as_dir=.
35017   for as_base in sh bash ksh sh5; do
35018          case $as_dir in
35019          /*)
35020            if ("$as_dir/$as_base" -c '
35021   as_lineno_1=$LINENO
35022   as_lineno_2=$LINENO
35023   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35024   test "x$as_lineno_1" != "x$as_lineno_2" &&
35025   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
35026              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35027              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35028              CONFIG_SHELL=$as_dir/$as_base
35029              export CONFIG_SHELL
35030              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35031            fi;;
35032          esac
35033        done
35034 done
35035 ;;
35036   esac
35037
35038   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35039   # uniformly replaced by the line number.  The first 'sed' inserts a
35040   # line-number line before each line; the second 'sed' does the real
35041   # work.  The second script uses 'N' to pair each line-number line
35042   # with the numbered line, and appends trailing '-' during
35043   # substitution so that $LINENO is not a special case at line end.
35044   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35045   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
35046   sed '=' <$as_myself |
35047     sed '
35048       N
35049       s,$,-,
35050       : loop
35051       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35052       t loop
35053       s,-$,,
35054       s,^['$as_cr_digits']*\n,,
35055     ' >$as_me.lineno &&
35056   chmod +x $as_me.lineno ||
35057     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35058 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35059    { (exit 1); exit 1; }; }
35060
35061   # Don't try to exec as it changes $[0], causing all sort of problems
35062   # (the dirname of $[0] is not the place where we might find the
35063   # original and so on.  Autoconf is especially sensible to this).
35064   . ./$as_me.lineno
35065   # Exit status is that of the last command.
35066   exit
35067 }
35068
35069
35070 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35071   *c*,-n*) ECHO_N= ECHO_C='
35072 ' ECHO_T='      ' ;;
35073   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35074   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
35075 esac
35076
35077 if expr a : '\(a\)' >/dev/null 2>&1; then
35078   as_expr=expr
35079 else
35080   as_expr=false
35081 fi
35082
35083 rm -f conf$$ conf$$.exe conf$$.file
35084 echo >conf$$.file
35085 if ln -s conf$$.file conf$$ 2>/dev/null; then
35086   # We could just check for DJGPP; but this test a) works b) is more generic
35087   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35088   if test -f conf$$.exe; then
35089     # Don't use ln at all; we don't have any links
35090     as_ln_s='cp -p'
35091   else
35092     as_ln_s='ln -s'
35093   fi
35094 elif ln conf$$.file conf$$ 2>/dev/null; then
35095   as_ln_s=ln
35096 else
35097   as_ln_s='cp -p'
35098 fi
35099 rm -f conf$$ conf$$.exe conf$$.file
35100
35101 if mkdir -p . 2>/dev/null; then
35102   as_mkdir_p=:
35103 else
35104   as_mkdir_p=false
35105 fi
35106
35107 as_executable_p="test -f"
35108
35109 # Sed expression to map a string onto a valid CPP name.
35110 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35111
35112 # Sed expression to map a string onto a valid variable name.
35113 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35114
35115
35116 # IFS
35117 # We need space, tab and new line, in precisely that order.
35118 as_nl='
35119 '
35120 IFS="   $as_nl"
35121
35122 # CDPATH.
35123 $as_unset CDPATH
35124
35125 exec 6>&1
35126
35127 # Open the log real soon, to keep \$[0] and so on meaningful, and to
35128 # report actual input values of CONFIG_FILES etc. instead of their
35129 # values after options handling.  Logging --version etc. is OK.
35130 exec 5>>config.log
35131 {
35132   echo
35133   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35134 ## Running $as_me. ##
35135 _ASBOX
35136 } >&5
35137 cat >&5 <<_CSEOF
35138
35139 This file was extended by wxWindows $as_me 2.5.0, which was
35140 generated by GNU Autoconf 2.57.  Invocation command line was
35141
35142   CONFIG_FILES    = $CONFIG_FILES
35143   CONFIG_HEADERS  = $CONFIG_HEADERS
35144   CONFIG_LINKS    = $CONFIG_LINKS
35145   CONFIG_COMMANDS = $CONFIG_COMMANDS
35146   $ $0 $@
35147
35148 _CSEOF
35149 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35150 echo >&5
35151 _ACEOF
35152
35153 # Files that config.status was made for.
35154 if test -n "$ac_config_files"; then
35155   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35156 fi
35157
35158 if test -n "$ac_config_headers"; then
35159   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35160 fi
35161
35162 if test -n "$ac_config_links"; then
35163   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35164 fi
35165
35166 if test -n "$ac_config_commands"; then
35167   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35168 fi
35169
35170 cat >>$CONFIG_STATUS <<\_ACEOF
35171
35172 ac_cs_usage="\
35173 \`$as_me' instantiates files from templates according to the
35174 current configuration.
35175
35176 Usage: $0 [OPTIONS] [FILE]...
35177
35178   -h, --help       print this help, then exit
35179   -V, --version    print version number, then exit
35180   -q, --quiet      do not print progress messages
35181   -d, --debug      don't remove temporary files
35182       --recheck    update $as_me by reconfiguring in the same conditions
35183   --file=FILE[:TEMPLATE]
35184                    instantiate the configuration file FILE
35185   --header=FILE[:TEMPLATE]
35186                    instantiate the configuration header FILE
35187
35188 Configuration files:
35189 $config_files
35190
35191 Configuration headers:
35192 $config_headers
35193
35194 Configuration commands:
35195 $config_commands
35196
35197 Report bugs to <bug-autoconf@gnu.org>."
35198 _ACEOF
35199
35200 cat >>$CONFIG_STATUS <<_ACEOF
35201 ac_cs_version="\\
35202 wxWindows config.status 2.5.0
35203 configured by $0, generated by GNU Autoconf 2.57,
35204   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35205
35206 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35207 Free Software Foundation, Inc.
35208 This config.status script is free software; the Free Software Foundation
35209 gives unlimited permission to copy, distribute and modify it."
35210 srcdir=$srcdir
35211 INSTALL="$INSTALL"
35212 _ACEOF
35213
35214 cat >>$CONFIG_STATUS <<\_ACEOF
35215 # If no file are specified by the user, then we need to provide default
35216 # value.  By we need to know if files were specified by the user.
35217 ac_need_defaults=:
35218 while test $# != 0
35219 do
35220   case $1 in
35221   --*=*)
35222     ac_option=`expr "x$1" : 'x\([^=]*\)='`
35223     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35224     ac_shift=:
35225     ;;
35226   -*)
35227     ac_option=$1
35228     ac_optarg=$2
35229     ac_shift=shift
35230     ;;
35231   *) # This is not an option, so the user has probably given explicit
35232      # arguments.
35233      ac_option=$1
35234      ac_need_defaults=false;;
35235   esac
35236
35237   case $ac_option in
35238   # Handling of the options.
35239 _ACEOF
35240 cat >>$CONFIG_STATUS <<\_ACEOF
35241   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35242     ac_cs_recheck=: ;;
35243   --version | --vers* | -V )
35244     echo "$ac_cs_version"; exit 0 ;;
35245   --he | --h)
35246     # Conflict between --help and --header
35247     { { echo "$as_me:$LINENO: error: ambiguous option: $1
35248 Try \`$0 --help' for more information." >&5
35249 echo "$as_me: error: ambiguous option: $1
35250 Try \`$0 --help' for more information." >&2;}
35251    { (exit 1); exit 1; }; };;
35252   --help | --hel | -h )
35253     echo "$ac_cs_usage"; exit 0 ;;
35254   --debug | --d* | -d )
35255     debug=: ;;
35256   --file | --fil | --fi | --f )
35257     $ac_shift
35258     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35259     ac_need_defaults=false;;
35260   --header | --heade | --head | --hea )
35261     $ac_shift
35262     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35263     ac_need_defaults=false;;
35264   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35265   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35266     ac_cs_silent=: ;;
35267
35268   # This is an error.
35269   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35270 Try \`$0 --help' for more information." >&5
35271 echo "$as_me: error: unrecognized option: $1
35272 Try \`$0 --help' for more information." >&2;}
35273    { (exit 1); exit 1; }; } ;;
35274
35275   *) ac_config_targets="$ac_config_targets $1" ;;
35276
35277   esac
35278   shift
35279 done
35280
35281 ac_configure_extra_args=
35282
35283 if $ac_cs_silent; then
35284   exec 6>/dev/null
35285   ac_configure_extra_args="$ac_configure_extra_args --silent"
35286 fi
35287
35288 _ACEOF
35289 cat >>$CONFIG_STATUS <<_ACEOF
35290 if \$ac_cs_recheck; then
35291   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35292   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35293 fi
35294
35295 _ACEOF
35296
35297 cat >>$CONFIG_STATUS <<_ACEOF
35298 #
35299 # INIT-COMMANDS section.
35300 #
35301
35302
35303             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35304             LN_S="${LN_S}"
35305
35306
35307
35308 _ACEOF
35309
35310
35311
35312 cat >>$CONFIG_STATUS <<\_ACEOF
35313 for ac_config_target in $ac_config_targets
35314 do
35315   case "$ac_config_target" in
35316   # Handling of arguments.
35317   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35318   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35319   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35320   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
35321   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35322   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35323   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35324 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35325    { (exit 1); exit 1; }; };;
35326   esac
35327 done
35328
35329 # If the user did not use the arguments to specify the items to instantiate,
35330 # then the envvar interface is used.  Set only those that are not.
35331 # We use the long form for the default assignment because of an extremely
35332 # bizarre bug on SunOS 4.1.3.
35333 if $ac_need_defaults; then
35334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35336   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35337 fi
35338
35339 # Have a temporary directory for convenience.  Make it in the build tree
35340 # simply because there is no reason to put it here, and in addition,
35341 # creating and moving files from /tmp can sometimes cause problems.
35342 # Create a temporary directory, and hook for its removal unless debugging.
35343 $debug ||
35344 {
35345   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35346   trap '{ (exit 1); exit 1; }' 1 2 13 15
35347 }
35348
35349 # Create a (secure) tmp directory for tmp files.
35350
35351 {
35352   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35353   test -n "$tmp" && test -d "$tmp"
35354 }  ||
35355 {
35356   tmp=./confstat$$-$RANDOM
35357   (umask 077 && mkdir $tmp)
35358 } ||
35359 {
35360    echo "$me: cannot create a temporary directory in ." >&2
35361    { (exit 1); exit 1; }
35362 }
35363
35364 _ACEOF
35365
35366 cat >>$CONFIG_STATUS <<_ACEOF
35367
35368 #
35369 # CONFIG_FILES section.
35370 #
35371
35372 # No need to generate the scripts if there are no CONFIG_FILES.
35373 # This happens for instance when ./config.status config.h
35374 if test -n "\$CONFIG_FILES"; then
35375   # Protect against being on the right side of a sed subst in config.status.
35376   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35377    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35378 s,@SHELL@,$SHELL,;t t
35379 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35380 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35381 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35382 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35383 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35384 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35385 s,@exec_prefix@,$exec_prefix,;t t
35386 s,@prefix@,$prefix,;t t
35387 s,@program_transform_name@,$program_transform_name,;t t
35388 s,@bindir@,$bindir,;t t
35389 s,@sbindir@,$sbindir,;t t
35390 s,@libexecdir@,$libexecdir,;t t
35391 s,@datadir@,$datadir,;t t
35392 s,@sysconfdir@,$sysconfdir,;t t
35393 s,@sharedstatedir@,$sharedstatedir,;t t
35394 s,@localstatedir@,$localstatedir,;t t
35395 s,@libdir@,$libdir,;t t
35396 s,@includedir@,$includedir,;t t
35397 s,@oldincludedir@,$oldincludedir,;t t
35398 s,@infodir@,$infodir,;t t
35399 s,@mandir@,$mandir,;t t
35400 s,@build_alias@,$build_alias,;t t
35401 s,@host_alias@,$host_alias,;t t
35402 s,@target_alias@,$target_alias,;t t
35403 s,@DEFS@,$DEFS,;t t
35404 s,@ECHO_C@,$ECHO_C,;t t
35405 s,@ECHO_N@,$ECHO_N,;t t
35406 s,@ECHO_T@,$ECHO_T,;t t
35407 s,@LIBS@,$LIBS,;t t
35408 s,@build@,$build,;t t
35409 s,@build_cpu@,$build_cpu,;t t
35410 s,@build_vendor@,$build_vendor,;t t
35411 s,@build_os@,$build_os,;t t
35412 s,@host@,$host,;t t
35413 s,@host_cpu@,$host_cpu,;t t
35414 s,@host_vendor@,$host_vendor,;t t
35415 s,@host_os@,$host_os,;t t
35416 s,@target@,$target,;t t
35417 s,@target_cpu@,$target_cpu,;t t
35418 s,@target_vendor@,$target_vendor,;t t
35419 s,@target_os@,$target_os,;t t
35420 s,@CC@,$CC,;t t
35421 s,@CFLAGS@,$CFLAGS,;t t
35422 s,@LDFLAGS@,$LDFLAGS,;t t
35423 s,@CPPFLAGS@,$CPPFLAGS,;t t
35424 s,@ac_ct_CC@,$ac_ct_CC,;t t
35425 s,@EXEEXT@,$EXEEXT,;t t
35426 s,@OBJEXT@,$OBJEXT,;t t
35427 s,@CPP@,$CPP,;t t
35428 s,@EGREP@,$EGREP,;t t
35429 s,@CXX@,$CXX,;t t
35430 s,@CXXFLAGS@,$CXXFLAGS,;t t
35431 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35432 s,@RANLIB@,$RANLIB,;t t
35433 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35434 s,@AR@,$AR,;t t
35435 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35436 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35437 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35438 s,@STRIP@,$STRIP,;t t
35439 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35440 s,@YACC@,$YACC,;t t
35441 s,@LEX@,$LEX,;t t
35442 s,@LEXLIB@,$LEXLIB,;t t
35443 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35444 s,@LN_S@,$LN_S,;t t
35445 s,@CXXCPP@,$CXXCPP,;t t
35446 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35447 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35448 s,@GTK_LIBS@,$GTK_LIBS,;t t
35449 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35450 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35451 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35452 s,@X_CFLAGS@,$X_CFLAGS,;t t
35453 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35454 s,@X_LIBS@,$X_LIBS,;t t
35455 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35456 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35457 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35458 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35459 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
35460 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
35461 s,@RESCOMP@,$RESCOMP,;t t
35462 s,@DEREZ@,$DEREZ,;t t
35463 s,@SETFILE@,$SETFILE,;t t
35464 s,@LIBICONV@,$LIBICONV,;t t
35465 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35466 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35467 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35468 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35469 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35470 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
35471 s,@WXUNIV@,$WXUNIV,;t t
35472 s,@MONOLITHIC@,$MONOLITHIC,;t t
35473 s,@EXTRALIBS@,$EXTRALIBS,;t t
35474 s,@UNICODE@,$UNICODE,;t t
35475 s,@BUILD@,$BUILD,;t t
35476 s,@SHARED@,$SHARED,;t t
35477 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35478 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35479 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35480 s,@SET_MAKE@,$SET_MAKE,;t t
35481 s,@MAKE_SET@,$MAKE_SET,;t t
35482 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
35483 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35484 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35485 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35486 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35487 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35488 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35489 s,@DLLPREFIX@,$DLLPREFIX,;t t
35490 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35491 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35492 s,@PIC_FLAG@,$PIC_FLAG,;t t
35493 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35494 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35495 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35496 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35497 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35498 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
35499 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
35500 s,@COND_SHARED_1_MONOLITHIC_0@,$COND_SHARED_1_MONOLITHIC_0,;t t
35501 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35502 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
35503 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35504 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
35505 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35506 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35507 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35508 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35509 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
35510 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
35511 s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_0@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_0,;t t
35512 s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_1@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_1,;t t
35513 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
35514 s,@COND_SHARED_0_USE_GUI_1_MONOLITHIC_0@,$COND_SHARED_0_USE_GUI_1_MONOLITHIC_0,;t t
35515 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35516 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
35517 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35518 s,@COND_SHARED_1_USE_GUI_1_MONOLITHIC_0@,$COND_SHARED_1_USE_GUI_1_MONOLITHIC_0,;t t
35519 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
35520 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35521 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35522 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35523 s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35524 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35525 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35526 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35527 s,@COND_SHARED_1_MONOLITHIC_1@,$COND_SHARED_1_MONOLITHIC_1,;t t
35528 s,@COND_SHARED_0_MONOLITHIC_1@,$COND_SHARED_0_MONOLITHIC_1,;t t
35529 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35530 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
35531 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35532 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
35533 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35534 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35535 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
35536 s,@COND_SHARED_0_MONOLITHIC_0@,$COND_SHARED_0_MONOLITHIC_0,;t t
35537 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35538 s,@COND_DEPS_TYPE_GCC@,$COND_DEPS_TYPE_GCC,;t t
35539 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35540 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35541 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
35542 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
35543 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
35544 s,@LEX_STEM@,$LEX_STEM,;t t
35545 s,@PATH_IFS@,$PATH_IFS,;t t
35546 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35547 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35548 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35549 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35550 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35551 s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35552 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35553 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35554 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35555 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35556 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35557 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35558 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35559 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35560 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35561 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35562 s,@WX_ALL@,$WX_ALL,;t t
35563 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35564 s,@SHARED_LD@,$SHARED_LD,;t t
35565 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35566 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
35567 s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
35568 s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
35569 s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
35570 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35571 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35572 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35573 s,@USE_GUI@,$USE_GUI,;t t
35574 s,@AFMINSTALL@,$AFMINSTALL,;t t
35575 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35576 s,@TOOLKIT@,$TOOLKIT,;t t
35577 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35578 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35579 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35580 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35581 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35582 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35583 s,@cross_compiling@,$cross_compiling,;t t
35584 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35585 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35586 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35587 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35588 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35589 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35590 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
35591 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35592 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35593 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35594 s,@GUIDIST@,$GUIDIST,;t t
35595 s,@PORT_FILES@,$PORT_FILES,;t t
35596 s,@DISTDIR@,$DISTDIR,;t t
35597 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35598 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35599 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35600 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35601 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35602 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35603 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35604 s,@RESFLAGS@,$RESFLAGS,;t t
35605 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35606 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35607 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35608 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35609 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35610 s,@MACRESCOMP@,$MACRESCOMP,;t t
35611 s,@MACSETFILE@,$MACSETFILE,;t t
35612 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35613 s,@GCC@,$GCC,;t t
35614 s,@DLLTOOL@,$DLLTOOL,;t t
35615 s,@AS@,$AS,;t t
35616 s,@NM@,$NM,;t t
35617 s,@LD@,$LD,;t t
35618 s,@MAKEINFO@,$MAKEINFO,;t t
35619 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35620 s,@ESD_LINK@,$ESD_LINK,;t t
35621 s,@LIBOBJS@,$LIBOBJS,;t t
35622 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35623 CEOF
35624
35625 _ACEOF
35626
35627   cat >>$CONFIG_STATUS <<\_ACEOF
35628   # Split the substitutions into bite-sized pieces for seds with
35629   # small command number limits, like on Digital OSF/1 and HP-UX.
35630   ac_max_sed_lines=48
35631   ac_sed_frag=1 # Number of current file.
35632   ac_beg=1 # First line for current file.
35633   ac_end=$ac_max_sed_lines # Line after last line for current file.
35634   ac_more_lines=:
35635   ac_sed_cmds=
35636   while $ac_more_lines; do
35637     if test $ac_beg -gt 1; then
35638       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35639     else
35640       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35641     fi
35642     if test ! -s $tmp/subs.frag; then
35643       ac_more_lines=false
35644     else
35645       # The purpose of the label and of the branching condition is to
35646       # speed up the sed processing (if there are no `@' at all, there
35647       # is no need to browse any of the substitutions).
35648       # These are the two extra sed commands mentioned above.
35649       (echo ':t
35650   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35651       if test -z "$ac_sed_cmds"; then
35652         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35653       else
35654         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35655       fi
35656       ac_sed_frag=`expr $ac_sed_frag + 1`
35657       ac_beg=$ac_end
35658       ac_end=`expr $ac_end + $ac_max_sed_lines`
35659     fi
35660   done
35661   if test -z "$ac_sed_cmds"; then
35662     ac_sed_cmds=cat
35663   fi
35664 fi # test -n "$CONFIG_FILES"
35665
35666 _ACEOF
35667 cat >>$CONFIG_STATUS <<\_ACEOF
35668 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35669   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35670   case $ac_file in
35671   - | *:- | *:-:* ) # input from stdin
35672         cat >$tmp/stdin
35673         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35674         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35675   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35676         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35677   * )   ac_file_in=$ac_file.in ;;
35678   esac
35679
35680   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35681   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35683          X"$ac_file" : 'X\(//\)[^/]' \| \
35684          X"$ac_file" : 'X\(//\)$' \| \
35685          X"$ac_file" : 'X\(/\)' \| \
35686          .     : '\(.\)' 2>/dev/null ||
35687 echo X"$ac_file" |
35688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35690           /^X\(\/\/\)$/{ s//\1/; q; }
35691           /^X\(\/\).*/{ s//\1/; q; }
35692           s/.*/./; q'`
35693   { if $as_mkdir_p; then
35694     mkdir -p "$ac_dir"
35695   else
35696     as_dir="$ac_dir"
35697     as_dirs=
35698     while test ! -d "$as_dir"; do
35699       as_dirs="$as_dir $as_dirs"
35700       as_dir=`(dirname "$as_dir") 2>/dev/null ||
35701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35702          X"$as_dir" : 'X\(//\)[^/]' \| \
35703          X"$as_dir" : 'X\(//\)$' \| \
35704          X"$as_dir" : 'X\(/\)' \| \
35705          .     : '\(.\)' 2>/dev/null ||
35706 echo X"$as_dir" |
35707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35708           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35709           /^X\(\/\/\)$/{ s//\1/; q; }
35710           /^X\(\/\).*/{ s//\1/; q; }
35711           s/.*/./; q'`
35712     done
35713     test ! -n "$as_dirs" || mkdir $as_dirs
35714   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35715 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35716    { (exit 1); exit 1; }; }; }
35717
35718   ac_builddir=.
35719
35720 if test "$ac_dir" != .; then
35721   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35722   # A "../" for each directory in $ac_dir_suffix.
35723   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35724 else
35725   ac_dir_suffix= ac_top_builddir=
35726 fi
35727
35728 case $srcdir in
35729   .)  # No --srcdir option.  We are building in place.
35730     ac_srcdir=.
35731     if test -z "$ac_top_builddir"; then
35732        ac_top_srcdir=.
35733     else
35734        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35735     fi ;;
35736   [\\/]* | ?:[\\/]* )  # Absolute path.
35737     ac_srcdir=$srcdir$ac_dir_suffix;
35738     ac_top_srcdir=$srcdir ;;
35739   *) # Relative path.
35740     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35741     ac_top_srcdir=$ac_top_builddir$srcdir ;;
35742 esac
35743 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35744 # absolute.
35745 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35746 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35747 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35748 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35749
35750
35751   case $INSTALL in
35752   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35753   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35754   esac
35755
35756   if test x"$ac_file" != x-; then
35757     { echo "$as_me:$LINENO: creating $ac_file" >&5
35758 echo "$as_me: creating $ac_file" >&6;}
35759     rm -f "$ac_file"
35760   fi
35761   # Let's still pretend it is `configure' which instantiates (i.e., don't
35762   # use $as_me), people would be surprised to read:
35763   #    /* config.h.  Generated by config.status.  */
35764   if test x"$ac_file" = x-; then
35765     configure_input=
35766   else
35767     configure_input="$ac_file.  "
35768   fi
35769   configure_input=$configure_input"Generated from `echo $ac_file_in |
35770                                      sed 's,.*/,,'` by configure."
35771
35772   # First look for the input files in the build tree, otherwise in the
35773   # src tree.
35774   ac_file_inputs=`IFS=:
35775     for f in $ac_file_in; do
35776       case $f in
35777       -) echo $tmp/stdin ;;
35778       [\\/$]*)
35779          # Absolute (can't be DOS-style, as IFS=:)
35780          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35781 echo "$as_me: error: cannot find input file: $f" >&2;}
35782    { (exit 1); exit 1; }; }
35783          echo $f;;
35784       *) # Relative
35785          if test -f "$f"; then
35786            # Build tree
35787            echo $f
35788          elif test -f "$srcdir/$f"; then
35789            # Source tree
35790            echo $srcdir/$f
35791          else
35792            # /dev/null tree
35793            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35794 echo "$as_me: error: cannot find input file: $f" >&2;}
35795    { (exit 1); exit 1; }; }
35796          fi;;
35797       esac
35798     done` || { (exit 1); exit 1; }
35799 _ACEOF
35800 cat >>$CONFIG_STATUS <<_ACEOF
35801   sed "$ac_vpsub
35802 $extrasub
35803 _ACEOF
35804 cat >>$CONFIG_STATUS <<\_ACEOF
35805 :t
35806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35807 s,@configure_input@,$configure_input,;t t
35808 s,@srcdir@,$ac_srcdir,;t t
35809 s,@abs_srcdir@,$ac_abs_srcdir,;t t
35810 s,@top_srcdir@,$ac_top_srcdir,;t t
35811 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35812 s,@builddir@,$ac_builddir,;t t
35813 s,@abs_builddir@,$ac_abs_builddir,;t t
35814 s,@top_builddir@,$ac_top_builddir,;t t
35815 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35816 s,@INSTALL@,$ac_INSTALL,;t t
35817 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35818   rm -f $tmp/stdin
35819   if test x"$ac_file" != x-; then
35820     mv $tmp/out $ac_file
35821   else
35822     cat $tmp/out
35823     rm -f $tmp/out
35824   fi
35825
35826 done
35827 _ACEOF
35828 cat >>$CONFIG_STATUS <<\_ACEOF
35829
35830 #
35831 # CONFIG_HEADER section.
35832 #
35833
35834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
35836 #
35837 # ac_d sets the value in "#define NAME VALUE" lines.
35838 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
35839 ac_dB='[        ].*$,\1#\2'
35840 ac_dC=' '
35841 ac_dD=',;t'
35842 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35843 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
35844 ac_uB='$,\1#\2define\3'
35845 ac_uC=' '
35846 ac_uD=',;t'
35847
35848 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35849   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35850   case $ac_file in
35851   - | *:- | *:-:* ) # input from stdin
35852         cat >$tmp/stdin
35853         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35854         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35855   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35856         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35857   * )   ac_file_in=$ac_file.in ;;
35858   esac
35859
35860   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35861 echo "$as_me: creating $ac_file" >&6;}
35862
35863   # First look for the input files in the build tree, otherwise in the
35864   # src tree.
35865   ac_file_inputs=`IFS=:
35866     for f in $ac_file_in; do
35867       case $f in
35868       -) echo $tmp/stdin ;;
35869       [\\/$]*)
35870          # Absolute (can't be DOS-style, as IFS=:)
35871          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35872 echo "$as_me: error: cannot find input file: $f" >&2;}
35873    { (exit 1); exit 1; }; }
35874          echo $f;;
35875       *) # Relative
35876          if test -f "$f"; then
35877            # Build tree
35878            echo $f
35879          elif test -f "$srcdir/$f"; then
35880            # Source tree
35881            echo $srcdir/$f
35882          else
35883            # /dev/null tree
35884            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35885 echo "$as_me: error: cannot find input file: $f" >&2;}
35886    { (exit 1); exit 1; }; }
35887          fi;;
35888       esac
35889     done` || { (exit 1); exit 1; }
35890   # Remove the trailing spaces.
35891   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
35892
35893 _ACEOF
35894
35895 # Transform confdefs.h into two sed scripts, `conftest.defines' and
35896 # `conftest.undefs', that substitutes the proper values into
35897 # config.h.in to produce config.h.  The first handles `#define'
35898 # templates, and the second `#undef' templates.
35899 # And first: Protect against being on the right side of a sed subst in
35900 # config.status.  Protect against being in an unquoted here document
35901 # in config.status.
35902 rm -f conftest.defines conftest.undefs
35903 # Using a here document instead of a string reduces the quoting nightmare.
35904 # Putting comments in sed scripts is not portable.
35905 #
35906 # `end' is used to avoid that the second main sed command (meant for
35907 # 0-ary CPP macros) applies to n-ary macro definitions.
35908 # See the Autoconf documentation for `clear'.
35909 cat >confdef2sed.sed <<\_ACEOF
35910 s/[\\&,]/\\&/g
35911 s,[\\$`],\\&,g
35912 t clear
35913 : clear
35914 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35915 t end
35916 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35917 : end
35918 _ACEOF
35919 # If some macros were called several times there might be several times
35920 # the same #defines, which is useless.  Nevertheless, we may not want to
35921 # sort them, since we want the *last* AC-DEFINE to be honored.
35922 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35923 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35924 rm -f confdef2sed.sed
35925
35926 # This sed command replaces #undef with comments.  This is necessary, for
35927 # example, in the case of _POSIX_SOURCE, which is predefined and required
35928 # on some systems where configure will not decide to define it.
35929 cat >>conftest.undefs <<\_ACEOF
35930 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35931 _ACEOF
35932
35933 # Break up conftest.defines because some shells have a limit on the size
35934 # of here documents, and old seds have small limits too (100 cmds).
35935 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35936 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35937 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35938 echo '  :' >>$CONFIG_STATUS
35939 rm -f conftest.tail
35940 while grep . conftest.defines >/dev/null
35941 do
35942   # Write a limited-size here document to $tmp/defines.sed.
35943   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35944   # Speed up: don't consider the non `#define' lines.
35945   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
35946   # Work around the forget-to-reset-the-flag bug.
35947   echo 't clr' >>$CONFIG_STATUS
35948   echo ': clr' >>$CONFIG_STATUS
35949   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35950   echo 'CEOF
35951   sed -f $tmp/defines.sed $tmp/in >$tmp/out
35952   rm -f $tmp/in
35953   mv $tmp/out $tmp/in
35954 ' >>$CONFIG_STATUS
35955   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35956   rm -f conftest.defines
35957   mv conftest.tail conftest.defines
35958 done
35959 rm -f conftest.defines
35960 echo '  fi # grep' >>$CONFIG_STATUS
35961 echo >>$CONFIG_STATUS
35962
35963 # Break up conftest.undefs because some shells have a limit on the size
35964 # of here documents, and old seds have small limits too (100 cmds).
35965 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
35966 rm -f conftest.tail
35967 while grep . conftest.undefs >/dev/null
35968 do
35969   # Write a limited-size here document to $tmp/undefs.sed.
35970   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35971   # Speed up: don't consider the non `#undef'
35972   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
35973   # Work around the forget-to-reset-the-flag bug.
35974   echo 't clr' >>$CONFIG_STATUS
35975   echo ': clr' >>$CONFIG_STATUS
35976   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35977   echo 'CEOF
35978   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35979   rm -f $tmp/in
35980   mv $tmp/out $tmp/in
35981 ' >>$CONFIG_STATUS
35982   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35983   rm -f conftest.undefs
35984   mv conftest.tail conftest.undefs
35985 done
35986 rm -f conftest.undefs
35987
35988 cat >>$CONFIG_STATUS <<\_ACEOF
35989   # Let's still pretend it is `configure' which instantiates (i.e., don't
35990   # use $as_me), people would be surprised to read:
35991   #    /* config.h.  Generated by config.status.  */
35992   if test x"$ac_file" = x-; then
35993     echo "/* Generated by configure.  */" >$tmp/config.h
35994   else
35995     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
35996   fi
35997   cat $tmp/in >>$tmp/config.h
35998   rm -f $tmp/in
35999   if test x"$ac_file" != x-; then
36000     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36001       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36002 echo "$as_me: $ac_file is unchanged" >&6;}
36003     else
36004       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36006          X"$ac_file" : 'X\(//\)[^/]' \| \
36007          X"$ac_file" : 'X\(//\)$' \| \
36008          X"$ac_file" : 'X\(/\)' \| \
36009          .     : '\(.\)' 2>/dev/null ||
36010 echo X"$ac_file" |
36011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36012           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36013           /^X\(\/\/\)$/{ s//\1/; q; }
36014           /^X\(\/\).*/{ s//\1/; q; }
36015           s/.*/./; q'`
36016       { if $as_mkdir_p; then
36017     mkdir -p "$ac_dir"
36018   else
36019     as_dir="$ac_dir"
36020     as_dirs=
36021     while test ! -d "$as_dir"; do
36022       as_dirs="$as_dir $as_dirs"
36023       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36025          X"$as_dir" : 'X\(//\)[^/]' \| \
36026          X"$as_dir" : 'X\(//\)$' \| \
36027          X"$as_dir" : 'X\(/\)' \| \
36028          .     : '\(.\)' 2>/dev/null ||
36029 echo X"$as_dir" |
36030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36031           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36032           /^X\(\/\/\)$/{ s//\1/; q; }
36033           /^X\(\/\).*/{ s//\1/; q; }
36034           s/.*/./; q'`
36035     done
36036     test ! -n "$as_dirs" || mkdir $as_dirs
36037   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36039    { (exit 1); exit 1; }; }; }
36040
36041       rm -f $ac_file
36042       mv $tmp/config.h $ac_file
36043     fi
36044   else
36045     cat $tmp/config.h
36046     rm -f $tmp/config.h
36047   fi
36048 done
36049 _ACEOF
36050 cat >>$CONFIG_STATUS <<\_ACEOF
36051
36052 #
36053 # CONFIG_COMMANDS section.
36054 #
36055 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36056   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36057   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36058   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36059 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36060          X"$ac_dest" : 'X\(//\)[^/]' \| \
36061          X"$ac_dest" : 'X\(//\)$' \| \
36062          X"$ac_dest" : 'X\(/\)' \| \
36063          .     : '\(.\)' 2>/dev/null ||
36064 echo X"$ac_dest" |
36065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36066           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36067           /^X\(\/\/\)$/{ s//\1/; q; }
36068           /^X\(\/\).*/{ s//\1/; q; }
36069           s/.*/./; q'`
36070   ac_builddir=.
36071
36072 if test "$ac_dir" != .; then
36073   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36074   # A "../" for each directory in $ac_dir_suffix.
36075   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36076 else
36077   ac_dir_suffix= ac_top_builddir=
36078 fi
36079
36080 case $srcdir in
36081   .)  # No --srcdir option.  We are building in place.
36082     ac_srcdir=.
36083     if test -z "$ac_top_builddir"; then
36084        ac_top_srcdir=.
36085     else
36086        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36087     fi ;;
36088   [\\/]* | ?:[\\/]* )  # Absolute path.
36089     ac_srcdir=$srcdir$ac_dir_suffix;
36090     ac_top_srcdir=$srcdir ;;
36091   *) # Relative path.
36092     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36093     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36094 esac
36095 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36096 # absolute.
36097 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36098 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36099 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36100 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36101
36102
36103   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36104 echo "$as_me: executing $ac_dest commands" >&6;}
36105   case $ac_dest in
36106     default )
36107                                                                                                 if test ! -h wx-config; then
36108                 chmod +x wx-config
36109                 mv wx-config wx${TOOLCHAIN_NAME}-config
36110                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
36111             fi
36112
36113             if test ! -d lib; then
36114               mkdir lib
36115             fi
36116             if test ! -d lib/wx; then
36117               mkdir lib/wx
36118             fi
36119             if test ! -d lib/wx/include; then
36120               mkdir lib/wx/include
36121             fi
36122             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36123               mkdir lib/wx/include/${TOOLCHAIN_NAME}
36124             fi
36125             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36126               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
36127             fi
36128             if test -f setup.h; then
36129               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
36130             fi
36131            ;;
36132   esac
36133 done
36134 _ACEOF
36135
36136 cat >>$CONFIG_STATUS <<\_ACEOF
36137
36138 { (exit 0); exit 0; }
36139 _ACEOF
36140 chmod +x $CONFIG_STATUS
36141 ac_clean_files=$ac_clean_files_save
36142
36143
36144 # configure is writing to config.log, and then calls config.status.
36145 # config.status does its own redirection, appending to config.log.
36146 # Unfortunately, on DOS this fails, as config.log is still kept open
36147 # by configure, so config.status won't be able to write to it; its
36148 # output is simply discarded.  So we exec the FD to /dev/null,
36149 # effectively closing config.log, so it can be properly (re)opened and
36150 # appended to by config.status.  When coming back to configure, we
36151 # need to make the FD available again.
36152 if test "$no_create" != yes; then
36153   ac_cs_success=:
36154   ac_config_status_args=
36155   test "$silent" = yes &&
36156     ac_config_status_args="$ac_config_status_args --quiet"
36157   exec 5>/dev/null
36158   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36159   exec 5>>config.log
36160   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36161   # would make configure fail if this is the last instruction.
36162   $ac_cs_success || { (exit 1); exit 1; }
36163 fi
36164
36165
36166 echo
36167 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36168 echo ""
36169 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
36170 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
36171
36172 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
36173 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
36174 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
36175
36176 echo "  What level of wxWindows compatibility should be enabled?"
36177 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
36178 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
36179 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
36180
36181 echo "  Which libraries should wxWindows use?"
36182 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
36183 echo "                                       png                ${wxUSE_LIBPNG-none}"
36184 echo "                                       regex              ${wxUSE_REGEX}"
36185 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
36186 echo "                                       zlib               ${wxUSE_ZLIB}"
36187 echo "                                       odbc               ${wxUSE_ODBC}"
36188
36189 echo ""
36190