wx-config didn't include WXUSINGDLL on Mingw
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWindows'
272 PACKAGE_TARNAME='wxwindows'
273 PACKAGE_VERSION='2.5.1'
274 PACKAGE_STRING='wxWindows 2.5.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
864    esac
865   cat <<\_ACEOF
866
867 Optional Features:
868   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
869   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
870   --enable-gui            use GUI classes
871   --enable-monolithic     build wxWindows as single library
872   --enable-plugins        build parts of wxWindows as loadable components
873   --enable-universal      use wxWindows GUI controls instead of native ones
874   --enable-nanox          use NanoX
875   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
876   --enable-gpe            use GNOME PDA Environment features if possible
877   --enable-shared         create shared library code
878   --enable-optimise       create optimised code
879   --enable-debug          same as debug_flag and debug_info
880   --enable-stl            use STL for containers
881   --enable-omf            use OMF object format
882   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
883   --enable-debug_info     create code with debugging information
884   --enable-debug_gdb      create code with extra GDB debugging information
885   --enable-debug_cntxt    use wxDebugContext
886   --enable-mem_tracing    create code with memory tracing
887   --enable-profile        create code with profiling information
888   --enable-no_rtti        create code without RTTI information
889   --enable-no_exceptions  create code without C++ exceptions handling
890   --enable-permissive     compile code disregarding strict ANSI
891   --enable-no_deps        create code without dependency information
892   --enable-compat22       enable wxWindows 2.2 compatibility
893   --disable-compat24      disable wxWindows 2.4 compatibility
894   --enable-rpath=DIR      output the rpath flag from wx-config
895   --enable-intl           use internationalization system
896   --enable-config         use wxConfig (and derived) classes
897   --enable-protocols      use wxProtocol and derived classes
898   --enable-ftp            use wxFTP (requires wxProtocol
899   --enable-http           use wxHTTP (requires wxProtocol
900   --enable-fileproto      use wxFileProto class (requires wxProtocol
901   --enable-sockets        use socket/network classes
902   --enable-ole            use OLE classes (Win32 only)
903   --enable-dataobj        use data object classes
904   --enable-ipc            use interprocess communication (wxSocket etc.)
905   --enable-apple_ieee     use the Apple IEEE codec
906   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
907   --enable-cmdline        use wxCmdLineParser class
908   --enable-datetime       use wxDateTime class
909   --enable-dialupman      use dialup network classes
910   --enable-dynlib         use wxLibrary class for DLL loading
911   --enable-dynamicloader  use (new) wxDynamicLibrary class
912   --enable-exceptions     build exception-safe library
913   --enable-ffile          use wxFFile class
914   --enable-file           use wxFile class
915   --enable-filesystem     use virtual file systems classes
916   --enable-fontmap        use font encodings conversion classes
917   --enable-fs_inet        use virtual HTTP/FTP filesystems
918   --enable-fs_zip         use virtual ZIP filesystems
919   --enable-geometry       use geometry class
920   --enable-log            use logging system
921   --enable-longlong       use wxLongLong class
922   --enable-mimetype       use wxMimeTypesManager
923   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
924   --enable-snglinst       use wxSingleInstanceChecker class
925   --enable-streams        use wxStream etc classes
926   --enable-std_iostreams  use standard C++ stream classes
927   --enable-stopwatch      use wxStopWatch class
928   --enable-sysoptions     use wxSystemOptions
929   --enable-textbuf        use wxTextBuffer class
930   --enable-textfile       use wxTextFile class
931   --enable-timer          use wxTimer class
932   --enable-unicode        compile wxString with Unicode support
933   --enable-sound          use wxSound class
934   --enable-wxprintfv      use wxWindows implementation of vprintf()
935   --enable-zipstream      use wxZipInputStream
936   --enable-gzstream       use wxGzipInputStream
937   --enable-url            use wxURL class
938   --enable-protocol       use wxProtocol class
939   --enable-protocol-http  HTTP support in wxProtocol
940   --enable-protocol-ftp   FTP support in wxProtocol
941   --enable-protocol-file  FILE support in wxProtocol
942   --enable-threads        use threads
943   --enable-docview        use document view architecture
944   --enable-help           use help subsystem
945   --enable-mshtmlhelp     use MS HTML Help (win32)
946   --enable-html           use wxHTML sub-library
947   --enable-htmlhelp       use wxHTML-based help
948   --enable-constraints    use layout-constraints system
949   --enable-printarch      use printing architecture
950   --enable-mdi            use multiple document interface architecture
951   --enable-loggui         use standard GUI logger
952   --enable-logwin         use wxLogWindow
953   --enable-logdialog      use wxLogDialog
954   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
955   --enable-prologio       not available; see contrib
956   --enable-resources      not available; see contrib
957   --enable-clipboard      use wxClipboard class
958   --enable-dnd            use Drag'n'Drop classes
959   --enable-metafile       use win32 metafiles
960   --enable-controls       use all usual controls
961   --enable-accel          use accelerators
962   --enable-button         use wxButton class
963   --enable-bmpbutton      use wxBitmapButton class
964   --enable-calendar       use wxCalendarCtrl class
965   --enable-caret          use wxCaret class
966   --enable-checkbox       use wxCheckBox class
967   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
968   --enable-choice         use wxChoice class
969   --enable-combobox       use wxComboBox class
970   --enable-display        use wxDisplay class
971   --enable-gauge          use wxGauge class
972   --enable-grid           use wxGrid class
973   --enable-imaglist       use wxImageList class
974   --enable-listbook       use wxListbook class
975   --enable-listbox        use wxListBox class
976   --enable-listctrl       use wxListCtrl class
977   --enable-notebook       use wxNotebook class
978   --enable-radiobox       use wxRadioBox class
979   --enable-radiobtn       use wxRadioButton class
980   --enable-sash           use wxSashWindow class
981   --enable-scrollbar      use wxScrollBar class and scrollable windows
982   --enable-slider         use wxSlider class
983   --enable-spinbtn        use wxSpinButton class
984   --enable-spinctrl       use wxSpinCtrl class
985   --enable-splitter       use wxSplitterWindow class
986   --enable-statbmp        use wxStaticBitmap class
987   --enable-statbox        use wxStaticBox class
988   --enable-statline       use wxStaticLine class
989   --enable-stattext       use wxStaticText class
990   --enable-statusbar      use wxStatusBar class
991   --enable-tabdialog      use wxTabControl class
992   --enable-textctrl       use wxTextCtrl class
993   --enable-togglebtn      use wxToggleButton class
994   --enable-toolbar        use wxToolBar class
995   --enable-tbarnative     use native wxToolBar class
996   --enable-tbarsmpl       use wxToolBarSimple class
997   --enable-treectrl       use wxTreeCtrl class
998   --enable-tipwindow      use wxTipWindow class
999   --enable-popupwin       use wxPopUpWindow class
1000   --enable-commondlg      use all common dialogs
1001   --enable-choicedlg      use wxChoiceDialog
1002   --enable-coldlg         use wxColourDialog
1003   --enable-filedlg        use wxFileDialog
1004   --enable-finddlg        use wxFindReplaceDialog
1005   --enable-fontdlg        use wxFontDialog
1006   --enable-dirdlg         use wxDirDialog
1007   --enable-msgdlg         use wxMessageDialog
1008   --enable-numberdlg      use wxNumberEntryDialog
1009   --enable-splash         use wxSplashScreen
1010   --enable-textdlg        use wxTextDialog
1011   --enable-tipdlg         use startup tips
1012   --enable-progressdlg    use wxProgressDialog
1013   --enable-wizarddlg      use wxWizard
1014   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1015   --enable-miniframe      use wxMiniFrame class
1016   --enable-tooltips       use wxToolTip class
1017   --enable-splines        use spline drawing code
1018   --enable-validators     use wxValidator and derived classes
1019   --enable-busyinfo       use wxBusyInfo
1020   --enable-joystick       use wxJoystick (Linux only)
1021   --enable-metafiles      use wxMetaFile (Windows only)
1022   --enable-dragimage      use wxDragImage
1023   --enable-accessibility  enable accessibility support
1024   --enable-palette        use wxPalette class
1025   --enable-image          use wxImage class
1026   --enable-gif            use gif images (GIF file format)
1027   --enable-pcx            use pcx images (PCX file format)
1028   --enable-iff            use iff images (IFF file format)
1029   --enable-pnm            use pnm images (PNM file format)
1030   --enable-xpm            use xpm images (XPM file format)
1031   --enable-icocur         use Windows ICO and CUR formats
1032   --enable-official_build official build of wxWindows (win32 DLL only)
1033   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1034   --disable-largefile     omit support for large files
1035   --disable-gtktest       do not try to compile and run a test GTK+ program
1036   --disable-gtktest       Do not try to compile and run a test GTK program
1037   --disable-sdltest       Do not try to compile and run a test SDL program
1038   --disable-precomp-headers  don't use precompiled headers even if compiler can
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gtk              use GTK+
1044   --with-motif            use Motif/Lesstif
1045   --with-mac              use Mac OS X
1046   --with-cocoa            use Cocoa
1047   --with-wine             use Wine
1048   --with-msw              use MS-Windows
1049   --with-pm               use OS/2 Presentation Manager
1050   --with-mgl              use SciTech MGL
1051   --with-microwin         use MicroWindows
1052   --with-x11              use X11
1053   --with-libpng           use libpng (PNG image format)
1054   --with-libjpeg          use libjpeg (JPEG file format)
1055   --with-libtiff          use libtiff (TIFF file format)
1056   --with-libxpm           use libxpm (XPM file format)
1057   --with-libmspack        use libmspack (CHM help files loading)
1058   --with-sdl              use SDL for audio on Unix
1059   --with-opengl           use OpenGL (or Mesa)
1060   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1061   --with-regex            enable support for wxRegEx class
1062   --with-zlib             use zlib for LZW compression
1063   --with-odbc             use the IODBC and wxODBC classes
1064   --with-expat            enable XML support using expat parser
1065   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1066   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1067   --with-x                use the X Window System
1068   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1069   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1070   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1071   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1072   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1073
1074 Some influential environment variables:
1075   CC          C compiler command
1076   CFLAGS      C compiler flags
1077   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1078               nonstandard directory <lib dir>
1079   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080               headers in a nonstandard directory <include dir>
1081   CPP         C preprocessor
1082   CXX         C++ compiler command
1083   CXXFLAGS    C++ compiler flags
1084   CXXCPP      C++ preprocessor
1085
1086 Use these variables to override the choices made by `configure' or to help
1087 it to find libraries and programs with nonstandard names/locations.
1088
1089 Report bugs to <wx-dev@lists.wxwindows.org>.
1090 _ACEOF
1091 fi
1092
1093 if test "$ac_init_help" = "recursive"; then
1094   # If there are subdirs, report their specific --help.
1095   ac_popdir=`pwd`
1096   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097     test -d $ac_dir || continue
1098     ac_builddir=.
1099
1100 if test "$ac_dir" != .; then
1101   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102   # A "../" for each directory in $ac_dir_suffix.
1103   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104 else
1105   ac_dir_suffix= ac_top_builddir=
1106 fi
1107
1108 case $srcdir in
1109   .)  # No --srcdir option.  We are building in place.
1110     ac_srcdir=.
1111     if test -z "$ac_top_builddir"; then
1112        ac_top_srcdir=.
1113     else
1114        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115     fi ;;
1116   [\\/]* | ?:[\\/]* )  # Absolute path.
1117     ac_srcdir=$srcdir$ac_dir_suffix;
1118     ac_top_srcdir=$srcdir ;;
1119   *) # Relative path.
1120     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122 esac
1123
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1126 case `pwd` in
1127 .) ac_abs_builddir="$ac_dir";;
1128 *)
1129   case "$ac_dir" in
1130   .) ac_abs_builddir=`pwd`;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *)
1138   case ${ac_top_builddir}. in
1139   .) ac_abs_top_builddir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1146 *)
1147   case $ac_srcdir in
1148   .) ac_abs_srcdir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151   esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *)
1156   case $ac_top_srcdir in
1157   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160   esac;;
1161 esac
1162
1163     cd $ac_dir
1164     # Check for guested configure; otherwise get Cygnus style configure.
1165     if test -f $ac_srcdir/configure.gnu; then
1166       echo
1167       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1168     elif test -f $ac_srcdir/configure; then
1169       echo
1170       $SHELL $ac_srcdir/configure  --help=recursive
1171     elif test -f $ac_srcdir/configure.ac ||
1172            test -f $ac_srcdir/configure.in; then
1173       echo
1174       $ac_configure --help
1175     else
1176       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177     fi
1178     cd $ac_popdir
1179   done
1180 fi
1181
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1184   cat <<\_ACEOF
1185 wxWindows configure 2.5.1
1186 generated by GNU Autoconf 2.59
1187
1188 Copyright (C) 2003 Free Software Foundation, Inc.
1189 This configure script is free software; the Free Software Foundation
1190 gives unlimited permission to copy, distribute and modify it.
1191 _ACEOF
1192   exit 0
1193 fi
1194 exec 5>config.log
1195 cat >&5 <<_ACEOF
1196 This file contains any messages produced by compilers while
1197 running configure, to aid debugging if configure makes a mistake.
1198
1199 It was created by wxWindows $as_me 2.5.1, which was
1200 generated by GNU Autoconf 2.59.  Invocation command line was
1201
1202   $ $0 $@
1203
1204 _ACEOF
1205 {
1206 cat <<_ASUNAME
1207 ## --------- ##
1208 ## Platform. ##
1209 ## --------- ##
1210
1211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1216
1217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1219
1220 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1221 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1224 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1225 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1226 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1227
1228 _ASUNAME
1229
1230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 for as_dir in $PATH
1232 do
1233   IFS=$as_save_IFS
1234   test -z "$as_dir" && as_dir=.
1235   echo "PATH: $as_dir"
1236 done
1237
1238 } >&5
1239
1240 cat >&5 <<_ACEOF
1241
1242
1243 ## ----------- ##
1244 ## Core tests. ##
1245 ## ----------- ##
1246
1247 _ACEOF
1248
1249
1250 # Keep a trace of the command line.
1251 # Strip out --no-create and --no-recursion so they do not pile up.
1252 # Strip out --silent because we don't want to record it for future runs.
1253 # Also quote any args containing shell meta-characters.
1254 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_configure_args=
1256 ac_configure_args0=
1257 ac_configure_args1=
1258 ac_sep=
1259 ac_must_keep_next=false
1260 for ac_pass in 1 2
1261 do
1262   for ac_arg
1263   do
1264     case $ac_arg in
1265     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267     | -silent | --silent | --silen | --sile | --sil)
1268       continue ;;
1269     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271     esac
1272     case $ac_pass in
1273     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1274     2)
1275       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276       if test $ac_must_keep_next = true; then
1277         ac_must_keep_next=false # Got value, back to normal.
1278       else
1279         case $ac_arg in
1280           *=* | --config-cache | -C | -disable-* | --disable-* \
1281           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283           | -with-* | --with-* | -without-* | --without-* | --x)
1284             case "$ac_configure_args0 " in
1285               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286             esac
1287             ;;
1288           -* ) ac_must_keep_next=true ;;
1289         esac
1290       fi
1291       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292       # Get rid of the leading space.
1293       ac_sep=" "
1294       ;;
1295     esac
1296   done
1297 done
1298 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1300
1301 # When interrupted or exit'd, cleanup temporary files, and complete
1302 # config.log.  We remove comments because anyway the quotes in there
1303 # would cause problems or look ugly.
1304 # WARNING: Be sure not to use single quotes in there, as some shells,
1305 # such as our DU 5.0 friend, will then `close' the trap.
1306 trap 'exit_status=$?
1307   # Save into config.log some information that might help in debugging.
1308   {
1309     echo
1310
1311     cat <<\_ASBOX
1312 ## ---------------- ##
1313 ## Cache variables. ##
1314 ## ---------------- ##
1315 _ASBOX
1316     echo
1317     # The following way of writing the cache mishandles newlines in values,
1318 {
1319   (set) 2>&1 |
1320     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321     *ac_space=\ *)
1322       sed -n \
1323         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325       ;;
1326     *)
1327       sed -n \
1328         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329       ;;
1330     esac;
1331 }
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ----------------- ##
1336 ## Output variables. ##
1337 ## ----------------- ##
1338 _ASBOX
1339     echo
1340     for ac_var in $ac_subst_vars
1341     do
1342       eval ac_val=$`echo $ac_var`
1343       echo "$ac_var='"'"'$ac_val'"'"'"
1344     done | sort
1345     echo
1346
1347     if test -n "$ac_subst_files"; then
1348       cat <<\_ASBOX
1349 ## ------------- ##
1350 ## Output files. ##
1351 ## ------------- ##
1352 _ASBOX
1353       echo
1354       for ac_var in $ac_subst_files
1355       do
1356         eval ac_val=$`echo $ac_var`
1357         echo "$ac_var='"'"'$ac_val'"'"'"
1358       done | sort
1359       echo
1360     fi
1361
1362     if test -s confdefs.h; then
1363       cat <<\_ASBOX
1364 ## ----------- ##
1365 ## confdefs.h. ##
1366 ## ----------- ##
1367 _ASBOX
1368       echo
1369       sed "/^$/d" confdefs.h | sort
1370       echo
1371     fi
1372     test "$ac_signal" != 0 &&
1373       echo "$as_me: caught signal $ac_signal"
1374     echo "$as_me: exit $exit_status"
1375   } >&5
1376   rm -f core *.core &&
1377   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378     exit $exit_status
1379      ' 0
1380 for ac_signal in 1 2 13 15; do
1381   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382 done
1383 ac_signal=0
1384
1385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1386 rm -rf conftest* confdefs.h
1387 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 echo >confdefs.h
1389
1390 # Predefined preprocessor variables.
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 _ACEOF
1415
1416
1417 # Let the site file select an alternate cache file if it wants to.
1418 # Prefer explicitly selected file to automatically selected ones.
1419 if test -z "$CONFIG_SITE"; then
1420   if test "x$prefix" != xNONE; then
1421     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422   else
1423     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424   fi
1425 fi
1426 for ac_site_file in $CONFIG_SITE; do
1427   if test -r "$ac_site_file"; then
1428     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429 echo "$as_me: loading site script $ac_site_file" >&6;}
1430     sed 's/^/| /' "$ac_site_file" >&5
1431     . "$ac_site_file"
1432   fi
1433 done
1434
1435 if test -r "$cache_file"; then
1436   # Some versions of bash will fail to source /dev/null (special
1437   # files actually), so we avoid doing that.
1438   if test -f "$cache_file"; then
1439     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440 echo "$as_me: loading cache $cache_file" >&6;}
1441     case $cache_file in
1442       [\\/]* | ?:[\\/]* ) . $cache_file;;
1443       *)                      . ./$cache_file;;
1444     esac
1445   fi
1446 else
1447   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448 echo "$as_me: creating cache $cache_file" >&6;}
1449   >$cache_file
1450 fi
1451
1452 # Check that the precious variables saved in the cache have kept the same
1453 # value.
1454 ac_cache_corrupted=false
1455 for ac_var in `(set) 2>&1 |
1456                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458   eval ac_new_set=\$ac_env_${ac_var}_set
1459   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460   eval ac_new_val="\$ac_env_${ac_var}_value"
1461   case $ac_old_set,$ac_new_set in
1462     set,)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,set)
1467       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469       ac_cache_corrupted=: ;;
1470     ,);;
1471     *)
1472       if test "x$ac_old_val" != "x$ac_new_val"; then
1473         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1476 echo "$as_me:   former value:  $ac_old_val" >&2;}
1477         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1478 echo "$as_me:   current value: $ac_new_val" >&2;}
1479         ac_cache_corrupted=:
1480       fi;;
1481   esac
1482   # Pass precious variables to config.status.
1483   if test "$ac_new_set" = set; then
1484     case $ac_new_val in
1485     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487     *) ac_arg=$ac_var=$ac_new_val ;;
1488     esac
1489     case " $ac_configure_args " in
1490       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1491       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492     esac
1493   fi
1494 done
1495 if $ac_cache_corrupted; then
1496   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500    { (exit 1); exit 1; }; }
1501 fi
1502
1503 ac_ext=c
1504 ac_cpp='$CPP $CPPFLAGS'
1505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538 ac_aux_dir=
1539 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540   if test -f $ac_dir/install-sh; then
1541     ac_aux_dir=$ac_dir
1542     ac_install_sh="$ac_aux_dir/install-sh -c"
1543     break
1544   elif test -f $ac_dir/install.sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install.sh -c"
1547     break
1548   elif test -f $ac_dir/shtool; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/shtool install -c"
1551     break
1552   fi
1553 done
1554 if test -z "$ac_aux_dir"; then
1555   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1557    { (exit 1); exit 1; }; }
1558 fi
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563 # Make sure we can run config.sub.
1564 $ac_config_sub sun4 >/dev/null 2>&1 ||
1565   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1567    { (exit 1); exit 1; }; }
1568
1569 echo "$as_me:$LINENO: checking build system type" >&5
1570 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1571 if test "${ac_cv_build+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   ac_cv_build_alias=$build_alias
1575 test -z "$ac_cv_build_alias" &&
1576   ac_cv_build_alias=`$ac_config_guess`
1577 test -z "$ac_cv_build_alias" &&
1578   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580    { (exit 1); exit 1; }; }
1581 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 fi
1587 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588 echo "${ECHO_T}$ac_cv_build" >&6
1589 build=$ac_cv_build
1590 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595 echo "$as_me:$LINENO: checking host system type" >&5
1596 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1597 if test "${ac_cv_host+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   ac_cv_host_alias=$host_alias
1601 test -z "$ac_cv_host_alias" &&
1602   ac_cv_host_alias=$ac_cv_build_alias
1603 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1604   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1605 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1606    { (exit 1); exit 1; }; }
1607
1608 fi
1609 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1610 echo "${ECHO_T}$ac_cv_host" >&6
1611 host=$ac_cv_host
1612 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
1616
1617 echo "$as_me:$LINENO: checking target system type" >&5
1618 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1619 if test "${ac_cv_target+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   ac_cv_target_alias=$target_alias
1623 test "x$ac_cv_target_alias" = "x" &&
1624   ac_cv_target_alias=$ac_cv_host_alias
1625 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1626   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1627 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 fi
1631 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1632 echo "${ECHO_T}$ac_cv_target" >&6
1633 target=$ac_cv_target
1634 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
1638
1639 # The aliases save the names the user supplied, while $host etc.
1640 # will get canonicalized.
1641 test -n "$target_alias" &&
1642   test "$program_prefix$program_suffix$program_transform_name" = \
1643     NONENONEs,x,x, &&
1644   program_prefix=${target_alias}-
1645
1646
1647
1648 WX_MAJOR_VERSION_NUMBER=2
1649 WX_MINOR_VERSION_NUMBER=5
1650 WX_RELEASE_NUMBER=1
1651
1652 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1653 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1654
1655 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1656
1657 WX_CURRENT=1
1658 WX_REVISION=0
1659 WX_AGE=0
1660
1661
1662
1663 USE_UNIX=1
1664 USE_OS2=0
1665 USE_WIN32=0
1666 USE_DOS=0
1667 USE_BEOS=0
1668 USE_MAC=0
1669
1670 USE_AIX=
1671 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1672 USE_GNU=                            USE_HPUX=
1673 USE_LINUX=
1674 USE_NETBSD=
1675 USE_OPENBSD=
1676 USE_OSF=                            USE_SGI=
1677 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1678 USE_ULTRIX=
1679 USE_UNIXWARE=
1680
1681 USE_ALPHA=
1682
1683 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1684
1685 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1686
1687 DEFAULT_wxUSE_COCOA=0
1688 DEFAULT_wxUSE_GTK=0
1689 DEFAULT_wxUSE_MAC=0
1690 DEFAULT_wxUSE_MGL=0
1691 DEFAULT_wxUSE_MICROWIN=0
1692 DEFAULT_wxUSE_MOTIF=0
1693 DEFAULT_wxUSE_MSW=0
1694 DEFAULT_wxUSE_PM=0
1695 DEFAULT_wxUSE_X11=0
1696
1697 DEFAULT_DEFAULT_wxUSE_COCOA=0
1698 DEFAULT_DEFAULT_wxUSE_GTK=0
1699 DEFAULT_DEFAULT_wxUSE_MAC=0
1700 DEFAULT_DEFAULT_wxUSE_MGL=0
1701 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1702 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1703 DEFAULT_DEFAULT_wxUSE_MSW=0
1704 DEFAULT_DEFAULT_wxUSE_PM=0
1705 DEFAULT_DEFAULT_wxUSE_X11=0
1706
1707 PROGRAM_EXT=
1708 SO_SUFFIX=so
1709 SAMPLES_RPATH_FLAG=
1710 SAMPLES_RPATH_POSTLINK=
1711
1712 case "${host}" in
1713   *-hp-hpux* )
1714     USE_HPUX=1
1715     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1716     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1717     SO_SUFFIX=sl
1718     cat >>confdefs.h <<\_ACEOF
1719 #define __HPUX__ 1
1720 _ACEOF
1721
1722   ;;
1723   *-*-linux* )
1724     USE_LINUX=1
1725     cat >>confdefs.h <<\_ACEOF
1726 #define __LINUX__ 1
1727 _ACEOF
1728
1729     TMP=`uname -m`
1730     if test "x$TMP" = "xalpha"; then
1731       USE_ALPHA=1
1732       cat >>confdefs.h <<\_ACEOF
1733 #define __ALPHA__ 1
1734 _ACEOF
1735
1736     fi
1737     DEFAULT_DEFAULT_wxUSE_GTK=1
1738   ;;
1739   *-*-gnu* | *-*-k*bsd*-gnu )
1740     USE_GNU=1
1741     TMP=`uname -m`
1742     if test "x$TMP" = "xalpha"; then
1743       USE_ALPHA=1
1744       cat >>confdefs.h <<\_ACEOF
1745 #define __ALPHA__ 1
1746 _ACEOF
1747
1748     fi
1749     DEFAULT_DEFAULT_wxUSE_GTK=1
1750   ;;
1751   *-*-irix5* | *-*-irix6* )
1752     USE_SGI=1
1753     USE_SVR4=1
1754     cat >>confdefs.h <<\_ACEOF
1755 #define __SGI__ 1
1756 _ACEOF
1757
1758     cat >>confdefs.h <<\_ACEOF
1759 #define __SVR4__ 1
1760 _ACEOF
1761
1762     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1763   ;;
1764   *-*-solaris2* )
1765     USE_SUN=1
1766     USE_SOLARIS=1
1767     USE_SVR4=1
1768     cat >>confdefs.h <<\_ACEOF
1769 #define __SUN__ 1
1770 _ACEOF
1771
1772     cat >>confdefs.h <<\_ACEOF
1773 #define __SOLARIS__ 1
1774 _ACEOF
1775
1776     cat >>confdefs.h <<\_ACEOF
1777 #define __SVR4__ 1
1778 _ACEOF
1779
1780     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1782   ;;
1783   *-*-sunos4* )
1784     USE_SUN=1
1785     USE_SUNOS=1
1786     USE_BSD=1
1787     cat >>confdefs.h <<\_ACEOF
1788 #define __SUN__ 1
1789 _ACEOF
1790
1791     cat >>confdefs.h <<\_ACEOF
1792 #define __SUNOS__ 1
1793 _ACEOF
1794
1795     cat >>confdefs.h <<\_ACEOF
1796 #define __BSD__ 1
1797 _ACEOF
1798
1799     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800   ;;
1801   *-*-freebsd*)
1802     USE_BSD=1
1803     USE_FREEBSD=1
1804     cat >>confdefs.h <<\_ACEOF
1805 #define __FREEBSD__ 1
1806 _ACEOF
1807
1808     cat >>confdefs.h <<\_ACEOF
1809 #define __BSD__ 1
1810 _ACEOF
1811
1812     DEFAULT_DEFAULT_wxUSE_GTK=1
1813   ;;
1814   *-*-openbsd*)
1815     USE_BSD=1
1816     USE_OPENBSD=1
1817     cat >>confdefs.h <<\_ACEOF
1818 #define __OPENBSD__ 1
1819 _ACEOF
1820
1821     cat >>confdefs.h <<\_ACEOF
1822 #define __BSD__ 1
1823 _ACEOF
1824
1825     DEFAULT_DEFAULT_wxUSE_GTK=1
1826   ;;
1827   *-*-netbsd*)
1828     USE_BSD=1
1829     USE_NETBSD=1
1830     cat >>confdefs.h <<\_ACEOF
1831 #define __NETBSD__ 1
1832 _ACEOF
1833
1834     cat >>confdefs.h <<\_ACEOF
1835 #define __BSD__ 1
1836 _ACEOF
1837
1838     DEFAULT_DEFAULT_wxUSE_GTK=1
1839   ;;
1840   *-*-osf* )
1841     USE_ALPHA=1
1842     USE_OSF=1
1843     cat >>confdefs.h <<\_ACEOF
1844 #define __ALPHA__ 1
1845 _ACEOF
1846
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __OSF__ 1
1849 _ACEOF
1850
1851     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853   ;;
1854   *-*-dgux5* )
1855     USE_ALPHA=1
1856     USE_SVR4=1
1857     cat >>confdefs.h <<\_ACEOF
1858 #define __ALPHA__ 1
1859 _ACEOF
1860
1861     cat >>confdefs.h <<\_ACEOF
1862 #define __SVR4__ 1
1863 _ACEOF
1864
1865     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866   ;;
1867   *-*-sysv5* )
1868     USE_SYSV=1
1869     USE_SVR4=1
1870     cat >>confdefs.h <<\_ACEOF
1871 #define __SYSV__ 1
1872 _ACEOF
1873
1874     cat >>confdefs.h <<\_ACEOF
1875 #define __SVR4__ 1
1876 _ACEOF
1877
1878     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879   ;;
1880   *-*-aix* )
1881     USE_AIX=1
1882     USE_SYSV=1
1883     USE_SVR4=1
1884                         SO_SUFFIX=a
1885     cat >>confdefs.h <<\_ACEOF
1886 #define __AIX__ 1
1887 _ACEOF
1888
1889     cat >>confdefs.h <<\_ACEOF
1890 #define __SYSV__ 1
1891 _ACEOF
1892
1893     cat >>confdefs.h <<\_ACEOF
1894 #define __SVR4__ 1
1895 _ACEOF
1896
1897     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898   ;;
1899
1900   *-*-*UnixWare*)
1901     USE_SYSV=1
1902     USE_SVR4=1
1903     USE_UNIXWARE=1
1904     cat >>confdefs.h <<\_ACEOF
1905 #define __UNIXWARE__ 1
1906 _ACEOF
1907
1908   ;;
1909
1910   *-*-cygwin* | *-*-mingw32* )
1911                 SO_SUFFIX=dll
1912     PROGRAM_EXT=".exe"
1913     RESCOMP=windres
1914     DEFAULT_DEFAULT_wxUSE_MSW=1
1915   ;;
1916
1917   *-pc-msdosdjgpp )
1918     USE_UNIX=0
1919     USE_DOS=1
1920     cat >>confdefs.h <<\_ACEOF
1921 #define __DOS__ 1
1922 _ACEOF
1923
1924     PROGRAM_EXT=".exe"
1925     DEFAULT_DEFAULT_wxUSE_MGL=1
1926         LIBS="$LIBS -lstdc++"
1927   ;;
1928
1929   *-pc-os2_emx | *-pc-os2-emx )
1930     cat >>confdefs.h <<\_ACEOF
1931 #define __EMX__ 1
1932 _ACEOF
1933
1934     USE_OS2=1
1935     cat >>confdefs.h <<\_ACEOF
1936 #define __OS2__ 1
1937 _ACEOF
1938
1939     PROGRAM_EXT=".exe"
1940     DEFAULT_DEFAULT_wxUSE_PM=1
1941         CXX=gcc
1942     LDFLAGS="$LDFLAGS -Zcrtdll"
1943                         ac_executable_extensions=".exe"
1944     export ac_executable_extensions
1945             ac_save_IFS="$IFS"
1946     IFS='\\'
1947     ac_TEMP_PATH=
1948     for ac_dir in $PATH; do
1949       IFS=$ac_save_IFS
1950       if test -z "$ac_TEMP_PATH"; then
1951         ac_TEMP_PATH="$ac_dir"
1952       else
1953         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1954       fi
1955     done
1956     export PATH="$ac_TEMP_PATH"
1957     unset ac_TEMP_PATH
1958   ;;
1959
1960   powerpc-*-darwin* )
1961         USE_BSD=1
1962     USE_DARWIN=1
1963     SO_SUFFIX=dylib
1964     cat >>confdefs.h <<\_ACEOF
1965 #define __BSD__ 1
1966 _ACEOF
1967
1968     cat >>confdefs.h <<\_ACEOF
1969 #define __DARWIN__ 1
1970 _ACEOF
1971
1972     cat >>confdefs.h <<\_ACEOF
1973 #define __POWERPC__ 1
1974 _ACEOF
1975
1976     cat >>confdefs.h <<\_ACEOF
1977 #define TARGET_CARBON 1
1978 _ACEOF
1979
1980     DEFAULT_DEFAULT_wxUSE_MAC=1
1981   ;;
1982
1983   *-*-beos* )
1984         USE_BEOS=1
1985     cat >>confdefs.h <<\_ACEOF
1986 #define __BEOS__ 1
1987 _ACEOF
1988
1989   ;;
1990
1991   *)
1992     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1993 echo "$as_me: error: unknown system type ${host}." >&2;}
1994    { (exit 1); exit 1; }; }
1995 esac
1996
1997
1998
1999
2000           wx_arg_cache_file="configarg.cache"
2001           echo "loading argument cache $wx_arg_cache_file"
2002           rm -f ${wx_arg_cache_file}.tmp
2003           touch ${wx_arg_cache_file}.tmp
2004           touch ${wx_arg_cache_file}
2005
2006
2007 DEBUG_CONFIGURE=0
2008 if test $DEBUG_CONFIGURE = 1; then
2009   DEFAULT_wxUSE_UNIVERSAL=no
2010   DEFAULT_wxUSE_STL=no
2011
2012   DEFAULT_wxUSE_NANOX=no
2013
2014   DEFAULT_wxUSE_THREADS=yes
2015
2016   DEFAULT_wxUSE_SHARED=yes
2017   DEFAULT_wxUSE_OPTIMISE=no
2018   DEFAULT_wxUSE_PROFILE=no
2019   DEFAULT_wxUSE_NO_DEPS=no
2020   DEFAULT_wxUSE_NO_RTTI=no
2021   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2022   DEFAULT_wxUSE_PERMISSIVE=no
2023   DEFAULT_wxUSE_DEBUG_FLAG=yes
2024   DEFAULT_wxUSE_DEBUG_INFO=yes
2025   DEFAULT_wxUSE_DEBUG_GDB=yes
2026   DEFAULT_wxUSE_MEM_TRACING=no
2027   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2028   DEFAULT_wxUSE_DMALLOC=no
2029   DEFAULT_wxUSE_APPLE_IEEE=no
2030
2031   DEFAULT_wxUSE_EXCEPTIONS=no
2032   DEFAULT_wxUSE_LOG=yes
2033   DEFAULT_wxUSE_LOGWINDOW=no
2034   DEFAULT_wxUSE_LOGGUI=no
2035   DEFAULT_wxUSE_LOGDIALOG=no
2036
2037   DEFAULT_wxUSE_GUI=yes
2038   DEFAULT_wxUSE_CONTROLS=no
2039
2040   DEFAULT_wxUSE_REGEX=no
2041   DEFAULT_wxUSE_XML=no
2042   DEFAULT_wxUSE_EXPAT=no
2043   DEFAULT_wxUSE_ZLIB=no
2044   DEFAULT_wxUSE_LIBPNG=no
2045   DEFAULT_wxUSE_LIBJPEG=no
2046   DEFAULT_wxUSE_LIBTIFF=no
2047   DEFAULT_wxUSE_LIBXPM=no
2048   DEFAULT_wxUSE_LIBMSPACK=no
2049   DEFAULT_wxUSE_LIBSDL=no
2050   DEFAULT_wxUSE_ODBC=no
2051   DEFAULT_wxUSE_OPENGL=no
2052
2053   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2054   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2055   DEFAULT_wxUSE_STD_IOSTREAM=no
2056   DEFAULT_wxUSE_CMDLINE_PARSER=no
2057   DEFAULT_wxUSE_DATETIME=no
2058   DEFAULT_wxUSE_TIMER=no
2059   DEFAULT_wxUSE_STOPWATCH=no
2060   DEFAULT_wxUSE_FILE=no
2061   DEFAULT_wxUSE_FFILE=no
2062   DEFAULT_wxUSE_TEXTBUFFER=no
2063   DEFAULT_wxUSE_TEXTFILE=no
2064   DEFAULT_wxUSE_SOUND=no
2065   DEFAULT_wxUSE_INTL=no
2066   DEFAULT_wxUSE_CONFIG=no
2067   DEFAULT_wxUSE_FONTMAP=no
2068   DEFAULT_wxUSE_STREAMS=no
2069   DEFAULT_wxUSE_SOCKETS=no
2070   DEFAULT_wxUSE_OLE=no
2071   DEFAULT_wxUSE_DATAOBJ=no
2072   DEFAULT_wxUSE_DIALUP_MANAGER=no
2073   DEFAULT_wxUSE_JOYSTICK=no
2074   DEFAULT_wxUSE_DYNLIB_CLASS=no
2075   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2076   DEFAULT_wxUSE_LONGLONG=no
2077   DEFAULT_wxUSE_GEOMETRY=no
2078
2079   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2080   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2081   DEFAULT_wxUSE_POSTSCRIPT=no
2082
2083   DEFAULT_wxUSE_CLIPBOARD=no
2084   DEFAULT_wxUSE_TOOLTIPS=no
2085   DEFAULT_wxUSE_DRAG_AND_DROP=no
2086   DEFAULT_wxUSE_DRAGIMAGE=no
2087   DEFAULT_wxUSE_SPLINES=no
2088
2089   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2090   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2091   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2092
2093   DEFAULT_wxUSE_RESOURCES=no
2094   DEFAULT_wxUSE_CONSTRAINTS=no
2095   DEFAULT_wxUSE_IPC=no
2096   DEFAULT_wxUSE_HELP=no
2097   DEFAULT_wxUSE_MS_HTML_HELP=no
2098   DEFAULT_wxUSE_WXHTML_HELP=no
2099   DEFAULT_wxUSE_TREELAYOUT=no
2100   DEFAULT_wxUSE_METAFILE=no
2101   DEFAULT_wxUSE_MIMETYPE=no
2102   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2103   DEFAULT_wxUSE_PROTOCOL=no
2104   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2105   DEFAULT_wxUSE_PROTOCOL_FTP=no
2106   DEFAULT_wxUSE_PROTOCOL_FILE=no
2107   DEFAULT_wxUSE_URL=no
2108
2109   DEFAULT_wxUSE_COMMONDLGS=no
2110   DEFAULT_wxUSE_CHOICEDLG=no
2111   DEFAULT_wxUSE_COLOURDLG=no
2112   DEFAULT_wxUSE_DIRDLG=no
2113   DEFAULT_wxUSE_FILEDLG=no
2114   DEFAULT_wxUSE_FINDREPLDLG=no
2115   DEFAULT_wxUSE_FONTDLG=no
2116   DEFAULT_wxUSE_MSGDLG=no
2117   DEFAULT_wxUSE_NUMBERDLG=no
2118   DEFAULT_wxUSE_TEXTDLG=no
2119   DEFAULT_wxUSE_SPLASH=no
2120   DEFAULT_wxUSE_STARTUP_TIPS=no
2121   DEFAULT_wxUSE_PROGRESSDLG=no
2122   DEFAULT_wxUSE_WIZARDDLG=no
2123
2124   DEFAULT_wxUSE_MENUS=no
2125   DEFAULT_wxUSE_MINIFRAME=no
2126   DEFAULT_wxUSE_HTML=no
2127   DEFAULT_wxUSE_FILESYSTEM=no
2128   DEFAULT_wxUSE_FS_INET=no
2129   DEFAULT_wxUSE_FS_ZIP=no
2130   DEFAULT_wxUSE_BUSYINFO=no
2131   DEFAULT_wxUSE_ZIPSTREAM=no
2132   DEFAULT_wxUSE_GZSTREAM=no
2133   DEFAULT_wxUSE_VALIDATORS=no
2134
2135   DEFAULT_wxUSE_ACCEL=no
2136   DEFAULT_wxUSE_BUTTON=no
2137   DEFAULT_wxUSE_BMPBUTTON=no
2138   DEFAULT_wxUSE_CALCTRL=no
2139   DEFAULT_wxUSE_CARET=no
2140   DEFAULT_wxUSE_CHECKBOX=no
2141   DEFAULT_wxUSE_CHECKLST=no
2142   DEFAULT_wxUSE_CHOICE=no
2143   DEFAULT_wxUSE_COMBOBOX=no
2144   DEFAULT_wxUSE_DISPLAY=no
2145   DEFAULT_wxUSE_GAUGE=no
2146   DEFAULT_wxUSE_GRID=no
2147   DEFAULT_wxUSE_IMAGLIST=no
2148   DEFAULT_wxUSE_LISTBOOK=no
2149   DEFAULT_wxUSE_LISTBOX=no
2150   DEFAULT_wxUSE_LISTCTRL=no
2151   DEFAULT_wxUSE_NOTEBOOK=no
2152   DEFAULT_wxUSE_RADIOBOX=no
2153   DEFAULT_wxUSE_RADIOBTN=no
2154   DEFAULT_wxUSE_SASH=no
2155   DEFAULT_wxUSE_SCROLLBAR=no
2156   DEFAULT_wxUSE_SLIDER=no
2157   DEFAULT_wxUSE_SPINBTN=no
2158   DEFAULT_wxUSE_SPINCTRL=no
2159   DEFAULT_wxUSE_SPLITTER=no
2160   DEFAULT_wxUSE_STATBMP=no
2161   DEFAULT_wxUSE_STATBOX=no
2162   DEFAULT_wxUSE_STATLINE=no
2163   DEFAULT_wxUSE_STATTEXT=no
2164   DEFAULT_wxUSE_STATUSBAR=yes
2165   DEFAULT_wxUSE_TABDIALOG=no
2166   DEFAULT_wxUSE_TEXTCTRL=no
2167   DEFAULT_wxUSE_TOGGLEBTN=no
2168   DEFAULT_wxUSE_TOOLBAR=no
2169   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2170   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2171   DEFAULT_wxUSE_TREECTRL=no
2172   DEFAULT_wxUSE_POPUPWIN=no
2173   DEFAULT_wxUSE_TIPWINDOW=no
2174
2175   DEFAULT_wxUSE_UNICODE=no
2176   DEFAULT_wxUSE_UNICODE_MSLU=no
2177   DEFAULT_wxUSE_WCSRTOMBS=no
2178
2179   DEFAULT_wxUSE_PALETTE=no
2180   DEFAULT_wxUSE_IMAGE=no
2181   DEFAULT_wxUSE_GIF=no
2182   DEFAULT_wxUSE_PCX=no
2183   DEFAULT_wxUSE_PNM=no
2184   DEFAULT_wxUSE_IFF=no
2185   DEFAULT_wxUSE_XPM=no
2186   DEFAULT_wxUSE_ICO_CUR=no
2187   DEFAULT_wxUSE_ACCESSIBILITY=no
2188
2189   DEFAULT_wxUSE_MONOLITHIC=no
2190   DEFAULT_wxUSE_PLUGINS=no
2191   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2192 else
2193   DEFAULT_wxUSE_UNIVERSAL=no
2194   DEFAULT_wxUSE_STL=no
2195
2196   DEFAULT_wxUSE_NANOX=no
2197
2198   DEFAULT_wxUSE_THREADS=yes
2199
2200   DEFAULT_wxUSE_SHARED=yes
2201   DEFAULT_wxUSE_OPTIMISE=yes
2202   DEFAULT_wxUSE_PROFILE=no
2203   DEFAULT_wxUSE_NO_DEPS=no
2204   DEFAULT_wxUSE_NO_RTTI=no
2205   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2206   DEFAULT_wxUSE_PERMISSIVE=no
2207   DEFAULT_wxUSE_DEBUG_FLAG=no
2208   DEFAULT_wxUSE_DEBUG_INFO=no
2209   DEFAULT_wxUSE_DEBUG_GDB=no
2210   DEFAULT_wxUSE_MEM_TRACING=no
2211   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2212   DEFAULT_wxUSE_DMALLOC=no
2213   DEFAULT_wxUSE_APPLE_IEEE=yes
2214
2215   DEFAULT_wxUSE_EXCEPTIONS=yes
2216   DEFAULT_wxUSE_LOG=yes
2217   DEFAULT_wxUSE_LOGWINDOW=yes
2218   DEFAULT_wxUSE_LOGGUI=yes
2219   DEFAULT_wxUSE_LOGDIALOG=yes
2220
2221   DEFAULT_wxUSE_GUI=yes
2222
2223   DEFAULT_wxUSE_REGEX=yes
2224   DEFAULT_wxUSE_XML=yes
2225   DEFAULT_wxUSE_EXPAT=yes
2226   DEFAULT_wxUSE_ZLIB=yes
2227   DEFAULT_wxUSE_LIBPNG=yes
2228   DEFAULT_wxUSE_LIBJPEG=yes
2229   DEFAULT_wxUSE_LIBTIFF=yes
2230   DEFAULT_wxUSE_LIBXPM=yes
2231   DEFAULT_wxUSE_LIBMSPACK=yes
2232   DEFAULT_wxUSE_LIBSDL=no
2233   DEFAULT_wxUSE_ODBC=no
2234   DEFAULT_wxUSE_OPENGL=no
2235
2236   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2237   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2238   DEFAULT_wxUSE_STD_IOSTREAM=no
2239   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2240   DEFAULT_wxUSE_DATETIME=yes
2241   DEFAULT_wxUSE_TIMER=yes
2242   DEFAULT_wxUSE_STOPWATCH=yes
2243   DEFAULT_wxUSE_FILE=yes
2244   DEFAULT_wxUSE_FFILE=yes
2245   DEFAULT_wxUSE_TEXTBUFFER=yes
2246   DEFAULT_wxUSE_TEXTFILE=yes
2247   DEFAULT_wxUSE_SOUND=yes
2248   DEFAULT_wxUSE_INTL=yes
2249   DEFAULT_wxUSE_CONFIG=yes
2250   DEFAULT_wxUSE_FONTMAP=yes
2251   DEFAULT_wxUSE_STREAMS=yes
2252   DEFAULT_wxUSE_SOCKETS=yes
2253   DEFAULT_wxUSE_OLE=yes
2254   DEFAULT_wxUSE_DATAOBJ=yes
2255   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2256   DEFAULT_wxUSE_JOYSTICK=yes
2257   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2258   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2259   DEFAULT_wxUSE_LONGLONG=yes
2260   DEFAULT_wxUSE_GEOMETRY=yes
2261
2262   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2263   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2264   DEFAULT_wxUSE_POSTSCRIPT=yes
2265
2266   DEFAULT_wxUSE_CLIPBOARD=yes
2267   DEFAULT_wxUSE_TOOLTIPS=yes
2268   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2269   DEFAULT_wxUSE_DRAGIMAGE=yes
2270   DEFAULT_wxUSE_SPLINES=yes
2271
2272   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2273   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2274   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2275
2276   DEFAULT_wxUSE_RESOURCES=no
2277   DEFAULT_wxUSE_CONSTRAINTS=yes
2278   DEFAULT_wxUSE_IPC=yes
2279   DEFAULT_wxUSE_HELP=yes
2280   DEFAULT_wxUSE_MS_HTML_HELP=yes
2281   DEFAULT_wxUSE_WXHTML_HELP=yes
2282   DEFAULT_wxUSE_TREELAYOUT=yes
2283   DEFAULT_wxUSE_METAFILE=yes
2284   DEFAULT_wxUSE_MIMETYPE=yes
2285   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2286   DEFAULT_wxUSE_PROTOCOL=yes
2287   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2288   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2289   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2290   DEFAULT_wxUSE_URL=yes
2291
2292   DEFAULT_wxUSE_COMMONDLGS=yes
2293   DEFAULT_wxUSE_CHOICEDLG=yes
2294   DEFAULT_wxUSE_COLOURDLG=yes
2295   DEFAULT_wxUSE_DIRDLG=yes
2296   DEFAULT_wxUSE_FILEDLG=yes
2297   DEFAULT_wxUSE_FINDREPLDLG=yes
2298   DEFAULT_wxUSE_FONTDLG=yes
2299   DEFAULT_wxUSE_MSGDLG=yes
2300   DEFAULT_wxUSE_NUMBERDLG=yes
2301   DEFAULT_wxUSE_TEXTDLG=yes
2302   DEFAULT_wxUSE_SPLASH=yes
2303   DEFAULT_wxUSE_STARTUP_TIPS=yes
2304   DEFAULT_wxUSE_PROGRESSDLG=yes
2305   DEFAULT_wxUSE_WIZARDDLG=yes
2306
2307   DEFAULT_wxUSE_MENUS=yes
2308   DEFAULT_wxUSE_MINIFRAME=yes
2309   DEFAULT_wxUSE_HTML=yes
2310   DEFAULT_wxUSE_FILESYSTEM=yes
2311   DEFAULT_wxUSE_FS_INET=yes
2312   DEFAULT_wxUSE_FS_ZIP=yes
2313   DEFAULT_wxUSE_BUSYINFO=yes
2314   DEFAULT_wxUSE_ZIPSTREAM=yes
2315   DEFAULT_wxUSE_GZSTREAM=yes
2316   DEFAULT_wxUSE_VALIDATORS=yes
2317
2318   DEFAULT_wxUSE_ACCEL=yes
2319   DEFAULT_wxUSE_BUTTON=yes
2320   DEFAULT_wxUSE_BMPBUTTON=yes
2321   DEFAULT_wxUSE_CALCTRL=yes
2322   DEFAULT_wxUSE_CARET=yes
2323   DEFAULT_wxUSE_CHECKBOX=yes
2324   DEFAULT_wxUSE_CHECKLST=yes
2325   DEFAULT_wxUSE_CHOICE=yes
2326   DEFAULT_wxUSE_COMBOBOX=yes
2327   DEFAULT_wxUSE_DISPLAY=yes
2328   DEFAULT_wxUSE_GAUGE=yes
2329   DEFAULT_wxUSE_GRID=yes
2330   DEFAULT_wxUSE_IMAGLIST=yes
2331   DEFAULT_wxUSE_LISTBOOK=yes
2332   DEFAULT_wxUSE_LISTBOX=yes
2333   DEFAULT_wxUSE_LISTCTRL=yes
2334   DEFAULT_wxUSE_NOTEBOOK=yes
2335   DEFAULT_wxUSE_RADIOBOX=yes
2336   DEFAULT_wxUSE_RADIOBTN=yes
2337   DEFAULT_wxUSE_SASH=yes
2338   DEFAULT_wxUSE_SCROLLBAR=yes
2339   DEFAULT_wxUSE_SLIDER=yes
2340   DEFAULT_wxUSE_SPINBTN=yes
2341   DEFAULT_wxUSE_SPINCTRL=yes
2342   DEFAULT_wxUSE_SPLITTER=yes
2343   DEFAULT_wxUSE_STATBMP=yes
2344   DEFAULT_wxUSE_STATBOX=yes
2345   DEFAULT_wxUSE_STATLINE=yes
2346   DEFAULT_wxUSE_STATTEXT=yes
2347   DEFAULT_wxUSE_STATUSBAR=yes
2348   DEFAULT_wxUSE_TABDIALOG=no
2349   DEFAULT_wxUSE_TEXTCTRL=yes
2350   DEFAULT_wxUSE_TOGGLEBTN=yes
2351   DEFAULT_wxUSE_TOOLBAR=yes
2352   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2353   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2354   DEFAULT_wxUSE_TREECTRL=yes
2355   DEFAULT_wxUSE_POPUPWIN=yes
2356   DEFAULT_wxUSE_TIPWINDOW=yes
2357
2358   DEFAULT_wxUSE_UNICODE=no
2359   DEFAULT_wxUSE_UNICODE_MSLU=yes
2360   DEFAULT_wxUSE_WCSRTOMBS=no
2361
2362   DEFAULT_wxUSE_PALETTE=yes
2363   DEFAULT_wxUSE_IMAGE=yes
2364   DEFAULT_wxUSE_GIF=yes
2365   DEFAULT_wxUSE_PCX=yes
2366   DEFAULT_wxUSE_IFF=no
2367   DEFAULT_wxUSE_PNM=yes
2368   DEFAULT_wxUSE_XPM=yes
2369   DEFAULT_wxUSE_ICO_CUR=yes
2370   DEFAULT_wxUSE_ACCESSIBILITY=no
2371
2372   DEFAULT_wxUSE_MONOLITHIC=no
2373   DEFAULT_wxUSE_PLUGINS=no
2374   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2375 fi
2376
2377
2378
2379 for toolkit in `echo $ALL_TOOLKITS`; do
2380   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2381   if test "x$LINE" != "x" ; then
2382     has_toolkit_in_cache=1
2383     eval "DEFAULT_$LINE"
2384     eval "CACHE_$toolkit=1"
2385   fi
2386 done
2387
2388
2389
2390           enablestring=
2391           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2392 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2393           no_cache=0
2394           # Check whether --enable-gui or --disable-gui was given.
2395 if test "${enable_gui+set}" = set; then
2396   enableval="$enable_gui"
2397
2398                           if test "$enableval" = yes; then
2399                             ac_cv_use_gui='wxUSE_GUI=yes'
2400                           else
2401                             ac_cv_use_gui='wxUSE_GUI=no'
2402                           fi
2403
2404 else
2405
2406                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2407                           if test "x$LINE" != x ; then
2408                             eval "DEFAULT_$LINE"
2409                           else
2410                             no_cache=1
2411                           fi
2412
2413                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2414
2415 fi;
2416
2417           eval "$ac_cv_use_gui"
2418           if test "$no_cache" != 1; then
2419             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2420           fi
2421
2422           if test "$wxUSE_GUI" = yes; then
2423             echo "$as_me:$LINENO: result: yes" >&5
2424 echo "${ECHO_T}yes" >&6
2425           else
2426             echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2428           fi
2429
2430
2431           enablestring=
2432           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2433 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2434           no_cache=0
2435           # Check whether --enable-monolithic or --disable-monolithic was given.
2436 if test "${enable_monolithic+set}" = set; then
2437   enableval="$enable_monolithic"
2438
2439                           if test "$enableval" = yes; then
2440                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2441                           else
2442                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2443                           fi
2444
2445 else
2446
2447                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2448                           if test "x$LINE" != x ; then
2449                             eval "DEFAULT_$LINE"
2450                           else
2451                             no_cache=1
2452                           fi
2453
2454                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2455
2456 fi;
2457
2458           eval "$ac_cv_use_monolithic"
2459           if test "$no_cache" != 1; then
2460             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2461           fi
2462
2463           if test "$wxUSE_MONOLITHIC" = yes; then
2464             echo "$as_me:$LINENO: result: yes" >&5
2465 echo "${ECHO_T}yes" >&6
2466           else
2467             echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2469           fi
2470
2471
2472           enablestring=
2473           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2474 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2475           no_cache=0
2476           # Check whether --enable-plugins or --disable-plugins was given.
2477 if test "${enable_plugins+set}" = set; then
2478   enableval="$enable_plugins"
2479
2480                           if test "$enableval" = yes; then
2481                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2482                           else
2483                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2484                           fi
2485
2486 else
2487
2488                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2489                           if test "x$LINE" != x ; then
2490                             eval "DEFAULT_$LINE"
2491                           else
2492                             no_cache=1
2493                           fi
2494
2495                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2496
2497 fi;
2498
2499           eval "$ac_cv_use_plugins"
2500           if test "$no_cache" != 1; then
2501             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2502           fi
2503
2504           if test "$wxUSE_PLUGINS" = yes; then
2505             echo "$as_me:$LINENO: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6
2507           else
2508             echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2510           fi
2511
2512
2513 if test "$wxUSE_GUI" = "yes"; then
2514
2515
2516           enablestring=
2517           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2518 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2519           no_cache=0
2520           # Check whether --enable-universal or --disable-universal was given.
2521 if test "${enable_universal+set}" = set; then
2522   enableval="$enable_universal"
2523
2524                           if test "$enableval" = yes; then
2525                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2526                           else
2527                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2528                           fi
2529
2530 else
2531
2532                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2533                           if test "x$LINE" != x ; then
2534                             eval "DEFAULT_$LINE"
2535                           else
2536                             no_cache=1
2537                           fi
2538
2539                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2540
2541 fi;
2542
2543           eval "$ac_cv_use_universal"
2544           if test "$no_cache" != 1; then
2545             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2546           fi
2547
2548           if test "$wxUSE_UNIVERSAL" = yes; then
2549             echo "$as_me:$LINENO: result: yes" >&5
2550 echo "${ECHO_T}yes" >&6
2551           else
2552             echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554           fi
2555
2556
2557 # Check whether --with-gtk or --without-gtk was given.
2558 if test "${with_gtk+set}" = set; then
2559   withval="$with_gtk"
2560   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2561 fi;
2562
2563 # Check whether --with-motif or --without-motif was given.
2564 if test "${with_motif+set}" = set; then
2565   withval="$with_motif"
2566   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2567 fi;
2568
2569 # Check whether --with-mac or --without-mac was given.
2570 if test "${with_mac+set}" = set; then
2571   withval="$with_mac"
2572   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2573 fi;
2574
2575 # Check whether --with-cocoa or --without-cocoa was given.
2576 if test "${with_cocoa+set}" = set; then
2577   withval="$with_cocoa"
2578   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2579 fi;
2580
2581 # Check whether --with-wine or --without-wine was given.
2582 if test "${with_wine+set}" = set; then
2583   withval="$with_wine"
2584   wxUSE_WINE="$withval" CACHE_WINE=1
2585 fi;
2586
2587 # Check whether --with-msw or --without-msw was given.
2588 if test "${with_msw+set}" = set; then
2589   withval="$with_msw"
2590   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2591 fi;
2592
2593 # Check whether --with-pm or --without-pm was given.
2594 if test "${with_pm+set}" = set; then
2595   withval="$with_pm"
2596   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2597 fi;
2598
2599 # Check whether --with-mgl or --without-mgl was given.
2600 if test "${with_mgl+set}" = set; then
2601   withval="$with_mgl"
2602   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2603 fi;
2604
2605 # Check whether --with-microwin or --without-microwin was given.
2606 if test "${with_microwin+set}" = set; then
2607   withval="$with_microwin"
2608   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2609 fi;
2610
2611 # Check whether --with-x11 or --without-x11 was given.
2612 if test "${with_x11+set}" = set; then
2613   withval="$with_x11"
2614   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2615 fi;
2616
2617           enablestring=
2618           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2619 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2620           no_cache=0
2621           # Check whether --enable-nanox or --disable-nanox was given.
2622 if test "${enable_nanox+set}" = set; then
2623   enableval="$enable_nanox"
2624
2625                           if test "$enableval" = yes; then
2626                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2627                           else
2628                             ac_cv_use_nanox='wxUSE_NANOX=no'
2629                           fi
2630
2631 else
2632
2633                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2634                           if test "x$LINE" != x ; then
2635                             eval "DEFAULT_$LINE"
2636                           else
2637                             no_cache=1
2638                           fi
2639
2640                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2641
2642 fi;
2643
2644           eval "$ac_cv_use_nanox"
2645           if test "$no_cache" != 1; then
2646             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2647           fi
2648
2649           if test "$wxUSE_NANOX" = yes; then
2650             echo "$as_me:$LINENO: result: yes" >&5
2651 echo "${ECHO_T}yes" >&6
2652           else
2653             echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2655           fi
2656
2657
2658
2659           enablestring=
2660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2661 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2662           no_cache=0
2663           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2664 if test "${enable_gtk2+set}" = set; then
2665   enableval="$enable_gtk2"
2666
2667                           if test "$enableval" = yes; then
2668                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2669                           else
2670                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2671                           fi
2672
2673 else
2674
2675                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2676                           if test "x$LINE" != x ; then
2677                             eval "DEFAULT_$LINE"
2678                           else
2679                             no_cache=1
2680                           fi
2681
2682                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2683
2684 fi;
2685
2686           eval "$ac_cv_use_gtk2"
2687           if test "$no_cache" != 1; then
2688             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2689           fi
2690
2691           if test "$wxUSE_GTK2" = yes; then
2692             echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6
2694           else
2695             echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2697           fi
2698
2699
2700           enablestring=
2701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2702 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2703           no_cache=0
2704           # Check whether --enable-gpe or --disable-gpe was given.
2705 if test "${enable_gpe+set}" = set; then
2706   enableval="$enable_gpe"
2707
2708                           if test "$enableval" = yes; then
2709                             ac_cv_use_gpe='wxUSE_GPE=yes'
2710                           else
2711                             ac_cv_use_gpe='wxUSE_GPE=no'
2712                           fi
2713
2714 else
2715
2716                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2717                           if test "x$LINE" != x ; then
2718                             eval "DEFAULT_$LINE"
2719                           else
2720                             no_cache=1
2721                           fi
2722
2723                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2724
2725 fi;
2726
2727           eval "$ac_cv_use_gpe"
2728           if test "$no_cache" != 1; then
2729             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2730           fi
2731
2732           if test "$wxUSE_GPE" = yes; then
2733             echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735           else
2736             echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738           fi
2739
2740
2741
2742           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2743 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2744           no_cache=0
2745
2746 # Check whether --with-libpng or --without-libpng was given.
2747 if test "${with_libpng+set}" = set; then
2748   withval="$with_libpng"
2749
2750                         if test "$withval" = yes; then
2751                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2752                         elif test "$withval" = no; then
2753                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2754                         elif test "$withval" = sys; then
2755                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2756                         elif test "$withval" = builtin; then
2757                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2758                         else
2759                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2760 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2761    { (exit 1); exit 1; }; }
2762                         fi
2763
2764 else
2765
2766                         LINE=`grep "wxUSE_LIBPNG" ${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_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2774
2775 fi;
2776
2777           eval "$ac_cv_use_libpng"
2778           if test "$no_cache" != 1; then
2779             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2780           fi
2781
2782           if test "$wxUSE_LIBPNG" = yes; then
2783             echo "$as_me:$LINENO: result: yes" >&5
2784 echo "${ECHO_T}yes" >&6
2785           elif test "$wxUSE_LIBPNG" = no; then
2786             echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2788           elif test "$wxUSE_LIBPNG" = sys; then
2789             echo "$as_me:$LINENO: result: system version" >&5
2790 echo "${ECHO_T}system version" >&6
2791           elif test "$wxUSE_LIBPNG" = builtin; then
2792             echo "$as_me:$LINENO: result: builtin version" >&5
2793 echo "${ECHO_T}builtin version" >&6
2794           else
2795             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2796 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2797    { (exit 1); exit 1; }; }
2798           fi
2799
2800
2801           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2802 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2803           no_cache=0
2804
2805 # Check whether --with-libjpeg or --without-libjpeg was given.
2806 if test "${with_libjpeg+set}" = set; then
2807   withval="$with_libjpeg"
2808
2809                         if test "$withval" = yes; then
2810                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2811                         elif test "$withval" = no; then
2812                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2813                         elif test "$withval" = sys; then
2814                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2815                         elif test "$withval" = builtin; then
2816                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2817                         else
2818                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2819 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2820    { (exit 1); exit 1; }; }
2821                         fi
2822
2823 else
2824
2825                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2826                         if test "x$LINE" != x ; then
2827                           eval "DEFAULT_$LINE"
2828                         else
2829                           no_cache=1
2830                         fi
2831
2832                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2833
2834 fi;
2835
2836           eval "$ac_cv_use_libjpeg"
2837           if test "$no_cache" != 1; then
2838             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2839           fi
2840
2841           if test "$wxUSE_LIBJPEG" = yes; then
2842             echo "$as_me:$LINENO: result: yes" >&5
2843 echo "${ECHO_T}yes" >&6
2844           elif test "$wxUSE_LIBJPEG" = no; then
2845             echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2847           elif test "$wxUSE_LIBJPEG" = sys; then
2848             echo "$as_me:$LINENO: result: system version" >&5
2849 echo "${ECHO_T}system version" >&6
2850           elif test "$wxUSE_LIBJPEG" = builtin; then
2851             echo "$as_me:$LINENO: result: builtin version" >&5
2852 echo "${ECHO_T}builtin version" >&6
2853           else
2854             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2855 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2856    { (exit 1); exit 1; }; }
2857           fi
2858
2859
2860           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2861 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2862           no_cache=0
2863
2864 # Check whether --with-libtiff or --without-libtiff was given.
2865 if test "${with_libtiff+set}" = set; then
2866   withval="$with_libtiff"
2867
2868                         if test "$withval" = yes; then
2869                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2870                         elif test "$withval" = no; then
2871                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2872                         elif test "$withval" = sys; then
2873                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2874                         elif test "$withval" = builtin; then
2875                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2876                         else
2877                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2878 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2879    { (exit 1); exit 1; }; }
2880                         fi
2881
2882 else
2883
2884                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2885                         if test "x$LINE" != x ; then
2886                           eval "DEFAULT_$LINE"
2887                         else
2888                           no_cache=1
2889                         fi
2890
2891                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2892
2893 fi;
2894
2895           eval "$ac_cv_use_libtiff"
2896           if test "$no_cache" != 1; then
2897             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2898           fi
2899
2900           if test "$wxUSE_LIBTIFF" = yes; then
2901             echo "$as_me:$LINENO: result: yes" >&5
2902 echo "${ECHO_T}yes" >&6
2903           elif test "$wxUSE_LIBTIFF" = no; then
2904             echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906           elif test "$wxUSE_LIBTIFF" = sys; then
2907             echo "$as_me:$LINENO: result: system version" >&5
2908 echo "${ECHO_T}system version" >&6
2909           elif test "$wxUSE_LIBTIFF" = builtin; then
2910             echo "$as_me:$LINENO: result: builtin version" >&5
2911 echo "${ECHO_T}builtin version" >&6
2912           else
2913             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2914 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2915    { (exit 1); exit 1; }; }
2916           fi
2917
2918
2919           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2920 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2921           no_cache=0
2922
2923 # Check whether --with-libxpm or --without-libxpm was given.
2924 if test "${with_libxpm+set}" = set; then
2925   withval="$with_libxpm"
2926
2927                         if test "$withval" = yes; then
2928                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2929                         elif test "$withval" = no; then
2930                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2931                         elif test "$withval" = sys; then
2932                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2933                         elif test "$withval" = builtin; then
2934                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2935                         else
2936                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2937 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2938    { (exit 1); exit 1; }; }
2939                         fi
2940
2941 else
2942
2943                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2944                         if test "x$LINE" != x ; then
2945                           eval "DEFAULT_$LINE"
2946                         else
2947                           no_cache=1
2948                         fi
2949
2950                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2951
2952 fi;
2953
2954           eval "$ac_cv_use_libxpm"
2955           if test "$no_cache" != 1; then
2956             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2957           fi
2958
2959           if test "$wxUSE_LIBXPM" = yes; then
2960             echo "$as_me:$LINENO: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2962           elif test "$wxUSE_LIBXPM" = no; then
2963             echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965           elif test "$wxUSE_LIBXPM" = sys; then
2966             echo "$as_me:$LINENO: result: system version" >&5
2967 echo "${ECHO_T}system version" >&6
2968           elif test "$wxUSE_LIBXPM" = builtin; then
2969             echo "$as_me:$LINENO: result: builtin version" >&5
2970 echo "${ECHO_T}builtin version" >&6
2971           else
2972             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2973 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2974    { (exit 1); exit 1; }; }
2975           fi
2976
2977
2978           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2979 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2980           no_cache=0
2981
2982 # Check whether --with-libmspack or --without-libmspack was given.
2983 if test "${with_libmspack+set}" = set; then
2984   withval="$with_libmspack"
2985
2986                         if test "$withval" = yes; then
2987                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2988                         else
2989                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2990                         fi
2991
2992 else
2993
2994                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2995                         if test "x$LINE" != x ; then
2996                           eval "DEFAULT_$LINE"
2997                         else
2998                           no_cache=1
2999                         fi
3000
3001                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3002
3003 fi;
3004
3005           eval "$ac_cv_use_libmspack"
3006           if test "$no_cache" != 1; then
3007             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3008           fi
3009
3010           if test "$wxUSE_LIBMSPACK" = yes; then
3011             echo "$as_me:$LINENO: result: yes" >&5
3012 echo "${ECHO_T}yes" >&6
3013           else
3014             echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016           fi
3017
3018
3019           echo "$as_me:$LINENO: checking for --with-sdl" >&5
3020 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3021           no_cache=0
3022
3023 # Check whether --with-sdl or --without-sdl was given.
3024 if test "${with_sdl+set}" = set; then
3025   withval="$with_sdl"
3026
3027                         if test "$withval" = yes; then
3028                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3029                         else
3030                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3031                         fi
3032
3033 else
3034
3035                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3036                         if test "x$LINE" != x ; then
3037                           eval "DEFAULT_$LINE"
3038                         else
3039                           no_cache=1
3040                         fi
3041
3042                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3043
3044 fi;
3045
3046           eval "$ac_cv_use_sdl"
3047           if test "$no_cache" != 1; then
3048             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3049           fi
3050
3051           if test "$wxUSE_LIBSDL" = yes; then
3052             echo "$as_me:$LINENO: result: yes" >&5
3053 echo "${ECHO_T}yes" >&6
3054           else
3055             echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3057           fi
3058
3059
3060           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3061 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3062           no_cache=0
3063
3064 # Check whether --with-opengl or --without-opengl was given.
3065 if test "${with_opengl+set}" = set; then
3066   withval="$with_opengl"
3067
3068                         if test "$withval" = yes; then
3069                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3070                         else
3071                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3072                         fi
3073
3074 else
3075
3076                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3077                         if test "x$LINE" != x ; then
3078                           eval "DEFAULT_$LINE"
3079                         else
3080                           no_cache=1
3081                         fi
3082
3083                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3084
3085 fi;
3086
3087           eval "$ac_cv_use_opengl"
3088           if test "$no_cache" != 1; then
3089             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3090           fi
3091
3092           if test "$wxUSE_OPENGL" = yes; then
3093             echo "$as_me:$LINENO: result: yes" >&5
3094 echo "${ECHO_T}yes" >&6
3095           else
3096             echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3098           fi
3099
3100
3101 fi
3102
3103
3104           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3105 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3106           no_cache=0
3107
3108 # Check whether --with-dmalloc or --without-dmalloc was given.
3109 if test "${with_dmalloc+set}" = set; then
3110   withval="$with_dmalloc"
3111
3112                         if test "$withval" = yes; then
3113                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3114                         else
3115                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3116                         fi
3117
3118 else
3119
3120                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3121                         if test "x$LINE" != x ; then
3122                           eval "DEFAULT_$LINE"
3123                         else
3124                           no_cache=1
3125                         fi
3126
3127                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3128
3129 fi;
3130
3131           eval "$ac_cv_use_dmalloc"
3132           if test "$no_cache" != 1; then
3133             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3134           fi
3135
3136           if test "$wxUSE_DMALLOC" = yes; then
3137             echo "$as_me:$LINENO: result: yes" >&5
3138 echo "${ECHO_T}yes" >&6
3139           else
3140             echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3142           fi
3143
3144
3145           echo "$as_me:$LINENO: checking for --with-regex" >&5
3146 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3147           no_cache=0
3148
3149 # Check whether --with-regex or --without-regex was given.
3150 if test "${with_regex+set}" = set; then
3151   withval="$with_regex"
3152
3153                         if test "$withval" = yes; then
3154                           ac_cv_use_regex='wxUSE_REGEX=yes'
3155                         elif test "$withval" = no; then
3156                           ac_cv_use_regex='wxUSE_REGEX=no'
3157                         elif test "$withval" = sys; then
3158                           ac_cv_use_regex='wxUSE_REGEX=sys'
3159                         elif test "$withval" = builtin; then
3160                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3161                         else
3162                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3163 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3164    { (exit 1); exit 1; }; }
3165                         fi
3166
3167 else
3168
3169                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3170                         if test "x$LINE" != x ; then
3171                           eval "DEFAULT_$LINE"
3172                         else
3173                           no_cache=1
3174                         fi
3175
3176                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3177
3178 fi;
3179
3180           eval "$ac_cv_use_regex"
3181           if test "$no_cache" != 1; then
3182             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3183           fi
3184
3185           if test "$wxUSE_REGEX" = yes; then
3186             echo "$as_me:$LINENO: result: yes" >&5
3187 echo "${ECHO_T}yes" >&6
3188           elif test "$wxUSE_REGEX" = no; then
3189             echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3191           elif test "$wxUSE_REGEX" = sys; then
3192             echo "$as_me:$LINENO: result: system version" >&5
3193 echo "${ECHO_T}system version" >&6
3194           elif test "$wxUSE_REGEX" = builtin; then
3195             echo "$as_me:$LINENO: result: builtin version" >&5
3196 echo "${ECHO_T}builtin version" >&6
3197           else
3198             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3199 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3200    { (exit 1); exit 1; }; }
3201           fi
3202
3203
3204           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3205 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3206           no_cache=0
3207
3208 # Check whether --with-zlib or --without-zlib was given.
3209 if test "${with_zlib+set}" = set; then
3210   withval="$with_zlib"
3211
3212                         if test "$withval" = yes; then
3213                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3214                         elif test "$withval" = no; then
3215                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3216                         elif test "$withval" = sys; then
3217                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3218                         elif test "$withval" = builtin; then
3219                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3220                         else
3221                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3222 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3223    { (exit 1); exit 1; }; }
3224                         fi
3225
3226 else
3227
3228                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3229                         if test "x$LINE" != x ; then
3230                           eval "DEFAULT_$LINE"
3231                         else
3232                           no_cache=1
3233                         fi
3234
3235                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3236
3237 fi;
3238
3239           eval "$ac_cv_use_zlib"
3240           if test "$no_cache" != 1; then
3241             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3242           fi
3243
3244           if test "$wxUSE_ZLIB" = yes; then
3245             echo "$as_me:$LINENO: result: yes" >&5
3246 echo "${ECHO_T}yes" >&6
3247           elif test "$wxUSE_ZLIB" = no; then
3248             echo "$as_me:$LINENO: result: no" >&5
3249 echo "${ECHO_T}no" >&6
3250           elif test "$wxUSE_ZLIB" = sys; then
3251             echo "$as_me:$LINENO: result: system version" >&5
3252 echo "${ECHO_T}system version" >&6
3253           elif test "$wxUSE_ZLIB" = builtin; then
3254             echo "$as_me:$LINENO: result: builtin version" >&5
3255 echo "${ECHO_T}builtin version" >&6
3256           else
3257             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3258 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3259    { (exit 1); exit 1; }; }
3260           fi
3261
3262
3263           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3264 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3265           no_cache=0
3266
3267 # Check whether --with-odbc or --without-odbc was given.
3268 if test "${with_odbc+set}" = set; then
3269   withval="$with_odbc"
3270
3271                         if test "$withval" = yes; then
3272                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3273                         elif test "$withval" = no; then
3274                           ac_cv_use_odbc='wxUSE_ODBC=no'
3275                         elif test "$withval" = sys; then
3276                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3277                         elif test "$withval" = builtin; then
3278                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3279                         else
3280                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3281 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3282    { (exit 1); exit 1; }; }
3283                         fi
3284
3285 else
3286
3287                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3288                         if test "x$LINE" != x ; then
3289                           eval "DEFAULT_$LINE"
3290                         else
3291                           no_cache=1
3292                         fi
3293
3294                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3295
3296 fi;
3297
3298           eval "$ac_cv_use_odbc"
3299           if test "$no_cache" != 1; then
3300             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3301           fi
3302
3303           if test "$wxUSE_ODBC" = yes; then
3304             echo "$as_me:$LINENO: result: yes" >&5
3305 echo "${ECHO_T}yes" >&6
3306           elif test "$wxUSE_ODBC" = no; then
3307             echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3309           elif test "$wxUSE_ODBC" = sys; then
3310             echo "$as_me:$LINENO: result: system version" >&5
3311 echo "${ECHO_T}system version" >&6
3312           elif test "$wxUSE_ODBC" = builtin; then
3313             echo "$as_me:$LINENO: result: builtin version" >&5
3314 echo "${ECHO_T}builtin version" >&6
3315           else
3316             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3317 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3318    { (exit 1); exit 1; }; }
3319           fi
3320
3321
3322           echo "$as_me:$LINENO: checking for --with-expat" >&5
3323 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3324           no_cache=0
3325
3326 # Check whether --with-expat or --without-expat was given.
3327 if test "${with_expat+set}" = set; then
3328   withval="$with_expat"
3329
3330                         if test "$withval" = yes; then
3331                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3332                         elif test "$withval" = no; then
3333                           ac_cv_use_expat='wxUSE_EXPAT=no'
3334                         elif test "$withval" = sys; then
3335                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3336                         elif test "$withval" = builtin; then
3337                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3338                         else
3339                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3340 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3341    { (exit 1); exit 1; }; }
3342                         fi
3343
3344 else
3345
3346                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3347                         if test "x$LINE" != x ; then
3348                           eval "DEFAULT_$LINE"
3349                         else
3350                           no_cache=1
3351                         fi
3352
3353                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3354
3355 fi;
3356
3357           eval "$ac_cv_use_expat"
3358           if test "$no_cache" != 1; then
3359             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3360           fi
3361
3362           if test "$wxUSE_EXPAT" = yes; then
3363             echo "$as_me:$LINENO: result: yes" >&5
3364 echo "${ECHO_T}yes" >&6
3365           elif test "$wxUSE_EXPAT" = no; then
3366             echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368           elif test "$wxUSE_EXPAT" = sys; then
3369             echo "$as_me:$LINENO: result: system version" >&5
3370 echo "${ECHO_T}system version" >&6
3371           elif test "$wxUSE_EXPAT" = builtin; then
3372             echo "$as_me:$LINENO: result: builtin version" >&5
3373 echo "${ECHO_T}builtin version" >&6
3374           else
3375             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3376 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3377    { (exit 1); exit 1; }; }
3378           fi
3379
3380
3381
3382
3383           enablestring=
3384           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3385 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3386           no_cache=0
3387           # Check whether --enable-shared or --disable-shared was given.
3388 if test "${enable_shared+set}" = set; then
3389   enableval="$enable_shared"
3390
3391                           if test "$enableval" = yes; then
3392                             ac_cv_use_shared='wxUSE_SHARED=yes'
3393                           else
3394                             ac_cv_use_shared='wxUSE_SHARED=no'
3395                           fi
3396
3397 else
3398
3399                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3400                           if test "x$LINE" != x ; then
3401                             eval "DEFAULT_$LINE"
3402                           else
3403                             no_cache=1
3404                           fi
3405
3406                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3407
3408 fi;
3409
3410           eval "$ac_cv_use_shared"
3411           if test "$no_cache" != 1; then
3412             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3413           fi
3414
3415           if test "$wxUSE_SHARED" = yes; then
3416             echo "$as_me:$LINENO: result: yes" >&5
3417 echo "${ECHO_T}yes" >&6
3418           else
3419             echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3421           fi
3422
3423
3424           enablestring=
3425           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3426 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3427           no_cache=0
3428           # Check whether --enable-optimise or --disable-optimise was given.
3429 if test "${enable_optimise+set}" = set; then
3430   enableval="$enable_optimise"
3431
3432                           if test "$enableval" = yes; then
3433                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3434                           else
3435                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3436                           fi
3437
3438 else
3439
3440                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3441                           if test "x$LINE" != x ; then
3442                             eval "DEFAULT_$LINE"
3443                           else
3444                             no_cache=1
3445                           fi
3446
3447                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3448
3449 fi;
3450
3451           eval "$ac_cv_use_optimise"
3452           if test "$no_cache" != 1; then
3453             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3454           fi
3455
3456           if test "$wxUSE_OPTIMISE" = yes; then
3457             echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6
3459           else
3460             echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462           fi
3463
3464
3465           enablestring=
3466           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3467 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3468           no_cache=0
3469           # Check whether --enable-debug or --disable-debug was given.
3470 if test "${enable_debug+set}" = set; then
3471   enableval="$enable_debug"
3472
3473                           if test "$enableval" = yes; then
3474                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3475                           else
3476                             ac_cv_use_debug='wxUSE_DEBUG=no'
3477                           fi
3478
3479 else
3480
3481                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3482                           if test "x$LINE" != x ; then
3483                             eval "DEFAULT_$LINE"
3484                           else
3485                             no_cache=1
3486                           fi
3487
3488                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3489
3490 fi;
3491
3492           eval "$ac_cv_use_debug"
3493           if test "$no_cache" != 1; then
3494             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3495           fi
3496
3497           if test "$wxUSE_DEBUG" = yes; then
3498             echo "$as_me:$LINENO: result: yes" >&5
3499 echo "${ECHO_T}yes" >&6
3500           else
3501             echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503           fi
3504
3505
3506           enablestring=
3507           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3508 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3509           no_cache=0
3510           # Check whether --enable-stl or --disable-stl was given.
3511 if test "${enable_stl+set}" = set; then
3512   enableval="$enable_stl"
3513
3514                           if test "$enableval" = yes; then
3515                             ac_cv_use_stl='wxUSE_STL=yes'
3516                           else
3517                             ac_cv_use_stl='wxUSE_STL=no'
3518                           fi
3519
3520 else
3521
3522                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3523                           if test "x$LINE" != x ; then
3524                             eval "DEFAULT_$LINE"
3525                           else
3526                             no_cache=1
3527                           fi
3528
3529                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3530
3531 fi;
3532
3533           eval "$ac_cv_use_stl"
3534           if test "$no_cache" != 1; then
3535             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3536           fi
3537
3538           if test "$wxUSE_STL" = yes; then
3539             echo "$as_me:$LINENO: result: yes" >&5
3540 echo "${ECHO_T}yes" >&6
3541           else
3542             echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3544           fi
3545
3546 if test "$USE_OS2" = "1"; then
3547
3548           enablestring=
3549           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3550 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3551           no_cache=0
3552           # Check whether --enable-omf or --disable-omf was given.
3553 if test "${enable_omf+set}" = set; then
3554   enableval="$enable_omf"
3555
3556                           if test "$enableval" = yes; then
3557                             ac_cv_use_omf='wxUSE_OMF=yes'
3558                           else
3559                             ac_cv_use_omf='wxUSE_OMF=no'
3560                           fi
3561
3562 else
3563
3564                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3565                           if test "x$LINE" != x ; then
3566                             eval "DEFAULT_$LINE"
3567                           else
3568                             no_cache=1
3569                           fi
3570
3571                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3572
3573 fi;
3574
3575           eval "$ac_cv_use_omf"
3576           if test "$no_cache" != 1; then
3577             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3578           fi
3579
3580           if test "$wxUSE_OMF" = yes; then
3581             echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6
3583           else
3584             echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586           fi
3587
3588 fi
3589
3590 if test "$wxUSE_DEBUG" = "yes"; then
3591   DEFAULT_wxUSE_DEBUG_FLAG=yes
3592   DEFAULT_wxUSE_DEBUG_INFO=yes
3593   BUILD=debug
3594 elif test "$wxUSE_DEBUG" = "no"; then
3595   DEFAULT_wxUSE_DEBUG_FLAG=no
3596   DEFAULT_wxUSE_DEBUG_INFO=no
3597   BUILD=release
3598 fi
3599
3600
3601           enablestring=
3602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3603 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3604           no_cache=0
3605           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3606 if test "${enable_debug_flag+set}" = set; then
3607   enableval="$enable_debug_flag"
3608
3609                           if test "$enableval" = yes; then
3610                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3611                           else
3612                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3613                           fi
3614
3615 else
3616
3617                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3618                           if test "x$LINE" != x ; then
3619                             eval "DEFAULT_$LINE"
3620                           else
3621                             no_cache=1
3622                           fi
3623
3624                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3625
3626 fi;
3627
3628           eval "$ac_cv_use_debug_flag"
3629           if test "$no_cache" != 1; then
3630             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3631           fi
3632
3633           if test "$wxUSE_DEBUG_FLAG" = yes; then
3634             echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6
3636           else
3637             echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3639           fi
3640
3641
3642           enablestring=
3643           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3644 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3645           no_cache=0
3646           # Check whether --enable-debug_info or --disable-debug_info was given.
3647 if test "${enable_debug_info+set}" = set; then
3648   enableval="$enable_debug_info"
3649
3650                           if test "$enableval" = yes; then
3651                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3652                           else
3653                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3654                           fi
3655
3656 else
3657
3658                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3659                           if test "x$LINE" != x ; then
3660                             eval "DEFAULT_$LINE"
3661                           else
3662                             no_cache=1
3663                           fi
3664
3665                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3666
3667 fi;
3668
3669           eval "$ac_cv_use_debug_info"
3670           if test "$no_cache" != 1; then
3671             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3672           fi
3673
3674           if test "$wxUSE_DEBUG_INFO" = yes; then
3675             echo "$as_me:$LINENO: result: yes" >&5
3676 echo "${ECHO_T}yes" >&6
3677           else
3678             echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3680           fi
3681
3682
3683           enablestring=
3684           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3685 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3686           no_cache=0
3687           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3688 if test "${enable_debug_gdb+set}" = set; then
3689   enableval="$enable_debug_gdb"
3690
3691                           if test "$enableval" = yes; then
3692                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3693                           else
3694                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3695                           fi
3696
3697 else
3698
3699                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3700                           if test "x$LINE" != x ; then
3701                             eval "DEFAULT_$LINE"
3702                           else
3703                             no_cache=1
3704                           fi
3705
3706                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3707
3708 fi;
3709
3710           eval "$ac_cv_use_debug_gdb"
3711           if test "$no_cache" != 1; then
3712             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3713           fi
3714
3715           if test "$wxUSE_DEBUG_GDB" = yes; then
3716             echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6
3718           else
3719             echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3721           fi
3722
3723
3724           enablestring=
3725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3726 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3727           no_cache=0
3728           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3729 if test "${enable_debug_cntxt+set}" = set; then
3730   enableval="$enable_debug_cntxt"
3731
3732                           if test "$enableval" = yes; then
3733                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3734                           else
3735                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3736                           fi
3737
3738 else
3739
3740                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3741                           if test "x$LINE" != x ; then
3742                             eval "DEFAULT_$LINE"
3743                           else
3744                             no_cache=1
3745                           fi
3746
3747                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3748
3749 fi;
3750
3751           eval "$ac_cv_use_debug_cntxt"
3752           if test "$no_cache" != 1; then
3753             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3754           fi
3755
3756           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3757             echo "$as_me:$LINENO: result: yes" >&5
3758 echo "${ECHO_T}yes" >&6
3759           else
3760             echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3762           fi
3763
3764
3765           enablestring=
3766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3767 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3768           no_cache=0
3769           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3770 if test "${enable_mem_tracing+set}" = set; then
3771   enableval="$enable_mem_tracing"
3772
3773                           if test "$enableval" = yes; then
3774                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3775                           else
3776                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3777                           fi
3778
3779 else
3780
3781                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3782                           if test "x$LINE" != x ; then
3783                             eval "DEFAULT_$LINE"
3784                           else
3785                             no_cache=1
3786                           fi
3787
3788                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3789
3790 fi;
3791
3792           eval "$ac_cv_use_mem_tracing"
3793           if test "$no_cache" != 1; then
3794             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3795           fi
3796
3797           if test "$wxUSE_MEM_TRACING" = yes; then
3798             echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6
3800           else
3801             echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3803           fi
3804
3805
3806           enablestring=
3807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3808 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3809           no_cache=0
3810           # Check whether --enable-profile or --disable-profile was given.
3811 if test "${enable_profile+set}" = set; then
3812   enableval="$enable_profile"
3813
3814                           if test "$enableval" = yes; then
3815                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3816                           else
3817                             ac_cv_use_profile='wxUSE_PROFILE=no'
3818                           fi
3819
3820 else
3821
3822                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3823                           if test "x$LINE" != x ; then
3824                             eval "DEFAULT_$LINE"
3825                           else
3826                             no_cache=1
3827                           fi
3828
3829                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3830
3831 fi;
3832
3833           eval "$ac_cv_use_profile"
3834           if test "$no_cache" != 1; then
3835             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3836           fi
3837
3838           if test "$wxUSE_PROFILE" = yes; then
3839             echo "$as_me:$LINENO: result: yes" >&5
3840 echo "${ECHO_T}yes" >&6
3841           else
3842             echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844           fi
3845
3846
3847           enablestring=
3848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3849 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3850           no_cache=0
3851           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3852 if test "${enable_no_rtti+set}" = set; then
3853   enableval="$enable_no_rtti"
3854
3855                           if test "$enableval" = yes; then
3856                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3857                           else
3858                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3859                           fi
3860
3861 else
3862
3863                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3864                           if test "x$LINE" != x ; then
3865                             eval "DEFAULT_$LINE"
3866                           else
3867                             no_cache=1
3868                           fi
3869
3870                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3871
3872 fi;
3873
3874           eval "$ac_cv_use_no_rtti"
3875           if test "$no_cache" != 1; then
3876             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3877           fi
3878
3879           if test "$wxUSE_NO_RTTI" = yes; then
3880             echo "$as_me:$LINENO: result: yes" >&5
3881 echo "${ECHO_T}yes" >&6
3882           else
3883             echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885           fi
3886
3887
3888           enablestring=
3889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3890 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3891           no_cache=0
3892           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3893 if test "${enable_no_exceptions+set}" = set; then
3894   enableval="$enable_no_exceptions"
3895
3896                           if test "$enableval" = yes; then
3897                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3898                           else
3899                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3900                           fi
3901
3902 else
3903
3904                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3905                           if test "x$LINE" != x ; then
3906                             eval "DEFAULT_$LINE"
3907                           else
3908                             no_cache=1
3909                           fi
3910
3911                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3912
3913 fi;
3914
3915           eval "$ac_cv_use_no_exceptions"
3916           if test "$no_cache" != 1; then
3917             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3918           fi
3919
3920           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3921             echo "$as_me:$LINENO: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6
3923           else
3924             echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926           fi
3927
3928
3929           enablestring=
3930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3931 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3932           no_cache=0
3933           # Check whether --enable-permissive or --disable-permissive was given.
3934 if test "${enable_permissive+set}" = set; then
3935   enableval="$enable_permissive"
3936
3937                           if test "$enableval" = yes; then
3938                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3939                           else
3940                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3941                           fi
3942
3943 else
3944
3945                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3946                           if test "x$LINE" != x ; then
3947                             eval "DEFAULT_$LINE"
3948                           else
3949                             no_cache=1
3950                           fi
3951
3952                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3953
3954 fi;
3955
3956           eval "$ac_cv_use_permissive"
3957           if test "$no_cache" != 1; then
3958             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3959           fi
3960
3961           if test "$wxUSE_PERMISSIVE" = yes; then
3962             echo "$as_me:$LINENO: result: yes" >&5
3963 echo "${ECHO_T}yes" >&6
3964           else
3965             echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967           fi
3968
3969
3970           enablestring=
3971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3972 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3973           no_cache=0
3974           # Check whether --enable-no_deps or --disable-no_deps was given.
3975 if test "${enable_no_deps+set}" = set; then
3976   enableval="$enable_no_deps"
3977
3978                           if test "$enableval" = yes; then
3979                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3980                           else
3981                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3982                           fi
3983
3984 else
3985
3986                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3987                           if test "x$LINE" != x ; then
3988                             eval "DEFAULT_$LINE"
3989                           else
3990                             no_cache=1
3991                           fi
3992
3993                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3994
3995 fi;
3996
3997           eval "$ac_cv_use_no_deps"
3998           if test "$no_cache" != 1; then
3999             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4000           fi
4001
4002           if test "$wxUSE_NO_DEPS" = yes; then
4003             echo "$as_me:$LINENO: result: yes" >&5
4004 echo "${ECHO_T}yes" >&6
4005           else
4006             echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4008           fi
4009
4010
4011
4012           enablestring=
4013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4014 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4015           no_cache=0
4016           # Check whether --enable-compat22 or --disable-compat22 was given.
4017 if test "${enable_compat22+set}" = set; then
4018   enableval="$enable_compat22"
4019
4020                           if test "$enableval" = yes; then
4021                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4022                           else
4023                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4024                           fi
4025
4026 else
4027
4028                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4029                           if test "x$LINE" != x ; then
4030                             eval "DEFAULT_$LINE"
4031                           else
4032                             no_cache=1
4033                           fi
4034
4035                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4036
4037 fi;
4038
4039           eval "$ac_cv_use_compat22"
4040           if test "$no_cache" != 1; then
4041             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4042           fi
4043
4044           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4045             echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6
4047           else
4048             echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4050           fi
4051
4052
4053           enablestring=disable
4054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4055 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4056           no_cache=0
4057           # Check whether --enable-compat24 or --disable-compat24 was given.
4058 if test "${enable_compat24+set}" = set; then
4059   enableval="$enable_compat24"
4060
4061                           if test "$enableval" = yes; then
4062                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4063                           else
4064                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4065                           fi
4066
4067 else
4068
4069                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4070                           if test "x$LINE" != x ; then
4071                             eval "DEFAULT_$LINE"
4072                           else
4073                             no_cache=1
4074                           fi
4075
4076                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4077
4078 fi;
4079
4080           eval "$ac_cv_use_compat24"
4081           if test "$no_cache" != 1; then
4082             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4083           fi
4084
4085           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4086             echo "$as_me:$LINENO: result: yes" >&5
4087 echo "${ECHO_T}yes" >&6
4088           else
4089             echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091           fi
4092
4093
4094 # Check whether --enable-rpath or --disable-rpath was given.
4095 if test "${enable_rpath+set}" = set; then
4096   enableval="$enable_rpath"
4097   wxRPATH_DIR="$enableval"
4098 fi;
4099
4100 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4101    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4102 fi
4103
4104
4105
4106
4107           enablestring=
4108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4109 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4110           no_cache=0
4111           # Check whether --enable-intl or --disable-intl was given.
4112 if test "${enable_intl+set}" = set; then
4113   enableval="$enable_intl"
4114
4115                           if test "$enableval" = yes; then
4116                             ac_cv_use_intl='wxUSE_INTL=yes'
4117                           else
4118                             ac_cv_use_intl='wxUSE_INTL=no'
4119                           fi
4120
4121 else
4122
4123                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4124                           if test "x$LINE" != x ; then
4125                             eval "DEFAULT_$LINE"
4126                           else
4127                             no_cache=1
4128                           fi
4129
4130                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4131
4132 fi;
4133
4134           eval "$ac_cv_use_intl"
4135           if test "$no_cache" != 1; then
4136             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4137           fi
4138
4139           if test "$wxUSE_INTL" = yes; then
4140             echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6
4142           else
4143             echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145           fi
4146
4147
4148           enablestring=
4149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4150 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4151           no_cache=0
4152           # Check whether --enable-config or --disable-config was given.
4153 if test "${enable_config+set}" = set; then
4154   enableval="$enable_config"
4155
4156                           if test "$enableval" = yes; then
4157                             ac_cv_use_config='wxUSE_CONFIG=yes'
4158                           else
4159                             ac_cv_use_config='wxUSE_CONFIG=no'
4160                           fi
4161
4162 else
4163
4164                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4165                           if test "x$LINE" != x ; then
4166                             eval "DEFAULT_$LINE"
4167                           else
4168                             no_cache=1
4169                           fi
4170
4171                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4172
4173 fi;
4174
4175           eval "$ac_cv_use_config"
4176           if test "$no_cache" != 1; then
4177             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4178           fi
4179
4180           if test "$wxUSE_CONFIG" = yes; then
4181             echo "$as_me:$LINENO: result: yes" >&5
4182 echo "${ECHO_T}yes" >&6
4183           else
4184             echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4186           fi
4187
4188
4189
4190           enablestring=
4191           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4192 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4193           no_cache=0
4194           # Check whether --enable-protocols or --disable-protocols was given.
4195 if test "${enable_protocols+set}" = set; then
4196   enableval="$enable_protocols"
4197
4198                           if test "$enableval" = yes; then
4199                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4200                           else
4201                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4202                           fi
4203
4204 else
4205
4206                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4207                           if test "x$LINE" != x ; then
4208                             eval "DEFAULT_$LINE"
4209                           else
4210                             no_cache=1
4211                           fi
4212
4213                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4214
4215 fi;
4216
4217           eval "$ac_cv_use_protocols"
4218           if test "$no_cache" != 1; then
4219             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4220           fi
4221
4222           if test "$wxUSE_PROTOCOL" = yes; then
4223             echo "$as_me:$LINENO: result: yes" >&5
4224 echo "${ECHO_T}yes" >&6
4225           else
4226             echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228           fi
4229
4230
4231           enablestring=
4232           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4233 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4234           no_cache=0
4235           # Check whether --enable-ftp or --disable-ftp was given.
4236 if test "${enable_ftp+set}" = set; then
4237   enableval="$enable_ftp"
4238
4239                           if test "$enableval" = yes; then
4240                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4241                           else
4242                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4243                           fi
4244
4245 else
4246
4247                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4248                           if test "x$LINE" != x ; then
4249                             eval "DEFAULT_$LINE"
4250                           else
4251                             no_cache=1
4252                           fi
4253
4254                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4255
4256 fi;
4257
4258           eval "$ac_cv_use_ftp"
4259           if test "$no_cache" != 1; then
4260             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4261           fi
4262
4263           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4264             echo "$as_me:$LINENO: result: yes" >&5
4265 echo "${ECHO_T}yes" >&6
4266           else
4267             echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269           fi
4270
4271
4272           enablestring=
4273           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4274 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4275           no_cache=0
4276           # Check whether --enable-http or --disable-http was given.
4277 if test "${enable_http+set}" = set; then
4278   enableval="$enable_http"
4279
4280                           if test "$enableval" = yes; then
4281                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4282                           else
4283                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4284                           fi
4285
4286 else
4287
4288                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4289                           if test "x$LINE" != x ; then
4290                             eval "DEFAULT_$LINE"
4291                           else
4292                             no_cache=1
4293                           fi
4294
4295                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4296
4297 fi;
4298
4299           eval "$ac_cv_use_http"
4300           if test "$no_cache" != 1; then
4301             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4302           fi
4303
4304           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4305             echo "$as_me:$LINENO: result: yes" >&5
4306 echo "${ECHO_T}yes" >&6
4307           else
4308             echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310           fi
4311
4312
4313           enablestring=
4314           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4315 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4316           no_cache=0
4317           # Check whether --enable-fileproto or --disable-fileproto was given.
4318 if test "${enable_fileproto+set}" = set; then
4319   enableval="$enable_fileproto"
4320
4321                           if test "$enableval" = yes; then
4322                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4323                           else
4324                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4325                           fi
4326
4327 else
4328
4329                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4330                           if test "x$LINE" != x ; then
4331                             eval "DEFAULT_$LINE"
4332                           else
4333                             no_cache=1
4334                           fi
4335
4336                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4337
4338 fi;
4339
4340           eval "$ac_cv_use_fileproto"
4341           if test "$no_cache" != 1; then
4342             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4343           fi
4344
4345           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4346             echo "$as_me:$LINENO: result: yes" >&5
4347 echo "${ECHO_T}yes" >&6
4348           else
4349             echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351           fi
4352
4353
4354           enablestring=
4355           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4356 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4357           no_cache=0
4358           # Check whether --enable-sockets or --disable-sockets was given.
4359 if test "${enable_sockets+set}" = set; then
4360   enableval="$enable_sockets"
4361
4362                           if test "$enableval" = yes; then
4363                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4364                           else
4365                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4366                           fi
4367
4368 else
4369
4370                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4371                           if test "x$LINE" != x ; then
4372                             eval "DEFAULT_$LINE"
4373                           else
4374                             no_cache=1
4375                           fi
4376
4377                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4378
4379 fi;
4380
4381           eval "$ac_cv_use_sockets"
4382           if test "$no_cache" != 1; then
4383             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4384           fi
4385
4386           if test "$wxUSE_SOCKETS" = yes; then
4387             echo "$as_me:$LINENO: result: yes" >&5
4388 echo "${ECHO_T}yes" >&6
4389           else
4390             echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4392           fi
4393
4394
4395           enablestring=
4396           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4397 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4398           no_cache=0
4399           # Check whether --enable-ole or --disable-ole was given.
4400 if test "${enable_ole+set}" = set; then
4401   enableval="$enable_ole"
4402
4403                           if test "$enableval" = yes; then
4404                             ac_cv_use_ole='wxUSE_OLE=yes'
4405                           else
4406                             ac_cv_use_ole='wxUSE_OLE=no'
4407                           fi
4408
4409 else
4410
4411                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4412                           if test "x$LINE" != x ; then
4413                             eval "DEFAULT_$LINE"
4414                           else
4415                             no_cache=1
4416                           fi
4417
4418                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4419
4420 fi;
4421
4422           eval "$ac_cv_use_ole"
4423           if test "$no_cache" != 1; then
4424             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4425           fi
4426
4427           if test "$wxUSE_OLE" = yes; then
4428             echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6
4430           else
4431             echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6
4433           fi
4434
4435
4436           enablestring=
4437           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4438 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4439           no_cache=0
4440           # Check whether --enable-dataobj or --disable-dataobj was given.
4441 if test "${enable_dataobj+set}" = set; then
4442   enableval="$enable_dataobj"
4443
4444                           if test "$enableval" = yes; then
4445                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4446                           else
4447                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4448                           fi
4449
4450 else
4451
4452                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4453                           if test "x$LINE" != x ; then
4454                             eval "DEFAULT_$LINE"
4455                           else
4456                             no_cache=1
4457                           fi
4458
4459                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4460
4461 fi;
4462
4463           eval "$ac_cv_use_dataobj"
4464           if test "$no_cache" != 1; then
4465             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4466           fi
4467
4468           if test "$wxUSE_DATAOBJ" = yes; then
4469             echo "$as_me:$LINENO: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6
4471           else
4472             echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4474           fi
4475
4476
4477
4478           enablestring=
4479           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4480 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4481           no_cache=0
4482           # Check whether --enable-ipc or --disable-ipc was given.
4483 if test "${enable_ipc+set}" = set; then
4484   enableval="$enable_ipc"
4485
4486                           if test "$enableval" = yes; then
4487                             ac_cv_use_ipc='wxUSE_IPC=yes'
4488                           else
4489                             ac_cv_use_ipc='wxUSE_IPC=no'
4490                           fi
4491
4492 else
4493
4494                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4495                           if test "x$LINE" != x ; then
4496                             eval "DEFAULT_$LINE"
4497                           else
4498                             no_cache=1
4499                           fi
4500
4501                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4502
4503 fi;
4504
4505           eval "$ac_cv_use_ipc"
4506           if test "$no_cache" != 1; then
4507             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4508           fi
4509
4510           if test "$wxUSE_IPC" = yes; then
4511             echo "$as_me:$LINENO: result: yes" >&5
4512 echo "${ECHO_T}yes" >&6
4513           else
4514             echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4516           fi
4517
4518
4519
4520           enablestring=
4521           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4522 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4523           no_cache=0
4524           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4525 if test "${enable_apple_ieee+set}" = set; then
4526   enableval="$enable_apple_ieee"
4527
4528                           if test "$enableval" = yes; then
4529                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4530                           else
4531                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4532                           fi
4533
4534 else
4535
4536                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4537                           if test "x$LINE" != x ; then
4538                             eval "DEFAULT_$LINE"
4539                           else
4540                             no_cache=1
4541                           fi
4542
4543                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4544
4545 fi;
4546
4547           eval "$ac_cv_use_apple_ieee"
4548           if test "$no_cache" != 1; then
4549             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4550           fi
4551
4552           if test "$wxUSE_APPLE_IEEE" = yes; then
4553             echo "$as_me:$LINENO: result: yes" >&5
4554 echo "${ECHO_T}yes" >&6
4555           else
4556             echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6
4558           fi
4559
4560
4561           enablestring=
4562           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4563 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4564           no_cache=0
4565           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4566 if test "${enable_catch_segvs+set}" = set; then
4567   enableval="$enable_catch_segvs"
4568
4569                           if test "$enableval" = yes; then
4570                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4571                           else
4572                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4573                           fi
4574
4575 else
4576
4577                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4578                           if test "x$LINE" != x ; then
4579                             eval "DEFAULT_$LINE"
4580                           else
4581                             no_cache=1
4582                           fi
4583
4584                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4585
4586 fi;
4587
4588           eval "$ac_cv_use_catch_segvs"
4589           if test "$no_cache" != 1; then
4590             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4591           fi
4592
4593           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4594             echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6
4596           else
4597             echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4599           fi
4600
4601
4602           enablestring=
4603           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4604 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4605           no_cache=0
4606           # Check whether --enable-cmdline or --disable-cmdline was given.
4607 if test "${enable_cmdline+set}" = set; then
4608   enableval="$enable_cmdline"
4609
4610                           if test "$enableval" = yes; then
4611                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4612                           else
4613                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4614                           fi
4615
4616 else
4617
4618                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4619                           if test "x$LINE" != x ; then
4620                             eval "DEFAULT_$LINE"
4621                           else
4622                             no_cache=1
4623                           fi
4624
4625                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4626
4627 fi;
4628
4629           eval "$ac_cv_use_cmdline"
4630           if test "$no_cache" != 1; then
4631             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4632           fi
4633
4634           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4635             echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4637           else
4638             echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640           fi
4641
4642
4643           enablestring=
4644           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4645 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4646           no_cache=0
4647           # Check whether --enable-datetime or --disable-datetime was given.
4648 if test "${enable_datetime+set}" = set; then
4649   enableval="$enable_datetime"
4650
4651                           if test "$enableval" = yes; then
4652                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4653                           else
4654                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4655                           fi
4656
4657 else
4658
4659                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4660                           if test "x$LINE" != x ; then
4661                             eval "DEFAULT_$LINE"
4662                           else
4663                             no_cache=1
4664                           fi
4665
4666                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4667
4668 fi;
4669
4670           eval "$ac_cv_use_datetime"
4671           if test "$no_cache" != 1; then
4672             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4673           fi
4674
4675           if test "$wxUSE_DATETIME" = yes; then
4676             echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6
4678           else
4679             echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681           fi
4682
4683
4684           enablestring=
4685           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4686 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4687           no_cache=0
4688           # Check whether --enable-dialupman or --disable-dialupman was given.
4689 if test "${enable_dialupman+set}" = set; then
4690   enableval="$enable_dialupman"
4691
4692                           if test "$enableval" = yes; then
4693                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4694                           else
4695                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4696                           fi
4697
4698 else
4699
4700                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4701                           if test "x$LINE" != x ; then
4702                             eval "DEFAULT_$LINE"
4703                           else
4704                             no_cache=1
4705                           fi
4706
4707                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4708
4709 fi;
4710
4711           eval "$ac_cv_use_dialupman"
4712           if test "$no_cache" != 1; then
4713             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4714           fi
4715
4716           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4717             echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6
4719           else
4720             echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6
4722           fi
4723
4724
4725           enablestring=
4726           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4727 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4728           no_cache=0
4729           # Check whether --enable-dynlib or --disable-dynlib was given.
4730 if test "${enable_dynlib+set}" = set; then
4731   enableval="$enable_dynlib"
4732
4733                           if test "$enableval" = yes; then
4734                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4735                           else
4736                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4737                           fi
4738
4739 else
4740
4741                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4742                           if test "x$LINE" != x ; then
4743                             eval "DEFAULT_$LINE"
4744                           else
4745                             no_cache=1
4746                           fi
4747
4748                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4749
4750 fi;
4751
4752           eval "$ac_cv_use_dynlib"
4753           if test "$no_cache" != 1; then
4754             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4755           fi
4756
4757           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4758             echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6
4760           else
4761             echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4763           fi
4764
4765
4766           enablestring=
4767           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4768 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4769           no_cache=0
4770           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4771 if test "${enable_dynamicloader+set}" = set; then
4772   enableval="$enable_dynamicloader"
4773
4774                           if test "$enableval" = yes; then
4775                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4776                           else
4777                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4778                           fi
4779
4780 else
4781
4782                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4783                           if test "x$LINE" != x ; then
4784                             eval "DEFAULT_$LINE"
4785                           else
4786                             no_cache=1
4787                           fi
4788
4789                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4790
4791 fi;
4792
4793           eval "$ac_cv_use_dynamicloader"
4794           if test "$no_cache" != 1; then
4795             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4796           fi
4797
4798           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4799             echo "$as_me:$LINENO: result: yes" >&5
4800 echo "${ECHO_T}yes" >&6
4801           else
4802             echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4804           fi
4805
4806
4807           enablestring=
4808           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4809 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4810           no_cache=0
4811           # Check whether --enable-exceptions or --disable-exceptions was given.
4812 if test "${enable_exceptions+set}" = set; then
4813   enableval="$enable_exceptions"
4814
4815                           if test "$enableval" = yes; then
4816                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4817                           else
4818                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4819                           fi
4820
4821 else
4822
4823                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4824                           if test "x$LINE" != x ; then
4825                             eval "DEFAULT_$LINE"
4826                           else
4827                             no_cache=1
4828                           fi
4829
4830                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4831
4832 fi;
4833
4834           eval "$ac_cv_use_exceptions"
4835           if test "$no_cache" != 1; then
4836             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4837           fi
4838
4839           if test "$wxUSE_EXCEPTIONS" = yes; then
4840             echo "$as_me:$LINENO: result: yes" >&5
4841 echo "${ECHO_T}yes" >&6
4842           else
4843             echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4845           fi
4846
4847
4848           enablestring=
4849           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4850 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4851           no_cache=0
4852           # Check whether --enable-ffile or --disable-ffile was given.
4853 if test "${enable_ffile+set}" = set; then
4854   enableval="$enable_ffile"
4855
4856                           if test "$enableval" = yes; then
4857                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4858                           else
4859                             ac_cv_use_ffile='wxUSE_FFILE=no'
4860                           fi
4861
4862 else
4863
4864                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4865                           if test "x$LINE" != x ; then
4866                             eval "DEFAULT_$LINE"
4867                           else
4868                             no_cache=1
4869                           fi
4870
4871                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4872
4873 fi;
4874
4875           eval "$ac_cv_use_ffile"
4876           if test "$no_cache" != 1; then
4877             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4878           fi
4879
4880           if test "$wxUSE_FFILE" = yes; then
4881             echo "$as_me:$LINENO: result: yes" >&5
4882 echo "${ECHO_T}yes" >&6
4883           else
4884             echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4886           fi
4887
4888
4889           enablestring=
4890           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4891 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4892           no_cache=0
4893           # Check whether --enable-file or --disable-file was given.
4894 if test "${enable_file+set}" = set; then
4895   enableval="$enable_file"
4896
4897                           if test "$enableval" = yes; then
4898                             ac_cv_use_file='wxUSE_FILE=yes'
4899                           else
4900                             ac_cv_use_file='wxUSE_FILE=no'
4901                           fi
4902
4903 else
4904
4905                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4906                           if test "x$LINE" != x ; then
4907                             eval "DEFAULT_$LINE"
4908                           else
4909                             no_cache=1
4910                           fi
4911
4912                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4913
4914 fi;
4915
4916           eval "$ac_cv_use_file"
4917           if test "$no_cache" != 1; then
4918             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4919           fi
4920
4921           if test "$wxUSE_FILE" = yes; then
4922             echo "$as_me:$LINENO: result: yes" >&5
4923 echo "${ECHO_T}yes" >&6
4924           else
4925             echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927           fi
4928
4929
4930           enablestring=
4931           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4932 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4933           no_cache=0
4934           # Check whether --enable-filesystem or --disable-filesystem was given.
4935 if test "${enable_filesystem+set}" = set; then
4936   enableval="$enable_filesystem"
4937
4938                           if test "$enableval" = yes; then
4939                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4940                           else
4941                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4942                           fi
4943
4944 else
4945
4946                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4947                           if test "x$LINE" != x ; then
4948                             eval "DEFAULT_$LINE"
4949                           else
4950                             no_cache=1
4951                           fi
4952
4953                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4954
4955 fi;
4956
4957           eval "$ac_cv_use_filesystem"
4958           if test "$no_cache" != 1; then
4959             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4960           fi
4961
4962           if test "$wxUSE_FILESYSTEM" = yes; then
4963             echo "$as_me:$LINENO: result: yes" >&5
4964 echo "${ECHO_T}yes" >&6
4965           else
4966             echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4968           fi
4969
4970
4971           enablestring=
4972           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4973 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4974           no_cache=0
4975           # Check whether --enable-fontmap or --disable-fontmap was given.
4976 if test "${enable_fontmap+set}" = set; then
4977   enableval="$enable_fontmap"
4978
4979                           if test "$enableval" = yes; then
4980                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4981                           else
4982                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4983                           fi
4984
4985 else
4986
4987                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4988                           if test "x$LINE" != x ; then
4989                             eval "DEFAULT_$LINE"
4990                           else
4991                             no_cache=1
4992                           fi
4993
4994                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4995
4996 fi;
4997
4998           eval "$ac_cv_use_fontmap"
4999           if test "$no_cache" != 1; then
5000             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5001           fi
5002
5003           if test "$wxUSE_FONTMAP" = yes; then
5004             echo "$as_me:$LINENO: result: yes" >&5
5005 echo "${ECHO_T}yes" >&6
5006           else
5007             echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6
5009           fi
5010
5011
5012           enablestring=
5013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5014 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5015           no_cache=0
5016           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5017 if test "${enable_fs_inet+set}" = set; then
5018   enableval="$enable_fs_inet"
5019
5020                           if test "$enableval" = yes; then
5021                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5022                           else
5023                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5024                           fi
5025
5026 else
5027
5028                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5029                           if test "x$LINE" != x ; then
5030                             eval "DEFAULT_$LINE"
5031                           else
5032                             no_cache=1
5033                           fi
5034
5035                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5036
5037 fi;
5038
5039           eval "$ac_cv_use_fs_inet"
5040           if test "$no_cache" != 1; then
5041             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5042           fi
5043
5044           if test "$wxUSE_FS_INET" = yes; then
5045             echo "$as_me:$LINENO: result: yes" >&5
5046 echo "${ECHO_T}yes" >&6
5047           else
5048             echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050           fi
5051
5052
5053           enablestring=
5054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5055 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5056           no_cache=0
5057           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5058 if test "${enable_fs_zip+set}" = set; then
5059   enableval="$enable_fs_zip"
5060
5061                           if test "$enableval" = yes; then
5062                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5063                           else
5064                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5065                           fi
5066
5067 else
5068
5069                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5070                           if test "x$LINE" != x ; then
5071                             eval "DEFAULT_$LINE"
5072                           else
5073                             no_cache=1
5074                           fi
5075
5076                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5077
5078 fi;
5079
5080           eval "$ac_cv_use_fs_zip"
5081           if test "$no_cache" != 1; then
5082             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5083           fi
5084
5085           if test "$wxUSE_FS_ZIP" = yes; then
5086             echo "$as_me:$LINENO: result: yes" >&5
5087 echo "${ECHO_T}yes" >&6
5088           else
5089             echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6
5091           fi
5092
5093
5094           enablestring=
5095           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5096 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5097           no_cache=0
5098           # Check whether --enable-geometry or --disable-geometry was given.
5099 if test "${enable_geometry+set}" = set; then
5100   enableval="$enable_geometry"
5101
5102                           if test "$enableval" = yes; then
5103                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5104                           else
5105                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5106                           fi
5107
5108 else
5109
5110                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5111                           if test "x$LINE" != x ; then
5112                             eval "DEFAULT_$LINE"
5113                           else
5114                             no_cache=1
5115                           fi
5116
5117                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5118
5119 fi;
5120
5121           eval "$ac_cv_use_geometry"
5122           if test "$no_cache" != 1; then
5123             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5124           fi
5125
5126           if test "$wxUSE_GEOMETRY" = yes; then
5127             echo "$as_me:$LINENO: result: yes" >&5
5128 echo "${ECHO_T}yes" >&6
5129           else
5130             echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132           fi
5133
5134
5135           enablestring=
5136           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5137 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5138           no_cache=0
5139           # Check whether --enable-log or --disable-log was given.
5140 if test "${enable_log+set}" = set; then
5141   enableval="$enable_log"
5142
5143                           if test "$enableval" = yes; then
5144                             ac_cv_use_log='wxUSE_LOG=yes'
5145                           else
5146                             ac_cv_use_log='wxUSE_LOG=no'
5147                           fi
5148
5149 else
5150
5151                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5152                           if test "x$LINE" != x ; then
5153                             eval "DEFAULT_$LINE"
5154                           else
5155                             no_cache=1
5156                           fi
5157
5158                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5159
5160 fi;
5161
5162           eval "$ac_cv_use_log"
5163           if test "$no_cache" != 1; then
5164             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5165           fi
5166
5167           if test "$wxUSE_LOG" = yes; then
5168             echo "$as_me:$LINENO: result: yes" >&5
5169 echo "${ECHO_T}yes" >&6
5170           else
5171             echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173           fi
5174
5175
5176           enablestring=
5177           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5178 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5179           no_cache=0
5180           # Check whether --enable-longlong or --disable-longlong was given.
5181 if test "${enable_longlong+set}" = set; then
5182   enableval="$enable_longlong"
5183
5184                           if test "$enableval" = yes; then
5185                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5186                           else
5187                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5188                           fi
5189
5190 else
5191
5192                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5193                           if test "x$LINE" != x ; then
5194                             eval "DEFAULT_$LINE"
5195                           else
5196                             no_cache=1
5197                           fi
5198
5199                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5200
5201 fi;
5202
5203           eval "$ac_cv_use_longlong"
5204           if test "$no_cache" != 1; then
5205             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5206           fi
5207
5208           if test "$wxUSE_LONGLONG" = yes; then
5209             echo "$as_me:$LINENO: result: yes" >&5
5210 echo "${ECHO_T}yes" >&6
5211           else
5212             echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5214           fi
5215
5216
5217           enablestring=
5218           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5219 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5220           no_cache=0
5221           # Check whether --enable-mimetype or --disable-mimetype was given.
5222 if test "${enable_mimetype+set}" = set; then
5223   enableval="$enable_mimetype"
5224
5225                           if test "$enableval" = yes; then
5226                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5227                           else
5228                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5229                           fi
5230
5231 else
5232
5233                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5234                           if test "x$LINE" != x ; then
5235                             eval "DEFAULT_$LINE"
5236                           else
5237                             no_cache=1
5238                           fi
5239
5240                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5241
5242 fi;
5243
5244           eval "$ac_cv_use_mimetype"
5245           if test "$no_cache" != 1; then
5246             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5247           fi
5248
5249           if test "$wxUSE_MIMETYPE" = yes; then
5250             echo "$as_me:$LINENO: result: yes" >&5
5251 echo "${ECHO_T}yes" >&6
5252           else
5253             echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5255           fi
5256
5257
5258           enablestring=
5259           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5260 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5261           no_cache=0
5262           # Check whether --enable-mslu or --disable-mslu was given.
5263 if test "${enable_mslu+set}" = set; then
5264   enableval="$enable_mslu"
5265
5266                           if test "$enableval" = yes; then
5267                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5268                           else
5269                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5270                           fi
5271
5272 else
5273
5274                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5275                           if test "x$LINE" != x ; then
5276                             eval "DEFAULT_$LINE"
5277                           else
5278                             no_cache=1
5279                           fi
5280
5281                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5282
5283 fi;
5284
5285           eval "$ac_cv_use_mslu"
5286           if test "$no_cache" != 1; then
5287             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5288           fi
5289
5290           if test "$wxUSE_UNICODE_MSLU" = yes; then
5291             echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6
5293           else
5294             echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296           fi
5297
5298
5299           enablestring=
5300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5301 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5302           no_cache=0
5303           # Check whether --enable-snglinst or --disable-snglinst was given.
5304 if test "${enable_snglinst+set}" = set; then
5305   enableval="$enable_snglinst"
5306
5307                           if test "$enableval" = yes; then
5308                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5309                           else
5310                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5311                           fi
5312
5313 else
5314
5315                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5316                           if test "x$LINE" != x ; then
5317                             eval "DEFAULT_$LINE"
5318                           else
5319                             no_cache=1
5320                           fi
5321
5322                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5323
5324 fi;
5325
5326           eval "$ac_cv_use_snglinst"
5327           if test "$no_cache" != 1; then
5328             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5329           fi
5330
5331           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5332             echo "$as_me:$LINENO: result: yes" >&5
5333 echo "${ECHO_T}yes" >&6
5334           else
5335             echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337           fi
5338
5339
5340           enablestring=
5341           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5342 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5343           no_cache=0
5344           # Check whether --enable-streams or --disable-streams was given.
5345 if test "${enable_streams+set}" = set; then
5346   enableval="$enable_streams"
5347
5348                           if test "$enableval" = yes; then
5349                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5350                           else
5351                             ac_cv_use_streams='wxUSE_STREAMS=no'
5352                           fi
5353
5354 else
5355
5356                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5357                           if test "x$LINE" != x ; then
5358                             eval "DEFAULT_$LINE"
5359                           else
5360                             no_cache=1
5361                           fi
5362
5363                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5364
5365 fi;
5366
5367           eval "$ac_cv_use_streams"
5368           if test "$no_cache" != 1; then
5369             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5370           fi
5371
5372           if test "$wxUSE_STREAMS" = yes; then
5373             echo "$as_me:$LINENO: result: yes" >&5
5374 echo "${ECHO_T}yes" >&6
5375           else
5376             echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5378           fi
5379
5380
5381           enablestring=
5382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5383 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5384           no_cache=0
5385           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5386 if test "${enable_std_iostreams+set}" = set; then
5387   enableval="$enable_std_iostreams"
5388
5389                           if test "$enableval" = yes; then
5390                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5391                           else
5392                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5393                           fi
5394
5395 else
5396
5397                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5398                           if test "x$LINE" != x ; then
5399                             eval "DEFAULT_$LINE"
5400                           else
5401                             no_cache=1
5402                           fi
5403
5404                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5405
5406 fi;
5407
5408           eval "$ac_cv_use_std_iostreams"
5409           if test "$no_cache" != 1; then
5410             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5411           fi
5412
5413           if test "$wxUSE_STD_IOSTREAM" = yes; then
5414             echo "$as_me:$LINENO: result: yes" >&5
5415 echo "${ECHO_T}yes" >&6
5416           else
5417             echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5419           fi
5420
5421
5422           enablestring=
5423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5424 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5425           no_cache=0
5426           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5427 if test "${enable_stopwatch+set}" = set; then
5428   enableval="$enable_stopwatch"
5429
5430                           if test "$enableval" = yes; then
5431                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5432                           else
5433                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5434                           fi
5435
5436 else
5437
5438                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5439                           if test "x$LINE" != x ; then
5440                             eval "DEFAULT_$LINE"
5441                           else
5442                             no_cache=1
5443                           fi
5444
5445                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5446
5447 fi;
5448
5449           eval "$ac_cv_use_stopwatch"
5450           if test "$no_cache" != 1; then
5451             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5452           fi
5453
5454           if test "$wxUSE_STOPWATCH" = yes; then
5455             echo "$as_me:$LINENO: result: yes" >&5
5456 echo "${ECHO_T}yes" >&6
5457           else
5458             echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5460           fi
5461
5462
5463           enablestring=
5464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5465 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5466           no_cache=0
5467           # Check whether --enable-system_options or --disable-system_options was given.
5468 if test "${enable_system_options+set}" = set; then
5469   enableval="$enable_system_options"
5470
5471                           if test "$enableval" = yes; then
5472                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5473                           else
5474                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5475                           fi
5476
5477 else
5478
5479                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5487
5488 fi;
5489
5490           eval "$ac_cv_use_system_options"
5491           if test "$no_cache" != 1; then
5492             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5493           fi
5494
5495           if test "$wxUSE_SYSTEM_OPTIONS" = 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}-textbuf" >&5
5506 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5507           no_cache=0
5508           # Check whether --enable-textbuf or --disable-textbuf was given.
5509 if test "${enable_textbuf+set}" = set; then
5510   enableval="$enable_textbuf"
5511
5512                           if test "$enableval" = yes; then
5513                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5514                           else
5515                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5516                           fi
5517
5518 else
5519
5520                           LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5528
5529 fi;
5530
5531           eval "$ac_cv_use_textbuf"
5532           if test "$no_cache" != 1; then
5533             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5534           fi
5535
5536           if test "$wxUSE_TEXTBUFFER" = 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}-textfile" >&5
5547 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5548           no_cache=0
5549           # Check whether --enable-textfile or --disable-textfile was given.
5550 if test "${enable_textfile+set}" = set; then
5551   enableval="$enable_textfile"
5552
5553                           if test "$enableval" = yes; then
5554                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5555                           else
5556                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5557                           fi
5558
5559 else
5560
5561                           LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5569
5570 fi;
5571
5572           eval "$ac_cv_use_textfile"
5573           if test "$no_cache" != 1; then
5574             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5575           fi
5576
5577           if test "$wxUSE_TEXTFILE" = 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}-timer" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5589           no_cache=0
5590           # Check whether --enable-timer or --disable-timer was given.
5591 if test "${enable_timer+set}" = set; then
5592   enableval="$enable_timer"
5593
5594                           if test "$enableval" = yes; then
5595                             ac_cv_use_timer='wxUSE_TIMER=yes'
5596                           else
5597                             ac_cv_use_timer='wxUSE_TIMER=no'
5598                           fi
5599
5600 else
5601
5602                           LINE=`grep "wxUSE_TIMER" ${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_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5610
5611 fi;
5612
5613           eval "$ac_cv_use_timer"
5614           if test "$no_cache" != 1; then
5615             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5616           fi
5617
5618           if test "$wxUSE_TIMER" = 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}-unicode" >&5
5629 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5630           no_cache=0
5631           # Check whether --enable-unicode or --disable-unicode was given.
5632 if test "${enable_unicode+set}" = set; then
5633   enableval="$enable_unicode"
5634
5635                           if test "$enableval" = yes; then
5636                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5637                           else
5638                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5639                           fi
5640
5641 else
5642
5643                           LINE=`grep "wxUSE_UNICODE" ${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_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5651
5652 fi;
5653
5654           eval "$ac_cv_use_unicode"
5655           if test "$no_cache" != 1; then
5656             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5657           fi
5658
5659           if test "$wxUSE_UNICODE" = 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           enablestring=
5669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5670 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5671           no_cache=0
5672           # Check whether --enable-sound or --disable-sound was given.
5673 if test "${enable_sound+set}" = set; then
5674   enableval="$enable_sound"
5675
5676                           if test "$enableval" = yes; then
5677                             ac_cv_use_sound='wxUSE_SOUND=yes'
5678                           else
5679                             ac_cv_use_sound='wxUSE_SOUND=no'
5680                           fi
5681
5682 else
5683
5684                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5685                           if test "x$LINE" != x ; then
5686                             eval "DEFAULT_$LINE"
5687                           else
5688                             no_cache=1
5689                           fi
5690
5691                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5692
5693 fi;
5694
5695           eval "$ac_cv_use_sound"
5696           if test "$no_cache" != 1; then
5697             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5698           fi
5699
5700           if test "$wxUSE_SOUND" = yes; then
5701             echo "$as_me:$LINENO: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5703           else
5704             echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5706           fi
5707
5708
5709           enablestring=
5710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5711 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5712           no_cache=0
5713           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5714 if test "${enable_wxprintfv+set}" = set; then
5715   enableval="$enable_wxprintfv"
5716
5717                           if test "$enableval" = yes; then
5718                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5719                           else
5720                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5721                           fi
5722
5723 else
5724
5725                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5726                           if test "x$LINE" != x ; then
5727                             eval "DEFAULT_$LINE"
5728                           else
5729                             no_cache=1
5730                           fi
5731
5732                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5733
5734 fi;
5735
5736           eval "$ac_cv_use_wxprintfv"
5737           if test "$no_cache" != 1; then
5738             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5739           fi
5740
5741           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5742             echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6
5744           else
5745             echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5747           fi
5748
5749
5750           enablestring=
5751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5752 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5753           no_cache=0
5754           # Check whether --enable-zipstream or --disable-zipstream was given.
5755 if test "${enable_zipstream+set}" = set; then
5756   enableval="$enable_zipstream"
5757
5758                           if test "$enableval" = yes; then
5759                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5760                           else
5761                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5762                           fi
5763
5764 else
5765
5766                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5767                           if test "x$LINE" != x ; then
5768                             eval "DEFAULT_$LINE"
5769                           else
5770                             no_cache=1
5771                           fi
5772
5773                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5774
5775 fi;
5776
5777           eval "$ac_cv_use_zipstream"
5778           if test "$no_cache" != 1; then
5779             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5780           fi
5781
5782           if test "$wxUSE_ZIPSTREAM" = yes; then
5783             echo "$as_me:$LINENO: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6
5785           else
5786             echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5788           fi
5789
5790
5791           enablestring=
5792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5793 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5794           no_cache=0
5795           # Check whether --enable-gzstream or --disable-gzstream was given.
5796 if test "${enable_gzstream+set}" = set; then
5797   enableval="$enable_gzstream"
5798
5799                           if test "$enableval" = yes; then
5800                             ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5801                           else
5802                             ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5803                           fi
5804
5805 else
5806
5807                           LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5808                           if test "x$LINE" != x ; then
5809                             eval "DEFAULT_$LINE"
5810                           else
5811                             no_cache=1
5812                           fi
5813
5814                           ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5815
5816 fi;
5817
5818           eval "$ac_cv_use_gzstream"
5819           if test "$no_cache" != 1; then
5820             echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5821           fi
5822
5823           if test "$wxUSE_GZSTREAM" = yes; then
5824             echo "$as_me:$LINENO: result: yes" >&5
5825 echo "${ECHO_T}yes" >&6
5826           else
5827             echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829           fi
5830
5831
5832
5833           enablestring=
5834           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5835 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5836           no_cache=0
5837           # Check whether --enable-url or --disable-url was given.
5838 if test "${enable_url+set}" = set; then
5839   enableval="$enable_url"
5840
5841                           if test "$enableval" = yes; then
5842                             ac_cv_use_url='wxUSE_URL=yes'
5843                           else
5844                             ac_cv_use_url='wxUSE_URL=no'
5845                           fi
5846
5847 else
5848
5849                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5850                           if test "x$LINE" != x ; then
5851                             eval "DEFAULT_$LINE"
5852                           else
5853                             no_cache=1
5854                           fi
5855
5856                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5857
5858 fi;
5859
5860           eval "$ac_cv_use_url"
5861           if test "$no_cache" != 1; then
5862             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5863           fi
5864
5865           if test "$wxUSE_URL" = yes; then
5866             echo "$as_me:$LINENO: result: yes" >&5
5867 echo "${ECHO_T}yes" >&6
5868           else
5869             echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6
5871           fi
5872
5873
5874           enablestring=
5875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5876 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5877           no_cache=0
5878           # Check whether --enable-protocol or --disable-protocol was given.
5879 if test "${enable_protocol+set}" = set; then
5880   enableval="$enable_protocol"
5881
5882                           if test "$enableval" = yes; then
5883                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5884                           else
5885                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5886                           fi
5887
5888 else
5889
5890                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5891                           if test "x$LINE" != x ; then
5892                             eval "DEFAULT_$LINE"
5893                           else
5894                             no_cache=1
5895                           fi
5896
5897                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5898
5899 fi;
5900
5901           eval "$ac_cv_use_protocol"
5902           if test "$no_cache" != 1; then
5903             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5904           fi
5905
5906           if test "$wxUSE_PROTOCOL" = yes; then
5907             echo "$as_me:$LINENO: result: yes" >&5
5908 echo "${ECHO_T}yes" >&6
5909           else
5910             echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6
5912           fi
5913
5914
5915           enablestring=
5916           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5917 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5918           no_cache=0
5919           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5920 if test "${enable_protocol_http+set}" = set; then
5921   enableval="$enable_protocol_http"
5922
5923                           if test "$enableval" = yes; then
5924                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5925                           else
5926                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5927                           fi
5928
5929 else
5930
5931                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5932                           if test "x$LINE" != x ; then
5933                             eval "DEFAULT_$LINE"
5934                           else
5935                             no_cache=1
5936                           fi
5937
5938                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5939
5940 fi;
5941
5942           eval "$ac_cv_use_protocol_http"
5943           if test "$no_cache" != 1; then
5944             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5945           fi
5946
5947           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5948             echo "$as_me:$LINENO: result: yes" >&5
5949 echo "${ECHO_T}yes" >&6
5950           else
5951             echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6
5953           fi
5954
5955
5956           enablestring=
5957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5958 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5959           no_cache=0
5960           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5961 if test "${enable_protocol_ftp+set}" = set; then
5962   enableval="$enable_protocol_ftp"
5963
5964                           if test "$enableval" = yes; then
5965                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5966                           else
5967                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5968                           fi
5969
5970 else
5971
5972                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5973                           if test "x$LINE" != x ; then
5974                             eval "DEFAULT_$LINE"
5975                           else
5976                             no_cache=1
5977                           fi
5978
5979                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5980
5981 fi;
5982
5983           eval "$ac_cv_use_protocol_ftp"
5984           if test "$no_cache" != 1; then
5985             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5986           fi
5987
5988           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5989             echo "$as_me:$LINENO: result: yes" >&5
5990 echo "${ECHO_T}yes" >&6
5991           else
5992             echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6
5994           fi
5995
5996
5997           enablestring=
5998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5999 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6000           no_cache=0
6001           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6002 if test "${enable_protocol_file+set}" = set; then
6003   enableval="$enable_protocol_file"
6004
6005                           if test "$enableval" = yes; then
6006                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6007                           else
6008                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6009                           fi
6010
6011 else
6012
6013                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6014                           if test "x$LINE" != x ; then
6015                             eval "DEFAULT_$LINE"
6016                           else
6017                             no_cache=1
6018                           fi
6019
6020                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6021
6022 fi;
6023
6024           eval "$ac_cv_use_protocol_file"
6025           if test "$no_cache" != 1; then
6026             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6027           fi
6028
6029           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6030             echo "$as_me:$LINENO: result: yes" >&5
6031 echo "${ECHO_T}yes" >&6
6032           else
6033             echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6035           fi
6036
6037
6038
6039
6040
6041           enablestring=
6042           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6043 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6044           no_cache=0
6045           # Check whether --enable-threads or --disable-threads was given.
6046 if test "${enable_threads+set}" = set; then
6047   enableval="$enable_threads"
6048
6049                           if test "$enableval" = yes; then
6050                             ac_cv_use_threads='wxUSE_THREADS=yes'
6051                           else
6052                             ac_cv_use_threads='wxUSE_THREADS=no'
6053                           fi
6054
6055 else
6056
6057                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6058                           if test "x$LINE" != x ; then
6059                             eval "DEFAULT_$LINE"
6060                           else
6061                             no_cache=1
6062                           fi
6063
6064                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6065
6066 fi;
6067
6068           eval "$ac_cv_use_threads"
6069           if test "$no_cache" != 1; then
6070             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6071           fi
6072
6073           if test "$wxUSE_THREADS" = yes; then
6074             echo "$as_me:$LINENO: result: yes" >&5
6075 echo "${ECHO_T}yes" >&6
6076           else
6077             echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6079           fi
6080
6081
6082 if test "$wxUSE_GUI" = "yes"; then
6083
6084
6085
6086           enablestring=
6087           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6088 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6089           no_cache=0
6090           # Check whether --enable-docview or --disable-docview was given.
6091 if test "${enable_docview+set}" = set; then
6092   enableval="$enable_docview"
6093
6094                           if test "$enableval" = yes; then
6095                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6096                           else
6097                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6098                           fi
6099
6100 else
6101
6102                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6103                           if test "x$LINE" != x ; then
6104                             eval "DEFAULT_$LINE"
6105                           else
6106                             no_cache=1
6107                           fi
6108
6109                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6110
6111 fi;
6112
6113           eval "$ac_cv_use_docview"
6114           if test "$no_cache" != 1; then
6115             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6116           fi
6117
6118           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6119             echo "$as_me:$LINENO: result: yes" >&5
6120 echo "${ECHO_T}yes" >&6
6121           else
6122             echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6
6124           fi
6125
6126
6127           enablestring=
6128           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6129 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6130           no_cache=0
6131           # Check whether --enable-help or --disable-help was given.
6132 if test "${enable_help+set}" = set; then
6133   enableval="$enable_help"
6134
6135                           if test "$enableval" = yes; then
6136                             ac_cv_use_help='wxUSE_HELP=yes'
6137                           else
6138                             ac_cv_use_help='wxUSE_HELP=no'
6139                           fi
6140
6141 else
6142
6143                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6144                           if test "x$LINE" != x ; then
6145                             eval "DEFAULT_$LINE"
6146                           else
6147                             no_cache=1
6148                           fi
6149
6150                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6151
6152 fi;
6153
6154           eval "$ac_cv_use_help"
6155           if test "$no_cache" != 1; then
6156             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6157           fi
6158
6159           if test "$wxUSE_HELP" = yes; then
6160             echo "$as_me:$LINENO: result: yes" >&5
6161 echo "${ECHO_T}yes" >&6
6162           else
6163             echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6165           fi
6166
6167
6168           enablestring=
6169           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6170 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6171           no_cache=0
6172           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6173 if test "${enable_mshtmlhelp+set}" = set; then
6174   enableval="$enable_mshtmlhelp"
6175
6176                           if test "$enableval" = yes; then
6177                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6178                           else
6179                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6180                           fi
6181
6182 else
6183
6184                           LINE=`grep "wxUSE_MS_HTML_HELP" ${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_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6192
6193 fi;
6194
6195           eval "$ac_cv_use_mshtmlhelp"
6196           if test "$no_cache" != 1; then
6197             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6198           fi
6199
6200           if test "$wxUSE_MS_HTML_HELP" = 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           enablestring=
6210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6211 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6212           no_cache=0
6213           # Check whether --enable-html or --disable-html was given.
6214 if test "${enable_html+set}" = set; then
6215   enableval="$enable_html"
6216
6217                           if test "$enableval" = yes; then
6218                             ac_cv_use_html='wxUSE_HTML=yes'
6219                           else
6220                             ac_cv_use_html='wxUSE_HTML=no'
6221                           fi
6222
6223 else
6224
6225                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6226                           if test "x$LINE" != x ; then
6227                             eval "DEFAULT_$LINE"
6228                           else
6229                             no_cache=1
6230                           fi
6231
6232                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6233
6234 fi;
6235
6236           eval "$ac_cv_use_html"
6237           if test "$no_cache" != 1; then
6238             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6239           fi
6240
6241           if test "$wxUSE_HTML" = yes; then
6242             echo "$as_me:$LINENO: result: yes" >&5
6243 echo "${ECHO_T}yes" >&6
6244           else
6245             echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6247           fi
6248
6249
6250           enablestring=
6251           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6252 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6253           no_cache=0
6254           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6255 if test "${enable_htmlhelp+set}" = set; then
6256   enableval="$enable_htmlhelp"
6257
6258                           if test "$enableval" = yes; then
6259                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6260                           else
6261                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6262                           fi
6263
6264 else
6265
6266                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6267                           if test "x$LINE" != x ; then
6268                             eval "DEFAULT_$LINE"
6269                           else
6270                             no_cache=1
6271                           fi
6272
6273                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6274
6275 fi;
6276
6277           eval "$ac_cv_use_htmlhelp"
6278           if test "$no_cache" != 1; then
6279             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6280           fi
6281
6282           if test "$wxUSE_WXHTML_HELP" = yes; then
6283             echo "$as_me:$LINENO: result: yes" >&5
6284 echo "${ECHO_T}yes" >&6
6285           else
6286             echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6288           fi
6289
6290
6291           enablestring=
6292           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6293 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6294           no_cache=0
6295           # Check whether --enable-constraints or --disable-constraints was given.
6296 if test "${enable_constraints+set}" = set; then
6297   enableval="$enable_constraints"
6298
6299                           if test "$enableval" = yes; then
6300                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6301                           else
6302                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6303                           fi
6304
6305 else
6306
6307                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6308                           if test "x$LINE" != x ; then
6309                             eval "DEFAULT_$LINE"
6310                           else
6311                             no_cache=1
6312                           fi
6313
6314                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6315
6316 fi;
6317
6318           eval "$ac_cv_use_constraints"
6319           if test "$no_cache" != 1; then
6320             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6321           fi
6322
6323           if test "$wxUSE_CONSTRAINTS" = yes; then
6324             echo "$as_me:$LINENO: result: yes" >&5
6325 echo "${ECHO_T}yes" >&6
6326           else
6327             echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6329           fi
6330
6331
6332           enablestring=
6333           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6334 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6335           no_cache=0
6336           # Check whether --enable-printarch or --disable-printarch was given.
6337 if test "${enable_printarch+set}" = set; then
6338   enableval="$enable_printarch"
6339
6340                           if test "$enableval" = yes; then
6341                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6342                           else
6343                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6344                           fi
6345
6346 else
6347
6348                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6349                           if test "x$LINE" != x ; then
6350                             eval "DEFAULT_$LINE"
6351                           else
6352                             no_cache=1
6353                           fi
6354
6355                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6356
6357 fi;
6358
6359           eval "$ac_cv_use_printarch"
6360           if test "$no_cache" != 1; then
6361             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6362           fi
6363
6364           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6365             echo "$as_me:$LINENO: result: yes" >&5
6366 echo "${ECHO_T}yes" >&6
6367           else
6368             echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6
6370           fi
6371
6372
6373           enablestring=
6374           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6375 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6376           no_cache=0
6377           # Check whether --enable-mdi or --disable-mdi was given.
6378 if test "${enable_mdi+set}" = set; then
6379   enableval="$enable_mdi"
6380
6381                           if test "$enableval" = yes; then
6382                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6383                           else
6384                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6385                           fi
6386
6387 else
6388
6389                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6390                           if test "x$LINE" != x ; then
6391                             eval "DEFAULT_$LINE"
6392                           else
6393                             no_cache=1
6394                           fi
6395
6396                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6397
6398 fi;
6399
6400           eval "$ac_cv_use_mdi"
6401           if test "$no_cache" != 1; then
6402             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6403           fi
6404
6405           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6406             echo "$as_me:$LINENO: result: yes" >&5
6407 echo "${ECHO_T}yes" >&6
6408           else
6409             echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6411           fi
6412
6413
6414           enablestring=
6415           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6416 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6417           no_cache=0
6418           # Check whether --enable-loggui or --disable-loggui was given.
6419 if test "${enable_loggui+set}" = set; then
6420   enableval="$enable_loggui"
6421
6422                           if test "$enableval" = yes; then
6423                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6424                           else
6425                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6426                           fi
6427
6428 else
6429
6430                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6431                           if test "x$LINE" != x ; then
6432                             eval "DEFAULT_$LINE"
6433                           else
6434                             no_cache=1
6435                           fi
6436
6437                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6438
6439 fi;
6440
6441           eval "$ac_cv_use_loggui"
6442           if test "$no_cache" != 1; then
6443             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6444           fi
6445
6446           if test "$wxUSE_LOGGUI" = yes; then
6447             echo "$as_me:$LINENO: result: yes" >&5
6448 echo "${ECHO_T}yes" >&6
6449           else
6450             echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6
6452           fi
6453
6454
6455           enablestring=
6456           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6457 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6458           no_cache=0
6459           # Check whether --enable-logwin or --disable-logwin was given.
6460 if test "${enable_logwin+set}" = set; then
6461   enableval="$enable_logwin"
6462
6463                           if test "$enableval" = yes; then
6464                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6465                           else
6466                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6467                           fi
6468
6469 else
6470
6471                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6472                           if test "x$LINE" != x ; then
6473                             eval "DEFAULT_$LINE"
6474                           else
6475                             no_cache=1
6476                           fi
6477
6478                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6479
6480 fi;
6481
6482           eval "$ac_cv_use_logwin"
6483           if test "$no_cache" != 1; then
6484             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6485           fi
6486
6487           if test "$wxUSE_LOGWINDOW" = yes; then
6488             echo "$as_me:$LINENO: result: yes" >&5
6489 echo "${ECHO_T}yes" >&6
6490           else
6491             echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6493           fi
6494
6495
6496           enablestring=
6497           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6498 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6499           no_cache=0
6500           # Check whether --enable-logdialog or --disable-logdialog was given.
6501 if test "${enable_logdialog+set}" = set; then
6502   enableval="$enable_logdialog"
6503
6504                           if test "$enableval" = yes; then
6505                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6506                           else
6507                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6508                           fi
6509
6510 else
6511
6512                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6513                           if test "x$LINE" != x ; then
6514                             eval "DEFAULT_$LINE"
6515                           else
6516                             no_cache=1
6517                           fi
6518
6519                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6520
6521 fi;
6522
6523           eval "$ac_cv_use_logdialog"
6524           if test "$no_cache" != 1; then
6525             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6526           fi
6527
6528           if test "$wxUSE_LOGDIALOG" = yes; then
6529             echo "$as_me:$LINENO: result: yes" >&5
6530 echo "${ECHO_T}yes" >&6
6531           else
6532             echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6
6534           fi
6535
6536
6537
6538           enablestring=
6539           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6540 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6541           no_cache=0
6542           # Check whether --enable-postscript or --disable-postscript was given.
6543 if test "${enable_postscript+set}" = set; then
6544   enableval="$enable_postscript"
6545
6546                           if test "$enableval" = yes; then
6547                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6548                           else
6549                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6550                           fi
6551
6552 else
6553
6554                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6555                           if test "x$LINE" != x ; then
6556                             eval "DEFAULT_$LINE"
6557                           else
6558                             no_cache=1
6559                           fi
6560
6561                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6562
6563 fi;
6564
6565           eval "$ac_cv_use_postscript"
6566           if test "$no_cache" != 1; then
6567             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6568           fi
6569
6570           if test "$wxUSE_POSTSCRIPT" = yes; then
6571             echo "$as_me:$LINENO: result: yes" >&5
6572 echo "${ECHO_T}yes" >&6
6573           else
6574             echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6
6576           fi
6577
6578
6579
6580
6581
6582           enablestring=
6583           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6584 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6585           no_cache=0
6586           # Check whether --enable-prologio or --disable-prologio was given.
6587 if test "${enable_prologio+set}" = set; then
6588   enableval="$enable_prologio"
6589
6590                           if test "$enableval" = yes; then
6591                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6592                           else
6593                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6594                           fi
6595
6596 else
6597
6598                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6599                           if test "x$LINE" != x ; then
6600                             eval "DEFAULT_$LINE"
6601                           else
6602                             no_cache=1
6603                           fi
6604
6605                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6606
6607 fi;
6608
6609           eval "$ac_cv_use_prologio"
6610           if test "$no_cache" != 1; then
6611             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6612           fi
6613
6614           if test "$wxUSE_PROLOGIO" = yes; then
6615             echo "$as_me:$LINENO: result: yes" >&5
6616 echo "${ECHO_T}yes" >&6
6617           else
6618             echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6
6620           fi
6621
6622
6623           enablestring=
6624           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6625 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6626           no_cache=0
6627           # Check whether --enable-resources or --disable-resources was given.
6628 if test "${enable_resources+set}" = set; then
6629   enableval="$enable_resources"
6630
6631                           if test "$enableval" = yes; then
6632                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6633                           else
6634                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6635                           fi
6636
6637 else
6638
6639                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6640                           if test "x$LINE" != x ; then
6641                             eval "DEFAULT_$LINE"
6642                           else
6643                             no_cache=1
6644                           fi
6645
6646                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6647
6648 fi;
6649
6650           eval "$ac_cv_use_resources"
6651           if test "$no_cache" != 1; then
6652             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6653           fi
6654
6655           if test "$wxUSE_RESOURCES" = yes; then
6656             echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658           else
6659             echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6
6661           fi
6662
6663
6664
6665
6666           enablestring=
6667           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6668 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6669           no_cache=0
6670           # Check whether --enable-clipboard or --disable-clipboard was given.
6671 if test "${enable_clipboard+set}" = set; then
6672   enableval="$enable_clipboard"
6673
6674                           if test "$enableval" = yes; then
6675                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6676                           else
6677                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6678                           fi
6679
6680 else
6681
6682                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6683                           if test "x$LINE" != x ; then
6684                             eval "DEFAULT_$LINE"
6685                           else
6686                             no_cache=1
6687                           fi
6688
6689                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6690
6691 fi;
6692
6693           eval "$ac_cv_use_clipboard"
6694           if test "$no_cache" != 1; then
6695             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6696           fi
6697
6698           if test "$wxUSE_CLIPBOARD" = yes; then
6699             echo "$as_me:$LINENO: result: yes" >&5
6700 echo "${ECHO_T}yes" >&6
6701           else
6702             echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6
6704           fi
6705
6706
6707           enablestring=
6708           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6709 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6710           no_cache=0
6711           # Check whether --enable-dnd or --disable-dnd was given.
6712 if test "${enable_dnd+set}" = set; then
6713   enableval="$enable_dnd"
6714
6715                           if test "$enableval" = yes; then
6716                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6717                           else
6718                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6719                           fi
6720
6721 else
6722
6723                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6724                           if test "x$LINE" != x ; then
6725                             eval "DEFAULT_$LINE"
6726                           else
6727                             no_cache=1
6728                           fi
6729
6730                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6731
6732 fi;
6733
6734           eval "$ac_cv_use_dnd"
6735           if test "$no_cache" != 1; then
6736             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6737           fi
6738
6739           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6740             echo "$as_me:$LINENO: result: yes" >&5
6741 echo "${ECHO_T}yes" >&6
6742           else
6743             echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6
6745           fi
6746
6747
6748           enablestring=
6749           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6750 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6751           no_cache=0
6752           # Check whether --enable-metafile or --disable-metafile was given.
6753 if test "${enable_metafile+set}" = set; then
6754   enableval="$enable_metafile"
6755
6756                           if test "$enableval" = yes; then
6757                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6758                           else
6759                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6760                           fi
6761
6762 else
6763
6764                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6765                           if test "x$LINE" != x ; then
6766                             eval "DEFAULT_$LINE"
6767                           else
6768                             no_cache=1
6769                           fi
6770
6771                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6772
6773 fi;
6774
6775           eval "$ac_cv_use_metafile"
6776           if test "$no_cache" != 1; then
6777             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6778           fi
6779
6780           if test "$wxUSE_METAFILE" = yes; then
6781             echo "$as_me:$LINENO: result: yes" >&5
6782 echo "${ECHO_T}yes" >&6
6783           else
6784             echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6
6786           fi
6787
6788
6789
6790
6791
6792           enablestring=
6793           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6794 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6795           no_cache=0
6796           # Check whether --enable-controls or --disable-controls was given.
6797 if test "${enable_controls+set}" = set; then
6798   enableval="$enable_controls"
6799
6800                           if test "$enableval" = yes; then
6801                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6802                           else
6803                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6804                           fi
6805
6806 else
6807
6808                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6809                           if test "x$LINE" != x ; then
6810                             eval "DEFAULT_$LINE"
6811                           else
6812                             no_cache=1
6813                           fi
6814
6815                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6816
6817 fi;
6818
6819           eval "$ac_cv_use_controls"
6820           if test "$no_cache" != 1; then
6821             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6822           fi
6823
6824           if test "$wxUSE_CONTROLS" = yes; then
6825             echo "$as_me:$LINENO: result: yes" >&5
6826 echo "${ECHO_T}yes" >&6
6827           else
6828             echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6
6830           fi
6831
6832
6833 if test "$wxUSE_CONTROLS" = "yes"; then
6834   DEFAULT_wxUSE_ACCEL=yes
6835   DEFAULT_wxUSE_BMPBUTTON=yes
6836   DEFAULT_wxUSE_BUTTON=yes
6837   DEFAULT_wxUSE_CALCTRL=no
6838   DEFAULT_wxUSE_CARET=yes
6839   DEFAULT_wxUSE_COMBOBOX=yes
6840   DEFAULT_wxUSE_CHECKBOX=yes
6841   DEFAULT_wxUSE_CHECKLISTBOX=yes
6842   DEFAULT_wxUSE_CHOICE=yes
6843   DEFAULT_wxUSE_GAUGE=yes
6844   DEFAULT_wxUSE_GRID=yes
6845   DEFAULT_wxUSE_IMAGLIST=yes
6846   DEFAULT_wxUSE_LISTBOOK=yes
6847   DEFAULT_wxUSE_LISTBOX=yes
6848   DEFAULT_wxUSE_LISTCTRL=yes
6849   DEFAULT_wxUSE_NOTEBOOK=yes
6850   DEFAULT_wxUSE_RADIOBOX=yes
6851   DEFAULT_wxUSE_RADIOBTN=yes
6852   DEFAULT_wxUSE_SASH=yes
6853   DEFAULT_wxUSE_SCROLLBAR=yes
6854   DEFAULT_wxUSE_SLIDER=yes
6855   DEFAULT_wxUSE_SPINBTN=yes
6856   DEFAULT_wxUSE_SPINCTRL=yes
6857   DEFAULT_wxUSE_SPLITTER=yes
6858   DEFAULT_wxUSE_STATBMP=yes
6859   DEFAULT_wxUSE_STATBOX=yes
6860   DEFAULT_wxUSE_STATLINE=yes
6861   DEFAULT_wxUSE_STATUSBAR=yes
6862   DEFAULT_wxUSE_TAB_DIALOG=yes
6863   DEFAULT_wxUSE_TOGGLEBTN=yes
6864   DEFAULT_wxUSE_TOOLBAR=yes
6865   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6866   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6867   DEFAULT_wxUSE_TOOLTIPS=yes
6868   DEFAULT_wxUSE_TREECTRL=yes
6869   DEFAULT_wxUSE_POPUPWIN=yes
6870   DEFAULT_wxUSE_TIPWINDOW=yes
6871 elif test "$wxUSE_CONTROLS" = "no"; then
6872   DEFAULT_wxUSE_ACCEL=no
6873   DEFAULT_wxUSE_BMPBUTTON=no
6874   DEFAULT_wxUSE_BUTTON=no
6875   DEFAULT_wxUSE_CALCTRL=no
6876   DEFAULT_wxUSE_CARET=no
6877   DEFAULT_wxUSE_COMBOBOX=no
6878   DEFAULT_wxUSE_CHECKBOX=no
6879   DEFAULT_wxUSE_CHECKLISTBOX=no
6880   DEFAULT_wxUSE_CHOICE=no
6881   DEFAULT_wxUSE_GAUGE=no
6882   DEFAULT_wxUSE_GRID=no
6883   DEFAULT_wxUSE_IMAGLIST=no
6884   DEFAULT_wxUSE_LISTBOOK=no
6885   DEFAULT_wxUSE_LISTBOX=no
6886   DEFAULT_wxUSE_LISTCTRL=no
6887   DEFAULT_wxUSE_NOTEBOOK=no
6888   DEFAULT_wxUSE_RADIOBOX=no
6889   DEFAULT_wxUSE_RADIOBTN=no
6890   DEFAULT_wxUSE_SASH=no
6891   DEFAULT_wxUSE_SCROLLBAR=no
6892   DEFAULT_wxUSE_SLIDER=no
6893   DEFAULT_wxUSE_SPINBTN=no
6894   DEFAULT_wxUSE_SPINCTRL=no
6895   DEFAULT_wxUSE_SPLITTER=no
6896   DEFAULT_wxUSE_STATBMP=no
6897   DEFAULT_wxUSE_STATBOX=no
6898   DEFAULT_wxUSE_STATLINE=no
6899   DEFAULT_wxUSE_STATUSBAR=no
6900   DEFAULT_wxUSE_TAB_DIALOG=no
6901   DEFAULT_wxUSE_TOGGLEBTN=no
6902   DEFAULT_wxUSE_TOOLBAR=no
6903   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6904   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6905   DEFAULT_wxUSE_TOOLTIPS=no
6906   DEFAULT_wxUSE_TREECTRL=no
6907   DEFAULT_wxUSE_POPUPWIN=no
6908   DEFAULT_wxUSE_TIPWINDOW=no
6909 fi
6910
6911 ## FIXME: This is a blatant hack
6912 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6913   wxUSE_PRINTING_ARCHITECTURE=no
6914   wxUSE_DRAG_AND_DROP=no
6915   # Generic notebook requires tab dialog
6916   DEFAULT_wxUSE_TABDIALOG=yes
6917   DEFAULT_wxUSE_SCROLLBAR=no
6918   DEFAULT_wxUSE_TOOLTIPS=no
6919   DEFAULT_wxUSE_DRAGIMAGE=no
6920 fi
6921
6922
6923           enablestring=
6924           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6925 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6926           no_cache=0
6927           # Check whether --enable-accel or --disable-accel was given.
6928 if test "${enable_accel+set}" = set; then
6929   enableval="$enable_accel"
6930
6931                           if test "$enableval" = yes; then
6932                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6933                           else
6934                             ac_cv_use_accel='wxUSE_ACCEL=no'
6935                           fi
6936
6937 else
6938
6939                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6940                           if test "x$LINE" != x ; then
6941                             eval "DEFAULT_$LINE"
6942                           else
6943                             no_cache=1
6944                           fi
6945
6946                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6947
6948 fi;
6949
6950           eval "$ac_cv_use_accel"
6951           if test "$no_cache" != 1; then
6952             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6953           fi
6954
6955           if test "$wxUSE_ACCEL" = yes; then
6956             echo "$as_me:$LINENO: result: yes" >&5
6957 echo "${ECHO_T}yes" >&6
6958           else
6959             echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6
6961           fi
6962
6963
6964           enablestring=
6965           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6966 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6967           no_cache=0
6968           # Check whether --enable-button or --disable-button was given.
6969 if test "${enable_button+set}" = set; then
6970   enableval="$enable_button"
6971
6972                           if test "$enableval" = yes; then
6973                             ac_cv_use_button='wxUSE_BUTTON=yes'
6974                           else
6975                             ac_cv_use_button='wxUSE_BUTTON=no'
6976                           fi
6977
6978 else
6979
6980                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6981                           if test "x$LINE" != x ; then
6982                             eval "DEFAULT_$LINE"
6983                           else
6984                             no_cache=1
6985                           fi
6986
6987                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6988
6989 fi;
6990
6991           eval "$ac_cv_use_button"
6992           if test "$no_cache" != 1; then
6993             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6994           fi
6995
6996           if test "$wxUSE_BUTTON" = yes; then
6997             echo "$as_me:$LINENO: result: yes" >&5
6998 echo "${ECHO_T}yes" >&6
6999           else
7000             echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002           fi
7003
7004
7005           enablestring=
7006           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7007 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7008           no_cache=0
7009           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7010 if test "${enable_bmpbutton+set}" = set; then
7011   enableval="$enable_bmpbutton"
7012
7013                           if test "$enableval" = yes; then
7014                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7015                           else
7016                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7017                           fi
7018
7019 else
7020
7021                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7022                           if test "x$LINE" != x ; then
7023                             eval "DEFAULT_$LINE"
7024                           else
7025                             no_cache=1
7026                           fi
7027
7028                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7029
7030 fi;
7031
7032           eval "$ac_cv_use_bmpbutton"
7033           if test "$no_cache" != 1; then
7034             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7035           fi
7036
7037           if test "$wxUSE_BMPBUTTON" = yes; then
7038             echo "$as_me:$LINENO: result: yes" >&5
7039 echo "${ECHO_T}yes" >&6
7040           else
7041             echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6
7043           fi
7044
7045
7046           enablestring=
7047           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7048 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7049           no_cache=0
7050           # Check whether --enable-calendar or --disable-calendar was given.
7051 if test "${enable_calendar+set}" = set; then
7052   enableval="$enable_calendar"
7053
7054                           if test "$enableval" = yes; then
7055                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7056                           else
7057                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7058                           fi
7059
7060 else
7061
7062                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7063                           if test "x$LINE" != x ; then
7064                             eval "DEFAULT_$LINE"
7065                           else
7066                             no_cache=1
7067                           fi
7068
7069                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7070
7071 fi;
7072
7073           eval "$ac_cv_use_calendar"
7074           if test "$no_cache" != 1; then
7075             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7076           fi
7077
7078           if test "$wxUSE_CALCTRL" = yes; then
7079             echo "$as_me:$LINENO: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7081           else
7082             echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6
7084           fi
7085
7086
7087           enablestring=
7088           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7089 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7090           no_cache=0
7091           # Check whether --enable-caret or --disable-caret was given.
7092 if test "${enable_caret+set}" = set; then
7093   enableval="$enable_caret"
7094
7095                           if test "$enableval" = yes; then
7096                             ac_cv_use_caret='wxUSE_CARET=yes'
7097                           else
7098                             ac_cv_use_caret='wxUSE_CARET=no'
7099                           fi
7100
7101 else
7102
7103                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7104                           if test "x$LINE" != x ; then
7105                             eval "DEFAULT_$LINE"
7106                           else
7107                             no_cache=1
7108                           fi
7109
7110                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7111
7112 fi;
7113
7114           eval "$ac_cv_use_caret"
7115           if test "$no_cache" != 1; then
7116             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7117           fi
7118
7119           if test "$wxUSE_CARET" = yes; then
7120             echo "$as_me:$LINENO: result: yes" >&5
7121 echo "${ECHO_T}yes" >&6
7122           else
7123             echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7125           fi
7126
7127
7128           enablestring=
7129           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7130 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7131           no_cache=0
7132           # Check whether --enable-checkbox or --disable-checkbox was given.
7133 if test "${enable_checkbox+set}" = set; then
7134   enableval="$enable_checkbox"
7135
7136                           if test "$enableval" = yes; then
7137                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7138                           else
7139                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7140                           fi
7141
7142 else
7143
7144                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7145                           if test "x$LINE" != x ; then
7146                             eval "DEFAULT_$LINE"
7147                           else
7148                             no_cache=1
7149                           fi
7150
7151                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7152
7153 fi;
7154
7155           eval "$ac_cv_use_checkbox"
7156           if test "$no_cache" != 1; then
7157             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7158           fi
7159
7160           if test "$wxUSE_CHECKBOX" = yes; then
7161             echo "$as_me:$LINENO: result: yes" >&5
7162 echo "${ECHO_T}yes" >&6
7163           else
7164             echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7166           fi
7167
7168
7169           enablestring=
7170           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7171 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7172           no_cache=0
7173           # Check whether --enable-checklst or --disable-checklst was given.
7174 if test "${enable_checklst+set}" = set; then
7175   enableval="$enable_checklst"
7176
7177                           if test "$enableval" = yes; then
7178                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7179                           else
7180                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7181                           fi
7182
7183 else
7184
7185                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7186                           if test "x$LINE" != x ; then
7187                             eval "DEFAULT_$LINE"
7188                           else
7189                             no_cache=1
7190                           fi
7191
7192                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7193
7194 fi;
7195
7196           eval "$ac_cv_use_checklst"
7197           if test "$no_cache" != 1; then
7198             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7199           fi
7200
7201           if test "$wxUSE_CHECKLST" = yes; then
7202             echo "$as_me:$LINENO: result: yes" >&5
7203 echo "${ECHO_T}yes" >&6
7204           else
7205             echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7207           fi
7208
7209
7210           enablestring=
7211           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7212 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7213           no_cache=0
7214           # Check whether --enable-choice or --disable-choice was given.
7215 if test "${enable_choice+set}" = set; then
7216   enableval="$enable_choice"
7217
7218                           if test "$enableval" = yes; then
7219                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7220                           else
7221                             ac_cv_use_choice='wxUSE_CHOICE=no'
7222                           fi
7223
7224 else
7225
7226                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7227                           if test "x$LINE" != x ; then
7228                             eval "DEFAULT_$LINE"
7229                           else
7230                             no_cache=1
7231                           fi
7232
7233                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7234
7235 fi;
7236
7237           eval "$ac_cv_use_choice"
7238           if test "$no_cache" != 1; then
7239             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7240           fi
7241
7242           if test "$wxUSE_CHOICE" = yes; then
7243             echo "$as_me:$LINENO: result: yes" >&5
7244 echo "${ECHO_T}yes" >&6
7245           else
7246             echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6
7248           fi
7249
7250
7251           enablestring=
7252           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7253 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7254           no_cache=0
7255           # Check whether --enable-combobox or --disable-combobox was given.
7256 if test "${enable_combobox+set}" = set; then
7257   enableval="$enable_combobox"
7258
7259                           if test "$enableval" = yes; then
7260                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7261                           else
7262                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7263                           fi
7264
7265 else
7266
7267                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7268                           if test "x$LINE" != x ; then
7269                             eval "DEFAULT_$LINE"
7270                           else
7271                             no_cache=1
7272                           fi
7273
7274                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7275
7276 fi;
7277
7278           eval "$ac_cv_use_combobox"
7279           if test "$no_cache" != 1; then
7280             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7281           fi
7282
7283           if test "$wxUSE_COMBOBOX" = yes; then
7284             echo "$as_me:$LINENO: result: yes" >&5
7285 echo "${ECHO_T}yes" >&6
7286           else
7287             echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7289           fi
7290
7291
7292           enablestring=
7293           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7294 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7295           no_cache=0
7296           # Check whether --enable-display or --disable-display was given.
7297 if test "${enable_display+set}" = set; then
7298   enableval="$enable_display"
7299
7300                           if test "$enableval" = yes; then
7301                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7302                           else
7303                             ac_cv_use_display='wxUSE_DISPLAY=no'
7304                           fi
7305
7306 else
7307
7308                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7309                           if test "x$LINE" != x ; then
7310                             eval "DEFAULT_$LINE"
7311                           else
7312                             no_cache=1
7313                           fi
7314
7315                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7316
7317 fi;
7318
7319           eval "$ac_cv_use_display"
7320           if test "$no_cache" != 1; then
7321             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7322           fi
7323
7324           if test "$wxUSE_DISPLAY" = yes; then
7325             echo "$as_me:$LINENO: result: yes" >&5
7326 echo "${ECHO_T}yes" >&6
7327           else
7328             echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6
7330           fi
7331
7332
7333           enablestring=
7334           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7335 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7336           no_cache=0
7337           # Check whether --enable-gauge or --disable-gauge was given.
7338 if test "${enable_gauge+set}" = set; then
7339   enableval="$enable_gauge"
7340
7341                           if test "$enableval" = yes; then
7342                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7343                           else
7344                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7345                           fi
7346
7347 else
7348
7349                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7350                           if test "x$LINE" != x ; then
7351                             eval "DEFAULT_$LINE"
7352                           else
7353                             no_cache=1
7354                           fi
7355
7356                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7357
7358 fi;
7359
7360           eval "$ac_cv_use_gauge"
7361           if test "$no_cache" != 1; then
7362             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7363           fi
7364
7365           if test "$wxUSE_GAUGE" = yes; then
7366             echo "$as_me:$LINENO: result: yes" >&5
7367 echo "${ECHO_T}yes" >&6
7368           else
7369             echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6
7371           fi
7372
7373
7374           enablestring=
7375           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7376 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7377           no_cache=0
7378           # Check whether --enable-grid or --disable-grid was given.
7379 if test "${enable_grid+set}" = set; then
7380   enableval="$enable_grid"
7381
7382                           if test "$enableval" = yes; then
7383                             ac_cv_use_grid='wxUSE_GRID=yes'
7384                           else
7385                             ac_cv_use_grid='wxUSE_GRID=no'
7386                           fi
7387
7388 else
7389
7390                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7391                           if test "x$LINE" != x ; then
7392                             eval "DEFAULT_$LINE"
7393                           else
7394                             no_cache=1
7395                           fi
7396
7397                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7398
7399 fi;
7400
7401           eval "$ac_cv_use_grid"
7402           if test "$no_cache" != 1; then
7403             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7404           fi
7405
7406           if test "$wxUSE_GRID" = yes; then
7407             echo "$as_me:$LINENO: result: yes" >&5
7408 echo "${ECHO_T}yes" >&6
7409           else
7410             echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7412           fi
7413
7414
7415           enablestring=
7416           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7417 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7418           no_cache=0
7419           # Check whether --enable-imaglist or --disable-imaglist was given.
7420 if test "${enable_imaglist+set}" = set; then
7421   enableval="$enable_imaglist"
7422
7423                           if test "$enableval" = yes; then
7424                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7425                           else
7426                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7427                           fi
7428
7429 else
7430
7431                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7432                           if test "x$LINE" != x ; then
7433                             eval "DEFAULT_$LINE"
7434                           else
7435                             no_cache=1
7436                           fi
7437
7438                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7439
7440 fi;
7441
7442           eval "$ac_cv_use_imaglist"
7443           if test "$no_cache" != 1; then
7444             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7445           fi
7446
7447           if test "$wxUSE_IMAGLIST" = yes; then
7448             echo "$as_me:$LINENO: result: yes" >&5
7449 echo "${ECHO_T}yes" >&6
7450           else
7451             echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7453           fi
7454
7455
7456           enablestring=
7457           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7458 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7459           no_cache=0
7460           # Check whether --enable-listbook or --disable-listbook was given.
7461 if test "${enable_listbook+set}" = set; then
7462   enableval="$enable_listbook"
7463
7464                           if test "$enableval" = yes; then
7465                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7466                           else
7467                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7468                           fi
7469
7470 else
7471
7472                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7473                           if test "x$LINE" != x ; then
7474                             eval "DEFAULT_$LINE"
7475                           else
7476                             no_cache=1
7477                           fi
7478
7479                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7480
7481 fi;
7482
7483           eval "$ac_cv_use_listbook"
7484           if test "$no_cache" != 1; then
7485             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7486           fi
7487
7488           if test "$wxUSE_LISTBOOK" = yes; then
7489             echo "$as_me:$LINENO: result: yes" >&5
7490 echo "${ECHO_T}yes" >&6
7491           else
7492             echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494           fi
7495
7496
7497           enablestring=
7498           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7499 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7500           no_cache=0
7501           # Check whether --enable-listbox or --disable-listbox was given.
7502 if test "${enable_listbox+set}" = set; then
7503   enableval="$enable_listbox"
7504
7505                           if test "$enableval" = yes; then
7506                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7507                           else
7508                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7509                           fi
7510
7511 else
7512
7513                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7514                           if test "x$LINE" != x ; then
7515                             eval "DEFAULT_$LINE"
7516                           else
7517                             no_cache=1
7518                           fi
7519
7520                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7521
7522 fi;
7523
7524           eval "$ac_cv_use_listbox"
7525           if test "$no_cache" != 1; then
7526             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7527           fi
7528
7529           if test "$wxUSE_LISTBOX" = yes; then
7530             echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7532           else
7533             echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535           fi
7536
7537
7538           enablestring=
7539           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7540 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7541           no_cache=0
7542           # Check whether --enable-listctrl or --disable-listctrl was given.
7543 if test "${enable_listctrl+set}" = set; then
7544   enableval="$enable_listctrl"
7545
7546                           if test "$enableval" = yes; then
7547                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7548                           else
7549                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7550                           fi
7551
7552 else
7553
7554                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7555                           if test "x$LINE" != x ; then
7556                             eval "DEFAULT_$LINE"
7557                           else
7558                             no_cache=1
7559                           fi
7560
7561                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7562
7563 fi;
7564
7565           eval "$ac_cv_use_listctrl"
7566           if test "$no_cache" != 1; then
7567             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7568           fi
7569
7570           if test "$wxUSE_LISTCTRL" = yes; then
7571             echo "$as_me:$LINENO: result: yes" >&5
7572 echo "${ECHO_T}yes" >&6
7573           else
7574             echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576           fi
7577
7578
7579           enablestring=
7580           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7581 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7582           no_cache=0
7583           # Check whether --enable-notebook or --disable-notebook was given.
7584 if test "${enable_notebook+set}" = set; then
7585   enableval="$enable_notebook"
7586
7587                           if test "$enableval" = yes; then
7588                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7589                           else
7590                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7591                           fi
7592
7593 else
7594
7595                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7596                           if test "x$LINE" != x ; then
7597                             eval "DEFAULT_$LINE"
7598                           else
7599                             no_cache=1
7600                           fi
7601
7602                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7603
7604 fi;
7605
7606           eval "$ac_cv_use_notebook"
7607           if test "$no_cache" != 1; then
7608             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7609           fi
7610
7611           if test "$wxUSE_NOTEBOOK" = yes; then
7612             echo "$as_me:$LINENO: result: yes" >&5
7613 echo "${ECHO_T}yes" >&6
7614           else
7615             echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6
7617           fi
7618
7619
7620           enablestring=
7621           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7622 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7623           no_cache=0
7624           # Check whether --enable-radiobox or --disable-radiobox was given.
7625 if test "${enable_radiobox+set}" = set; then
7626   enableval="$enable_radiobox"
7627
7628                           if test "$enableval" = yes; then
7629                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7630                           else
7631                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7632                           fi
7633
7634 else
7635
7636                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7637                           if test "x$LINE" != x ; then
7638                             eval "DEFAULT_$LINE"
7639                           else
7640                             no_cache=1
7641                           fi
7642
7643                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7644
7645 fi;
7646
7647           eval "$ac_cv_use_radiobox"
7648           if test "$no_cache" != 1; then
7649             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7650           fi
7651
7652           if test "$wxUSE_RADIOBOX" = yes; then
7653             echo "$as_me:$LINENO: result: yes" >&5
7654 echo "${ECHO_T}yes" >&6
7655           else
7656             echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7658           fi
7659
7660
7661           enablestring=
7662           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7663 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7664           no_cache=0
7665           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7666 if test "${enable_radiobtn+set}" = set; then
7667   enableval="$enable_radiobtn"
7668
7669                           if test "$enableval" = yes; then
7670                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7671                           else
7672                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7673                           fi
7674
7675 else
7676
7677                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7678                           if test "x$LINE" != x ; then
7679                             eval "DEFAULT_$LINE"
7680                           else
7681                             no_cache=1
7682                           fi
7683
7684                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7685
7686 fi;
7687
7688           eval "$ac_cv_use_radiobtn"
7689           if test "$no_cache" != 1; then
7690             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7691           fi
7692
7693           if test "$wxUSE_RADIOBTN" = yes; then
7694             echo "$as_me:$LINENO: result: yes" >&5
7695 echo "${ECHO_T}yes" >&6
7696           else
7697             echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6
7699           fi
7700
7701
7702           enablestring=
7703           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7704 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7705           no_cache=0
7706           # Check whether --enable-sash or --disable-sash was given.
7707 if test "${enable_sash+set}" = set; then
7708   enableval="$enable_sash"
7709
7710                           if test "$enableval" = yes; then
7711                             ac_cv_use_sash='wxUSE_SASH=yes'
7712                           else
7713                             ac_cv_use_sash='wxUSE_SASH=no'
7714                           fi
7715
7716 else
7717
7718                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7719                           if test "x$LINE" != x ; then
7720                             eval "DEFAULT_$LINE"
7721                           else
7722                             no_cache=1
7723                           fi
7724
7725                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7726
7727 fi;
7728
7729           eval "$ac_cv_use_sash"
7730           if test "$no_cache" != 1; then
7731             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7732           fi
7733
7734           if test "$wxUSE_SASH" = yes; then
7735             echo "$as_me:$LINENO: result: yes" >&5
7736 echo "${ECHO_T}yes" >&6
7737           else
7738             echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6
7740           fi
7741
7742
7743           enablestring=
7744           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7745 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7746           no_cache=0
7747           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7748 if test "${enable_scrollbar+set}" = set; then
7749   enableval="$enable_scrollbar"
7750
7751                           if test "$enableval" = yes; then
7752                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7753                           else
7754                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7755                           fi
7756
7757 else
7758
7759                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7760                           if test "x$LINE" != x ; then
7761                             eval "DEFAULT_$LINE"
7762                           else
7763                             no_cache=1
7764                           fi
7765
7766                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7767
7768 fi;
7769
7770           eval "$ac_cv_use_scrollbar"
7771           if test "$no_cache" != 1; then
7772             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7773           fi
7774
7775           if test "$wxUSE_SCROLLBAR" = yes; then
7776             echo "$as_me:$LINENO: result: yes" >&5
7777 echo "${ECHO_T}yes" >&6
7778           else
7779             echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6
7781           fi
7782
7783
7784           enablestring=
7785           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7786 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7787           no_cache=0
7788           # Check whether --enable-slider or --disable-slider was given.
7789 if test "${enable_slider+set}" = set; then
7790   enableval="$enable_slider"
7791
7792                           if test "$enableval" = yes; then
7793                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7794                           else
7795                             ac_cv_use_slider='wxUSE_SLIDER=no'
7796                           fi
7797
7798 else
7799
7800                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7801                           if test "x$LINE" != x ; then
7802                             eval "DEFAULT_$LINE"
7803                           else
7804                             no_cache=1
7805                           fi
7806
7807                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7808
7809 fi;
7810
7811           eval "$ac_cv_use_slider"
7812           if test "$no_cache" != 1; then
7813             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7814           fi
7815
7816           if test "$wxUSE_SLIDER" = yes; then
7817             echo "$as_me:$LINENO: result: yes" >&5
7818 echo "${ECHO_T}yes" >&6
7819           else
7820             echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6
7822           fi
7823
7824
7825           enablestring=
7826           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7827 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7828           no_cache=0
7829           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7830 if test "${enable_spinbtn+set}" = set; then
7831   enableval="$enable_spinbtn"
7832
7833                           if test "$enableval" = yes; then
7834                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7835                           else
7836                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7837                           fi
7838
7839 else
7840
7841                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7842                           if test "x$LINE" != x ; then
7843                             eval "DEFAULT_$LINE"
7844                           else
7845                             no_cache=1
7846                           fi
7847
7848                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7849
7850 fi;
7851
7852           eval "$ac_cv_use_spinbtn"
7853           if test "$no_cache" != 1; then
7854             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7855           fi
7856
7857           if test "$wxUSE_SPINBTN" = yes; then
7858             echo "$as_me:$LINENO: result: yes" >&5
7859 echo "${ECHO_T}yes" >&6
7860           else
7861             echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7863           fi
7864
7865
7866           enablestring=
7867           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7868 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7869           no_cache=0
7870           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7871 if test "${enable_spinctrl+set}" = set; then
7872   enableval="$enable_spinctrl"
7873
7874                           if test "$enableval" = yes; then
7875                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7876                           else
7877                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7878                           fi
7879
7880 else
7881
7882                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7883                           if test "x$LINE" != x ; then
7884                             eval "DEFAULT_$LINE"
7885                           else
7886                             no_cache=1
7887                           fi
7888
7889                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7890
7891 fi;
7892
7893           eval "$ac_cv_use_spinctrl"
7894           if test "$no_cache" != 1; then
7895             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7896           fi
7897
7898           if test "$wxUSE_SPINCTRL" = yes; then
7899             echo "$as_me:$LINENO: result: yes" >&5
7900 echo "${ECHO_T}yes" >&6
7901           else
7902             echo "$as_me:$LINENO: result: no" >&5
7903 echo "${ECHO_T}no" >&6
7904           fi
7905
7906
7907           enablestring=
7908           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7909 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7910           no_cache=0
7911           # Check whether --enable-splitter or --disable-splitter was given.
7912 if test "${enable_splitter+set}" = set; then
7913   enableval="$enable_splitter"
7914
7915                           if test "$enableval" = yes; then
7916                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7917                           else
7918                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7919                           fi
7920
7921 else
7922
7923                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7924                           if test "x$LINE" != x ; then
7925                             eval "DEFAULT_$LINE"
7926                           else
7927                             no_cache=1
7928                           fi
7929
7930                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7931
7932 fi;
7933
7934           eval "$ac_cv_use_splitter"
7935           if test "$no_cache" != 1; then
7936             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7937           fi
7938
7939           if test "$wxUSE_SPLITTER" = yes; then
7940             echo "$as_me:$LINENO: result: yes" >&5
7941 echo "${ECHO_T}yes" >&6
7942           else
7943             echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7945           fi
7946
7947
7948           enablestring=
7949           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7950 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7951           no_cache=0
7952           # Check whether --enable-statbmp or --disable-statbmp was given.
7953 if test "${enable_statbmp+set}" = set; then
7954   enableval="$enable_statbmp"
7955
7956                           if test "$enableval" = yes; then
7957                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7958                           else
7959                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7960                           fi
7961
7962 else
7963
7964                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7965                           if test "x$LINE" != x ; then
7966                             eval "DEFAULT_$LINE"
7967                           else
7968                             no_cache=1
7969                           fi
7970
7971                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7972
7973 fi;
7974
7975           eval "$ac_cv_use_statbmp"
7976           if test "$no_cache" != 1; then
7977             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7978           fi
7979
7980           if test "$wxUSE_STATBMP" = yes; then
7981             echo "$as_me:$LINENO: result: yes" >&5
7982 echo "${ECHO_T}yes" >&6
7983           else
7984             echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7986           fi
7987
7988
7989           enablestring=
7990           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7991 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7992           no_cache=0
7993           # Check whether --enable-statbox or --disable-statbox was given.
7994 if test "${enable_statbox+set}" = set; then
7995   enableval="$enable_statbox"
7996
7997                           if test "$enableval" = yes; then
7998                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7999                           else
8000                             ac_cv_use_statbox='wxUSE_STATBOX=no'
8001                           fi
8002
8003 else
8004
8005                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8006                           if test "x$LINE" != x ; then
8007                             eval "DEFAULT_$LINE"
8008                           else
8009                             no_cache=1
8010                           fi
8011
8012                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8013
8014 fi;
8015
8016           eval "$ac_cv_use_statbox"
8017           if test "$no_cache" != 1; then
8018             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8019           fi
8020
8021           if test "$wxUSE_STATBOX" = yes; then
8022             echo "$as_me:$LINENO: result: yes" >&5
8023 echo "${ECHO_T}yes" >&6
8024           else
8025             echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6
8027           fi
8028
8029
8030           enablestring=
8031           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8032 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8033           no_cache=0
8034           # Check whether --enable-statline or --disable-statline was given.
8035 if test "${enable_statline+set}" = set; then
8036   enableval="$enable_statline"
8037
8038                           if test "$enableval" = yes; then
8039                             ac_cv_use_statline='wxUSE_STATLINE=yes'
8040                           else
8041                             ac_cv_use_statline='wxUSE_STATLINE=no'
8042                           fi
8043
8044 else
8045
8046                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8047                           if test "x$LINE" != x ; then
8048                             eval "DEFAULT_$LINE"
8049                           else
8050                             no_cache=1
8051                           fi
8052
8053                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8054
8055 fi;
8056
8057           eval "$ac_cv_use_statline"
8058           if test "$no_cache" != 1; then
8059             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8060           fi
8061
8062           if test "$wxUSE_STATLINE" = yes; then
8063             echo "$as_me:$LINENO: result: yes" >&5
8064 echo "${ECHO_T}yes" >&6
8065           else
8066             echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8068           fi
8069
8070
8071           enablestring=
8072           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8073 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8074           no_cache=0
8075           # Check whether --enable-stattext or --disable-stattext was given.
8076 if test "${enable_stattext+set}" = set; then
8077   enableval="$enable_stattext"
8078
8079                           if test "$enableval" = yes; then
8080                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8081                           else
8082                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8083                           fi
8084
8085 else
8086
8087                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8088                           if test "x$LINE" != x ; then
8089                             eval "DEFAULT_$LINE"
8090                           else
8091                             no_cache=1
8092                           fi
8093
8094                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8095
8096 fi;
8097
8098           eval "$ac_cv_use_stattext"
8099           if test "$no_cache" != 1; then
8100             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8101           fi
8102
8103           if test "$wxUSE_STATTEXT" = yes; then
8104             echo "$as_me:$LINENO: result: yes" >&5
8105 echo "${ECHO_T}yes" >&6
8106           else
8107             echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6
8109           fi
8110
8111
8112           enablestring=
8113           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8114 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8115           no_cache=0
8116           # Check whether --enable-statusbar or --disable-statusbar was given.
8117 if test "${enable_statusbar+set}" = set; then
8118   enableval="$enable_statusbar"
8119
8120                           if test "$enableval" = yes; then
8121                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8122                           else
8123                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8124                           fi
8125
8126 else
8127
8128                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8129                           if test "x$LINE" != x ; then
8130                             eval "DEFAULT_$LINE"
8131                           else
8132                             no_cache=1
8133                           fi
8134
8135                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8136
8137 fi;
8138
8139           eval "$ac_cv_use_statusbar"
8140           if test "$no_cache" != 1; then
8141             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8142           fi
8143
8144           if test "$wxUSE_STATUSBAR" = yes; then
8145             echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8147           else
8148             echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150           fi
8151
8152
8153           enablestring=
8154           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8155 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8156           no_cache=0
8157           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8158 if test "${enable_tabdialog+set}" = set; then
8159   enableval="$enable_tabdialog"
8160
8161                           if test "$enableval" = yes; then
8162                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8163                           else
8164                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8165                           fi
8166
8167 else
8168
8169                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8170                           if test "x$LINE" != x ; then
8171                             eval "DEFAULT_$LINE"
8172                           else
8173                             no_cache=1
8174                           fi
8175
8176                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8177
8178 fi;
8179
8180           eval "$ac_cv_use_tabdialog"
8181           if test "$no_cache" != 1; then
8182             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8183           fi
8184
8185           if test "$wxUSE_TABDIALOG" = yes; then
8186             echo "$as_me:$LINENO: result: yes" >&5
8187 echo "${ECHO_T}yes" >&6
8188           else
8189             echo "$as_me:$LINENO: result: no" >&5
8190 echo "${ECHO_T}no" >&6
8191           fi
8192
8193
8194           enablestring=
8195           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8196 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8197           no_cache=0
8198           # Check whether --enable-textctrl or --disable-textctrl was given.
8199 if test "${enable_textctrl+set}" = set; then
8200   enableval="$enable_textctrl"
8201
8202                           if test "$enableval" = yes; then
8203                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8204                           else
8205                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8206                           fi
8207
8208 else
8209
8210                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8211                           if test "x$LINE" != x ; then
8212                             eval "DEFAULT_$LINE"
8213                           else
8214                             no_cache=1
8215                           fi
8216
8217                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8218
8219 fi;
8220
8221           eval "$ac_cv_use_textctrl"
8222           if test "$no_cache" != 1; then
8223             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8224           fi
8225
8226           if test "$wxUSE_TEXTCTRL" = yes; then
8227             echo "$as_me:$LINENO: result: yes" >&5
8228 echo "${ECHO_T}yes" >&6
8229           else
8230             echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8232           fi
8233
8234
8235           enablestring=
8236           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8237 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8238           no_cache=0
8239           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8240 if test "${enable_togglebtn+set}" = set; then
8241   enableval="$enable_togglebtn"
8242
8243                           if test "$enableval" = yes; then
8244                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8245                           else
8246                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8247                           fi
8248
8249 else
8250
8251                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8252                           if test "x$LINE" != x ; then
8253                             eval "DEFAULT_$LINE"
8254                           else
8255                             no_cache=1
8256                           fi
8257
8258                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8259
8260 fi;
8261
8262           eval "$ac_cv_use_togglebtn"
8263           if test "$no_cache" != 1; then
8264             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8265           fi
8266
8267           if test "$wxUSE_TOGGLEBTN" = yes; then
8268             echo "$as_me:$LINENO: result: yes" >&5
8269 echo "${ECHO_T}yes" >&6
8270           else
8271             echo "$as_me:$LINENO: result: no" >&5
8272 echo "${ECHO_T}no" >&6
8273           fi
8274
8275
8276           enablestring=
8277           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8278 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8279           no_cache=0
8280           # Check whether --enable-toolbar or --disable-toolbar was given.
8281 if test "${enable_toolbar+set}" = set; then
8282   enableval="$enable_toolbar"
8283
8284                           if test "$enableval" = yes; then
8285                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8286                           else
8287                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8288                           fi
8289
8290 else
8291
8292                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8293                           if test "x$LINE" != x ; then
8294                             eval "DEFAULT_$LINE"
8295                           else
8296                             no_cache=1
8297                           fi
8298
8299                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8300
8301 fi;
8302
8303           eval "$ac_cv_use_toolbar"
8304           if test "$no_cache" != 1; then
8305             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8306           fi
8307
8308           if test "$wxUSE_TOOLBAR" = yes; then
8309             echo "$as_me:$LINENO: result: yes" >&5
8310 echo "${ECHO_T}yes" >&6
8311           else
8312             echo "$as_me:$LINENO: result: no" >&5
8313 echo "${ECHO_T}no" >&6
8314           fi
8315
8316
8317           enablestring=
8318           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8319 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8320           no_cache=0
8321           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8322 if test "${enable_tbarnative+set}" = set; then
8323   enableval="$enable_tbarnative"
8324
8325                           if test "$enableval" = yes; then
8326                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8327                           else
8328                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8329                           fi
8330
8331 else
8332
8333                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8334                           if test "x$LINE" != x ; then
8335                             eval "DEFAULT_$LINE"
8336                           else
8337                             no_cache=1
8338                           fi
8339
8340                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8341
8342 fi;
8343
8344           eval "$ac_cv_use_tbarnative"
8345           if test "$no_cache" != 1; then
8346             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8347           fi
8348
8349           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8350             echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6
8352           else
8353             echo "$as_me:$LINENO: result: no" >&5
8354 echo "${ECHO_T}no" >&6
8355           fi
8356
8357
8358           enablestring=
8359           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8360 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8361           no_cache=0
8362           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8363 if test "${enable_tbarsmpl+set}" = set; then
8364   enableval="$enable_tbarsmpl"
8365
8366                           if test "$enableval" = yes; then
8367                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8368                           else
8369                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8370                           fi
8371
8372 else
8373
8374                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8375                           if test "x$LINE" != x ; then
8376                             eval "DEFAULT_$LINE"
8377                           else
8378                             no_cache=1
8379                           fi
8380
8381                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8382
8383 fi;
8384
8385           eval "$ac_cv_use_tbarsmpl"
8386           if test "$no_cache" != 1; then
8387             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8388           fi
8389
8390           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8391             echo "$as_me:$LINENO: result: yes" >&5
8392 echo "${ECHO_T}yes" >&6
8393           else
8394             echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6
8396           fi
8397
8398
8399           enablestring=
8400           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8401 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8402           no_cache=0
8403           # Check whether --enable-treectrl or --disable-treectrl was given.
8404 if test "${enable_treectrl+set}" = set; then
8405   enableval="$enable_treectrl"
8406
8407                           if test "$enableval" = yes; then
8408                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8409                           else
8410                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8411                           fi
8412
8413 else
8414
8415                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8416                           if test "x$LINE" != x ; then
8417                             eval "DEFAULT_$LINE"
8418                           else
8419                             no_cache=1
8420                           fi
8421
8422                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8423
8424 fi;
8425
8426           eval "$ac_cv_use_treectrl"
8427           if test "$no_cache" != 1; then
8428             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8429           fi
8430
8431           if test "$wxUSE_TREECTRL" = yes; then
8432             echo "$as_me:$LINENO: result: yes" >&5
8433 echo "${ECHO_T}yes" >&6
8434           else
8435             echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8437           fi
8438
8439
8440           enablestring=
8441           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8442 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8443           no_cache=0
8444           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8445 if test "${enable_tipwindow+set}" = set; then
8446   enableval="$enable_tipwindow"
8447
8448                           if test "$enableval" = yes; then
8449                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8450                           else
8451                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8452                           fi
8453
8454 else
8455
8456                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8457                           if test "x$LINE" != x ; then
8458                             eval "DEFAULT_$LINE"
8459                           else
8460                             no_cache=1
8461                           fi
8462
8463                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8464
8465 fi;
8466
8467           eval "$ac_cv_use_tipwindow"
8468           if test "$no_cache" != 1; then
8469             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8470           fi
8471
8472           if test "$wxUSE_TIPWINDOW" = yes; then
8473             echo "$as_me:$LINENO: result: yes" >&5
8474 echo "${ECHO_T}yes" >&6
8475           else
8476             echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6
8478           fi
8479
8480
8481           enablestring=
8482           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8483 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8484           no_cache=0
8485           # Check whether --enable-popupwin or --disable-popupwin was given.
8486 if test "${enable_popupwin+set}" = set; then
8487   enableval="$enable_popupwin"
8488
8489                           if test "$enableval" = yes; then
8490                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8491                           else
8492                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8493                           fi
8494
8495 else
8496
8497                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8498                           if test "x$LINE" != x ; then
8499                             eval "DEFAULT_$LINE"
8500                           else
8501                             no_cache=1
8502                           fi
8503
8504                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8505
8506 fi;
8507
8508           eval "$ac_cv_use_popupwin"
8509           if test "$no_cache" != 1; then
8510             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8511           fi
8512
8513           if test "$wxUSE_POPUPWIN" = yes; then
8514             echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8516           else
8517             echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8519           fi
8520
8521
8522
8523
8524           enablestring=
8525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8526 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8527           no_cache=0
8528           # Check whether --enable-commondlg or --disable-commondlg was given.
8529 if test "${enable_commondlg+set}" = set; then
8530   enableval="$enable_commondlg"
8531
8532                           if test "$enableval" = yes; then
8533                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8534                           else
8535                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8536                           fi
8537
8538 else
8539
8540                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8541                           if test "x$LINE" != x ; then
8542                             eval "DEFAULT_$LINE"
8543                           else
8544                             no_cache=1
8545                           fi
8546
8547                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8548
8549 fi;
8550
8551           eval "$ac_cv_use_commondlg"
8552           if test "$no_cache" != 1; then
8553             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8554           fi
8555
8556           if test "$wxUSE_COMMONDLGS" = yes; then
8557             echo "$as_me:$LINENO: result: yes" >&5
8558 echo "${ECHO_T}yes" >&6
8559           else
8560             echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8562           fi
8563
8564
8565           enablestring=
8566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8567 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8568           no_cache=0
8569           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8570 if test "${enable_choicedlg+set}" = set; then
8571   enableval="$enable_choicedlg"
8572
8573                           if test "$enableval" = yes; then
8574                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8575                           else
8576                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8577                           fi
8578
8579 else
8580
8581                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8582                           if test "x$LINE" != x ; then
8583                             eval "DEFAULT_$LINE"
8584                           else
8585                             no_cache=1
8586                           fi
8587
8588                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8589
8590 fi;
8591
8592           eval "$ac_cv_use_choicedlg"
8593           if test "$no_cache" != 1; then
8594             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8595           fi
8596
8597           if test "$wxUSE_CHOICEDLG" = yes; then
8598             echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6
8600           else
8601             echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6
8603           fi
8604
8605
8606           enablestring=
8607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8608 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8609           no_cache=0
8610           # Check whether --enable-coldlg or --disable-coldlg was given.
8611 if test "${enable_coldlg+set}" = set; then
8612   enableval="$enable_coldlg"
8613
8614                           if test "$enableval" = yes; then
8615                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8616                           else
8617                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8618                           fi
8619
8620 else
8621
8622                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8623                           if test "x$LINE" != x ; then
8624                             eval "DEFAULT_$LINE"
8625                           else
8626                             no_cache=1
8627                           fi
8628
8629                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8630
8631 fi;
8632
8633           eval "$ac_cv_use_coldlg"
8634           if test "$no_cache" != 1; then
8635             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8636           fi
8637
8638           if test "$wxUSE_COLOURDLG" = yes; then
8639             echo "$as_me:$LINENO: result: yes" >&5
8640 echo "${ECHO_T}yes" >&6
8641           else
8642             echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6
8644           fi
8645
8646
8647           enablestring=
8648           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8649 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8650           no_cache=0
8651           # Check whether --enable-filedlg or --disable-filedlg was given.
8652 if test "${enable_filedlg+set}" = set; then
8653   enableval="$enable_filedlg"
8654
8655                           if test "$enableval" = yes; then
8656                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8657                           else
8658                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8659                           fi
8660
8661 else
8662
8663                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8664                           if test "x$LINE" != x ; then
8665                             eval "DEFAULT_$LINE"
8666                           else
8667                             no_cache=1
8668                           fi
8669
8670                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8671
8672 fi;
8673
8674           eval "$ac_cv_use_filedlg"
8675           if test "$no_cache" != 1; then
8676             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8677           fi
8678
8679           if test "$wxUSE_FILEDLG" = yes; then
8680             echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8682           else
8683             echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6
8685           fi
8686
8687
8688           enablestring=
8689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8690 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8691           no_cache=0
8692           # Check whether --enable-finddlg or --disable-finddlg was given.
8693 if test "${enable_finddlg+set}" = set; then
8694   enableval="$enable_finddlg"
8695
8696                           if test "$enableval" = yes; then
8697                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8698                           else
8699                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8700                           fi
8701
8702 else
8703
8704                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8705                           if test "x$LINE" != x ; then
8706                             eval "DEFAULT_$LINE"
8707                           else
8708                             no_cache=1
8709                           fi
8710
8711                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8712
8713 fi;
8714
8715           eval "$ac_cv_use_finddlg"
8716           if test "$no_cache" != 1; then
8717             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8718           fi
8719
8720           if test "$wxUSE_FINDREPLDLG" = yes; then
8721             echo "$as_me:$LINENO: result: yes" >&5
8722 echo "${ECHO_T}yes" >&6
8723           else
8724             echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726           fi
8727
8728
8729           enablestring=
8730           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8731 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8732           no_cache=0
8733           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8734 if test "${enable_fontdlg+set}" = set; then
8735   enableval="$enable_fontdlg"
8736
8737                           if test "$enableval" = yes; then
8738                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8739                           else
8740                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8741                           fi
8742
8743 else
8744
8745                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8746                           if test "x$LINE" != x ; then
8747                             eval "DEFAULT_$LINE"
8748                           else
8749                             no_cache=1
8750                           fi
8751
8752                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8753
8754 fi;
8755
8756           eval "$ac_cv_use_fontdlg"
8757           if test "$no_cache" != 1; then
8758             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8759           fi
8760
8761           if test "$wxUSE_FONTDLG" = yes; then
8762             echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8764           else
8765             echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8767           fi
8768
8769
8770           enablestring=
8771           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8772 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8773           no_cache=0
8774           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8775 if test "${enable_dirdlg+set}" = set; then
8776   enableval="$enable_dirdlg"
8777
8778                           if test "$enableval" = yes; then
8779                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8780                           else
8781                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8782                           fi
8783
8784 else
8785
8786                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8787                           if test "x$LINE" != x ; then
8788                             eval "DEFAULT_$LINE"
8789                           else
8790                             no_cache=1
8791                           fi
8792
8793                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8794
8795 fi;
8796
8797           eval "$ac_cv_use_dirdlg"
8798           if test "$no_cache" != 1; then
8799             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8800           fi
8801
8802           if test "$wxUSE_DIRDLG" = yes; then
8803             echo "$as_me:$LINENO: result: yes" >&5
8804 echo "${ECHO_T}yes" >&6
8805           else
8806             echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8808           fi
8809
8810
8811           enablestring=
8812           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8813 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8814           no_cache=0
8815           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8816 if test "${enable_msgdlg+set}" = set; then
8817   enableval="$enable_msgdlg"
8818
8819                           if test "$enableval" = yes; then
8820                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8821                           else
8822                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8823                           fi
8824
8825 else
8826
8827                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8828                           if test "x$LINE" != x ; then
8829                             eval "DEFAULT_$LINE"
8830                           else
8831                             no_cache=1
8832                           fi
8833
8834                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8835
8836 fi;
8837
8838           eval "$ac_cv_use_msgdlg"
8839           if test "$no_cache" != 1; then
8840             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8841           fi
8842
8843           if test "$wxUSE_MSGDLG" = yes; then
8844             echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6
8846           else
8847             echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8849           fi
8850
8851
8852           enablestring=
8853           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8854 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8855           no_cache=0
8856           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8857 if test "${enable_numberdlg+set}" = set; then
8858   enableval="$enable_numberdlg"
8859
8860                           if test "$enableval" = yes; then
8861                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8862                           else
8863                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8864                           fi
8865
8866 else
8867
8868                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8869                           if test "x$LINE" != x ; then
8870                             eval "DEFAULT_$LINE"
8871                           else
8872                             no_cache=1
8873                           fi
8874
8875                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8876
8877 fi;
8878
8879           eval "$ac_cv_use_numberdlg"
8880           if test "$no_cache" != 1; then
8881             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8882           fi
8883
8884           if test "$wxUSE_NUMBERDLG" = yes; then
8885             echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8887           else
8888             echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8890           fi
8891
8892
8893           enablestring=
8894           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8895 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8896           no_cache=0
8897           # Check whether --enable-splash or --disable-splash was given.
8898 if test "${enable_splash+set}" = set; then
8899   enableval="$enable_splash"
8900
8901                           if test "$enableval" = yes; then
8902                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8903                           else
8904                             ac_cv_use_splash='wxUSE_SPLASH=no'
8905                           fi
8906
8907 else
8908
8909                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8910                           if test "x$LINE" != x ; then
8911                             eval "DEFAULT_$LINE"
8912                           else
8913                             no_cache=1
8914                           fi
8915
8916                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8917
8918 fi;
8919
8920           eval "$ac_cv_use_splash"
8921           if test "$no_cache" != 1; then
8922             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8923           fi
8924
8925           if test "$wxUSE_SPLASH" = yes; then
8926             echo "$as_me:$LINENO: result: yes" >&5
8927 echo "${ECHO_T}yes" >&6
8928           else
8929             echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8931           fi
8932
8933
8934           enablestring=
8935           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8936 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8937           no_cache=0
8938           # Check whether --enable-textdlg or --disable-textdlg was given.
8939 if test "${enable_textdlg+set}" = set; then
8940   enableval="$enable_textdlg"
8941
8942                           if test "$enableval" = yes; then
8943                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8944                           else
8945                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8946                           fi
8947
8948 else
8949
8950                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8951                           if test "x$LINE" != x ; then
8952                             eval "DEFAULT_$LINE"
8953                           else
8954                             no_cache=1
8955                           fi
8956
8957                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8958
8959 fi;
8960
8961           eval "$ac_cv_use_textdlg"
8962           if test "$no_cache" != 1; then
8963             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8964           fi
8965
8966           if test "$wxUSE_TEXTDLG" = yes; then
8967             echo "$as_me:$LINENO: result: yes" >&5
8968 echo "${ECHO_T}yes" >&6
8969           else
8970             echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8972           fi
8973
8974
8975           enablestring=
8976           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8977 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8978           no_cache=0
8979           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8980 if test "${enable_tipdlg+set}" = set; then
8981   enableval="$enable_tipdlg"
8982
8983                           if test "$enableval" = yes; then
8984                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8985                           else
8986                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8987                           fi
8988
8989 else
8990
8991                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8992                           if test "x$LINE" != x ; then
8993                             eval "DEFAULT_$LINE"
8994                           else
8995                             no_cache=1
8996                           fi
8997
8998                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8999
9000 fi;
9001
9002           eval "$ac_cv_use_tipdlg"
9003           if test "$no_cache" != 1; then
9004             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9005           fi
9006
9007           if test "$wxUSE_STARTUP_TIPS" = yes; then
9008             echo "$as_me:$LINENO: result: yes" >&5
9009 echo "${ECHO_T}yes" >&6
9010           else
9011             echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6
9013           fi
9014
9015
9016           enablestring=
9017           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9018 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9019           no_cache=0
9020           # Check whether --enable-progressdlg or --disable-progressdlg was given.
9021 if test "${enable_progressdlg+set}" = set; then
9022   enableval="$enable_progressdlg"
9023
9024                           if test "$enableval" = yes; then
9025                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9026                           else
9027                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9028                           fi
9029
9030 else
9031
9032                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9033                           if test "x$LINE" != x ; then
9034                             eval "DEFAULT_$LINE"
9035                           else
9036                             no_cache=1
9037                           fi
9038
9039                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9040
9041 fi;
9042
9043           eval "$ac_cv_use_progressdlg"
9044           if test "$no_cache" != 1; then
9045             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9046           fi
9047
9048           if test "$wxUSE_PROGRESSDLG" = yes; then
9049             echo "$as_me:$LINENO: result: yes" >&5
9050 echo "${ECHO_T}yes" >&6
9051           else
9052             echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9054           fi
9055
9056
9057           enablestring=
9058           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9060           no_cache=0
9061           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9062 if test "${enable_wizarddlg+set}" = set; then
9063   enableval="$enable_wizarddlg"
9064
9065                           if test "$enableval" = yes; then
9066                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9067                           else
9068                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9069                           fi
9070
9071 else
9072
9073                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9074                           if test "x$LINE" != x ; then
9075                             eval "DEFAULT_$LINE"
9076                           else
9077                             no_cache=1
9078                           fi
9079
9080                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9081
9082 fi;
9083
9084           eval "$ac_cv_use_wizarddlg"
9085           if test "$no_cache" != 1; then
9086             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9087           fi
9088
9089           if test "$wxUSE_WIZARDDLG" = yes; then
9090             echo "$as_me:$LINENO: result: yes" >&5
9091 echo "${ECHO_T}yes" >&6
9092           else
9093             echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095           fi
9096
9097
9098
9099
9100           enablestring=
9101           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9102 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9103           no_cache=0
9104           # Check whether --enable-menus or --disable-menus was given.
9105 if test "${enable_menus+set}" = set; then
9106   enableval="$enable_menus"
9107
9108                           if test "$enableval" = yes; then
9109                             ac_cv_use_menus='wxUSE_MENUS=yes'
9110                           else
9111                             ac_cv_use_menus='wxUSE_MENUS=no'
9112                           fi
9113
9114 else
9115
9116                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9117                           if test "x$LINE" != x ; then
9118                             eval "DEFAULT_$LINE"
9119                           else
9120                             no_cache=1
9121                           fi
9122
9123                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9124
9125 fi;
9126
9127           eval "$ac_cv_use_menus"
9128           if test "$no_cache" != 1; then
9129             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9130           fi
9131
9132           if test "$wxUSE_MENUS" = yes; then
9133             echo "$as_me:$LINENO: result: yes" >&5
9134 echo "${ECHO_T}yes" >&6
9135           else
9136             echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9138           fi
9139
9140
9141           enablestring=
9142           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9143 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9144           no_cache=0
9145           # Check whether --enable-miniframe or --disable-miniframe was given.
9146 if test "${enable_miniframe+set}" = set; then
9147   enableval="$enable_miniframe"
9148
9149                           if test "$enableval" = yes; then
9150                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9151                           else
9152                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9153                           fi
9154
9155 else
9156
9157                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9158                           if test "x$LINE" != x ; then
9159                             eval "DEFAULT_$LINE"
9160                           else
9161                             no_cache=1
9162                           fi
9163
9164                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9165
9166 fi;
9167
9168           eval "$ac_cv_use_miniframe"
9169           if test "$no_cache" != 1; then
9170             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9171           fi
9172
9173           if test "$wxUSE_MINIFRAME" = yes; then
9174             echo "$as_me:$LINENO: result: yes" >&5
9175 echo "${ECHO_T}yes" >&6
9176           else
9177             echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9179           fi
9180
9181
9182           enablestring=
9183           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9184 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9185           no_cache=0
9186           # Check whether --enable-tooltips or --disable-tooltips was given.
9187 if test "${enable_tooltips+set}" = set; then
9188   enableval="$enable_tooltips"
9189
9190                           if test "$enableval" = yes; then
9191                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9192                           else
9193                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9194                           fi
9195
9196 else
9197
9198                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9199                           if test "x$LINE" != x ; then
9200                             eval "DEFAULT_$LINE"
9201                           else
9202                             no_cache=1
9203                           fi
9204
9205                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9206
9207 fi;
9208
9209           eval "$ac_cv_use_tooltips"
9210           if test "$no_cache" != 1; then
9211             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9212           fi
9213
9214           if test "$wxUSE_TOOLTIPS" = yes; then
9215             echo "$as_me:$LINENO: result: yes" >&5
9216 echo "${ECHO_T}yes" >&6
9217           else
9218             echo "$as_me:$LINENO: result: no" >&5
9219 echo "${ECHO_T}no" >&6
9220           fi
9221
9222
9223           enablestring=
9224           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9225 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9226           no_cache=0
9227           # Check whether --enable-splines or --disable-splines was given.
9228 if test "${enable_splines+set}" = set; then
9229   enableval="$enable_splines"
9230
9231                           if test "$enableval" = yes; then
9232                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9233                           else
9234                             ac_cv_use_splines='wxUSE_SPLINES=no'
9235                           fi
9236
9237 else
9238
9239                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9240                           if test "x$LINE" != x ; then
9241                             eval "DEFAULT_$LINE"
9242                           else
9243                             no_cache=1
9244                           fi
9245
9246                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9247
9248 fi;
9249
9250           eval "$ac_cv_use_splines"
9251           if test "$no_cache" != 1; then
9252             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9253           fi
9254
9255           if test "$wxUSE_SPLINES" = yes; then
9256             echo "$as_me:$LINENO: result: yes" >&5
9257 echo "${ECHO_T}yes" >&6
9258           else
9259             echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6
9261           fi
9262
9263
9264           enablestring=
9265           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9266 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9267           no_cache=0
9268           # Check whether --enable-validators or --disable-validators was given.
9269 if test "${enable_validators+set}" = set; then
9270   enableval="$enable_validators"
9271
9272                           if test "$enableval" = yes; then
9273                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9274                           else
9275                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9276                           fi
9277
9278 else
9279
9280                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9281                           if test "x$LINE" != x ; then
9282                             eval "DEFAULT_$LINE"
9283                           else
9284                             no_cache=1
9285                           fi
9286
9287                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9288
9289 fi;
9290
9291           eval "$ac_cv_use_validators"
9292           if test "$no_cache" != 1; then
9293             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9294           fi
9295
9296           if test "$wxUSE_VALIDATORS" = yes; then
9297             echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6
9299           else
9300             echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6
9302           fi
9303
9304
9305           enablestring=
9306           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9307 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9308           no_cache=0
9309           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9310 if test "${enable_busyinfo+set}" = set; then
9311   enableval="$enable_busyinfo"
9312
9313                           if test "$enableval" = yes; then
9314                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9315                           else
9316                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9317                           fi
9318
9319 else
9320
9321                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9322                           if test "x$LINE" != x ; then
9323                             eval "DEFAULT_$LINE"
9324                           else
9325                             no_cache=1
9326                           fi
9327
9328                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9329
9330 fi;
9331
9332           eval "$ac_cv_use_busyinfo"
9333           if test "$no_cache" != 1; then
9334             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9335           fi
9336
9337           if test "$wxUSE_BUSYINFO" = yes; then
9338             echo "$as_me:$LINENO: result: yes" >&5
9339 echo "${ECHO_T}yes" >&6
9340           else
9341             echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9343           fi
9344
9345
9346           enablestring=
9347           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9348 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9349           no_cache=0
9350           # Check whether --enable-joystick or --disable-joystick was given.
9351 if test "${enable_joystick+set}" = set; then
9352   enableval="$enable_joystick"
9353
9354                           if test "$enableval" = yes; then
9355                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9356                           else
9357                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9358                           fi
9359
9360 else
9361
9362                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9363                           if test "x$LINE" != x ; then
9364                             eval "DEFAULT_$LINE"
9365                           else
9366                             no_cache=1
9367                           fi
9368
9369                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9370
9371 fi;
9372
9373           eval "$ac_cv_use_joystick"
9374           if test "$no_cache" != 1; then
9375             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9376           fi
9377
9378           if test "$wxUSE_JOYSTICK" = yes; then
9379             echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9381           else
9382             echo "$as_me:$LINENO: result: no" >&5
9383 echo "${ECHO_T}no" >&6
9384           fi
9385
9386
9387           enablestring=
9388           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9389 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9390           no_cache=0
9391           # Check whether --enable-metafile or --disable-metafile was given.
9392 if test "${enable_metafile+set}" = set; then
9393   enableval="$enable_metafile"
9394
9395                           if test "$enableval" = yes; then
9396                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9397                           else
9398                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9399                           fi
9400
9401 else
9402
9403                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9404                           if test "x$LINE" != x ; then
9405                             eval "DEFAULT_$LINE"
9406                           else
9407                             no_cache=1
9408                           fi
9409
9410                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9411
9412 fi;
9413
9414           eval "$ac_cv_use_metafile"
9415           if test "$no_cache" != 1; then
9416             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9417           fi
9418
9419           if test "$wxUSE_METAFILE" = yes; then
9420             echo "$as_me:$LINENO: result: yes" >&5
9421 echo "${ECHO_T}yes" >&6
9422           else
9423             echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6
9425           fi
9426
9427
9428           enablestring=
9429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9430 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9431           no_cache=0
9432           # Check whether --enable-dragimage or --disable-dragimage was given.
9433 if test "${enable_dragimage+set}" = set; then
9434   enableval="$enable_dragimage"
9435
9436                           if test "$enableval" = yes; then
9437                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9438                           else
9439                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9440                           fi
9441
9442 else
9443
9444                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9445                           if test "x$LINE" != x ; then
9446                             eval "DEFAULT_$LINE"
9447                           else
9448                             no_cache=1
9449                           fi
9450
9451                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9452
9453 fi;
9454
9455           eval "$ac_cv_use_dragimage"
9456           if test "$no_cache" != 1; then
9457             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9458           fi
9459
9460           if test "$wxUSE_DRAGIMAGE" = yes; then
9461             echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9463           else
9464             echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6
9466           fi
9467
9468
9469           enablestring=
9470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9471 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9472           no_cache=0
9473           # Check whether --enable-accessibility or --disable-accessibility was given.
9474 if test "${enable_accessibility+set}" = set; then
9475   enableval="$enable_accessibility"
9476
9477                           if test "$enableval" = yes; then
9478                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9479                           else
9480                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9481                           fi
9482
9483 else
9484
9485                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9486                           if test "x$LINE" != x ; then
9487                             eval "DEFAULT_$LINE"
9488                           else
9489                             no_cache=1
9490                           fi
9491
9492                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9493
9494 fi;
9495
9496           eval "$ac_cv_use_accessibility"
9497           if test "$no_cache" != 1; then
9498             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9499           fi
9500
9501           if test "$wxUSE_ACCESSIBILITY" = yes; then
9502             echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504           else
9505             echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6
9507           fi
9508
9509
9510
9511
9512           enablestring=
9513           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9514 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9515           no_cache=0
9516           # Check whether --enable-palette or --disable-palette was given.
9517 if test "${enable_palette+set}" = set; then
9518   enableval="$enable_palette"
9519
9520                           if test "$enableval" = yes; then
9521                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9522                           else
9523                             ac_cv_use_palette='wxUSE_PALETTE=no'
9524                           fi
9525
9526 else
9527
9528                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9529                           if test "x$LINE" != x ; then
9530                             eval "DEFAULT_$LINE"
9531                           else
9532                             no_cache=1
9533                           fi
9534
9535                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9536
9537 fi;
9538
9539           eval "$ac_cv_use_palette"
9540           if test "$no_cache" != 1; then
9541             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9542           fi
9543
9544           if test "$wxUSE_PALETTE" = yes; then
9545             echo "$as_me:$LINENO: result: yes" >&5
9546 echo "${ECHO_T}yes" >&6
9547           else
9548             echo "$as_me:$LINENO: result: no" >&5
9549 echo "${ECHO_T}no" >&6
9550           fi
9551
9552
9553           enablestring=
9554           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9555 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9556           no_cache=0
9557           # Check whether --enable-image or --disable-image was given.
9558 if test "${enable_image+set}" = set; then
9559   enableval="$enable_image"
9560
9561                           if test "$enableval" = yes; then
9562                             ac_cv_use_image='wxUSE_IMAGE=yes'
9563                           else
9564                             ac_cv_use_image='wxUSE_IMAGE=no'
9565                           fi
9566
9567 else
9568
9569                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9570                           if test "x$LINE" != x ; then
9571                             eval "DEFAULT_$LINE"
9572                           else
9573                             no_cache=1
9574                           fi
9575
9576                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9577
9578 fi;
9579
9580           eval "$ac_cv_use_image"
9581           if test "$no_cache" != 1; then
9582             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9583           fi
9584
9585           if test "$wxUSE_IMAGE" = yes; then
9586             echo "$as_me:$LINENO: result: yes" >&5
9587 echo "${ECHO_T}yes" >&6
9588           else
9589             echo "$as_me:$LINENO: result: no" >&5
9590 echo "${ECHO_T}no" >&6
9591           fi
9592
9593
9594           enablestring=
9595           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9596 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9597           no_cache=0
9598           # Check whether --enable-gif or --disable-gif was given.
9599 if test "${enable_gif+set}" = set; then
9600   enableval="$enable_gif"
9601
9602                           if test "$enableval" = yes; then
9603                             ac_cv_use_gif='wxUSE_GIF=yes'
9604                           else
9605                             ac_cv_use_gif='wxUSE_GIF=no'
9606                           fi
9607
9608 else
9609
9610                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9611                           if test "x$LINE" != x ; then
9612                             eval "DEFAULT_$LINE"
9613                           else
9614                             no_cache=1
9615                           fi
9616
9617                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9618
9619 fi;
9620
9621           eval "$ac_cv_use_gif"
9622           if test "$no_cache" != 1; then
9623             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9624           fi
9625
9626           if test "$wxUSE_GIF" = yes; then
9627             echo "$as_me:$LINENO: result: yes" >&5
9628 echo "${ECHO_T}yes" >&6
9629           else
9630             echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6
9632           fi
9633
9634
9635           enablestring=
9636           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9637 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9638           no_cache=0
9639           # Check whether --enable-pcx or --disable-pcx was given.
9640 if test "${enable_pcx+set}" = set; then
9641   enableval="$enable_pcx"
9642
9643                           if test "$enableval" = yes; then
9644                             ac_cv_use_pcx='wxUSE_PCX=yes'
9645                           else
9646                             ac_cv_use_pcx='wxUSE_PCX=no'
9647                           fi
9648
9649 else
9650
9651                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9652                           if test "x$LINE" != x ; then
9653                             eval "DEFAULT_$LINE"
9654                           else
9655                             no_cache=1
9656                           fi
9657
9658                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9659
9660 fi;
9661
9662           eval "$ac_cv_use_pcx"
9663           if test "$no_cache" != 1; then
9664             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9665           fi
9666
9667           if test "$wxUSE_PCX" = yes; then
9668             echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9670           else
9671             echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9673           fi
9674
9675
9676           enablestring=
9677           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9678 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9679           no_cache=0
9680           # Check whether --enable-iff or --disable-iff was given.
9681 if test "${enable_iff+set}" = set; then
9682   enableval="$enable_iff"
9683
9684                           if test "$enableval" = yes; then
9685                             ac_cv_use_iff='wxUSE_IFF=yes'
9686                           else
9687                             ac_cv_use_iff='wxUSE_IFF=no'
9688                           fi
9689
9690 else
9691
9692                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9693                           if test "x$LINE" != x ; then
9694                             eval "DEFAULT_$LINE"
9695                           else
9696                             no_cache=1
9697                           fi
9698
9699                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9700
9701 fi;
9702
9703           eval "$ac_cv_use_iff"
9704           if test "$no_cache" != 1; then
9705             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9706           fi
9707
9708           if test "$wxUSE_IFF" = yes; then
9709             echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6
9711           else
9712             echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9714           fi
9715
9716
9717           enablestring=
9718           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9719 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9720           no_cache=0
9721           # Check whether --enable-pnm or --disable-pnm was given.
9722 if test "${enable_pnm+set}" = set; then
9723   enableval="$enable_pnm"
9724
9725                           if test "$enableval" = yes; then
9726                             ac_cv_use_pnm='wxUSE_PNM=yes'
9727                           else
9728                             ac_cv_use_pnm='wxUSE_PNM=no'
9729                           fi
9730
9731 else
9732
9733                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9734                           if test "x$LINE" != x ; then
9735                             eval "DEFAULT_$LINE"
9736                           else
9737                             no_cache=1
9738                           fi
9739
9740                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9741
9742 fi;
9743
9744           eval "$ac_cv_use_pnm"
9745           if test "$no_cache" != 1; then
9746             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9747           fi
9748
9749           if test "$wxUSE_PNM" = yes; then
9750             echo "$as_me:$LINENO: result: yes" >&5
9751 echo "${ECHO_T}yes" >&6
9752           else
9753             echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6
9755           fi
9756
9757
9758           enablestring=
9759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9760 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9761           no_cache=0
9762           # Check whether --enable-xpm or --disable-xpm was given.
9763 if test "${enable_xpm+set}" = set; then
9764   enableval="$enable_xpm"
9765
9766                           if test "$enableval" = yes; then
9767                             ac_cv_use_xpm='wxUSE_XPM=yes'
9768                           else
9769                             ac_cv_use_xpm='wxUSE_XPM=no'
9770                           fi
9771
9772 else
9773
9774                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9775                           if test "x$LINE" != x ; then
9776                             eval "DEFAULT_$LINE"
9777                           else
9778                             no_cache=1
9779                           fi
9780
9781                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9782
9783 fi;
9784
9785           eval "$ac_cv_use_xpm"
9786           if test "$no_cache" != 1; then
9787             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9788           fi
9789
9790           if test "$wxUSE_XPM" = yes; then
9791             echo "$as_me:$LINENO: result: yes" >&5
9792 echo "${ECHO_T}yes" >&6
9793           else
9794             echo "$as_me:$LINENO: result: no" >&5
9795 echo "${ECHO_T}no" >&6
9796           fi
9797
9798
9799           enablestring=
9800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9801 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9802           no_cache=0
9803           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9804 if test "${enable_ico_cur+set}" = set; then
9805   enableval="$enable_ico_cur"
9806
9807                           if test "$enableval" = yes; then
9808                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9809                           else
9810                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9811                           fi
9812
9813 else
9814
9815                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9816                           if test "x$LINE" != x ; then
9817                             eval "DEFAULT_$LINE"
9818                           else
9819                             no_cache=1
9820                           fi
9821
9822                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9823
9824 fi;
9825
9826           eval "$ac_cv_use_ico_cur"
9827           if test "$no_cache" != 1; then
9828             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9829           fi
9830
9831           if test "$wxUSE_ICO_CUR" = yes; then
9832             echo "$as_me:$LINENO: result: yes" >&5
9833 echo "${ECHO_T}yes" >&6
9834           else
9835             echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9837           fi
9838
9839
9840 fi
9841
9842
9843
9844           enablestring=
9845           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9846 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9847           no_cache=0
9848           # Check whether --enable-official_build or --disable-official_build was given.
9849 if test "${enable_official_build+set}" = set; then
9850   enableval="$enable_official_build"
9851
9852                           if test "$enableval" = yes; then
9853                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9854                           else
9855                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9856                           fi
9857
9858 else
9859
9860                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9861                           if test "x$LINE" != x ; then
9862                             eval "DEFAULT_$LINE"
9863                           else
9864                             no_cache=1
9865                           fi
9866
9867                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9868
9869 fi;
9870
9871           eval "$ac_cv_use_official_build"
9872           if test "$no_cache" != 1; then
9873             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9874           fi
9875
9876           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9877             echo "$as_me:$LINENO: result: yes" >&5
9878 echo "${ECHO_T}yes" >&6
9879           else
9880             echo "$as_me:$LINENO: result: no" >&5
9881 echo "${ECHO_T}no" >&6
9882           fi
9883
9884 # Check whether --enable-vendor or --disable-vendor was given.
9885 if test "${enable_vendor+set}" = set; then
9886   enableval="$enable_vendor"
9887   VENDOR="$enableval"
9888 fi;
9889 if test "x$VENDOR" = "x"; then
9890     VENDOR="custom"
9891 fi
9892
9893 case "${host}" in
9894   *-pc-os2_emx | *-pc-os2-emx )
9895     PATH_IFS=';'
9896         if test "$wxUSE_OMF" = "yes"; then
9897       AR=emxomfar
9898       RANLIB=:
9899       LDFLAGS="-Zomf $LDFLAGS"
9900       CFLAGS="-Zomf $CFLAGS"
9901       CXXFLAGS="-Zomf $CXXFLAGS"
9902     fi
9903   ;;
9904   *)
9905     PATH_IFS=':'
9906   ;;
9907 esac
9908
9909
9910
9911           echo "saving argument cache $wx_arg_cache_file"
9912           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9913
9914
9915
9916 echo "$as_me:$LINENO: checking for toolkit" >&5
9917 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9918
9919 # In Wine, we need to default to MSW, not GTK or MOTIF
9920 if test "$wxUSE_WINE" = "yes"; then
9921     DEFAULT_DEFAULT_wxUSE_GTK=0
9922     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9923     DEFAULT_DEFAULT_wxUSE_MSW=1
9924     wxUSE_SHARED=no
9925 fi
9926
9927 if test "$wxUSE_GUI" = "yes"; then
9928
9929     if test "$USE_BEOS" = 1; then
9930         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9931 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9932    { (exit 1); exit 1; }; }
9933     fi
9934
9935     if test "$TOOLKIT_GIVEN" = 1; then
9936             for toolkit in `echo $ALL_TOOLKITS`; do
9937         var=wxUSE_$toolkit
9938         eval "value=\$${var}"
9939         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9940       done
9941     else
9942             for toolkit in `echo $ALL_TOOLKITS`; do
9943         if test "$has_toolkit_in_cache" != 1; then
9944           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9945         else
9946           var=DEFAULT_wxUSE_$toolkit
9947         fi
9948         eval "wxUSE_$toolkit=\$${var}"
9949       done
9950     fi
9951
9952             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9953                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9954                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9955
9956         case "${host}" in
9957       *-pc-os2_emx | *-pc-os2-emx )
9958         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9959     esac
9960
9961     case "$NUM_TOOLKITS" in
9962       1)
9963       ;;
9964       0)
9965         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9966 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9967    { (exit 1); exit 1; }; }
9968       ;;
9969       *)
9970         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9971 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9972    { (exit 1); exit 1; }; }
9973     esac
9974
9975         for toolkit in `echo $ALL_TOOLKITS`; do
9976       var=wxUSE_$toolkit
9977       eval "value=\$${var}"
9978       if test "x$value" != x; then
9979         cache_var=CACHE_$toolkit
9980         eval "cache=\$${cache_var}"
9981         if test "$cache" = 1; then
9982           echo "$var=$value" >> ${wx_arg_cache_file}
9983         fi
9984         if test "$value" = 1; then
9985           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9986           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9987 echo "${ECHO_T}$toolkit_echo" >&6
9988         fi
9989       fi
9990     done
9991 else
9992     if test "x$host_alias" != "x"; then
9993         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9994 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9995     else
9996         echo "$as_me:$LINENO: result: base only" >&5
9997 echo "${ECHO_T}base only" >&6
9998     fi
9999 fi
10000
10001 wants_win32=0
10002 doesnt_want_win32=0
10003 case "${host}" in
10004   *-*-cygwin*)
10005       if test "$wxUSE_MSW" = 1 ; then
10006         wants_win32=1
10007       else
10008         doesnt_want_win32=1
10009       fi
10010   ;;
10011   *-*-mingw*)
10012       wants_win32=1
10013   ;;
10014 esac
10015
10016 if test "$wxUSE_WINE" = "yes"; then
10017     wants_win32=1
10018         CC=winegcc
10019     CXX=wineg++
10020     RESCOMP=wrc
10021     LDFLAGS_GUI="-mwindows"
10022 fi
10023
10024 if test "$wants_win32" = 1 ; then
10025     USE_UNIX=0
10026     USE_WIN32=1
10027     cat >>confdefs.h <<\_ACEOF
10028 #define __WIN32__ 1
10029 _ACEOF
10030
10031     cat >>confdefs.h <<\_ACEOF
10032 #define __WIN95__ 1
10033 _ACEOF
10034
10035     cat >>confdefs.h <<\_ACEOF
10036 #define __WINDOWS__ 1
10037 _ACEOF
10038
10039     cat >>confdefs.h <<\_ACEOF
10040 #define __GNUWIN32__ 1
10041 _ACEOF
10042
10043     cat >>confdefs.h <<\_ACEOF
10044 #define STRICT 1
10045 _ACEOF
10046
10047     cat >>confdefs.h <<\_ACEOF
10048 #define WINVER 0x0400
10049 _ACEOF
10050
10051 fi
10052 if test "$doesnt_want_win32" = 1 ; then
10053     USE_UNIX=1
10054     USE_WIN32=0
10055 fi
10056
10057 if test "$USE_UNIX" = 1 ; then
10058     wxUSE_UNIX=yes
10059     cat >>confdefs.h <<\_ACEOF
10060 #define __UNIX__ 1
10061 _ACEOF
10062
10063 fi
10064
10065
10066 cat >confcache <<\_ACEOF
10067 # This file is a shell script that caches the results of configure
10068 # tests run on this system so they can be shared between configure
10069 # scripts and configure runs, see configure's option --config-cache.
10070 # It is not useful on other systems.  If it contains results you don't
10071 # want to keep, you may remove or edit it.
10072 #
10073 # config.status only pays attention to the cache file if you give it
10074 # the --recheck option to rerun configure.
10075 #
10076 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10077 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10078 # following values.
10079
10080 _ACEOF
10081
10082 # The following way of writing the cache mishandles newlines in values,
10083 # but we know of no workaround that is simple, portable, and efficient.
10084 # So, don't put newlines in cache variables' values.
10085 # Ultrix sh set writes to stderr and can't be redirected directly,
10086 # and sets the high bit in the cache file unless we assign to the vars.
10087 {
10088   (set) 2>&1 |
10089     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10090     *ac_space=\ *)
10091       # `set' does not quote correctly, so add quotes (double-quote
10092       # substitution turns \\\\ into \\, and sed turns \\ into \).
10093       sed -n \
10094         "s/'/'\\\\''/g;
10095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10096       ;;
10097     *)
10098       # `set' quotes correctly as required by POSIX, so do not add quotes.
10099       sed -n \
10100         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10101       ;;
10102     esac;
10103 } |
10104   sed '
10105      t clear
10106      : clear
10107      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10108      t end
10109      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10110      : end' >>confcache
10111 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10112   if test -w $cache_file; then
10113     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10114     cat confcache >$cache_file
10115   else
10116     echo "not updating unwritable cache $cache_file"
10117   fi
10118 fi
10119 rm -f confcache
10120
10121 if test "$build" != "$host" ; then
10122     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10123         CC=$host_alias-gcc
10124         CXX=$host_alias-c++
10125         AR=$host_alias-ar
10126         RANLIB=$host_alias-ranlib
10127         DLLTOOL=$host_alias-dlltool
10128         RESCOMP=$host_alias-windres
10129         LD=$host_alias-ld
10130         NM=$host_alias-nm
10131         STRIP=$host_alias-strip
10132     else
10133         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10134 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10135    { (exit 1); exit 1; }; }
10136     fi
10137 fi
10138
10139 CFLAGS=${CFLAGS:=}
10140 ac_ext=c
10141 ac_cpp='$CPP $CPPFLAGS'
10142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10145 if test -n "$ac_tool_prefix"; then
10146   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10148 echo "$as_me:$LINENO: checking for $ac_word" >&5
10149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10150 if test "${ac_cv_prog_CC+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   if test -n "$CC"; then
10154   ac_cv_prog_CC="$CC" # Let the user override the test.
10155 else
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159   IFS=$as_save_IFS
10160   test -z "$as_dir" && as_dir=.
10161   for ac_exec_ext in '' $ac_executable_extensions; do
10162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10165     break 2
10166   fi
10167 done
10168 done
10169
10170 fi
10171 fi
10172 CC=$ac_cv_prog_CC
10173 if test -n "$CC"; then
10174   echo "$as_me:$LINENO: result: $CC" >&5
10175 echo "${ECHO_T}$CC" >&6
10176 else
10177   echo "$as_me:$LINENO: result: no" >&5
10178 echo "${ECHO_T}no" >&6
10179 fi
10180
10181 fi
10182 if test -z "$ac_cv_prog_CC"; then
10183   ac_ct_CC=$CC
10184   # Extract the first word of "gcc", so it can be a program name with args.
10185 set dummy gcc; ac_word=$2
10186 echo "$as_me:$LINENO: checking for $ac_word" >&5
10187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   if test -n "$ac_ct_CC"; then
10192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197   IFS=$as_save_IFS
10198   test -z "$as_dir" && as_dir=.
10199   for ac_exec_ext in '' $ac_executable_extensions; do
10200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201     ac_cv_prog_ac_ct_CC="gcc"
10202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203     break 2
10204   fi
10205 done
10206 done
10207
10208 fi
10209 fi
10210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10211 if test -n "$ac_ct_CC"; then
10212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10213 echo "${ECHO_T}$ac_ct_CC" >&6
10214 else
10215   echo "$as_me:$LINENO: result: no" >&5
10216 echo "${ECHO_T}no" >&6
10217 fi
10218
10219   CC=$ac_ct_CC
10220 else
10221   CC="$ac_cv_prog_CC"
10222 fi
10223
10224 if test -z "$CC"; then
10225   if test -n "$ac_tool_prefix"; then
10226   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10227 set dummy ${ac_tool_prefix}cc; ac_word=$2
10228 echo "$as_me:$LINENO: checking for $ac_word" >&5
10229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10230 if test "${ac_cv_prog_CC+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   if test -n "$CC"; then
10234   ac_cv_prog_CC="$CC" # Let the user override the test.
10235 else
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10238 do
10239   IFS=$as_save_IFS
10240   test -z "$as_dir" && as_dir=.
10241   for ac_exec_ext in '' $ac_executable_extensions; do
10242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10243     ac_cv_prog_CC="${ac_tool_prefix}cc"
10244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10245     break 2
10246   fi
10247 done
10248 done
10249
10250 fi
10251 fi
10252 CC=$ac_cv_prog_CC
10253 if test -n "$CC"; then
10254   echo "$as_me:$LINENO: result: $CC" >&5
10255 echo "${ECHO_T}$CC" >&6
10256 else
10257   echo "$as_me:$LINENO: result: no" >&5
10258 echo "${ECHO_T}no" >&6
10259 fi
10260
10261 fi
10262 if test -z "$ac_cv_prog_CC"; then
10263   ac_ct_CC=$CC
10264   # Extract the first word of "cc", so it can be a program name with args.
10265 set dummy cc; ac_word=$2
10266 echo "$as_me:$LINENO: checking for $ac_word" >&5
10267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   if test -n "$ac_ct_CC"; then
10272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10273 else
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10276 do
10277   IFS=$as_save_IFS
10278   test -z "$as_dir" && as_dir=.
10279   for ac_exec_ext in '' $ac_executable_extensions; do
10280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281     ac_cv_prog_ac_ct_CC="cc"
10282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283     break 2
10284   fi
10285 done
10286 done
10287
10288 fi
10289 fi
10290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10291 if test -n "$ac_ct_CC"; then
10292   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10293 echo "${ECHO_T}$ac_ct_CC" >&6
10294 else
10295   echo "$as_me:$LINENO: result: no" >&5
10296 echo "${ECHO_T}no" >&6
10297 fi
10298
10299   CC=$ac_ct_CC
10300 else
10301   CC="$ac_cv_prog_CC"
10302 fi
10303
10304 fi
10305 if test -z "$CC"; then
10306   # Extract the first word of "cc", so it can be a program name with args.
10307 set dummy cc; ac_word=$2
10308 echo "$as_me:$LINENO: checking for $ac_word" >&5
10309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10310 if test "${ac_cv_prog_CC+set}" = set; then
10311   echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313   if test -n "$CC"; then
10314   ac_cv_prog_CC="$CC" # Let the user override the test.
10315 else
10316   ac_prog_rejected=no
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10319 do
10320   IFS=$as_save_IFS
10321   test -z "$as_dir" && as_dir=.
10322   for ac_exec_ext in '' $ac_executable_extensions; do
10323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10325        ac_prog_rejected=yes
10326        continue
10327      fi
10328     ac_cv_prog_CC="cc"
10329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330     break 2
10331   fi
10332 done
10333 done
10334
10335 if test $ac_prog_rejected = yes; then
10336   # We found a bogon in the path, so make sure we never use it.
10337   set dummy $ac_cv_prog_CC
10338   shift
10339   if test $# != 0; then
10340     # We chose a different compiler from the bogus one.
10341     # However, it has the same basename, so the bogon will be chosen
10342     # first if we set CC to just the basename; use the full file name.
10343     shift
10344     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10345   fi
10346 fi
10347 fi
10348 fi
10349 CC=$ac_cv_prog_CC
10350 if test -n "$CC"; then
10351   echo "$as_me:$LINENO: result: $CC" >&5
10352 echo "${ECHO_T}$CC" >&6
10353 else
10354   echo "$as_me:$LINENO: result: no" >&5
10355 echo "${ECHO_T}no" >&6
10356 fi
10357
10358 fi
10359 if test -z "$CC"; then
10360   if test -n "$ac_tool_prefix"; then
10361   for ac_prog in cl
10362   do
10363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10365 echo "$as_me:$LINENO: checking for $ac_word" >&5
10366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10367 if test "${ac_cv_prog_CC+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370   if test -n "$CC"; then
10371   ac_cv_prog_CC="$CC" # Let the user override the test.
10372 else
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10375 do
10376   IFS=$as_save_IFS
10377   test -z "$as_dir" && as_dir=.
10378   for ac_exec_ext in '' $ac_executable_extensions; do
10379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382     break 2
10383   fi
10384 done
10385 done
10386
10387 fi
10388 fi
10389 CC=$ac_cv_prog_CC
10390 if test -n "$CC"; then
10391   echo "$as_me:$LINENO: result: $CC" >&5
10392 echo "${ECHO_T}$CC" >&6
10393 else
10394   echo "$as_me:$LINENO: result: no" >&5
10395 echo "${ECHO_T}no" >&6
10396 fi
10397
10398     test -n "$CC" && break
10399   done
10400 fi
10401 if test -z "$CC"; then
10402   ac_ct_CC=$CC
10403   for ac_prog in cl
10404 do
10405   # Extract the first word of "$ac_prog", so it can be a program name with args.
10406 set dummy $ac_prog; ac_word=$2
10407 echo "$as_me:$LINENO: checking for $ac_word" >&5
10408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   if test -n "$ac_ct_CC"; then
10413   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10414 else
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10417 do
10418   IFS=$as_save_IFS
10419   test -z "$as_dir" && as_dir=.
10420   for ac_exec_ext in '' $ac_executable_extensions; do
10421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422     ac_cv_prog_ac_ct_CC="$ac_prog"
10423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10424     break 2
10425   fi
10426 done
10427 done
10428
10429 fi
10430 fi
10431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10432 if test -n "$ac_ct_CC"; then
10433   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10434 echo "${ECHO_T}$ac_ct_CC" >&6
10435 else
10436   echo "$as_me:$LINENO: result: no" >&5
10437 echo "${ECHO_T}no" >&6
10438 fi
10439
10440   test -n "$ac_ct_CC" && break
10441 done
10442
10443   CC=$ac_ct_CC
10444 fi
10445
10446 fi
10447
10448
10449 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10450 See \`config.log' for more details." >&5
10451 echo "$as_me: error: no acceptable C compiler found in \$PATH
10452 See \`config.log' for more details." >&2;}
10453    { (exit 1); exit 1; }; }
10454
10455 # Provide some information about the compiler.
10456 echo "$as_me:$LINENO:" \
10457      "checking for C compiler version" >&5
10458 ac_compiler=`set X $ac_compile; echo $2`
10459 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10460   (eval $ac_compiler --version </dev/null >&5) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }
10464 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10465   (eval $ac_compiler -v </dev/null >&5) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }
10469 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10470   (eval $ac_compiler -V </dev/null >&5) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }
10474
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h.  */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h.  */
10481
10482 int
10483 main ()
10484 {
10485
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 ac_clean_files_save=$ac_clean_files
10491 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10492 # Try to create an executable without -o first, disregard a.out.
10493 # It will help us diagnose broken compilers, and finding out an intuition
10494 # of exeext.
10495 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10496 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10497 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10498 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10499   (eval $ac_link_default) 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; then
10503   # Find the output, starting from the most likely.  This scheme is
10504 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10505 # resort.
10506
10507 # Be careful to initialize this variable, since it used to be cached.
10508 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10509 ac_cv_exeext=
10510 # b.out is created by i960 compilers.
10511 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10512 do
10513   test -f "$ac_file" || continue
10514   case $ac_file in
10515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10516         ;;
10517     conftest.$ac_ext )
10518         # This is the source file.
10519         ;;
10520     [ab].out )
10521         # We found the default executable, but exeext='' is most
10522         # certainly right.
10523         break;;
10524     *.* )
10525         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10526         # FIXME: I believe we export ac_cv_exeext for Libtool,
10527         # but it would be cool to find out if it's true.  Does anybody
10528         # maintain Libtool? --akim.
10529         export ac_cv_exeext
10530         break;;
10531     * )
10532         break;;
10533   esac
10534 done
10535 else
10536   echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10540 See \`config.log' for more details." >&5
10541 echo "$as_me: error: C compiler cannot create executables
10542 See \`config.log' for more details." >&2;}
10543    { (exit 77); exit 77; }; }
10544 fi
10545
10546 ac_exeext=$ac_cv_exeext
10547 echo "$as_me:$LINENO: result: $ac_file" >&5
10548 echo "${ECHO_T}$ac_file" >&6
10549
10550 # Check the compiler produces executables we can run.  If not, either
10551 # the compiler is broken, or we cross compile.
10552 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10553 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10554 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10555 # If not cross compiling, check that we can run a simple program.
10556 if test "$cross_compiling" != yes; then
10557   if { ac_try='./$ac_file'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563     cross_compiling=no
10564   else
10565     if test "$cross_compiling" = maybe; then
10566         cross_compiling=yes
10567     else
10568         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10569 If you meant to cross compile, use \`--host'.
10570 See \`config.log' for more details." >&5
10571 echo "$as_me: error: cannot run C compiled programs.
10572 If you meant to cross compile, use \`--host'.
10573 See \`config.log' for more details." >&2;}
10574    { (exit 1); exit 1; }; }
10575     fi
10576   fi
10577 fi
10578 echo "$as_me:$LINENO: result: yes" >&5
10579 echo "${ECHO_T}yes" >&6
10580
10581 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10582 ac_clean_files=$ac_clean_files_save
10583 # Check the compiler produces executables we can run.  If not, either
10584 # the compiler is broken, or we cross compile.
10585 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10586 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10587 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10588 echo "${ECHO_T}$cross_compiling" >&6
10589
10590 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10591 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593   (eval $ac_link) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; then
10597   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10598 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10599 # work properly (i.e., refer to `conftest.exe'), while it won't with
10600 # `rm'.
10601 for ac_file in conftest.exe conftest conftest.*; do
10602   test -f "$ac_file" || continue
10603   case $ac_file in
10604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10605     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10606           export ac_cv_exeext
10607           break;;
10608     * ) break;;
10609   esac
10610 done
10611 else
10612   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10613 See \`config.log' for more details." >&5
10614 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10615 See \`config.log' for more details." >&2;}
10616    { (exit 1); exit 1; }; }
10617 fi
10618
10619 rm -f conftest$ac_cv_exeext
10620 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10621 echo "${ECHO_T}$ac_cv_exeext" >&6
10622
10623 rm -f conftest.$ac_ext
10624 EXEEXT=$ac_cv_exeext
10625 ac_exeext=$EXEEXT
10626 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10627 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10628 if test "${ac_cv_objext+set}" = set; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637
10638 int
10639 main ()
10640 {
10641
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.o conftest.obj
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648   (eval $ac_compile) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; then
10652   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10653   case $ac_file in
10654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10655     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10656        break;;
10657   esac
10658 done
10659 else
10660   echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10664 See \`config.log' for more details." >&5
10665 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10666 See \`config.log' for more details." >&2;}
10667    { (exit 1); exit 1; }; }
10668 fi
10669
10670 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10671 fi
10672 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10673 echo "${ECHO_T}$ac_cv_objext" >&6
10674 OBJEXT=$ac_cv_objext
10675 ac_objext=$OBJEXT
10676 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10677 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10678 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h.  */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h.  */
10687
10688 int
10689 main ()
10690 {
10691 #ifndef __GNUC__
10692        choke me
10693 #endif
10694
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701   (eval $ac_compile) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -z "$ac_c_werror_flag"
10709                          || test ! -s conftest.err'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest.$ac_objext'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_compiler_gnu=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_compiler_gnu=no
10727 fi
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10730
10731 fi
10732 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10733 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10734 GCC=`test $ac_compiler_gnu = yes && echo yes`
10735 ac_test_CFLAGS=${CFLAGS+set}
10736 ac_save_CFLAGS=$CFLAGS
10737 CFLAGS="-g"
10738 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10739 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10740 if test "${ac_cv_prog_cc_g+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h.  */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h.  */
10749
10750 int
10751 main ()
10752 {
10753
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760   (eval $ac_compile) 2>conftest.er1
10761   ac_status=$?
10762   grep -v '^ *+' conftest.er1 >conftest.err
10763   rm -f conftest.er1
10764   cat conftest.err >&5
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); } &&
10767          { ac_try='test -z "$ac_c_werror_flag"
10768                          || test ! -s conftest.err'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; } &&
10774          { ac_try='test -s conftest.$ac_objext'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; }; then
10780   ac_cv_prog_cc_g=yes
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 ac_cv_prog_cc_g=no
10786 fi
10787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10788 fi
10789 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10790 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10791 if test "$ac_test_CFLAGS" = set; then
10792   CFLAGS=$ac_save_CFLAGS
10793 elif test $ac_cv_prog_cc_g = yes; then
10794   if test "$GCC" = yes; then
10795     CFLAGS="-g -O2"
10796   else
10797     CFLAGS="-g"
10798   fi
10799 else
10800   if test "$GCC" = yes; then
10801     CFLAGS="-O2"
10802   else
10803     CFLAGS=
10804   fi
10805 fi
10806 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10807 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10808 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   ac_cv_prog_cc_stdc=no
10812 ac_save_CC=$CC
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819 #include <stdarg.h>
10820 #include <stdio.h>
10821 #include <sys/types.h>
10822 #include <sys/stat.h>
10823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10824 struct buf { int x; };
10825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10826 static char *e (p, i)
10827      char **p;
10828      int i;
10829 {
10830   return p[i];
10831 }
10832 static char *f (char * (*g) (char **, int), char **p, ...)
10833 {
10834   char *s;
10835   va_list v;
10836   va_start (v,p);
10837   s = g (p, va_arg (v,int));
10838   va_end (v);
10839   return s;
10840 }
10841
10842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10843    function prototypes and stuff, but not '\xHH' hex character constants.
10844    These don't provoke an error unfortunately, instead are silently treated
10845    as 'x'.  The following induces an error, until -std1 is added to get
10846    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10847    array size at least.  It's necessary to write '\x00'==0 to get something
10848    that's true only with -std1.  */
10849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10850
10851 int test (int i, double x);
10852 struct s1 {int (*f) (int a);};
10853 struct s2 {int (*f) (double a);};
10854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10855 int argc;
10856 char **argv;
10857 int
10858 main ()
10859 {
10860 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10861   ;
10862   return 0;
10863 }
10864 _ACEOF
10865 # Don't try gcc -ansi; that turns off useful extensions and
10866 # breaks some systems' header files.
10867 # AIX                   -qlanglvl=ansi
10868 # Ultrix and OSF/1      -std1
10869 # HP-UX 10.20 and later -Ae
10870 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10871 # SVR4                  -Xc -D__EXTENSIONS__
10872 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10873 do
10874   CC="$ac_save_CC $ac_arg"
10875   rm -f conftest.$ac_objext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877   (eval $ac_compile) 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag"
10885                          || test ! -s conftest.err'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; } &&
10891          { ac_try='test -s conftest.$ac_objext'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   ac_cv_prog_cc_stdc=$ac_arg
10898 break
10899 else
10900   echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10902
10903 fi
10904 rm -f conftest.err conftest.$ac_objext
10905 done
10906 rm -f conftest.$ac_ext conftest.$ac_objext
10907 CC=$ac_save_CC
10908
10909 fi
10910
10911 case "x$ac_cv_prog_cc_stdc" in
10912   x|xno)
10913     echo "$as_me:$LINENO: result: none needed" >&5
10914 echo "${ECHO_T}none needed" >&6 ;;
10915   *)
10916     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10917 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10918     CC="$CC $ac_cv_prog_cc_stdc" ;;
10919 esac
10920
10921 # Some people use a C++ compiler to compile C.  Since we use `exit',
10922 # in C++ we need to declare it.  In case someone uses the same compiler
10923 # for both compiling C and C++ we need to have the C++ compiler decide
10924 # the declaration of exit, since it's the most demanding environment.
10925 cat >conftest.$ac_ext <<_ACEOF
10926 #ifndef __cplusplus
10927   choke me
10928 #endif
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932   (eval $ac_compile) 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } &&
10939          { ac_try='test -z "$ac_c_werror_flag"
10940                          || test ! -s conftest.err'
10941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942   (eval $ac_try) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); }; } &&
10946          { ac_try='test -s conftest.$ac_objext'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   for ac_declaration in \
10953    '' \
10954    'extern "C" void std::exit (int) throw (); using std::exit;' \
10955    'extern "C" void std::exit (int); using std::exit;' \
10956    'extern "C" void exit (int) throw ();' \
10957    'extern "C" void exit (int);' \
10958    'void exit (int);'
10959 do
10960   cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966 $ac_declaration
10967 #include <stdlib.h>
10968 int
10969 main ()
10970 {
10971 exit (42);
10972   ;
10973   return 0;
10974 }
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10978   (eval $ac_compile) 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } &&
10985          { ac_try='test -z "$ac_c_werror_flag"
10986                          || test ! -s conftest.err'
10987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988   (eval $ac_try) 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }; } &&
10992          { ac_try='test -s conftest.$ac_objext'
10993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994   (eval $ac_try) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; }; then
10998   :
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 continue
11004 fi
11005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006   cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 $ac_declaration
11013 int
11014 main ()
11015 {
11016 exit (42);
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11023   (eval $ac_compile) 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } &&
11030          { ac_try='test -z "$ac_c_werror_flag"
11031                          || test ! -s conftest.err'
11032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033   (eval $ac_try) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; } &&
11037          { ac_try='test -s conftest.$ac_objext'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   break
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 fi
11049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11050 done
11051 rm -f conftest*
11052 if test -n "$ac_declaration"; then
11053   echo '#ifdef __cplusplus' >>confdefs.h
11054   echo $ac_declaration      >>confdefs.h
11055   echo '#endif'             >>confdefs.h
11056 fi
11057
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 fi
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064 ac_ext=c
11065 ac_cpp='$CPP $CPPFLAGS'
11066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069
11070
11071
11072 ac_ext=c
11073 ac_cpp='$CPP $CPPFLAGS'
11074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11077 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11078 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11079 # On Suns, sometimes $CPP names a directory.
11080 if test -n "$CPP" && test -d "$CPP"; then
11081   CPP=
11082 fi
11083 if test -z "$CPP"; then
11084   if test "${ac_cv_prog_CPP+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087       # Double quotes because CPP needs to be expanded
11088     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11089     do
11090       ac_preproc_ok=false
11091 for ac_c_preproc_warn_flag in '' yes
11092 do
11093   # Use a header file that comes with gcc, so configuring glibc
11094   # with a fresh cross-compiler works.
11095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096   # <limits.h> exists even on freestanding compilers.
11097   # On the NeXT, cc -E runs the code through the compiler's parser,
11098   # not just through cpp. "Syntax error" is here to catch this case.
11099   cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h.  */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h.  */
11105 #ifdef __STDC__
11106 # include <limits.h>
11107 #else
11108 # include <assert.h>
11109 #endif
11110                      Syntax error
11111 _ACEOF
11112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11114   ac_status=$?
11115   grep -v '^ *+' conftest.er1 >conftest.err
11116   rm -f conftest.er1
11117   cat conftest.err >&5
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); } >/dev/null; then
11120   if test -s conftest.err; then
11121     ac_cpp_err=$ac_c_preproc_warn_flag
11122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11123   else
11124     ac_cpp_err=
11125   fi
11126 else
11127   ac_cpp_err=yes
11128 fi
11129 if test -z "$ac_cpp_err"; then
11130   :
11131 else
11132   echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11134
11135   # Broken: fails on valid input.
11136 continue
11137 fi
11138 rm -f conftest.err conftest.$ac_ext
11139
11140   # OK, works on sane cases.  Now check whether non-existent headers
11141   # can be detected and how.
11142   cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h.  */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h.  */
11148 #include <ac_nonexistent.h>
11149 _ACEOF
11150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } >/dev/null; then
11158   if test -s conftest.err; then
11159     ac_cpp_err=$ac_c_preproc_warn_flag
11160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161   else
11162     ac_cpp_err=
11163   fi
11164 else
11165   ac_cpp_err=yes
11166 fi
11167 if test -z "$ac_cpp_err"; then
11168   # Broken: success on invalid input.
11169 continue
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174   # Passes both tests.
11175 ac_preproc_ok=:
11176 break
11177 fi
11178 rm -f conftest.err conftest.$ac_ext
11179
11180 done
11181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11182 rm -f conftest.err conftest.$ac_ext
11183 if $ac_preproc_ok; then
11184   break
11185 fi
11186
11187     done
11188     ac_cv_prog_CPP=$CPP
11189
11190 fi
11191   CPP=$ac_cv_prog_CPP
11192 else
11193   ac_cv_prog_CPP=$CPP
11194 fi
11195 echo "$as_me:$LINENO: result: $CPP" >&5
11196 echo "${ECHO_T}$CPP" >&6
11197 ac_preproc_ok=false
11198 for ac_c_preproc_warn_flag in '' yes
11199 do
11200   # Use a header file that comes with gcc, so configuring glibc
11201   # with a fresh cross-compiler works.
11202   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203   # <limits.h> exists even on freestanding compilers.
11204   # On the NeXT, cc -E runs the code through the compiler's parser,
11205   # not just through cpp. "Syntax error" is here to catch this case.
11206   cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #ifdef __STDC__
11213 # include <limits.h>
11214 #else
11215 # include <assert.h>
11216 #endif
11217                      Syntax error
11218 _ACEOF
11219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } >/dev/null; then
11227   if test -s conftest.err; then
11228     ac_cpp_err=$ac_c_preproc_warn_flag
11229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230   else
11231     ac_cpp_err=
11232   fi
11233 else
11234   ac_cpp_err=yes
11235 fi
11236 if test -z "$ac_cpp_err"; then
11237   :
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242   # Broken: fails on valid input.
11243 continue
11244 fi
11245 rm -f conftest.err conftest.$ac_ext
11246
11247   # OK, works on sane cases.  Now check whether non-existent headers
11248   # can be detected and how.
11249   cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 #include <ac_nonexistent.h>
11256 _ACEOF
11257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } >/dev/null; then
11265   if test -s conftest.err; then
11266     ac_cpp_err=$ac_c_preproc_warn_flag
11267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268   else
11269     ac_cpp_err=
11270   fi
11271 else
11272   ac_cpp_err=yes
11273 fi
11274 if test -z "$ac_cpp_err"; then
11275   # Broken: success on invalid input.
11276 continue
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281   # Passes both tests.
11282 ac_preproc_ok=:
11283 break
11284 fi
11285 rm -f conftest.err conftest.$ac_ext
11286
11287 done
11288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11289 rm -f conftest.err conftest.$ac_ext
11290 if $ac_preproc_ok; then
11291   :
11292 else
11293   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11294 See \`config.log' for more details." >&5
11295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11296 See \`config.log' for more details." >&2;}
11297    { (exit 1); exit 1; }; }
11298 fi
11299
11300 ac_ext=c
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11305
11306
11307 echo "$as_me:$LINENO: checking for egrep" >&5
11308 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11309 if test "${ac_cv_prog_egrep+set}" = set; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11313     then ac_cv_prog_egrep='grep -E'
11314     else ac_cv_prog_egrep='egrep'
11315     fi
11316 fi
11317 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11318 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11319  EGREP=$ac_cv_prog_egrep
11320
11321
11322 if test $ac_cv_c_compiler_gnu = yes; then
11323     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11324 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11325 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328     ac_pattern="Autoconf.*'x'"
11329   cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <sgtty.h>
11336 Autoconf TIOCGETP
11337 _ACEOF
11338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11339   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11340   ac_cv_prog_gcc_traditional=yes
11341 else
11342   ac_cv_prog_gcc_traditional=no
11343 fi
11344 rm -f conftest*
11345
11346
11347   if test $ac_cv_prog_gcc_traditional = no; then
11348     cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h.  */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h.  */
11354 #include <termio.h>
11355 Autoconf TCGETA
11356 _ACEOF
11357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11358   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11359   ac_cv_prog_gcc_traditional=yes
11360 fi
11361 rm -f conftest*
11362
11363   fi
11364 fi
11365 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11366 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11367   if test $ac_cv_prog_gcc_traditional = yes; then
11368     CC="$CC -traditional"
11369   fi
11370 fi
11371
11372
11373
11374
11375 ac_ext=cc
11376 ac_cpp='$CXXCPP $CPPFLAGS'
11377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11380
11381
11382 CXXFLAGS=${CXXFLAGS:=}
11383 ac_ext=cc
11384 ac_cpp='$CXXCPP $CPPFLAGS'
11385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11388 if test -n "$ac_tool_prefix"; then
11389   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11390   do
11391     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11393 echo "$as_me:$LINENO: checking for $ac_word" >&5
11394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11395 if test "${ac_cv_prog_CXX+set}" = set; then
11396   echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398   if test -n "$CXX"; then
11399   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11400 else
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11403 do
11404   IFS=$as_save_IFS
11405   test -z "$as_dir" && as_dir=.
11406   for ac_exec_ext in '' $ac_executable_extensions; do
11407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11408     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11410     break 2
11411   fi
11412 done
11413 done
11414
11415 fi
11416 fi
11417 CXX=$ac_cv_prog_CXX
11418 if test -n "$CXX"; then
11419   echo "$as_me:$LINENO: result: $CXX" >&5
11420 echo "${ECHO_T}$CXX" >&6
11421 else
11422   echo "$as_me:$LINENO: result: no" >&5
11423 echo "${ECHO_T}no" >&6
11424 fi
11425
11426     test -n "$CXX" && break
11427   done
11428 fi
11429 if test -z "$CXX"; then
11430   ac_ct_CXX=$CXX
11431   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11432 do
11433   # Extract the first word of "$ac_prog", so it can be a program name with args.
11434 set dummy $ac_prog; ac_word=$2
11435 echo "$as_me:$LINENO: checking for $ac_word" >&5
11436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   if test -n "$ac_ct_CXX"; then
11441   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446   IFS=$as_save_IFS
11447   test -z "$as_dir" && as_dir=.
11448   for ac_exec_ext in '' $ac_executable_extensions; do
11449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11450     ac_cv_prog_ac_ct_CXX="$ac_prog"
11451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11452     break 2
11453   fi
11454 done
11455 done
11456
11457 fi
11458 fi
11459 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11460 if test -n "$ac_ct_CXX"; then
11461   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11462 echo "${ECHO_T}$ac_ct_CXX" >&6
11463 else
11464   echo "$as_me:$LINENO: result: no" >&5
11465 echo "${ECHO_T}no" >&6
11466 fi
11467
11468   test -n "$ac_ct_CXX" && break
11469 done
11470 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11471
11472   CXX=$ac_ct_CXX
11473 fi
11474
11475
11476 # Provide some information about the compiler.
11477 echo "$as_me:$LINENO:" \
11478      "checking for C++ compiler version" >&5
11479 ac_compiler=`set X $ac_compile; echo $2`
11480 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11481   (eval $ac_compiler --version </dev/null >&5) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }
11485 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11486   (eval $ac_compiler -v </dev/null >&5) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }
11490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11491   (eval $ac_compiler -V </dev/null >&5) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }
11495
11496 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11497 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11498 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507
11508 int
11509 main ()
11510 {
11511 #ifndef __GNUC__
11512        choke me
11513 #endif
11514
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521   (eval $ac_compile) 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -z "$ac_cxx_werror_flag"
11529                          || test ! -s conftest.err'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; } &&
11535          { ac_try='test -s conftest.$ac_objext'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541   ac_compiler_gnu=yes
11542 else
11543   echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546 ac_compiler_gnu=no
11547 fi
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11549 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11550
11551 fi
11552 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11553 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11554 GXX=`test $ac_compiler_gnu = yes && echo yes`
11555 ac_test_CXXFLAGS=${CXXFLAGS+set}
11556 ac_save_CXXFLAGS=$CXXFLAGS
11557 CXXFLAGS="-g"
11558 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11559 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11560 if test "${ac_cv_prog_cxx_g+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569
11570 int
11571 main ()
11572 {
11573
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580   (eval $ac_compile) 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
11584   cat conftest.err >&5
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } &&
11587          { ac_try='test -z "$ac_cxx_werror_flag"
11588                          || test ! -s conftest.err'
11589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590   (eval $ac_try) 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; } &&
11594          { ac_try='test -s conftest.$ac_objext'
11595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596   (eval $ac_try) 2>&5
11597   ac_status=$?
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); }; }; then
11600   ac_cv_prog_cxx_g=yes
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 ac_cv_prog_cxx_g=no
11606 fi
11607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11608 fi
11609 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11610 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11611 if test "$ac_test_CXXFLAGS" = set; then
11612   CXXFLAGS=$ac_save_CXXFLAGS
11613 elif test $ac_cv_prog_cxx_g = yes; then
11614   if test "$GXX" = yes; then
11615     CXXFLAGS="-g -O2"
11616   else
11617     CXXFLAGS="-g"
11618   fi
11619 else
11620   if test "$GXX" = yes; then
11621     CXXFLAGS="-O2"
11622   else
11623     CXXFLAGS=
11624   fi
11625 fi
11626 for ac_declaration in \
11627    '' \
11628    'extern "C" void std::exit (int) throw (); using std::exit;' \
11629    'extern "C" void std::exit (int); using std::exit;' \
11630    'extern "C" void exit (int) throw ();' \
11631    'extern "C" void exit (int);' \
11632    'void exit (int);'
11633 do
11634   cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640 $ac_declaration
11641 #include <stdlib.h>
11642 int
11643 main ()
11644 {
11645 exit (42);
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652   (eval $ac_compile) 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -z "$ac_cxx_werror_flag"
11660                          || test ! -s conftest.err'
11661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662   (eval $ac_try) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; } &&
11666          { ac_try='test -s conftest.$ac_objext'
11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668   (eval $ac_try) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; }; then
11672   :
11673 else
11674   echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 continue
11678 fi
11679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 $ac_declaration
11687 int
11688 main ()
11689 {
11690 exit (42);
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697   (eval $ac_compile) 2>conftest.er1
11698   ac_status=$?
11699   grep -v '^ *+' conftest.er1 >conftest.err
11700   rm -f conftest.er1
11701   cat conftest.err >&5
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } &&
11704          { ac_try='test -z "$ac_cxx_werror_flag"
11705                          || test ! -s conftest.err'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; } &&
11711          { ac_try='test -s conftest.$ac_objext'
11712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713   (eval $ac_try) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; }; then
11717   break
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 fi
11723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11724 done
11725 rm -f conftest*
11726 if test -n "$ac_declaration"; then
11727   echo '#ifdef __cplusplus' >>confdefs.h
11728   echo $ac_declaration      >>confdefs.h
11729   echo '#endif'             >>confdefs.h
11730 fi
11731
11732 ac_ext=cc
11733 ac_cpp='$CXXCPP $CPPFLAGS'
11734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11737
11738
11739 ac_ext=c
11740 ac_cpp='$CPP $CPPFLAGS'
11741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11744
11745
11746 echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11747 echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11748 GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11749 if test "$GCC" = "yes" ; then
11750   echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11751         sed -n '1,/End of search list\./p' | \
11752         grep '^ */usr/local/include$' 2>&1 /dev/null \
11753   && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11754 fi
11755 echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11756 echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11757
11758 if test -n "$ac_tool_prefix"; then
11759   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11760 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11761 echo "$as_me:$LINENO: checking for $ac_word" >&5
11762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11763 if test "${ac_cv_prog_RANLIB+set}" = set; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   if test -n "$RANLIB"; then
11767   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11768 else
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11771 do
11772   IFS=$as_save_IFS
11773   test -z "$as_dir" && as_dir=.
11774   for ac_exec_ext in '' $ac_executable_extensions; do
11775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11776     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11778     break 2
11779   fi
11780 done
11781 done
11782
11783 fi
11784 fi
11785 RANLIB=$ac_cv_prog_RANLIB
11786 if test -n "$RANLIB"; then
11787   echo "$as_me:$LINENO: result: $RANLIB" >&5
11788 echo "${ECHO_T}$RANLIB" >&6
11789 else
11790   echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6
11792 fi
11793
11794 fi
11795 if test -z "$ac_cv_prog_RANLIB"; then
11796   ac_ct_RANLIB=$RANLIB
11797   # Extract the first word of "ranlib", so it can be a program name with args.
11798 set dummy ranlib; ac_word=$2
11799 echo "$as_me:$LINENO: checking for $ac_word" >&5
11800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   if test -n "$ac_ct_RANLIB"; then
11805   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11806 else
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808 for as_dir in $PATH
11809 do
11810   IFS=$as_save_IFS
11811   test -z "$as_dir" && as_dir=.
11812   for ac_exec_ext in '' $ac_executable_extensions; do
11813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11814     ac_cv_prog_ac_ct_RANLIB="ranlib"
11815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11816     break 2
11817   fi
11818 done
11819 done
11820
11821   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11822 fi
11823 fi
11824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11825 if test -n "$ac_ct_RANLIB"; then
11826   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11827 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11828 else
11829   echo "$as_me:$LINENO: result: no" >&5
11830 echo "${ECHO_T}no" >&6
11831 fi
11832
11833   RANLIB=$ac_ct_RANLIB
11834 else
11835   RANLIB="$ac_cv_prog_RANLIB"
11836 fi
11837
11838
11839 # Extract the first word of "ar", so it can be a program name with args.
11840 set dummy ar; ac_word=$2
11841 echo "$as_me:$LINENO: checking for $ac_word" >&5
11842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11843 if test "${ac_cv_prog_AR+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   if test -n "$AR"; then
11847   ac_cv_prog_AR="$AR" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854   for ac_exec_ext in '' $ac_executable_extensions; do
11855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856     ac_cv_prog_AR="ar"
11857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11858     break 2
11859   fi
11860 done
11861 done
11862
11863 fi
11864 fi
11865 AR=$ac_cv_prog_AR
11866 if test -n "$AR"; then
11867   echo "$as_me:$LINENO: result: $AR" >&5
11868 echo "${ECHO_T}$AR" >&6
11869 else
11870   echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6
11872 fi
11873
11874 if test "x$AR" = "x" ; then
11875     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11876 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11877    { (exit 1); exit 1; }; }
11878 fi
11879
11880 # Find a good install program.  We prefer a C program (faster),
11881 # so one script is as good as another.  But avoid the broken or
11882 # incompatible versions:
11883 # SysV /etc/install, /usr/sbin/install
11884 # SunOS /usr/etc/install
11885 # IRIX /sbin/install
11886 # AIX /bin/install
11887 # AmigaOS /C/install, which installs bootblocks on floppy discs
11888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11891 # OS/2's system install, which has a completely different semantic
11892 # ./install, which can be erroneously created by make from ./install.sh.
11893 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11894 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11895 if test -z "$INSTALL"; then
11896 if test "${ac_cv_path_install+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11901 do
11902   IFS=$as_save_IFS
11903   test -z "$as_dir" && as_dir=.
11904   # Account for people who put trailing slashes in PATH elements.
11905 case $as_dir/ in
11906   ./ | .// | /cC/* | \
11907   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11908   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11909   /usr/ucb/* ) ;;
11910   *)
11911     # OSF1 and SCO ODT 3.0 have their own names for install.
11912     # Don't use installbsd from OSF since it installs stuff as root
11913     # by default.
11914     for ac_prog in ginstall scoinst install; do
11915       for ac_exec_ext in '' $ac_executable_extensions; do
11916         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11917           if test $ac_prog = install &&
11918             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11919             # AIX install.  It has an incompatible calling convention.
11920             :
11921           elif test $ac_prog = install &&
11922             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11923             # program-specific install script used by HP pwplus--don't use.
11924             :
11925           else
11926             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11927             break 3
11928           fi
11929         fi
11930       done
11931     done
11932     ;;
11933 esac
11934 done
11935
11936
11937 fi
11938   if test "${ac_cv_path_install+set}" = set; then
11939     INSTALL=$ac_cv_path_install
11940   else
11941     # As a last resort, use the slow shell script.  We don't cache a
11942     # path for INSTALL within a source directory, because that will
11943     # break other packages using the cache if that directory is
11944     # removed, or if the path is relative.
11945     INSTALL=$ac_install_sh
11946   fi
11947 fi
11948 echo "$as_me:$LINENO: result: $INSTALL" >&5
11949 echo "${ECHO_T}$INSTALL" >&6
11950
11951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11952 # It thinks the first close brace ends the variable substitution.
11953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11954
11955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11956
11957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11958
11959
11960 case ${INSTALL} in
11961   /* ) # Absolute
11962      ;;
11963   ?:* ) # Drive letter, considered as absolute.
11964      ;;
11965   *)
11966      INSTALL=`pwd`/${INSTALL} ;;
11967 esac
11968
11969 case ${host} in
11970     *-hp-hpux* )
11971         INSTALL_DIR="mkdir"
11972         ;;
11973
11974     *)  INSTALL_DIR="$INSTALL -d"
11975         ;;
11976 esac
11977
11978
11979 case "${host}" in
11980
11981                 powerpc-*-darwin* )
11982         INSTALL_PROGRAM="cp -fp"
11983         INSTALL_DATA="cp -fp"
11984         ;;
11985     *)
11986         ;;
11987 esac
11988
11989 # Extract the first word of "strip", so it can be a program name with args.
11990 set dummy strip; ac_word=$2
11991 echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11993 if test "${ac_cv_prog_STRIP+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   if test -n "$STRIP"; then
11997   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004   for ac_exec_ext in '' $ac_executable_extensions; do
12005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006     ac_cv_prog_STRIP="strip"
12007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011 done
12012
12013   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12014 fi
12015 fi
12016 STRIP=$ac_cv_prog_STRIP
12017 if test -n "$STRIP"; then
12018   echo "$as_me:$LINENO: result: $STRIP" >&5
12019 echo "${ECHO_T}$STRIP" >&6
12020 else
12021   echo "$as_me:$LINENO: result: no" >&5
12022 echo "${ECHO_T}no" >&6
12023 fi
12024
12025
12026 echo "$as_me:$LINENO: checking if make is GNU make" >&5
12027 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12028 if test "${wx_cv_prog_makeisgnu+set}" = set; then
12029   echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031
12032     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12033             egrep -s GNU > /dev/null); then
12034         wx_cv_prog_makeisgnu="yes"
12035     else
12036         wx_cv_prog_makeisgnu="no"
12037     fi
12038
12039 fi
12040 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12041 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12042
12043 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12044     IF_GNU_MAKE=""
12045 else
12046     IF_GNU_MAKE="#"
12047 fi
12048
12049
12050
12051 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12052 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12053 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12054 if test "${wx_cv_prog_makevpath+set}" = set; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057
12058 cat - << EOF > confMake
12059 check : file
12060         cp \$? \$@
12061         cp \$? final_file
12062 EOF
12063
12064 if test ! -d sub ; then
12065   mkdir sub
12066 fi
12067 echo dummy > sub/file
12068 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12069 RESULT=$?
12070 rm -f sub/file check final_file confMake
12071 rmdir sub
12072 if test "$RESULT" = 0; then
12073   wx_cv_prog_makevpath="yes"
12074 else
12075   wx_cv_prog_makevpath="no"
12076 fi
12077
12078 fi
12079 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12080 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12081
12082 if test "x$wx_cv_prog_makevpath" != "xyes"; then
12083 { { echo "$as_me:$LINENO: error:
12084 You need a make-utility that is able to use the variable
12085 VPATH correctly.
12086 If your version of make does not support VPATH correctly,
12087 please install GNU-make (possibly as gmake), and start
12088 configure with the following command:
12089 export MAKE=gmake; ./configure  for sh-type shells
12090 setenv MAKE gmake; ./configure  for csh-type shells
12091 Also please do remember to use gmake in this case every time
12092 you are trying to compile.
12093 " >&5
12094 echo "$as_me: error:
12095 You need a make-utility that is able to use the variable
12096 VPATH correctly.
12097 If your version of make does not support VPATH correctly,
12098 please install GNU-make (possibly as gmake), and start
12099 configure with the following command:
12100 export MAKE=gmake; ./configure  for sh-type shells
12101 setenv MAKE gmake; ./configure  for csh-type shells
12102 Also please do remember to use gmake in this case every time
12103 you are trying to compile.
12104 " >&2;}
12105    { (exit 1); exit 1; }; }
12106 fi fi
12107 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12108 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12109 LN_S=$as_ln_s
12110 if test "$LN_S" = "ln -s"; then
12111   echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12113 else
12114   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12115 echo "${ECHO_T}no, using $LN_S" >&6
12116 fi
12117
12118
12119
12120 case "${host}" in
12121   *-pc-os2_emx | *-pc-os2-emx )
12122                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12123                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12124 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12125 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lcExt  $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136
12137 /* Override any gcc2 internal prototype to avoid an error.  */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 /* We use char because int might match the return type of a gcc2
12142    builtin and then its argument prototype would still apply.  */
12143 char drand48 ();
12144 int
12145 main ()
12146 {
12147 drand48 ();
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154   (eval $ac_link) 2>conftest.er1
12155   ac_status=$?
12156   grep -v '^ *+' conftest.er1 >conftest.err
12157   rm -f conftest.er1
12158   cat conftest.err >&5
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } &&
12161          { ac_try='test -z "$ac_c_werror_flag"
12162                          || test ! -s conftest.err'
12163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164   (eval $ac_try) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; } &&
12168          { ac_try='test -s conftest$ac_exeext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_cv_lib_cExt_drand48=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 ac_cv_lib_cExt_drand48=no
12180 fi
12181 rm -f conftest.err conftest.$ac_objext \
12182       conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12184 fi
12185 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12186 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12187 if test $ac_cv_lib_cExt_drand48 = yes; then
12188   LIBS="$LIBS -lcExt"
12189 fi
12190
12191       else
12192                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12193       fi
12194       echo "$as_me:$LINENO: checking for gcc version" >&5
12195 echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12196 if test "${wx_cv_gccversion+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199
12200           cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206
12207 int
12208 main ()
12209 {
12210
12211                   #if (__GNUC__ < 3)
12212                       #error old gcc
12213                   #endif
12214
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221   (eval $ac_compile) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_c_werror_flag"
12229                          || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest.$ac_objext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241
12242                   cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248
12249 int
12250 main ()
12251 {
12252
12253                           #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12254                               #error intermediate gcc
12255                           #endif
12256
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263   (eval $ac_compile) 2>conftest.er1
12264   ac_status=$?
12265   grep -v '^ *+' conftest.er1 >conftest.err
12266   rm -f conftest.er1
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -z "$ac_c_werror_flag"
12271                          || test ! -s conftest.err'
12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273   (eval $ac_try) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; } &&
12277          { ac_try='test -s conftest.$ac_objext'
12278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279   (eval $ac_try) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; }; then
12283
12284                          wx_cv_gccversion=Innotek
12285
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290
12291                          wx_cv_gccversion=3
12292
12293
12294 fi
12295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301
12302                   wx_cv_gccversion=2
12303
12304
12305 fi
12306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12307
12308 fi
12309 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12310 echo "${ECHO_T}$wx_cv_gccversion" >&6
12311       if test "$wx_cv_gccversion" = "2"; then
12312           LIBS="$LIBS -lstdcpp"
12313           LDFLAGS="$LDFLAGS -Zsysv-signals"
12314       else
12315           if test "$wx_cv_gccversion" = "3"; then
12316               LIBS="$LIBS -lstdcxx"
12317               LDFLAGS="$LDFLAGS -Zsysv-signals"
12318           else
12319               LIBS="$LIBS -lstdc++"
12320           fi
12321       fi
12322       if test "$wxUSE_OMF" = "yes"; then
12323         LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12324       fi
12325         ;;
12326   *)
12327
12328
12329
12330       ac_ext=cc
12331 ac_cpp='$CXXCPP $CPPFLAGS'
12332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12335
12336
12337
12338 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12339 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12340 if test "${ac_cv_string_strcasecmp+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343
12344           cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350
12351               #include <string.h>
12352
12353 int
12354 main ()
12355 {
12356
12357                   strcasecmp("foo", "bar");
12358
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365   (eval $ac_link) 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -z "$ac_cxx_werror_flag"
12373                          || test ! -s conftest.err'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; } &&
12379          { ac_try='test -s conftest$ac_exeext'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385   ac_cv_string_strcasecmp=yes
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_string_strcasecmp=no
12391
12392 fi
12393 rm -f conftest.err conftest.$ac_objext \
12394       conftest$ac_exeext conftest.$ac_ext
12395
12396 fi
12397 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12398 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12399
12400       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12401           cat >>confdefs.h <<\_ACEOF
12402 #define HAVE_STRCASECMP_IN_STRING_H 1
12403 _ACEOF
12404
12405       else
12406           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12407 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12408 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411
12412               cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418
12419                   #include <strings.h>
12420
12421 int
12422 main ()
12423 {
12424
12425                       strcasecmp("foo", "bar");
12426
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433   (eval $ac_link) 2>conftest.er1
12434   ac_status=$?
12435   grep -v '^ *+' conftest.er1 >conftest.err
12436   rm -f conftest.er1
12437   cat conftest.err >&5
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); } &&
12440          { ac_try='test -z "$ac_cxx_werror_flag"
12441                          || test ! -s conftest.err'
12442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443   (eval $ac_try) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; } &&
12447          { ac_try='test -s conftest$ac_exeext'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_strings_strcasecmp=yes
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 ac_cv_strings_strcasecmp=no
12459
12460 fi
12461 rm -f conftest.err conftest.$ac_objext \
12462       conftest$ac_exeext conftest.$ac_ext
12463
12464 fi
12465 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12466 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12467
12468           if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12469               cat >>confdefs.h <<\_ACEOF
12470 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12471 _ACEOF
12472
12473           else
12474               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12475 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12476    { (exit 1); exit 1; }; }
12477           fi
12478       fi
12479
12480       ac_ext=c
12481 ac_cpp='$CPP $CPPFLAGS'
12482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485
12486         ;;
12487 esac
12488
12489
12490 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12491 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12492 if test "${ac_cv_header_stdc+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   cat >conftest.$ac_ext <<_ACEOF
12496 /* confdefs.h.  */
12497 _ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h.  */
12501 #include <stdlib.h>
12502 #include <stdarg.h>
12503 #include <string.h>
12504 #include <float.h>
12505
12506 int
12507 main ()
12508 {
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest.$ac_objext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536   ac_cv_header_stdc=yes
12537 else
12538   echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 ac_cv_header_stdc=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544
12545 if test $ac_cv_header_stdc = yes; then
12546   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12547   cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553 #include <string.h>
12554
12555 _ACEOF
12556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12557   $EGREP "memchr" >/dev/null 2>&1; then
12558   :
12559 else
12560   ac_cv_header_stdc=no
12561 fi
12562 rm -f conftest*
12563
12564 fi
12565
12566 if test $ac_cv_header_stdc = yes; then
12567   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12568   cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574 #include <stdlib.h>
12575
12576 _ACEOF
12577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12578   $EGREP "free" >/dev/null 2>&1; then
12579   :
12580 else
12581   ac_cv_header_stdc=no
12582 fi
12583 rm -f conftest*
12584
12585 fi
12586
12587 if test $ac_cv_header_stdc = yes; then
12588   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12589   if test "$cross_compiling" = yes; then
12590   :
12591 else
12592   cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 #include <ctype.h>
12599 #if ((' ' & 0x0FF) == 0x020)
12600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12602 #else
12603 # define ISLOWER(c) \
12604                    (('a' <= (c) && (c) <= 'i') \
12605                      || ('j' <= (c) && (c) <= 'r') \
12606                      || ('s' <= (c) && (c) <= 'z'))
12607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12608 #endif
12609
12610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12611 int
12612 main ()
12613 {
12614   int i;
12615   for (i = 0; i < 256; i++)
12616     if (XOR (islower (i), ISLOWER (i))
12617         || toupper (i) != TOUPPER (i))
12618       exit(2);
12619   exit (0);
12620 }
12621 _ACEOF
12622 rm -f conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624   (eval $ac_link) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; }; then
12633   :
12634 else
12635   echo "$as_me: program exited with status $ac_status" >&5
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ( exit $ac_status )
12640 ac_cv_header_stdc=no
12641 fi
12642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12643 fi
12644 fi
12645 fi
12646 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12647 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12648 if test $ac_cv_header_stdc = yes; then
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define STDC_HEADERS 1
12652 _ACEOF
12653
12654 fi
12655
12656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12667                   inttypes.h stdint.h unistd.h
12668 do
12669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12670 echo "$as_me:$LINENO: checking for $ac_header" >&5
12671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12673   echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675   cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 $ac_includes_default
12682
12683 #include <$ac_header>
12684 _ACEOF
12685 rm -f conftest.$ac_objext
12686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12687   (eval $ac_compile) 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } &&
12694          { ac_try='test -z "$ac_c_werror_flag"
12695                          || test ! -s conftest.err'
12696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697   (eval $ac_try) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; } &&
12701          { ac_try='test -s conftest.$ac_objext'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; }; then
12707   eval "$as_ac_Header=yes"
12708 else
12709   echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12711
12712 eval "$as_ac_Header=no"
12713 fi
12714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12715 fi
12716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12719   cat >>confdefs.h <<_ACEOF
12720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12721 _ACEOF
12722
12723 fi
12724
12725 done
12726
12727
12728
12729 for ac_header in stdlib.h
12730 do
12731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12733   echo "$as_me:$LINENO: checking for $ac_header" >&5
12734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 fi
12738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12740 else
12741   # Is the header compilable?
12742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 $ac_includes_default
12751 #include <$ac_header>
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755   (eval $ac_compile) 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } &&
12762          { ac_try='test -z "$ac_c_werror_flag"
12763                          || test ! -s conftest.err'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; } &&
12769          { ac_try='test -s conftest.$ac_objext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   ac_header_compiler=yes
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_header_compiler=no
12781 fi
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12784 echo "${ECHO_T}$ac_header_compiler" >&6
12785
12786 # Is the header present?
12787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795 #include <$ac_header>
12796 _ACEOF
12797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12799   ac_status=$?
12800   grep -v '^ *+' conftest.er1 >conftest.err
12801   rm -f conftest.er1
12802   cat conftest.err >&5
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } >/dev/null; then
12805   if test -s conftest.err; then
12806     ac_cpp_err=$ac_c_preproc_warn_flag
12807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12808   else
12809     ac_cpp_err=
12810   fi
12811 else
12812   ac_cpp_err=yes
12813 fi
12814 if test -z "$ac_cpp_err"; then
12815   ac_header_preproc=yes
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820   ac_header_preproc=no
12821 fi
12822 rm -f conftest.err conftest.$ac_ext
12823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12824 echo "${ECHO_T}$ac_header_preproc" >&6
12825
12826 # So?  What about this header?
12827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12828   yes:no: )
12829     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12833     ac_header_preproc=yes
12834     ;;
12835   no:yes:* )
12836     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12838     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12839 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12840     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12842     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12843 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12846     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12848     (
12849       cat <<\_ASBOX
12850 ## ----------------------------------------- ##
12851 ## Report this to wx-dev@lists.wxwindows.org ##
12852 ## ----------------------------------------- ##
12853 _ASBOX
12854     ) |
12855       sed "s/^/$as_me: WARNING:     /" >&2
12856     ;;
12857 esac
12858 echo "$as_me:$LINENO: checking for $ac_header" >&5
12859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12861   echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863   eval "$as_ac_Header=\$ac_header_preproc"
12864 fi
12865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12867
12868 fi
12869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12870   cat >>confdefs.h <<_ACEOF
12871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12872 _ACEOF
12873
12874 fi
12875
12876 done
12877
12878
12879 for ac_header in malloc.h
12880 do
12881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883   echo "$as_me:$LINENO: checking for $ac_header" >&5
12884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 fi
12888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12890 else
12891   # Is the header compilable?
12892 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900 $ac_includes_default
12901 #include <$ac_header>
12902 _ACEOF
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905   (eval $ac_compile) 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -z "$ac_c_werror_flag"
12913                          || test ! -s conftest.err'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_header_compiler=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_header_compiler=no
12931 fi
12932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12934 echo "${ECHO_T}$ac_header_compiler" >&6
12935
12936 # Is the header present?
12937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945 #include <$ac_header>
12946 _ACEOF
12947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12949   ac_status=$?
12950   grep -v '^ *+' conftest.er1 >conftest.err
12951   rm -f conftest.er1
12952   cat conftest.err >&5
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); } >/dev/null; then
12955   if test -s conftest.err; then
12956     ac_cpp_err=$ac_c_preproc_warn_flag
12957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12958   else
12959     ac_cpp_err=
12960   fi
12961 else
12962   ac_cpp_err=yes
12963 fi
12964 if test -z "$ac_cpp_err"; then
12965   ac_header_preproc=yes
12966 else
12967   echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12969
12970   ac_header_preproc=no
12971 fi
12972 rm -f conftest.err conftest.$ac_ext
12973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12974 echo "${ECHO_T}$ac_header_preproc" >&6
12975
12976 # So?  What about this header?
12977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12978   yes:no: )
12979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12983     ac_header_preproc=yes
12984     ;;
12985   no:yes:* )
12986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12998     (
12999       cat <<\_ASBOX
13000 ## ----------------------------------------- ##
13001 ## Report this to wx-dev@lists.wxwindows.org ##
13002 ## ----------------------------------------- ##
13003 _ASBOX
13004     ) |
13005       sed "s/^/$as_me: WARNING:     /" >&2
13006     ;;
13007 esac
13008 echo "$as_me:$LINENO: checking for $ac_header" >&5
13009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13011   echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013   eval "$as_ac_Header=\$ac_header_preproc"
13014 fi
13015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13017
13018 fi
13019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13020   cat >>confdefs.h <<_ACEOF
13021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13022 _ACEOF
13023
13024 fi
13025
13026 done
13027
13028
13029 for ac_header in unistd.h
13030 do
13031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13033   echo "$as_me:$LINENO: checking for $ac_header" >&5
13034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13036   echo $ECHO_N "(cached) $ECHO_C" >&6
13037 fi
13038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13040 else
13041   # Is the header compilable?
13042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 $ac_includes_default
13051 #include <$ac_header>
13052 _ACEOF
13053 rm -f conftest.$ac_objext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055   (eval $ac_compile) 2>conftest.er1
13056   ac_status=$?
13057   grep -v '^ *+' conftest.er1 >conftest.err
13058   rm -f conftest.er1
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } &&
13062          { ac_try='test -z "$ac_c_werror_flag"
13063                          || test ! -s conftest.err'
13064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065   (eval $ac_try) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; } &&
13069          { ac_try='test -s conftest.$ac_objext'
13070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071   (eval $ac_try) 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; }; then
13075   ac_header_compiler=yes
13076 else
13077   echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080 ac_header_compiler=no
13081 fi
13082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13084 echo "${ECHO_T}$ac_header_compiler" >&6
13085
13086 # Is the header present?
13087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 #include <$ac_header>
13096 _ACEOF
13097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13099   ac_status=$?
13100   grep -v '^ *+' conftest.er1 >conftest.err
13101   rm -f conftest.er1
13102   cat conftest.err >&5
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } >/dev/null; then
13105   if test -s conftest.err; then
13106     ac_cpp_err=$ac_c_preproc_warn_flag
13107     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13108   else
13109     ac_cpp_err=
13110   fi
13111 else
13112   ac_cpp_err=yes
13113 fi
13114 if test -z "$ac_cpp_err"; then
13115   ac_header_preproc=yes
13116 else
13117   echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120   ac_header_preproc=no
13121 fi
13122 rm -f conftest.err conftest.$ac_ext
13123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13124 echo "${ECHO_T}$ac_header_preproc" >&6
13125
13126 # So?  What about this header?
13127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13128   yes:no: )
13129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13133     ac_header_preproc=yes
13134     ;;
13135   no:yes:* )
13136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13148     (
13149       cat <<\_ASBOX
13150 ## ----------------------------------------- ##
13151 ## Report this to wx-dev@lists.wxwindows.org ##
13152 ## ----------------------------------------- ##
13153 _ASBOX
13154     ) |
13155       sed "s/^/$as_me: WARNING:     /" >&2
13156     ;;
13157 esac
13158 echo "$as_me:$LINENO: checking for $ac_header" >&5
13159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13161   echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163   eval "$as_ac_Header=\$ac_header_preproc"
13164 fi
13165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13167
13168 fi
13169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13170   cat >>confdefs.h <<_ACEOF
13171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13172 _ACEOF
13173
13174 fi
13175
13176 done
13177
13178
13179 for ac_header in wchar.h
13180 do
13181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13183   echo "$as_me:$LINENO: checking for $ac_header" >&5
13184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 fi
13188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13190 else
13191   # Is the header compilable?
13192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h.  */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h.  */
13200 $ac_includes_default
13201 #include <$ac_header>
13202 _ACEOF
13203 rm -f conftest.$ac_objext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13205   (eval $ac_compile) 2>conftest.er1
13206   ac_status=$?
13207   grep -v '^ *+' conftest.er1 >conftest.err
13208   rm -f conftest.er1
13209   cat conftest.err >&5
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } &&
13212          { ac_try='test -z "$ac_c_werror_flag"
13213                          || test ! -s conftest.err'
13214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215   (eval $ac_try) 2>&5
13216   ac_status=$?
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); }; } &&
13219          { ac_try='test -s conftest.$ac_objext'
13220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221   (eval $ac_try) 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); }; }; then
13225   ac_header_compiler=yes
13226 else
13227   echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13229
13230 ac_header_compiler=no
13231 fi
13232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13234 echo "${ECHO_T}$ac_header_compiler" >&6
13235
13236 # Is the header present?
13237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h.  */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h.  */
13245 #include <$ac_header>
13246 _ACEOF
13247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } >/dev/null; then
13255   if test -s conftest.err; then
13256     ac_cpp_err=$ac_c_preproc_warn_flag
13257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13258   else
13259     ac_cpp_err=
13260   fi
13261 else
13262   ac_cpp_err=yes
13263 fi
13264 if test -z "$ac_cpp_err"; then
13265   ac_header_preproc=yes
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270   ac_header_preproc=no
13271 fi
13272 rm -f conftest.err conftest.$ac_ext
13273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13274 echo "${ECHO_T}$ac_header_preproc" >&6
13275
13276 # So?  What about this header?
13277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13278   yes:no: )
13279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13283     ac_header_preproc=yes
13284     ;;
13285   no:yes:* )
13286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13288     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13289 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13290     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13292     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13293 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13296     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13298     (
13299       cat <<\_ASBOX
13300 ## ----------------------------------------- ##
13301 ## Report this to wx-dev@lists.wxwindows.org ##
13302 ## ----------------------------------------- ##
13303 _ASBOX
13304     ) |
13305       sed "s/^/$as_me: WARNING:     /" >&2
13306     ;;
13307 esac
13308 echo "$as_me:$LINENO: checking for $ac_header" >&5
13309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13311   echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313   eval "$as_ac_Header=\$ac_header_preproc"
13314 fi
13315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13317
13318 fi
13319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13320   cat >>confdefs.h <<_ACEOF
13321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13322 _ACEOF
13323
13324 fi
13325
13326 done
13327
13328
13329 if test "$ac_cv_header_wchar_h" != "yes"; then
13330
13331 for ac_header in wcstr.h
13332 do
13333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13335   echo "$as_me:$LINENO: checking for $ac_header" >&5
13336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 fi
13340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13342 else
13343   # Is the header compilable?
13344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h.  */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h.  */
13352 $ac_includes_default
13353 #include <$ac_header>
13354 _ACEOF
13355 rm -f conftest.$ac_objext
13356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357   (eval $ac_compile) 2>conftest.er1
13358   ac_status=$?
13359   grep -v '^ *+' conftest.er1 >conftest.err
13360   rm -f conftest.er1
13361   cat conftest.err >&5
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -z "$ac_c_werror_flag"
13365                          || test ! -s conftest.err'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; } &&
13371          { ac_try='test -s conftest.$ac_objext'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   ac_header_compiler=yes
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382 ac_header_compiler=no
13383 fi
13384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386 echo "${ECHO_T}$ac_header_compiler" >&6
13387
13388 # Is the header present?
13389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h.  */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h.  */
13397 #include <$ac_header>
13398 _ACEOF
13399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13401   ac_status=$?
13402   grep -v '^ *+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } >/dev/null; then
13407   if test -s conftest.err; then
13408     ac_cpp_err=$ac_c_preproc_warn_flag
13409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13410   else
13411     ac_cpp_err=
13412   fi
13413 else
13414   ac_cpp_err=yes
13415 fi
13416 if test -z "$ac_cpp_err"; then
13417   ac_header_preproc=yes
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422   ac_header_preproc=no
13423 fi
13424 rm -f conftest.err conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426 echo "${ECHO_T}$ac_header_preproc" >&6
13427
13428 # So?  What about this header?
13429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13430   yes:no: )
13431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13435     ac_header_preproc=yes
13436     ;;
13437   no:yes:* )
13438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13450     (
13451       cat <<\_ASBOX
13452 ## ----------------------------------------- ##
13453 ## Report this to wx-dev@lists.wxwindows.org ##
13454 ## ----------------------------------------- ##
13455 _ASBOX
13456     ) |
13457       sed "s/^/$as_me: WARNING:     /" >&2
13458     ;;
13459 esac
13460 echo "$as_me:$LINENO: checking for $ac_header" >&5
13461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465   eval "$as_ac_Header=\$ac_header_preproc"
13466 fi
13467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13469
13470 fi
13471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13472   cat >>confdefs.h <<_ACEOF
13473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13474 _ACEOF
13475
13476 fi
13477
13478 done
13479
13480 fi
13481
13482
13483 for ac_header in fnmatch.h
13484 do
13485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13487   echo "$as_me:$LINENO: checking for $ac_header" >&5
13488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 fi
13492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13494 else
13495   # Is the header compilable?
13496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 $ac_includes_default
13505 #include <$ac_header>
13506 _ACEOF
13507 rm -f conftest.$ac_objext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13509   (eval $ac_compile) 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag"
13517                          || test ! -s conftest.err'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; } &&
13523          { ac_try='test -s conftest.$ac_objext'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }; then
13529   ac_header_compiler=yes
13530 else
13531   echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 ac_header_compiler=no
13535 fi
13536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13538 echo "${ECHO_T}$ac_header_compiler" >&6
13539
13540 # Is the header present?
13541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13543 cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 #include <$ac_header>
13550 _ACEOF
13551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } >/dev/null; then
13559   if test -s conftest.err; then
13560     ac_cpp_err=$ac_c_preproc_warn_flag
13561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13562   else
13563     ac_cpp_err=
13564   fi
13565 else
13566   ac_cpp_err=yes
13567 fi
13568 if test -z "$ac_cpp_err"; then
13569   ac_header_preproc=yes
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574   ac_header_preproc=no
13575 fi
13576 rm -f conftest.err conftest.$ac_ext
13577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13578 echo "${ECHO_T}$ac_header_preproc" >&6
13579
13580 # So?  What about this header?
13581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13582   yes:no: )
13583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13587     ac_header_preproc=yes
13588     ;;
13589   no:yes:* )
13590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13602     (
13603       cat <<\_ASBOX
13604 ## ----------------------------------------- ##
13605 ## Report this to wx-dev@lists.wxwindows.org ##
13606 ## ----------------------------------------- ##
13607 _ASBOX
13608     ) |
13609       sed "s/^/$as_me: WARNING:     /" >&2
13610     ;;
13611 esac
13612 echo "$as_me:$LINENO: checking for $ac_header" >&5
13613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   eval "$as_ac_Header=\$ac_header_preproc"
13618 fi
13619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13621
13622 fi
13623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13624   cat >>confdefs.h <<_ACEOF
13625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13626 _ACEOF
13627
13628 fi
13629
13630 done
13631
13632
13633 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13634
13635 for ac_func in fnmatch
13636 do
13637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13638 echo "$as_me:$LINENO: checking for $ac_func" >&5
13639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13640 if eval "test \"\${$as_ac_var+set}\" = set"; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13651 #define $ac_func innocuous_$ac_func
13652
13653 /* System header to define __stub macros and hopefully few prototypes,
13654     which can conflict with char $ac_func (); below.
13655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13656     <limits.h> exists even on freestanding compilers.  */
13657
13658 #ifdef __STDC__
13659 # include <limits.h>
13660 #else
13661 # include <assert.h>
13662 #endif
13663
13664 #undef $ac_func
13665
13666 /* Override any gcc2 internal prototype to avoid an error.  */
13667 #ifdef __cplusplus
13668 extern "C"
13669 {
13670 #endif
13671 /* We use char because int might match the return type of a gcc2
13672    builtin and then its argument prototype would still apply.  */
13673 char $ac_func ();
13674 /* The GNU C library defines this for functions which it implements
13675     to always fail with ENOSYS.  Some functions are actually named
13676     something starting with __ and the normal name is an alias.  */
13677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13678 choke me
13679 #else
13680 char (*f) () = $ac_func;
13681 #endif
13682 #ifdef __cplusplus
13683 }
13684 #endif
13685
13686 int
13687 main ()
13688 {
13689 return f != $ac_func;
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696   (eval $ac_link) 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } &&
13703          { ac_try='test -z "$ac_c_werror_flag"
13704                          || test ! -s conftest.err'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; } &&
13710          { ac_try='test -s conftest$ac_exeext'
13711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712   (eval $ac_try) 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; }; then
13716   eval "$as_ac_var=yes"
13717 else
13718   echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13720
13721 eval "$as_ac_var=no"
13722 fi
13723 rm -f conftest.err conftest.$ac_objext \
13724       conftest$ac_exeext conftest.$ac_ext
13725 fi
13726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13728 if test `eval echo '${'$as_ac_var'}'` = yes; then
13729   cat >>confdefs.h <<_ACEOF
13730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13731 _ACEOF
13732
13733 fi
13734 done
13735
13736 fi
13737
13738
13739 for ac_header in langinfo.h
13740 do
13741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743   echo "$as_me:$LINENO: checking for $ac_header" >&5
13744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13746   echo $ECHO_N "(cached) $ECHO_C" >&6
13747 fi
13748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13750 else
13751   # Is the header compilable?
13752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 $ac_includes_default
13761 #include <$ac_header>
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765   (eval $ac_compile) 2>conftest.er1
13766   ac_status=$?
13767   grep -v '^ *+' conftest.er1 >conftest.err
13768   rm -f conftest.er1
13769   cat conftest.err >&5
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -z "$ac_c_werror_flag"
13773                          || test ! -s conftest.err'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; } &&
13779          { ac_try='test -s conftest.$ac_objext'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; }; then
13785   ac_header_compiler=yes
13786 else
13787   echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 ac_header_compiler=no
13791 fi
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13794 echo "${ECHO_T}$ac_header_compiler" >&6
13795
13796 # Is the header present?
13797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805 #include <$ac_header>
13806 _ACEOF
13807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } >/dev/null; then
13815   if test -s conftest.err; then
13816     ac_cpp_err=$ac_c_preproc_warn_flag
13817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13818   else
13819     ac_cpp_err=
13820   fi
13821 else
13822   ac_cpp_err=yes
13823 fi
13824 if test -z "$ac_cpp_err"; then
13825   ac_header_preproc=yes
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830   ac_header_preproc=no
13831 fi
13832 rm -f conftest.err conftest.$ac_ext
13833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6
13835
13836 # So?  What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838   yes:no: )
13839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13843     ac_header_preproc=yes
13844     ;;
13845   no:yes:* )
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13858     (
13859       cat <<\_ASBOX
13860 ## ----------------------------------------- ##
13861 ## Report this to wx-dev@lists.wxwindows.org ##
13862 ## ----------------------------------------- ##
13863 _ASBOX
13864     ) |
13865       sed "s/^/$as_me: WARNING:     /" >&2
13866     ;;
13867 esac
13868 echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   eval "$as_ac_Header=\$ac_header_preproc"
13874 fi
13875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13877
13878 fi
13879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13880   cat >>confdefs.h <<_ACEOF
13881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13882 _ACEOF
13883
13884 fi
13885
13886 done
13887
13888
13889 case "${host}" in
13890   *-pc-os2_emx | *-pc-os2-emx )
13891             if test $ac_cv_header_langinfo_h = "yes"; then
13892           LIBS="$LIBS -lintl"
13893       fi
13894   ;;
13895 esac
13896
13897 if test "$wxUSE_GUI" = "yes"; then
13898     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13899
13900 for ac_header in X11/Xlib.h
13901 do
13902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904   echo "$as_me:$LINENO: checking for $ac_header" >&5
13905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 fi
13909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13911 else
13912   # Is the header compilable?
13913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921 $ac_includes_default
13922 #include <$ac_header>
13923 _ACEOF
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926   (eval $ac_compile) 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -z "$ac_c_werror_flag"
13934                          || test ! -s conftest.err'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 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_header_compiler=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951 ac_header_compiler=no
13952 fi
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13955 echo "${ECHO_T}$ac_header_compiler" >&6
13956
13957 # Is the header present?
13958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966 #include <$ac_header>
13967 _ACEOF
13968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13970   ac_status=$?
13971   grep -v '^ *+' conftest.er1 >conftest.err
13972   rm -f conftest.er1
13973   cat conftest.err >&5
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } >/dev/null; then
13976   if test -s conftest.err; then
13977     ac_cpp_err=$ac_c_preproc_warn_flag
13978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13979   else
13980     ac_cpp_err=
13981   fi
13982 else
13983   ac_cpp_err=yes
13984 fi
13985 if test -z "$ac_cpp_err"; then
13986   ac_header_preproc=yes
13987 else
13988   echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13990
13991   ac_header_preproc=no
13992 fi
13993 rm -f conftest.err conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995 echo "${ECHO_T}$ac_header_preproc" >&6
13996
13997 # So?  What about this header?
13998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13999   yes:no: )
14000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14004     ac_header_preproc=yes
14005     ;;
14006   no:yes:* )
14007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14019     (
14020       cat <<\_ASBOX
14021 ## ----------------------------------------- ##
14022 ## Report this to wx-dev@lists.wxwindows.org ##
14023 ## ----------------------------------------- ##
14024 _ASBOX
14025     ) |
14026       sed "s/^/$as_me: WARNING:     /" >&2
14027     ;;
14028 esac
14029 echo "$as_me:$LINENO: checking for $ac_header" >&5
14030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034   eval "$as_ac_Header=\$ac_header_preproc"
14035 fi
14036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14038
14039 fi
14040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14041   cat >>confdefs.h <<_ACEOF
14042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14043 _ACEOF
14044
14045 fi
14046
14047 done
14048
14049
14050 for ac_header in X11/XKBlib.h
14051 do
14052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14053 echo "$as_me:$LINENO: checking for $ac_header" >&5
14054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14056   echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058   cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064
14065                           #if HAVE_X11_XLIB_H
14066                             #include <X11/Xlib.h>
14067                           #endif
14068
14069
14070 #include <$ac_header>
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14074   (eval $ac_compile) 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -z "$ac_c_werror_flag"
14082                          || test ! -s conftest.err'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; } &&
14088          { ac_try='test -s conftest.$ac_objext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   eval "$as_ac_Header=yes"
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 eval "$as_ac_Header=no"
14100 fi
14101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14102 fi
14103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14106   cat >>confdefs.h <<_ACEOF
14107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14108 _ACEOF
14109
14110 fi
14111
14112 done
14113
14114     fi
14115 fi
14116
14117
14118 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14119 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14120 if test "${ac_cv_c_const+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129
14130 int
14131 main ()
14132 {
14133 /* FIXME: Include the comments suggested by Paul. */
14134 #ifndef __cplusplus
14135   /* Ultrix mips cc rejects this.  */
14136   typedef int charset[2];
14137   const charset x;
14138   /* SunOS 4.1.1 cc rejects this.  */
14139   char const *const *ccp;
14140   char **p;
14141   /* NEC SVR4.0.2 mips cc rejects this.  */
14142   struct point {int x, y;};
14143   static struct point const zero = {0,0};
14144   /* AIX XL C 1.02.0.0 rejects this.
14145      It does not let you subtract one const X* pointer from another in
14146      an arm of an if-expression whose if-part is not a constant
14147      expression */
14148   const char *g = "string";
14149   ccp = &g + (g ? g-g : 0);
14150   /* HPUX 7.0 cc rejects these. */
14151   ++ccp;
14152   p = (char**) ccp;
14153   ccp = (char const *const *) p;
14154   { /* SCO 3.2v4 cc rejects this.  */
14155     char *t;
14156     char const *s = 0 ? (char *) 0 : (char const *) 0;
14157
14158     *t++ = 0;
14159   }
14160   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14161     int x[] = {25, 17};
14162     const int *foo = &x[0];
14163     ++foo;
14164   }
14165   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14166     typedef const int *iptr;
14167     iptr p = 0;
14168     ++p;
14169   }
14170   { /* AIX XL C 1.02.0.0 rejects this saying
14171        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14172     struct s { int j; const int *ap[3]; };
14173     struct s *b; b->j = 5;
14174   }
14175   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14176     const int foo = 10;
14177   }
14178 #endif
14179
14180   ;
14181   return 0;
14182 }
14183 _ACEOF
14184 rm -f conftest.$ac_objext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186   (eval $ac_compile) 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -z "$ac_c_werror_flag"
14194                          || test ! -s conftest.err'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; } &&
14200          { ac_try='test -s conftest.$ac_objext'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206   ac_cv_c_const=yes
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ac_cv_c_const=no
14212 fi
14213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14214 fi
14215 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14216 echo "${ECHO_T}$ac_cv_c_const" >&6
14217 if test $ac_cv_c_const = no; then
14218
14219 cat >>confdefs.h <<\_ACEOF
14220 #define const
14221 _ACEOF
14222
14223 fi
14224
14225 echo "$as_me:$LINENO: checking for inline" >&5
14226 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14227 if test "${ac_cv_c_inline+set}" = set; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   ac_cv_c_inline=no
14231 for ac_kw in inline __inline__ __inline; do
14232   cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 #ifndef __cplusplus
14239 typedef int foo_t;
14240 static $ac_kw foo_t static_foo () {return 0; }
14241 $ac_kw foo_t foo () {return 0; }
14242 #endif
14243
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247   (eval $ac_compile) 2>conftest.er1
14248   ac_status=$?
14249   grep -v '^ *+' conftest.er1 >conftest.err
14250   rm -f conftest.er1
14251   cat conftest.err >&5
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } &&
14254          { ac_try='test -z "$ac_c_werror_flag"
14255                          || test ! -s conftest.err'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; } &&
14261          { ac_try='test -s conftest.$ac_objext'
14262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263   (eval $ac_try) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; }; then
14267   ac_cv_c_inline=$ac_kw; break
14268 else
14269   echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272 fi
14273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14274 done
14275
14276 fi
14277 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14278 echo "${ECHO_T}$ac_cv_c_inline" >&6
14279
14280
14281 case $ac_cv_c_inline in
14282   inline | yes) ;;
14283   *)
14284     case $ac_cv_c_inline in
14285       no) ac_val=;;
14286       *) ac_val=$ac_cv_c_inline;;
14287     esac
14288     cat >>confdefs.h <<_ACEOF
14289 #ifndef __cplusplus
14290 #define inline $ac_val
14291 #endif
14292 _ACEOF
14293     ;;
14294 esac
14295
14296
14297 echo "$as_me:$LINENO: checking for char" >&5
14298 echo $ECHO_N "checking for char... $ECHO_C" >&6
14299 if test "${ac_cv_type_char+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 if ((char *) 0)
14313   return 0;
14314 if (sizeof (char))
14315   return 0;
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322   (eval $ac_compile) 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -z "$ac_c_werror_flag"
14330                          || test ! -s conftest.err'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest.$ac_objext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   ac_cv_type_char=yes
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 ac_cv_type_char=no
14348 fi
14349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14352 echo "${ECHO_T}$ac_cv_type_char" >&6
14353
14354 echo "$as_me:$LINENO: checking size of char" >&5
14355 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14356 if test "${ac_cv_sizeof_char+set}" = set; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   if test "$ac_cv_type_char" = yes; then
14360   # The cast to unsigned long works around a bug in the HP C Compiler
14361   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14362   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14363   # This bug is HP SR number 8606223364.
14364   if test "$cross_compiling" = yes; then
14365   # Depending upon the size, compute the lo and hi bounds.
14366 cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h.  */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h.  */
14372 $ac_includes_default
14373 int
14374 main ()
14375 {
14376 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14377 test_array [0] = 0
14378
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385   (eval $ac_compile) 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -z "$ac_c_werror_flag"
14393                          || test ! -s conftest.err'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; } &&
14399          { ac_try='test -s conftest.$ac_objext'
14400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401   (eval $ac_try) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_lo=0 ac_mid=0
14406   while :; do
14407     cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $ac_includes_default
14414 int
14415 main ()
14416 {
14417 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14418 test_array [0] = 0
14419
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426   (eval $ac_compile) 2>conftest.er1
14427   ac_status=$?
14428   grep -v '^ *+' conftest.er1 >conftest.err
14429   rm -f conftest.er1
14430   cat conftest.err >&5
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } &&
14433          { ac_try='test -z "$ac_c_werror_flag"
14434                          || test ! -s conftest.err'
14435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436   (eval $ac_try) 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_hi=$ac_mid; break
14447 else
14448   echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451 ac_lo=`expr $ac_mid + 1`
14452                     if test $ac_lo -le $ac_mid; then
14453                       ac_lo= ac_hi=
14454                       break
14455                     fi
14456                     ac_mid=`expr 2 '*' $ac_mid + 1`
14457 fi
14458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14459   done
14460 else
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h.  */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h.  */
14470 $ac_includes_default
14471 int
14472 main ()
14473 {
14474 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14475 test_array [0] = 0
14476
14477   ;
14478   return 0;
14479 }
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483   (eval $ac_compile) 2>conftest.er1
14484   ac_status=$?
14485   grep -v '^ *+' conftest.er1 >conftest.err
14486   rm -f conftest.er1
14487   cat conftest.err >&5
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); } &&
14490          { ac_try='test -z "$ac_c_werror_flag"
14491                          || test ! -s conftest.err'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; } &&
14497          { ac_try='test -s conftest.$ac_objext'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503   ac_hi=-1 ac_mid=-1
14504   while :; do
14505     cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h.  */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h.  */
14511 $ac_includes_default
14512 int
14513 main ()
14514 {
14515 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14516 test_array [0] = 0
14517
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag"
14532                          || test ! -s conftest.err'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest.$ac_objext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   ac_lo=$ac_mid; break
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_hi=`expr '(' $ac_mid ')' - 1`
14550                        if test $ac_mid -le $ac_hi; then
14551                          ac_lo= ac_hi=
14552                          break
14553                        fi
14554                        ac_mid=`expr 2 '*' $ac_mid`
14555 fi
14556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557   done
14558 else
14559   echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562 ac_lo= ac_hi=
14563 fi
14564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14565 fi
14566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14567 # Binary search between lo and hi bounds.
14568 while test "x$ac_lo" != "x$ac_hi"; do
14569   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14570   cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h.  */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h.  */
14576 $ac_includes_default
14577 int
14578 main ()
14579 {
14580 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14581 test_array [0] = 0
14582
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest.$ac_objext
14588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14589   (eval $ac_compile) 2>conftest.er1
14590   ac_status=$?
14591   grep -v '^ *+' conftest.er1 >conftest.err
14592   rm -f conftest.er1
14593   cat conftest.err >&5
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -z "$ac_c_werror_flag"
14597                          || test ! -s conftest.err'
14598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599   (eval $ac_try) 2>&5
14600   ac_status=$?
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); }; } &&
14603          { ac_try='test -s conftest.$ac_objext'
14604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605   (eval $ac_try) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; }; then
14609   ac_hi=$ac_mid
14610 else
14611   echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14613
14614 ac_lo=`expr '(' $ac_mid ')' + 1`
14615 fi
14616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14617 done
14618 case $ac_lo in
14619 ?*) ac_cv_sizeof_char=$ac_lo;;
14620 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14621 See \`config.log' for more details." >&5
14622 echo "$as_me: error: cannot compute sizeof (char), 77
14623 See \`config.log' for more details." >&2;}
14624    { (exit 1); exit 1; }; } ;;
14625 esac
14626 else
14627   if test "$cross_compiling" = yes; then
14628   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14629 See \`config.log' for more details." >&5
14630 echo "$as_me: error: cannot run test program while cross compiling
14631 See \`config.log' for more details." >&2;}
14632    { (exit 1); exit 1; }; }
14633 else
14634   cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 $ac_includes_default
14641 long longval () { return (long) (sizeof (char)); }
14642 unsigned long ulongval () { return (long) (sizeof (char)); }
14643 #include <stdio.h>
14644 #include <stdlib.h>
14645 int
14646 main ()
14647 {
14648
14649   FILE *f = fopen ("conftest.val", "w");
14650   if (! f)
14651     exit (1);
14652   if (((long) (sizeof (char))) < 0)
14653     {
14654       long i = longval ();
14655       if (i != ((long) (sizeof (char))))
14656         exit (1);
14657       fprintf (f, "%ld\n", i);
14658     }
14659   else
14660     {
14661       unsigned long i = ulongval ();
14662       if (i != ((long) (sizeof (char))))
14663         exit (1);
14664       fprintf (f, "%lu\n", i);
14665     }
14666   exit (ferror (f) || fclose (f) != 0);
14667
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 rm -f conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674   (eval $ac_link) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679   (eval $ac_try) 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); }; }; then
14683   ac_cv_sizeof_char=`cat conftest.val`
14684 else
14685   echo "$as_me: program exited with status $ac_status" >&5
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ( exit $ac_status )
14690 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14691 See \`config.log' for more details." >&5
14692 echo "$as_me: error: cannot compute sizeof (char), 77
14693 See \`config.log' for more details." >&2;}
14694    { (exit 1); exit 1; }; }
14695 fi
14696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14697 fi
14698 fi
14699 rm -f conftest.val
14700 else
14701   ac_cv_sizeof_char=0
14702 fi
14703 fi
14704 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14705 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14706 cat >>confdefs.h <<_ACEOF
14707 #define SIZEOF_CHAR $ac_cv_sizeof_char
14708 _ACEOF
14709
14710
14711 echo "$as_me:$LINENO: checking for short" >&5
14712 echo $ECHO_N "checking for short... $ECHO_C" >&6
14713 if test "${ac_cv_type_short+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h.  */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h.  */
14722 $ac_includes_default
14723 int
14724 main ()
14725 {
14726 if ((short *) 0)
14727   return 0;
14728 if (sizeof (short))
14729   return 0;
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 rm -f conftest.$ac_objext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14736   (eval $ac_compile) 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -z "$ac_c_werror_flag"
14744                          || test ! -s conftest.err'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; } &&
14750          { ac_try='test -s conftest.$ac_objext'
14751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752   (eval $ac_try) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; }; then
14756   ac_cv_type_short=yes
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761 ac_cv_type_short=no
14762 fi
14763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14764 fi
14765 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14766 echo "${ECHO_T}$ac_cv_type_short" >&6
14767
14768 echo "$as_me:$LINENO: checking size of short" >&5
14769 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14770 if test "${ac_cv_sizeof_short+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   if test "$ac_cv_type_short" = yes; then
14774   # The cast to unsigned long works around a bug in the HP C Compiler
14775   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14776   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14777   # This bug is HP SR number 8606223364.
14778   if test "$cross_compiling" = yes; then
14779   # Depending upon the size, compute the lo and hi bounds.
14780 cat >conftest.$ac_ext <<_ACEOF
14781 /* confdefs.h.  */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h.  */
14786 $ac_includes_default
14787 int
14788 main ()
14789 {
14790 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14791 test_array [0] = 0
14792
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799   (eval $ac_compile) 2>conftest.er1
14800   ac_status=$?
14801   grep -v '^ *+' conftest.er1 >conftest.err
14802   rm -f conftest.er1
14803   cat conftest.err >&5
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); } &&
14806          { ac_try='test -z "$ac_c_werror_flag"
14807                          || test ! -s conftest.err'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; } &&
14813          { ac_try='test -s conftest.$ac_objext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_lo=0 ac_mid=0
14820   while :; do
14821     cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 $ac_includes_default
14828 int
14829 main ()
14830 {
14831 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14832 test_array [0] = 0
14833
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840   (eval $ac_compile) 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -z "$ac_c_werror_flag"
14848                          || test ! -s conftest.err'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; } &&
14854          { ac_try='test -s conftest.$ac_objext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860   ac_hi=$ac_mid; break
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ac_lo=`expr $ac_mid + 1`
14866                     if test $ac_lo -le $ac_mid; then
14867                       ac_lo= ac_hi=
14868                       break
14869                     fi
14870                     ac_mid=`expr 2 '*' $ac_mid + 1`
14871 fi
14872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14873   done
14874 else
14875   echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h.  */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h.  */
14884 $ac_includes_default
14885 int
14886 main ()
14887 {
14888 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14889 test_array [0] = 0
14890
14891   ;
14892   return 0;
14893 }
14894 _ACEOF
14895 rm -f conftest.$ac_objext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897   (eval $ac_compile) 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } &&
14904          { ac_try='test -z "$ac_c_werror_flag"
14905                          || test ! -s conftest.err'
14906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907   (eval $ac_try) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; } &&
14911          { ac_try='test -s conftest.$ac_objext'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; }; then
14917   ac_hi=-1 ac_mid=-1
14918   while :; do
14919     cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h.  */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h.  */
14925 $ac_includes_default
14926 int
14927 main ()
14928 {
14929 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14930 test_array [0] = 0
14931
14932   ;
14933   return 0;
14934 }
14935 _ACEOF
14936 rm -f conftest.$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938   (eval $ac_compile) 2>conftest.er1
14939   ac_status=$?
14940   grep -v '^ *+' conftest.er1 >conftest.err
14941   rm -f conftest.er1
14942   cat conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } &&
14945          { ac_try='test -z "$ac_c_werror_flag"
14946                          || test ! -s conftest.err'
14947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948   (eval $ac_try) 2>&5
14949   ac_status=$?
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); }; } &&
14952          { ac_try='test -s conftest.$ac_objext'
14953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954   (eval $ac_try) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; }; then
14958   ac_lo=$ac_mid; break
14959 else
14960   echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963 ac_hi=`expr '(' $ac_mid ')' - 1`
14964                        if test $ac_mid -le $ac_hi; then
14965                          ac_lo= ac_hi=
14966                          break
14967                        fi
14968                        ac_mid=`expr 2 '*' $ac_mid`
14969 fi
14970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14971   done
14972 else
14973   echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14975
14976 ac_lo= ac_hi=
14977 fi
14978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14979 fi
14980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14981 # Binary search between lo and hi bounds.
14982 while test "x$ac_lo" != "x$ac_hi"; do
14983   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14984   cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h.  */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h.  */
14990 $ac_includes_default
14991 int
14992 main ()
14993 {
14994 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14995 test_array [0] = 0
14996
14997   ;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003   (eval $ac_compile) 2>conftest.er1
15004   ac_status=$?
15005   grep -v '^ *+' conftest.er1 >conftest.err
15006   rm -f conftest.er1
15007   cat conftest.err >&5
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } &&
15010          { ac_try='test -z "$ac_c_werror_flag"
15011                          || test ! -s conftest.err'
15012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013   (eval $ac_try) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; } &&
15017          { ac_try='test -s conftest.$ac_objext'
15018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019   (eval $ac_try) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; }; then
15023   ac_hi=$ac_mid
15024 else
15025   echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 ac_lo=`expr '(' $ac_mid ')' + 1`
15029 fi
15030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15031 done
15032 case $ac_lo in
15033 ?*) ac_cv_sizeof_short=$ac_lo;;
15034 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15035 See \`config.log' for more details." >&5
15036 echo "$as_me: error: cannot compute sizeof (short), 77
15037 See \`config.log' for more details." >&2;}
15038    { (exit 1); exit 1; }; } ;;
15039 esac
15040 else
15041   if test "$cross_compiling" = yes; then
15042   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15043 See \`config.log' for more details." >&5
15044 echo "$as_me: error: cannot run test program while cross compiling
15045 See \`config.log' for more details." >&2;}
15046    { (exit 1); exit 1; }; }
15047 else
15048   cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h.  */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h.  */
15054 $ac_includes_default
15055 long longval () { return (long) (sizeof (short)); }
15056 unsigned long ulongval () { return (long) (sizeof (short)); }
15057 #include <stdio.h>
15058 #include <stdlib.h>
15059 int
15060 main ()
15061 {
15062
15063   FILE *f = fopen ("conftest.val", "w");
15064   if (! f)
15065     exit (1);
15066   if (((long) (sizeof (short))) < 0)
15067     {
15068       long i = longval ();
15069       if (i != ((long) (sizeof (short))))
15070         exit (1);
15071       fprintf (f, "%ld\n", i);
15072     }
15073   else
15074     {
15075       unsigned long i = ulongval ();
15076       if (i != ((long) (sizeof (short))))
15077         exit (1);
15078       fprintf (f, "%lu\n", i);
15079     }
15080   exit (ferror (f) || fclose (f) != 0);
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 rm -f conftest$ac_exeext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15088   (eval $ac_link) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093   (eval $ac_try) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }; }; then
15097   ac_cv_sizeof_short=`cat conftest.val`
15098 else
15099   echo "$as_me: program exited with status $ac_status" >&5
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ( exit $ac_status )
15104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15105 See \`config.log' for more details." >&5
15106 echo "$as_me: error: cannot compute sizeof (short), 77
15107 See \`config.log' for more details." >&2;}
15108    { (exit 1); exit 1; }; }
15109 fi
15110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15111 fi
15112 fi
15113 rm -f conftest.val
15114 else
15115   ac_cv_sizeof_short=0
15116 fi
15117 fi
15118 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15119 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15120 cat >>confdefs.h <<_ACEOF
15121 #define SIZEOF_SHORT $ac_cv_sizeof_short
15122 _ACEOF
15123
15124
15125 echo "$as_me:$LINENO: checking for void *" >&5
15126 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15127 if test "${ac_cv_type_void_p+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 $ac_includes_default
15137 int
15138 main ()
15139 {
15140 if ((void * *) 0)
15141   return 0;
15142 if (sizeof (void *))
15143   return 0;
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150   (eval $ac_compile) 2>conftest.er1
15151   ac_status=$?
15152   grep -v '^ *+' conftest.er1 >conftest.err
15153   rm -f conftest.er1
15154   cat conftest.err >&5
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } &&
15157          { ac_try='test -z "$ac_c_werror_flag"
15158                          || test ! -s conftest.err'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; } &&
15164          { ac_try='test -s conftest.$ac_objext'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_cv_type_void_p=yes
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_cv_type_void_p=no
15176 fi
15177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15178 fi
15179 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15180 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15181
15182 echo "$as_me:$LINENO: checking size of void *" >&5
15183 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15184 if test "${ac_cv_sizeof_void_p+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   if test "$ac_cv_type_void_p" = yes; then
15188   # The cast to unsigned long works around a bug in the HP C Compiler
15189   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15190   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15191   # This bug is HP SR number 8606223364.
15192   if test "$cross_compiling" = yes; then
15193   # Depending upon the size, compute the lo and hi bounds.
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 $ac_includes_default
15201 int
15202 main ()
15203 {
15204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15205 test_array [0] = 0
15206
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213   (eval $ac_compile) 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } &&
15220          { ac_try='test -z "$ac_c_werror_flag"
15221                          || test ! -s conftest.err'
15222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223   (eval $ac_try) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; } &&
15227          { ac_try='test -s conftest.$ac_objext'
15228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229   (eval $ac_try) 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   ac_lo=0 ac_mid=0
15234   while :; do
15235     cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 $ac_includes_default
15242 int
15243 main ()
15244 {
15245 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15246 test_array [0] = 0
15247
15248   ;
15249   return 0;
15250 }
15251 _ACEOF
15252 rm -f conftest.$ac_objext
15253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15254   (eval $ac_compile) 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -z "$ac_c_werror_flag"
15262                          || test ! -s conftest.err'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; } &&
15268          { ac_try='test -s conftest.$ac_objext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_hi=$ac_mid; break
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_lo=`expr $ac_mid + 1`
15280                     if test $ac_lo -le $ac_mid; then
15281                       ac_lo= ac_hi=
15282                       break
15283                     fi
15284                     ac_mid=`expr 2 '*' $ac_mid + 1`
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287   done
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 $ac_includes_default
15299 int
15300 main ()
15301 {
15302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15303 test_array [0] = 0
15304
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15311   (eval $ac_compile) 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -z "$ac_c_werror_flag"
15319                          || test ! -s conftest.err'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; } &&
15325          { ac_try='test -s conftest.$ac_objext'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   ac_hi=-1 ac_mid=-1
15332   while :; do
15333     cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 $ac_includes_default
15340 int
15341 main ()
15342 {
15343 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15344 test_array [0] = 0
15345
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352   (eval $ac_compile) 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } &&
15359          { ac_try='test -z "$ac_c_werror_flag"
15360                          || test ! -s conftest.err'
15361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362   (eval $ac_try) 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; } &&
15366          { ac_try='test -s conftest.$ac_objext'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; }; then
15372   ac_lo=$ac_mid; break
15373 else
15374   echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_hi=`expr '(' $ac_mid ')' - 1`
15378                        if test $ac_mid -le $ac_hi; then
15379                          ac_lo= ac_hi=
15380                          break
15381                        fi
15382                        ac_mid=`expr 2 '*' $ac_mid`
15383 fi
15384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385   done
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 ac_lo= ac_hi=
15391 fi
15392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395 # Binary search between lo and hi bounds.
15396 while test "x$ac_lo" != "x$ac_hi"; do
15397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15398   cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 $ac_includes_default
15405 int
15406 main ()
15407 {
15408 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15409 test_array [0] = 0
15410
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417   (eval $ac_compile) 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -z "$ac_c_werror_flag"
15425                          || test ! -s conftest.err'
15426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427   (eval $ac_try) 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); }; } &&
15431          { ac_try='test -s conftest.$ac_objext'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   ac_hi=$ac_mid
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_lo=`expr '(' $ac_mid ')' + 1`
15443 fi
15444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 done
15446 case $ac_lo in
15447 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15448 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15449 See \`config.log' for more details." >&5
15450 echo "$as_me: error: cannot compute sizeof (void *), 77
15451 See \`config.log' for more details." >&2;}
15452    { (exit 1); exit 1; }; } ;;
15453 esac
15454 else
15455   if test "$cross_compiling" = yes; then
15456   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15457 See \`config.log' for more details." >&5
15458 echo "$as_me: error: cannot run test program while cross compiling
15459 See \`config.log' for more details." >&2;}
15460    { (exit 1); exit 1; }; }
15461 else
15462   cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 $ac_includes_default
15469 long longval () { return (long) (sizeof (void *)); }
15470 unsigned long ulongval () { return (long) (sizeof (void *)); }
15471 #include <stdio.h>
15472 #include <stdlib.h>
15473 int
15474 main ()
15475 {
15476
15477   FILE *f = fopen ("conftest.val", "w");
15478   if (! f)
15479     exit (1);
15480   if (((long) (sizeof (void *))) < 0)
15481     {
15482       long i = longval ();
15483       if (i != ((long) (sizeof (void *))))
15484         exit (1);
15485       fprintf (f, "%ld\n", i);
15486     }
15487   else
15488     {
15489       unsigned long i = ulongval ();
15490       if (i != ((long) (sizeof (void *))))
15491         exit (1);
15492       fprintf (f, "%lu\n", i);
15493     }
15494   exit (ferror (f) || fclose (f) != 0);
15495
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 rm -f conftest$ac_exeext
15501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15502   (eval $ac_link) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; }; then
15511   ac_cv_sizeof_void_p=`cat conftest.val`
15512 else
15513   echo "$as_me: program exited with status $ac_status" >&5
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ( exit $ac_status )
15518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15519 See \`config.log' for more details." >&5
15520 echo "$as_me: error: cannot compute sizeof (void *), 77
15521 See \`config.log' for more details." >&2;}
15522    { (exit 1); exit 1; }; }
15523 fi
15524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15525 fi
15526 fi
15527 rm -f conftest.val
15528 else
15529   ac_cv_sizeof_void_p=0
15530 fi
15531 fi
15532 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15533 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15534 cat >>confdefs.h <<_ACEOF
15535 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15536 _ACEOF
15537
15538
15539 echo "$as_me:$LINENO: checking for int" >&5
15540 echo $ECHO_N "checking for int... $ECHO_C" >&6
15541 if test "${ac_cv_type_int+set}" = set; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544   cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 $ac_includes_default
15551 int
15552 main ()
15553 {
15554 if ((int *) 0)
15555   return 0;
15556 if (sizeof (int))
15557   return 0;
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } &&
15571          { ac_try='test -z "$ac_c_werror_flag"
15572                          || test ! -s conftest.err'
15573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574   (eval $ac_try) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; } &&
15578          { ac_try='test -s conftest.$ac_objext'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; }; then
15584   ac_cv_type_int=yes
15585 else
15586   echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_cv_type_int=no
15590 fi
15591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15592 fi
15593 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15594 echo "${ECHO_T}$ac_cv_type_int" >&6
15595
15596 echo "$as_me:$LINENO: checking size of int" >&5
15597 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15598 if test "${ac_cv_sizeof_int+set}" = set; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   if test "$ac_cv_type_int" = yes; then
15602   # The cast to unsigned long works around a bug in the HP C Compiler
15603   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15604   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15605   # This bug is HP SR number 8606223364.
15606   if test "$cross_compiling" = yes; then
15607   # Depending upon the size, compute the lo and hi bounds.
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h.  */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h.  */
15614 $ac_includes_default
15615 int
15616 main ()
15617 {
15618 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15619 test_array [0] = 0
15620
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627   (eval $ac_compile) 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag"
15635                          || test ! -s conftest.err'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; } &&
15641          { ac_try='test -s conftest.$ac_objext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   ac_lo=0 ac_mid=0
15648   while :; do
15649     cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655 $ac_includes_default
15656 int
15657 main ()
15658 {
15659 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15660 test_array [0] = 0
15661
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668   (eval $ac_compile) 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
15672   cat conftest.err >&5
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } &&
15675          { ac_try='test -z "$ac_c_werror_flag"
15676                          || test ! -s conftest.err'
15677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678   (eval $ac_try) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; } &&
15682          { ac_try='test -s conftest.$ac_objext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_hi=$ac_mid; break
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_lo=`expr $ac_mid + 1`
15694                     if test $ac_lo -le $ac_mid; then
15695                       ac_lo= ac_hi=
15696                       break
15697                     fi
15698                     ac_mid=`expr 2 '*' $ac_mid + 1`
15699 fi
15700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15701   done
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712 $ac_includes_default
15713 int
15714 main ()
15715 {
15716 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15717 test_array [0] = 0
15718
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725   (eval $ac_compile) 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_c_werror_flag"
15733                          || test ! -s conftest.err'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; } &&
15739          { ac_try='test -s conftest.$ac_objext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_hi=-1 ac_mid=-1
15746   while :; do
15747     cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753 $ac_includes_default
15754 int
15755 main ()
15756 {
15757 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15758 test_array [0] = 0
15759
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766   (eval $ac_compile) 2>conftest.er1
15767   ac_status=$?
15768   grep -v '^ *+' conftest.er1 >conftest.err
15769   rm -f conftest.er1
15770   cat conftest.err >&5
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -z "$ac_c_werror_flag"
15774                          || test ! -s conftest.err'
15775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776   (eval $ac_try) 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; } &&
15780          { ac_try='test -s conftest.$ac_objext'
15781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782   (eval $ac_try) 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); }; }; then
15786   ac_lo=$ac_mid; break
15787 else
15788   echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15790
15791 ac_hi=`expr '(' $ac_mid ')' - 1`
15792                        if test $ac_mid -le $ac_hi; then
15793                          ac_lo= ac_hi=
15794                          break
15795                        fi
15796                        ac_mid=`expr 2 '*' $ac_mid`
15797 fi
15798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799   done
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 ac_lo= ac_hi=
15805 fi
15806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15807 fi
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809 # Binary search between lo and hi bounds.
15810 while test "x$ac_lo" != "x$ac_hi"; do
15811   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15812   cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 $ac_includes_default
15819 int
15820 main ()
15821 {
15822 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15823 test_array [0] = 0
15824
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831   (eval $ac_compile) 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_c_werror_flag"
15839                          || test ! -s conftest.err'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest.$ac_objext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851   ac_hi=$ac_mid
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 ac_lo=`expr '(' $ac_mid ')' + 1`
15857 fi
15858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15859 done
15860 case $ac_lo in
15861 ?*) ac_cv_sizeof_int=$ac_lo;;
15862 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15863 See \`config.log' for more details." >&5
15864 echo "$as_me: error: cannot compute sizeof (int), 77
15865 See \`config.log' for more details." >&2;}
15866    { (exit 1); exit 1; }; } ;;
15867 esac
15868 else
15869   if test "$cross_compiling" = yes; then
15870   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15871 See \`config.log' for more details." >&5
15872 echo "$as_me: error: cannot run test program while cross compiling
15873 See \`config.log' for more details." >&2;}
15874    { (exit 1); exit 1; }; }
15875 else
15876   cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 $ac_includes_default
15883 long longval () { return (long) (sizeof (int)); }
15884 unsigned long ulongval () { return (long) (sizeof (int)); }
15885 #include <stdio.h>
15886 #include <stdlib.h>
15887 int
15888 main ()
15889 {
15890
15891   FILE *f = fopen ("conftest.val", "w");
15892   if (! f)
15893     exit (1);
15894   if (((long) (sizeof (int))) < 0)
15895     {
15896       long i = longval ();
15897       if (i != ((long) (sizeof (int))))
15898         exit (1);
15899       fprintf (f, "%ld\n", i);
15900     }
15901   else
15902     {
15903       unsigned long i = ulongval ();
15904       if (i != ((long) (sizeof (int))))
15905         exit (1);
15906       fprintf (f, "%lu\n", i);
15907     }
15908   exit (ferror (f) || fclose (f) != 0);
15909
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921   (eval $ac_try) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   ac_cv_sizeof_int=`cat conftest.val`
15926 else
15927   echo "$as_me: program exited with status $ac_status" >&5
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ( exit $ac_status )
15932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15933 See \`config.log' for more details." >&5
15934 echo "$as_me: error: cannot compute sizeof (int), 77
15935 See \`config.log' for more details." >&2;}
15936    { (exit 1); exit 1; }; }
15937 fi
15938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15939 fi
15940 fi
15941 rm -f conftest.val
15942 else
15943   ac_cv_sizeof_int=0
15944 fi
15945 fi
15946 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15947 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15948 cat >>confdefs.h <<_ACEOF
15949 #define SIZEOF_INT $ac_cv_sizeof_int
15950 _ACEOF
15951
15952
15953 echo "$as_me:$LINENO: checking for long" >&5
15954 echo $ECHO_N "checking for long... $ECHO_C" >&6
15955 if test "${ac_cv_type_long+set}" = set; then
15956   echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958   cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h.  */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h.  */
15964 $ac_includes_default
15965 int
15966 main ()
15967 {
15968 if ((long *) 0)
15969   return 0;
15970 if (sizeof (long))
15971   return 0;
15972   ;
15973   return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978   (eval $ac_compile) 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } &&
15985          { ac_try='test -z "$ac_c_werror_flag"
15986                          || test ! -s conftest.err'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; } &&
15992          { ac_try='test -s conftest.$ac_objext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998   ac_cv_type_long=yes
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ac_cv_type_long=no
16004 fi
16005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16006 fi
16007 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16008 echo "${ECHO_T}$ac_cv_type_long" >&6
16009
16010 echo "$as_me:$LINENO: checking size of long" >&5
16011 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16012 if test "${ac_cv_sizeof_long+set}" = set; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015   if test "$ac_cv_type_long" = yes; then
16016   # The cast to unsigned long works around a bug in the HP C Compiler
16017   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16018   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16019   # This bug is HP SR number 8606223364.
16020   if test "$cross_compiling" = yes; then
16021   # Depending upon the size, compute the lo and hi bounds.
16022 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 $ac_includes_default
16029 int
16030 main ()
16031 {
16032 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16033 test_array [0] = 0
16034
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16041   (eval $ac_compile) 2>conftest.er1
16042   ac_status=$?
16043   grep -v '^ *+' conftest.er1 >conftest.err
16044   rm -f conftest.er1
16045   cat conftest.err >&5
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); } &&
16048          { ac_try='test -z "$ac_c_werror_flag"
16049                          || test ! -s conftest.err'
16050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051   (eval $ac_try) 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=0 ac_mid=0
16062   while :; do
16063     cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069 $ac_includes_default
16070 int
16071 main ()
16072 {
16073 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16074 test_array [0] = 0
16075
16076   ;
16077   return 0;
16078 }
16079 _ACEOF
16080 rm -f conftest.$ac_objext
16081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16082   (eval $ac_compile) 2>conftest.er1
16083   ac_status=$?
16084   grep -v '^ *+' conftest.er1 >conftest.err
16085   rm -f conftest.er1
16086   cat conftest.err >&5
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); } &&
16089          { ac_try='test -z "$ac_c_werror_flag"
16090                          || test ! -s conftest.err'
16091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092   (eval $ac_try) 2>&5
16093   ac_status=$?
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); }; } &&
16096          { ac_try='test -s conftest.$ac_objext'
16097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098   (eval $ac_try) 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); }; }; then
16102   ac_hi=$ac_mid; break
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107 ac_lo=`expr $ac_mid + 1`
16108                     if test $ac_lo -le $ac_mid; then
16109                       ac_lo= ac_hi=
16110                       break
16111                     fi
16112                     ac_mid=`expr 2 '*' $ac_mid + 1`
16113 fi
16114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16115   done
16116 else
16117   echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16119
16120 cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126 $ac_includes_default
16127 int
16128 main ()
16129 {
16130 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16131 test_array [0] = 0
16132
16133   ;
16134   return 0;
16135 }
16136 _ACEOF
16137 rm -f conftest.$ac_objext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16139   (eval $ac_compile) 2>conftest.er1
16140   ac_status=$?
16141   grep -v '^ *+' conftest.er1 >conftest.err
16142   rm -f conftest.er1
16143   cat conftest.err >&5
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); } &&
16146          { ac_try='test -z "$ac_c_werror_flag"
16147                          || test ! -s conftest.err'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; } &&
16153          { ac_try='test -s conftest.$ac_objext'
16154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155   (eval $ac_try) 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); }; }; then
16159   ac_hi=-1 ac_mid=-1
16160   while :; do
16161     cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 $ac_includes_default
16168 int
16169 main ()
16170 {
16171 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16172 test_array [0] = 0
16173
16174   ;
16175   return 0;
16176 }
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180   (eval $ac_compile) 2>conftest.er1
16181   ac_status=$?
16182   grep -v '^ *+' conftest.er1 >conftest.err
16183   rm -f conftest.er1
16184   cat conftest.err >&5
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } &&
16187          { ac_try='test -z "$ac_c_werror_flag"
16188                          || test ! -s conftest.err'
16189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190   (eval $ac_try) 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; } &&
16194          { ac_try='test -s conftest.$ac_objext'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200   ac_lo=$ac_mid; break
16201 else
16202   echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16204
16205 ac_hi=`expr '(' $ac_mid ')' - 1`
16206                        if test $ac_mid -le $ac_hi; then
16207                          ac_lo= ac_hi=
16208                          break
16209                        fi
16210                        ac_mid=`expr 2 '*' $ac_mid`
16211 fi
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213   done
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_lo= ac_hi=
16219 fi
16220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16223 # Binary search between lo and hi bounds.
16224 while test "x$ac_lo" != "x$ac_hi"; do
16225   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16226   cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 $ac_includes_default
16233 int
16234 main ()
16235 {
16236 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16237 test_array [0] = 0
16238
16239   ;
16240   return 0;
16241 }
16242 _ACEOF
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245   (eval $ac_compile) 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } &&
16252          { ac_try='test -z "$ac_c_werror_flag"
16253                          || test ! -s conftest.err'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; } &&
16259          { ac_try='test -s conftest.$ac_objext'
16260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261   (eval $ac_try) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; }; then
16265   ac_hi=$ac_mid
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 ac_lo=`expr '(' $ac_mid ')' + 1`
16271 fi
16272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16273 done
16274 case $ac_lo in
16275 ?*) ac_cv_sizeof_long=$ac_lo;;
16276 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16277 See \`config.log' for more details." >&5
16278 echo "$as_me: error: cannot compute sizeof (long), 77
16279 See \`config.log' for more details." >&2;}
16280    { (exit 1); exit 1; }; } ;;
16281 esac
16282 else
16283   if test "$cross_compiling" = yes; then
16284   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16285 See \`config.log' for more details." >&5
16286 echo "$as_me: error: cannot run test program while cross compiling
16287 See \`config.log' for more details." >&2;}
16288    { (exit 1); exit 1; }; }
16289 else
16290   cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 $ac_includes_default
16297 long longval () { return (long) (sizeof (long)); }
16298 unsigned long ulongval () { return (long) (sizeof (long)); }
16299 #include <stdio.h>
16300 #include <stdlib.h>
16301 int
16302 main ()
16303 {
16304
16305   FILE *f = fopen ("conftest.val", "w");
16306   if (! f)
16307     exit (1);
16308   if (((long) (sizeof (long))) < 0)
16309     {
16310       long i = longval ();
16311       if (i != ((long) (sizeof (long))))
16312         exit (1);
16313       fprintf (f, "%ld\n", i);
16314     }
16315   else
16316     {
16317       unsigned long i = ulongval ();
16318       if (i != ((long) (sizeof (long))))
16319         exit (1);
16320       fprintf (f, "%lu\n", i);
16321     }
16322   exit (ferror (f) || fclose (f) != 0);
16323
16324   ;
16325   return 0;
16326 }
16327 _ACEOF
16328 rm -f conftest$ac_exeext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16330   (eval $ac_link) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335   (eval $ac_try) 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; }; then
16339   ac_cv_sizeof_long=`cat conftest.val`
16340 else
16341   echo "$as_me: program exited with status $ac_status" >&5
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345 ( exit $ac_status )
16346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16347 See \`config.log' for more details." >&5
16348 echo "$as_me: error: cannot compute sizeof (long), 77
16349 See \`config.log' for more details." >&2;}
16350    { (exit 1); exit 1; }; }
16351 fi
16352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16353 fi
16354 fi
16355 rm -f conftest.val
16356 else
16357   ac_cv_sizeof_long=0
16358 fi
16359 fi
16360 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16361 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16362 cat >>confdefs.h <<_ACEOF
16363 #define SIZEOF_LONG $ac_cv_sizeof_long
16364 _ACEOF
16365
16366
16367 echo "$as_me:$LINENO: checking for size_t" >&5
16368 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16369 if test "${ac_cv_type_size_t+set}" = set; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 $ac_includes_default
16379 int
16380 main ()
16381 {
16382 if ((size_t *) 0)
16383   return 0;
16384 if (sizeof (size_t))
16385   return 0;
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392   (eval $ac_compile) 2>conftest.er1
16393   ac_status=$?
16394   grep -v '^ *+' conftest.er1 >conftest.err
16395   rm -f conftest.er1
16396   cat conftest.err >&5
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -z "$ac_c_werror_flag"
16400                          || test ! -s conftest.err'
16401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402   (eval $ac_try) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; } &&
16406          { ac_try='test -s conftest.$ac_objext'
16407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408   (eval $ac_try) 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   ac_cv_type_size_t=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_cv_type_size_t=no
16418 fi
16419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16420 fi
16421 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16422 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16423
16424 echo "$as_me:$LINENO: checking size of size_t" >&5
16425 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16426 if test "${ac_cv_sizeof_size_t+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   if test "$ac_cv_type_size_t" = yes; then
16430   # The cast to unsigned long works around a bug in the HP C Compiler
16431   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16432   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16433   # This bug is HP SR number 8606223364.
16434   if test "$cross_compiling" = yes; then
16435   # Depending upon the size, compute the lo and hi bounds.
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 $ac_includes_default
16443 int
16444 main ()
16445 {
16446 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16447 test_array [0] = 0
16448
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455   (eval $ac_compile) 2>conftest.er1
16456   ac_status=$?
16457   grep -v '^ *+' conftest.er1 >conftest.err
16458   rm -f conftest.er1
16459   cat conftest.err >&5
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } &&
16462          { ac_try='test -z "$ac_c_werror_flag"
16463                          || test ! -s conftest.err'
16464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465   (eval $ac_try) 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); }; } &&
16469          { ac_try='test -s conftest.$ac_objext'
16470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471   (eval $ac_try) 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); }; }; then
16475   ac_lo=0 ac_mid=0
16476   while :; do
16477     cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h.  */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h.  */
16483 $ac_includes_default
16484 int
16485 main ()
16486 {
16487 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16488 test_array [0] = 0
16489
16490   ;
16491   return 0;
16492 }
16493 _ACEOF
16494 rm -f conftest.$ac_objext
16495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16496   (eval $ac_compile) 2>conftest.er1
16497   ac_status=$?
16498   grep -v '^ *+' conftest.er1 >conftest.err
16499   rm -f conftest.er1
16500   cat conftest.err >&5
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); } &&
16503          { ac_try='test -z "$ac_c_werror_flag"
16504                          || test ! -s conftest.err'
16505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506   (eval $ac_try) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; } &&
16510          { ac_try='test -s conftest.$ac_objext'
16511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512   (eval $ac_try) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; }; then
16516   ac_hi=$ac_mid; break
16517 else
16518   echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_lo=`expr $ac_mid + 1`
16522                     if test $ac_lo -le $ac_mid; then
16523                       ac_lo= ac_hi=
16524                       break
16525                     fi
16526                     ac_mid=`expr 2 '*' $ac_mid + 1`
16527 fi
16528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16529   done
16530 else
16531   echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h.  */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h.  */
16540 $ac_includes_default
16541 int
16542 main ()
16543 {
16544 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16545 test_array [0] = 0
16546
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553   (eval $ac_compile) 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -z "$ac_c_werror_flag"
16561                          || test ! -s conftest.err'
16562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563   (eval $ac_try) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); }; } &&
16567          { ac_try='test -s conftest.$ac_objext'
16568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569   (eval $ac_try) 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_hi=-1 ac_mid=-1
16574   while :; do
16575     cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 $ac_includes_default
16582 int
16583 main ()
16584 {
16585 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16586 test_array [0] = 0
16587
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16594   (eval $ac_compile) 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -z "$ac_c_werror_flag"
16602                          || test ! -s conftest.err'
16603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604   (eval $ac_try) 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; } &&
16608          { ac_try='test -s conftest.$ac_objext'
16609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610   (eval $ac_try) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   ac_lo=$ac_mid; break
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ac_hi=`expr '(' $ac_mid ')' - 1`
16620                        if test $ac_mid -le $ac_hi; then
16621                          ac_lo= ac_hi=
16622                          break
16623                        fi
16624                        ac_mid=`expr 2 '*' $ac_mid`
16625 fi
16626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16627   done
16628 else
16629   echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632 ac_lo= ac_hi=
16633 fi
16634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16635 fi
16636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16637 # Binary search between lo and hi bounds.
16638 while test "x$ac_lo" != "x$ac_hi"; do
16639   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16640   cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 $ac_includes_default
16647 int
16648 main ()
16649 {
16650 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16651 test_array [0] = 0
16652
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 rm -f conftest.$ac_objext
16658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16659   (eval $ac_compile) 2>conftest.er1
16660   ac_status=$?
16661   grep -v '^ *+' conftest.er1 >conftest.err
16662   rm -f conftest.er1
16663   cat conftest.err >&5
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); } &&
16666          { ac_try='test -z "$ac_c_werror_flag"
16667                          || test ! -s conftest.err'
16668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669   (eval $ac_try) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_hi=$ac_mid
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 ac_lo=`expr '(' $ac_mid ')' + 1`
16685 fi
16686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16687 done
16688 case $ac_lo in
16689 ?*) ac_cv_sizeof_size_t=$ac_lo;;
16690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16691 See \`config.log' for more details." >&5
16692 echo "$as_me: error: cannot compute sizeof (size_t), 77
16693 See \`config.log' for more details." >&2;}
16694    { (exit 1); exit 1; }; } ;;
16695 esac
16696 else
16697   if test "$cross_compiling" = yes; then
16698   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16699 See \`config.log' for more details." >&5
16700 echo "$as_me: error: cannot run test program while cross compiling
16701 See \`config.log' for more details." >&2;}
16702    { (exit 1); exit 1; }; }
16703 else
16704   cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 $ac_includes_default
16711 long longval () { return (long) (sizeof (size_t)); }
16712 unsigned long ulongval () { return (long) (sizeof (size_t)); }
16713 #include <stdio.h>
16714 #include <stdlib.h>
16715 int
16716 main ()
16717 {
16718
16719   FILE *f = fopen ("conftest.val", "w");
16720   if (! f)
16721     exit (1);
16722   if (((long) (sizeof (size_t))) < 0)
16723     {
16724       long i = longval ();
16725       if (i != ((long) (sizeof (size_t))))
16726         exit (1);
16727       fprintf (f, "%ld\n", i);
16728     }
16729   else
16730     {
16731       unsigned long i = ulongval ();
16732       if (i != ((long) (sizeof (size_t))))
16733         exit (1);
16734       fprintf (f, "%lu\n", i);
16735     }
16736   exit (ferror (f) || fclose (f) != 0);
16737
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744   (eval $ac_link) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749   (eval $ac_try) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; }; then
16753   ac_cv_sizeof_size_t=`cat conftest.val`
16754 else
16755   echo "$as_me: program exited with status $ac_status" >&5
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 ( exit $ac_status )
16760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16761 See \`config.log' for more details." >&5
16762 echo "$as_me: error: cannot compute sizeof (size_t), 77
16763 See \`config.log' for more details." >&2;}
16764    { (exit 1); exit 1; }; }
16765 fi
16766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16767 fi
16768 fi
16769 rm -f conftest.val
16770 else
16771   ac_cv_sizeof_size_t=0
16772 fi
16773 fi
16774 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16775 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16776 cat >>confdefs.h <<_ACEOF
16777 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16778 _ACEOF
16779
16780
16781
16782 case "${host}" in
16783     arm-*-linux* )
16784         echo "$as_me:$LINENO: checking for long long" >&5
16785 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16786 if test "${ac_cv_type_long_long+set}" = set; then
16787   echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789   cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 $ac_includes_default
16796 int
16797 main ()
16798 {
16799 if ((long long *) 0)
16800   return 0;
16801 if (sizeof (long long))
16802   return 0;
16803   ;
16804   return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809   (eval $ac_compile) 2>conftest.er1
16810   ac_status=$?
16811   grep -v '^ *+' conftest.er1 >conftest.err
16812   rm -f conftest.er1
16813   cat conftest.err >&5
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -z "$ac_c_werror_flag"
16817                          || test ! -s conftest.err'
16818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819   (eval $ac_try) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; } &&
16823          { ac_try='test -s conftest.$ac_objext'
16824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825   (eval $ac_try) 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; }; then
16829   ac_cv_type_long_long=yes
16830 else
16831   echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_cv_type_long_long=no
16835 fi
16836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 fi
16838 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16839 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16840
16841 echo "$as_me:$LINENO: checking size of long long" >&5
16842 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16843 if test "${ac_cv_sizeof_long_long+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   if test "$ac_cv_type_long_long" = yes; then
16847   # The cast to unsigned long works around a bug in the HP C Compiler
16848   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16849   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16850   # This bug is HP SR number 8606223364.
16851   if test "$cross_compiling" = yes; then
16852   # Depending upon the size, compute the lo and hi bounds.
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 $ac_includes_default
16860 int
16861 main ()
16862 {
16863 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16864 test_array [0] = 0
16865
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872   (eval $ac_compile) 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag"
16880                          || test ! -s conftest.err'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; } &&
16886          { ac_try='test -s conftest.$ac_objext'
16887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888   (eval $ac_try) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892   ac_lo=0 ac_mid=0
16893   while :; do
16894     cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900 $ac_includes_default
16901 int
16902 main ()
16903 {
16904 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16905 test_array [0] = 0
16906
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16913   (eval $ac_compile) 2>conftest.er1
16914   ac_status=$?
16915   grep -v '^ *+' conftest.er1 >conftest.err
16916   rm -f conftest.er1
16917   cat conftest.err >&5
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); } &&
16920          { ac_try='test -z "$ac_c_werror_flag"
16921                          || test ! -s conftest.err'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; } &&
16927          { ac_try='test -s conftest.$ac_objext'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; }; then
16933   ac_hi=$ac_mid; break
16934 else
16935   echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 ac_lo=`expr $ac_mid + 1`
16939                     if test $ac_lo -le $ac_mid; then
16940                       ac_lo= ac_hi=
16941                       break
16942                     fi
16943                     ac_mid=`expr 2 '*' $ac_mid + 1`
16944 fi
16945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16946   done
16947 else
16948   echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 cat >conftest.$ac_ext <<_ACEOF
16952 /* confdefs.h.  */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h.  */
16957 $ac_includes_default
16958 int
16959 main ()
16960 {
16961 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16962 test_array [0] = 0
16963
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970   (eval $ac_compile) 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } &&
16977          { ac_try='test -z "$ac_c_werror_flag"
16978                          || test ! -s conftest.err'
16979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980   (eval $ac_try) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; } &&
16984          { ac_try='test -s conftest.$ac_objext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   ac_hi=-1 ac_mid=-1
16991   while :; do
16992     cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998 $ac_includes_default
16999 int
17000 main ()
17001 {
17002 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17003 test_array [0] = 0
17004
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011   (eval $ac_compile) 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } &&
17018          { ac_try='test -z "$ac_c_werror_flag"
17019                          || test ! -s conftest.err'
17020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021   (eval $ac_try) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; } &&
17025          { ac_try='test -s conftest.$ac_objext'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; }; then
17031   ac_lo=$ac_mid; break
17032 else
17033   echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_hi=`expr '(' $ac_mid ')' - 1`
17037                        if test $ac_mid -le $ac_hi; then
17038                          ac_lo= ac_hi=
17039                          break
17040                        fi
17041                        ac_mid=`expr 2 '*' $ac_mid`
17042 fi
17043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17044   done
17045 else
17046   echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049 ac_lo= ac_hi=
17050 fi
17051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17052 fi
17053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054 # Binary search between lo and hi bounds.
17055 while test "x$ac_lo" != "x$ac_hi"; do
17056   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17057   cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 $ac_includes_default
17064 int
17065 main ()
17066 {
17067 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17068 test_array [0] = 0
17069
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076   (eval $ac_compile) 2>conftest.er1
17077   ac_status=$?
17078   grep -v '^ *+' conftest.er1 >conftest.err
17079   rm -f conftest.er1
17080   cat conftest.err >&5
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } &&
17083          { ac_try='test -z "$ac_c_werror_flag"
17084                          || test ! -s conftest.err'
17085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086   (eval $ac_try) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; } &&
17090          { ac_try='test -s conftest.$ac_objext'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_hi=$ac_mid
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_lo=`expr '(' $ac_mid ')' + 1`
17102 fi
17103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17104 done
17105 case $ac_lo in
17106 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17107 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17108 See \`config.log' for more details." >&5
17109 echo "$as_me: error: cannot compute sizeof (long long), 77
17110 See \`config.log' for more details." >&2;}
17111    { (exit 1); exit 1; }; } ;;
17112 esac
17113 else
17114   if test "$cross_compiling" = yes; then
17115   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17116 See \`config.log' for more details." >&5
17117 echo "$as_me: error: cannot run test program while cross compiling
17118 See \`config.log' for more details." >&2;}
17119    { (exit 1); exit 1; }; }
17120 else
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 $ac_includes_default
17128 long longval () { return (long) (sizeof (long long)); }
17129 unsigned long ulongval () { return (long) (sizeof (long long)); }
17130 #include <stdio.h>
17131 #include <stdlib.h>
17132 int
17133 main ()
17134 {
17135
17136   FILE *f = fopen ("conftest.val", "w");
17137   if (! f)
17138     exit (1);
17139   if (((long) (sizeof (long long))) < 0)
17140     {
17141       long i = longval ();
17142       if (i != ((long) (sizeof (long long))))
17143         exit (1);
17144       fprintf (f, "%ld\n", i);
17145     }
17146   else
17147     {
17148       unsigned long i = ulongval ();
17149       if (i != ((long) (sizeof (long long))))
17150         exit (1);
17151       fprintf (f, "%lu\n", i);
17152     }
17153   exit (ferror (f) || fclose (f) != 0);
17154
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest$ac_exeext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17161   (eval $ac_link) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166   (eval $ac_try) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; }; then
17170   ac_cv_sizeof_long_long=`cat conftest.val`
17171 else
17172   echo "$as_me: program exited with status $ac_status" >&5
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176 ( exit $ac_status )
17177 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17178 See \`config.log' for more details." >&5
17179 echo "$as_me: error: cannot compute sizeof (long long), 77
17180 See \`config.log' for more details." >&2;}
17181    { (exit 1); exit 1; }; }
17182 fi
17183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17184 fi
17185 fi
17186 rm -f conftest.val
17187 else
17188   ac_cv_sizeof_long_long=0
17189 fi
17190 fi
17191 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17192 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17193 cat >>confdefs.h <<_ACEOF
17194 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17195 _ACEOF
17196
17197
17198     ;;
17199     *-hp-hpux* )
17200         echo "$as_me:$LINENO: checking for long long" >&5
17201 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17202 if test "${ac_cv_type_long_long+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h.  */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h.  */
17211 $ac_includes_default
17212 int
17213 main ()
17214 {
17215 if ((long long *) 0)
17216   return 0;
17217 if (sizeof (long long))
17218   return 0;
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225   (eval $ac_compile) 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -z "$ac_c_werror_flag"
17233                          || test ! -s conftest.err'
17234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235   (eval $ac_try) 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; } &&
17239          { ac_try='test -s conftest.$ac_objext'
17240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241   (eval $ac_try) 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   ac_cv_type_long_long=yes
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 ac_cv_type_long_long=no
17251 fi
17252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17253 fi
17254 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17255 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17256
17257 echo "$as_me:$LINENO: checking size of long long" >&5
17258 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17259 if test "${ac_cv_sizeof_long_long+set}" = set; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   if test "$ac_cv_type_long_long" = yes; then
17263   # The cast to unsigned long works around a bug in the HP C Compiler
17264   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17265   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17266   # This bug is HP SR number 8606223364.
17267   if test "$cross_compiling" = yes; then
17268   # Depending upon the size, compute the lo and hi bounds.
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275 $ac_includes_default
17276 int
17277 main ()
17278 {
17279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17280 test_array [0] = 0
17281
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17288   (eval $ac_compile) 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } &&
17295          { ac_try='test -z "$ac_c_werror_flag"
17296                          || test ! -s conftest.err'
17297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298   (eval $ac_try) 2>&5
17299   ac_status=$?
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); }; } &&
17302          { ac_try='test -s conftest.$ac_objext'
17303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304   (eval $ac_try) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; }; then
17308   ac_lo=0 ac_mid=0
17309   while :; do
17310     cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316 $ac_includes_default
17317 int
17318 main ()
17319 {
17320 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17321 test_array [0] = 0
17322
17323   ;
17324   return 0;
17325 }
17326 _ACEOF
17327 rm -f conftest.$ac_objext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329   (eval $ac_compile) 2>conftest.er1
17330   ac_status=$?
17331   grep -v '^ *+' conftest.er1 >conftest.err
17332   rm -f conftest.er1
17333   cat conftest.err >&5
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); } &&
17336          { ac_try='test -z "$ac_c_werror_flag"
17337                          || test ! -s conftest.err'
17338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339   (eval $ac_try) 2>&5
17340   ac_status=$?
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); }; } &&
17343          { ac_try='test -s conftest.$ac_objext'
17344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345   (eval $ac_try) 2>&5
17346   ac_status=$?
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); }; }; then
17349   ac_hi=$ac_mid; break
17350 else
17351   echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17353
17354 ac_lo=`expr $ac_mid + 1`
17355                     if test $ac_lo -le $ac_mid; then
17356                       ac_lo= ac_hi=
17357                       break
17358                     fi
17359                     ac_mid=`expr 2 '*' $ac_mid + 1`
17360 fi
17361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17362   done
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h.  */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h.  */
17373 $ac_includes_default
17374 int
17375 main ()
17376 {
17377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17378 test_array [0] = 0
17379
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386   (eval $ac_compile) 2>conftest.er1
17387   ac_status=$?
17388   grep -v '^ *+' conftest.er1 >conftest.err
17389   rm -f conftest.er1
17390   cat conftest.err >&5
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } &&
17393          { ac_try='test -z "$ac_c_werror_flag"
17394                          || test ! -s conftest.err'
17395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396   (eval $ac_try) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; } &&
17400          { ac_try='test -s conftest.$ac_objext'
17401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402   (eval $ac_try) 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; }; then
17406   ac_hi=-1 ac_mid=-1
17407   while :; do
17408     cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 $ac_includes_default
17415 int
17416 main ()
17417 {
17418 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17419 test_array [0] = 0
17420
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427   (eval $ac_compile) 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } &&
17434          { ac_try='test -z "$ac_c_werror_flag"
17435                          || test ! -s conftest.err'
17436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437   (eval $ac_try) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; } &&
17441          { ac_try='test -s conftest.$ac_objext'
17442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443   (eval $ac_try) 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); }; }; then
17447   ac_lo=$ac_mid; break
17448 else
17449   echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ac_hi=`expr '(' $ac_mid ')' - 1`
17453                        if test $ac_mid -le $ac_hi; then
17454                          ac_lo= ac_hi=
17455                          break
17456                        fi
17457                        ac_mid=`expr 2 '*' $ac_mid`
17458 fi
17459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17460   done
17461 else
17462   echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465 ac_lo= ac_hi=
17466 fi
17467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17468 fi
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17470 # Binary search between lo and hi bounds.
17471 while test "x$ac_lo" != "x$ac_hi"; do
17472   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17473   cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 $ac_includes_default
17480 int
17481 main ()
17482 {
17483 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17484 test_array [0] = 0
17485
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492   (eval $ac_compile) 2>conftest.er1
17493   ac_status=$?
17494   grep -v '^ *+' conftest.er1 >conftest.err
17495   rm -f conftest.er1
17496   cat conftest.err >&5
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } &&
17499          { ac_try='test -z "$ac_c_werror_flag"
17500                          || test ! -s conftest.err'
17501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502   (eval $ac_try) 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; } &&
17506          { ac_try='test -s conftest.$ac_objext'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; }; then
17512   ac_hi=$ac_mid
17513 else
17514   echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17516
17517 ac_lo=`expr '(' $ac_mid ')' + 1`
17518 fi
17519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17520 done
17521 case $ac_lo in
17522 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17523 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17524 See \`config.log' for more details." >&5
17525 echo "$as_me: error: cannot compute sizeof (long long), 77
17526 See \`config.log' for more details." >&2;}
17527    { (exit 1); exit 1; }; } ;;
17528 esac
17529 else
17530   if test "$cross_compiling" = yes; then
17531   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17532 See \`config.log' for more details." >&5
17533 echo "$as_me: error: cannot run test program while cross compiling
17534 See \`config.log' for more details." >&2;}
17535    { (exit 1); exit 1; }; }
17536 else
17537   cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543 $ac_includes_default
17544 long longval () { return (long) (sizeof (long long)); }
17545 unsigned long ulongval () { return (long) (sizeof (long long)); }
17546 #include <stdio.h>
17547 #include <stdlib.h>
17548 int
17549 main ()
17550 {
17551
17552   FILE *f = fopen ("conftest.val", "w");
17553   if (! f)
17554     exit (1);
17555   if (((long) (sizeof (long long))) < 0)
17556     {
17557       long i = longval ();
17558       if (i != ((long) (sizeof (long long))))
17559         exit (1);
17560       fprintf (f, "%ld\n", i);
17561     }
17562   else
17563     {
17564       unsigned long i = ulongval ();
17565       if (i != ((long) (sizeof (long long))))
17566         exit (1);
17567       fprintf (f, "%lu\n", i);
17568     }
17569   exit (ferror (f) || fclose (f) != 0);
17570
17571   ;
17572   return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest$ac_exeext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577   (eval $ac_link) 2>&5
17578   ac_status=$?
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_cv_sizeof_long_long=`cat conftest.val`
17587 else
17588   echo "$as_me: program exited with status $ac_status" >&5
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592 ( exit $ac_status )
17593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17594 See \`config.log' for more details." >&5
17595 echo "$as_me: error: cannot compute sizeof (long long), 77
17596 See \`config.log' for more details." >&2;}
17597    { (exit 1); exit 1; }; }
17598 fi
17599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17600 fi
17601 fi
17602 rm -f conftest.val
17603 else
17604   ac_cv_sizeof_long_long=0
17605 fi
17606 fi
17607 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17608 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17609 cat >>confdefs.h <<_ACEOF
17610 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17611 _ACEOF
17612
17613
17614         if test "$ac_cv_sizeof_long_long" != "0"; then
17615                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17616         fi
17617     ;;
17618     * )
17619         echo "$as_me:$LINENO: checking for long long" >&5
17620 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17621 if test "${ac_cv_type_long_long+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630 $ac_includes_default
17631 int
17632 main ()
17633 {
17634 if ((long long *) 0)
17635   return 0;
17636 if (sizeof (long long))
17637   return 0;
17638   ;
17639   return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17644   (eval $ac_compile) 2>conftest.er1
17645   ac_status=$?
17646   grep -v '^ *+' conftest.er1 >conftest.err
17647   rm -f conftest.er1
17648   cat conftest.err >&5
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); } &&
17651          { ac_try='test -z "$ac_c_werror_flag"
17652                          || test ! -s conftest.err'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; } &&
17658          { ac_try='test -s conftest.$ac_objext'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; }; then
17664   ac_cv_type_long_long=yes
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669 ac_cv_type_long_long=no
17670 fi
17671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17672 fi
17673 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17674 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17675
17676 echo "$as_me:$LINENO: checking size of long long" >&5
17677 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17678 if test "${ac_cv_sizeof_long_long+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681   if test "$ac_cv_type_long_long" = yes; then
17682   # The cast to unsigned long works around a bug in the HP C Compiler
17683   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17684   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17685   # This bug is HP SR number 8606223364.
17686   if test "$cross_compiling" = yes; then
17687   # Depending upon the size, compute the lo and hi bounds.
17688 cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694 $ac_includes_default
17695 int
17696 main ()
17697 {
17698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17699 test_array [0] = 0
17700
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707   (eval $ac_compile) 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -z "$ac_c_werror_flag"
17715                          || test ! -s conftest.err'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   ac_lo=0 ac_mid=0
17728   while :; do
17729     cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 $ac_includes_default
17736 int
17737 main ()
17738 {
17739 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17740 test_array [0] = 0
17741
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748   (eval $ac_compile) 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag"
17756                          || test ! -s conftest.err'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest.$ac_objext'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   ac_hi=$ac_mid; break
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773 ac_lo=`expr $ac_mid + 1`
17774                     if test $ac_lo -le $ac_mid; then
17775                       ac_lo= ac_hi=
17776                       break
17777                     fi
17778                     ac_mid=`expr 2 '*' $ac_mid + 1`
17779 fi
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17781   done
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792 $ac_includes_default
17793 int
17794 main ()
17795 {
17796 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17797 test_array [0] = 0
17798
17799   ;
17800   return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17805   (eval $ac_compile) 2>conftest.er1
17806   ac_status=$?
17807   grep -v '^ *+' conftest.er1 >conftest.err
17808   rm -f conftest.er1
17809   cat conftest.err >&5
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); } &&
17812          { ac_try='test -z "$ac_c_werror_flag"
17813                          || test ! -s conftest.err'
17814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; } &&
17819          { ac_try='test -s conftest.$ac_objext'
17820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821   (eval $ac_try) 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; }; then
17825   ac_hi=-1 ac_mid=-1
17826   while :; do
17827     cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h.  */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h.  */
17833 $ac_includes_default
17834 int
17835 main ()
17836 {
17837 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17838 test_array [0] = 0
17839
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 rm -f conftest.$ac_objext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17846   (eval $ac_compile) 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag"
17854                          || test ! -s conftest.err'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest.$ac_objext'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   ac_lo=$ac_mid; break
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 ac_hi=`expr '(' $ac_mid ')' - 1`
17872                        if test $ac_mid -le $ac_hi; then
17873                          ac_lo= ac_hi=
17874                          break
17875                        fi
17876                        ac_mid=`expr 2 '*' $ac_mid`
17877 fi
17878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17879   done
17880 else
17881   echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 ac_lo= ac_hi=
17885 fi
17886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17887 fi
17888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17889 # Binary search between lo and hi bounds.
17890 while test "x$ac_lo" != "x$ac_hi"; do
17891   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17892   cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 $ac_includes_default
17899 int
17900 main ()
17901 {
17902 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17903 test_array [0] = 0
17904
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911   (eval $ac_compile) 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } &&
17918          { ac_try='test -z "$ac_c_werror_flag"
17919                          || test ! -s conftest.err'
17920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921   (eval $ac_try) 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; } &&
17925          { ac_try='test -s conftest.$ac_objext'
17926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927   (eval $ac_try) 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); }; }; then
17931   ac_hi=$ac_mid
17932 else
17933   echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 ac_lo=`expr '(' $ac_mid ')' + 1`
17937 fi
17938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17939 done
17940 case $ac_lo in
17941 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17942 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17943 See \`config.log' for more details." >&5
17944 echo "$as_me: error: cannot compute sizeof (long long), 77
17945 See \`config.log' for more details." >&2;}
17946    { (exit 1); exit 1; }; } ;;
17947 esac
17948 else
17949   if test "$cross_compiling" = yes; then
17950   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17951 See \`config.log' for more details." >&5
17952 echo "$as_me: error: cannot run test program while cross compiling
17953 See \`config.log' for more details." >&2;}
17954    { (exit 1); exit 1; }; }
17955 else
17956   cat >conftest.$ac_ext <<_ACEOF
17957 /* confdefs.h.  */
17958 _ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h.  */
17962 $ac_includes_default
17963 long longval () { return (long) (sizeof (long long)); }
17964 unsigned long ulongval () { return (long) (sizeof (long long)); }
17965 #include <stdio.h>
17966 #include <stdlib.h>
17967 int
17968 main ()
17969 {
17970
17971   FILE *f = fopen ("conftest.val", "w");
17972   if (! f)
17973     exit (1);
17974   if (((long) (sizeof (long long))) < 0)
17975     {
17976       long i = longval ();
17977       if (i != ((long) (sizeof (long long))))
17978         exit (1);
17979       fprintf (f, "%ld\n", i);
17980     }
17981   else
17982     {
17983       unsigned long i = ulongval ();
17984       if (i != ((long) (sizeof (long long))))
17985         exit (1);
17986       fprintf (f, "%lu\n", i);
17987     }
17988   exit (ferror (f) || fclose (f) != 0);
17989
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996   (eval $ac_link) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001   (eval $ac_try) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   ac_cv_sizeof_long_long=`cat conftest.val`
18006 else
18007   echo "$as_me: program exited with status $ac_status" >&5
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ( exit $ac_status )
18012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18013 See \`config.log' for more details." >&5
18014 echo "$as_me: error: cannot compute sizeof (long long), 77
18015 See \`config.log' for more details." >&2;}
18016    { (exit 1); exit 1; }; }
18017 fi
18018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18019 fi
18020 fi
18021 rm -f conftest.val
18022 else
18023   ac_cv_sizeof_long_long=0
18024 fi
18025 fi
18026 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18027 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18028 cat >>confdefs.h <<_ACEOF
18029 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18030 _ACEOF
18031
18032
18033 esac
18034
18035 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18036 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18037 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040
18041     if test "$cross_compiling" = yes; then
18042
18043             case "${host}" in
18044               *-pc-msdosdjgpp )
18045                 wx_cv_sizeof_wchar_t=0
18046                 ;;
18047               * )
18048                 wx_cv_sizeof_wchar_t=4
18049                 ;;
18050             esac
18051
18052
18053 else
18054   cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060
18061             /* DJGPP only has fake wchar_t: */
18062             #ifdef __DJGPP__
18063             #  error "fake wchar_t"
18064             #endif
18065             #ifdef HAVE_WCHAR_H
18066             #  ifdef __CYGWIN__
18067             #    include <stddef.h>
18068             #  endif
18069             #  include <wchar.h>
18070             #endif
18071             #ifdef HAVE_STDLIB_H
18072             #  include <stdlib.h>
18073             #endif
18074             #include <stdio.h>
18075             int main()
18076             {
18077                 FILE *f=fopen("conftestval", "w");
18078                 if (!f) exit(1);
18079                 fprintf(f, "%i", sizeof(wchar_t));
18080                 exit(0);
18081             }
18082
18083 _ACEOF
18084 rm -f conftest$ac_exeext
18085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18086   (eval $ac_link) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091   (eval $ac_try) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; }; then
18095   wx_cv_sizeof_wchar_t=`cat conftestval`
18096 else
18097   echo "$as_me: program exited with status $ac_status" >&5
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ( exit $ac_status )
18102 wx_cv_sizeof_wchar_t=0
18103 fi
18104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18105 fi
18106
18107 fi
18108 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18109 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18110
18111 cat >>confdefs.h <<_ACEOF
18112 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18113 _ACEOF
18114
18115
18116 # Check whether --enable-largefile or --disable-largefile was given.
18117 if test "${enable_largefile+set}" = set; then
18118   enableval="$enable_largefile"
18119
18120 fi;
18121 if test "$enable_largefile" != no; then
18122             wx_largefile=no
18123
18124     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18125 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18126 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18127   echo $ECHO_N "(cached) $ECHO_C" >&6
18128 else
18129
18130           cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h.  */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h.  */
18136 #define _FILE_OFFSET_BITS 64
18137                           #include <sys/types.h>
18138 int
18139 main ()
18140 {
18141 typedef struct {
18142     unsigned int field: sizeof(off_t) == 8;
18143 } wxlf;
18144
18145   ;
18146   return 0;
18147 }
18148 _ACEOF
18149 rm -f conftest.$ac_objext
18150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18151   (eval $ac_compile) 2>conftest.er1
18152   ac_status=$?
18153   grep -v '^ *+' conftest.er1 >conftest.err
18154   rm -f conftest.er1
18155   cat conftest.err >&5
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); } &&
18158          { ac_try='test -z "$ac_c_werror_flag"
18159                          || test ! -s conftest.err'
18160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161   (eval $ac_try) 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; } &&
18165          { ac_try='test -s conftest.$ac_objext'
18166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167   (eval $ac_try) 2>&5
18168   ac_status=$?
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); }; }; then
18171   ac_cv_sys_file_offset_bits=64
18172 else
18173   echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175
18176 ac_cv_sys_file_offset_bits=no
18177 fi
18178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18179
18180
18181 fi
18182 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18184
18185     if test "$ac_cv_sys_file_offset_bits" != no; then
18186         wx_largefile=yes
18187         cat >>confdefs.h <<_ACEOF
18188 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18189 _ACEOF
18190
18191     fi
18192
18193     if test "x$wx_largefile" != "xyes"; then
18194
18195     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18196 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18197 if test "${ac_cv_sys_large_files+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200
18201           cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 #define _LARGE_FILES 1
18208                           #include <sys/types.h>
18209 int
18210 main ()
18211 {
18212 typedef struct {
18213     unsigned int field: sizeof(off_t) == 8;
18214 } wxlf;
18215
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext
18221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18222   (eval $ac_compile) 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } &&
18229          { ac_try='test -z "$ac_c_werror_flag"
18230                          || test ! -s conftest.err'
18231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232   (eval $ac_try) 2>&5
18233   ac_status=$?
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); }; } &&
18236          { ac_try='test -s conftest.$ac_objext'
18237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238   (eval $ac_try) 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; }; then
18242   ac_cv_sys_large_files=1
18243 else
18244   echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18246
18247 ac_cv_sys_large_files=no
18248 fi
18249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18250
18251
18252 fi
18253 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18254 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18255
18256     if test "$ac_cv_sys_large_files" != no; then
18257         wx_largefile=yes
18258         cat >>confdefs.h <<_ACEOF
18259 #define _LARGE_FILES $ac_cv_sys_large_files
18260 _ACEOF
18261
18262     fi
18263
18264     fi
18265
18266     echo "$as_me:$LINENO: checking if large file support is available" >&5
18267 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18268     if test "x$wx_largefile" = "xyes"; then
18269         cat >>confdefs.h <<\_ACEOF
18270 #define HAVE_LARGEFILE_SUPPORT 1
18271 _ACEOF
18272
18273     fi
18274     echo "$as_me:$LINENO: result: $wx_largefile" >&5
18275 echo "${ECHO_T}$wx_largefile" >&6
18276 fi
18277
18278
18279 if test "x$wx_largefile" = "xyes"; then
18280     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18281         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18282     else
18283         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18284     fi
18285     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18286 fi
18287
18288 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18289 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18290 if test "${ac_cv_c_bigendian+set}" = set; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293   ac_cv_c_bigendian=unknown
18294 # See if sys/param.h defines the BYTE_ORDER macro.
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h.  */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h.  */
18301 #include <sys/types.h>
18302 #include <sys/param.h>
18303 int
18304 main ()
18305 {
18306
18307 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18308  bogus endian macros
18309 #endif
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316   (eval $ac_compile) 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag"
18324                          || test ! -s conftest.err'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; } &&
18330          { ac_try='test -s conftest.$ac_objext'
18331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332   (eval $ac_try) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   # It does; now see whether it defined to BIG_ENDIAN or not.
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 #include <sys/types.h>
18344 #include <sys/param.h>
18345 int
18346 main ()
18347 {
18348
18349 #if BYTE_ORDER != BIG_ENDIAN
18350  not big endian
18351 #endif
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18358   (eval $ac_compile) 2>conftest.er1
18359   ac_status=$?
18360   grep -v '^ *+' conftest.er1 >conftest.err
18361   rm -f conftest.er1
18362   cat conftest.err >&5
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } &&
18365          { ac_try='test -z "$ac_c_werror_flag"
18366                          || test ! -s conftest.err'
18367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368   (eval $ac_try) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest.$ac_objext'
18373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374   (eval $ac_try) 2>&5
18375   ac_status=$?
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); }; }; then
18378   ac_cv_c_bigendian=yes
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 ac_cv_c_bigendian=no
18384 fi
18385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18386 else
18387   echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 fi
18391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18392 if test $ac_cv_c_bigendian = unknown; then
18393 if test "$cross_compiling" = yes; then
18394   ac_cv_c_bigendian=unknown
18395 else
18396   cat >conftest.$ac_ext <<_ACEOF
18397 /* confdefs.h.  */
18398 _ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h.  */
18402 main () {
18403   /* Are we little or big endian?  From Harbison&Steele.  */
18404   union
18405   {
18406     long l;
18407     char c[sizeof (long)];
18408   } u;
18409   u.l = 1;
18410   exit (u.c[sizeof (long) - 1] == 1);
18411 }
18412 _ACEOF
18413 rm -f conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415   (eval $ac_link) 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420   (eval $ac_try) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_cv_c_bigendian=no
18425 else
18426   echo "$as_me: program exited with status $ac_status" >&5
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430 ( exit $ac_status )
18431 ac_cv_c_bigendian=yes
18432 fi
18433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18434 fi
18435 fi
18436 fi
18437 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18438 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18439 if test $ac_cv_c_bigendian = unknown; then
18440   { 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
18441 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;}
18442 fi
18443 if test $ac_cv_c_bigendian = yes; then
18444   cat >>confdefs.h <<\_ACEOF
18445 #define WORDS_BIGENDIAN 1
18446 _ACEOF
18447
18448 fi
18449
18450
18451 ac_ext=cc
18452 ac_cpp='$CXXCPP $CPPFLAGS'
18453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18456 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18457 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18458 if test -z "$CXXCPP"; then
18459   if test "${ac_cv_prog_CXXCPP+set}" = set; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462       # Double quotes because CXXCPP needs to be expanded
18463     for CXXCPP in "$CXX -E" "/lib/cpp"
18464     do
18465       ac_preproc_ok=false
18466 for ac_cxx_preproc_warn_flag in '' yes
18467 do
18468   # Use a header file that comes with gcc, so configuring glibc
18469   # with a fresh cross-compiler works.
18470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18471   # <limits.h> exists even on freestanding compilers.
18472   # On the NeXT, cc -E runs the code through the compiler's parser,
18473   # not just through cpp. "Syntax error" is here to catch this case.
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480 #ifdef __STDC__
18481 # include <limits.h>
18482 #else
18483 # include <assert.h>
18484 #endif
18485                      Syntax error
18486 _ACEOF
18487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } >/dev/null; then
18495   if test -s conftest.err; then
18496     ac_cpp_err=$ac_cxx_preproc_warn_flag
18497     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18498   else
18499     ac_cpp_err=
18500   fi
18501 else
18502   ac_cpp_err=yes
18503 fi
18504 if test -z "$ac_cpp_err"; then
18505   :
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510   # Broken: fails on valid input.
18511 continue
18512 fi
18513 rm -f conftest.err conftest.$ac_ext
18514
18515   # OK, works on sane cases.  Now check whether non-existent headers
18516   # can be detected and how.
18517   cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 #include <ac_nonexistent.h>
18524 _ACEOF
18525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18527   ac_status=$?
18528   grep -v '^ *+' conftest.er1 >conftest.err
18529   rm -f conftest.er1
18530   cat conftest.err >&5
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } >/dev/null; then
18533   if test -s conftest.err; then
18534     ac_cpp_err=$ac_cxx_preproc_warn_flag
18535     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18536   else
18537     ac_cpp_err=
18538   fi
18539 else
18540   ac_cpp_err=yes
18541 fi
18542 if test -z "$ac_cpp_err"; then
18543   # Broken: success on invalid input.
18544 continue
18545 else
18546   echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18548
18549   # Passes both tests.
18550 ac_preproc_ok=:
18551 break
18552 fi
18553 rm -f conftest.err conftest.$ac_ext
18554
18555 done
18556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18557 rm -f conftest.err conftest.$ac_ext
18558 if $ac_preproc_ok; then
18559   break
18560 fi
18561
18562     done
18563     ac_cv_prog_CXXCPP=$CXXCPP
18564
18565 fi
18566   CXXCPP=$ac_cv_prog_CXXCPP
18567 else
18568   ac_cv_prog_CXXCPP=$CXXCPP
18569 fi
18570 echo "$as_me:$LINENO: result: $CXXCPP" >&5
18571 echo "${ECHO_T}$CXXCPP" >&6
18572 ac_preproc_ok=false
18573 for ac_cxx_preproc_warn_flag in '' yes
18574 do
18575   # Use a header file that comes with gcc, so configuring glibc
18576   # with a fresh cross-compiler works.
18577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18578   # <limits.h> exists even on freestanding compilers.
18579   # On the NeXT, cc -E runs the code through the compiler's parser,
18580   # not just through cpp. "Syntax error" is here to catch this case.
18581   cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h.  */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h.  */
18587 #ifdef __STDC__
18588 # include <limits.h>
18589 #else
18590 # include <assert.h>
18591 #endif
18592                      Syntax error
18593 _ACEOF
18594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18596   ac_status=$?
18597   grep -v '^ *+' conftest.er1 >conftest.err
18598   rm -f conftest.er1
18599   cat conftest.err >&5
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); } >/dev/null; then
18602   if test -s conftest.err; then
18603     ac_cpp_err=$ac_cxx_preproc_warn_flag
18604     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18605   else
18606     ac_cpp_err=
18607   fi
18608 else
18609   ac_cpp_err=yes
18610 fi
18611 if test -z "$ac_cpp_err"; then
18612   :
18613 else
18614   echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617   # Broken: fails on valid input.
18618 continue
18619 fi
18620 rm -f conftest.err conftest.$ac_ext
18621
18622   # OK, works on sane cases.  Now check whether non-existent headers
18623   # can be detected and how.
18624   cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h.  */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h.  */
18630 #include <ac_nonexistent.h>
18631 _ACEOF
18632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18634   ac_status=$?
18635   grep -v '^ *+' conftest.er1 >conftest.err
18636   rm -f conftest.er1
18637   cat conftest.err >&5
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); } >/dev/null; then
18640   if test -s conftest.err; then
18641     ac_cpp_err=$ac_cxx_preproc_warn_flag
18642     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18643   else
18644     ac_cpp_err=
18645   fi
18646 else
18647   ac_cpp_err=yes
18648 fi
18649 if test -z "$ac_cpp_err"; then
18650   # Broken: success on invalid input.
18651 continue
18652 else
18653   echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656   # Passes both tests.
18657 ac_preproc_ok=:
18658 break
18659 fi
18660 rm -f conftest.err conftest.$ac_ext
18661
18662 done
18663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18664 rm -f conftest.err conftest.$ac_ext
18665 if $ac_preproc_ok; then
18666   :
18667 else
18668   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18669 See \`config.log' for more details." >&5
18670 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18671 See \`config.log' for more details." >&2;}
18672    { (exit 1); exit 1; }; }
18673 fi
18674
18675 ac_ext=cc
18676 ac_cpp='$CXXCPP $CPPFLAGS'
18677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18680
18681
18682
18683
18684
18685     ac_ext=cc
18686 ac_cpp='$CXXCPP $CPPFLAGS'
18687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18690
18691
18692
18693 for ac_header in iostream
18694 do
18695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18697   echo "$as_me:$LINENO: checking for $ac_header" >&5
18698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 fi
18702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18704 else
18705   # Is the header compilable?
18706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18708 cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714 $ac_includes_default
18715 #include <$ac_header>
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719   (eval $ac_compile) 2>conftest.er1
18720   ac_status=$?
18721   grep -v '^ *+' conftest.er1 >conftest.err
18722   rm -f conftest.er1
18723   cat conftest.err >&5
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } &&
18726          { ac_try='test -z "$ac_cxx_werror_flag"
18727                          || test ! -s conftest.err'
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); }; } &&
18733          { ac_try='test -s conftest.$ac_objext'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_header_compiler=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_header_compiler=no
18745 fi
18746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18748 echo "${ECHO_T}$ac_header_compiler" >&6
18749
18750 # Is the header present?
18751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18753 cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759 #include <$ac_header>
18760 _ACEOF
18761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18763   ac_status=$?
18764   grep -v '^ *+' conftest.er1 >conftest.err
18765   rm -f conftest.er1
18766   cat conftest.err >&5
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); } >/dev/null; then
18769   if test -s conftest.err; then
18770     ac_cpp_err=$ac_cxx_preproc_warn_flag
18771     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18772   else
18773     ac_cpp_err=
18774   fi
18775 else
18776   ac_cpp_err=yes
18777 fi
18778 if test -z "$ac_cpp_err"; then
18779   ac_header_preproc=yes
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784   ac_header_preproc=no
18785 fi
18786 rm -f conftest.err conftest.$ac_ext
18787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18788 echo "${ECHO_T}$ac_header_preproc" >&6
18789
18790 # So?  What about this header?
18791 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18792   yes:no: )
18793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18797     ac_header_preproc=yes
18798     ;;
18799   no:yes:* )
18800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18812     (
18813       cat <<\_ASBOX
18814 ## ----------------------------------------- ##
18815 ## Report this to wx-dev@lists.wxwindows.org ##
18816 ## ----------------------------------------- ##
18817 _ASBOX
18818     ) |
18819       sed "s/^/$as_me: WARNING:     /" >&2
18820     ;;
18821 esac
18822 echo "$as_me:$LINENO: checking for $ac_header" >&5
18823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   eval "$as_ac_Header=\$ac_header_preproc"
18828 fi
18829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18831
18832 fi
18833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18834   cat >>confdefs.h <<_ACEOF
18835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18836 _ACEOF
18837
18838 fi
18839
18840 done
18841
18842
18843     if test "$ac_cv_header_iostream" = "yes" ; then
18844       :
18845     else
18846       cat >>confdefs.h <<\_ACEOF
18847 #define wxUSE_IOSTREAMH 1
18848 _ACEOF
18849
18850     fi
18851
18852     ac_ext=c
18853 ac_cpp='$CPP $CPPFLAGS'
18854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18857
18858
18859
18860
18861   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18862 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18863 if test "${wx_cv_cpp_bool+set}" = set; then
18864   echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866
18867
18868
18869     ac_ext=cc
18870 ac_cpp='$CXXCPP $CPPFLAGS'
18871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18874
18875
18876     cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h.  */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h.  */
18882
18883
18884 int
18885 main ()
18886 {
18887
18888         bool b = true;
18889
18890         return 0;
18891
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18898   (eval $ac_compile) 2>conftest.er1
18899   ac_status=$?
18900   grep -v '^ *+' conftest.er1 >conftest.err
18901   rm -f conftest.er1
18902   cat conftest.err >&5
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); } &&
18905          { ac_try='test -z "$ac_cxx_werror_flag"
18906                          || test ! -s conftest.err'
18907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908   (eval $ac_try) 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; } &&
18912          { ac_try='test -s conftest.$ac_objext'
18913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914   (eval $ac_try) 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); }; }; then
18918
18919         wx_cv_cpp_bool=yes
18920
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925
18926         wx_cv_cpp_bool=no
18927
18928
18929 fi
18930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18931
18932     ac_ext=c
18933 ac_cpp='$CPP $CPPFLAGS'
18934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18937
18938
18939 fi
18940 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18941 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18942
18943   if test "$wx_cv_cpp_bool" = "yes"; then
18944     cat >>confdefs.h <<\_ACEOF
18945 #define HAVE_BOOL 1
18946 _ACEOF
18947
18948   fi
18949
18950
18951
18952   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18953 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18954 if test "${wx_cv_explicit+set}" = set; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957
18958
18959
18960     ac_ext=cc
18961 ac_cpp='$CXXCPP $CPPFLAGS'
18962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18965
18966
18967             cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h.  */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h.  */
18973
18974         class Foo { public: explicit Foo(int) {} };
18975
18976 int
18977 main ()
18978 {
18979
18980         return 0;
18981
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988   (eval $ac_compile) 2>conftest.er1
18989   ac_status=$?
18990   grep -v '^ *+' conftest.er1 >conftest.err
18991   rm -f conftest.er1
18992   cat conftest.err >&5
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); } &&
18995          { ac_try='test -z "$ac_cxx_werror_flag"
18996                          || test ! -s conftest.err'
18997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998   (eval $ac_try) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; } &&
19002          { ac_try='test -s conftest.$ac_objext'
19003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004   (eval $ac_try) 2>&5
19005   ac_status=$?
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); }; }; then
19008
19009         cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015
19016                 class Foo { public: explicit Foo(int) {} };
19017                 static void TakeFoo(const Foo& foo) { }
19018
19019 int
19020 main ()
19021 {
19022
19023                 TakeFoo(17);
19024                 return 0;
19025
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032   (eval $ac_compile) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -z "$ac_cxx_werror_flag"
19040                          || test ! -s conftest.err'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest.$ac_objext'
19047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048   (eval $ac_try) 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; }; then
19052   wx_cv_explicit=no
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 wx_cv_explicit=yes
19058
19059 fi
19060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19061
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 wx_cv_explicit=no
19067
19068 fi
19069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19070
19071     ac_ext=c
19072 ac_cpp='$CPP $CPPFLAGS'
19073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19076
19077
19078 fi
19079 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19080 echo "${ECHO_T}$wx_cv_explicit" >&6
19081
19082   if test "$wx_cv_explicit" = "yes"; then
19083     cat >>confdefs.h <<\_ACEOF
19084 #define HAVE_EXPLICIT 1
19085 _ACEOF
19086
19087   fi
19088
19089
19090 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19091 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19092 if test "${ac_cv_cxx_const_cast+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095
19096
19097  ac_ext=cc
19098 ac_cpp='$CXXCPP $CPPFLAGS'
19099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19102
19103  cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109
19110 int
19111 main ()
19112 {
19113 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120   (eval $ac_compile) 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -z "$ac_cxx_werror_flag"
19128                          || test ! -s conftest.err'
19129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130   (eval $ac_try) 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); }; } &&
19134          { ac_try='test -s conftest.$ac_objext'
19135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_cxx_const_cast=yes
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ac_cv_cxx_const_cast=no
19146 fi
19147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19148  ac_ext=c
19149 ac_cpp='$CPP $CPPFLAGS'
19150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153
19154
19155 fi
19156 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19157 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19158 if test "$ac_cv_cxx_const_cast" = yes; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_CONST_CAST
19162 _ACEOF
19163
19164 fi
19165
19166 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19167 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19168 if test "${ac_cv_cxx_static_cast+set}" = set; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 else
19171
19172
19173  ac_ext=cc
19174 ac_cpp='$CXXCPP $CPPFLAGS'
19175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19178
19179  cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185 #include <typeinfo>
19186 class Base { public : Base () {} virtual void f () = 0; };
19187 class Derived : public Base { public : Derived () {} virtual void f () {} };
19188 int g (Derived&) { return 0; }
19189 int
19190 main ()
19191 {
19192
19193 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 rm -f conftest.$ac_objext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19200   (eval $ac_compile) 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_cxx_werror_flag"
19208                          || test ! -s conftest.err'
19209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210   (eval $ac_try) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest.$ac_objext'
19215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   ac_cv_cxx_static_cast=yes
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225 ac_cv_cxx_static_cast=no
19226 fi
19227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19228  ac_ext=c
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
19235 fi
19236 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19237 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19238 if test "$ac_cv_cxx_static_cast" = yes; then
19239
19240 cat >>confdefs.h <<\_ACEOF
19241 #define HAVE_STATIC_CAST
19242 _ACEOF
19243
19244 fi
19245
19246
19247 if test "$wxUSE_STL" = "yes"; then
19248     ac_ext=cc
19249 ac_cpp='$CXXCPP $CPPFLAGS'
19250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19253
19254
19255         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19256 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19257     cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <string>
19264                     #include <functional>
19265                     #include <algorithm>
19266                     #include <vector>
19267                     #include <list>
19268 int
19269 main ()
19270 {
19271 std::vector<int> moo;
19272                      std::list<int> foo;
19273                      std::vector<int>::iterator it =
19274                          std::find_if(moo.begin(), moo.end(),
19275                                       std::bind2nd(std::less<int>(), 3));
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282   (eval $ac_compile) 2>conftest.er1
19283   ac_status=$?
19284   grep -v '^ *+' conftest.er1 >conftest.err
19285   rm -f conftest.er1
19286   cat conftest.err >&5
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); } &&
19289          { ac_try='test -z "$ac_cxx_werror_flag"
19290                          || test ! -s conftest.err'
19291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292   (eval $ac_try) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; } &&
19296          { ac_try='test -s conftest.$ac_objext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   echo "$as_me:$LINENO: result: yes" >&5
19303 echo "${ECHO_T}yes" >&6
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 echo "$as_me:$LINENO: result: no" >&5
19309 echo "${ECHO_T}no" >&6
19310                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19311 echo "$as_me: error: Basic STL functionality missing" >&2;}
19312    { (exit 1); exit 1; }; }
19313 fi
19314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315
19316         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19317 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19318     cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h.  */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h.  */
19324 #include <string>
19325 int
19326 main ()
19327 {
19328 std::wstring foo;
19329   ;
19330   return 0;
19331 }
19332 _ACEOF
19333 rm -f conftest.$ac_objext
19334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19335   (eval $ac_compile) 2>conftest.er1
19336   ac_status=$?
19337   grep -v '^ *+' conftest.er1 >conftest.err
19338   rm -f conftest.er1
19339   cat conftest.err >&5
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); } &&
19342          { ac_try='test -z "$ac_cxx_werror_flag"
19343                          || test ! -s conftest.err'
19344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345   (eval $ac_try) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; } &&
19349          { ac_try='test -s conftest.$ac_objext'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; }; then
19355   echo "$as_me:$LINENO: result: yes" >&5
19356 echo "${ECHO_T}yes" >&6
19357                     cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_STD_WSTRING 1
19359 _ACEOF
19360
19361 else
19362   echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 echo "$as_me:$LINENO: result: no" >&5
19366 echo "${ECHO_T}no" >&6
19367 fi
19368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19369
19370         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19371 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19372     cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378 #include <string>
19379 int
19380 main ()
19381 {
19382 std::string foo, bar;
19383                     foo.compare(bar);
19384                     foo.compare(1, 1, bar);
19385                     foo.compare(1, 1, bar, 1, 1);
19386                     foo.compare("");
19387                     foo.compare(1, 1, "");
19388                     foo.compare(1, 1, "", 2);
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395   (eval $ac_compile) 2>conftest.er1
19396   ac_status=$?
19397   grep -v '^ *+' conftest.er1 >conftest.err
19398   rm -f conftest.er1
19399   cat conftest.err >&5
19400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401   (exit $ac_status); } &&
19402          { ac_try='test -z "$ac_cxx_werror_flag"
19403                          || test ! -s conftest.err'
19404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405   (eval $ac_try) 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; } &&
19409          { ac_try='test -s conftest.$ac_objext'
19410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411   (eval $ac_try) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }; }; then
19415   echo "$as_me:$LINENO: result: yes" >&5
19416 echo "${ECHO_T}yes" >&6
19417                     cat >>confdefs.h <<\_ACEOF
19418 #define HAVE_STD_STRING_COMPARE 1
19419 _ACEOF
19420
19421 else
19422   echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 echo "$as_me:$LINENO: result: no" >&5
19426 echo "${ECHO_T}no" >&6
19427 fi
19428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19429
19430     ac_ext=c
19431 ac_cpp='$CPP $CPPFLAGS'
19432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436 fi
19437
19438
19439 SEARCH_INCLUDE="\
19440     /usr/local/include        \
19441                               \
19442     /usr/Motif-2.1/include    \
19443     /usr/Motif-1.2/include    \
19444     /usr/include/Motif1.2     \
19445     /opt/xpm/include/X11      \
19446     /opt/GBxpm/include/       \
19447     /opt/GBxpm/X11/include/   \
19448                               \
19449     /usr/dt/include           \
19450     /usr/openwin/include      \
19451                               \
19452     /usr/include/Xm           \
19453                               \
19454     /usr/X11R6/include        \
19455     /usr/X11R6.4/include      \
19456     /usr/X11R5/include        \
19457     /usr/X11R4/include        \
19458                               \
19459     /usr/include/X11R6        \
19460     /usr/include/X11R5        \
19461     /usr/include/X11R4        \
19462                               \
19463     /usr/local/X11R6/include  \
19464     /usr/local/X11R5/include  \
19465     /usr/local/X11R4/include  \
19466                               \
19467     /usr/local/include/X11R6  \
19468     /usr/local/include/X11R5  \
19469     /usr/local/include/X11R4  \
19470                               \
19471     /usr/X11/include          \
19472     /usr/include/X11          \
19473     /usr/local/X11/include    \
19474     /usr/local/include/X11    \
19475                               \
19476     /usr/X386/include         \
19477     /usr/x386/include         \
19478     /usr/XFree86/include/X11  \
19479                               \
19480     X:/XFree86/include        \
19481     X:/XFree86/include/X11    \
19482                               \
19483     /usr/include/gtk          \
19484     /usr/local/include/gtk    \
19485     /usr/include/glib         \
19486     /usr/local/include/glib   \
19487                               \
19488     /usr/include/qt           \
19489     /usr/local/include/qt     \
19490                               \
19491     /usr/local/arm/3.3.2/include     \
19492                               \
19493     /usr/include/windows      \
19494     /usr/include/wine         \
19495     /usr/local/include/wine   \
19496                               \
19497     /usr/unsupported/include  \
19498     /usr/athena/include       \
19499     /usr/local/x11r5/include  \
19500     /usr/lpp/Xamples/include  \
19501                               \
19502     /usr/openwin/share/include"
19503
19504 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19505
19506
19507 cat >confcache <<\_ACEOF
19508 # This file is a shell script that caches the results of configure
19509 # tests run on this system so they can be shared between configure
19510 # scripts and configure runs, see configure's option --config-cache.
19511 # It is not useful on other systems.  If it contains results you don't
19512 # want to keep, you may remove or edit it.
19513 #
19514 # config.status only pays attention to the cache file if you give it
19515 # the --recheck option to rerun configure.
19516 #
19517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19519 # following values.
19520
19521 _ACEOF
19522
19523 # The following way of writing the cache mishandles newlines in values,
19524 # but we know of no workaround that is simple, portable, and efficient.
19525 # So, don't put newlines in cache variables' values.
19526 # Ultrix sh set writes to stderr and can't be redirected directly,
19527 # and sets the high bit in the cache file unless we assign to the vars.
19528 {
19529   (set) 2>&1 |
19530     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19531     *ac_space=\ *)
19532       # `set' does not quote correctly, so add quotes (double-quote
19533       # substitution turns \\\\ into \\, and sed turns \\ into \).
19534       sed -n \
19535         "s/'/'\\\\''/g;
19536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19537       ;;
19538     *)
19539       # `set' quotes correctly as required by POSIX, so do not add quotes.
19540       sed -n \
19541         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19542       ;;
19543     esac;
19544 } |
19545   sed '
19546      t clear
19547      : clear
19548      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19549      t end
19550      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19551      : end' >>confcache
19552 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19553   if test -w $cache_file; then
19554     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19555     cat confcache >$cache_file
19556   else
19557     echo "not updating unwritable cache $cache_file"
19558   fi
19559 fi
19560 rm -f confcache
19561
19562 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19563     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19564 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19565 if test "${wx_cv_lib_glibc21+set}" = set; then
19566   echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568
19569         cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575 #include <features.h>
19576 int
19577 main ()
19578 {
19579
19580                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19581                     #error not glibc2.1
19582                 #endif
19583
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590   (eval $ac_compile) 2>conftest.er1
19591   ac_status=$?
19592   grep -v '^ *+' conftest.er1 >conftest.err
19593   rm -f conftest.er1
19594   cat conftest.err >&5
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); } &&
19597          { ac_try='test -z "$ac_c_werror_flag"
19598                          || test ! -s conftest.err'
19599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600   (eval $ac_try) 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; } &&
19604          { ac_try='test -s conftest.$ac_objext'
19605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606   (eval $ac_try) 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); }; }; then
19610
19611                 wx_cv_lib_glibc21=yes
19612
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617
19618                 wx_cv_lib_glibc21=no
19619
19620
19621 fi
19622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623
19624 fi
19625 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19626 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19627     if test "$wx_cv_lib_glibc21" = "yes"; then
19628         cat >>confdefs.h <<\_ACEOF
19629 #define wxHAVE_GLIBC2 1
19630 _ACEOF
19631
19632     fi
19633 fi
19634
19635 if test "x$wx_cv_lib_glibc21" = "xyes"; then
19636     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19637         cat >>confdefs.h <<\_ACEOF
19638 #define _GNU_SOURCE 1
19639 _ACEOF
19640
19641     fi
19642 fi
19643
19644
19645
19646 if test "$wxUSE_REGEX" != "no"; then
19647     cat >>confdefs.h <<\_ACEOF
19648 #define wxUSE_REGEX 1
19649 _ACEOF
19650
19651
19652     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19653         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19654 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19655         wxUSE_REGEX=builtin
19656     fi
19657
19658     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19659                         if test "${ac_cv_header_regex_h+set}" = set; then
19660   echo "$as_me:$LINENO: checking for regex.h" >&5
19661 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19662 if test "${ac_cv_header_regex_h+set}" = set; then
19663   echo $ECHO_N "(cached) $ECHO_C" >&6
19664 fi
19665 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19666 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19667 else
19668   # Is the header compilable?
19669 echo "$as_me:$LINENO: checking regex.h usability" >&5
19670 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19671 cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 $ac_includes_default
19678 #include <regex.h>
19679 _ACEOF
19680 rm -f conftest.$ac_objext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19682   (eval $ac_compile) 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } &&
19689          { ac_try='test -z "$ac_c_werror_flag"
19690                          || test ! -s conftest.err'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; } &&
19696          { ac_try='test -s conftest.$ac_objext'
19697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698   (eval $ac_try) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   ac_header_compiler=yes
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19706
19707 ac_header_compiler=no
19708 fi
19709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19711 echo "${ECHO_T}$ac_header_compiler" >&6
19712
19713 # Is the header present?
19714 echo "$as_me:$LINENO: checking regex.h presence" >&5
19715 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h.  */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h.  */
19722 #include <regex.h>
19723 _ACEOF
19724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19726   ac_status=$?
19727   grep -v '^ *+' conftest.er1 >conftest.err
19728   rm -f conftest.er1
19729   cat conftest.err >&5
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } >/dev/null; then
19732   if test -s conftest.err; then
19733     ac_cpp_err=$ac_c_preproc_warn_flag
19734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19735   else
19736     ac_cpp_err=
19737   fi
19738 else
19739   ac_cpp_err=yes
19740 fi
19741 if test -z "$ac_cpp_err"; then
19742   ac_header_preproc=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747   ac_header_preproc=no
19748 fi
19749 rm -f conftest.err conftest.$ac_ext
19750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19751 echo "${ECHO_T}$ac_header_preproc" >&6
19752
19753 # So?  What about this header?
19754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19755   yes:no: )
19756     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19757 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19758     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19759 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19760     ac_header_preproc=yes
19761     ;;
19762   no:yes:* )
19763     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19764 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19765     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
19766 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
19767     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19768 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19769     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
19770 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19771     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19772 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19773     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19774 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19775     (
19776       cat <<\_ASBOX
19777 ## ----------------------------------------- ##
19778 ## Report this to wx-dev@lists.wxwindows.org ##
19779 ## ----------------------------------------- ##
19780 _ASBOX
19781     ) |
19782       sed "s/^/$as_me: WARNING:     /" >&2
19783     ;;
19784 esac
19785 echo "$as_me:$LINENO: checking for regex.h" >&5
19786 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19787 if test "${ac_cv_header_regex_h+set}" = set; then
19788   echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790   ac_cv_header_regex_h=$ac_header_preproc
19791 fi
19792 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19793 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19794
19795 fi
19796 if test $ac_cv_header_regex_h = yes; then
19797
19798 for ac_func in regcomp
19799 do
19800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19801 echo "$as_me:$LINENO: checking for $ac_func" >&5
19802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19803 if eval "test \"\${$as_ac_var+set}\" = set"; then
19804   echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19806   cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h.  */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h.  */
19812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19814 #define $ac_func innocuous_$ac_func
19815
19816 /* System header to define __stub macros and hopefully few prototypes,
19817     which can conflict with char $ac_func (); below.
19818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19819     <limits.h> exists even on freestanding compilers.  */
19820
19821 #ifdef __STDC__
19822 # include <limits.h>
19823 #else
19824 # include <assert.h>
19825 #endif
19826
19827 #undef $ac_func
19828
19829 /* Override any gcc2 internal prototype to avoid an error.  */
19830 #ifdef __cplusplus
19831 extern "C"
19832 {
19833 #endif
19834 /* We use char because int might match the return type of a gcc2
19835    builtin and then its argument prototype would still apply.  */
19836 char $ac_func ();
19837 /* The GNU C library defines this for functions which it implements
19838     to always fail with ENOSYS.  Some functions are actually named
19839     something starting with __ and the normal name is an alias.  */
19840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19841 choke me
19842 #else
19843 char (*f) () = $ac_func;
19844 #endif
19845 #ifdef __cplusplus
19846 }
19847 #endif
19848
19849 int
19850 main ()
19851 {
19852 return f != $ac_func;
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859   (eval $ac_link) 2>conftest.er1
19860   ac_status=$?
19861   grep -v '^ *+' conftest.er1 >conftest.err
19862   rm -f conftest.er1
19863   cat conftest.err >&5
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } &&
19866          { ac_try='test -z "$ac_c_werror_flag"
19867                          || test ! -s conftest.err'
19868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869   (eval $ac_try) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; } &&
19873          { ac_try='test -s conftest$ac_exeext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   eval "$as_ac_var=yes"
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 eval "$as_ac_var=no"
19885 fi
19886 rm -f conftest.err conftest.$ac_objext \
19887       conftest$ac_exeext conftest.$ac_ext
19888 fi
19889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19891 if test `eval echo '${'$as_ac_var'}'` = yes; then
19892   cat >>confdefs.h <<_ACEOF
19893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19894 _ACEOF
19895
19896 fi
19897 done
19898
19899 fi
19900
19901
19902
19903         if test "x$ac_cv_func_regcomp" != "xyes"; then
19904             if test "$wxUSE_REGEX" = "sys" ; then
19905                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19906 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19907    { (exit 1); exit 1; }; }
19908             else
19909                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19910 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19911                 wxUSE_REGEX=builtin
19912             fi
19913         else
19914                         wxUSE_REGEX=sys
19915                         cat >>confdefs.h <<\_ACEOF
19916 #define WX_NO_REGEX_ADVANCED 1
19917 _ACEOF
19918
19919         fi
19920     fi
19921 fi
19922
19923
19924 ZLIB_LINK=
19925 if test "$wxUSE_ZLIB" != "no" ; then
19926     cat >>confdefs.h <<\_ACEOF
19927 #define wxUSE_ZLIB 1
19928 _ACEOF
19929
19930
19931     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19932                                                 if test "$USE_DARWIN" = 1; then
19933             system_zlib_h_ok="yes"
19934         else
19935                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19936 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19937 if test "${ac_cv_header_zlib_h+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   if test "$cross_compiling" = yes; then
19941                       unset ac_cv_header_zlib_h
19942
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950
19951                         #include <zlib.h>
19952                         #include <stdio.h>
19953
19954                         int main()
19955                         {
19956                             FILE *f=fopen("conftestval", "w");
19957                             if (!f) exit(1);
19958                             fprintf(f, "%s",
19959                                     ZLIB_VERSION[0] == '1' &&
19960                                     (ZLIB_VERSION[2] > '1' ||
19961                                     (ZLIB_VERSION[2] == '1' &&
19962                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19963                             exit(0);
19964                         }
19965
19966 _ACEOF
19967 rm -f conftest$ac_exeext
19968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19969   (eval $ac_link) 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974   (eval $ac_try) 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; }; then
19978   ac_cv_header_zlib_h=`cat conftestval`
19979 else
19980   echo "$as_me: program exited with status $ac_status" >&5
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19983
19984 ( exit $ac_status )
19985 ac_cv_header_zlib_h=no
19986 fi
19987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19988 fi
19989
19990 fi
19991 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19992 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19993                                     if test "${ac_cv_header_zlib_h+set}" = set; then
19994   echo "$as_me:$LINENO: checking for zlib.h" >&5
19995 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19996 if test "${ac_cv_header_zlib_h+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 fi
19999 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20000 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20001 else
20002   # Is the header compilable?
20003 echo "$as_me:$LINENO: checking zlib.h usability" >&5
20004 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011 $ac_includes_default
20012 #include <zlib.h>
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016   (eval $ac_compile) 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } &&
20023          { ac_try='test -z "$ac_c_werror_flag"
20024                          || test ! -s conftest.err'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; } &&
20030          { ac_try='test -s conftest.$ac_objext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036   ac_header_compiler=yes
20037 else
20038   echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20040
20041 ac_header_compiler=no
20042 fi
20043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20045 echo "${ECHO_T}$ac_header_compiler" >&6
20046
20047 # Is the header present?
20048 echo "$as_me:$LINENO: checking zlib.h presence" >&5
20049 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20050 cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 #include <zlib.h>
20057 _ACEOF
20058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } >/dev/null; then
20066   if test -s conftest.err; then
20067     ac_cpp_err=$ac_c_preproc_warn_flag
20068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20069   else
20070     ac_cpp_err=
20071   fi
20072 else
20073   ac_cpp_err=yes
20074 fi
20075 if test -z "$ac_cpp_err"; then
20076   ac_header_preproc=yes
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081   ac_header_preproc=no
20082 fi
20083 rm -f conftest.err conftest.$ac_ext
20084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20085 echo "${ECHO_T}$ac_header_preproc" >&6
20086
20087 # So?  What about this header?
20088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20089   yes:no: )
20090     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20091 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20093 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20094     ac_header_preproc=yes
20095     ;;
20096   no:yes:* )
20097     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20098 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20099     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
20100 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
20101     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20102 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20103     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
20104 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20105     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20106 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20108 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20109     (
20110       cat <<\_ASBOX
20111 ## ----------------------------------------- ##
20112 ## Report this to wx-dev@lists.wxwindows.org ##
20113 ## ----------------------------------------- ##
20114 _ASBOX
20115     ) |
20116       sed "s/^/$as_me: WARNING:     /" >&2
20117     ;;
20118 esac
20119 echo "$as_me:$LINENO: checking for zlib.h" >&5
20120 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20121 if test "${ac_cv_header_zlib_h+set}" = set; then
20122   echo $ECHO_N "(cached) $ECHO_C" >&6
20123 else
20124   ac_cv_header_zlib_h=$ac_header_preproc
20125 fi
20126 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20127 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20128
20129 fi
20130
20131
20132
20133             system_zlib_h_ok=$ac_cv_header_zlib_h
20134         fi
20135
20136         if test "$system_zlib_h_ok" = "yes"; then
20137             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20138 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20139 if test "${ac_cv_lib_z_deflate+set}" = set; then
20140   echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142   ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lz  $LIBS"
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150
20151 /* Override any gcc2 internal prototype to avoid an error.  */
20152 #ifdef __cplusplus
20153 extern "C"
20154 #endif
20155 /* We use char because int might match the return type of a gcc2
20156    builtin and then its argument prototype would still apply.  */
20157 char deflate ();
20158 int
20159 main ()
20160 {
20161 deflate ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168   (eval $ac_link) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"
20176                          || test ! -s conftest.err'
20177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178   (eval $ac_try) 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); }; } &&
20182          { ac_try='test -s conftest$ac_exeext'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; }; then
20188   ac_cv_lib_z_deflate=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_cv_lib_z_deflate=no
20194 fi
20195 rm -f conftest.err conftest.$ac_objext \
20196       conftest$ac_exeext conftest.$ac_ext
20197 LIBS=$ac_check_lib_save_LIBS
20198 fi
20199 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20200 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20201 if test $ac_cv_lib_z_deflate = yes; then
20202   ZLIB_LINK=" -lz"
20203 fi
20204
20205         fi
20206
20207         if test "x$ZLIB_LINK" = "x" ; then
20208             if test "$wxUSE_ZLIB" = "sys" ; then
20209                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20210 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20211    { (exit 1); exit 1; }; }
20212             else
20213                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20214 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20215                 wxUSE_ZLIB=builtin
20216             fi
20217         else
20218                         wxUSE_ZLIB=sys
20219         fi
20220     fi
20221 fi
20222
20223
20224 PNG_LINK=
20225 if test "$wxUSE_LIBPNG" != "no" ; then
20226     cat >>confdefs.h <<\_ACEOF
20227 #define wxUSE_LIBPNG 1
20228 _ACEOF
20229
20230
20231     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20232         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20233 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20234         wxUSE_LIBPNG=sys
20235     fi
20236
20237                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20238         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20239 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20240         wxUSE_LIBPNG=builtin
20241     fi
20242
20243     if test "$wxUSE_MGL" != 1 ; then
20244                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20245                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20246 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20247 if test "${ac_cv_header_png_h+set}" = set; then
20248   echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250   if test "$cross_compiling" = yes; then
20251                       unset ac_cv_header_png_h
20252
20253 else
20254   cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260
20261                         #include <png.h>
20262                         #include <stdio.h>
20263
20264                         int main()
20265                         {
20266                             FILE *f=fopen("conftestval", "w");
20267                             if (!f) exit(1);
20268                             fprintf(f, "%s",
20269                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
20270                             exit(0);
20271                         }
20272
20273 _ACEOF
20274 rm -f conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276   (eval $ac_link) 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   ac_cv_header_png_h=`cat conftestval`
20286 else
20287   echo "$as_me: program exited with status $ac_status" >&5
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ( exit $ac_status )
20292 ac_cv_header_png_h=no
20293 fi
20294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20295 fi
20296
20297 fi
20298 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20299 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20300             if test "${ac_cv_header_png_h+set}" = set; then
20301   echo "$as_me:$LINENO: checking for png.h" >&5
20302 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20303 if test "${ac_cv_header_png_h+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 fi
20306 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20307 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20308 else
20309   # Is the header compilable?
20310 echo "$as_me:$LINENO: checking png.h usability" >&5
20311 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 $ac_includes_default
20319 #include <png.h>
20320 _ACEOF
20321 rm -f conftest.$ac_objext
20322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20323   (eval $ac_compile) 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } &&
20330          { ac_try='test -z "$ac_c_werror_flag"
20331                          || test ! -s conftest.err'
20332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333   (eval $ac_try) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; } &&
20337          { ac_try='test -s conftest.$ac_objext'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; }; then
20343   ac_header_compiler=yes
20344 else
20345   echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_header_compiler=no
20349 fi
20350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20352 echo "${ECHO_T}$ac_header_compiler" >&6
20353
20354 # Is the header present?
20355 echo "$as_me:$LINENO: checking png.h presence" >&5
20356 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 #include <png.h>
20364 _ACEOF
20365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } >/dev/null; then
20373   if test -s conftest.err; then
20374     ac_cpp_err=$ac_c_preproc_warn_flag
20375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20376   else
20377     ac_cpp_err=
20378   fi
20379 else
20380   ac_cpp_err=yes
20381 fi
20382 if test -z "$ac_cpp_err"; then
20383   ac_header_preproc=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388   ac_header_preproc=no
20389 fi
20390 rm -f conftest.err conftest.$ac_ext
20391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20392 echo "${ECHO_T}$ac_header_preproc" >&6
20393
20394 # So?  What about this header?
20395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20396   yes:no: )
20397     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20398 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20399     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20400 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20401     ac_header_preproc=yes
20402     ;;
20403   no:yes:* )
20404     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20405 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
20407 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
20408     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20409 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20410     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
20411 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20412     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20413 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20414     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20415 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20416     (
20417       cat <<\_ASBOX
20418 ## ----------------------------------------- ##
20419 ## Report this to wx-dev@lists.wxwindows.org ##
20420 ## ----------------------------------------- ##
20421 _ASBOX
20422     ) |
20423       sed "s/^/$as_me: WARNING:     /" >&2
20424     ;;
20425 esac
20426 echo "$as_me:$LINENO: checking for png.h" >&5
20427 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20428 if test "${ac_cv_header_png_h+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   ac_cv_header_png_h=$ac_header_preproc
20432 fi
20433 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20434 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20435
20436 fi
20437
20438
20439
20440             if test "$ac_cv_header_png_h" = "yes"; then
20441                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20442 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20443 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446   ac_check_lib_save_LIBS=$LIBS
20447 LIBS="-lpng -lz -lm $LIBS"
20448 cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454
20455 /* Override any gcc2 internal prototype to avoid an error.  */
20456 #ifdef __cplusplus
20457 extern "C"
20458 #endif
20459 /* We use char because int might match the return type of a gcc2
20460    builtin and then its argument prototype would still apply.  */
20461 char png_check_sig ();
20462 int
20463 main ()
20464 {
20465 png_check_sig ();
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472   (eval $ac_link) 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -z "$ac_c_werror_flag"
20480                          || test ! -s conftest.err'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; } &&
20486          { ac_try='test -s conftest$ac_exeext'
20487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488   (eval $ac_try) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   ac_cv_lib_png_png_check_sig=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_lib_png_png_check_sig=no
20498 fi
20499 rm -f conftest.err conftest.$ac_objext \
20500       conftest$ac_exeext conftest.$ac_ext
20501 LIBS=$ac_check_lib_save_LIBS
20502 fi
20503 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20504 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20505 if test $ac_cv_lib_png_png_check_sig = yes; then
20506   PNG_LINK=" -lpng"
20507 fi
20508
20509             fi
20510
20511             if test "x$PNG_LINK" = "x" ; then
20512                 if test "$wxUSE_LIBPNG" = "sys" ; then
20513                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20514 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20515    { (exit 1); exit 1; }; }
20516                 else
20517                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20518 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20519                     wxUSE_LIBPNG=builtin
20520                 fi
20521             else
20522                                 wxUSE_LIBPNG=sys
20523             fi
20524         fi
20525     fi
20526
20527     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20528 fi
20529
20530
20531 JPEG_LINK=
20532 if test "$wxUSE_LIBJPEG" != "no" ; then
20533     cat >>confdefs.h <<\_ACEOF
20534 #define wxUSE_LIBJPEG 1
20535 _ACEOF
20536
20537
20538     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20539         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20540 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20541         wxUSE_LIBJPEG=sys
20542     fi
20543
20544     if test "$wxUSE_MGL" != 1 ; then
20545                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20546                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20547 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20548             if test "${ac_cv_header_jpeglib_h+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551   cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h.  */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h.  */
20557
20558                         #undef HAVE_STDLIB_H
20559                         #include <stdio.h>
20560                         #include <jpeglib.h>
20561
20562 int
20563 main ()
20564 {
20565
20566
20567   ;
20568   return 0;
20569 }
20570 _ACEOF
20571 rm -f conftest.$ac_objext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573   (eval $ac_compile) 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } &&
20580          { ac_try='test -z "$ac_c_werror_flag"
20581                          || test ! -s conftest.err'
20582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583   (eval $ac_try) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; } &&
20587          { ac_try='test -s conftest.$ac_objext'
20588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589   (eval $ac_try) 2>&5
20590   ac_status=$?
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); }; }; then
20593   ac_cv_header_jpeglib_h=yes
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 ac_cv_header_jpeglib_h=no
20599
20600 fi
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602
20603 fi
20604
20605             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20606 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20607
20608             if test "$ac_cv_header_jpeglib_h" = "yes"; then
20609                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20610 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20611 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20612   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614   ac_check_lib_save_LIBS=$LIBS
20615 LIBS="-ljpeg  $LIBS"
20616 cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622
20623 /* Override any gcc2 internal prototype to avoid an error.  */
20624 #ifdef __cplusplus
20625 extern "C"
20626 #endif
20627 /* We use char because int might match the return type of a gcc2
20628    builtin and then its argument prototype would still apply.  */
20629 char jpeg_read_header ();
20630 int
20631 main ()
20632 {
20633 jpeg_read_header ();
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext conftest$ac_exeext
20639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20640   (eval $ac_link) 2>conftest.er1
20641   ac_status=$?
20642   grep -v '^ *+' conftest.er1 >conftest.err
20643   rm -f conftest.er1
20644   cat conftest.err >&5
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } &&
20647          { ac_try='test -z "$ac_c_werror_flag"
20648                          || test ! -s conftest.err'
20649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650   (eval $ac_try) 2>&5
20651   ac_status=$?
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); }; } &&
20654          { ac_try='test -s conftest$ac_exeext'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; }; then
20660   ac_cv_lib_jpeg_jpeg_read_header=yes
20661 else
20662   echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ac_cv_lib_jpeg_jpeg_read_header=no
20666 fi
20667 rm -f conftest.err conftest.$ac_objext \
20668       conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20670 fi
20671 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20672 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20673 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20674   JPEG_LINK=" -ljpeg"
20675 fi
20676
20677             fi
20678
20679             if test "x$JPEG_LINK" = "x" ; then
20680                 if test "$wxUSE_LIBJPEG" = "sys" ; then
20681                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20682 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20683    { (exit 1); exit 1; }; }
20684                 else
20685                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20686 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20687                     wxUSE_LIBJPEG=builtin
20688                 fi
20689             else
20690                                 wxUSE_LIBJPEG=sys
20691             fi
20692         fi
20693     fi
20694 fi
20695
20696
20697 TIFF_LINK=
20698 TIFF_PREREQ_LINKS=-lm
20699 if test "$wxUSE_LIBTIFF" != "no" ; then
20700     cat >>confdefs.h <<\_ACEOF
20701 #define wxUSE_LIBTIFF 1
20702 _ACEOF
20703
20704
20705     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20706                         if test "$wxUSE_LIBJPEG" = "sys"; then
20707             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20708         fi
20709         if test "$wxUSE_ZLIB" = "sys"; then
20710             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20711         fi
20712         if test "${ac_cv_header_tiffio_h+set}" = set; then
20713   echo "$as_me:$LINENO: checking for tiffio.h" >&5
20714 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20715 if test "${ac_cv_header_tiffio_h+set}" = set; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 fi
20718 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20719 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20720 else
20721   # Is the header compilable?
20722 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20723 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 $ac_includes_default
20731 #include <tiffio.h>
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735   (eval $ac_compile) 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } &&
20742          { ac_try='test -z "$ac_c_werror_flag"
20743                          || test ! -s conftest.err'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; } &&
20749          { ac_try='test -s conftest.$ac_objext'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ac_header_compiler=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_header_compiler=no
20761 fi
20762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20764 echo "${ECHO_T}$ac_header_compiler" >&6
20765
20766 # Is the header present?
20767 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20768 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h.  */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h.  */
20775 #include <tiffio.h>
20776 _ACEOF
20777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20779   ac_status=$?
20780   grep -v '^ *+' conftest.er1 >conftest.err
20781   rm -f conftest.er1
20782   cat conftest.err >&5
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); } >/dev/null; then
20785   if test -s conftest.err; then
20786     ac_cpp_err=$ac_c_preproc_warn_flag
20787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20788   else
20789     ac_cpp_err=
20790   fi
20791 else
20792   ac_cpp_err=yes
20793 fi
20794 if test -z "$ac_cpp_err"; then
20795   ac_header_preproc=yes
20796 else
20797   echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800   ac_header_preproc=no
20801 fi
20802 rm -f conftest.err conftest.$ac_ext
20803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20804 echo "${ECHO_T}$ac_header_preproc" >&6
20805
20806 # So?  What about this header?
20807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20808   yes:no: )
20809     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20810 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20811     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20812 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20813     ac_header_preproc=yes
20814     ;;
20815   no:yes:* )
20816     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20817 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20818     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
20819 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
20820     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20821 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20822     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
20823 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20824     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20825 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20826     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20827 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20828     (
20829       cat <<\_ASBOX
20830 ## ----------------------------------------- ##
20831 ## Report this to wx-dev@lists.wxwindows.org ##
20832 ## ----------------------------------------- ##
20833 _ASBOX
20834     ) |
20835       sed "s/^/$as_me: WARNING:     /" >&2
20836     ;;
20837 esac
20838 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20839 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20840 if test "${ac_cv_header_tiffio_h+set}" = set; then
20841   echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843   ac_cv_header_tiffio_h=$ac_header_preproc
20844 fi
20845 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20846 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20847
20848 fi
20849 if test $ac_cv_header_tiffio_h = yes; then
20850
20851                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20852 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20853 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856   ac_check_lib_save_LIBS=$LIBS
20857 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20858 cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864
20865 /* Override any gcc2 internal prototype to avoid an error.  */
20866 #ifdef __cplusplus
20867 extern "C"
20868 #endif
20869 /* We use char because int might match the return type of a gcc2
20870    builtin and then its argument prototype would still apply.  */
20871 char TIFFError ();
20872 int
20873 main ()
20874 {
20875 TIFFError ();
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20882   (eval $ac_link) 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } &&
20889          { ac_try='test -z "$ac_c_werror_flag"
20890                          || test ! -s conftest.err'
20891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892   (eval $ac_try) 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest$ac_exeext'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; }; then
20902   ac_cv_lib_tiff_TIFFError=yes
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 ac_cv_lib_tiff_TIFFError=no
20908 fi
20909 rm -f conftest.err conftest.$ac_objext \
20910       conftest$ac_exeext conftest.$ac_ext
20911 LIBS=$ac_check_lib_save_LIBS
20912 fi
20913 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20914 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20915 if test $ac_cv_lib_tiff_TIFFError = yes; then
20916   TIFF_LINK=" -ltiff"
20917 fi
20918
20919
20920
20921 fi
20922
20923
20924
20925         if test "x$TIFF_LINK" = "x" ; then
20926             if test "$wxUSE_LIBTIFF" = "sys" ; then
20927                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20928 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20929    { (exit 1); exit 1; }; }
20930             else
20931                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20932 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20933                 wxUSE_LIBTIFF=builtin
20934             fi
20935         else
20936                         wxUSE_LIBTIFF=sys
20937         fi
20938     fi
20939 fi
20940
20941
20942 if test "$wxUSE_EXPAT" != "no"; then
20943     wxUSE_XML=yes
20944     cat >>confdefs.h <<\_ACEOF
20945 #define wxUSE_EXPAT 1
20946 _ACEOF
20947
20948     cat >>confdefs.h <<\_ACEOF
20949 #define wxUSE_XML 1
20950 _ACEOF
20951
20952
20953     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20954         if test "${ac_cv_header_expat_h+set}" = set; then
20955   echo "$as_me:$LINENO: checking for expat.h" >&5
20956 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20957 if test "${ac_cv_header_expat_h+set}" = set; then
20958   echo $ECHO_N "(cached) $ECHO_C" >&6
20959 fi
20960 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20961 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20962 else
20963   # Is the header compilable?
20964 echo "$as_me:$LINENO: checking expat.h usability" >&5
20965 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h.  */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h.  */
20972 $ac_includes_default
20973 #include <expat.h>
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977   (eval $ac_compile) 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } &&
20984          { ac_try='test -z "$ac_c_werror_flag"
20985                          || test ! -s conftest.err'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; } &&
20991          { ac_try='test -s conftest.$ac_objext'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_header_compiler=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 ac_header_compiler=no
21003 fi
21004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21006 echo "${ECHO_T}$ac_header_compiler" >&6
21007
21008 # Is the header present?
21009 echo "$as_me:$LINENO: checking expat.h presence" >&5
21010 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 #include <expat.h>
21018 _ACEOF
21019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } >/dev/null; then
21027   if test -s conftest.err; then
21028     ac_cpp_err=$ac_c_preproc_warn_flag
21029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21030   else
21031     ac_cpp_err=
21032   fi
21033 else
21034   ac_cpp_err=yes
21035 fi
21036 if test -z "$ac_cpp_err"; then
21037   ac_header_preproc=yes
21038 else
21039   echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042   ac_header_preproc=no
21043 fi
21044 rm -f conftest.err conftest.$ac_ext
21045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21046 echo "${ECHO_T}$ac_header_preproc" >&6
21047
21048 # So?  What about this header?
21049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21050   yes:no: )
21051     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21052 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21053     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21054 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21055     ac_header_preproc=yes
21056     ;;
21057   no:yes:* )
21058     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21059 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
21060     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
21061 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
21062     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21063 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21064     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
21065 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21066     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21067 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
21068     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21069 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21070     (
21071       cat <<\_ASBOX
21072 ## ----------------------------------------- ##
21073 ## Report this to wx-dev@lists.wxwindows.org ##
21074 ## ----------------------------------------- ##
21075 _ASBOX
21076     ) |
21077       sed "s/^/$as_me: WARNING:     /" >&2
21078     ;;
21079 esac
21080 echo "$as_me:$LINENO: checking for expat.h" >&5
21081 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21082 if test "${ac_cv_header_expat_h+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085   ac_cv_header_expat_h=$ac_header_preproc
21086 fi
21087 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21088 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21089
21090 fi
21091 if test $ac_cv_header_expat_h = yes; then
21092   found_expat_h=1
21093 fi
21094
21095
21096         if test "x$found_expat_h" = "x1"; then
21097                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21098 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21099 if test "${wx_cv_expat_is_not_broken+set}" = set; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102
21103
21104
21105                 ac_ext=cc
21106 ac_cpp='$CXXCPP $CPPFLAGS'
21107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21110
21111                 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117 #include <expat.h>
21118 int
21119 main ()
21120 {
21121
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21128   (eval $ac_compile) 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } &&
21135          { ac_try='test -z "$ac_cxx_werror_flag"
21136                          || test ! -s conftest.err'
21137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138   (eval $ac_try) 2>&5
21139   ac_status=$?
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); }; } &&
21142          { ac_try='test -s conftest.$ac_objext'
21143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144   (eval $ac_try) 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); }; }; then
21148   wx_cv_expat_is_not_broken=yes
21149 else
21150   echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 wx_cv_expat_is_not_broken=no
21154
21155 fi
21156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21157                 ac_ext=c
21158 ac_cpp='$CPP $CPPFLAGS'
21159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21162
21163
21164
21165 fi
21166 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21167 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21168             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21169                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21170 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21171 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21172   echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174   ac_check_lib_save_LIBS=$LIBS
21175 LIBS="-lexpat  $LIBS"
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h.  */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h.  */
21182
21183 /* Override any gcc2 internal prototype to avoid an error.  */
21184 #ifdef __cplusplus
21185 extern "C"
21186 #endif
21187 /* We use char because int might match the return type of a gcc2
21188    builtin and then its argument prototype would still apply.  */
21189 char XML_ParserCreate ();
21190 int
21191 main ()
21192 {
21193 XML_ParserCreate ();
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext conftest$ac_exeext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21200   (eval $ac_link) 2>conftest.er1
21201   ac_status=$?
21202   grep -v '^ *+' conftest.er1 >conftest.err
21203   rm -f conftest.er1
21204   cat conftest.err >&5
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } &&
21207          { ac_try='test -z "$ac_c_werror_flag"
21208                          || test ! -s conftest.err'
21209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210   (eval $ac_try) 2>&5
21211   ac_status=$?
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); }; } &&
21214          { ac_try='test -s conftest$ac_exeext'
21215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216   (eval $ac_try) 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); }; }; then
21220   ac_cv_lib_expat_XML_ParserCreate=yes
21221 else
21222   echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21224
21225 ac_cv_lib_expat_XML_ParserCreate=no
21226 fi
21227 rm -f conftest.err conftest.$ac_objext \
21228       conftest$ac_exeext conftest.$ac_ext
21229 LIBS=$ac_check_lib_save_LIBS
21230 fi
21231 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21232 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21233 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21234   EXPAT_LINK=" -lexpat"
21235 fi
21236
21237             fi
21238         fi
21239         if test "x$EXPAT_LINK" = "x" ; then
21240             if test "$wxUSE_EXPAT" = "sys" ; then
21241                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21242 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21243    { (exit 1); exit 1; }; }
21244             else
21245                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21246 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21247                 wxUSE_EXPAT=builtin
21248             fi
21249         else
21250                         wxUSE_EXPAT=sys
21251         fi
21252     fi
21253     if test "$wxUSE_EXPAT" = "builtin" ; then
21254
21255
21256 subdirs="$subdirs src/expat"
21257
21258     fi
21259 fi
21260
21261
21262
21263 if test "$wxUSE_LIBMSPACK" != "no"; then
21264
21265     if test "${ac_cv_header_mspack_h+set}" = set; then
21266   echo "$as_me:$LINENO: checking for mspack.h" >&5
21267 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21268 if test "${ac_cv_header_mspack_h+set}" = set; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 fi
21271 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21272 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21273 else
21274   # Is the header compilable?
21275 echo "$as_me:$LINENO: checking mspack.h usability" >&5
21276 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21277 cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h.  */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h.  */
21283 $ac_includes_default
21284 #include <mspack.h>
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21288   (eval $ac_compile) 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } &&
21295          { ac_try='test -z "$ac_c_werror_flag"
21296                          || test ! -s conftest.err'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; } &&
21302          { ac_try='test -s conftest.$ac_objext'
21303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304   (eval $ac_try) 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; }; then
21308   ac_header_compiler=yes
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313 ac_header_compiler=no
21314 fi
21315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21317 echo "${ECHO_T}$ac_header_compiler" >&6
21318
21319 # Is the header present?
21320 echo "$as_me:$LINENO: checking mspack.h presence" >&5
21321 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21322 cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h.  */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h.  */
21328 #include <mspack.h>
21329 _ACEOF
21330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21332   ac_status=$?
21333   grep -v '^ *+' conftest.er1 >conftest.err
21334   rm -f conftest.er1
21335   cat conftest.err >&5
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } >/dev/null; then
21338   if test -s conftest.err; then
21339     ac_cpp_err=$ac_c_preproc_warn_flag
21340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21341   else
21342     ac_cpp_err=
21343   fi
21344 else
21345   ac_cpp_err=yes
21346 fi
21347 if test -z "$ac_cpp_err"; then
21348   ac_header_preproc=yes
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353   ac_header_preproc=no
21354 fi
21355 rm -f conftest.err conftest.$ac_ext
21356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21357 echo "${ECHO_T}$ac_header_preproc" >&6
21358
21359 # So?  What about this header?
21360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21361   yes:no: )
21362     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21363 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21364     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21365 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21366     ac_header_preproc=yes
21367     ;;
21368   no:yes:* )
21369     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21370 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21371     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
21372 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
21373     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21374 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21375     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
21376 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21377     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21378 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21379     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21380 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21381     (
21382       cat <<\_ASBOX
21383 ## ----------------------------------------- ##
21384 ## Report this to wx-dev@lists.wxwindows.org ##
21385 ## ----------------------------------------- ##
21386 _ASBOX
21387     ) |
21388       sed "s/^/$as_me: WARNING:     /" >&2
21389     ;;
21390 esac
21391 echo "$as_me:$LINENO: checking for mspack.h" >&5
21392 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21393 if test "${ac_cv_header_mspack_h+set}" = set; then
21394   echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396   ac_cv_header_mspack_h=$ac_header_preproc
21397 fi
21398 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21399 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21400
21401 fi
21402 if test $ac_cv_header_mspack_h = yes; then
21403   found_mspack_h=1
21404 fi
21405
21406
21407     if test "x$found_mspack_h" = "x1"; then
21408         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21409 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21410 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   ac_check_lib_save_LIBS=$LIBS
21414 LIBS="-lmspack  $LIBS"
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421
21422 /* Override any gcc2 internal prototype to avoid an error.  */
21423 #ifdef __cplusplus
21424 extern "C"
21425 #endif
21426 /* We use char because int might match the return type of a gcc2
21427    builtin and then its argument prototype would still apply.  */
21428 char mspack_create_chm_decompressor ();
21429 int
21430 main ()
21431 {
21432 mspack_create_chm_decompressor ();
21433   ;
21434   return 0;
21435 }
21436 _ACEOF
21437 rm -f conftest.$ac_objext conftest$ac_exeext
21438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439   (eval $ac_link) 2>conftest.er1
21440   ac_status=$?
21441   grep -v '^ *+' conftest.er1 >conftest.err
21442   rm -f conftest.er1
21443   cat conftest.err >&5
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } &&
21446          { ac_try='test -z "$ac_c_werror_flag"
21447                          || test ! -s conftest.err'
21448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449   (eval $ac_try) 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; } &&
21453          { ac_try='test -s conftest$ac_exeext'
21454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455   (eval $ac_try) 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; }; then
21459   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21460 else
21461   echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21463
21464 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21465 fi
21466 rm -f conftest.err conftest.$ac_objext \
21467       conftest$ac_exeext conftest.$ac_ext
21468 LIBS=$ac_check_lib_save_LIBS
21469 fi
21470 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21471 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21472 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21473   MSPACK_LINK=" -lmspack"
21474 fi
21475
21476     fi
21477     if test "x$MSPACK_LINK" = "x" ; then
21478         wxUSE_LIBMSPACK=no
21479     else
21480         cat >>confdefs.h <<\_ACEOF
21481 #define wxUSE_LIBMSPACK 1
21482 _ACEOF
21483
21484     fi
21485 fi
21486
21487
21488
21489 AFMINSTALL=
21490 WIN32INSTALL=
21491
21492 TOOLKIT=
21493 TOOLKIT_INCLUDE=
21494 WIDGET_SET=
21495
21496 if test "$USE_WIN32" = 1 ; then
21497
21498 for ac_header in w32api.h
21499 do
21500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21502   echo "$as_me:$LINENO: checking for $ac_header" >&5
21503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21505   echo $ECHO_N "(cached) $ECHO_C" >&6
21506 fi
21507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21509 else
21510   # Is the header compilable?
21511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519 $ac_includes_default
21520 #include <$ac_header>
21521 _ACEOF
21522 rm -f conftest.$ac_objext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524   (eval $ac_compile) 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } &&
21531          { ac_try='test -z "$ac_c_werror_flag"
21532                          || test ! -s conftest.err'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; } &&
21538          { ac_try='test -s conftest.$ac_objext'
21539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540   (eval $ac_try) 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; }; then
21544   ac_header_compiler=yes
21545 else
21546   echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 ac_header_compiler=no
21550 fi
21551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21553 echo "${ECHO_T}$ac_header_compiler" >&6
21554
21555 # Is the header present?
21556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564 #include <$ac_header>
21565 _ACEOF
21566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } >/dev/null; then
21574   if test -s conftest.err; then
21575     ac_cpp_err=$ac_c_preproc_warn_flag
21576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21577   else
21578     ac_cpp_err=
21579   fi
21580 else
21581   ac_cpp_err=yes
21582 fi
21583 if test -z "$ac_cpp_err"; then
21584   ac_header_preproc=yes
21585 else
21586   echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589   ac_header_preproc=no
21590 fi
21591 rm -f conftest.err conftest.$ac_ext
21592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21593 echo "${ECHO_T}$ac_header_preproc" >&6
21594
21595 # So?  What about this header?
21596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21597   yes:no: )
21598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21602     ac_header_preproc=yes
21603     ;;
21604   no:yes:* )
21605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21617     (
21618       cat <<\_ASBOX
21619 ## ----------------------------------------- ##
21620 ## Report this to wx-dev@lists.wxwindows.org ##
21621 ## ----------------------------------------- ##
21622 _ASBOX
21623     ) |
21624       sed "s/^/$as_me: WARNING:     /" >&2
21625     ;;
21626 esac
21627 echo "$as_me:$LINENO: checking for $ac_header" >&5
21628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21630   echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632   eval "$as_ac_Header=\$ac_header_preproc"
21633 fi
21634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21636
21637 fi
21638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21639   cat >>confdefs.h <<_ACEOF
21640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21641 _ACEOF
21642
21643 fi
21644
21645 done
21646
21647     if test "${ac_cv_header_windows_h+set}" = set; then
21648   echo "$as_me:$LINENO: checking for windows.h" >&5
21649 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21650 if test "${ac_cv_header_windows_h+set}" = set; then
21651   echo $ECHO_N "(cached) $ECHO_C" >&6
21652 fi
21653 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21654 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21655 else
21656   # Is the header compilable?
21657 echo "$as_me:$LINENO: checking windows.h usability" >&5
21658 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21659 cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 $ac_includes_default
21666 #include <windows.h>
21667 _ACEOF
21668 rm -f conftest.$ac_objext
21669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670   (eval $ac_compile) 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } &&
21677          { ac_try='test -z "$ac_c_werror_flag"
21678                          || test ! -s conftest.err'
21679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680   (eval $ac_try) 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; } &&
21684          { ac_try='test -s conftest.$ac_objext'
21685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686   (eval $ac_try) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; }; then
21690   ac_header_compiler=yes
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ac_header_compiler=no
21696 fi
21697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21699 echo "${ECHO_T}$ac_header_compiler" >&6
21700
21701 # Is the header present?
21702 echo "$as_me:$LINENO: checking windows.h presence" >&5
21703 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 #include <windows.h>
21711 _ACEOF
21712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21714   ac_status=$?
21715   grep -v '^ *+' conftest.er1 >conftest.err
21716   rm -f conftest.er1
21717   cat conftest.err >&5
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); } >/dev/null; then
21720   if test -s conftest.err; then
21721     ac_cpp_err=$ac_c_preproc_warn_flag
21722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21723   else
21724     ac_cpp_err=
21725   fi
21726 else
21727   ac_cpp_err=yes
21728 fi
21729 if test -z "$ac_cpp_err"; then
21730   ac_header_preproc=yes
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735   ac_header_preproc=no
21736 fi
21737 rm -f conftest.err conftest.$ac_ext
21738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21739 echo "${ECHO_T}$ac_header_preproc" >&6
21740
21741 # So?  What about this header?
21742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21743   yes:no: )
21744     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21745 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21746     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21747 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21748     ac_header_preproc=yes
21749     ;;
21750   no:yes:* )
21751     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21752 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21753     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
21754 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
21755     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21756 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21757     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
21758 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21759     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21760 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21761     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21762 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21763     (
21764       cat <<\_ASBOX
21765 ## ----------------------------------------- ##
21766 ## Report this to wx-dev@lists.wxwindows.org ##
21767 ## ----------------------------------------- ##
21768 _ASBOX
21769     ) |
21770       sed "s/^/$as_me: WARNING:     /" >&2
21771     ;;
21772 esac
21773 echo "$as_me:$LINENO: checking for windows.h" >&5
21774 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21775 if test "${ac_cv_header_windows_h+set}" = set; then
21776   echo $ECHO_N "(cached) $ECHO_C" >&6
21777 else
21778   ac_cv_header_windows_h=$ac_header_preproc
21779 fi
21780 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21781 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21782
21783 fi
21784 if test $ac_cv_header_windows_h = yes; then
21785   :
21786 else
21787
21788         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21789 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21790    { (exit 1); exit 1; }; }
21791
21792 fi
21793
21794
21795
21796             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21797
21798     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21799         LIBS="$LIBS -loleacc"
21800     fi
21801
21802     case "${host}" in
21803         *-*-cygwin* )
21804                         LIBS="$LIBS -lkernel32 -luser32"
21805             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21806     esac
21807
21808         if test "$wxUSE_ODBC" = "sys" ; then
21809         wxUSE_ODBC = "yes"
21810     fi
21811     if test "$wxUSE_ODBC" = "yes" ; then
21812         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21813         cat >>confdefs.h <<\_ACEOF
21814 #define wxUSE_ODBC 1
21815 _ACEOF
21816
21817     fi
21818
21819     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21820     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21821
21822         WIN32INSTALL=win32install
21823 fi
21824
21825 if test "$wxUSE_GUI" = "yes"; then
21826     USE_GUI=1
21827
21828     GUI_TK_LIBRARY=
21829
21830     WXGTK12=
21831     WXGTK127=
21832     WXGTK20=
21833     WXGPE=
21834
21835     if test "$wxUSE_MSW" = 1 ; then
21836         TOOLKIT=MSW
21837         GUIDIST=MSW_DIST
21838
21839                                 case "${host}" in
21840             *-*-mingw32* )
21841                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21842         esac
21843     fi
21844
21845     if test "$wxUSE_GTK" = 1; then
21846         echo "$as_me:$LINENO: checking for GTK+ version" >&5
21847 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21848
21849         gtk_version_cached=1
21850         if test "${wx_cv_lib_gtk+set}" = set; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853
21854                                                 gtk_version_cached=0
21855                 echo "$as_me:$LINENO: result: " >&5
21856 echo "${ECHO_T}" >&6
21857
21858                                                 GTK_MODULES=
21859                 if test "$wxUSE_THREADS" = "yes"; then
21860                     GTK_MODULES=gthread
21861                 fi
21862
21863                                                 wx_cv_lib_gtk=
21864                 if test "x$wxUSE_GTK2" = "xyes"; then
21865                     # Check whether --enable-gtktest or --disable-gtktest was given.
21866 if test "${enable_gtktest+set}" = set; then
21867   enableval="$enable_gtktest"
21868
21869 else
21870   enable_gtktest=yes
21871 fi;
21872
21873   pkg_config_args=gtk+-2.0
21874   for module in . $GTK_MODULES
21875   do
21876       case "$module" in
21877          gthread)
21878              pkg_config_args="$pkg_config_args gthread-2.0"
21879          ;;
21880       esac
21881   done
21882
21883   no_gtk=""
21884
21885   # Extract the first word of "pkg-config", so it can be a program name with args.
21886 set dummy pkg-config; ac_word=$2
21887 echo "$as_me:$LINENO: checking for $ac_word" >&5
21888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21889 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21890   echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892   case $PKG_CONFIG in
21893   [\\/]* | ?:[\\/]*)
21894   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21895   ;;
21896   *)
21897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21898 for as_dir in $PATH
21899 do
21900   IFS=$as_save_IFS
21901   test -z "$as_dir" && as_dir=.
21902   for ac_exec_ext in '' $ac_executable_extensions; do
21903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21904     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21906     break 2
21907   fi
21908 done
21909 done
21910
21911   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21912   ;;
21913 esac
21914 fi
21915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21916
21917 if test -n "$PKG_CONFIG"; then
21918   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21919 echo "${ECHO_T}$PKG_CONFIG" >&6
21920 else
21921   echo "$as_me:$LINENO: result: no" >&5
21922 echo "${ECHO_T}no" >&6
21923 fi
21924
21925
21926   if test x$PKG_CONFIG != xno ; then
21927     if pkg-config --atleast-pkgconfig-version 0.7 ; then
21928       :
21929     else
21930       echo *** pkg-config too old; version 0.7 or better required.
21931       no_gtk=yes
21932       PKG_CONFIG=no
21933     fi
21934   else
21935     no_gtk=yes
21936   fi
21937
21938   min_gtk_version=2.0.0
21939   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21940 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21941
21942   if test x$PKG_CONFIG != xno ; then
21943     ## don't try to run the test against uninstalled libtool libs
21944     if $PKG_CONFIG --uninstalled $pkg_config_args; then
21945           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21946           enable_gtktest=no
21947     fi
21948
21949     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21950           :
21951     else
21952           no_gtk=yes
21953     fi
21954   fi
21955
21956   if test x"$no_gtk" = x ; then
21957     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21958     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21959     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21960            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21961     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21962            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21963     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21964            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21965     if test "x$enable_gtktest" = "xyes" ; then
21966       ac_save_CFLAGS="$CFLAGS"
21967       ac_save_LIBS="$LIBS"
21968       CFLAGS="$CFLAGS $GTK_CFLAGS"
21969       LIBS="$GTK_LIBS $LIBS"
21970       rm -f conf.gtktest
21971       if test "$cross_compiling" = yes; then
21972   echo $ac_n "cross compiling; assumed OK... $ac_c"
21973 else
21974   cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980
21981 #include <gtk/gtk.h>
21982 #include <stdio.h>
21983 #include <stdlib.h>
21984
21985 int
21986 main ()
21987 {
21988   int major, minor, micro;
21989   char *tmp_version;
21990
21991   system ("touch conf.gtktest");
21992
21993   /* HP/UX 9 (%@#!) writes to sscanf strings */
21994   tmp_version = g_strdup("$min_gtk_version");
21995   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21996      printf("%s, bad version string\n", "$min_gtk_version");
21997      exit(1);
21998    }
21999
22000   if ((gtk_major_version != $gtk_config_major_version) ||
22001       (gtk_minor_version != $gtk_config_minor_version) ||
22002       (gtk_micro_version != $gtk_config_micro_version))
22003     {
22004       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22005              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22006              gtk_major_version, gtk_minor_version, gtk_micro_version);
22007       printf ("*** was found! If pkg-config was correct, then it is best\n");
22008       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22009       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22010       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22011       printf("*** required on your system.\n");
22012       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22013       printf("*** to point to the correct configuration files\n");
22014     }
22015   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22016            (gtk_minor_version != GTK_MINOR_VERSION) ||
22017            (gtk_micro_version != GTK_MICRO_VERSION))
22018     {
22019       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22020              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22021       printf("*** library (version %d.%d.%d)\n",
22022              gtk_major_version, gtk_minor_version, gtk_micro_version);
22023     }
22024   else
22025     {
22026       if ((gtk_major_version > major) ||
22027         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22028         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22029       {
22030         return 0;
22031        }
22032      else
22033       {
22034         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22035                gtk_major_version, gtk_minor_version, gtk_micro_version);
22036         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22037                major, minor, micro);
22038         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22039         printf("***\n");
22040         printf("*** If you have already installed a sufficiently new version, this error\n");
22041         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22042         printf("*** being found. The easiest way to fix this is to remove the old version\n");
22043         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22044         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22045         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22046         printf("*** so that the correct libraries are found at run-time))\n");
22047       }
22048     }
22049   return 1;
22050 }
22051
22052 _ACEOF
22053 rm -f conftest$ac_exeext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22055   (eval $ac_link) 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060   (eval $ac_try) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); }; }; then
22064   :
22065 else
22066   echo "$as_me: program exited with status $ac_status" >&5
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22069
22070 ( exit $ac_status )
22071 no_gtk=yes
22072 fi
22073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22074 fi
22075        CFLAGS="$ac_save_CFLAGS"
22076        LIBS="$ac_save_LIBS"
22077      fi
22078   fi
22079   if test "x$no_gtk" = x ; then
22080      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22081 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22082      wx_cv_lib_gtk=2.0
22083   else
22084      echo "$as_me:$LINENO: result: no" >&5
22085 echo "${ECHO_T}no" >&6
22086      if test "$PKG_CONFIG" = "no" ; then
22087        echo "*** A new enough version of pkg-config was not found."
22088        echo "*** See http://pkgconfig.sourceforge.net"
22089      else
22090        if test -f conf.gtktest ; then
22091         :
22092        else
22093           echo "*** Could not run GTK+ test program, checking why..."
22094           ac_save_CFLAGS="$CFLAGS"
22095           ac_save_LIBS="$LIBS"
22096           CFLAGS="$CFLAGS $GTK_CFLAGS"
22097           LIBS="$LIBS $GTK_LIBS"
22098           cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104
22105 #include <gtk/gtk.h>
22106 #include <stdio.h>
22107
22108 int
22109 main ()
22110 {
22111  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22118   (eval $ac_link) 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } &&
22125          { ac_try='test -z "$ac_c_werror_flag"
22126                          || test ! -s conftest.err'
22127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128   (eval $ac_try) 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; } &&
22132          { ac_try='test -s conftest$ac_exeext'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; }; then
22138    echo "*** The test program compiled, but did not run. This usually means"
22139           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22140           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22141           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22142           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22143           echo "*** is required on your system"
22144           echo "***"
22145           echo "*** If you have an old version installed, it is best to remove it, although"
22146           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151  echo "*** The test program failed to compile or link. See the file config.log for the"
22152           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22153 fi
22154 rm -f conftest.err conftest.$ac_objext \
22155       conftest$ac_exeext conftest.$ac_ext
22156           CFLAGS="$ac_save_CFLAGS"
22157           LIBS="$ac_save_LIBS"
22158        fi
22159      fi
22160      GTK_CFLAGS=""
22161      GTK_LIBS=""
22162      :
22163   fi
22164
22165
22166   rm -f conf.gtktest
22167
22168                 else
22169
22170 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22171 if test "${with_gtk_prefix+set}" = set; then
22172   withval="$with_gtk_prefix"
22173   gtk_config_prefix="$withval"
22174 else
22175   gtk_config_prefix=""
22176 fi;
22177
22178 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22179 if test "${with_gtk_exec_prefix+set}" = set; then
22180   withval="$with_gtk_exec_prefix"
22181   gtk_config_exec_prefix="$withval"
22182 else
22183   gtk_config_exec_prefix=""
22184 fi;
22185 # Check whether --enable-gtktest or --disable-gtktest was given.
22186 if test "${enable_gtktest+set}" = set; then
22187   enableval="$enable_gtktest"
22188
22189 else
22190   enable_gtktest=yes
22191 fi;
22192
22193   for module in . $GTK_MODULES
22194   do
22195       case "$module" in
22196          gthread)
22197              gtk_config_args="$gtk_config_args gthread"
22198          ;;
22199       esac
22200   done
22201
22202   if test x$gtk_config_exec_prefix != x ; then
22203      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22204      if test x${GTK_CONFIG+set} != xset ; then
22205         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22206      fi
22207   fi
22208   if test x$gtk_config_prefix != x ; then
22209      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22210      if test x${GTK_CONFIG+set} != xset ; then
22211         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22212      fi
22213   fi
22214
22215   # Extract the first word of "gtk-config", so it can be a program name with args.
22216 set dummy gtk-config; ac_word=$2
22217 echo "$as_me:$LINENO: checking for $ac_word" >&5
22218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22219 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22220   echo $ECHO_N "(cached) $ECHO_C" >&6
22221 else
22222   case $GTK_CONFIG in
22223   [\\/]* | ?:[\\/]*)
22224   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22225   ;;
22226   *)
22227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22228 for as_dir in $PATH
22229 do
22230   IFS=$as_save_IFS
22231   test -z "$as_dir" && as_dir=.
22232   for ac_exec_ext in '' $ac_executable_extensions; do
22233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22234     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22236     break 2
22237   fi
22238 done
22239 done
22240
22241   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22242   ;;
22243 esac
22244 fi
22245 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22246
22247 if test -n "$GTK_CONFIG"; then
22248   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22249 echo "${ECHO_T}$GTK_CONFIG" >&6
22250 else
22251   echo "$as_me:$LINENO: result: no" >&5
22252 echo "${ECHO_T}no" >&6
22253 fi
22254
22255   min_gtk_version=1.2.7
22256   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22257 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22258   no_gtk=""
22259   if test "$GTK_CONFIG" = "no" ; then
22260     no_gtk=yes
22261   else
22262     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22263     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22264     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22265            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22266     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22267            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22268     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22269            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22270     if test "x$enable_gtktest" = "xyes" ; then
22271       ac_save_CFLAGS="$CFLAGS"
22272       ac_save_LIBS="$LIBS"
22273       CFLAGS="$CFLAGS $GTK_CFLAGS"
22274       LIBS="$GTK_LIBS $LIBS"
22275       rm -f conf.gtktest
22276       if test "$cross_compiling" = yes; then
22277   echo $ac_n "cross compiling; assumed OK... $ac_c"
22278 else
22279   cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h.  */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h.  */
22285
22286 #include <gtk/gtk.h>
22287 #include <stdio.h>
22288 #include <stdlib.h>
22289
22290 int
22291 main ()
22292 {
22293   int major, minor, micro;
22294   char *tmp_version;
22295
22296   system ("touch conf.gtktest");
22297
22298   /* HP/UX 9 (%@#!) writes to sscanf strings */
22299   tmp_version = g_strdup("$min_gtk_version");
22300   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22301      printf("%s, bad version string\n", "$min_gtk_version");
22302      exit(1);
22303    }
22304
22305   if ((gtk_major_version != $gtk_config_major_version) ||
22306       (gtk_minor_version != $gtk_config_minor_version) ||
22307       (gtk_micro_version != $gtk_config_micro_version))
22308     {
22309       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22310              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22311              gtk_major_version, gtk_minor_version, gtk_micro_version);
22312       printf ("*** was found! If gtk-config was correct, then it is best\n");
22313       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22314       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22315       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22316       printf("*** required on your system.\n");
22317       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22318       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22319       printf("*** before re-running configure\n");
22320     }
22321 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22322   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22323            (gtk_minor_version != GTK_MINOR_VERSION) ||
22324            (gtk_micro_version != GTK_MICRO_VERSION))
22325     {
22326       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22327              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22328       printf("*** library (version %d.%d.%d)\n",
22329              gtk_major_version, gtk_minor_version, gtk_micro_version);
22330     }
22331 #endif /* defined (GTK_MAJOR_VERSION) ... */
22332   else
22333     {
22334       if ((gtk_major_version > major) ||
22335         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22336         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22337       {
22338         return 0;
22339        }
22340      else
22341       {
22342         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22343                gtk_major_version, gtk_minor_version, gtk_micro_version);
22344         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22345                major, minor, micro);
22346         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22347         printf("***\n");
22348         printf("*** If you have already installed a sufficiently new version, this error\n");
22349         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22350         printf("*** being found. The easiest way to fix this is to remove the old version\n");
22351         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22352         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22353         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22354         printf("*** so that the correct libraries are found at run-time))\n");
22355       }
22356     }
22357   return 1;
22358 }
22359
22360 _ACEOF
22361 rm -f conftest$ac_exeext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22363   (eval $ac_link) 2>&5
22364   ac_status=$?
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368   (eval $ac_try) 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; }; then
22372   :
22373 else
22374   echo "$as_me: program exited with status $ac_status" >&5
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 ( exit $ac_status )
22379 no_gtk=yes
22380 fi
22381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22382 fi
22383        CFLAGS="$ac_save_CFLAGS"
22384        LIBS="$ac_save_LIBS"
22385      fi
22386   fi
22387   if test "x$no_gtk" = x ; then
22388      echo "$as_me:$LINENO: result: yes" >&5
22389 echo "${ECHO_T}yes" >&6
22390      wx_cv_lib_gtk=1.2.7
22391   else
22392      echo "$as_me:$LINENO: result: no" >&5
22393 echo "${ECHO_T}no" >&6
22394      if test "$GTK_CONFIG" = "no" ; then
22395        echo "*** The gtk-config script installed by GTK could not be found"
22396        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22397        echo "*** your path, or set the GTK_CONFIG environment variable to the"
22398        echo "*** full path to gtk-config."
22399      else
22400        if test -f conf.gtktest ; then
22401         :
22402        else
22403           echo "*** Could not run GTK test program, checking why..."
22404           CFLAGS="$CFLAGS $GTK_CFLAGS"
22405           LIBS="$LIBS $GTK_LIBS"
22406           cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h.  */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h.  */
22412
22413 #include <gtk/gtk.h>
22414 #include <stdio.h>
22415
22416 int
22417 main ()
22418 {
22419  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22420   ;
22421   return 0;
22422 }
22423 _ACEOF
22424 rm -f conftest.$ac_objext conftest$ac_exeext
22425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426   (eval $ac_link) 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } &&
22433          { ac_try='test -z "$ac_c_werror_flag"
22434                          || test ! -s conftest.err'
22435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436   (eval $ac_try) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }; } &&
22440          { ac_try='test -s conftest$ac_exeext'
22441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442   (eval $ac_try) 2>&5
22443   ac_status=$?
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); }; }; then
22446    echo "*** The test program compiled, but did not run. This usually means"
22447           echo "*** that the run-time linker is not finding GTK or finding the wrong"
22448           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22449           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22450           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22451           echo "*** is required on your system"
22452           echo "***"
22453           echo "*** If you have an old version installed, it is best to remove it, although"
22454           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22455           echo "***"
22456           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22457           echo "*** came with the system with the command"
22458           echo "***"
22459           echo "***    rpm --erase --nodeps gtk gtk-devel"
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464  echo "*** The test program failed to compile or link. See the file config.log for the"
22465           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22466           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22467           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22468 fi
22469 rm -f conftest.err conftest.$ac_objext \
22470       conftest$ac_exeext conftest.$ac_ext
22471           CFLAGS="$ac_save_CFLAGS"
22472           LIBS="$ac_save_LIBS"
22473        fi
22474      fi
22475      GTK_CFLAGS=""
22476      GTK_LIBS=""
22477      :
22478   fi
22479
22480
22481   rm -f conf.gtktest
22482
22483
22484                     if test -z "$wx_cv_lib_gtk"; then
22485
22486 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22487 if test "${with_gtk_prefix+set}" = set; then
22488   withval="$with_gtk_prefix"
22489   gtk_config_prefix="$withval"
22490 else
22491   gtk_config_prefix=""
22492 fi;
22493
22494 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22495 if test "${with_gtk_exec_prefix+set}" = set; then
22496   withval="$with_gtk_exec_prefix"
22497   gtk_config_exec_prefix="$withval"
22498 else
22499   gtk_config_exec_prefix=""
22500 fi;
22501 # Check whether --enable-gtktest or --disable-gtktest was given.
22502 if test "${enable_gtktest+set}" = set; then
22503   enableval="$enable_gtktest"
22504
22505 else
22506   enable_gtktest=yes
22507 fi;
22508
22509   for module in . $GTK_MODULES
22510   do
22511       case "$module" in
22512          gthread)
22513              gtk_config_args="$gtk_config_args gthread"
22514          ;;
22515       esac
22516   done
22517
22518   if test x$gtk_config_exec_prefix != x ; then
22519      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22520      if test x${GTK_CONFIG+set} != xset ; then
22521         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22522      fi
22523   fi
22524   if test x$gtk_config_prefix != x ; then
22525      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22526      if test x${GTK_CONFIG+set} != xset ; then
22527         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22528      fi
22529   fi
22530
22531   # Extract the first word of "gtk-config", so it can be a program name with args.
22532 set dummy gtk-config; ac_word=$2
22533 echo "$as_me:$LINENO: checking for $ac_word" >&5
22534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22535 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22536   echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538   case $GTK_CONFIG in
22539   [\\/]* | ?:[\\/]*)
22540   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22541   ;;
22542   *)
22543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22544 for as_dir in $PATH
22545 do
22546   IFS=$as_save_IFS
22547   test -z "$as_dir" && as_dir=.
22548   for ac_exec_ext in '' $ac_executable_extensions; do
22549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22550     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22552     break 2
22553   fi
22554 done
22555 done
22556
22557   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22558   ;;
22559 esac
22560 fi
22561 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22562
22563 if test -n "$GTK_CONFIG"; then
22564   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22565 echo "${ECHO_T}$GTK_CONFIG" >&6
22566 else
22567   echo "$as_me:$LINENO: result: no" >&5
22568 echo "${ECHO_T}no" >&6
22569 fi
22570
22571   min_gtk_version=1.2.3
22572   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22573 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22574   no_gtk=""
22575   if test "$GTK_CONFIG" = "no" ; then
22576     no_gtk=yes
22577   else
22578     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22579     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22580     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22581            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22582     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22583            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22584     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22585            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22586     if test "x$enable_gtktest" = "xyes" ; then
22587       ac_save_CFLAGS="$CFLAGS"
22588       ac_save_LIBS="$LIBS"
22589       CFLAGS="$CFLAGS $GTK_CFLAGS"
22590       LIBS="$GTK_LIBS $LIBS"
22591       rm -f conf.gtktest
22592       if test "$cross_compiling" = yes; then
22593   echo $ac_n "cross compiling; assumed OK... $ac_c"
22594 else
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601
22602 #include <gtk/gtk.h>
22603 #include <stdio.h>
22604 #include <stdlib.h>
22605
22606 int
22607 main ()
22608 {
22609   int major, minor, micro;
22610   char *tmp_version;
22611
22612   system ("touch conf.gtktest");
22613
22614   /* HP/UX 9 (%@#!) writes to sscanf strings */
22615   tmp_version = g_strdup("$min_gtk_version");
22616   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22617      printf("%s, bad version string\n", "$min_gtk_version");
22618      exit(1);
22619    }
22620
22621   if ((gtk_major_version != $gtk_config_major_version) ||
22622       (gtk_minor_version != $gtk_config_minor_version) ||
22623       (gtk_micro_version != $gtk_config_micro_version))
22624     {
22625       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22626              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22627              gtk_major_version, gtk_minor_version, gtk_micro_version);
22628       printf ("*** was found! If gtk-config was correct, then it is best\n");
22629       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22630       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22631       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22632       printf("*** required on your system.\n");
22633       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22634       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22635       printf("*** before re-running configure\n");
22636     }
22637 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22638   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22639            (gtk_minor_version != GTK_MINOR_VERSION) ||
22640            (gtk_micro_version != GTK_MICRO_VERSION))
22641     {
22642       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22643              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22644       printf("*** library (version %d.%d.%d)\n",
22645              gtk_major_version, gtk_minor_version, gtk_micro_version);
22646     }
22647 #endif /* defined (GTK_MAJOR_VERSION) ... */
22648   else
22649     {
22650       if ((gtk_major_version > major) ||
22651         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22652         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22653       {
22654         return 0;
22655        }
22656      else
22657       {
22658         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22659                gtk_major_version, gtk_minor_version, gtk_micro_version);
22660         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22661                major, minor, micro);
22662         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22663         printf("***\n");
22664         printf("*** If you have already installed a sufficiently new version, this error\n");
22665         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22666         printf("*** being found. The easiest way to fix this is to remove the old version\n");
22667         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22668         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22669         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22670         printf("*** so that the correct libraries are found at run-time))\n");
22671       }
22672     }
22673   return 1;
22674 }
22675
22676 _ACEOF
22677 rm -f conftest$ac_exeext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679   (eval $ac_link) 2>&5
22680   ac_status=$?
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; }; then
22688   :
22689 else
22690   echo "$as_me: program exited with status $ac_status" >&5
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ( exit $ac_status )
22695 no_gtk=yes
22696 fi
22697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22698 fi
22699        CFLAGS="$ac_save_CFLAGS"
22700        LIBS="$ac_save_LIBS"
22701      fi
22702   fi
22703   if test "x$no_gtk" = x ; then
22704      echo "$as_me:$LINENO: result: yes" >&5
22705 echo "${ECHO_T}yes" >&6
22706      wx_cv_lib_gtk=1.2.3
22707   else
22708      echo "$as_me:$LINENO: result: no" >&5
22709 echo "${ECHO_T}no" >&6
22710      if test "$GTK_CONFIG" = "no" ; then
22711        echo "*** The gtk-config script installed by GTK could not be found"
22712        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22713        echo "*** your path, or set the GTK_CONFIG environment variable to the"
22714        echo "*** full path to gtk-config."
22715      else
22716        if test -f conf.gtktest ; then
22717         :
22718        else
22719           echo "*** Could not run GTK test program, checking why..."
22720           CFLAGS="$CFLAGS $GTK_CFLAGS"
22721           LIBS="$LIBS $GTK_LIBS"
22722           cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728
22729 #include <gtk/gtk.h>
22730 #include <stdio.h>
22731
22732 int
22733 main ()
22734 {
22735  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext conftest$ac_exeext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22742   (eval $ac_link) 2>conftest.er1
22743   ac_status=$?
22744   grep -v '^ *+' conftest.er1 >conftest.err
22745   rm -f conftest.er1
22746   cat conftest.err >&5
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } &&
22749          { ac_try='test -z "$ac_c_werror_flag"
22750                          || test ! -s conftest.err'
22751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752   (eval $ac_try) 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; } &&
22756          { ac_try='test -s conftest$ac_exeext'
22757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758   (eval $ac_try) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); }; }; then
22762    echo "*** The test program compiled, but did not run. This usually means"
22763           echo "*** that the run-time linker is not finding GTK or finding the wrong"
22764           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22765           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22766           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22767           echo "*** is required on your system"
22768           echo "***"
22769           echo "*** If you have an old version installed, it is best to remove it, although"
22770           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22771           echo "***"
22772           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22773           echo "*** came with the system with the command"
22774           echo "***"
22775           echo "***    rpm --erase --nodeps gtk gtk-devel"
22776 else
22777   echo "$as_me: failed program was:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22779
22780  echo "*** The test program failed to compile or link. See the file config.log for the"
22781           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22782           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22783           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22784 fi
22785 rm -f conftest.err conftest.$ac_objext \
22786       conftest$ac_exeext conftest.$ac_ext
22787           CFLAGS="$ac_save_CFLAGS"
22788           LIBS="$ac_save_LIBS"
22789        fi
22790      fi
22791      GTK_CFLAGS=""
22792      GTK_LIBS=""
22793      :
22794   fi
22795
22796
22797   rm -f conf.gtktest
22798
22799                     fi
22800                 fi
22801
22802                 if test -z "$wx_cv_lib_gtk"; then
22803                                         wx_cv_lib_gtk=none
22804                 else
22805                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
22806                     wx_cv_libs_gtk=$GTK_LIBS
22807                 fi
22808
22809
22810 fi
22811
22812
22813                         if test "$gtk_version_cached" = 1; then
22814             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22815 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22816         fi
22817
22818         case "$wx_cv_lib_gtk" in
22819             2.0)    WXGTK20=1
22820                     TOOLKIT_VERSION=2
22821                     ;;
22822             1.2.7)  WXGTK127=1
22823                     WXGTK12=1
22824                     ;;
22825             1.2.3)  WXGTK12=1
22826                     ;;
22827             *)      { { echo "$as_me:$LINENO: error:
22828 Please check that gtk-config is in path, the directory
22829 where GTK+ libraries are installed (returned by
22830 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22831 equivalent variable and GTK+ is version 1.2.3 or above.
22832                             " >&5
22833 echo "$as_me: error:
22834 Please check that gtk-config is in path, the directory
22835 where GTK+ libraries are installed (returned by
22836 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22837 equivalent variable and GTK+ is version 1.2.3 or above.
22838                             " >&2;}
22839    { (exit 1); exit 1; }; }
22840                     ;;
22841         esac
22842
22843         if test "$WXGTK20" = 1; then
22844             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22845
22846   succeeded=no
22847
22848   if test -z "$PKG_CONFIG"; then
22849     # Extract the first word of "pkg-config", so it can be a program name with args.
22850 set dummy pkg-config; ac_word=$2
22851 echo "$as_me:$LINENO: checking for $ac_word" >&5
22852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   case $PKG_CONFIG in
22857   [\\/]* | ?:[\\/]*)
22858   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22859   ;;
22860   *)
22861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22862 for as_dir in $PATH
22863 do
22864   IFS=$as_save_IFS
22865   test -z "$as_dir" && as_dir=.
22866   for ac_exec_ext in '' $ac_executable_extensions; do
22867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22868     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22870     break 2
22871   fi
22872 done
22873 done
22874
22875   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22876   ;;
22877 esac
22878 fi
22879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22880
22881 if test -n "$PKG_CONFIG"; then
22882   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22883 echo "${ECHO_T}$PKG_CONFIG" >&6
22884 else
22885   echo "$as_me:$LINENO: result: no" >&5
22886 echo "${ECHO_T}no" >&6
22887 fi
22888
22889   fi
22890
22891   if test "$PKG_CONFIG" = "no" ; then
22892      echo "*** The pkg-config script could not be found. Make sure it is"
22893      echo "*** in your path, or set the PKG_CONFIG environment variable"
22894      echo "*** to the full path to pkg-config."
22895      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22896   else
22897      PKG_CONFIG_MIN_VERSION=0.9.0
22898      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22899         echo "$as_me:$LINENO: checking for pangoft2" >&5
22900 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22901
22902         if $PKG_CONFIG --exists "pangoft2" ; then
22903             echo "$as_me:$LINENO: result: yes" >&5
22904 echo "${ECHO_T}yes" >&6
22905             succeeded=yes
22906
22907             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22908 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22909             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22910             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22911 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22912
22913             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22914 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22915             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22916             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22917 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22918         else
22919             PANGOFT2_CFLAGS=""
22920             PANGOFT2_LIBS=""
22921             ## If we have a custom action on failure, don't print errors, but
22922             ## do set a variable so people can do so.
22923             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22924
22925         fi
22926
22927
22928
22929      else
22930         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22931         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22932      fi
22933   fi
22934
22935   if test $succeeded = yes; then
22936
22937                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22938                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22939
22940   else
22941
22942                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22943 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22944                         wxUSE_PRINTING_ARCHITECTURE="no"
22945
22946
22947   fi
22948
22949             fi
22950         else
22951             if test "$wxUSE_UNICODE" = "yes"; then
22952                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22953 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22954                 wxUSE_UNICODE=no
22955             fi
22956         fi
22957
22958                         if test "$USE_DARWIN" != 1; then
22959
22960 for ac_func in poll
22961 do
22962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22963 echo "$as_me:$LINENO: checking for $ac_func" >&5
22964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22965 if eval "test \"\${$as_ac_var+set}\" = set"; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968   cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22976 #define $ac_func innocuous_$ac_func
22977
22978 /* System header to define __stub macros and hopefully few prototypes,
22979     which can conflict with char $ac_func (); below.
22980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22981     <limits.h> exists even on freestanding compilers.  */
22982
22983 #ifdef __STDC__
22984 # include <limits.h>
22985 #else
22986 # include <assert.h>
22987 #endif
22988
22989 #undef $ac_func
22990
22991 /* Override any gcc2 internal prototype to avoid an error.  */
22992 #ifdef __cplusplus
22993 extern "C"
22994 {
22995 #endif
22996 /* We use char because int might match the return type of a gcc2
22997    builtin and then its argument prototype would still apply.  */
22998 char $ac_func ();
22999 /* The GNU C library defines this for functions which it implements
23000     to always fail with ENOSYS.  Some functions are actually named
23001     something starting with __ and the normal name is an alias.  */
23002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23003 choke me
23004 #else
23005 char (*f) () = $ac_func;
23006 #endif
23007 #ifdef __cplusplus
23008 }
23009 #endif
23010
23011 int
23012 main ()
23013 {
23014 return f != $ac_func;
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021   (eval $ac_link) 2>conftest.er1
23022   ac_status=$?
23023   grep -v '^ *+' conftest.er1 >conftest.err
23024   rm -f conftest.er1
23025   cat conftest.err >&5
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); } &&
23028          { ac_try='test -z "$ac_c_werror_flag"
23029                          || test ! -s conftest.err'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; } &&
23035          { ac_try='test -s conftest$ac_exeext'
23036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037   (eval $ac_try) 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); }; }; then
23041   eval "$as_ac_var=yes"
23042 else
23043   echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23045
23046 eval "$as_ac_var=no"
23047 fi
23048 rm -f conftest.err conftest.$ac_objext \
23049       conftest$ac_exeext conftest.$ac_ext
23050 fi
23051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23053 if test `eval echo '${'$as_ac_var'}'` = yes; then
23054   cat >>confdefs.h <<_ACEOF
23055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23056 _ACEOF
23057
23058 fi
23059 done
23060
23061         fi
23062
23063         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23064         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23065
23066         AFMINSTALL=afminstall
23067         TOOLKIT=GTK
23068         GUIDIST=GTK_DIST
23069
23070                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23071 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23072 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23073   echo $ECHO_N "(cached) $ECHO_C" >&6
23074 else
23075   ac_check_lib_save_LIBS=$LIBS
23076 LIBS="-lgdk  $LIBS"
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h.  */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h.  */
23083
23084 /* Override any gcc2 internal prototype to avoid an error.  */
23085 #ifdef __cplusplus
23086 extern "C"
23087 #endif
23088 /* We use char because int might match the return type of a gcc2
23089    builtin and then its argument prototype would still apply.  */
23090 char gdk_im_open ();
23091 int
23092 main ()
23093 {
23094 gdk_im_open ();
23095   ;
23096   return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext conftest$ac_exeext
23100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23101   (eval $ac_link) 2>conftest.er1
23102   ac_status=$?
23103   grep -v '^ *+' conftest.er1 >conftest.err
23104   rm -f conftest.er1
23105   cat conftest.err >&5
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); } &&
23108          { ac_try='test -z "$ac_c_werror_flag"
23109                          || test ! -s conftest.err'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; } &&
23115          { ac_try='test -s conftest$ac_exeext'
23116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117   (eval $ac_try) 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; }; then
23121   ac_cv_lib_gdk_gdk_im_open=yes
23122 else
23123   echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_cv_lib_gdk_gdk_im_open=no
23127 fi
23128 rm -f conftest.err conftest.$ac_objext \
23129       conftest$ac_exeext conftest.$ac_ext
23130 LIBS=$ac_check_lib_save_LIBS
23131 fi
23132 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23133 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23134 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23135   cat >>confdefs.h <<\_ACEOF
23136 #define HAVE_XIM 1
23137 _ACEOF
23138
23139 fi
23140
23141
23142
23143                 if test "$wxUSE_GPE" = "yes"; then
23144             echo "$as_me:$LINENO: checking for gpewidget library" >&5
23145 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23146
23147 ac_find_libraries=
23148 for ac_dir in $SEARCH_LIB /usr/lib;
23149   do
23150     for ac_extension in a so sl dylib; do
23151       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23152         ac_find_libraries=$ac_dir
23153         break 2
23154       fi
23155     done
23156   done
23157
23158             if test "$ac_find_libraries" != "" ; then
23159
23160   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23161   result=$?
23162   if test $result = 0; then
23163     ac_path_to_link=""
23164   else
23165     ac_path_to_link=" -L$ac_find_libraries"
23166   fi
23167
23168                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23169                 WXGPE=1
23170                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23171 echo "${ECHO_T}found at $ac_find_libraries" >&6
23172             else
23173                 echo "$as_me:$LINENO: result: not found" >&5
23174 echo "${ECHO_T}not found" >&6
23175             fi
23176
23177                                                                                                                     fi
23178     fi
23179
23180     if test "$wxUSE_MGL" = 1; then
23181        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23182 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23183         if test "x$MGL_ROOT" = x ; then
23184             echo "$as_me:$LINENO: result: not found" >&5
23185 echo "${ECHO_T}not found" >&6
23186             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23187 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23188    { (exit 1); exit 1; }; }
23189         else
23190             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23191 echo "${ECHO_T}$MGL_ROOT" >&6
23192         fi
23193
23194         echo "$as_me:$LINENO: checking for libmgl location" >&5
23195 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23196                                 case "${host}" in
23197             *-*-linux* )
23198                                           if test "x$wxUSE_SHARED" = xyes ; then
23199                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23200               else
23201                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23202               fi
23203               ;;
23204             *-pc-msdosdjgpp )
23205               mgl_os_candidates="dos32/dj2"
23206               ;;
23207             *)
23208               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23209 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23210    { (exit 1); exit 1; }; }
23211         esac
23212
23213         mgl_lib_type=""
23214         mgl_os=""
23215
23216         for mgl_os_i in $mgl_os_candidates ; do
23217             if test "x$mgl_os" = x ; then
23218                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23219                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23220                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23221                         mgl_lib_type=debug
23222                         mgl_os=$mgl_os_i
23223                     fi
23224                 fi
23225                 if test "x$mgl_lib_type" = x ; then
23226                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23227                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23228                         mgl_lib_type=release
23229                         mgl_os=$mgl_os_i
23230                     fi
23231                 fi
23232             fi
23233         done
23234
23235         if test "x$mgl_os" = x ; then
23236             echo "$as_me:$LINENO: result: not found" >&5
23237 echo "${ECHO_T}not found" >&6
23238             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23239 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23240    { (exit 1); exit 1; }; }
23241         fi
23242         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23243 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23244
23245         wxUSE_UNIVERSAL="yes"
23246
23247         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23248         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23249
23250         AFMINSTALL=afminstall
23251         TOOLKIT=MGL
23252         GUIDIST=MGL_DIST
23253     fi
23254
23255     if test "$wxUSE_MICROWIN" = 1; then
23256         echo "$as_me:$LINENO: checking for MicroWindows" >&5
23257 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23258         if test "x$MICROWINDOWS" = x ; then
23259             echo "$as_me:$LINENO: result: not found" >&5
23260 echo "${ECHO_T}not found" >&6
23261             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23262 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23263    { (exit 1); exit 1; }; }
23264         else
23265             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23266 echo "${ECHO_T}$MICROWINDOWS" >&6
23267         fi
23268
23269         if test -f $MICROWINDOWS/lib/libmwin.a; then
23270             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23271 echo "${ECHO_T}MicroWindows' libraries found." >&6
23272         else
23273             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23274 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23275    { (exit 1); exit 1; }; }
23276         fi
23277
23278         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23279         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23280
23281         wxUSE_UNIVERSAL="yes"
23282
23283         AFMINSTALL=afminstall
23284         TOOLKIT=MICROWIN
23285         GUIDIST=MICROWIN_DIST
23286
23287         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23288     fi
23289
23290     if test "$wxUSE_X11" = 1; then
23291                         echo "$as_me:$LINENO: checking for X" >&5
23292 echo $ECHO_N "checking for X... $ECHO_C" >&6
23293
23294
23295 # Check whether --with-x or --without-x was given.
23296 if test "${with_x+set}" = set; then
23297   withval="$with_x"
23298
23299 fi;
23300 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23301 if test "x$with_x" = xno; then
23302   # The user explicitly disabled X.
23303   have_x=disabled
23304 else
23305   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23306     # Both variables are already set.
23307     have_x=yes
23308   else
23309     if test "${ac_cv_have_x+set}" = set; then
23310   echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312   # One or both of the vars are not set, and there is no cached value.
23313 ac_x_includes=no ac_x_libraries=no
23314 rm -fr conftest.dir
23315 if mkdir conftest.dir; then
23316   cd conftest.dir
23317   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23318   cat >Imakefile <<'_ACEOF'
23319 acfindx:
23320         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23321 _ACEOF
23322   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23323     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23324     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23325     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23326     for ac_extension in a so sl; do
23327       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23328          test -f $ac_im_libdir/libX11.$ac_extension; then
23329         ac_im_usrlibdir=$ac_im_libdir; break
23330       fi
23331     done
23332     # Screen out bogus values from the imake configuration.  They are
23333     # bogus both because they are the default anyway, and because
23334     # using them would break gcc on systems where it needs fixed includes.
23335     case $ac_im_incroot in
23336         /usr/include) ;;
23337         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23338     esac
23339     case $ac_im_usrlibdir in
23340         /usr/lib | /lib) ;;
23341         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23342     esac
23343   fi
23344   cd ..
23345   rm -fr conftest.dir
23346 fi
23347
23348 # Standard set of common directories for X headers.
23349 # Check X11 before X11Rn because it is often a symlink to the current release.
23350 ac_x_header_dirs='
23351 /usr/X11/include
23352 /usr/X11R6/include
23353 /usr/X11R5/include
23354 /usr/X11R4/include
23355
23356 /usr/include/X11
23357 /usr/include/X11R6
23358 /usr/include/X11R5
23359 /usr/include/X11R4
23360
23361 /usr/local/X11/include
23362 /usr/local/X11R6/include
23363 /usr/local/X11R5/include
23364 /usr/local/X11R4/include
23365
23366 /usr/local/include/X11
23367 /usr/local/include/X11R6
23368 /usr/local/include/X11R5
23369 /usr/local/include/X11R4
23370
23371 /usr/X386/include
23372 /usr/x386/include
23373 /usr/XFree86/include/X11
23374
23375 /usr/include
23376 /usr/local/include
23377 /usr/unsupported/include
23378 /usr/athena/include
23379 /usr/local/x11r5/include
23380 /usr/lpp/Xamples/include
23381
23382 /usr/openwin/include
23383 /usr/openwin/share/include'
23384
23385 if test "$ac_x_includes" = no; then
23386   # Guess where to find include files, by looking for Intrinsic.h.
23387   # First, try using that file with no special directory specified.
23388   cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 #include <X11/Intrinsic.h>
23395 _ACEOF
23396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } >/dev/null; then
23404   if test -s conftest.err; then
23405     ac_cpp_err=$ac_c_preproc_warn_flag
23406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23407   else
23408     ac_cpp_err=
23409   fi
23410 else
23411   ac_cpp_err=yes
23412 fi
23413 if test -z "$ac_cpp_err"; then
23414   # We can compile using X headers with no special include directory.
23415 ac_x_includes=
23416 else
23417   echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420   for ac_dir in $ac_x_header_dirs; do
23421   if test -r "$ac_dir/X11/Intrinsic.h"; then
23422     ac_x_includes=$ac_dir
23423     break
23424   fi
23425 done
23426 fi
23427 rm -f conftest.err conftest.$ac_ext
23428 fi # $ac_x_includes = no
23429
23430 if test "$ac_x_libraries" = no; then
23431   # Check for the libraries.
23432   # See if we find them without any special options.
23433   # Don't add to $LIBS permanently.
23434   ac_save_LIBS=$LIBS
23435   LIBS="-lXt $LIBS"
23436   cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include <X11/Intrinsic.h>
23443 int
23444 main ()
23445 {
23446 XtMalloc (0)
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453   (eval $ac_link) 2>conftest.er1
23454   ac_status=$?
23455   grep -v '^ *+' conftest.er1 >conftest.err
23456   rm -f conftest.er1
23457   cat conftest.err >&5
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); } &&
23460          { ac_try='test -z "$ac_c_werror_flag"
23461                          || test ! -s conftest.err'
23462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463   (eval $ac_try) 2>&5
23464   ac_status=$?
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); }; } &&
23467          { ac_try='test -s conftest$ac_exeext'
23468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469   (eval $ac_try) 2>&5
23470   ac_status=$?
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); }; }; then
23473   LIBS=$ac_save_LIBS
23474 # We can link X programs with no special library path.
23475 ac_x_libraries=
23476 else
23477   echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23479
23480 LIBS=$ac_save_LIBS
23481 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23482 do
23483   # Don't even attempt the hair of trying to link an X program!
23484   for ac_extension in a so sl; do
23485     if test -r $ac_dir/libXt.$ac_extension; then
23486       ac_x_libraries=$ac_dir
23487       break 2
23488     fi
23489   done
23490 done
23491 fi
23492 rm -f conftest.err conftest.$ac_objext \
23493       conftest$ac_exeext conftest.$ac_ext
23494 fi # $ac_x_libraries = no
23495
23496 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23497   # Didn't find X anywhere.  Cache the known absence of X.
23498   ac_cv_have_x="have_x=no"
23499 else
23500   # Record where we found X for the cache.
23501   ac_cv_have_x="have_x=yes \
23502                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23503 fi
23504 fi
23505
23506   fi
23507   eval "$ac_cv_have_x"
23508 fi # $with_x != no
23509
23510 if test "$have_x" != yes; then
23511   echo "$as_me:$LINENO: result: $have_x" >&5
23512 echo "${ECHO_T}$have_x" >&6
23513   no_x=yes
23514 else
23515   # If each of the values was on the command line, it overrides each guess.
23516   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23517   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23518   # Update the cache value to reflect the command line values.
23519   ac_cv_have_x="have_x=yes \
23520                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23521   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23522 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23523 fi
23524
23525 if test "$no_x" = yes; then
23526   # Not all programs may use this symbol, but it does not hurt to define it.
23527
23528 cat >>confdefs.h <<\_ACEOF
23529 #define X_DISPLAY_MISSING 1
23530 _ACEOF
23531
23532   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23533 else
23534   if test -n "$x_includes"; then
23535     X_CFLAGS="$X_CFLAGS -I$x_includes"
23536   fi
23537
23538   # It would also be nice to do this for all -L options, not just this one.
23539   if test -n "$x_libraries"; then
23540     X_LIBS="$X_LIBS -L$x_libraries"
23541     # For Solaris; some versions of Sun CC require a space after -R and
23542     # others require no space.  Words are not sufficient . . . .
23543     case `(uname -sr) 2>/dev/null` in
23544     "SunOS 5"*)
23545       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23546 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23547       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23548       cat >conftest.$ac_ext <<_ACEOF
23549 /* confdefs.h.  */
23550 _ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h.  */
23554
23555 int
23556 main ()
23557 {
23558
23559   ;
23560   return 0;
23561 }
23562 _ACEOF
23563 rm -f conftest.$ac_objext conftest$ac_exeext
23564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23565   (eval $ac_link) 2>conftest.er1
23566   ac_status=$?
23567   grep -v '^ *+' conftest.er1 >conftest.err
23568   rm -f conftest.er1
23569   cat conftest.err >&5
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); } &&
23572          { ac_try='test -z "$ac_c_werror_flag"
23573                          || test ! -s conftest.err'
23574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); }; } &&
23579          { ac_try='test -s conftest$ac_exeext'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; }; then
23585   ac_R_nospace=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590 ac_R_nospace=no
23591 fi
23592 rm -f conftest.err conftest.$ac_objext \
23593       conftest$ac_exeext conftest.$ac_ext
23594       if test $ac_R_nospace = yes; then
23595         echo "$as_me:$LINENO: result: no" >&5
23596 echo "${ECHO_T}no" >&6
23597         X_LIBS="$X_LIBS -R$x_libraries"
23598       else
23599         LIBS="$ac_xsave_LIBS -R $x_libraries"
23600         cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606
23607 int
23608 main ()
23609 {
23610
23611   ;
23612   return 0;
23613 }
23614 _ACEOF
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23617   (eval $ac_link) 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } &&
23624          { ac_try='test -z "$ac_c_werror_flag"
23625                          || test ! -s conftest.err'
23626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); }; } &&
23631          { ac_try='test -s conftest$ac_exeext'
23632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); }; }; then
23637   ac_R_space=yes
23638 else
23639   echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23641
23642 ac_R_space=no
23643 fi
23644 rm -f conftest.err conftest.$ac_objext \
23645       conftest$ac_exeext conftest.$ac_ext
23646         if test $ac_R_space = yes; then
23647           echo "$as_me:$LINENO: result: yes" >&5
23648 echo "${ECHO_T}yes" >&6
23649           X_LIBS="$X_LIBS -R $x_libraries"
23650         else
23651           echo "$as_me:$LINENO: result: neither works" >&5
23652 echo "${ECHO_T}neither works" >&6
23653         fi
23654       fi
23655       LIBS=$ac_xsave_LIBS
23656     esac
23657   fi
23658
23659   # Check for system-dependent libraries X programs must link with.
23660   # Do this before checking for the system-independent R6 libraries
23661   # (-lICE), since we may need -lsocket or whatever for X linking.
23662
23663   if test "$ISC" = yes; then
23664     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23665   else
23666     # Martyn Johnson says this is needed for Ultrix, if the X
23667     # libraries were built with DECnet support.  And Karl Berry says
23668     # the Alpha needs dnet_stub (dnet does not exist).
23669     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23670     cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h.  */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h.  */
23676
23677 /* Override any gcc2 internal prototype to avoid an error.  */
23678 #ifdef __cplusplus
23679 extern "C"
23680 #endif
23681 /* We use char because int might match the return type of a gcc2
23682    builtin and then its argument prototype would still apply.  */
23683 char XOpenDisplay ();
23684 int
23685 main ()
23686 {
23687 XOpenDisplay ();
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694   (eval $ac_link) 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } &&
23701          { ac_try='test -z "$ac_c_werror_flag"
23702                          || test ! -s conftest.err'
23703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704   (eval $ac_try) 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); }; } &&
23708          { ac_try='test -s conftest$ac_exeext'
23709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710   (eval $ac_try) 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); }; }; then
23714   :
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23720 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23721 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23722   echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724   ac_check_lib_save_LIBS=$LIBS
23725 LIBS="-ldnet  $LIBS"
23726 cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h.  */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h.  */
23732
23733 /* Override any gcc2 internal prototype to avoid an error.  */
23734 #ifdef __cplusplus
23735 extern "C"
23736 #endif
23737 /* We use char because int might match the return type of a gcc2
23738    builtin and then its argument prototype would still apply.  */
23739 char dnet_ntoa ();
23740 int
23741 main ()
23742 {
23743 dnet_ntoa ();
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23750   (eval $ac_link) 2>conftest.er1
23751   ac_status=$?
23752   grep -v '^ *+' conftest.er1 >conftest.err
23753   rm -f conftest.er1
23754   cat conftest.err >&5
23755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756   (exit $ac_status); } &&
23757          { ac_try='test -z "$ac_c_werror_flag"
23758                          || test ! -s conftest.err'
23759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760   (eval $ac_try) 2>&5
23761   ac_status=$?
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); }; } &&
23764          { ac_try='test -s conftest$ac_exeext'
23765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766   (eval $ac_try) 2>&5
23767   ac_status=$?
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); }; }; then
23770   ac_cv_lib_dnet_dnet_ntoa=yes
23771 else
23772   echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23774
23775 ac_cv_lib_dnet_dnet_ntoa=no
23776 fi
23777 rm -f conftest.err conftest.$ac_objext \
23778       conftest$ac_exeext conftest.$ac_ext
23779 LIBS=$ac_check_lib_save_LIBS
23780 fi
23781 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23782 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23783 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23784   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23785 fi
23786
23787     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23788       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23789 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23790 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23791   echo $ECHO_N "(cached) $ECHO_C" >&6
23792 else
23793   ac_check_lib_save_LIBS=$LIBS
23794 LIBS="-ldnet_stub  $LIBS"
23795 cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801
23802 /* Override any gcc2 internal prototype to avoid an error.  */
23803 #ifdef __cplusplus
23804 extern "C"
23805 #endif
23806 /* We use char because int might match the return type of a gcc2
23807    builtin and then its argument prototype would still apply.  */
23808 char dnet_ntoa ();
23809 int
23810 main ()
23811 {
23812 dnet_ntoa ();
23813   ;
23814   return 0;
23815 }
23816 _ACEOF
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23819   (eval $ac_link) 2>conftest.er1
23820   ac_status=$?
23821   grep -v '^ *+' conftest.er1 >conftest.err
23822   rm -f conftest.er1
23823   cat conftest.err >&5
23824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825   (exit $ac_status); } &&
23826          { ac_try='test -z "$ac_c_werror_flag"
23827                          || test ! -s conftest.err'
23828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829   (eval $ac_try) 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   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23840 else
23841   echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23843
23844 ac_cv_lib_dnet_stub_dnet_ntoa=no
23845 fi
23846 rm -f conftest.err conftest.$ac_objext \
23847       conftest$ac_exeext conftest.$ac_ext
23848 LIBS=$ac_check_lib_save_LIBS
23849 fi
23850 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23851 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23852 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23853   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23854 fi
23855
23856     fi
23857 fi
23858 rm -f conftest.err conftest.$ac_objext \
23859       conftest$ac_exeext conftest.$ac_ext
23860     LIBS="$ac_xsave_LIBS"
23861
23862     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23863     # to get the SysV transport functions.
23864     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23865     # needs -lnsl.
23866     # The nsl library prevents programs from opening the X display
23867     # on Irix 5.2, according to T.E. Dickey.
23868     # The functions gethostbyname, getservbyname, and inet_addr are
23869     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23870     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23871 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23872 if test "${ac_cv_func_gethostbyname+set}" = set; then
23873   echo $ECHO_N "(cached) $ECHO_C" >&6
23874 else
23875   cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h.  */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h.  */
23881 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23883 #define gethostbyname innocuous_gethostbyname
23884
23885 /* System header to define __stub macros and hopefully few prototypes,
23886     which can conflict with char gethostbyname (); below.
23887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23888     <limits.h> exists even on freestanding compilers.  */
23889
23890 #ifdef __STDC__
23891 # include <limits.h>
23892 #else
23893 # include <assert.h>
23894 #endif
23895
23896 #undef gethostbyname
23897
23898 /* Override any gcc2 internal prototype to avoid an error.  */
23899 #ifdef __cplusplus
23900 extern "C"
23901 {
23902 #endif
23903 /* We use char because int might match the return type of a gcc2
23904    builtin and then its argument prototype would still apply.  */
23905 char gethostbyname ();
23906 /* The GNU C library defines this for functions which it implements
23907     to always fail with ENOSYS.  Some functions are actually named
23908     something starting with __ and the normal name is an alias.  */
23909 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23910 choke me
23911 #else
23912 char (*f) () = gethostbyname;
23913 #endif
23914 #ifdef __cplusplus
23915 }
23916 #endif
23917
23918 int
23919 main ()
23920 {
23921 return f != gethostbyname;
23922   ;
23923   return 0;
23924 }
23925 _ACEOF
23926 rm -f conftest.$ac_objext conftest$ac_exeext
23927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23928   (eval $ac_link) 2>conftest.er1
23929   ac_status=$?
23930   grep -v '^ *+' conftest.er1 >conftest.err
23931   rm -f conftest.er1
23932   cat conftest.err >&5
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); } &&
23935          { ac_try='test -z "$ac_c_werror_flag"
23936                          || test ! -s conftest.err'
23937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938   (eval $ac_try) 2>&5
23939   ac_status=$?
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); }; } &&
23942          { ac_try='test -s conftest$ac_exeext'
23943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23944   (eval $ac_try) 2>&5
23945   ac_status=$?
23946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947   (exit $ac_status); }; }; then
23948   ac_cv_func_gethostbyname=yes
23949 else
23950   echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23952
23953 ac_cv_func_gethostbyname=no
23954 fi
23955 rm -f conftest.err conftest.$ac_objext \
23956       conftest$ac_exeext conftest.$ac_ext
23957 fi
23958 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23959 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23960
23961     if test $ac_cv_func_gethostbyname = no; then
23962       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23963 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23964 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23965   echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967   ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lnsl  $LIBS"
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975
23976 /* Override any gcc2 internal prototype to avoid an error.  */
23977 #ifdef __cplusplus
23978 extern "C"
23979 #endif
23980 /* We use char because int might match the return type of a gcc2
23981    builtin and then its argument prototype would still apply.  */
23982 char gethostbyname ();
23983 int
23984 main ()
23985 {
23986 gethostbyname ();
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 rm -f conftest.$ac_objext conftest$ac_exeext
23992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23993   (eval $ac_link) 2>conftest.er1
23994   ac_status=$?
23995   grep -v '^ *+' conftest.er1 >conftest.err
23996   rm -f conftest.er1
23997   cat conftest.err >&5
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); } &&
24000          { ac_try='test -z "$ac_c_werror_flag"
24001                          || test ! -s conftest.err'
24002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003   (eval $ac_try) 2>&5
24004   ac_status=$?
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); }; } &&
24007          { ac_try='test -s conftest$ac_exeext'
24008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009   (eval $ac_try) 2>&5
24010   ac_status=$?
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); }; }; then
24013   ac_cv_lib_nsl_gethostbyname=yes
24014 else
24015   echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018 ac_cv_lib_nsl_gethostbyname=no
24019 fi
24020 rm -f conftest.err conftest.$ac_objext \
24021       conftest$ac_exeext conftest.$ac_ext
24022 LIBS=$ac_check_lib_save_LIBS
24023 fi
24024 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24025 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24026 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24027   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24028 fi
24029
24030       if test $ac_cv_lib_nsl_gethostbyname = no; then
24031         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24032 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24033 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24034   echo $ECHO_N "(cached) $ECHO_C" >&6
24035 else
24036   ac_check_lib_save_LIBS=$LIBS
24037 LIBS="-lbsd  $LIBS"
24038 cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044
24045 /* Override any gcc2 internal prototype to avoid an error.  */
24046 #ifdef __cplusplus
24047 extern "C"
24048 #endif
24049 /* We use char because int might match the return type of a gcc2
24050    builtin and then its argument prototype would still apply.  */
24051 char gethostbyname ();
24052 int
24053 main ()
24054 {
24055 gethostbyname ();
24056   ;
24057   return 0;
24058 }
24059 _ACEOF
24060 rm -f conftest.$ac_objext conftest$ac_exeext
24061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24062   (eval $ac_link) 2>conftest.er1
24063   ac_status=$?
24064   grep -v '^ *+' conftest.er1 >conftest.err
24065   rm -f conftest.er1
24066   cat conftest.err >&5
24067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); } &&
24069          { ac_try='test -z "$ac_c_werror_flag"
24070                          || test ! -s conftest.err'
24071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072   (eval $ac_try) 2>&5
24073   ac_status=$?
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); }; } &&
24076          { ac_try='test -s conftest$ac_exeext'
24077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078   (eval $ac_try) 2>&5
24079   ac_status=$?
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); }; }; then
24082   ac_cv_lib_bsd_gethostbyname=yes
24083 else
24084   echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24086
24087 ac_cv_lib_bsd_gethostbyname=no
24088 fi
24089 rm -f conftest.err conftest.$ac_objext \
24090       conftest$ac_exeext conftest.$ac_ext
24091 LIBS=$ac_check_lib_save_LIBS
24092 fi
24093 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24094 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24095 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24096   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24097 fi
24098
24099       fi
24100     fi
24101
24102     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24103     # socket/setsockopt and other routines are undefined under SCO ODT
24104     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24105     # on later versions), says Simon Leinen: it contains gethostby*
24106     # variants that don't use the name server (or something).  -lsocket
24107     # must be given before -lnsl if both are needed.  We assume that
24108     # if connect needs -lnsl, so does gethostbyname.
24109     echo "$as_me:$LINENO: checking for connect" >&5
24110 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24111 if test "${ac_cv_func_connect+set}" = set; then
24112   echo $ECHO_N "(cached) $ECHO_C" >&6
24113 else
24114   cat >conftest.$ac_ext <<_ACEOF
24115 /* confdefs.h.  */
24116 _ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h.  */
24120 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24122 #define connect innocuous_connect
24123
24124 /* System header to define __stub macros and hopefully few prototypes,
24125     which can conflict with char connect (); below.
24126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24127     <limits.h> exists even on freestanding compilers.  */
24128
24129 #ifdef __STDC__
24130 # include <limits.h>
24131 #else
24132 # include <assert.h>
24133 #endif
24134
24135 #undef connect
24136
24137 /* Override any gcc2 internal prototype to avoid an error.  */
24138 #ifdef __cplusplus
24139 extern "C"
24140 {
24141 #endif
24142 /* We use char because int might match the return type of a gcc2
24143    builtin and then its argument prototype would still apply.  */
24144 char connect ();
24145 /* The GNU C library defines this for functions which it implements
24146     to always fail with ENOSYS.  Some functions are actually named
24147     something starting with __ and the normal name is an alias.  */
24148 #if defined (__stub_connect) || defined (__stub___connect)
24149 choke me
24150 #else
24151 char (*f) () = connect;
24152 #endif
24153 #ifdef __cplusplus
24154 }
24155 #endif
24156
24157 int
24158 main ()
24159 {
24160 return f != connect;
24161   ;
24162   return 0;
24163 }
24164 _ACEOF
24165 rm -f conftest.$ac_objext conftest$ac_exeext
24166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167   (eval $ac_link) 2>conftest.er1
24168   ac_status=$?
24169   grep -v '^ *+' conftest.er1 >conftest.err
24170   rm -f conftest.er1
24171   cat conftest.err >&5
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); } &&
24174          { ac_try='test -z "$ac_c_werror_flag"
24175                          || test ! -s conftest.err'
24176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177   (eval $ac_try) 2>&5
24178   ac_status=$?
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); }; } &&
24181          { ac_try='test -s conftest$ac_exeext'
24182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183   (eval $ac_try) 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); }; }; then
24187   ac_cv_func_connect=yes
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192 ac_cv_func_connect=no
24193 fi
24194 rm -f conftest.err conftest.$ac_objext \
24195       conftest$ac_exeext conftest.$ac_ext
24196 fi
24197 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24198 echo "${ECHO_T}$ac_cv_func_connect" >&6
24199
24200     if test $ac_cv_func_connect = no; then
24201       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24202 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24203 if test "${ac_cv_lib_socket_connect+set}" = set; then
24204   echo $ECHO_N "(cached) $ECHO_C" >&6
24205 else
24206   ac_check_lib_save_LIBS=$LIBS
24207 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24208 cat >conftest.$ac_ext <<_ACEOF
24209 /* confdefs.h.  */
24210 _ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h.  */
24214
24215 /* Override any gcc2 internal prototype to avoid an error.  */
24216 #ifdef __cplusplus
24217 extern "C"
24218 #endif
24219 /* We use char because int might match the return type of a gcc2
24220    builtin and then its argument prototype would still apply.  */
24221 char connect ();
24222 int
24223 main ()
24224 {
24225 connect ();
24226   ;
24227   return 0;
24228 }
24229 _ACEOF
24230 rm -f conftest.$ac_objext conftest$ac_exeext
24231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24232   (eval $ac_link) 2>conftest.er1
24233   ac_status=$?
24234   grep -v '^ *+' conftest.er1 >conftest.err
24235   rm -f conftest.er1
24236   cat conftest.err >&5
24237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238   (exit $ac_status); } &&
24239          { ac_try='test -z "$ac_c_werror_flag"
24240                          || test ! -s conftest.err'
24241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242   (eval $ac_try) 2>&5
24243   ac_status=$?
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); }; } &&
24246          { ac_try='test -s conftest$ac_exeext'
24247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24248   (eval $ac_try) 2>&5
24249   ac_status=$?
24250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251   (exit $ac_status); }; }; then
24252   ac_cv_lib_socket_connect=yes
24253 else
24254   echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24256
24257 ac_cv_lib_socket_connect=no
24258 fi
24259 rm -f conftest.err conftest.$ac_objext \
24260       conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24262 fi
24263 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24264 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24265 if test $ac_cv_lib_socket_connect = yes; then
24266   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24267 fi
24268
24269     fi
24270
24271     # Guillermo Gomez says -lposix is necessary on A/UX.
24272     echo "$as_me:$LINENO: checking for remove" >&5
24273 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24274 if test "${ac_cv_func_remove+set}" = set; then
24275   echo $ECHO_N "(cached) $ECHO_C" >&6
24276 else
24277   cat >conftest.$ac_ext <<_ACEOF
24278 /* confdefs.h.  */
24279 _ACEOF
24280 cat confdefs.h >>conftest.$ac_ext
24281 cat >>conftest.$ac_ext <<_ACEOF
24282 /* end confdefs.h.  */
24283 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24285 #define remove innocuous_remove
24286
24287 /* System header to define __stub macros and hopefully few prototypes,
24288     which can conflict with char remove (); below.
24289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24290     <limits.h> exists even on freestanding compilers.  */
24291
24292 #ifdef __STDC__
24293 # include <limits.h>
24294 #else
24295 # include <assert.h>
24296 #endif
24297
24298 #undef remove
24299
24300 /* Override any gcc2 internal prototype to avoid an error.  */
24301 #ifdef __cplusplus
24302 extern "C"
24303 {
24304 #endif
24305 /* We use char because int might match the return type of a gcc2
24306    builtin and then its argument prototype would still apply.  */
24307 char remove ();
24308 /* The GNU C library defines this for functions which it implements
24309     to always fail with ENOSYS.  Some functions are actually named
24310     something starting with __ and the normal name is an alias.  */
24311 #if defined (__stub_remove) || defined (__stub___remove)
24312 choke me
24313 #else
24314 char (*f) () = remove;
24315 #endif
24316 #ifdef __cplusplus
24317 }
24318 #endif
24319
24320 int
24321 main ()
24322 {
24323 return f != remove;
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext conftest$ac_exeext
24329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24330   (eval $ac_link) 2>conftest.er1
24331   ac_status=$?
24332   grep -v '^ *+' conftest.er1 >conftest.err
24333   rm -f conftest.er1
24334   cat conftest.err >&5
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); } &&
24337          { ac_try='test -z "$ac_c_werror_flag"
24338                          || test ! -s conftest.err'
24339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340   (eval $ac_try) 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; } &&
24344          { ac_try='test -s conftest$ac_exeext'
24345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346   (eval $ac_try) 2>&5
24347   ac_status=$?
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); }; }; then
24350   ac_cv_func_remove=yes
24351 else
24352   echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355 ac_cv_func_remove=no
24356 fi
24357 rm -f conftest.err conftest.$ac_objext \
24358       conftest$ac_exeext conftest.$ac_ext
24359 fi
24360 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24361 echo "${ECHO_T}$ac_cv_func_remove" >&6
24362
24363     if test $ac_cv_func_remove = no; then
24364       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24365 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24366 if test "${ac_cv_lib_posix_remove+set}" = set; then
24367   echo $ECHO_N "(cached) $ECHO_C" >&6
24368 else
24369   ac_check_lib_save_LIBS=$LIBS
24370 LIBS="-lposix  $LIBS"
24371 cat >conftest.$ac_ext <<_ACEOF
24372 /* confdefs.h.  */
24373 _ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h.  */
24377
24378 /* Override any gcc2 internal prototype to avoid an error.  */
24379 #ifdef __cplusplus
24380 extern "C"
24381 #endif
24382 /* We use char because int might match the return type of a gcc2
24383    builtin and then its argument prototype would still apply.  */
24384 char remove ();
24385 int
24386 main ()
24387 {
24388 remove ();
24389   ;
24390   return 0;
24391 }
24392 _ACEOF
24393 rm -f conftest.$ac_objext conftest$ac_exeext
24394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24395   (eval $ac_link) 2>conftest.er1
24396   ac_status=$?
24397   grep -v '^ *+' conftest.er1 >conftest.err
24398   rm -f conftest.er1
24399   cat conftest.err >&5
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); } &&
24402          { ac_try='test -z "$ac_c_werror_flag"
24403                          || test ! -s conftest.err'
24404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405   (eval $ac_try) 2>&5
24406   ac_status=$?
24407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408   (exit $ac_status); }; } &&
24409          { ac_try='test -s conftest$ac_exeext'
24410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24411   (eval $ac_try) 2>&5
24412   ac_status=$?
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); }; }; then
24415   ac_cv_lib_posix_remove=yes
24416 else
24417   echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24419
24420 ac_cv_lib_posix_remove=no
24421 fi
24422 rm -f conftest.err conftest.$ac_objext \
24423       conftest$ac_exeext conftest.$ac_ext
24424 LIBS=$ac_check_lib_save_LIBS
24425 fi
24426 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24427 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24428 if test $ac_cv_lib_posix_remove = yes; then
24429   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24430 fi
24431
24432     fi
24433
24434     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24435     echo "$as_me:$LINENO: checking for shmat" >&5
24436 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24437 if test "${ac_cv_func_shmat+set}" = set; then
24438   echo $ECHO_N "(cached) $ECHO_C" >&6
24439 else
24440   cat >conftest.$ac_ext <<_ACEOF
24441 /* confdefs.h.  */
24442 _ACEOF
24443 cat confdefs.h >>conftest.$ac_ext
24444 cat >>conftest.$ac_ext <<_ACEOF
24445 /* end confdefs.h.  */
24446 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24448 #define shmat innocuous_shmat
24449
24450 /* System header to define __stub macros and hopefully few prototypes,
24451     which can conflict with char shmat (); below.
24452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24453     <limits.h> exists even on freestanding compilers.  */
24454
24455 #ifdef __STDC__
24456 # include <limits.h>
24457 #else
24458 # include <assert.h>
24459 #endif
24460
24461 #undef shmat
24462
24463 /* Override any gcc2 internal prototype to avoid an error.  */
24464 #ifdef __cplusplus
24465 extern "C"
24466 {
24467 #endif
24468 /* We use char because int might match the return type of a gcc2
24469    builtin and then its argument prototype would still apply.  */
24470 char shmat ();
24471 /* The GNU C library defines this for functions which it implements
24472     to always fail with ENOSYS.  Some functions are actually named
24473     something starting with __ and the normal name is an alias.  */
24474 #if defined (__stub_shmat) || defined (__stub___shmat)
24475 choke me
24476 #else
24477 char (*f) () = shmat;
24478 #endif
24479 #ifdef __cplusplus
24480 }
24481 #endif
24482
24483 int
24484 main ()
24485 {
24486 return f != shmat;
24487   ;
24488   return 0;
24489 }
24490 _ACEOF
24491 rm -f conftest.$ac_objext conftest$ac_exeext
24492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24493   (eval $ac_link) 2>conftest.er1
24494   ac_status=$?
24495   grep -v '^ *+' conftest.er1 >conftest.err
24496   rm -f conftest.er1
24497   cat conftest.err >&5
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); } &&
24500          { ac_try='test -z "$ac_c_werror_flag"
24501                          || test ! -s conftest.err'
24502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24503   (eval $ac_try) 2>&5
24504   ac_status=$?
24505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506   (exit $ac_status); }; } &&
24507          { ac_try='test -s conftest$ac_exeext'
24508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24509   (eval $ac_try) 2>&5
24510   ac_status=$?
24511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512   (exit $ac_status); }; }; then
24513   ac_cv_func_shmat=yes
24514 else
24515   echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24517
24518 ac_cv_func_shmat=no
24519 fi
24520 rm -f conftest.err conftest.$ac_objext \
24521       conftest$ac_exeext conftest.$ac_ext
24522 fi
24523 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24524 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24525
24526     if test $ac_cv_func_shmat = no; then
24527       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24528 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24529 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24530   echo $ECHO_N "(cached) $ECHO_C" >&6
24531 else
24532   ac_check_lib_save_LIBS=$LIBS
24533 LIBS="-lipc  $LIBS"
24534 cat >conftest.$ac_ext <<_ACEOF
24535 /* confdefs.h.  */
24536 _ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h.  */
24540
24541 /* Override any gcc2 internal prototype to avoid an error.  */
24542 #ifdef __cplusplus
24543 extern "C"
24544 #endif
24545 /* We use char because int might match the return type of a gcc2
24546    builtin and then its argument prototype would still apply.  */
24547 char shmat ();
24548 int
24549 main ()
24550 {
24551 shmat ();
24552   ;
24553   return 0;
24554 }
24555 _ACEOF
24556 rm -f conftest.$ac_objext conftest$ac_exeext
24557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24558   (eval $ac_link) 2>conftest.er1
24559   ac_status=$?
24560   grep -v '^ *+' conftest.er1 >conftest.err
24561   rm -f conftest.er1
24562   cat conftest.err >&5
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); } &&
24565          { ac_try='test -z "$ac_c_werror_flag"
24566                          || test ! -s conftest.err'
24567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568   (eval $ac_try) 2>&5
24569   ac_status=$?
24570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571   (exit $ac_status); }; } &&
24572          { ac_try='test -s conftest$ac_exeext'
24573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574   (eval $ac_try) 2>&5
24575   ac_status=$?
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); }; }; then
24578   ac_cv_lib_ipc_shmat=yes
24579 else
24580   echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583 ac_cv_lib_ipc_shmat=no
24584 fi
24585 rm -f conftest.err conftest.$ac_objext \
24586       conftest$ac_exeext conftest.$ac_ext
24587 LIBS=$ac_check_lib_save_LIBS
24588 fi
24589 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24590 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24591 if test $ac_cv_lib_ipc_shmat = yes; then
24592   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24593 fi
24594
24595     fi
24596   fi
24597
24598   # Check for libraries that X11R6 Xt/Xaw programs need.
24599   ac_save_LDFLAGS=$LDFLAGS
24600   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24601   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24602   # check for ICE first), but we must link in the order -lSM -lICE or
24603   # we get undefined symbols.  So assume we have SM if we have ICE.
24604   # These have to be linked with before -lX11, unlike the other
24605   # libraries we check for below, so use a different variable.
24606   # John Interrante, Karl Berry
24607   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24608 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24609 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24610   echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612   ac_check_lib_save_LIBS=$LIBS
24613 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24614 cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620
24621 /* Override any gcc2 internal prototype to avoid an error.  */
24622 #ifdef __cplusplus
24623 extern "C"
24624 #endif
24625 /* We use char because int might match the return type of a gcc2
24626    builtin and then its argument prototype would still apply.  */
24627 char IceConnectionNumber ();
24628 int
24629 main ()
24630 {
24631 IceConnectionNumber ();
24632   ;
24633   return 0;
24634 }
24635 _ACEOF
24636 rm -f conftest.$ac_objext conftest$ac_exeext
24637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24638   (eval $ac_link) 2>conftest.er1
24639   ac_status=$?
24640   grep -v '^ *+' conftest.er1 >conftest.err
24641   rm -f conftest.er1
24642   cat conftest.err >&5
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); } &&
24645          { ac_try='test -z "$ac_c_werror_flag"
24646                          || test ! -s conftest.err'
24647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648   (eval $ac_try) 2>&5
24649   ac_status=$?
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); }; } &&
24652          { ac_try='test -s conftest$ac_exeext'
24653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654   (eval $ac_try) 2>&5
24655   ac_status=$?
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); }; }; then
24658   ac_cv_lib_ICE_IceConnectionNumber=yes
24659 else
24660   echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24662
24663 ac_cv_lib_ICE_IceConnectionNumber=no
24664 fi
24665 rm -f conftest.err conftest.$ac_objext \
24666       conftest$ac_exeext conftest.$ac_ext
24667 LIBS=$ac_check_lib_save_LIBS
24668 fi
24669 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24670 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24671 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24672   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24673 fi
24674
24675   LDFLAGS=$ac_save_LDFLAGS
24676
24677 fi
24678
24679
24680         if test "$no_x" = "yes"; then
24681           { { echo "$as_me:$LINENO: error: X11 not found" >&5
24682 echo "$as_me: error: X11 not found" >&2;}
24683    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24684         fi
24685
24686         GUI_TK_LIBRARY="$X_LIBS"
24687         TOOLKIT_INCLUDE="$X_CFLAGS"
24688         AFMINSTALL=afminstall
24689         COMPILED_X_PROGRAM=0
24690
24691         if test "$wxUSE_NANOX" = "yes"; then
24692             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24693 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24694             if test "x$MICROWIN" = x ; then
24695                 echo "$as_me:$LINENO: result: not found" >&5
24696 echo "${ECHO_T}not found" >&6
24697                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24698 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24699    { (exit 1); exit 1; }; }
24700             else
24701                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24702 echo "${ECHO_T}$MICROWIN" >&6
24703                 cat >>confdefs.h <<\_ACEOF
24704 #define wxUSE_NANOX 1
24705 _ACEOF
24706
24707             fi
24708         fi
24709
24710         if test "$wxUSE_UNICODE" = "yes"; then
24711
24712   succeeded=no
24713
24714   if test -z "$PKG_CONFIG"; then
24715     # Extract the first word of "pkg-config", so it can be a program name with args.
24716 set dummy pkg-config; ac_word=$2
24717 echo "$as_me:$LINENO: checking for $ac_word" >&5
24718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24719 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   case $PKG_CONFIG in
24723   [\\/]* | ?:[\\/]*)
24724   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24725   ;;
24726   *)
24727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24728 for as_dir in $PATH
24729 do
24730   IFS=$as_save_IFS
24731   test -z "$as_dir" && as_dir=.
24732   for ac_exec_ext in '' $ac_executable_extensions; do
24733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24734     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24736     break 2
24737   fi
24738 done
24739 done
24740
24741   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24742   ;;
24743 esac
24744 fi
24745 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24746
24747 if test -n "$PKG_CONFIG"; then
24748   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24749 echo "${ECHO_T}$PKG_CONFIG" >&6
24750 else
24751   echo "$as_me:$LINENO: result: no" >&5
24752 echo "${ECHO_T}no" >&6
24753 fi
24754
24755   fi
24756
24757   if test "$PKG_CONFIG" = "no" ; then
24758      echo "*** The pkg-config script could not be found. Make sure it is"
24759      echo "*** in your path, or set the PKG_CONFIG environment variable"
24760      echo "*** to the full path to pkg-config."
24761      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24762   else
24763      PKG_CONFIG_MIN_VERSION=0.9.0
24764      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24765         echo "$as_me:$LINENO: checking for pangox" >&5
24766 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24767
24768         if $PKG_CONFIG --exists "pangox" ; then
24769             echo "$as_me:$LINENO: result: yes" >&5
24770 echo "${ECHO_T}yes" >&6
24771             succeeded=yes
24772
24773             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24774 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24775             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24776             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24777 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24778
24779             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24780 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24781             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24782             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24783 echo "${ECHO_T}$PANGOX_LIBS" >&6
24784         else
24785             PANGOX_CFLAGS=""
24786             PANGOX_LIBS=""
24787             ## If we have a custom action on failure, don't print errors, but
24788             ## do set a variable so people can do so.
24789             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24790
24791         fi
24792
24793
24794
24795      else
24796         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24797         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24798      fi
24799   fi
24800
24801   if test $succeeded = yes; then
24802
24803                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24804                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24805
24806   else
24807
24808                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24809 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24810    { (exit 1); exit 1; }; }
24811
24812
24813   fi
24814
24815
24816   succeeded=no
24817
24818   if test -z "$PKG_CONFIG"; then
24819     # Extract the first word of "pkg-config", so it can be a program name with args.
24820 set dummy pkg-config; ac_word=$2
24821 echo "$as_me:$LINENO: checking for $ac_word" >&5
24822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24823 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24824   echo $ECHO_N "(cached) $ECHO_C" >&6
24825 else
24826   case $PKG_CONFIG in
24827   [\\/]* | ?:[\\/]*)
24828   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24829   ;;
24830   *)
24831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24832 for as_dir in $PATH
24833 do
24834   IFS=$as_save_IFS
24835   test -z "$as_dir" && as_dir=.
24836   for ac_exec_ext in '' $ac_executable_extensions; do
24837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24838     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24840     break 2
24841   fi
24842 done
24843 done
24844
24845   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24846   ;;
24847 esac
24848 fi
24849 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24850
24851 if test -n "$PKG_CONFIG"; then
24852   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24853 echo "${ECHO_T}$PKG_CONFIG" >&6
24854 else
24855   echo "$as_me:$LINENO: result: no" >&5
24856 echo "${ECHO_T}no" >&6
24857 fi
24858
24859   fi
24860
24861   if test "$PKG_CONFIG" = "no" ; then
24862      echo "*** The pkg-config script could not be found. Make sure it is"
24863      echo "*** in your path, or set the PKG_CONFIG environment variable"
24864      echo "*** to the full path to pkg-config."
24865      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24866   else
24867      PKG_CONFIG_MIN_VERSION=0.9.0
24868      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24869         echo "$as_me:$LINENO: checking for pangoft2" >&5
24870 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24871
24872         if $PKG_CONFIG --exists "pangoft2" ; then
24873             echo "$as_me:$LINENO: result: yes" >&5
24874 echo "${ECHO_T}yes" >&6
24875             succeeded=yes
24876
24877             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24878 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24879             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24880             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24881 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24882
24883             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24884 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24885             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24886             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24887 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24888         else
24889             PANGOFT2_CFLAGS=""
24890             PANGOFT2_LIBS=""
24891             ## If we have a custom action on failure, don't print errors, but
24892             ## do set a variable so people can do so.
24893             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24894
24895         fi
24896
24897
24898
24899      else
24900         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24901         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24902      fi
24903   fi
24904
24905   if test $succeeded = yes; then
24906
24907                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24908                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24909
24910   else
24911
24912                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24913 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24914                         wxUSE_PRINTING_ARCHITECTURE="no"
24915
24916
24917   fi
24918
24919
24920   succeeded=no
24921
24922   if test -z "$PKG_CONFIG"; then
24923     # Extract the first word of "pkg-config", so it can be a program name with args.
24924 set dummy pkg-config; ac_word=$2
24925 echo "$as_me:$LINENO: checking for $ac_word" >&5
24926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24928   echo $ECHO_N "(cached) $ECHO_C" >&6
24929 else
24930   case $PKG_CONFIG in
24931   [\\/]* | ?:[\\/]*)
24932   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24933   ;;
24934   *)
24935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24936 for as_dir in $PATH
24937 do
24938   IFS=$as_save_IFS
24939   test -z "$as_dir" && as_dir=.
24940   for ac_exec_ext in '' $ac_executable_extensions; do
24941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24942     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24944     break 2
24945   fi
24946 done
24947 done
24948
24949   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24950   ;;
24951 esac
24952 fi
24953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24954
24955 if test -n "$PKG_CONFIG"; then
24956   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24957 echo "${ECHO_T}$PKG_CONFIG" >&6
24958 else
24959   echo "$as_me:$LINENO: result: no" >&5
24960 echo "${ECHO_T}no" >&6
24961 fi
24962
24963   fi
24964
24965   if test "$PKG_CONFIG" = "no" ; then
24966      echo "*** The pkg-config script could not be found. Make sure it is"
24967      echo "*** in your path, or set the PKG_CONFIG environment variable"
24968      echo "*** to the full path to pkg-config."
24969      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24970   else
24971      PKG_CONFIG_MIN_VERSION=0.9.0
24972      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24973         echo "$as_me:$LINENO: checking for pangoxft" >&5
24974 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24975
24976         if $PKG_CONFIG --exists "pangoxft" ; then
24977             echo "$as_me:$LINENO: result: yes" >&5
24978 echo "${ECHO_T}yes" >&6
24979             succeeded=yes
24980
24981             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24982 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24983             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24984             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24985 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24986
24987             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24988 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24989             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24990             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24991 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24992         else
24993             PANGOXFT_CFLAGS=""
24994             PANGOXFT_LIBS=""
24995             ## If we have a custom action on failure, don't print errors, but
24996             ## do set a variable so people can do so.
24997             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24998
24999         fi
25000
25001
25002
25003      else
25004         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25005         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25006      fi
25007   fi
25008
25009   if test $succeeded = yes; then
25010
25011                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25012                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25013
25014   else
25015
25016                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25017 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25018
25019
25020   fi
25021
25022         fi
25023
25024         wxUSE_UNIVERSAL="yes"
25025
25026         if test "$wxUSE_NANOX" = "yes"; then
25027             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25028             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"
25029             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25030         else
25031             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25032         fi
25033
25034         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25035         TOOLKIT=X11
25036         GUIDIST=X11_DIST
25037     fi
25038
25039     if test "$wxUSE_MOTIF" = 1; then
25040                         if test "$no_x" = yes; then
25041   # Not all programs may use this symbol, but it does not hurt to define it.
25042
25043 cat >>confdefs.h <<\_ACEOF
25044 #define X_DISPLAY_MISSING 1
25045 _ACEOF
25046
25047   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25048 else
25049   if test -n "$x_includes"; then
25050     X_CFLAGS="$X_CFLAGS -I$x_includes"
25051   fi
25052
25053   # It would also be nice to do this for all -L options, not just this one.
25054   if test -n "$x_libraries"; then
25055     X_LIBS="$X_LIBS -L$x_libraries"
25056     # For Solaris; some versions of Sun CC require a space after -R and
25057     # others require no space.  Words are not sufficient . . . .
25058     case `(uname -sr) 2>/dev/null` in
25059     "SunOS 5"*)
25060       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25061 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25062       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25063       cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069
25070 int
25071 main ()
25072 {
25073
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext conftest$ac_exeext
25079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25080   (eval $ac_link) 2>conftest.er1
25081   ac_status=$?
25082   grep -v '^ *+' conftest.er1 >conftest.err
25083   rm -f conftest.er1
25084   cat conftest.err >&5
25085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); } &&
25087          { ac_try='test -z "$ac_c_werror_flag"
25088                          || test ! -s conftest.err'
25089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090   (eval $ac_try) 2>&5
25091   ac_status=$?
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); }; } &&
25094          { ac_try='test -s conftest$ac_exeext'
25095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096   (eval $ac_try) 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); }; }; then
25100   ac_R_nospace=yes
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105 ac_R_nospace=no
25106 fi
25107 rm -f conftest.err conftest.$ac_objext \
25108       conftest$ac_exeext conftest.$ac_ext
25109       if test $ac_R_nospace = yes; then
25110         echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6
25112         X_LIBS="$X_LIBS -R$x_libraries"
25113       else
25114         LIBS="$ac_xsave_LIBS -R $x_libraries"
25115         cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121
25122 int
25123 main ()
25124 {
25125
25126   ;
25127   return 0;
25128 }
25129 _ACEOF
25130 rm -f conftest.$ac_objext conftest$ac_exeext
25131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132   (eval $ac_link) 2>conftest.er1
25133   ac_status=$?
25134   grep -v '^ *+' conftest.er1 >conftest.err
25135   rm -f conftest.er1
25136   cat conftest.err >&5
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); } &&
25139          { ac_try='test -z "$ac_c_werror_flag"
25140                          || test ! -s conftest.err'
25141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142   (eval $ac_try) 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); }; } &&
25146          { ac_try='test -s conftest$ac_exeext'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; }; then
25152   ac_R_space=yes
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 ac_R_space=no
25158 fi
25159 rm -f conftest.err conftest.$ac_objext \
25160       conftest$ac_exeext conftest.$ac_ext
25161         if test $ac_R_space = yes; then
25162           echo "$as_me:$LINENO: result: yes" >&5
25163 echo "${ECHO_T}yes" >&6
25164           X_LIBS="$X_LIBS -R $x_libraries"
25165         else
25166           echo "$as_me:$LINENO: result: neither works" >&5
25167 echo "${ECHO_T}neither works" >&6
25168         fi
25169       fi
25170       LIBS=$ac_xsave_LIBS
25171     esac
25172   fi
25173
25174   # Check for system-dependent libraries X programs must link with.
25175   # Do this before checking for the system-independent R6 libraries
25176   # (-lICE), since we may need -lsocket or whatever for X linking.
25177
25178   if test "$ISC" = yes; then
25179     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25180   else
25181     # Martyn Johnson says this is needed for Ultrix, if the X
25182     # libraries were built with DECnet support.  And Karl Berry says
25183     # the Alpha needs dnet_stub (dnet does not exist).
25184     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25185     cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191
25192 /* Override any gcc2 internal prototype to avoid an error.  */
25193 #ifdef __cplusplus
25194 extern "C"
25195 #endif
25196 /* We use char because int might match the return type of a gcc2
25197    builtin and then its argument prototype would still apply.  */
25198 char XOpenDisplay ();
25199 int
25200 main ()
25201 {
25202 XOpenDisplay ();
25203   ;
25204   return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209   (eval $ac_link) 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } &&
25216          { ac_try='test -z "$ac_c_werror_flag"
25217                          || test ! -s conftest.err'
25218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219   (eval $ac_try) 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }; } &&
25223          { ac_try='test -s conftest$ac_exeext'
25224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225   (eval $ac_try) 2>&5
25226   ac_status=$?
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); }; }; then
25229   :
25230 else
25231   echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25233
25234 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25235 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25236 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25237   echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239   ac_check_lib_save_LIBS=$LIBS
25240 LIBS="-ldnet  $LIBS"
25241 cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h.  */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h.  */
25247
25248 /* Override any gcc2 internal prototype to avoid an error.  */
25249 #ifdef __cplusplus
25250 extern "C"
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253    builtin and then its argument prototype would still apply.  */
25254 char dnet_ntoa ();
25255 int
25256 main ()
25257 {
25258 dnet_ntoa ();
25259   ;
25260   return 0;
25261 }
25262 _ACEOF
25263 rm -f conftest.$ac_objext conftest$ac_exeext
25264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265   (eval $ac_link) 2>conftest.er1
25266   ac_status=$?
25267   grep -v '^ *+' conftest.er1 >conftest.err
25268   rm -f conftest.er1
25269   cat conftest.err >&5
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); } &&
25272          { ac_try='test -z "$ac_c_werror_flag"
25273                          || test ! -s conftest.err'
25274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275   (eval $ac_try) 2>&5
25276   ac_status=$?
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); }; } &&
25279          { ac_try='test -s conftest$ac_exeext'
25280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); }; }; then
25285   ac_cv_lib_dnet_dnet_ntoa=yes
25286 else
25287   echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290 ac_cv_lib_dnet_dnet_ntoa=no
25291 fi
25292 rm -f conftest.err conftest.$ac_objext \
25293       conftest$ac_exeext conftest.$ac_ext
25294 LIBS=$ac_check_lib_save_LIBS
25295 fi
25296 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25297 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25298 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25299   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25300 fi
25301
25302     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25303       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25304 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25305 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25306   echo $ECHO_N "(cached) $ECHO_C" >&6
25307 else
25308   ac_check_lib_save_LIBS=$LIBS
25309 LIBS="-ldnet_stub  $LIBS"
25310 cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h.  */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h.  */
25316
25317 /* Override any gcc2 internal prototype to avoid an error.  */
25318 #ifdef __cplusplus
25319 extern "C"
25320 #endif
25321 /* We use char because int might match the return type of a gcc2
25322    builtin and then its argument prototype would still apply.  */
25323 char dnet_ntoa ();
25324 int
25325 main ()
25326 {
25327 dnet_ntoa ();
25328   ;
25329   return 0;
25330 }
25331 _ACEOF
25332 rm -f conftest.$ac_objext conftest$ac_exeext
25333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25334   (eval $ac_link) 2>conftest.er1
25335   ac_status=$?
25336   grep -v '^ *+' conftest.er1 >conftest.err
25337   rm -f conftest.er1
25338   cat conftest.err >&5
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } &&
25341          { ac_try='test -z "$ac_c_werror_flag"
25342                          || test ! -s conftest.err'
25343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344   (eval $ac_try) 2>&5
25345   ac_status=$?
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); }; } &&
25348          { ac_try='test -s conftest$ac_exeext'
25349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350   (eval $ac_try) 2>&5
25351   ac_status=$?
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); }; }; then
25354   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25355 else
25356   echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25358
25359 ac_cv_lib_dnet_stub_dnet_ntoa=no
25360 fi
25361 rm -f conftest.err conftest.$ac_objext \
25362       conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25364 fi
25365 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25366 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25367 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25368   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25369 fi
25370
25371     fi
25372 fi
25373 rm -f conftest.err conftest.$ac_objext \
25374       conftest$ac_exeext conftest.$ac_ext
25375     LIBS="$ac_xsave_LIBS"
25376
25377     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25378     # to get the SysV transport functions.
25379     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25380     # needs -lnsl.
25381     # The nsl library prevents programs from opening the X display
25382     # on Irix 5.2, according to T.E. Dickey.
25383     # The functions gethostbyname, getservbyname, and inet_addr are
25384     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25385     echo "$as_me:$LINENO: checking for gethostbyname" >&5
25386 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25387 if test "${ac_cv_func_gethostbyname+set}" = set; then
25388   echo $ECHO_N "(cached) $ECHO_C" >&6
25389 else
25390   cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25398 #define gethostbyname innocuous_gethostbyname
25399
25400 /* System header to define __stub macros and hopefully few prototypes,
25401     which can conflict with char gethostbyname (); below.
25402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25403     <limits.h> exists even on freestanding compilers.  */
25404
25405 #ifdef __STDC__
25406 # include <limits.h>
25407 #else
25408 # include <assert.h>
25409 #endif
25410
25411 #undef gethostbyname
25412
25413 /* Override any gcc2 internal prototype to avoid an error.  */
25414 #ifdef __cplusplus
25415 extern "C"
25416 {
25417 #endif
25418 /* We use char because int might match the return type of a gcc2
25419    builtin and then its argument prototype would still apply.  */
25420 char gethostbyname ();
25421 /* The GNU C library defines this for functions which it implements
25422     to always fail with ENOSYS.  Some functions are actually named
25423     something starting with __ and the normal name is an alias.  */
25424 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25425 choke me
25426 #else
25427 char (*f) () = gethostbyname;
25428 #endif
25429 #ifdef __cplusplus
25430 }
25431 #endif
25432
25433 int
25434 main ()
25435 {
25436 return f != gethostbyname;
25437   ;
25438   return 0;
25439 }
25440 _ACEOF
25441 rm -f conftest.$ac_objext conftest$ac_exeext
25442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25443   (eval $ac_link) 2>conftest.er1
25444   ac_status=$?
25445   grep -v '^ *+' conftest.er1 >conftest.err
25446   rm -f conftest.er1
25447   cat conftest.err >&5
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); } &&
25450          { ac_try='test -z "$ac_c_werror_flag"
25451                          || test ! -s conftest.err'
25452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453   (eval $ac_try) 2>&5
25454   ac_status=$?
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); }; } &&
25457          { ac_try='test -s conftest$ac_exeext'
25458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459   (eval $ac_try) 2>&5
25460   ac_status=$?
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); }; }; then
25463   ac_cv_func_gethostbyname=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468 ac_cv_func_gethostbyname=no
25469 fi
25470 rm -f conftest.err conftest.$ac_objext \
25471       conftest$ac_exeext conftest.$ac_ext
25472 fi
25473 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25474 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25475
25476     if test $ac_cv_func_gethostbyname = no; then
25477       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25478 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25479 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25480   echo $ECHO_N "(cached) $ECHO_C" >&6
25481 else
25482   ac_check_lib_save_LIBS=$LIBS
25483 LIBS="-lnsl  $LIBS"
25484 cat >conftest.$ac_ext <<_ACEOF
25485 /* confdefs.h.  */
25486 _ACEOF
25487 cat confdefs.h >>conftest.$ac_ext
25488 cat >>conftest.$ac_ext <<_ACEOF
25489 /* end confdefs.h.  */
25490
25491 /* Override any gcc2 internal prototype to avoid an error.  */
25492 #ifdef __cplusplus
25493 extern "C"
25494 #endif
25495 /* We use char because int might match the return type of a gcc2
25496    builtin and then its argument prototype would still apply.  */
25497 char gethostbyname ();
25498 int
25499 main ()
25500 {
25501 gethostbyname ();
25502   ;
25503   return 0;
25504 }
25505 _ACEOF
25506 rm -f conftest.$ac_objext conftest$ac_exeext
25507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25508   (eval $ac_link) 2>conftest.er1
25509   ac_status=$?
25510   grep -v '^ *+' conftest.er1 >conftest.err
25511   rm -f conftest.er1
25512   cat conftest.err >&5
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); } &&
25515          { ac_try='test -z "$ac_c_werror_flag"
25516                          || test ! -s conftest.err'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; } &&
25522          { ac_try='test -s conftest$ac_exeext'
25523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524   (eval $ac_try) 2>&5
25525   ac_status=$?
25526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527   (exit $ac_status); }; }; then
25528   ac_cv_lib_nsl_gethostbyname=yes
25529 else
25530   echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533 ac_cv_lib_nsl_gethostbyname=no
25534 fi
25535 rm -f conftest.err conftest.$ac_objext \
25536       conftest$ac_exeext conftest.$ac_ext
25537 LIBS=$ac_check_lib_save_LIBS
25538 fi
25539 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25540 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25541 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25542   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25543 fi
25544
25545       if test $ac_cv_lib_nsl_gethostbyname = no; then
25546         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25547 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25548 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25549   echo $ECHO_N "(cached) $ECHO_C" >&6
25550 else
25551   ac_check_lib_save_LIBS=$LIBS
25552 LIBS="-lbsd  $LIBS"
25553 cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h.  */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h.  */
25559
25560 /* Override any gcc2 internal prototype to avoid an error.  */
25561 #ifdef __cplusplus
25562 extern "C"
25563 #endif
25564 /* We use char because int might match the return type of a gcc2
25565    builtin and then its argument prototype would still apply.  */
25566 char gethostbyname ();
25567 int
25568 main ()
25569 {
25570 gethostbyname ();
25571   ;
25572   return 0;
25573 }
25574 _ACEOF
25575 rm -f conftest.$ac_objext conftest$ac_exeext
25576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25577   (eval $ac_link) 2>conftest.er1
25578   ac_status=$?
25579   grep -v '^ *+' conftest.er1 >conftest.err
25580   rm -f conftest.er1
25581   cat conftest.err >&5
25582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); } &&
25584          { ac_try='test -z "$ac_c_werror_flag"
25585                          || test ! -s conftest.err'
25586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587   (eval $ac_try) 2>&5
25588   ac_status=$?
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); }; } &&
25591          { ac_try='test -s conftest$ac_exeext'
25592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593   (eval $ac_try) 2>&5
25594   ac_status=$?
25595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596   (exit $ac_status); }; }; then
25597   ac_cv_lib_bsd_gethostbyname=yes
25598 else
25599   echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25601
25602 ac_cv_lib_bsd_gethostbyname=no
25603 fi
25604 rm -f conftest.err conftest.$ac_objext \
25605       conftest$ac_exeext conftest.$ac_ext
25606 LIBS=$ac_check_lib_save_LIBS
25607 fi
25608 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25609 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25610 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25611   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25612 fi
25613
25614       fi
25615     fi
25616
25617     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25618     # socket/setsockopt and other routines are undefined under SCO ODT
25619     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25620     # on later versions), says Simon Leinen: it contains gethostby*
25621     # variants that don't use the name server (or something).  -lsocket
25622     # must be given before -lnsl if both are needed.  We assume that
25623     # if connect needs -lnsl, so does gethostbyname.
25624     echo "$as_me:$LINENO: checking for connect" >&5
25625 echo $ECHO_N "checking for connect... $ECHO_C" >&6
25626 if test "${ac_cv_func_connect+set}" = set; then
25627   echo $ECHO_N "(cached) $ECHO_C" >&6
25628 else
25629   cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h.  */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h.  */
25635 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25637 #define connect innocuous_connect
25638
25639 /* System header to define __stub macros and hopefully few prototypes,
25640     which can conflict with char connect (); below.
25641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25642     <limits.h> exists even on freestanding compilers.  */
25643
25644 #ifdef __STDC__
25645 # include <limits.h>
25646 #else
25647 # include <assert.h>
25648 #endif
25649
25650 #undef connect
25651
25652 /* Override any gcc2 internal prototype to avoid an error.  */
25653 #ifdef __cplusplus
25654 extern "C"
25655 {
25656 #endif
25657 /* We use char because int might match the return type of a gcc2
25658    builtin and then its argument prototype would still apply.  */
25659 char connect ();
25660 /* The GNU C library defines this for functions which it implements
25661     to always fail with ENOSYS.  Some functions are actually named
25662     something starting with __ and the normal name is an alias.  */
25663 #if defined (__stub_connect) || defined (__stub___connect)
25664 choke me
25665 #else
25666 char (*f) () = connect;
25667 #endif
25668 #ifdef __cplusplus
25669 }
25670 #endif
25671
25672 int
25673 main ()
25674 {
25675 return f != connect;
25676   ;
25677   return 0;
25678 }
25679 _ACEOF
25680 rm -f conftest.$ac_objext conftest$ac_exeext
25681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25682   (eval $ac_link) 2>conftest.er1
25683   ac_status=$?
25684   grep -v '^ *+' conftest.er1 >conftest.err
25685   rm -f conftest.er1
25686   cat conftest.err >&5
25687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688   (exit $ac_status); } &&
25689          { ac_try='test -z "$ac_c_werror_flag"
25690                          || test ! -s conftest.err'
25691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692   (eval $ac_try) 2>&5
25693   ac_status=$?
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); }; } &&
25696          { ac_try='test -s conftest$ac_exeext'
25697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698   (eval $ac_try) 2>&5
25699   ac_status=$?
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); }; }; then
25702   ac_cv_func_connect=yes
25703 else
25704   echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25706
25707 ac_cv_func_connect=no
25708 fi
25709 rm -f conftest.err conftest.$ac_objext \
25710       conftest$ac_exeext conftest.$ac_ext
25711 fi
25712 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25713 echo "${ECHO_T}$ac_cv_func_connect" >&6
25714
25715     if test $ac_cv_func_connect = no; then
25716       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25717 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25718 if test "${ac_cv_lib_socket_connect+set}" = set; then
25719   echo $ECHO_N "(cached) $ECHO_C" >&6
25720 else
25721   ac_check_lib_save_LIBS=$LIBS
25722 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h.  */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h.  */
25729
25730 /* Override any gcc2 internal prototype to avoid an error.  */
25731 #ifdef __cplusplus
25732 extern "C"
25733 #endif
25734 /* We use char because int might match the return type of a gcc2
25735    builtin and then its argument prototype would still apply.  */
25736 char connect ();
25737 int
25738 main ()
25739 {
25740 connect ();
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext conftest$ac_exeext
25746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25747   (eval $ac_link) 2>conftest.er1
25748   ac_status=$?
25749   grep -v '^ *+' conftest.er1 >conftest.err
25750   rm -f conftest.er1
25751   cat conftest.err >&5
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); } &&
25754          { ac_try='test -z "$ac_c_werror_flag"
25755                          || test ! -s conftest.err'
25756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757   (eval $ac_try) 2>&5
25758   ac_status=$?
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); }; } &&
25761          { ac_try='test -s conftest$ac_exeext'
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   ac_cv_lib_socket_connect=yes
25768 else
25769   echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25771
25772 ac_cv_lib_socket_connect=no
25773 fi
25774 rm -f conftest.err conftest.$ac_objext \
25775       conftest$ac_exeext conftest.$ac_ext
25776 LIBS=$ac_check_lib_save_LIBS
25777 fi
25778 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25779 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25780 if test $ac_cv_lib_socket_connect = yes; then
25781   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25782 fi
25783
25784     fi
25785
25786     # Guillermo Gomez says -lposix is necessary on A/UX.
25787     echo "$as_me:$LINENO: checking for remove" >&5
25788 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25789 if test "${ac_cv_func_remove+set}" = set; then
25790   echo $ECHO_N "(cached) $ECHO_C" >&6
25791 else
25792   cat >conftest.$ac_ext <<_ACEOF
25793 /* confdefs.h.  */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h.  */
25798 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25800 #define remove innocuous_remove
25801
25802 /* System header to define __stub macros and hopefully few prototypes,
25803     which can conflict with char remove (); below.
25804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25805     <limits.h> exists even on freestanding compilers.  */
25806
25807 #ifdef __STDC__
25808 # include <limits.h>
25809 #else
25810 # include <assert.h>
25811 #endif
25812
25813 #undef remove
25814
25815 /* Override any gcc2 internal prototype to avoid an error.  */
25816 #ifdef __cplusplus
25817 extern "C"
25818 {
25819 #endif
25820 /* We use char because int might match the return type of a gcc2
25821    builtin and then its argument prototype would still apply.  */
25822 char remove ();
25823 /* The GNU C library defines this for functions which it implements
25824     to always fail with ENOSYS.  Some functions are actually named
25825     something starting with __ and the normal name is an alias.  */
25826 #if defined (__stub_remove) || defined (__stub___remove)
25827 choke me
25828 #else
25829 char (*f) () = remove;
25830 #endif
25831 #ifdef __cplusplus
25832 }
25833 #endif
25834
25835 int
25836 main ()
25837 {
25838 return f != remove;
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25845   (eval $ac_link) 2>conftest.er1
25846   ac_status=$?
25847   grep -v '^ *+' conftest.er1 >conftest.err
25848   rm -f conftest.er1
25849   cat conftest.err >&5
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); } &&
25852          { ac_try='test -z "$ac_c_werror_flag"
25853                          || test ! -s conftest.err'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; } &&
25859          { ac_try='test -s conftest$ac_exeext'
25860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861   (eval $ac_try) 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; }; then
25865   ac_cv_func_remove=yes
25866 else
25867   echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25869
25870 ac_cv_func_remove=no
25871 fi
25872 rm -f conftest.err conftest.$ac_objext \
25873       conftest$ac_exeext conftest.$ac_ext
25874 fi
25875 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25876 echo "${ECHO_T}$ac_cv_func_remove" >&6
25877
25878     if test $ac_cv_func_remove = no; then
25879       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25880 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25881 if test "${ac_cv_lib_posix_remove+set}" = set; then
25882   echo $ECHO_N "(cached) $ECHO_C" >&6
25883 else
25884   ac_check_lib_save_LIBS=$LIBS
25885 LIBS="-lposix  $LIBS"
25886 cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892
25893 /* Override any gcc2 internal prototype to avoid an error.  */
25894 #ifdef __cplusplus
25895 extern "C"
25896 #endif
25897 /* We use char because int might match the return type of a gcc2
25898    builtin and then its argument prototype would still apply.  */
25899 char remove ();
25900 int
25901 main ()
25902 {
25903 remove ();
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25910   (eval $ac_link) 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } &&
25917          { ac_try='test -z "$ac_c_werror_flag"
25918                          || test ! -s conftest.err'
25919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920   (eval $ac_try) 2>&5
25921   ac_status=$?
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); }; } &&
25924          { ac_try='test -s conftest$ac_exeext'
25925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926   (eval $ac_try) 2>&5
25927   ac_status=$?
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); }; }; then
25930   ac_cv_lib_posix_remove=yes
25931 else
25932   echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25934
25935 ac_cv_lib_posix_remove=no
25936 fi
25937 rm -f conftest.err conftest.$ac_objext \
25938       conftest$ac_exeext conftest.$ac_ext
25939 LIBS=$ac_check_lib_save_LIBS
25940 fi
25941 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25942 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25943 if test $ac_cv_lib_posix_remove = yes; then
25944   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25945 fi
25946
25947     fi
25948
25949     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25950     echo "$as_me:$LINENO: checking for shmat" >&5
25951 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25952 if test "${ac_cv_func_shmat+set}" = set; then
25953   echo $ECHO_N "(cached) $ECHO_C" >&6
25954 else
25955   cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h.  */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h.  */
25961 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25963 #define shmat innocuous_shmat
25964
25965 /* System header to define __stub macros and hopefully few prototypes,
25966     which can conflict with char shmat (); below.
25967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25968     <limits.h> exists even on freestanding compilers.  */
25969
25970 #ifdef __STDC__
25971 # include <limits.h>
25972 #else
25973 # include <assert.h>
25974 #endif
25975
25976 #undef shmat
25977
25978 /* Override any gcc2 internal prototype to avoid an error.  */
25979 #ifdef __cplusplus
25980 extern "C"
25981 {
25982 #endif
25983 /* We use char because int might match the return type of a gcc2
25984    builtin and then its argument prototype would still apply.  */
25985 char shmat ();
25986 /* The GNU C library defines this for functions which it implements
25987     to always fail with ENOSYS.  Some functions are actually named
25988     something starting with __ and the normal name is an alias.  */
25989 #if defined (__stub_shmat) || defined (__stub___shmat)
25990 choke me
25991 #else
25992 char (*f) () = shmat;
25993 #endif
25994 #ifdef __cplusplus
25995 }
25996 #endif
25997
25998 int
25999 main ()
26000 {
26001 return f != shmat;
26002   ;
26003   return 0;
26004 }
26005 _ACEOF
26006 rm -f conftest.$ac_objext conftest$ac_exeext
26007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26008   (eval $ac_link) 2>conftest.er1
26009   ac_status=$?
26010   grep -v '^ *+' conftest.er1 >conftest.err
26011   rm -f conftest.er1
26012   cat conftest.err >&5
26013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); } &&
26015          { ac_try='test -z "$ac_c_werror_flag"
26016                          || test ! -s conftest.err'
26017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018   (eval $ac_try) 2>&5
26019   ac_status=$?
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); }; } &&
26022          { ac_try='test -s conftest$ac_exeext'
26023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024   (eval $ac_try) 2>&5
26025   ac_status=$?
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); }; }; then
26028   ac_cv_func_shmat=yes
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033 ac_cv_func_shmat=no
26034 fi
26035 rm -f conftest.err conftest.$ac_objext \
26036       conftest$ac_exeext conftest.$ac_ext
26037 fi
26038 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26039 echo "${ECHO_T}$ac_cv_func_shmat" >&6
26040
26041     if test $ac_cv_func_shmat = no; then
26042       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26043 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26044 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26045   echo $ECHO_N "(cached) $ECHO_C" >&6
26046 else
26047   ac_check_lib_save_LIBS=$LIBS
26048 LIBS="-lipc  $LIBS"
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h.  */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h.  */
26055
26056 /* Override any gcc2 internal prototype to avoid an error.  */
26057 #ifdef __cplusplus
26058 extern "C"
26059 #endif
26060 /* We use char because int might match the return type of a gcc2
26061    builtin and then its argument prototype would still apply.  */
26062 char shmat ();
26063 int
26064 main ()
26065 {
26066 shmat ();
26067   ;
26068   return 0;
26069 }
26070 _ACEOF
26071 rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26073   (eval $ac_link) 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } &&
26080          { ac_try='test -z "$ac_c_werror_flag"
26081                          || test ! -s conftest.err'
26082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083   (eval $ac_try) 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; } &&
26087          { ac_try='test -s conftest$ac_exeext'
26088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089   (eval $ac_try) 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); }; }; then
26093   ac_cv_lib_ipc_shmat=yes
26094 else
26095   echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098 ac_cv_lib_ipc_shmat=no
26099 fi
26100 rm -f conftest.err conftest.$ac_objext \
26101       conftest$ac_exeext conftest.$ac_ext
26102 LIBS=$ac_check_lib_save_LIBS
26103 fi
26104 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26105 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26106 if test $ac_cv_lib_ipc_shmat = yes; then
26107   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26108 fi
26109
26110     fi
26111   fi
26112
26113   # Check for libraries that X11R6 Xt/Xaw programs need.
26114   ac_save_LDFLAGS=$LDFLAGS
26115   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26116   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26117   # check for ICE first), but we must link in the order -lSM -lICE or
26118   # we get undefined symbols.  So assume we have SM if we have ICE.
26119   # These have to be linked with before -lX11, unlike the other
26120   # libraries we check for below, so use a different variable.
26121   # John Interrante, Karl Berry
26122   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26123 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26124 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26125   echo $ECHO_N "(cached) $ECHO_C" >&6
26126 else
26127   ac_check_lib_save_LIBS=$LIBS
26128 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26129 cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135
26136 /* Override any gcc2 internal prototype to avoid an error.  */
26137 #ifdef __cplusplus
26138 extern "C"
26139 #endif
26140 /* We use char because int might match the return type of a gcc2
26141    builtin and then its argument prototype would still apply.  */
26142 char IceConnectionNumber ();
26143 int
26144 main ()
26145 {
26146 IceConnectionNumber ();
26147   ;
26148   return 0;
26149 }
26150 _ACEOF
26151 rm -f conftest.$ac_objext conftest$ac_exeext
26152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26153   (eval $ac_link) 2>conftest.er1
26154   ac_status=$?
26155   grep -v '^ *+' conftest.er1 >conftest.err
26156   rm -f conftest.er1
26157   cat conftest.err >&5
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); } &&
26160          { ac_try='test -z "$ac_c_werror_flag"
26161                          || test ! -s conftest.err'
26162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163   (eval $ac_try) 2>&5
26164   ac_status=$?
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); }; } &&
26167          { ac_try='test -s conftest$ac_exeext'
26168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169   (eval $ac_try) 2>&5
26170   ac_status=$?
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); }; }; then
26173   ac_cv_lib_ICE_IceConnectionNumber=yes
26174 else
26175   echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178 ac_cv_lib_ICE_IceConnectionNumber=no
26179 fi
26180 rm -f conftest.err conftest.$ac_objext \
26181       conftest$ac_exeext conftest.$ac_ext
26182 LIBS=$ac_check_lib_save_LIBS
26183 fi
26184 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26185 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26186 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26187   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26188 fi
26189
26190   LDFLAGS=$ac_save_LDFLAGS
26191
26192 fi
26193
26194
26195         if test "$no_x" = "yes"; then
26196           { { echo "$as_me:$LINENO: error: X11 not found" >&5
26197 echo "$as_me: error: X11 not found" >&2;}
26198    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26199         fi
26200
26201                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26202         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26203         AFMINSTALL=afminstall
26204         COMPILED_X_PROGRAM=0
26205
26206         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26207 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26208
26209 ac_find_includes=
26210 for ac_dir in $SEARCH_INCLUDE /usr/include;
26211   do
26212     if test -f "$ac_dir/Xm/Xm.h"; then
26213       ac_find_includes=$ac_dir
26214       break
26215     fi
26216   done
26217
26218         if test "$ac_find_includes" != "" ; then
26219             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26220 echo "${ECHO_T}found in $ac_find_includes" >&6
26221
26222     if test "x$ac_find_includes" = "x/usr/include"; then
26223     ac_path_to_include=""
26224   else
26225     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26226     result=$?
26227     if test $result = 0; then
26228       ac_path_to_include=""
26229     else
26230       ac_path_to_include=" -I$ac_find_includes"
26231     fi
26232   fi
26233
26234             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26235         else
26236             cat >conftest.$ac_ext <<_ACEOF
26237 /* confdefs.h.  */
26238 _ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h.  */
26242
26243                     #include <Xm/Xm.h>
26244
26245 int
26246 main ()
26247 {
26248
26249                     int version;
26250                     version = xmUseVersion;
26251
26252   ;
26253   return 0;
26254 }
26255 _ACEOF
26256 rm -f conftest.$ac_objext
26257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26258   (eval $ac_compile) 2>conftest.er1
26259   ac_status=$?
26260   grep -v '^ *+' conftest.er1 >conftest.err
26261   rm -f conftest.er1
26262   cat conftest.err >&5
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); } &&
26265          { ac_try='test -z "$ac_c_werror_flag"
26266                          || test ! -s conftest.err'
26267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268   (eval $ac_try) 2>&5
26269   ac_status=$?
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); }; } &&
26272          { ac_try='test -s conftest.$ac_objext'
26273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274   (eval $ac_try) 2>&5
26275   ac_status=$?
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); }; }; then
26278
26279                     echo "$as_me:$LINENO: result: found in default search path" >&5
26280 echo "${ECHO_T}found in default search path" >&6
26281                     COMPILED_X_PROGRAM=1
26282
26283 else
26284   echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26286
26287
26288                     echo "$as_me:$LINENO: result: no" >&5
26289 echo "${ECHO_T}no" >&6
26290                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26291 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26292    { (exit 1); exit 1; }; }
26293
26294
26295 fi
26296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26297         fi
26298
26299         if test "$COMPILED_X_PROGRAM" = 0; then
26300             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26301 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26302
26303 ac_find_libraries=
26304 for ac_dir in $SEARCH_LIB /usr/lib;
26305   do
26306     for ac_extension in a so sl dylib; do
26307       if test -f "$ac_dir/libXm.$ac_extension"; then
26308         ac_find_libraries=$ac_dir
26309         break 2
26310       fi
26311     done
26312   done
26313
26314             if test "$ac_find_libraries" != "" ; then
26315                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26316 echo "${ECHO_T}found at $ac_find_libraries" >&6
26317
26318
26319   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26320   result=$?
26321   if test $result = 0; then
26322     ac_path_to_link=""
26323   else
26324     ac_path_to_link=" -L$ac_find_libraries"
26325   fi
26326
26327                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26328             else
26329                                                                 save_CFLAGS=$CFLAGS
26330                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26331
26332                 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26338
26339                         #include <Xm/Xm.h>
26340
26341 int
26342 main ()
26343 {
26344
26345                         int version;
26346                         version = xmUseVersion;
26347
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext
26353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26354   (eval $ac_compile) 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } &&
26361          { ac_try='test -z "$ac_c_werror_flag"
26362                          || test ! -s conftest.err'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; } &&
26368          { ac_try='test -s conftest.$ac_objext'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; }; then
26374
26375                         echo "$as_me:$LINENO: result: found in default search path" >&5
26376 echo "${ECHO_T}found in default search path" >&6
26377                         COMPILED_X_PROGRAM=1
26378
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383
26384                         echo "$as_me:$LINENO: result: no" >&5
26385 echo "${ECHO_T}no" >&6
26386                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26387 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26388    { (exit 1); exit 1; }; }
26389
26390
26391 fi
26392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26393
26394                 CFLAGS=$save_CFLAGS
26395             fi
26396         fi
26397
26398         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26399 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26400         libp_link=""
26401         libsm_ice_link=""
26402         libs_found=0
26403         for libp in "" " -lXp"; do
26404             if test "$libs_found" = "0"; then
26405                 for libsm_ice in "" " -lSM -lICE"; do
26406                     if test "$libs_found" = "0"; then
26407                         save_LIBS="$LIBS"
26408                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26409                         save_CFLAGS=$CFLAGS
26410                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26411
26412                         cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418
26419                                 #include <Xm/Xm.h>
26420                                 #include <Xm/List.h>
26421
26422 int
26423 main ()
26424 {
26425
26426                                 XmString string = NULL;
26427                                 Widget w = NULL;
26428                                 int position = 0;
26429                                 XmListAddItem(w, string, position);
26430
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext conftest$ac_exeext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26437   (eval $ac_link) 2>conftest.er1
26438   ac_status=$?
26439   grep -v '^ *+' conftest.er1 >conftest.err
26440   rm -f conftest.er1
26441   cat conftest.err >&5
26442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443   (exit $ac_status); } &&
26444          { ac_try='test -z "$ac_c_werror_flag"
26445                          || test ! -s conftest.err'
26446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447   (eval $ac_try) 2>&5
26448   ac_status=$?
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); }; } &&
26451          { ac_try='test -s conftest$ac_exeext'
26452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453   (eval $ac_try) 2>&5
26454   ac_status=$?
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); }; }; then
26457
26458                                 libp_link="$libp"
26459                                 libsm_ice_link="$libsm_ice"
26460                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26461 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26462                                 libs_found=1
26463
26464 else
26465   echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26467
26468
26469
26470 fi
26471 rm -f conftest.err conftest.$ac_objext \
26472       conftest$ac_exeext conftest.$ac_ext
26473
26474                         LIBS="$save_LIBS"
26475                         CFLAGS=$save_CFLAGS
26476                     fi
26477                 done
26478             fi
26479         done
26480
26481         if test "$libs_found" = "0"; then
26482             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26483 echo "${ECHO_T}can't find the right libraries" >&6
26484             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26485 echo "$as_me: error: can't link a simple motif program" >&2;}
26486    { (exit 1); exit 1; }; }
26487         fi
26488
26489         save_CFLAGS=$CFLAGS
26490         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26491         echo "$as_me:$LINENO: checking for Motif 2" >&5
26492 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26493         cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499
26500                         #include <Xm/Xm.h>
26501
26502 int
26503 main ()
26504 {
26505
26506                         #if XmVersion < 2000
26507                         #error "Not Motif 2"
26508                         #endif
26509
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 rm -f conftest.$ac_objext
26515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26516   (eval $ac_compile) 2>conftest.er1
26517   ac_status=$?
26518   grep -v '^ *+' conftest.er1 >conftest.err
26519   rm -f conftest.er1
26520   cat conftest.err >&5
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); } &&
26523          { ac_try='test -z "$ac_c_werror_flag"
26524                          || test ! -s conftest.err'
26525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526   (eval $ac_try) 2>&5
26527   ac_status=$?
26528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529   (exit $ac_status); }; } &&
26530          { ac_try='test -s conftest.$ac_objext'
26531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532   (eval $ac_try) 2>&5
26533   ac_status=$?
26534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535   (exit $ac_status); }; }; then
26536
26537                         cat >>confdefs.h <<\_ACEOF
26538 #define __WXMOTIF20__ 1
26539 _ACEOF
26540
26541                         echo "$as_me:$LINENO: result: found" >&5
26542 echo "${ECHO_T}found" >&6
26543
26544 else
26545   echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26547
26548
26549                         cat >>confdefs.h <<\_ACEOF
26550 #define __WXMOTIF20__ 0
26551 _ACEOF
26552
26553                         echo "$as_me:$LINENO: result: not found" >&5
26554 echo "${ECHO_T}not found" >&6
26555
26556 fi
26557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26558         CFLAGS=$save_CFLAGS
26559
26560         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26561         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26562         TOOLKIT=MOTIF
26563         GUIDIST=MOTIF_DIST
26564     fi
26565
26566     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26567                 if test "$wxUSE_LIBXPM" = "sys"; then
26568             echo "$as_me:$LINENO: checking for Xpm library" >&5
26569 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26570
26571 ac_find_libraries=
26572 for ac_dir in $SEARCH_LIB /usr/lib;
26573   do
26574     for ac_extension in a so sl dylib; do
26575       if test -f "$ac_dir/libXpm.$ac_extension"; then
26576         ac_find_libraries=$ac_dir
26577         break 2
26578       fi
26579     done
26580   done
26581
26582             if test "$ac_find_libraries" != "" ; then
26583
26584   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26585   result=$?
26586   if test $result = 0; then
26587     ac_path_to_link=""
26588   else
26589     ac_path_to_link=" -L$ac_find_libraries"
26590   fi
26591
26592                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26593                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26594 echo "${ECHO_T}found at $ac_find_libraries" >&6
26595
26596                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26597 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26598 if test "${wx_cv_x11_xpm_h+set}" = set; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601
26602                         save_CFLAGS=$CFLAGS
26603                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26604
26605                         cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611
26612                                 #include <X11/xpm.h>
26613
26614 int
26615 main ()
26616 {
26617
26618                                 int version;
26619                                 version = XpmLibraryVersion();
26620
26621   ;
26622   return 0;
26623 }
26624 _ACEOF
26625 rm -f conftest.$ac_objext
26626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26627   (eval $ac_compile) 2>conftest.er1
26628   ac_status=$?
26629   grep -v '^ *+' conftest.er1 >conftest.err
26630   rm -f conftest.er1
26631   cat conftest.err >&5
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); } &&
26634          { ac_try='test -z "$ac_c_werror_flag"
26635                          || test ! -s conftest.err'
26636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637   (eval $ac_try) 2>&5
26638   ac_status=$?
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); }; } &&
26641          { ac_try='test -s conftest.$ac_objext'
26642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643   (eval $ac_try) 2>&5
26644   ac_status=$?
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); }; }; then
26647   wx_cv_x11_xpm_h=yes
26648 else
26649   echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26651
26652 wx_cv_x11_xpm_h=no
26653
26654 fi
26655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26656
26657                         CFLAGS=$save_CFLAGS
26658
26659
26660 fi
26661 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26662 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26663
26664                 if test $wx_cv_x11_xpm_h = "yes"; then
26665                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26666                     cat >>confdefs.h <<\_ACEOF
26667 #define wxHAVE_LIB_XPM 1
26668 _ACEOF
26669
26670                 else
26671                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26672 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26673                 fi
26674             fi
26675
26676         fi
26677
26678                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26679 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26680 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26681   echo $ECHO_N "(cached) $ECHO_C" >&6
26682 else
26683   ac_check_lib_save_LIBS=$LIBS
26684 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26685 cat >conftest.$ac_ext <<_ACEOF
26686 /* confdefs.h.  */
26687 _ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h.  */
26691
26692 /* Override any gcc2 internal prototype to avoid an error.  */
26693 #ifdef __cplusplus
26694 extern "C"
26695 #endif
26696 /* We use char because int might match the return type of a gcc2
26697    builtin and then its argument prototype would still apply.  */
26698 char XShapeQueryExtension ();
26699 int
26700 main ()
26701 {
26702 XShapeQueryExtension ();
26703   ;
26704   return 0;
26705 }
26706 _ACEOF
26707 rm -f conftest.$ac_objext conftest$ac_exeext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26709   (eval $ac_link) 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } &&
26716          { ac_try='test -z "$ac_c_werror_flag"
26717                          || test ! -s conftest.err'
26718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719   (eval $ac_try) 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; } &&
26723          { ac_try='test -s conftest$ac_exeext'
26724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725   (eval $ac_try) 2>&5
26726   ac_status=$?
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); }; }; then
26729   ac_cv_lib_Xext_XShapeQueryExtension=yes
26730 else
26731   echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734 ac_cv_lib_Xext_XShapeQueryExtension=no
26735 fi
26736 rm -f conftest.err conftest.$ac_objext \
26737       conftest$ac_exeext conftest.$ac_ext
26738 LIBS=$ac_check_lib_save_LIBS
26739 fi
26740 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26741 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26742 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26743
26744                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26745                       wxHAVE_XEXT_LIB=1
26746
26747 fi
26748
26749
26750         if test "$wxHAVE_XEXT_LIB" = 1; then
26751             save_CFLAGS="$CFLAGS"
26752             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26753
26754             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26755 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26756             cat >conftest.$ac_ext <<_ACEOF
26757 /* confdefs.h.  */
26758 _ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h.  */
26762
26763                             #include <X11/Xlib.h>
26764                             #include <X11/extensions/shape.h>
26765
26766 int
26767 main ()
26768 {
26769
26770                             int dummy1, dummy2;
26771                             XShapeQueryExtension((Display*)NULL,
26772                                                  (int*)NULL, (int*)NULL);
26773
26774   ;
26775   return 0;
26776 }
26777 _ACEOF
26778 rm -f conftest.$ac_objext
26779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26780   (eval $ac_compile) 2>conftest.er1
26781   ac_status=$?
26782   grep -v '^ *+' conftest.er1 >conftest.err
26783   rm -f conftest.er1
26784   cat conftest.err >&5
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); } &&
26787          { ac_try='test -z "$ac_c_werror_flag"
26788                          || test ! -s conftest.err'
26789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790   (eval $ac_try) 2>&5
26791   ac_status=$?
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); }; } &&
26794          { ac_try='test -s conftest.$ac_objext'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; }; then
26800
26801                             cat >>confdefs.h <<\_ACEOF
26802 #define HAVE_XSHAPE 1
26803 _ACEOF
26804
26805                             echo "$as_me:$LINENO: result: found" >&5
26806 echo "${ECHO_T}found" >&6
26807
26808 else
26809   echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26811
26812
26813                             echo "$as_me:$LINENO: result: not found" >&5
26814 echo "${ECHO_T}not found" >&6
26815
26816 fi
26817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26818             CFLAGS="$save_CFLAGS"
26819
26820         fi
26821     fi
26822
26823     if test "$wxUSE_MAC" = 1; then
26824         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26825 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26826         if test "$GCC" = yes; then
26827             echo "$as_me:$LINENO: result: gcc" >&5
26828 echo "${ECHO_T}gcc" >&6
26829             CPPFLAGS_PASCAL="-fpascal-strings"
26830         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26831             echo "$as_me:$LINENO: result: xlc" >&5
26832 echo "${ECHO_T}xlc" >&6
26833             CPPFLAGS_PASCAL="-qmacpstr"
26834         else
26835             echo "$as_me:$LINENO: result: none" >&5
26836 echo "${ECHO_T}none" >&6
26837         fi
26838
26839         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
26840
26841         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
26842         TOOLKIT=MAC
26843                 GUIDIST=MACX_DIST
26844                         WXBASEPORT="_carbon"
26845     fi
26846
26847     if test "$wxUSE_COCOA" = 1; then
26848         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26849         TOOLKIT=COCOA
26850         GUIDIST=COCOA_DIST
26851     fi
26852
26853     if test "$wxUSE_PM" = 1; then
26854         TOOLKIT=PM
26855         GUIDIST=GTK_DIST
26856     fi
26857
26858         if test "$TOOLKIT" = "PM" ; then
26859         TOOLKIT_DIR="os2"
26860     else
26861         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26862     fi
26863
26864         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26865
26866     if test "$wxUSE_UNIVERSAL" = "yes"; then
26867         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26868
26869                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26870         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26871
26872         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26873         if test "$wxUSE_X11" = 1; then
26874             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26875         else
26876             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26877         fi
26878         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26879         WIDGET_SET=univ
26880     else
26881         ALL_OBJECTS="\$(GUIOBJS)"
26882         ALL_SOURCES="\$(ALL_SOURCES)"
26883         ALL_HEADERS="\$(ALL_HEADERS)"
26884     fi
26885
26886     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26887
26888     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26889         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26890     fi
26891
26892     if test "$wxUSE_HTML" = "yes"; then
26893         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26894     fi
26895
26896     if test "$wxUSE_LIBJPEG" = "builtin" ; then
26897         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26898     fi
26899     if test "$wxUSE_LIBTIFF" = "builtin" ; then
26900         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26901     fi
26902     if test "$wxUSE_LIBPNG" = "builtin" ; then
26903         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26904     fi
26905
26906         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26907     DISTDIR="wx\$(TOOLKIT)"
26908 else
26909     USE_GUI=0
26910
26911             TOOLKIT_DIR="base"
26912
26913         if test "$USE_WIN32" = 1 ; then
26914         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26915         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26916
26917                         TOOLKIT="MSW"
26918     else
26919         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26920         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26921     fi
26922
26923     ALL_SOURCES="\$(ALL_SOURCES)"
26924     ALL_HEADERS="\$(ALL_HEADERS)"
26925
26926     PORT_FILES="\${top_srcdir}/src/files.lst"
26927
26928         GUIDIST="BASE_DIST"
26929     DISTDIR="wxBase"
26930 fi
26931
26932
26933
26934
26935 IODBC_C_SRC=""
26936
26937
26938 if test "$TOOLKIT" != "MSW" ; then
26939
26940     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26941
26942         if test "${ac_cv_header_sql_h+set}" = set; then
26943   echo "$as_me:$LINENO: checking for sql.h" >&5
26944 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26945 if test "${ac_cv_header_sql_h+set}" = set; then
26946   echo $ECHO_N "(cached) $ECHO_C" >&6
26947 fi
26948 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26949 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26950 else
26951   # Is the header compilable?
26952 echo "$as_me:$LINENO: checking sql.h usability" >&5
26953 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26954 cat >conftest.$ac_ext <<_ACEOF
26955 /* confdefs.h.  */
26956 _ACEOF
26957 cat confdefs.h >>conftest.$ac_ext
26958 cat >>conftest.$ac_ext <<_ACEOF
26959 /* end confdefs.h.  */
26960 $ac_includes_default
26961 #include <sql.h>
26962 _ACEOF
26963 rm -f conftest.$ac_objext
26964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26965   (eval $ac_compile) 2>conftest.er1
26966   ac_status=$?
26967   grep -v '^ *+' conftest.er1 >conftest.err
26968   rm -f conftest.er1
26969   cat conftest.err >&5
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); } &&
26972          { ac_try='test -z "$ac_c_werror_flag"
26973                          || test ! -s conftest.err'
26974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975   (eval $ac_try) 2>&5
26976   ac_status=$?
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); }; } &&
26979          { ac_try='test -s conftest.$ac_objext'
26980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981   (eval $ac_try) 2>&5
26982   ac_status=$?
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); }; }; then
26985   ac_header_compiler=yes
26986 else
26987   echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990 ac_header_compiler=no
26991 fi
26992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26994 echo "${ECHO_T}$ac_header_compiler" >&6
26995
26996 # Is the header present?
26997 echo "$as_me:$LINENO: checking sql.h presence" >&5
26998 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26999 cat >conftest.$ac_ext <<_ACEOF
27000 /* confdefs.h.  */
27001 _ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h.  */
27005 #include <sql.h>
27006 _ACEOF
27007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } >/dev/null; then
27015   if test -s conftest.err; then
27016     ac_cpp_err=$ac_c_preproc_warn_flag
27017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27018   else
27019     ac_cpp_err=
27020   fi
27021 else
27022   ac_cpp_err=yes
27023 fi
27024 if test -z "$ac_cpp_err"; then
27025   ac_header_preproc=yes
27026 else
27027   echo "$as_me: failed program was:" >&5
27028 sed 's/^/| /' conftest.$ac_ext >&5
27029
27030   ac_header_preproc=no
27031 fi
27032 rm -f conftest.err conftest.$ac_ext
27033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27034 echo "${ECHO_T}$ac_header_preproc" >&6
27035
27036 # So?  What about this header?
27037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27038   yes:no: )
27039     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27040 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27041     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27042 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27043     ac_header_preproc=yes
27044     ;;
27045   no:yes:* )
27046     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27047 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
27048     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
27049 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
27050     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27051 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27052     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
27053 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27054     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27055 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
27056     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27057 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
27058     (
27059       cat <<\_ASBOX
27060 ## ----------------------------------------- ##
27061 ## Report this to wx-dev@lists.wxwindows.org ##
27062 ## ----------------------------------------- ##
27063 _ASBOX
27064     ) |
27065       sed "s/^/$as_me: WARNING:     /" >&2
27066     ;;
27067 esac
27068 echo "$as_me:$LINENO: checking for sql.h" >&5
27069 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27070 if test "${ac_cv_header_sql_h+set}" = set; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 else
27073   ac_cv_header_sql_h=$ac_header_preproc
27074 fi
27075 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27076 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27077
27078 fi
27079 if test $ac_cv_header_sql_h = yes; then
27080   found_sql_h=1
27081 fi
27082
27083
27084         if test "x$found_sql_h" = "x1" ; then
27085             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27086 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27087 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27088   echo $ECHO_N "(cached) $ECHO_C" >&6
27089 else
27090   ac_check_lib_save_LIBS=$LIBS
27091 LIBS="-liodbc  $LIBS"
27092 cat >conftest.$ac_ext <<_ACEOF
27093 /* confdefs.h.  */
27094 _ACEOF
27095 cat confdefs.h >>conftest.$ac_ext
27096 cat >>conftest.$ac_ext <<_ACEOF
27097 /* end confdefs.h.  */
27098
27099 /* Override any gcc2 internal prototype to avoid an error.  */
27100 #ifdef __cplusplus
27101 extern "C"
27102 #endif
27103 /* We use char because int might match the return type of a gcc2
27104    builtin and then its argument prototype would still apply.  */
27105 char SQLAllocEnv ();
27106 int
27107 main ()
27108 {
27109 SQLAllocEnv ();
27110   ;
27111   return 0;
27112 }
27113 _ACEOF
27114 rm -f conftest.$ac_objext conftest$ac_exeext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27116   (eval $ac_link) 2>conftest.er1
27117   ac_status=$?
27118   grep -v '^ *+' conftest.er1 >conftest.err
27119   rm -f conftest.er1
27120   cat conftest.err >&5
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); } &&
27123          { ac_try='test -z "$ac_c_werror_flag"
27124                          || test ! -s conftest.err'
27125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126   (eval $ac_try) 2>&5
27127   ac_status=$?
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; } &&
27130          { ac_try='test -s conftest$ac_exeext'
27131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132   (eval $ac_try) 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); }; }; then
27136   ac_cv_lib_iodbc_SQLAllocEnv=yes
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 ac_cv_lib_iodbc_SQLAllocEnv=no
27142 fi
27143 rm -f conftest.err conftest.$ac_objext \
27144       conftest$ac_exeext conftest.$ac_ext
27145 LIBS=$ac_check_lib_save_LIBS
27146 fi
27147 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27148 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27149 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27150   ODBC_LINK=" -liodbc"
27151 else
27152
27153                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27154 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27155 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27156   echo $ECHO_N "(cached) $ECHO_C" >&6
27157 else
27158   ac_check_lib_save_LIBS=$LIBS
27159 LIBS="-lunixodbc  $LIBS"
27160 cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166
27167 /* Override any gcc2 internal prototype to avoid an error.  */
27168 #ifdef __cplusplus
27169 extern "C"
27170 #endif
27171 /* We use char because int might match the return type of a gcc2
27172    builtin and then its argument prototype would still apply.  */
27173 char SQLAllocEnv ();
27174 int
27175 main ()
27176 {
27177 SQLAllocEnv ();
27178   ;
27179   return 0;
27180 }
27181 _ACEOF
27182 rm -f conftest.$ac_objext conftest$ac_exeext
27183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27184   (eval $ac_link) 2>conftest.er1
27185   ac_status=$?
27186   grep -v '^ *+' conftest.er1 >conftest.err
27187   rm -f conftest.er1
27188   cat conftest.err >&5
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); } &&
27191          { ac_try='test -z "$ac_c_werror_flag"
27192                          || test ! -s conftest.err'
27193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27194   (eval $ac_try) 2>&5
27195   ac_status=$?
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); }; } &&
27198          { ac_try='test -s conftest$ac_exeext'
27199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27200   (eval $ac_try) 2>&5
27201   ac_status=$?
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); }; }; then
27204   ac_cv_lib_unixodbc_SQLAllocEnv=yes
27205 else
27206   echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209 ac_cv_lib_unixodbc_SQLAllocEnv=no
27210 fi
27211 rm -f conftest.err conftest.$ac_objext \
27212       conftest$ac_exeext conftest.$ac_ext
27213 LIBS=$ac_check_lib_save_LIBS
27214 fi
27215 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27216 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27217 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27218   ODBC_LINK=" -lunixodbc"
27219 else
27220
27221                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27222 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27223 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27224   echo $ECHO_N "(cached) $ECHO_C" >&6
27225 else
27226   ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lodbc  $LIBS"
27228 cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h.  */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h.  */
27234
27235 /* Override any gcc2 internal prototype to avoid an error.  */
27236 #ifdef __cplusplus
27237 extern "C"
27238 #endif
27239 /* We use char because int might match the return type of a gcc2
27240    builtin and then its argument prototype would still apply.  */
27241 char SQLAllocEnv ();
27242 int
27243 main ()
27244 {
27245 SQLAllocEnv ();
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252   (eval $ac_link) 2>conftest.er1
27253   ac_status=$?
27254   grep -v '^ *+' conftest.er1 >conftest.err
27255   rm -f conftest.er1
27256   cat conftest.err >&5
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } &&
27259          { ac_try='test -z "$ac_c_werror_flag"
27260                          || test ! -s conftest.err'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; } &&
27266          { ac_try='test -s conftest$ac_exeext'
27267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268   (eval $ac_try) 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; }; then
27272   ac_cv_lib_odbc_SQLAllocEnv=yes
27273 else
27274   echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27276
27277 ac_cv_lib_odbc_SQLAllocEnv=no
27278 fi
27279 rm -f conftest.err conftest.$ac_objext \
27280       conftest$ac_exeext conftest.$ac_ext
27281 LIBS=$ac_check_lib_save_LIBS
27282 fi
27283 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27284 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27285 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27286   ODBC_LINK=" -lodbc"
27287 fi
27288
27289
27290 fi
27291
27292
27293 fi
27294
27295         fi
27296         if test "x$ODBC_LINK" = "x" ; then
27297             if test "$wxUSE_ODBC" = "sys" ; then
27298                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27299 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27300    { (exit 1); exit 1; }; }
27301             else
27302                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27303 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27304                 wxUSE_ODBC=builtin
27305             fi
27306         else
27307                         wxUSE_ODBC=sys
27308         fi
27309     fi
27310     if test "$wxUSE_ODBC" != "no" ; then
27311         cat >>confdefs.h <<\_ACEOF
27312 #define wxUSE_ODBC 1
27313 _ACEOF
27314
27315         if test "$wxUSE_ODBC" = "builtin" ; then
27316             cat >>confdefs.h <<\_ACEOF
27317 #define wxUSE_BUILTIN_IODBC 1
27318 _ACEOF
27319
27320         fi
27321         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27322
27323                 WXODBCFLAG="-D_IODBC_"
27324     fi
27325 fi
27326
27327 if test "$wxUSE_REGEX" = "builtin" ; then
27328     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27329 fi
27330 if test "$wxUSE_ZLIB" = "builtin" ; then
27331     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27332 fi
27333
27334 if test "$wxUSE_DISPLAY" = "yes"; then
27335     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27336         echo "$as_me:$LINENO: checking for Xinerama" >&5
27337 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27338
27339 ac_find_libraries=
27340 for ac_dir in $SEARCH_LIB /usr/lib;
27341   do
27342     for ac_extension in a so sl dylib; do
27343       if test -f "$ac_dir/libXinerama.$ac_extension"; then
27344         ac_find_libraries=$ac_dir
27345         break 2
27346       fi
27347     done
27348   done
27349
27350         if test "$ac_find_libraries" != "" ; then
27351
27352   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27353   result=$?
27354   if test $result = 0; then
27355     ac_path_to_link=""
27356   else
27357     ac_path_to_link=" -L$ac_find_libraries"
27358   fi
27359
27360             if test "$ac_path_to_link" != " -L/usr/lib" ; then
27361                 LDFLAGS="$LDFLAGS $ac_path_to_link"
27362             fi
27363             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27364             echo "$as_me:$LINENO: result: yes" >&5
27365 echo "${ECHO_T}yes" >&6
27366
27367             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27368 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27369
27370 ac_find_libraries=
27371 for ac_dir in $SEARCH_LIB /usr/lib;
27372   do
27373     for ac_extension in a so sl dylib; do
27374       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27375         ac_find_libraries=$ac_dir
27376         break 2
27377       fi
27378     done
27379   done
27380
27381             if test "$ac_find_libraries" != "" ; then
27382                 echo "$as_me:$LINENO: result: yes" >&5
27383 echo "${ECHO_T}yes" >&6
27384
27385 for ac_header in X11/extensions/xf86vmode.h
27386 do
27387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27388 echo "$as_me:$LINENO: checking for $ac_header" >&5
27389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h.  */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h.  */
27399
27400                                       #if HAVE_X11_XLIB_H
27401                                         #include <X11/Xlib.h>
27402                                       #endif
27403
27404
27405 #include <$ac_header>
27406 _ACEOF
27407 rm -f conftest.$ac_objext
27408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27409   (eval $ac_compile) 2>conftest.er1
27410   ac_status=$?
27411   grep -v '^ *+' conftest.er1 >conftest.err
27412   rm -f conftest.er1
27413   cat conftest.err >&5
27414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415   (exit $ac_status); } &&
27416          { ac_try='test -z "$ac_c_werror_flag"
27417                          || test ! -s conftest.err'
27418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419   (eval $ac_try) 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); }; } &&
27423          { ac_try='test -s conftest.$ac_objext'
27424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27425   (eval $ac_try) 2>&5
27426   ac_status=$?
27427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); }; }; then
27429   eval "$as_ac_Header=yes"
27430 else
27431   echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434 eval "$as_ac_Header=no"
27435 fi
27436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27437 fi
27438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27441   cat >>confdefs.h <<_ACEOF
27442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27443 _ACEOF
27444
27445                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27446
27447 fi
27448
27449 done
27450
27451             else
27452                 echo "$as_me:$LINENO: result: no" >&5
27453 echo "${ECHO_T}no" >&6
27454             fi
27455
27456         else
27457             echo "$as_me:$LINENO: result: no" >&5
27458 echo "${ECHO_T}no" >&6
27459             { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27460 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27461             wxUSE_DISPLAY="no"
27462         fi
27463     fi
27464 fi
27465
27466
27467 USE_OPENGL=0
27468 if test "$wxUSE_OPENGL" = "yes"; then
27469     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27470         OPENGL_LIBS="-framework OpenGL -framework AGL"
27471     elif test "$wxUSE_MSW" = 1; then
27472         OPENGL_LIBS="-lopengl32 -lglu32"
27473     else
27474
27475
27476 ac_find_includes=
27477 for ac_dir in $SEARCH_INCLUDE /usr/include;
27478   do
27479     if test -f "$ac_dir/GL/gl.h"; then
27480       ac_find_includes=$ac_dir
27481       break
27482     fi
27483   done
27484
27485         if test "$ac_find_includes" != "" ; then
27486             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27487 echo "${ECHO_T}found in $ac_find_includes" >&6
27488
27489     if test "x$ac_find_includes" = "x/usr/include"; then
27490     ac_path_to_include=""
27491   else
27492     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27493     result=$?
27494     if test $result = 0; then
27495       ac_path_to_include=""
27496     else
27497       ac_path_to_include=" -I$ac_find_includes"
27498     fi
27499   fi
27500
27501             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27502         fi
27503
27504         if test "${ac_cv_header_GL_gl_h+set}" = set; then
27505   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27506 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27507 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27508   echo $ECHO_N "(cached) $ECHO_C" >&6
27509 fi
27510 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27511 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27512 else
27513   # Is the header compilable?
27514 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27515 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27516 cat >conftest.$ac_ext <<_ACEOF
27517 /* confdefs.h.  */
27518 _ACEOF
27519 cat confdefs.h >>conftest.$ac_ext
27520 cat >>conftest.$ac_ext <<_ACEOF
27521 /* end confdefs.h.  */
27522 $ac_includes_default
27523 #include <GL/gl.h>
27524 _ACEOF
27525 rm -f conftest.$ac_objext
27526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27527   (eval $ac_compile) 2>conftest.er1
27528   ac_status=$?
27529   grep -v '^ *+' conftest.er1 >conftest.err
27530   rm -f conftest.er1
27531   cat conftest.err >&5
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); } &&
27534          { ac_try='test -z "$ac_c_werror_flag"
27535                          || test ! -s conftest.err'
27536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537   (eval $ac_try) 2>&5
27538   ac_status=$?
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); }; } &&
27541          { ac_try='test -s conftest.$ac_objext'
27542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27543   (eval $ac_try) 2>&5
27544   ac_status=$?
27545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546   (exit $ac_status); }; }; then
27547   ac_header_compiler=yes
27548 else
27549   echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27551
27552 ac_header_compiler=no
27553 fi
27554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27556 echo "${ECHO_T}$ac_header_compiler" >&6
27557
27558 # Is the header present?
27559 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27560 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27561 cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567 #include <GL/gl.h>
27568 _ACEOF
27569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27571   ac_status=$?
27572   grep -v '^ *+' conftest.er1 >conftest.err
27573   rm -f conftest.er1
27574   cat conftest.err >&5
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); } >/dev/null; then
27577   if test -s conftest.err; then
27578     ac_cpp_err=$ac_c_preproc_warn_flag
27579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27580   else
27581     ac_cpp_err=
27582   fi
27583 else
27584   ac_cpp_err=yes
27585 fi
27586 if test -z "$ac_cpp_err"; then
27587   ac_header_preproc=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592   ac_header_preproc=no
27593 fi
27594 rm -f conftest.err conftest.$ac_ext
27595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27596 echo "${ECHO_T}$ac_header_preproc" >&6
27597
27598 # So?  What about this header?
27599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27600   yes:no: )
27601     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27602 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27603     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27604 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27605     ac_header_preproc=yes
27606     ;;
27607   no:yes:* )
27608     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27609 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27610     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
27611 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
27612     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27613 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27614     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
27615 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27616     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27617 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27618     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27619 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27620     (
27621       cat <<\_ASBOX
27622 ## ----------------------------------------- ##
27623 ## Report this to wx-dev@lists.wxwindows.org ##
27624 ## ----------------------------------------- ##
27625 _ASBOX
27626     ) |
27627       sed "s/^/$as_me: WARNING:     /" >&2
27628     ;;
27629 esac
27630 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27631 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27632 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27633   echo $ECHO_N "(cached) $ECHO_C" >&6
27634 else
27635   ac_cv_header_GL_gl_h=$ac_header_preproc
27636 fi
27637 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27638 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27639
27640 fi
27641 if test $ac_cv_header_GL_gl_h = yes; then
27642
27643                 found_gl=0
27644
27645                 echo "$as_me:$LINENO: checking for -lGL" >&5
27646 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27647
27648 ac_find_libraries=
27649 for ac_dir in $SEARCH_LIB /usr/lib;
27650   do
27651     for ac_extension in a so sl dylib; do
27652       if test -f "$ac_dir/libGL.$ac_extension"; then
27653         ac_find_libraries=$ac_dir
27654         break 2
27655       fi
27656     done
27657   done
27658
27659                 if test "$ac_find_libraries" != "" ; then
27660
27661   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27662   result=$?
27663   if test $result = 0; then
27664     ac_path_to_link=""
27665   else
27666     ac_path_to_link=" -L$ac_find_libraries"
27667   fi
27668
27669                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
27670                         LDFLAGS_GL="$ac_path_to_link"
27671                     fi
27672
27673
27674 ac_find_libraries=
27675 for ac_dir in $SEARCH_LIB /usr/lib;
27676   do
27677     for ac_extension in a so sl dylib; do
27678       if test -f "$ac_dir/libGLU.$ac_extension"; then
27679         ac_find_libraries=$ac_dir
27680         break 2
27681       fi
27682     done
27683   done
27684
27685                     if test "$ac_find_libraries" != "" ; then
27686
27687   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27688   result=$?
27689   if test $result = 0; then
27690     ac_path_to_link=""
27691   else
27692     ac_path_to_link=" -L$ac_find_libraries"
27693   fi
27694
27695                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
27696                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
27697                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27698                         fi
27699
27700                         found_gl=1
27701                         OPENGL_LIBS="-lGL -lGLU"
27702                         echo "$as_me:$LINENO: result: yes" >&5
27703 echo "${ECHO_T}yes" >&6
27704                     fi
27705                 fi
27706
27707                 if test "$found_gl" != 1; then
27708                     echo "$as_me:$LINENO: result: no" >&5
27709 echo "${ECHO_T}no" >&6
27710                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27711 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27712
27713 ac_find_libraries=
27714 for ac_dir in $SEARCH_LIB /usr/lib;
27715   do
27716     for ac_extension in a so sl dylib; do
27717       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27718         ac_find_libraries=$ac_dir
27719         break 2
27720       fi
27721     done
27722   done
27723
27724                     if test "$ac_find_libraries" != "" ; then
27725
27726   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27727   result=$?
27728   if test $result = 0; then
27729     ac_path_to_link=""
27730   else
27731     ac_path_to_link=" -L$ac_find_libraries"
27732   fi
27733
27734                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27735                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
27736                         echo "$as_me:$LINENO: result: yes" >&5
27737 echo "${ECHO_T}yes" >&6
27738                     else
27739                         echo "$as_me:$LINENO: result: no" >&5
27740 echo "${ECHO_T}no" >&6
27741                     fi
27742                 fi
27743
27744 fi
27745
27746
27747
27748         if test "x$OPENGL_LIBS" = "x"; then
27749                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27750 echo "$as_me: error: OpenGL libraries not available" >&2;}
27751    { (exit 1); exit 1; }; }
27752         fi
27753     fi
27754
27755     if test "$wxUSE_OPENGL" = "yes"; then
27756         USE_OPENGL=1
27757         cat >>confdefs.h <<\_ACEOF
27758 #define wxUSE_OPENGL 1
27759 _ACEOF
27760
27761         cat >>confdefs.h <<\_ACEOF
27762 #define wxUSE_GLCANVAS 1
27763 _ACEOF
27764
27765         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27766     fi
27767 fi
27768
27769 if test -z "$TOOLKIT_VPATH" ; then
27770     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27771 fi
27772
27773 if test -n "$TOOLKIT" ; then
27774     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27775 fi
27776
27777 UNICODE=0
27778 lib_unicode_suffix=
27779 if test "$wxUSE_UNICODE" = "yes"; then
27780     lib_unicode_suffix=u
27781     UNICODE=1
27782 fi
27783
27784 lib_debug_suffix=
27785 DEBUG_FLAG=0
27786 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27787     lib_debug_suffix=d
27788     DEBUG_FLAG=1
27789 fi
27790
27791 DEBUG_INFO=0
27792 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27793     DEBUG_INFO=1
27794 fi
27795
27796 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27797
27798 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27799 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27800
27801 if test "$cross_compiling" = "yes"; then
27802     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27803     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27804     HOST_SUFFIX="-${host_alias}"
27805 fi
27806
27807 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27808 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27809 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27810 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27811
27812 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27813 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27814
27815 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27816 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27817 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27818 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27819
27820 case "${host}" in
27821     *-*-cygwin* | *-*-mingw32* )
27822         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27823         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27824         ;;
27825
27826     *-*-darwin* )
27827
27828         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27829         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27830
27831         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27832         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27833         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27834         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27835
27836                         if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27837             WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27838             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27839         fi
27840         ;;
27841 esac
27842
27843 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27844 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27845
27846 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27847 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27848
27849 if test "$wxUSE_OPENGL" = "yes"; then
27850     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27851     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27852 fi
27853
27854
27855
27856 if test "$wxUSE_SHARED" = "yes"; then
27857     case "${host}" in
27858       *-pc-msdosdjgpp )
27859                 wxUSE_SHARED=no
27860         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27861 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27862       ;;
27863     esac
27864 fi
27865
27866 SHARED=0
27867 if test "$wxUSE_SHARED" = "yes"; then
27868     SHARED=1
27869
27870
27871   found_versioning=no
27872
27873
27874     if test $found_versioning = no ; then
27875       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27876 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27877 if test "${wx_cv_version_script+set}" = set; then
27878   echo $ECHO_N "(cached) $ECHO_C" >&6
27879 else
27880
27881         echo "VER_1 { *; };" >conftest.sym
27882         echo "int main() { return 0; }" >conftest.cpp
27883
27884         if { ac_try='
27885                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27886                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888   (eval $ac_try) 2>&5
27889   ac_status=$?
27890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; } ; then
27892           if test -s conftest.stderr ; then
27893               wx_cv_version_script=no
27894           else
27895               wx_cv_version_script=yes
27896           fi
27897         else
27898           wx_cv_version_script=no
27899         fi
27900         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27901
27902 fi
27903 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27904 echo "${ECHO_T}$wx_cv_version_script" >&6
27905       if test $wx_cv_version_script = yes ; then
27906         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27907       fi
27908   fi
27909
27910
27911     case "${host}" in
27912       *-*-linux* | *-*-gnu* )
27913         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27914         ;;
27915
27916       *-*-solaris2* )
27917         if test "$GCC" = yes ; then
27918                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27919
27920                                     saveLdflags="$LDFLAGS"
27921             LDFLAGS="$saveLdflags -Wl,-rpath,/"
27922             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27923 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27924             cat >conftest.$ac_ext <<_ACEOF
27925 /* confdefs.h.  */
27926 _ACEOF
27927 cat confdefs.h >>conftest.$ac_ext
27928 cat >>conftest.$ac_ext <<_ACEOF
27929 /* end confdefs.h.  */
27930
27931 int
27932 main ()
27933 {
27934
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 rm -f conftest.$ac_objext conftest$ac_exeext
27940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27941   (eval $ac_link) 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } &&
27948          { ac_try='test -z "$ac_c_werror_flag"
27949                          || test ! -s conftest.err'
27950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951   (eval $ac_try) 2>&5
27952   ac_status=$?
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); }; } &&
27955          { ac_try='test -s conftest$ac_exeext'
27956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957   (eval $ac_try) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; }; then
27961
27962                     echo "$as_me:$LINENO: result: yes" >&5
27963 echo "${ECHO_T}yes" >&6
27964                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27965
27966 else
27967   echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27969
27970
27971                     echo "$as_me:$LINENO: result: no" >&5
27972 echo "${ECHO_T}no" >&6
27973                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27974 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27975                     LDFLAGS="$saveLdflags -Wl,-R,/"
27976                     cat >conftest.$ac_ext <<_ACEOF
27977 /* confdefs.h.  */
27978 _ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h.  */
27982
27983 int
27984 main ()
27985 {
27986
27987   ;
27988   return 0;
27989 }
27990 _ACEOF
27991 rm -f conftest.$ac_objext conftest$ac_exeext
27992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27993   (eval $ac_link) 2>conftest.er1
27994   ac_status=$?
27995   grep -v '^ *+' conftest.er1 >conftest.err
27996   rm -f conftest.er1
27997   cat conftest.err >&5
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); } &&
28000          { ac_try='test -z "$ac_c_werror_flag"
28001                          || test ! -s conftest.err'
28002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28003   (eval $ac_try) 2>&5
28004   ac_status=$?
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); }; } &&
28007          { ac_try='test -s conftest$ac_exeext'
28008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28009   (eval $ac_try) 2>&5
28010   ac_status=$?
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); }; }; then
28013
28014                              echo "$as_me:$LINENO: result: yes" >&5
28015 echo "${ECHO_T}yes" >&6
28016                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021
28022                             echo "$as_me:$LINENO: result: no" >&5
28023 echo "${ECHO_T}no" >&6
28024
28025 fi
28026 rm -f conftest.err conftest.$ac_objext \
28027       conftest$ac_exeext conftest.$ac_ext
28028
28029 fi
28030 rm -f conftest.err conftest.$ac_objext \
28031       conftest$ac_exeext conftest.$ac_ext
28032             LDFLAGS="$saveLdflags"
28033         else
28034             SHARED_LD="${CXX} -G -o"
28035             PIC_FLAG="-KPIC"
28036             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28037         fi
28038       ;;
28039
28040       powerpc-*-darwin* )
28041         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28042         cat <<EOF >change-install-names
28043 #!/bin/sh
28044 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28045 inst_cmd="install_name_tool "
28046 for i in \${libnames} ; do
28047     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28048 done
28049 \${inst_cmd} \${3}
28050 EOF
28051         chmod +x change-install-names
28052       ;;
28053
28054       *-*-cygwin* | *-*-mingw32* )
28055         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28056         ;;
28057
28058     esac
28059
28060         if test "x$WX_TARGET_LIBRARY" = "x"; then
28061         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28062         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28063     fi
28064
28065         WX_TARGET_LIBRARY_TYPE="so"
28066     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28067 fi
28068
28069 if test "$wxUSE_SHARED" = "no"; then
28070
28071         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28072                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28073     fi
28074
28075     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28076         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28077     fi
28078
28079     if test "$wxUSE_OPENGL" = "yes"; then
28080         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28081         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28082     else
28083         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28084     fi
28085
28086     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28087     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28088
28089     WX_TARGET_LIBRARY_TYPE="a"
28090     INSTALL_LIBRARY='$(INSTALL_DATA)'
28091
28092             STATIC_FLAG="yes"
28093 else
28094     STATIC_FLAG="no"
28095 fi
28096
28097 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28098         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28099     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28100     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28101
28102     # Extract the first word of "Rez", so it can be a program name with args.
28103 set dummy Rez; ac_word=$2
28104 echo "$as_me:$LINENO: checking for $ac_word" >&5
28105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28106 if test "${ac_cv_prog_RESCOMP+set}" = set; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109   if test -n "$RESCOMP"; then
28110   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28111 else
28112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28113 for as_dir in $PATH
28114 do
28115   IFS=$as_save_IFS
28116   test -z "$as_dir" && as_dir=.
28117   for ac_exec_ext in '' $ac_executable_extensions; do
28118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28119     ac_cv_prog_RESCOMP="Rez"
28120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28121     break 2
28122   fi
28123 done
28124 done
28125
28126   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28127 fi
28128 fi
28129 RESCOMP=$ac_cv_prog_RESCOMP
28130 if test -n "$RESCOMP"; then
28131   echo "$as_me:$LINENO: result: $RESCOMP" >&5
28132 echo "${ECHO_T}$RESCOMP" >&6
28133 else
28134   echo "$as_me:$LINENO: result: no" >&5
28135 echo "${ECHO_T}no" >&6
28136 fi
28137
28138     # Extract the first word of "DeRez", so it can be a program name with args.
28139 set dummy DeRez; ac_word=$2
28140 echo "$as_me:$LINENO: checking for $ac_word" >&5
28141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28142 if test "${ac_cv_prog_DEREZ+set}" = set; then
28143   echo $ECHO_N "(cached) $ECHO_C" >&6
28144 else
28145   if test -n "$DEREZ"; then
28146   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28147 else
28148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28149 for as_dir in $PATH
28150 do
28151   IFS=$as_save_IFS
28152   test -z "$as_dir" && as_dir=.
28153   for ac_exec_ext in '' $ac_executable_extensions; do
28154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28155     ac_cv_prog_DEREZ="DeRez"
28156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28157     break 2
28158   fi
28159 done
28160 done
28161
28162   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28163 fi
28164 fi
28165 DEREZ=$ac_cv_prog_DEREZ
28166 if test -n "$DEREZ"; then
28167   echo "$as_me:$LINENO: result: $DEREZ" >&5
28168 echo "${ECHO_T}$DEREZ" >&6
28169 else
28170   echo "$as_me:$LINENO: result: no" >&5
28171 echo "${ECHO_T}no" >&6
28172 fi
28173
28174     # Extract the first word of "SetFile", so it can be a program name with args.
28175 set dummy SetFile; ac_word=$2
28176 echo "$as_me:$LINENO: checking for $ac_word" >&5
28177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28178 if test "${ac_cv_prog_SETFILE+set}" = set; then
28179   echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181   if test -n "$SETFILE"; then
28182   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28183 else
28184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28185 for as_dir in $PATH
28186 do
28187   IFS=$as_save_IFS
28188   test -z "$as_dir" && as_dir=.
28189   for ac_exec_ext in '' $ac_executable_extensions; do
28190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28191     ac_cv_prog_SETFILE="SetFile"
28192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28193     break 2
28194   fi
28195 done
28196 done
28197
28198   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28199 fi
28200 fi
28201 SETFILE=$ac_cv_prog_SETFILE
28202 if test -n "$SETFILE"; then
28203   echo "$as_me:$LINENO: result: $SETFILE" >&5
28204 echo "${ECHO_T}$SETFILE" >&6
28205 else
28206   echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6
28208 fi
28209
28210
28211     MACSETFILE="\$(SETFILE)"
28212
28213             if test "$wxUSE_MAC" = 1; then
28214         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28215
28216                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28217     else
28218         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28219         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28220     fi
28221 else
28222         MACSETFILE="@#"
28223     MACRESWXCONFIG="#"
28224
28225         if test "$wxUSE_PM" = 1; then
28226         MACRESCOMP="emxbind -ep"
28227     else
28228         MACRESCOMP="@#"
28229     fi
28230 fi
28231
28232
28233
28234 echo "$as_me:$LINENO: checking for mode_t" >&5
28235 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28236 if test "${ac_cv_type_mode_t+set}" = set; then
28237   echo $ECHO_N "(cached) $ECHO_C" >&6
28238 else
28239   cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245 $ac_includes_default
28246 int
28247 main ()
28248 {
28249 if ((mode_t *) 0)
28250   return 0;
28251 if (sizeof (mode_t))
28252   return 0;
28253   ;
28254   return 0;
28255 }
28256 _ACEOF
28257 rm -f conftest.$ac_objext
28258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28259   (eval $ac_compile) 2>conftest.er1
28260   ac_status=$?
28261   grep -v '^ *+' conftest.er1 >conftest.err
28262   rm -f conftest.er1
28263   cat conftest.err >&5
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); } &&
28266          { ac_try='test -z "$ac_c_werror_flag"
28267                          || test ! -s conftest.err'
28268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269   (eval $ac_try) 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; } &&
28273          { ac_try='test -s conftest.$ac_objext'
28274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275   (eval $ac_try) 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; }; then
28279   ac_cv_type_mode_t=yes
28280 else
28281   echo "$as_me: failed program was:" >&5
28282 sed 's/^/| /' conftest.$ac_ext >&5
28283
28284 ac_cv_type_mode_t=no
28285 fi
28286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28287 fi
28288 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28289 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28290 if test $ac_cv_type_mode_t = yes; then
28291   :
28292 else
28293
28294 cat >>confdefs.h <<_ACEOF
28295 #define mode_t int
28296 _ACEOF
28297
28298 fi
28299
28300 echo "$as_me:$LINENO: checking for off_t" >&5
28301 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28302 if test "${ac_cv_type_off_t+set}" = set; then
28303   echo $ECHO_N "(cached) $ECHO_C" >&6
28304 else
28305   cat >conftest.$ac_ext <<_ACEOF
28306 /* confdefs.h.  */
28307 _ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h.  */
28311 $ac_includes_default
28312 int
28313 main ()
28314 {
28315 if ((off_t *) 0)
28316   return 0;
28317 if (sizeof (off_t))
28318   return 0;
28319   ;
28320   return 0;
28321 }
28322 _ACEOF
28323 rm -f conftest.$ac_objext
28324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28325   (eval $ac_compile) 2>conftest.er1
28326   ac_status=$?
28327   grep -v '^ *+' conftest.er1 >conftest.err
28328   rm -f conftest.er1
28329   cat conftest.err >&5
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); } &&
28332          { ac_try='test -z "$ac_c_werror_flag"
28333                          || test ! -s conftest.err'
28334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335   (eval $ac_try) 2>&5
28336   ac_status=$?
28337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338   (exit $ac_status); }; } &&
28339          { ac_try='test -s conftest.$ac_objext'
28340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341   (eval $ac_try) 2>&5
28342   ac_status=$?
28343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); }; }; then
28345   ac_cv_type_off_t=yes
28346 else
28347   echo "$as_me: failed program was:" >&5
28348 sed 's/^/| /' conftest.$ac_ext >&5
28349
28350 ac_cv_type_off_t=no
28351 fi
28352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28353 fi
28354 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28355 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28356 if test $ac_cv_type_off_t = yes; then
28357   :
28358 else
28359
28360 cat >>confdefs.h <<_ACEOF
28361 #define off_t long
28362 _ACEOF
28363
28364 fi
28365
28366 echo "$as_me:$LINENO: checking for pid_t" >&5
28367 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28368 if test "${ac_cv_type_pid_t+set}" = set; then
28369   echo $ECHO_N "(cached) $ECHO_C" >&6
28370 else
28371   cat >conftest.$ac_ext <<_ACEOF
28372 /* confdefs.h.  */
28373 _ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h.  */
28377 $ac_includes_default
28378 int
28379 main ()
28380 {
28381 if ((pid_t *) 0)
28382   return 0;
28383 if (sizeof (pid_t))
28384   return 0;
28385   ;
28386   return 0;
28387 }
28388 _ACEOF
28389 rm -f conftest.$ac_objext
28390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28391   (eval $ac_compile) 2>conftest.er1
28392   ac_status=$?
28393   grep -v '^ *+' conftest.er1 >conftest.err
28394   rm -f conftest.er1
28395   cat conftest.err >&5
28396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397   (exit $ac_status); } &&
28398          { ac_try='test -z "$ac_c_werror_flag"
28399                          || test ! -s conftest.err'
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); }; } &&
28405          { ac_try='test -s conftest.$ac_objext'
28406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28407   (eval $ac_try) 2>&5
28408   ac_status=$?
28409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410   (exit $ac_status); }; }; then
28411   ac_cv_type_pid_t=yes
28412 else
28413   echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28415
28416 ac_cv_type_pid_t=no
28417 fi
28418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28419 fi
28420 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28421 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28422 if test $ac_cv_type_pid_t = yes; then
28423   :
28424 else
28425
28426 cat >>confdefs.h <<_ACEOF
28427 #define pid_t int
28428 _ACEOF
28429
28430 fi
28431
28432 echo "$as_me:$LINENO: checking for size_t" >&5
28433 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28434 if test "${ac_cv_type_size_t+set}" = set; then
28435   echo $ECHO_N "(cached) $ECHO_C" >&6
28436 else
28437   cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443 $ac_includes_default
28444 int
28445 main ()
28446 {
28447 if ((size_t *) 0)
28448   return 0;
28449 if (sizeof (size_t))
28450   return 0;
28451   ;
28452   return 0;
28453 }
28454 _ACEOF
28455 rm -f conftest.$ac_objext
28456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28457   (eval $ac_compile) 2>conftest.er1
28458   ac_status=$?
28459   grep -v '^ *+' conftest.er1 >conftest.err
28460   rm -f conftest.er1
28461   cat conftest.err >&5
28462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463   (exit $ac_status); } &&
28464          { ac_try='test -z "$ac_c_werror_flag"
28465                          || test ! -s conftest.err'
28466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467   (eval $ac_try) 2>&5
28468   ac_status=$?
28469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470   (exit $ac_status); }; } &&
28471          { ac_try='test -s conftest.$ac_objext'
28472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473   (eval $ac_try) 2>&5
28474   ac_status=$?
28475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476   (exit $ac_status); }; }; then
28477   ac_cv_type_size_t=yes
28478 else
28479   echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28481
28482 ac_cv_type_size_t=no
28483 fi
28484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28485 fi
28486 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28487 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28488 if test $ac_cv_type_size_t = yes; then
28489   :
28490 else
28491
28492 cat >>confdefs.h <<_ACEOF
28493 #define size_t unsigned
28494 _ACEOF
28495
28496 fi
28497
28498 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28499 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28500 if test "${ac_cv_type_uid_t+set}" = set; then
28501   echo $ECHO_N "(cached) $ECHO_C" >&6
28502 else
28503   cat >conftest.$ac_ext <<_ACEOF
28504 /* confdefs.h.  */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h.  */
28509 #include <sys/types.h>
28510
28511 _ACEOF
28512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28513   $EGREP "uid_t" >/dev/null 2>&1; then
28514   ac_cv_type_uid_t=yes
28515 else
28516   ac_cv_type_uid_t=no
28517 fi
28518 rm -f conftest*
28519
28520 fi
28521 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28522 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28523 if test $ac_cv_type_uid_t = no; then
28524
28525 cat >>confdefs.h <<\_ACEOF
28526 #define uid_t int
28527 _ACEOF
28528
28529
28530 cat >>confdefs.h <<\_ACEOF
28531 #define gid_t int
28532 _ACEOF
28533
28534 fi
28535
28536
28537
28538
28539 ac_ext=cc
28540 ac_cpp='$CXXCPP $CPPFLAGS'
28541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28544
28545 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28546 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28547 if test "${wx_cv_size_t_is_uint+set}" = set; then
28548   echo $ECHO_N "(cached) $ECHO_C" >&6
28549 else
28550
28551                             cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557 #include <stddef.h>
28558 int
28559 main ()
28560 {
28561
28562             return 0; }
28563
28564             struct Foo { void foo(size_t); void foo(unsigned int); };
28565
28566             int bar() {
28567
28568   ;
28569   return 0;
28570 }
28571 _ACEOF
28572 rm -f conftest.$ac_objext
28573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28574   (eval $ac_compile) 2>conftest.er1
28575   ac_status=$?
28576   grep -v '^ *+' conftest.er1 >conftest.err
28577   rm -f conftest.er1
28578   cat conftest.err >&5
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); } &&
28581          { ac_try='test -z "$ac_cxx_werror_flag"
28582                          || test ! -s conftest.err'
28583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584   (eval $ac_try) 2>&5
28585   ac_status=$?
28586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587   (exit $ac_status); }; } &&
28588          { ac_try='test -s conftest.$ac_objext'
28589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590   (eval $ac_try) 2>&5
28591   ac_status=$?
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); }; }; then
28594   wx_cv_size_t_is_uint=no
28595 else
28596   echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28598
28599 wx_cv_size_t_is_uint=yes
28600
28601 fi
28602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28603
28604
28605 fi
28606 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28607 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28608
28609 if test "$wx_cv_size_t_is_uint" = "yes"; then
28610     cat >>confdefs.h <<\_ACEOF
28611 #define wxSIZE_T_IS_UINT 1
28612 _ACEOF
28613
28614 else
28615     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28616 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28617 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28618   echo $ECHO_N "(cached) $ECHO_C" >&6
28619 else
28620   cat >conftest.$ac_ext <<_ACEOF
28621 /* confdefs.h.  */
28622 _ACEOF
28623 cat confdefs.h >>conftest.$ac_ext
28624 cat >>conftest.$ac_ext <<_ACEOF
28625 /* end confdefs.h.  */
28626 #include <stddef.h>
28627 int
28628 main ()
28629 {
28630
28631                 return 0; }
28632
28633                 struct Foo { void foo(size_t); void foo(unsigned long); };
28634
28635                 int bar() {
28636
28637   ;
28638   return 0;
28639 }
28640 _ACEOF
28641 rm -f conftest.$ac_objext
28642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28643   (eval $ac_compile) 2>conftest.er1
28644   ac_status=$?
28645   grep -v '^ *+' conftest.er1 >conftest.err
28646   rm -f conftest.er1
28647   cat conftest.err >&5
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); } &&
28650          { ac_try='test -z "$ac_cxx_werror_flag"
28651                          || test ! -s conftest.err'
28652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653   (eval $ac_try) 2>&5
28654   ac_status=$?
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); }; } &&
28657          { ac_try='test -s conftest.$ac_objext'
28658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659   (eval $ac_try) 2>&5
28660   ac_status=$?
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); }; }; then
28663   wx_cv_size_t_is_ulong=no
28664 else
28665   echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28667
28668 wx_cv_size_t_is_ulong=yes
28669
28670 fi
28671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28672
28673 fi
28674 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28675 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28676
28677     if test "$wx_cv_size_t_is_ulong" = "yes"; then
28678         cat >>confdefs.h <<\_ACEOF
28679 #define wxSIZE_T_IS_ULONG 1
28680 _ACEOF
28681
28682     fi
28683 fi
28684
28685 ac_ext=c
28686 ac_cpp='$CPP $CPPFLAGS'
28687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28690
28691
28692
28693 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28694 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28695 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28696   echo $ECHO_N "(cached) $ECHO_C" >&6
28697 else
28698
28699         cat >conftest.$ac_ext <<_ACEOF
28700 /* confdefs.h.  */
28701 _ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h.  */
28705 #include <pwd.h>
28706 int
28707 main ()
28708 {
28709
28710                 char *p;
28711                 struct passwd *pw;
28712                 p = pw->pw_gecos;
28713
28714   ;
28715   return 0;
28716 }
28717 _ACEOF
28718 rm -f conftest.$ac_objext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28720   (eval $ac_compile) 2>conftest.er1
28721   ac_status=$?
28722   grep -v '^ *+' conftest.er1 >conftest.err
28723   rm -f conftest.er1
28724   cat conftest.err >&5
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); } &&
28727          { ac_try='test -z "$ac_c_werror_flag"
28728                          || test ! -s conftest.err'
28729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730   (eval $ac_try) 2>&5
28731   ac_status=$?
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); }; } &&
28734          { ac_try='test -s conftest.$ac_objext'
28735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736   (eval $ac_try) 2>&5
28737   ac_status=$?
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); }; }; then
28740
28741                 wx_cv_struct_pw_gecos=yes
28742
28743 else
28744   echo "$as_me: failed program was:" >&5
28745 sed 's/^/| /' conftest.$ac_ext >&5
28746
28747
28748                 wx_cv_struct_pw_gecos=no
28749
28750
28751 fi
28752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28753
28754
28755 fi
28756 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28757 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28758
28759 if test "$wx_cv_struct_pw_gecos" = "yes"; then
28760     cat >>confdefs.h <<\_ACEOF
28761 #define HAVE_PW_GECOS 1
28762 _ACEOF
28763
28764 fi
28765
28766
28767 if test "$wx_cv_sizeof_wchar_t" != "0"; then
28768     cat >>confdefs.h <<\_ACEOF
28769 #define wxUSE_WCHAR_T 1
28770 _ACEOF
28771
28772
28773         WCSLEN_FOUND=0
28774     WCHAR_LINK=
28775
28776 for ac_func in wcslen
28777 do
28778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28779 echo "$as_me:$LINENO: checking for $ac_func" >&5
28780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28781 if eval "test \"\${$as_ac_var+set}\" = set"; then
28782   echo $ECHO_N "(cached) $ECHO_C" >&6
28783 else
28784   cat >conftest.$ac_ext <<_ACEOF
28785 /* confdefs.h.  */
28786 _ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h.  */
28790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28792 #define $ac_func innocuous_$ac_func
28793
28794 /* System header to define __stub macros and hopefully few prototypes,
28795     which can conflict with char $ac_func (); below.
28796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28797     <limits.h> exists even on freestanding compilers.  */
28798
28799 #ifdef __STDC__
28800 # include <limits.h>
28801 #else
28802 # include <assert.h>
28803 #endif
28804
28805 #undef $ac_func
28806
28807 /* Override any gcc2 internal prototype to avoid an error.  */
28808 #ifdef __cplusplus
28809 extern "C"
28810 {
28811 #endif
28812 /* We use char because int might match the return type of a gcc2
28813    builtin and then its argument prototype would still apply.  */
28814 char $ac_func ();
28815 /* The GNU C library defines this for functions which it implements
28816     to always fail with ENOSYS.  Some functions are actually named
28817     something starting with __ and the normal name is an alias.  */
28818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28819 choke me
28820 #else
28821 char (*f) () = $ac_func;
28822 #endif
28823 #ifdef __cplusplus
28824 }
28825 #endif
28826
28827 int
28828 main ()
28829 {
28830 return f != $ac_func;
28831   ;
28832   return 0;
28833 }
28834 _ACEOF
28835 rm -f conftest.$ac_objext conftest$ac_exeext
28836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28837   (eval $ac_link) 2>conftest.er1
28838   ac_status=$?
28839   grep -v '^ *+' conftest.er1 >conftest.err
28840   rm -f conftest.er1
28841   cat conftest.err >&5
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); } &&
28844          { ac_try='test -z "$ac_c_werror_flag"
28845                          || test ! -s conftest.err'
28846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847   (eval $ac_try) 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); }; } &&
28851          { ac_try='test -s conftest$ac_exeext'
28852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28853   (eval $ac_try) 2>&5
28854   ac_status=$?
28855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856   (exit $ac_status); }; }; then
28857   eval "$as_ac_var=yes"
28858 else
28859   echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28861
28862 eval "$as_ac_var=no"
28863 fi
28864 rm -f conftest.err conftest.$ac_objext \
28865       conftest$ac_exeext conftest.$ac_ext
28866 fi
28867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28869 if test `eval echo '${'$as_ac_var'}'` = yes; then
28870   cat >>confdefs.h <<_ACEOF
28871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28872 _ACEOF
28873  WCSLEN_FOUND=1
28874 fi
28875 done
28876
28877
28878     if test "$WCSLEN_FOUND" = 0; then
28879         if test "$TOOLKIT" = "MSW"; then
28880             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28881 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28882 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28883   echo $ECHO_N "(cached) $ECHO_C" >&6
28884 else
28885   ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-lmsvcrt  $LIBS"
28887 cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893
28894 /* Override any gcc2 internal prototype to avoid an error.  */
28895 #ifdef __cplusplus
28896 extern "C"
28897 #endif
28898 /* We use char because int might match the return type of a gcc2
28899    builtin and then its argument prototype would still apply.  */
28900 char wcslen ();
28901 int
28902 main ()
28903 {
28904 wcslen ();
28905   ;
28906   return 0;
28907 }
28908 _ACEOF
28909 rm -f conftest.$ac_objext conftest$ac_exeext
28910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28911   (eval $ac_link) 2>conftest.er1
28912   ac_status=$?
28913   grep -v '^ *+' conftest.er1 >conftest.err
28914   rm -f conftest.er1
28915   cat conftest.err >&5
28916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); } &&
28918          { ac_try='test -z "$ac_c_werror_flag"
28919                          || test ! -s conftest.err'
28920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28921   (eval $ac_try) 2>&5
28922   ac_status=$?
28923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924   (exit $ac_status); }; } &&
28925          { ac_try='test -s conftest$ac_exeext'
28926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927   (eval $ac_try) 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); }; }; then
28931   ac_cv_lib_msvcrt_wcslen=yes
28932 else
28933   echo "$as_me: failed program was:" >&5
28934 sed 's/^/| /' conftest.$ac_ext >&5
28935
28936 ac_cv_lib_msvcrt_wcslen=no
28937 fi
28938 rm -f conftest.err conftest.$ac_objext \
28939       conftest$ac_exeext conftest.$ac_ext
28940 LIBS=$ac_check_lib_save_LIBS
28941 fi
28942 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28943 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28944 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28945   WCHAR_OK=1
28946 fi
28947
28948         else
28949             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28950 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28951 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28952   echo $ECHO_N "(cached) $ECHO_C" >&6
28953 else
28954   ac_check_lib_save_LIBS=$LIBS
28955 LIBS="-lw  $LIBS"
28956 cat >conftest.$ac_ext <<_ACEOF
28957 /* confdefs.h.  */
28958 _ACEOF
28959 cat confdefs.h >>conftest.$ac_ext
28960 cat >>conftest.$ac_ext <<_ACEOF
28961 /* end confdefs.h.  */
28962
28963 /* Override any gcc2 internal prototype to avoid an error.  */
28964 #ifdef __cplusplus
28965 extern "C"
28966 #endif
28967 /* We use char because int might match the return type of a gcc2
28968    builtin and then its argument prototype would still apply.  */
28969 char wcslen ();
28970 int
28971 main ()
28972 {
28973 wcslen ();
28974   ;
28975   return 0;
28976 }
28977 _ACEOF
28978 rm -f conftest.$ac_objext conftest$ac_exeext
28979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28980   (eval $ac_link) 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } &&
28987          { ac_try='test -z "$ac_c_werror_flag"
28988                          || test ! -s conftest.err'
28989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990   (eval $ac_try) 2>&5
28991   ac_status=$?
28992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993   (exit $ac_status); }; } &&
28994          { ac_try='test -s conftest$ac_exeext'
28995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996   (eval $ac_try) 2>&5
28997   ac_status=$?
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); }; }; then
29000   ac_cv_lib_w_wcslen=yes
29001 else
29002   echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29004
29005 ac_cv_lib_w_wcslen=no
29006 fi
29007 rm -f conftest.err conftest.$ac_objext \
29008       conftest$ac_exeext conftest.$ac_ext
29009 LIBS=$ac_check_lib_save_LIBS
29010 fi
29011 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29012 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29013 if test $ac_cv_lib_w_wcslen = yes; then
29014
29015                             WCHAR_LINK=" -lw"
29016                             WCSLEN_FOUND=1
29017
29018 fi
29019
29020         fi
29021     fi
29022
29023     if test "$WCSLEN_FOUND" = 1; then
29024         cat >>confdefs.h <<\_ACEOF
29025 #define HAVE_WCSLEN 1
29026 _ACEOF
29027
29028     fi
29029
29030
29031 for ac_func in wcsrtombs
29032 do
29033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29034 echo "$as_me:$LINENO: checking for $ac_func" >&5
29035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29036 if eval "test \"\${$as_ac_var+set}\" = set"; then
29037   echo $ECHO_N "(cached) $ECHO_C" >&6
29038 else
29039   cat >conftest.$ac_ext <<_ACEOF
29040 /* confdefs.h.  */
29041 _ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h.  */
29045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29047 #define $ac_func innocuous_$ac_func
29048
29049 /* System header to define __stub macros and hopefully few prototypes,
29050     which can conflict with char $ac_func (); below.
29051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29052     <limits.h> exists even on freestanding compilers.  */
29053
29054 #ifdef __STDC__
29055 # include <limits.h>
29056 #else
29057 # include <assert.h>
29058 #endif
29059
29060 #undef $ac_func
29061
29062 /* Override any gcc2 internal prototype to avoid an error.  */
29063 #ifdef __cplusplus
29064 extern "C"
29065 {
29066 #endif
29067 /* We use char because int might match the return type of a gcc2
29068    builtin and then its argument prototype would still apply.  */
29069 char $ac_func ();
29070 /* The GNU C library defines this for functions which it implements
29071     to always fail with ENOSYS.  Some functions are actually named
29072     something starting with __ and the normal name is an alias.  */
29073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29074 choke me
29075 #else
29076 char (*f) () = $ac_func;
29077 #endif
29078 #ifdef __cplusplus
29079 }
29080 #endif
29081
29082 int
29083 main ()
29084 {
29085 return f != $ac_func;
29086   ;
29087   return 0;
29088 }
29089 _ACEOF
29090 rm -f conftest.$ac_objext conftest$ac_exeext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092   (eval $ac_link) 2>conftest.er1
29093   ac_status=$?
29094   grep -v '^ *+' conftest.er1 >conftest.err
29095   rm -f conftest.er1
29096   cat conftest.err >&5
29097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098   (exit $ac_status); } &&
29099          { ac_try='test -z "$ac_c_werror_flag"
29100                          || test ! -s conftest.err'
29101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102   (eval $ac_try) 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; } &&
29106          { ac_try='test -s conftest$ac_exeext'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; }; then
29112   eval "$as_ac_var=yes"
29113 else
29114   echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29116
29117 eval "$as_ac_var=no"
29118 fi
29119 rm -f conftest.err conftest.$ac_objext \
29120       conftest$ac_exeext conftest.$ac_ext
29121 fi
29122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29124 if test `eval echo '${'$as_ac_var'}'` = yes; then
29125   cat >>confdefs.h <<_ACEOF
29126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29127 _ACEOF
29128
29129 fi
29130 done
29131
29132 else
29133     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29134 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29135 fi
29136
29137
29138
29139 ac_ext=cc
29140 ac_cpp='$CXXCPP $CPPFLAGS'
29141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29144
29145
29146
29147 for ac_func in vsnprintf
29148 do
29149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29150 echo "$as_me:$LINENO: checking for $ac_func" >&5
29151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29152 if eval "test \"\${$as_ac_var+set}\" = set"; then
29153   echo $ECHO_N "(cached) $ECHO_C" >&6
29154 else
29155   cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h.  */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h.  */
29161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29163 #define $ac_func innocuous_$ac_func
29164
29165 /* System header to define __stub macros and hopefully few prototypes,
29166     which can conflict with char $ac_func (); below.
29167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29168     <limits.h> exists even on freestanding compilers.  */
29169
29170 #ifdef __STDC__
29171 # include <limits.h>
29172 #else
29173 # include <assert.h>
29174 #endif
29175
29176 #undef $ac_func
29177
29178 /* Override any gcc2 internal prototype to avoid an error.  */
29179 #ifdef __cplusplus
29180 extern "C"
29181 {
29182 #endif
29183 /* We use char because int might match the return type of a gcc2
29184    builtin and then its argument prototype would still apply.  */
29185 char $ac_func ();
29186 /* The GNU C library defines this for functions which it implements
29187     to always fail with ENOSYS.  Some functions are actually named
29188     something starting with __ and the normal name is an alias.  */
29189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29190 choke me
29191 #else
29192 char (*f) () = $ac_func;
29193 #endif
29194 #ifdef __cplusplus
29195 }
29196 #endif
29197
29198 int
29199 main ()
29200 {
29201 return f != $ac_func;
29202   ;
29203   return 0;
29204 }
29205 _ACEOF
29206 rm -f conftest.$ac_objext conftest$ac_exeext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29208   (eval $ac_link) 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_cxx_werror_flag"
29216                          || test ! -s conftest.err'
29217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218   (eval $ac_try) 2>&5
29219   ac_status=$?
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); }; } &&
29222          { ac_try='test -s conftest$ac_exeext'
29223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224   (eval $ac_try) 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; }; then
29228   eval "$as_ac_var=yes"
29229 else
29230   echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29232
29233 eval "$as_ac_var=no"
29234 fi
29235 rm -f conftest.err conftest.$ac_objext \
29236       conftest$ac_exeext conftest.$ac_ext
29237 fi
29238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29240 if test `eval echo '${'$as_ac_var'}'` = yes; then
29241   cat >>confdefs.h <<_ACEOF
29242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29243 _ACEOF
29244
29245 fi
29246 done
29247
29248
29249 if test "$ac_cv_func_vsnprintf" = "yes"; then
29250         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29251 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29252 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29253   echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29255
29256             cat >conftest.$ac_ext <<_ACEOF
29257 /* confdefs.h.  */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h.  */
29262
29263                     #include <stdio.h>
29264                     #include <stdarg.h>
29265
29266 int
29267 main ()
29268 {
29269
29270                     char *buf;
29271                     va_list ap;
29272                     vsnprintf(buf, 10u, "%s", ap);
29273
29274   ;
29275   return 0;
29276 }
29277 _ACEOF
29278 rm -f conftest.$ac_objext
29279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29280   (eval $ac_compile) 2>conftest.er1
29281   ac_status=$?
29282   grep -v '^ *+' conftest.er1 >conftest.err
29283   rm -f conftest.er1
29284   cat conftest.err >&5
29285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286   (exit $ac_status); } &&
29287          { ac_try='test -z "$ac_cxx_werror_flag"
29288                          || test ! -s conftest.err'
29289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290   (eval $ac_try) 2>&5
29291   ac_status=$?
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); }; } &&
29294          { ac_try='test -s conftest.$ac_objext'
29295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296   (eval $ac_try) 2>&5
29297   ac_status=$?
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); }; }; then
29300   wx_cv_func_vsnprintf_decl=yes
29301 else
29302   echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29304
29305 wx_cv_func_vsnprintf_decl=no
29306
29307 fi
29308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29309
29310
29311 fi
29312 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29313 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29314
29315     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29316         cat >>confdefs.h <<\_ACEOF
29317 #define HAVE_VSNPRINTF_DECL 1
29318 _ACEOF
29319
29320     fi
29321 fi
29322
29323 if test "$wxUSE_UNICODE" = yes; then
29324
29325
29326
29327 for ac_func in fputwc wprintf vswprintf
29328 do
29329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29330 echo "$as_me:$LINENO: checking for $ac_func" >&5
29331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29332 if eval "test \"\${$as_ac_var+set}\" = set"; then
29333   echo $ECHO_N "(cached) $ECHO_C" >&6
29334 else
29335   cat >conftest.$ac_ext <<_ACEOF
29336 /* confdefs.h.  */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h.  */
29341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29343 #define $ac_func innocuous_$ac_func
29344
29345 /* System header to define __stub macros and hopefully few prototypes,
29346     which can conflict with char $ac_func (); below.
29347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29348     <limits.h> exists even on freestanding compilers.  */
29349
29350 #ifdef __STDC__
29351 # include <limits.h>
29352 #else
29353 # include <assert.h>
29354 #endif
29355
29356 #undef $ac_func
29357
29358 /* Override any gcc2 internal prototype to avoid an error.  */
29359 #ifdef __cplusplus
29360 extern "C"
29361 {
29362 #endif
29363 /* We use char because int might match the return type of a gcc2
29364    builtin and then its argument prototype would still apply.  */
29365 char $ac_func ();
29366 /* The GNU C library defines this for functions which it implements
29367     to always fail with ENOSYS.  Some functions are actually named
29368     something starting with __ and the normal name is an alias.  */
29369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29370 choke me
29371 #else
29372 char (*f) () = $ac_func;
29373 #endif
29374 #ifdef __cplusplus
29375 }
29376 #endif
29377
29378 int
29379 main ()
29380 {
29381 return f != $ac_func;
29382   ;
29383   return 0;
29384 }
29385 _ACEOF
29386 rm -f conftest.$ac_objext conftest$ac_exeext
29387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29388   (eval $ac_link) 2>conftest.er1
29389   ac_status=$?
29390   grep -v '^ *+' conftest.er1 >conftest.err
29391   rm -f conftest.er1
29392   cat conftest.err >&5
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); } &&
29395          { ac_try='test -z "$ac_cxx_werror_flag"
29396                          || test ! -s conftest.err'
29397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398   (eval $ac_try) 2>&5
29399   ac_status=$?
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); }; } &&
29402          { ac_try='test -s conftest$ac_exeext'
29403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404   (eval $ac_try) 2>&5
29405   ac_status=$?
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); }; }; then
29408   eval "$as_ac_var=yes"
29409 else
29410   echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29412
29413 eval "$as_ac_var=no"
29414 fi
29415 rm -f conftest.err conftest.$ac_objext \
29416       conftest$ac_exeext conftest.$ac_ext
29417 fi
29418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29420 if test `eval echo '${'$as_ac_var'}'` = yes; then
29421   cat >>confdefs.h <<_ACEOF
29422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29423 _ACEOF
29424
29425 fi
29426 done
29427
29428
29429                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29430 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29431     cat >conftest.$ac_ext <<_ACEOF
29432 /* confdefs.h.  */
29433 _ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h.  */
29437 #include <wchar.h>
29438 int
29439 main ()
29440 {
29441 &_vsnwprintf;
29442   ;
29443   return 0;
29444 }
29445 _ACEOF
29446 rm -f conftest.$ac_objext
29447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29448   (eval $ac_compile) 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } &&
29455          { ac_try='test -z "$ac_cxx_werror_flag"
29456                          || test ! -s conftest.err'
29457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458   (eval $ac_try) 2>&5
29459   ac_status=$?
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); }; } &&
29462          { ac_try='test -s conftest.$ac_objext'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; }; then
29468   echo "$as_me:$LINENO: result: yes" >&5
29469 echo "${ECHO_T}yes" >&6
29470                     cat >>confdefs.h <<\_ACEOF
29471 #define HAVE__VSNWPRINTF 1
29472 _ACEOF
29473
29474 else
29475   echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29477
29478 echo "$as_me:$LINENO: result: no" >&5
29479 echo "${ECHO_T}no" >&6
29480 fi
29481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29482 fi
29483
29484 ac_ext=c
29485 ac_cpp='$CPP $CPPFLAGS'
29486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29489
29490
29491
29492
29493 if test "$TOOLKIT" != "MSW"; then
29494
29495
29496
29497
29498 ac_ext=cc
29499 ac_cpp='$CXXCPP $CPPFLAGS'
29500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29503
29504
29505
29506
29507 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29508 if test "${with_libiconv_prefix+set}" = set; then
29509   withval="$with_libiconv_prefix"
29510
29511     for dir in `echo "$withval" | tr : ' '`; do
29512       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29513       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29514     done
29515
29516 fi;
29517
29518   echo "$as_me:$LINENO: checking for iconv" >&5
29519 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29520 if test "${am_cv_func_iconv+set}" = set; then
29521   echo $ECHO_N "(cached) $ECHO_C" >&6
29522 else
29523
29524     am_cv_func_iconv="no, consider installing GNU libiconv"
29525     am_cv_lib_iconv=no
29526     cat >conftest.$ac_ext <<_ACEOF
29527 /* confdefs.h.  */
29528 _ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h.  */
29532 #include <stdlib.h>
29533 #include <iconv.h>
29534 int
29535 main ()
29536 {
29537 iconv_t cd = iconv_open("","");
29538        iconv(cd,NULL,NULL,NULL,NULL);
29539        iconv_close(cd);
29540   ;
29541   return 0;
29542 }
29543 _ACEOF
29544 rm -f conftest.$ac_objext conftest$ac_exeext
29545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29546   (eval $ac_link) 2>conftest.er1
29547   ac_status=$?
29548   grep -v '^ *+' conftest.er1 >conftest.err
29549   rm -f conftest.er1
29550   cat conftest.err >&5
29551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552   (exit $ac_status); } &&
29553          { ac_try='test -z "$ac_cxx_werror_flag"
29554                          || test ! -s conftest.err'
29555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556   (eval $ac_try) 2>&5
29557   ac_status=$?
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); }; } &&
29560          { ac_try='test -s conftest$ac_exeext'
29561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562   (eval $ac_try) 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; }; then
29566   am_cv_func_iconv=yes
29567 else
29568   echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29570
29571 fi
29572 rm -f conftest.err conftest.$ac_objext \
29573       conftest$ac_exeext conftest.$ac_ext
29574     if test "$am_cv_func_iconv" != yes; then
29575       am_save_LIBS="$LIBS"
29576       LIBS="$LIBS -liconv"
29577       cat >conftest.$ac_ext <<_ACEOF
29578 /* confdefs.h.  */
29579 _ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h.  */
29583 #include <stdlib.h>
29584 #include <iconv.h>
29585 int
29586 main ()
29587 {
29588 iconv_t cd = iconv_open("","");
29589          iconv(cd,NULL,NULL,NULL,NULL);
29590          iconv_close(cd);
29591   ;
29592   return 0;
29593 }
29594 _ACEOF
29595 rm -f conftest.$ac_objext conftest$ac_exeext
29596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29597   (eval $ac_link) 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } &&
29604          { ac_try='test -z "$ac_cxx_werror_flag"
29605                          || test ! -s conftest.err'
29606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607   (eval $ac_try) 2>&5
29608   ac_status=$?
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); }; } &&
29611          { ac_try='test -s conftest$ac_exeext'
29612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613   (eval $ac_try) 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617   am_cv_lib_iconv=yes
29618         am_cv_func_iconv=yes
29619 else
29620   echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623 fi
29624 rm -f conftest.err conftest.$ac_objext \
29625       conftest$ac_exeext conftest.$ac_ext
29626       LIBS="$am_save_LIBS"
29627     fi
29628
29629 fi
29630 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29631 echo "${ECHO_T}$am_cv_func_iconv" >&6
29632   if test "$am_cv_func_iconv" = yes; then
29633
29634 cat >>confdefs.h <<\_ACEOF
29635 #define HAVE_ICONV 1
29636 _ACEOF
29637
29638     echo "$as_me:$LINENO: checking if iconv needs const" >&5
29639 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29640 if test "${wx_cv_func_iconv_const+set}" = set; then
29641   echo $ECHO_N "(cached) $ECHO_C" >&6
29642 else
29643   cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h.  */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h.  */
29649
29650 #include <stdlib.h>
29651 #include <iconv.h>
29652 extern
29653 #ifdef __cplusplus
29654 "C"
29655 #endif
29656 #if defined(__STDC__) || defined(__cplusplus)
29657 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29658 #else
29659 size_t iconv();
29660 #endif
29661
29662 int
29663 main ()
29664 {
29665
29666   ;
29667   return 0;
29668 }
29669 _ACEOF
29670 rm -f conftest.$ac_objext
29671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29672   (eval $ac_compile) 2>conftest.er1
29673   ac_status=$?
29674   grep -v '^ *+' conftest.er1 >conftest.err
29675   rm -f conftest.er1
29676   cat conftest.err >&5
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); } &&
29679          { ac_try='test -z "$ac_cxx_werror_flag"
29680                          || test ! -s conftest.err'
29681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682   (eval $ac_try) 2>&5
29683   ac_status=$?
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); }; } &&
29686          { ac_try='test -s conftest.$ac_objext'
29687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688   (eval $ac_try) 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); }; }; then
29692   wx_cv_func_iconv_const="no"
29693 else
29694   echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29696
29697 wx_cv_func_iconv_const="yes"
29698
29699 fi
29700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29701
29702 fi
29703 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29704 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29705
29706     iconv_const=
29707     if test "x$wx_cv_func_iconv_const" = "xyes"; then
29708         iconv_const="const"
29709     fi
29710
29711
29712 cat >>confdefs.h <<_ACEOF
29713 #define ICONV_CONST $iconv_const
29714 _ACEOF
29715
29716   fi
29717   LIBICONV=
29718   if test "$am_cv_lib_iconv" = yes; then
29719     LIBICONV="-liconv"
29720   fi
29721
29722
29723 LIBS="$LIBICONV $LIBS"
29724 ac_ext=c
29725 ac_cpp='$CPP $CPPFLAGS'
29726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29729
29730
29731 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29732
29733 for ac_func in sigaction
29734 do
29735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29736 echo "$as_me:$LINENO: checking for $ac_func" >&5
29737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29738 if eval "test \"\${$as_ac_var+set}\" = set"; then
29739   echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29741   cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h.  */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h.  */
29747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29749 #define $ac_func innocuous_$ac_func
29750
29751 /* System header to define __stub macros and hopefully few prototypes,
29752     which can conflict with char $ac_func (); below.
29753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29754     <limits.h> exists even on freestanding compilers.  */
29755
29756 #ifdef __STDC__
29757 # include <limits.h>
29758 #else
29759 # include <assert.h>
29760 #endif
29761
29762 #undef $ac_func
29763
29764 /* Override any gcc2 internal prototype to avoid an error.  */
29765 #ifdef __cplusplus
29766 extern "C"
29767 {
29768 #endif
29769 /* We use char because int might match the return type of a gcc2
29770    builtin and then its argument prototype would still apply.  */
29771 char $ac_func ();
29772 /* The GNU C library defines this for functions which it implements
29773     to always fail with ENOSYS.  Some functions are actually named
29774     something starting with __ and the normal name is an alias.  */
29775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29776 choke me
29777 #else
29778 char (*f) () = $ac_func;
29779 #endif
29780 #ifdef __cplusplus
29781 }
29782 #endif
29783
29784 int
29785 main ()
29786 {
29787 return f != $ac_func;
29788   ;
29789   return 0;
29790 }
29791 _ACEOF
29792 rm -f conftest.$ac_objext conftest$ac_exeext
29793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29794   (eval $ac_link) 2>conftest.er1
29795   ac_status=$?
29796   grep -v '^ *+' conftest.er1 >conftest.err
29797   rm -f conftest.er1
29798   cat conftest.err >&5
29799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800   (exit $ac_status); } &&
29801          { ac_try='test -z "$ac_c_werror_flag"
29802                          || test ! -s conftest.err'
29803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804   (eval $ac_try) 2>&5
29805   ac_status=$?
29806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); }; } &&
29808          { ac_try='test -s conftest$ac_exeext'
29809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810   (eval $ac_try) 2>&5
29811   ac_status=$?
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); }; }; then
29814   eval "$as_ac_var=yes"
29815 else
29816   echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29818
29819 eval "$as_ac_var=no"
29820 fi
29821 rm -f conftest.err conftest.$ac_objext \
29822       conftest$ac_exeext conftest.$ac_ext
29823 fi
29824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29826 if test `eval echo '${'$as_ac_var'}'` = yes; then
29827   cat >>confdefs.h <<_ACEOF
29828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29829 _ACEOF
29830
29831 fi
29832 done
29833
29834
29835     if test "$ac_cv_func_sigaction" = "no"; then
29836         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29837 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29838         wxUSE_ON_FATAL_EXCEPTION=no
29839     fi
29840
29841     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29842
29843
29844       ac_ext=cc
29845 ac_cpp='$CXXCPP $CPPFLAGS'
29846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29849
29850
29851       echo "$as_me:$LINENO: checking for sa_handler type" >&5
29852 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29853 if test "${wx_cv_type_sa_handler+set}" = set; then
29854   echo $ECHO_N "(cached) $ECHO_C" >&6
29855 else
29856
29857         cat >conftest.$ac_ext <<_ACEOF
29858 /* confdefs.h.  */
29859 _ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h.  */
29863 #include <signal.h>
29864 int
29865 main ()
29866 {
29867
29868                         extern void testSigHandler(int);
29869
29870                         struct sigaction sa;
29871                         sa.sa_handler = testSigHandler;
29872
29873   ;
29874   return 0;
29875 }
29876 _ACEOF
29877 rm -f conftest.$ac_objext
29878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29879   (eval $ac_compile) 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } &&
29886          { ac_try='test -z "$ac_cxx_werror_flag"
29887                          || test ! -s conftest.err'
29888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889   (eval $ac_try) 2>&5
29890   ac_status=$?
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); }; } &&
29893          { ac_try='test -s conftest.$ac_objext'
29894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29895   (eval $ac_try) 2>&5
29896   ac_status=$?
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); }; }; then
29899
29900                         wx_cv_type_sa_handler=int
29901
29902 else
29903   echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29905
29906
29907                         wx_cv_type_sa_handler=void
29908
29909 fi
29910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29911
29912 fi
29913 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29914 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29915
29916       ac_ext=c
29917 ac_cpp='$CPP $CPPFLAGS'
29918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29921
29922
29923       cat >>confdefs.h <<_ACEOF
29924 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29925 _ACEOF
29926
29927     fi
29928 fi
29929
29930
29931
29932 for ac_func in mkstemp mktemp
29933 do
29934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29935 echo "$as_me:$LINENO: checking for $ac_func" >&5
29936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29937 if eval "test \"\${$as_ac_var+set}\" = set"; then
29938   echo $ECHO_N "(cached) $ECHO_C" >&6
29939 else
29940   cat >conftest.$ac_ext <<_ACEOF
29941 /* confdefs.h.  */
29942 _ACEOF
29943 cat confdefs.h >>conftest.$ac_ext
29944 cat >>conftest.$ac_ext <<_ACEOF
29945 /* end confdefs.h.  */
29946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29948 #define $ac_func innocuous_$ac_func
29949
29950 /* System header to define __stub macros and hopefully few prototypes,
29951     which can conflict with char $ac_func (); below.
29952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29953     <limits.h> exists even on freestanding compilers.  */
29954
29955 #ifdef __STDC__
29956 # include <limits.h>
29957 #else
29958 # include <assert.h>
29959 #endif
29960
29961 #undef $ac_func
29962
29963 /* Override any gcc2 internal prototype to avoid an error.  */
29964 #ifdef __cplusplus
29965 extern "C"
29966 {
29967 #endif
29968 /* We use char because int might match the return type of a gcc2
29969    builtin and then its argument prototype would still apply.  */
29970 char $ac_func ();
29971 /* The GNU C library defines this for functions which it implements
29972     to always fail with ENOSYS.  Some functions are actually named
29973     something starting with __ and the normal name is an alias.  */
29974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29975 choke me
29976 #else
29977 char (*f) () = $ac_func;
29978 #endif
29979 #ifdef __cplusplus
29980 }
29981 #endif
29982
29983 int
29984 main ()
29985 {
29986 return f != $ac_func;
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29993   (eval $ac_link) 2>conftest.er1
29994   ac_status=$?
29995   grep -v '^ *+' conftest.er1 >conftest.err
29996   rm -f conftest.er1
29997   cat conftest.err >&5
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); } &&
30000          { ac_try='test -z "$ac_c_werror_flag"
30001                          || test ! -s conftest.err'
30002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003   (eval $ac_try) 2>&5
30004   ac_status=$?
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); }; } &&
30007          { ac_try='test -s conftest$ac_exeext'
30008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009   (eval $ac_try) 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; }; then
30013   eval "$as_ac_var=yes"
30014 else
30015   echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018 eval "$as_ac_var=no"
30019 fi
30020 rm -f conftest.err conftest.$ac_objext \
30021       conftest$ac_exeext conftest.$ac_ext
30022 fi
30023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30025 if test `eval echo '${'$as_ac_var'}'` = yes; then
30026   cat >>confdefs.h <<_ACEOF
30027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30028 _ACEOF
30029  break
30030 fi
30031 done
30032
30033
30034 echo "$as_me:$LINENO: checking for statfs" >&5
30035 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30036 if test "${wx_cv_func_statfs+set}" = set; then
30037   echo $ECHO_N "(cached) $ECHO_C" >&6
30038 else
30039   cat >conftest.$ac_ext <<_ACEOF
30040 /* confdefs.h.  */
30041 _ACEOF
30042 cat confdefs.h >>conftest.$ac_ext
30043 cat >>conftest.$ac_ext <<_ACEOF
30044 /* end confdefs.h.  */
30045
30046              #if defined(__BSD__)
30047                #include <sys/param.h>
30048                #include <sys/mount.h>
30049              #else
30050                #include <sys/vfs.h>
30051              #endif
30052
30053 int
30054 main ()
30055 {
30056
30057              long l;
30058              struct statfs fs;
30059              statfs("/", &fs);
30060              l = fs.f_bsize;
30061              l += fs.f_blocks;
30062              l += fs.f_bavail;
30063
30064   ;
30065   return 0;
30066 }
30067 _ACEOF
30068 rm -f conftest.$ac_objext
30069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30070   (eval $ac_compile) 2>conftest.er1
30071   ac_status=$?
30072   grep -v '^ *+' conftest.er1 >conftest.err
30073   rm -f conftest.er1
30074   cat conftest.err >&5
30075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076   (exit $ac_status); } &&
30077          { ac_try='test -z "$ac_c_werror_flag"
30078                          || test ! -s conftest.err'
30079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30080   (eval $ac_try) 2>&5
30081   ac_status=$?
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); }; } &&
30084          { ac_try='test -s conftest.$ac_objext'
30085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086   (eval $ac_try) 2>&5
30087   ac_status=$?
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); }; }; then
30090
30091              wx_cv_func_statfs=yes
30092
30093 else
30094   echo "$as_me: failed program was:" >&5
30095 sed 's/^/| /' conftest.$ac_ext >&5
30096
30097
30098              wx_cv_func_statfs=no
30099
30100
30101 fi
30102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30103
30104 fi
30105 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30106 echo "${ECHO_T}$wx_cv_func_statfs" >&6
30107
30108 if test "$wx_cv_func_statfs" = "yes"; then
30109     wx_cv_type_statvfs_t="struct statfs"
30110     cat >>confdefs.h <<\_ACEOF
30111 #define HAVE_STATFS 1
30112 _ACEOF
30113
30114 else
30115     echo "$as_me:$LINENO: checking for statvfs" >&5
30116 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30117 if test "${wx_cv_func_statvfs+set}" = set; then
30118   echo $ECHO_N "(cached) $ECHO_C" >&6
30119 else
30120   cat >conftest.$ac_ext <<_ACEOF
30121 /* confdefs.h.  */
30122 _ACEOF
30123 cat confdefs.h >>conftest.$ac_ext
30124 cat >>conftest.$ac_ext <<_ACEOF
30125 /* end confdefs.h.  */
30126
30127                 #include <stddef.h>
30128                 #include <sys/statvfs.h>
30129
30130 int
30131 main ()
30132 {
30133
30134                 statvfs("/", NULL);
30135
30136   ;
30137   return 0;
30138 }
30139 _ACEOF
30140 rm -f conftest.$ac_objext
30141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30142   (eval $ac_compile) 2>conftest.er1
30143   ac_status=$?
30144   grep -v '^ *+' conftest.er1 >conftest.err
30145   rm -f conftest.er1
30146   cat conftest.err >&5
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); } &&
30149          { ac_try='test -z "$ac_c_werror_flag"
30150                          || test ! -s conftest.err'
30151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30152   (eval $ac_try) 2>&5
30153   ac_status=$?
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); }; } &&
30156          { ac_try='test -s conftest.$ac_objext'
30157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30158   (eval $ac_try) 2>&5
30159   ac_status=$?
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); }; }; then
30162   wx_cv_func_statvfs=yes
30163 else
30164   echo "$as_me: failed program was:" >&5
30165 sed 's/^/| /' conftest.$ac_ext >&5
30166
30167 wx_cv_func_statvfs=no
30168
30169 fi
30170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30171
30172 fi
30173 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30174 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30175
30176     if test "$wx_cv_func_statvfs" = "yes"; then
30177
30178
30179         ac_ext=cc
30180 ac_cpp='$CXXCPP $CPPFLAGS'
30181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30184
30185
30186         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30187 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30188 if test "${wx_cv_type_statvfs_t+set}" = set; then
30189   echo $ECHO_N "(cached) $ECHO_C" >&6
30190 else
30191   cat >conftest.$ac_ext <<_ACEOF
30192 /* confdefs.h.  */
30193 _ACEOF
30194 cat confdefs.h >>conftest.$ac_ext
30195 cat >>conftest.$ac_ext <<_ACEOF
30196 /* end confdefs.h.  */
30197
30198                     #include <sys/statvfs.h>
30199
30200 int
30201 main ()
30202 {
30203
30204                     long l;
30205                     statvfs_t fs;
30206                     statvfs("/", &fs);
30207                     l = fs.f_bsize;
30208                     l += fs.f_blocks;
30209                     l += fs.f_bavail;
30210
30211   ;
30212   return 0;
30213 }
30214 _ACEOF
30215 rm -f conftest.$ac_objext
30216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30217   (eval $ac_compile) 2>conftest.er1
30218   ac_status=$?
30219   grep -v '^ *+' conftest.er1 >conftest.err
30220   rm -f conftest.er1
30221   cat conftest.err >&5
30222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223   (exit $ac_status); } &&
30224          { ac_try='test -z "$ac_cxx_werror_flag"
30225                          || test ! -s conftest.err'
30226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227   (eval $ac_try) 2>&5
30228   ac_status=$?
30229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230   (exit $ac_status); }; } &&
30231          { ac_try='test -s conftest.$ac_objext'
30232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233   (eval $ac_try) 2>&5
30234   ac_status=$?
30235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236   (exit $ac_status); }; }; then
30237   wx_cv_type_statvfs_t=statvfs_t
30238 else
30239   echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30241
30242
30243                     cat >conftest.$ac_ext <<_ACEOF
30244 /* confdefs.h.  */
30245 _ACEOF
30246 cat confdefs.h >>conftest.$ac_ext
30247 cat >>conftest.$ac_ext <<_ACEOF
30248 /* end confdefs.h.  */
30249
30250                             #include <sys/statvfs.h>
30251
30252 int
30253 main ()
30254 {
30255
30256                             long l;
30257                             struct statvfs fs;
30258                             statvfs("/", &fs);
30259                             l = fs.f_bsize;
30260                             l += fs.f_blocks;
30261                             l += fs.f_bavail;
30262
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 rm -f conftest.$ac_objext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30269   (eval $ac_compile) 2>conftest.er1
30270   ac_status=$?
30271   grep -v '^ *+' conftest.er1 >conftest.err
30272   rm -f conftest.er1
30273   cat conftest.err >&5
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); } &&
30276          { ac_try='test -z "$ac_cxx_werror_flag"
30277                          || test ! -s conftest.err'
30278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279   (eval $ac_try) 2>&5
30280   ac_status=$?
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); }; } &&
30283          { ac_try='test -s conftest.$ac_objext'
30284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285   (eval $ac_try) 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); }; }; then
30289   wx_cv_type_statvfs_t="struct statvfs"
30290 else
30291   echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294 wx_cv_type_statvfs_t="unknown"
30295
30296 fi
30297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30298
30299
30300 fi
30301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30302
30303 fi
30304 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30305 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30306
30307         ac_ext=c
30308 ac_cpp='$CPP $CPPFLAGS'
30309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30312
30313
30314         if test "$wx_cv_type_statvfs_t" != "unknown"; then
30315             cat >>confdefs.h <<\_ACEOF
30316 #define HAVE_STATVFS 1
30317 _ACEOF
30318
30319         fi
30320     else
30321                 wx_cv_type_statvfs_t="unknown"
30322     fi
30323 fi
30324
30325 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30326     cat >>confdefs.h <<_ACEOF
30327 #define WX_STATFS_T $wx_cv_type_statvfs_t
30328 _ACEOF
30329
30330 else
30331     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30332 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30333 fi
30334
30335 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30336
30337
30338 for ac_func in fcntl flock
30339 do
30340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30341 echo "$as_me:$LINENO: checking for $ac_func" >&5
30342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30343 if eval "test \"\${$as_ac_var+set}\" = set"; then
30344   echo $ECHO_N "(cached) $ECHO_C" >&6
30345 else
30346   cat >conftest.$ac_ext <<_ACEOF
30347 /* confdefs.h.  */
30348 _ACEOF
30349 cat confdefs.h >>conftest.$ac_ext
30350 cat >>conftest.$ac_ext <<_ACEOF
30351 /* end confdefs.h.  */
30352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30354 #define $ac_func innocuous_$ac_func
30355
30356 /* System header to define __stub macros and hopefully few prototypes,
30357     which can conflict with char $ac_func (); below.
30358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30359     <limits.h> exists even on freestanding compilers.  */
30360
30361 #ifdef __STDC__
30362 # include <limits.h>
30363 #else
30364 # include <assert.h>
30365 #endif
30366
30367 #undef $ac_func
30368
30369 /* Override any gcc2 internal prototype to avoid an error.  */
30370 #ifdef __cplusplus
30371 extern "C"
30372 {
30373 #endif
30374 /* We use char because int might match the return type of a gcc2
30375    builtin and then its argument prototype would still apply.  */
30376 char $ac_func ();
30377 /* The GNU C library defines this for functions which it implements
30378     to always fail with ENOSYS.  Some functions are actually named
30379     something starting with __ and the normal name is an alias.  */
30380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30381 choke me
30382 #else
30383 char (*f) () = $ac_func;
30384 #endif
30385 #ifdef __cplusplus
30386 }
30387 #endif
30388
30389 int
30390 main ()
30391 {
30392 return f != $ac_func;
30393   ;
30394   return 0;
30395 }
30396 _ACEOF
30397 rm -f conftest.$ac_objext conftest$ac_exeext
30398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30399   (eval $ac_link) 2>conftest.er1
30400   ac_status=$?
30401   grep -v '^ *+' conftest.er1 >conftest.err
30402   rm -f conftest.er1
30403   cat conftest.err >&5
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); } &&
30406          { ac_try='test -z "$ac_c_werror_flag"
30407                          || test ! -s conftest.err'
30408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30409   (eval $ac_try) 2>&5
30410   ac_status=$?
30411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412   (exit $ac_status); }; } &&
30413          { ac_try='test -s conftest$ac_exeext'
30414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30415   (eval $ac_try) 2>&5
30416   ac_status=$?
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); }; }; then
30419   eval "$as_ac_var=yes"
30420 else
30421   echo "$as_me: failed program was:" >&5
30422 sed 's/^/| /' conftest.$ac_ext >&5
30423
30424 eval "$as_ac_var=no"
30425 fi
30426 rm -f conftest.err conftest.$ac_objext \
30427       conftest$ac_exeext conftest.$ac_ext
30428 fi
30429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30431 if test `eval echo '${'$as_ac_var'}'` = yes; then
30432   cat >>confdefs.h <<_ACEOF
30433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30434 _ACEOF
30435  break
30436 fi
30437 done
30438
30439
30440     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30441         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30442 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30443         wxUSE_SNGLINST_CHECKER=no
30444     fi
30445 fi
30446
30447
30448 for ac_func in timegm
30449 do
30450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30451 echo "$as_me:$LINENO: checking for $ac_func" >&5
30452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30453 if eval "test \"\${$as_ac_var+set}\" = set"; then
30454   echo $ECHO_N "(cached) $ECHO_C" >&6
30455 else
30456   cat >conftest.$ac_ext <<_ACEOF
30457 /* confdefs.h.  */
30458 _ACEOF
30459 cat confdefs.h >>conftest.$ac_ext
30460 cat >>conftest.$ac_ext <<_ACEOF
30461 /* end confdefs.h.  */
30462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30464 #define $ac_func innocuous_$ac_func
30465
30466 /* System header to define __stub macros and hopefully few prototypes,
30467     which can conflict with char $ac_func (); below.
30468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30469     <limits.h> exists even on freestanding compilers.  */
30470
30471 #ifdef __STDC__
30472 # include <limits.h>
30473 #else
30474 # include <assert.h>
30475 #endif
30476
30477 #undef $ac_func
30478
30479 /* Override any gcc2 internal prototype to avoid an error.  */
30480 #ifdef __cplusplus
30481 extern "C"
30482 {
30483 #endif
30484 /* We use char because int might match the return type of a gcc2
30485    builtin and then its argument prototype would still apply.  */
30486 char $ac_func ();
30487 /* The GNU C library defines this for functions which it implements
30488     to always fail with ENOSYS.  Some functions are actually named
30489     something starting with __ and the normal name is an alias.  */
30490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30491 choke me
30492 #else
30493 char (*f) () = $ac_func;
30494 #endif
30495 #ifdef __cplusplus
30496 }
30497 #endif
30498
30499 int
30500 main ()
30501 {
30502 return f != $ac_func;
30503   ;
30504   return 0;
30505 }
30506 _ACEOF
30507 rm -f conftest.$ac_objext conftest$ac_exeext
30508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30509   (eval $ac_link) 2>conftest.er1
30510   ac_status=$?
30511   grep -v '^ *+' conftest.er1 >conftest.err
30512   rm -f conftest.er1
30513   cat conftest.err >&5
30514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515   (exit $ac_status); } &&
30516          { ac_try='test -z "$ac_c_werror_flag"
30517                          || test ! -s conftest.err'
30518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519   (eval $ac_try) 2>&5
30520   ac_status=$?
30521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522   (exit $ac_status); }; } &&
30523          { ac_try='test -s conftest$ac_exeext'
30524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525   (eval $ac_try) 2>&5
30526   ac_status=$?
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); }; }; then
30529   eval "$as_ac_var=yes"
30530 else
30531   echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30533
30534 eval "$as_ac_var=no"
30535 fi
30536 rm -f conftest.err conftest.$ac_objext \
30537       conftest$ac_exeext conftest.$ac_ext
30538 fi
30539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30541 if test `eval echo '${'$as_ac_var'}'` = yes; then
30542   cat >>confdefs.h <<_ACEOF
30543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30544 _ACEOF
30545
30546 fi
30547 done
30548
30549
30550
30551
30552 for ac_func in putenv setenv
30553 do
30554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30555 echo "$as_me:$LINENO: checking for $ac_func" >&5
30556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30557 if eval "test \"\${$as_ac_var+set}\" = set"; then
30558   echo $ECHO_N "(cached) $ECHO_C" >&6
30559 else
30560   cat >conftest.$ac_ext <<_ACEOF
30561 /* confdefs.h.  */
30562 _ACEOF
30563 cat confdefs.h >>conftest.$ac_ext
30564 cat >>conftest.$ac_ext <<_ACEOF
30565 /* end confdefs.h.  */
30566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30568 #define $ac_func innocuous_$ac_func
30569
30570 /* System header to define __stub macros and hopefully few prototypes,
30571     which can conflict with char $ac_func (); below.
30572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30573     <limits.h> exists even on freestanding compilers.  */
30574
30575 #ifdef __STDC__
30576 # include <limits.h>
30577 #else
30578 # include <assert.h>
30579 #endif
30580
30581 #undef $ac_func
30582
30583 /* Override any gcc2 internal prototype to avoid an error.  */
30584 #ifdef __cplusplus
30585 extern "C"
30586 {
30587 #endif
30588 /* We use char because int might match the return type of a gcc2
30589    builtin and then its argument prototype would still apply.  */
30590 char $ac_func ();
30591 /* The GNU C library defines this for functions which it implements
30592     to always fail with ENOSYS.  Some functions are actually named
30593     something starting with __ and the normal name is an alias.  */
30594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30595 choke me
30596 #else
30597 char (*f) () = $ac_func;
30598 #endif
30599 #ifdef __cplusplus
30600 }
30601 #endif
30602
30603 int
30604 main ()
30605 {
30606 return f != $ac_func;
30607   ;
30608   return 0;
30609 }
30610 _ACEOF
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30613   (eval $ac_link) 2>conftest.er1
30614   ac_status=$?
30615   grep -v '^ *+' conftest.er1 >conftest.err
30616   rm -f conftest.er1
30617   cat conftest.err >&5
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); } &&
30620          { ac_try='test -z "$ac_c_werror_flag"
30621                          || test ! -s conftest.err'
30622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623   (eval $ac_try) 2>&5
30624   ac_status=$?
30625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626   (exit $ac_status); }; } &&
30627          { ac_try='test -s conftest$ac_exeext'
30628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629   (eval $ac_try) 2>&5
30630   ac_status=$?
30631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632   (exit $ac_status); }; }; then
30633   eval "$as_ac_var=yes"
30634 else
30635   echo "$as_me: failed program was:" >&5
30636 sed 's/^/| /' conftest.$ac_ext >&5
30637
30638 eval "$as_ac_var=no"
30639 fi
30640 rm -f conftest.err conftest.$ac_objext \
30641       conftest$ac_exeext conftest.$ac_ext
30642 fi
30643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30645 if test `eval echo '${'$as_ac_var'}'` = yes; then
30646   cat >>confdefs.h <<_ACEOF
30647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30648 _ACEOF
30649  break
30650 fi
30651 done
30652
30653
30654 HAVE_SOME_SLEEP_FUNC=0
30655 if test "$USE_BEOS" = 1; then
30656             cat >>confdefs.h <<\_ACEOF
30657 #define HAVE_SLEEP 1
30658 _ACEOF
30659
30660     HAVE_SOME_SLEEP_FUNC=1
30661 fi
30662
30663 if test "$USE_DARWIN" = 1; then
30664             cat >>confdefs.h <<\_ACEOF
30665 #define HAVE_USLEEP 1
30666 _ACEOF
30667
30668     HAVE_SOME_SLEEP_FUNC=1
30669 fi
30670
30671 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30672         POSIX4_LINK=
30673
30674 for ac_func in nanosleep
30675 do
30676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30677 echo "$as_me:$LINENO: checking for $ac_func" >&5
30678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30679 if eval "test \"\${$as_ac_var+set}\" = set"; then
30680   echo $ECHO_N "(cached) $ECHO_C" >&6
30681 else
30682   cat >conftest.$ac_ext <<_ACEOF
30683 /* confdefs.h.  */
30684 _ACEOF
30685 cat confdefs.h >>conftest.$ac_ext
30686 cat >>conftest.$ac_ext <<_ACEOF
30687 /* end confdefs.h.  */
30688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30690 #define $ac_func innocuous_$ac_func
30691
30692 /* System header to define __stub macros and hopefully few prototypes,
30693     which can conflict with char $ac_func (); below.
30694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30695     <limits.h> exists even on freestanding compilers.  */
30696
30697 #ifdef __STDC__
30698 # include <limits.h>
30699 #else
30700 # include <assert.h>
30701 #endif
30702
30703 #undef $ac_func
30704
30705 /* Override any gcc2 internal prototype to avoid an error.  */
30706 #ifdef __cplusplus
30707 extern "C"
30708 {
30709 #endif
30710 /* We use char because int might match the return type of a gcc2
30711    builtin and then its argument prototype would still apply.  */
30712 char $ac_func ();
30713 /* The GNU C library defines this for functions which it implements
30714     to always fail with ENOSYS.  Some functions are actually named
30715     something starting with __ and the normal name is an alias.  */
30716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30717 choke me
30718 #else
30719 char (*f) () = $ac_func;
30720 #endif
30721 #ifdef __cplusplus
30722 }
30723 #endif
30724
30725 int
30726 main ()
30727 {
30728 return f != $ac_func;
30729   ;
30730   return 0;
30731 }
30732 _ACEOF
30733 rm -f conftest.$ac_objext conftest$ac_exeext
30734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30735   (eval $ac_link) 2>conftest.er1
30736   ac_status=$?
30737   grep -v '^ *+' conftest.er1 >conftest.err
30738   rm -f conftest.er1
30739   cat conftest.err >&5
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); } &&
30742          { ac_try='test -z "$ac_c_werror_flag"
30743                          || test ! -s conftest.err'
30744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30745   (eval $ac_try) 2>&5
30746   ac_status=$?
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); }; } &&
30749          { ac_try='test -s conftest$ac_exeext'
30750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751   (eval $ac_try) 2>&5
30752   ac_status=$?
30753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754   (exit $ac_status); }; }; then
30755   eval "$as_ac_var=yes"
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760 eval "$as_ac_var=no"
30761 fi
30762 rm -f conftest.err conftest.$ac_objext \
30763       conftest$ac_exeext conftest.$ac_ext
30764 fi
30765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30767 if test `eval echo '${'$as_ac_var'}'` = yes; then
30768   cat >>confdefs.h <<_ACEOF
30769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770 _ACEOF
30771  cat >>confdefs.h <<\_ACEOF
30772 #define HAVE_NANOSLEEP 1
30773 _ACEOF
30774
30775 else
30776
30777             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30778 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30779 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30780   echo $ECHO_N "(cached) $ECHO_C" >&6
30781 else
30782   ac_check_lib_save_LIBS=$LIBS
30783 LIBS="-lposix4  $LIBS"
30784 cat >conftest.$ac_ext <<_ACEOF
30785 /* confdefs.h.  */
30786 _ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h.  */
30790
30791 /* Override any gcc2 internal prototype to avoid an error.  */
30792 #ifdef __cplusplus
30793 extern "C"
30794 #endif
30795 /* We use char because int might match the return type of a gcc2
30796    builtin and then its argument prototype would still apply.  */
30797 char nanosleep ();
30798 int
30799 main ()
30800 {
30801 nanosleep ();
30802   ;
30803   return 0;
30804 }
30805 _ACEOF
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30808   (eval $ac_link) 2>conftest.er1
30809   ac_status=$?
30810   grep -v '^ *+' conftest.er1 >conftest.err
30811   rm -f conftest.er1
30812   cat conftest.err >&5
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); } &&
30815          { ac_try='test -z "$ac_c_werror_flag"
30816                          || test ! -s conftest.err'
30817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30818   (eval $ac_try) 2>&5
30819   ac_status=$?
30820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821   (exit $ac_status); }; } &&
30822          { ac_try='test -s conftest$ac_exeext'
30823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30824   (eval $ac_try) 2>&5
30825   ac_status=$?
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); }; }; then
30828   ac_cv_lib_posix4_nanosleep=yes
30829 else
30830   echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833 ac_cv_lib_posix4_nanosleep=no
30834 fi
30835 rm -f conftest.err conftest.$ac_objext \
30836       conftest$ac_exeext conftest.$ac_ext
30837 LIBS=$ac_check_lib_save_LIBS
30838 fi
30839 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30840 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30841 if test $ac_cv_lib_posix4_nanosleep = yes; then
30842
30843                     cat >>confdefs.h <<\_ACEOF
30844 #define HAVE_NANOSLEEP 1
30845 _ACEOF
30846
30847                     POSIX4_LINK=" -lposix4"
30848
30849 else
30850
30851
30852 for ac_func in usleep
30853 do
30854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30855 echo "$as_me:$LINENO: checking for $ac_func" >&5
30856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30857 if eval "test \"\${$as_ac_var+set}\" = set"; then
30858   echo $ECHO_N "(cached) $ECHO_C" >&6
30859 else
30860   cat >conftest.$ac_ext <<_ACEOF
30861 /* confdefs.h.  */
30862 _ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h.  */
30866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30868 #define $ac_func innocuous_$ac_func
30869
30870 /* System header to define __stub macros and hopefully few prototypes,
30871     which can conflict with char $ac_func (); below.
30872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30873     <limits.h> exists even on freestanding compilers.  */
30874
30875 #ifdef __STDC__
30876 # include <limits.h>
30877 #else
30878 # include <assert.h>
30879 #endif
30880
30881 #undef $ac_func
30882
30883 /* Override any gcc2 internal prototype to avoid an error.  */
30884 #ifdef __cplusplus
30885 extern "C"
30886 {
30887 #endif
30888 /* We use char because int might match the return type of a gcc2
30889    builtin and then its argument prototype would still apply.  */
30890 char $ac_func ();
30891 /* The GNU C library defines this for functions which it implements
30892     to always fail with ENOSYS.  Some functions are actually named
30893     something starting with __ and the normal name is an alias.  */
30894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30895 choke me
30896 #else
30897 char (*f) () = $ac_func;
30898 #endif
30899 #ifdef __cplusplus
30900 }
30901 #endif
30902
30903 int
30904 main ()
30905 {
30906 return f != $ac_func;
30907   ;
30908   return 0;
30909 }
30910 _ACEOF
30911 rm -f conftest.$ac_objext conftest$ac_exeext
30912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30913   (eval $ac_link) 2>conftest.er1
30914   ac_status=$?
30915   grep -v '^ *+' conftest.er1 >conftest.err
30916   rm -f conftest.er1
30917   cat conftest.err >&5
30918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919   (exit $ac_status); } &&
30920          { ac_try='test -z "$ac_c_werror_flag"
30921                          || test ! -s conftest.err'
30922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30923   (eval $ac_try) 2>&5
30924   ac_status=$?
30925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926   (exit $ac_status); }; } &&
30927          { ac_try='test -s conftest$ac_exeext'
30928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30929   (eval $ac_try) 2>&5
30930   ac_status=$?
30931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932   (exit $ac_status); }; }; then
30933   eval "$as_ac_var=yes"
30934 else
30935   echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.$ac_ext >&5
30937
30938 eval "$as_ac_var=no"
30939 fi
30940 rm -f conftest.err conftest.$ac_objext \
30941       conftest$ac_exeext conftest.$ac_ext
30942 fi
30943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30945 if test `eval echo '${'$as_ac_var'}'` = yes; then
30946   cat >>confdefs.h <<_ACEOF
30947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30948 _ACEOF
30949  cat >>confdefs.h <<\_ACEOF
30950 #define HAVE_USLEEP 1
30951 _ACEOF
30952
30953 else
30954   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30955 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30956
30957 fi
30958 done
30959
30960
30961
30962 fi
30963
30964
30965
30966 fi
30967 done
30968
30969 fi
30970
30971
30972
30973 for ac_func in uname gethostname
30974 do
30975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30976 echo "$as_me:$LINENO: checking for $ac_func" >&5
30977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30978 if eval "test \"\${$as_ac_var+set}\" = set"; then
30979   echo $ECHO_N "(cached) $ECHO_C" >&6
30980 else
30981   cat >conftest.$ac_ext <<_ACEOF
30982 /* confdefs.h.  */
30983 _ACEOF
30984 cat confdefs.h >>conftest.$ac_ext
30985 cat >>conftest.$ac_ext <<_ACEOF
30986 /* end confdefs.h.  */
30987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30989 #define $ac_func innocuous_$ac_func
30990
30991 /* System header to define __stub macros and hopefully few prototypes,
30992     which can conflict with char $ac_func (); below.
30993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30994     <limits.h> exists even on freestanding compilers.  */
30995
30996 #ifdef __STDC__
30997 # include <limits.h>
30998 #else
30999 # include <assert.h>
31000 #endif
31001
31002 #undef $ac_func
31003
31004 /* Override any gcc2 internal prototype to avoid an error.  */
31005 #ifdef __cplusplus
31006 extern "C"
31007 {
31008 #endif
31009 /* We use char because int might match the return type of a gcc2
31010    builtin and then its argument prototype would still apply.  */
31011 char $ac_func ();
31012 /* The GNU C library defines this for functions which it implements
31013     to always fail with ENOSYS.  Some functions are actually named
31014     something starting with __ and the normal name is an alias.  */
31015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31016 choke me
31017 #else
31018 char (*f) () = $ac_func;
31019 #endif
31020 #ifdef __cplusplus
31021 }
31022 #endif
31023
31024 int
31025 main ()
31026 {
31027 return f != $ac_func;
31028   ;
31029   return 0;
31030 }
31031 _ACEOF
31032 rm -f conftest.$ac_objext conftest$ac_exeext
31033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31034   (eval $ac_link) 2>conftest.er1
31035   ac_status=$?
31036   grep -v '^ *+' conftest.er1 >conftest.err
31037   rm -f conftest.er1
31038   cat conftest.err >&5
31039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040   (exit $ac_status); } &&
31041          { ac_try='test -z "$ac_c_werror_flag"
31042                          || test ! -s conftest.err'
31043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31044   (eval $ac_try) 2>&5
31045   ac_status=$?
31046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047   (exit $ac_status); }; } &&
31048          { ac_try='test -s conftest$ac_exeext'
31049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31050   (eval $ac_try) 2>&5
31051   ac_status=$?
31052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053   (exit $ac_status); }; }; then
31054   eval "$as_ac_var=yes"
31055 else
31056   echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31058
31059 eval "$as_ac_var=no"
31060 fi
31061 rm -f conftest.err conftest.$ac_objext \
31062       conftest$ac_exeext conftest.$ac_ext
31063 fi
31064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31066 if test `eval echo '${'$as_ac_var'}'` = yes; then
31067   cat >>confdefs.h <<_ACEOF
31068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31069 _ACEOF
31070  break
31071 fi
31072 done
31073
31074
31075
31076
31077 ac_ext=cc
31078 ac_cpp='$CXXCPP $CPPFLAGS'
31079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31082
31083
31084
31085 for ac_func in strtok_r
31086 do
31087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31088 echo "$as_me:$LINENO: checking for $ac_func" >&5
31089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31090 if eval "test \"\${$as_ac_var+set}\" = set"; then
31091   echo $ECHO_N "(cached) $ECHO_C" >&6
31092 else
31093   cat >conftest.$ac_ext <<_ACEOF
31094 /* confdefs.h.  */
31095 _ACEOF
31096 cat confdefs.h >>conftest.$ac_ext
31097 cat >>conftest.$ac_ext <<_ACEOF
31098 /* end confdefs.h.  */
31099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31101 #define $ac_func innocuous_$ac_func
31102
31103 /* System header to define __stub macros and hopefully few prototypes,
31104     which can conflict with char $ac_func (); below.
31105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31106     <limits.h> exists even on freestanding compilers.  */
31107
31108 #ifdef __STDC__
31109 # include <limits.h>
31110 #else
31111 # include <assert.h>
31112 #endif
31113
31114 #undef $ac_func
31115
31116 /* Override any gcc2 internal prototype to avoid an error.  */
31117 #ifdef __cplusplus
31118 extern "C"
31119 {
31120 #endif
31121 /* We use char because int might match the return type of a gcc2
31122    builtin and then its argument prototype would still apply.  */
31123 char $ac_func ();
31124 /* The GNU C library defines this for functions which it implements
31125     to always fail with ENOSYS.  Some functions are actually named
31126     something starting with __ and the normal name is an alias.  */
31127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31128 choke me
31129 #else
31130 char (*f) () = $ac_func;
31131 #endif
31132 #ifdef __cplusplus
31133 }
31134 #endif
31135
31136 int
31137 main ()
31138 {
31139 return f != $ac_func;
31140   ;
31141   return 0;
31142 }
31143 _ACEOF
31144 rm -f conftest.$ac_objext conftest$ac_exeext
31145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31146   (eval $ac_link) 2>conftest.er1
31147   ac_status=$?
31148   grep -v '^ *+' conftest.er1 >conftest.err
31149   rm -f conftest.er1
31150   cat conftest.err >&5
31151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31152   (exit $ac_status); } &&
31153          { ac_try='test -z "$ac_cxx_werror_flag"
31154                          || test ! -s conftest.err'
31155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156   (eval $ac_try) 2>&5
31157   ac_status=$?
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); }; } &&
31160          { ac_try='test -s conftest$ac_exeext'
31161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31162   (eval $ac_try) 2>&5
31163   ac_status=$?
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); }; }; then
31166   eval "$as_ac_var=yes"
31167 else
31168   echo "$as_me: failed program was:" >&5
31169 sed 's/^/| /' conftest.$ac_ext >&5
31170
31171 eval "$as_ac_var=no"
31172 fi
31173 rm -f conftest.err conftest.$ac_objext \
31174       conftest$ac_exeext conftest.$ac_ext
31175 fi
31176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31178 if test `eval echo '${'$as_ac_var'}'` = yes; then
31179   cat >>confdefs.h <<_ACEOF
31180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31181 _ACEOF
31182
31183 fi
31184 done
31185
31186
31187 ac_ext=c
31188 ac_cpp='$CPP $CPPFLAGS'
31189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31192
31193
31194 INET_LINK=
31195
31196 for ac_func in inet_addr
31197 do
31198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199 echo "$as_me:$LINENO: checking for $ac_func" >&5
31200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31201 if eval "test \"\${$as_ac_var+set}\" = set"; then
31202   echo $ECHO_N "(cached) $ECHO_C" >&6
31203 else
31204   cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31212 #define $ac_func innocuous_$ac_func
31213
31214 /* System header to define __stub macros and hopefully few prototypes,
31215     which can conflict with char $ac_func (); below.
31216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217     <limits.h> exists even on freestanding compilers.  */
31218
31219 #ifdef __STDC__
31220 # include <limits.h>
31221 #else
31222 # include <assert.h>
31223 #endif
31224
31225 #undef $ac_func
31226
31227 /* Override any gcc2 internal prototype to avoid an error.  */
31228 #ifdef __cplusplus
31229 extern "C"
31230 {
31231 #endif
31232 /* We use char because int might match the return type of a gcc2
31233    builtin and then its argument prototype would still apply.  */
31234 char $ac_func ();
31235 /* The GNU C library defines this for functions which it implements
31236     to always fail with ENOSYS.  Some functions are actually named
31237     something starting with __ and the normal name is an alias.  */
31238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31239 choke me
31240 #else
31241 char (*f) () = $ac_func;
31242 #endif
31243 #ifdef __cplusplus
31244 }
31245 #endif
31246
31247 int
31248 main ()
31249 {
31250 return f != $ac_func;
31251   ;
31252   return 0;
31253 }
31254 _ACEOF
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31257   (eval $ac_link) 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } &&
31264          { ac_try='test -z "$ac_c_werror_flag"
31265                          || test ! -s conftest.err'
31266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267   (eval $ac_try) 2>&5
31268   ac_status=$?
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); }; } &&
31271          { ac_try='test -s conftest$ac_exeext'
31272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31273   (eval $ac_try) 2>&5
31274   ac_status=$?
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); }; }; then
31277   eval "$as_ac_var=yes"
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282 eval "$as_ac_var=no"
31283 fi
31284 rm -f conftest.err conftest.$ac_objext \
31285       conftest$ac_exeext conftest.$ac_ext
31286 fi
31287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31289 if test `eval echo '${'$as_ac_var'}'` = yes; then
31290   cat >>confdefs.h <<_ACEOF
31291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31292 _ACEOF
31293  cat >>confdefs.h <<\_ACEOF
31294 #define HAVE_INET_ADDR 1
31295 _ACEOF
31296
31297 else
31298
31299         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31300 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31301 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31302   echo $ECHO_N "(cached) $ECHO_C" >&6
31303 else
31304   ac_check_lib_save_LIBS=$LIBS
31305 LIBS="-lnsl  $LIBS"
31306 cat >conftest.$ac_ext <<_ACEOF
31307 /* confdefs.h.  */
31308 _ACEOF
31309 cat confdefs.h >>conftest.$ac_ext
31310 cat >>conftest.$ac_ext <<_ACEOF
31311 /* end confdefs.h.  */
31312
31313 /* Override any gcc2 internal prototype to avoid an error.  */
31314 #ifdef __cplusplus
31315 extern "C"
31316 #endif
31317 /* We use char because int might match the return type of a gcc2
31318    builtin and then its argument prototype would still apply.  */
31319 char inet_addr ();
31320 int
31321 main ()
31322 {
31323 inet_addr ();
31324   ;
31325   return 0;
31326 }
31327 _ACEOF
31328 rm -f conftest.$ac_objext conftest$ac_exeext
31329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31330   (eval $ac_link) 2>conftest.er1
31331   ac_status=$?
31332   grep -v '^ *+' conftest.er1 >conftest.err
31333   rm -f conftest.er1
31334   cat conftest.err >&5
31335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336   (exit $ac_status); } &&
31337          { ac_try='test -z "$ac_c_werror_flag"
31338                          || test ! -s conftest.err'
31339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340   (eval $ac_try) 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; } &&
31344          { ac_try='test -s conftest$ac_exeext'
31345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346   (eval $ac_try) 2>&5
31347   ac_status=$?
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); }; }; then
31350   ac_cv_lib_nsl_inet_addr=yes
31351 else
31352   echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31354
31355 ac_cv_lib_nsl_inet_addr=no
31356 fi
31357 rm -f conftest.err conftest.$ac_objext \
31358       conftest$ac_exeext conftest.$ac_ext
31359 LIBS=$ac_check_lib_save_LIBS
31360 fi
31361 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31362 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31363 if test $ac_cv_lib_nsl_inet_addr = yes; then
31364   INET_LINK="nsl"
31365 else
31366
31367                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31368 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31369 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31370   echo $ECHO_N "(cached) $ECHO_C" >&6
31371 else
31372   ac_check_lib_save_LIBS=$LIBS
31373 LIBS="-lresolv  $LIBS"
31374 cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380
31381 /* Override any gcc2 internal prototype to avoid an error.  */
31382 #ifdef __cplusplus
31383 extern "C"
31384 #endif
31385 /* We use char because int might match the return type of a gcc2
31386    builtin and then its argument prototype would still apply.  */
31387 char inet_addr ();
31388 int
31389 main ()
31390 {
31391 inet_addr ();
31392   ;
31393   return 0;
31394 }
31395 _ACEOF
31396 rm -f conftest.$ac_objext conftest$ac_exeext
31397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31398   (eval $ac_link) 2>conftest.er1
31399   ac_status=$?
31400   grep -v '^ *+' conftest.er1 >conftest.err
31401   rm -f conftest.er1
31402   cat conftest.err >&5
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); } &&
31405          { ac_try='test -z "$ac_c_werror_flag"
31406                          || test ! -s conftest.err'
31407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408   (eval $ac_try) 2>&5
31409   ac_status=$?
31410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); }; } &&
31412          { ac_try='test -s conftest$ac_exeext'
31413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414   (eval $ac_try) 2>&5
31415   ac_status=$?
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); }; }; then
31418   ac_cv_lib_resolv_inet_addr=yes
31419 else
31420   echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31422
31423 ac_cv_lib_resolv_inet_addr=no
31424 fi
31425 rm -f conftest.err conftest.$ac_objext \
31426       conftest$ac_exeext conftest.$ac_ext
31427 LIBS=$ac_check_lib_save_LIBS
31428 fi
31429 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31430 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31431 if test $ac_cv_lib_resolv_inet_addr = yes; then
31432   INET_LINK="resolv"
31433 else
31434
31435                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31436 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31437 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31438   echo $ECHO_N "(cached) $ECHO_C" >&6
31439 else
31440   ac_check_lib_save_LIBS=$LIBS
31441 LIBS="-lsocket  $LIBS"
31442 cat >conftest.$ac_ext <<_ACEOF
31443 /* confdefs.h.  */
31444 _ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h.  */
31448
31449 /* Override any gcc2 internal prototype to avoid an error.  */
31450 #ifdef __cplusplus
31451 extern "C"
31452 #endif
31453 /* We use char because int might match the return type of a gcc2
31454    builtin and then its argument prototype would still apply.  */
31455 char inet_addr ();
31456 int
31457 main ()
31458 {
31459 inet_addr ();
31460   ;
31461   return 0;
31462 }
31463 _ACEOF
31464 rm -f conftest.$ac_objext conftest$ac_exeext
31465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31466   (eval $ac_link) 2>conftest.er1
31467   ac_status=$?
31468   grep -v '^ *+' conftest.er1 >conftest.err
31469   rm -f conftest.er1
31470   cat conftest.err >&5
31471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472   (exit $ac_status); } &&
31473          { ac_try='test -z "$ac_c_werror_flag"
31474                          || test ! -s conftest.err'
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); }; } &&
31480          { ac_try='test -s conftest$ac_exeext'
31481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31482   (eval $ac_try) 2>&5
31483   ac_status=$?
31484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485   (exit $ac_status); }; }; then
31486   ac_cv_lib_socket_inet_addr=yes
31487 else
31488   echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.$ac_ext >&5
31490
31491 ac_cv_lib_socket_inet_addr=no
31492 fi
31493 rm -f conftest.err conftest.$ac_objext \
31494       conftest$ac_exeext conftest.$ac_ext
31495 LIBS=$ac_check_lib_save_LIBS
31496 fi
31497 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31498 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31499 if test $ac_cv_lib_socket_inet_addr = yes; then
31500   INET_LINK="socket"
31501
31502 fi
31503
31504
31505
31506 fi
31507
31508
31509
31510 fi
31511
31512
31513
31514 fi
31515 done
31516
31517
31518
31519 for ac_func in inet_aton
31520 do
31521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31522 echo "$as_me:$LINENO: checking for $ac_func" >&5
31523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31524 if eval "test \"\${$as_ac_var+set}\" = set"; then
31525   echo $ECHO_N "(cached) $ECHO_C" >&6
31526 else
31527   cat >conftest.$ac_ext <<_ACEOF
31528 /* confdefs.h.  */
31529 _ACEOF
31530 cat confdefs.h >>conftest.$ac_ext
31531 cat >>conftest.$ac_ext <<_ACEOF
31532 /* end confdefs.h.  */
31533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31535 #define $ac_func innocuous_$ac_func
31536
31537 /* System header to define __stub macros and hopefully few prototypes,
31538     which can conflict with char $ac_func (); below.
31539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31540     <limits.h> exists even on freestanding compilers.  */
31541
31542 #ifdef __STDC__
31543 # include <limits.h>
31544 #else
31545 # include <assert.h>
31546 #endif
31547
31548 #undef $ac_func
31549
31550 /* Override any gcc2 internal prototype to avoid an error.  */
31551 #ifdef __cplusplus
31552 extern "C"
31553 {
31554 #endif
31555 /* We use char because int might match the return type of a gcc2
31556    builtin and then its argument prototype would still apply.  */
31557 char $ac_func ();
31558 /* The GNU C library defines this for functions which it implements
31559     to always fail with ENOSYS.  Some functions are actually named
31560     something starting with __ and the normal name is an alias.  */
31561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31562 choke me
31563 #else
31564 char (*f) () = $ac_func;
31565 #endif
31566 #ifdef __cplusplus
31567 }
31568 #endif
31569
31570 int
31571 main ()
31572 {
31573 return f != $ac_func;
31574   ;
31575   return 0;
31576 }
31577 _ACEOF
31578 rm -f conftest.$ac_objext conftest$ac_exeext
31579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31580   (eval $ac_link) 2>conftest.er1
31581   ac_status=$?
31582   grep -v '^ *+' conftest.er1 >conftest.err
31583   rm -f conftest.er1
31584   cat conftest.err >&5
31585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586   (exit $ac_status); } &&
31587          { ac_try='test -z "$ac_c_werror_flag"
31588                          || test ! -s conftest.err'
31589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31590   (eval $ac_try) 2>&5
31591   ac_status=$?
31592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593   (exit $ac_status); }; } &&
31594          { ac_try='test -s conftest$ac_exeext'
31595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31596   (eval $ac_try) 2>&5
31597   ac_status=$?
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); }; }; then
31600   eval "$as_ac_var=yes"
31601 else
31602   echo "$as_me: failed program was:" >&5
31603 sed 's/^/| /' conftest.$ac_ext >&5
31604
31605 eval "$as_ac_var=no"
31606 fi
31607 rm -f conftest.err conftest.$ac_objext \
31608       conftest$ac_exeext conftest.$ac_ext
31609 fi
31610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31612 if test `eval echo '${'$as_ac_var'}'` = yes; then
31613   cat >>confdefs.h <<_ACEOF
31614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31615 _ACEOF
31616  cat >>confdefs.h <<\_ACEOF
31617 #define HAVE_INET_ATON 1
31618 _ACEOF
31619
31620 else
31621
31622                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31623 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31624 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31625 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31626   echo $ECHO_N "(cached) $ECHO_C" >&6
31627 else
31628   ac_check_lib_save_LIBS=$LIBS
31629 LIBS="-l$INET_LINK  $LIBS"
31630 cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h.  */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h.  */
31636
31637 /* Override any gcc2 internal prototype to avoid an error.  */
31638 #ifdef __cplusplus
31639 extern "C"
31640 #endif
31641 /* We use char because int might match the return type of a gcc2
31642    builtin and then its argument prototype would still apply.  */
31643 char inet_aton ();
31644 int
31645 main ()
31646 {
31647 inet_aton ();
31648   ;
31649   return 0;
31650 }
31651 _ACEOF
31652 rm -f conftest.$ac_objext conftest$ac_exeext
31653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31654   (eval $ac_link) 2>conftest.er1
31655   ac_status=$?
31656   grep -v '^ *+' conftest.er1 >conftest.err
31657   rm -f conftest.er1
31658   cat conftest.err >&5
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); } &&
31661          { ac_try='test -z "$ac_c_werror_flag"
31662                          || test ! -s conftest.err'
31663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31664   (eval $ac_try) 2>&5
31665   ac_status=$?
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); }; } &&
31668          { ac_try='test -s conftest$ac_exeext'
31669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670   (eval $ac_try) 2>&5
31671   ac_status=$?
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); }; }; then
31674   eval "$as_ac_Lib=yes"
31675 else
31676   echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31678
31679 eval "$as_ac_Lib=no"
31680 fi
31681 rm -f conftest.err conftest.$ac_objext \
31682       conftest$ac_exeext conftest.$ac_ext
31683 LIBS=$ac_check_lib_save_LIBS
31684 fi
31685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31686 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31687 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31688   cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_INET_ATON 1
31690 _ACEOF
31691
31692 fi
31693
31694
31695 fi
31696 done
31697
31698
31699 if test "x$INET_LINK" != "x"; then
31700     cat >>confdefs.h <<\_ACEOF
31701 #define HAVE_INET_ADDR 1
31702 _ACEOF
31703
31704     INET_LINK=" -l$INET_LINK"
31705 fi
31706
31707 fi
31708
31709
31710
31711 EXTRALIBS_ESD=
31712 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31713 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31714 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31715   echo $ECHO_N "(cached) $ECHO_C" >&6
31716 else
31717   ac_check_lib_save_LIBS=$LIBS
31718 LIBS="-lesd  $LIBS"
31719 cat >conftest.$ac_ext <<_ACEOF
31720 /* confdefs.h.  */
31721 _ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h.  */
31725
31726 /* Override any gcc2 internal prototype to avoid an error.  */
31727 #ifdef __cplusplus
31728 extern "C"
31729 #endif
31730 /* We use char because int might match the return type of a gcc2
31731    builtin and then its argument prototype would still apply.  */
31732 char esd_close ();
31733 int
31734 main ()
31735 {
31736 esd_close ();
31737   ;
31738   return 0;
31739 }
31740 _ACEOF
31741 rm -f conftest.$ac_objext conftest$ac_exeext
31742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31743   (eval $ac_link) 2>conftest.er1
31744   ac_status=$?
31745   grep -v '^ *+' conftest.er1 >conftest.err
31746   rm -f conftest.er1
31747   cat conftest.err >&5
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); } &&
31750          { ac_try='test -z "$ac_c_werror_flag"
31751                          || test ! -s conftest.err'
31752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753   (eval $ac_try) 2>&5
31754   ac_status=$?
31755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756   (exit $ac_status); }; } &&
31757          { ac_try='test -s conftest$ac_exeext'
31758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759   (eval $ac_try) 2>&5
31760   ac_status=$?
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); }; }; then
31763   ac_cv_lib_esd_esd_close=yes
31764 else
31765   echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31767
31768 ac_cv_lib_esd_esd_close=no
31769 fi
31770 rm -f conftest.err conftest.$ac_objext \
31771       conftest$ac_exeext conftest.$ac_ext
31772 LIBS=$ac_check_lib_save_LIBS
31773 fi
31774 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31775 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31776 if test $ac_cv_lib_esd_esd_close = yes; then
31777
31778
31779 for ac_header in esd.h
31780 do
31781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31783   echo "$as_me:$LINENO: checking for $ac_header" >&5
31784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31786   echo $ECHO_N "(cached) $ECHO_C" >&6
31787 fi
31788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31790 else
31791   # Is the header compilable?
31792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31794 cat >conftest.$ac_ext <<_ACEOF
31795 /* confdefs.h.  */
31796 _ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h.  */
31800 $ac_includes_default
31801 #include <$ac_header>
31802 _ACEOF
31803 rm -f conftest.$ac_objext
31804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31805   (eval $ac_compile) 2>conftest.er1
31806   ac_status=$?
31807   grep -v '^ *+' conftest.er1 >conftest.err
31808   rm -f conftest.er1
31809   cat conftest.err >&5
31810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811   (exit $ac_status); } &&
31812          { ac_try='test -z "$ac_c_werror_flag"
31813                          || test ! -s conftest.err'
31814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815   (eval $ac_try) 2>&5
31816   ac_status=$?
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); }; } &&
31819          { ac_try='test -s conftest.$ac_objext'
31820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821   (eval $ac_try) 2>&5
31822   ac_status=$?
31823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824   (exit $ac_status); }; }; then
31825   ac_header_compiler=yes
31826 else
31827   echo "$as_me: failed program was:" >&5
31828 sed 's/^/| /' conftest.$ac_ext >&5
31829
31830 ac_header_compiler=no
31831 fi
31832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31834 echo "${ECHO_T}$ac_header_compiler" >&6
31835
31836 # Is the header present?
31837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31839 cat >conftest.$ac_ext <<_ACEOF
31840 /* confdefs.h.  */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h.  */
31845 #include <$ac_header>
31846 _ACEOF
31847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31849   ac_status=$?
31850   grep -v '^ *+' conftest.er1 >conftest.err
31851   rm -f conftest.er1
31852   cat conftest.err >&5
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); } >/dev/null; then
31855   if test -s conftest.err; then
31856     ac_cpp_err=$ac_c_preproc_warn_flag
31857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31858   else
31859     ac_cpp_err=
31860   fi
31861 else
31862   ac_cpp_err=yes
31863 fi
31864 if test -z "$ac_cpp_err"; then
31865   ac_header_preproc=yes
31866 else
31867   echo "$as_me: failed program was:" >&5
31868 sed 's/^/| /' conftest.$ac_ext >&5
31869
31870   ac_header_preproc=no
31871 fi
31872 rm -f conftest.err conftest.$ac_ext
31873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31874 echo "${ECHO_T}$ac_header_preproc" >&6
31875
31876 # So?  What about this header?
31877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31878   yes:no: )
31879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31883     ac_header_preproc=yes
31884     ;;
31885   no:yes:* )
31886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31898     (
31899       cat <<\_ASBOX
31900 ## ----------------------------------------- ##
31901 ## Report this to wx-dev@lists.wxwindows.org ##
31902 ## ----------------------------------------- ##
31903 _ASBOX
31904     ) |
31905       sed "s/^/$as_me: WARNING:     /" >&2
31906     ;;
31907 esac
31908 echo "$as_me:$LINENO: checking for $ac_header" >&5
31909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31911   echo $ECHO_N "(cached) $ECHO_C" >&6
31912 else
31913   eval "$as_ac_Header=\$ac_header_preproc"
31914 fi
31915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31917
31918 fi
31919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31920   cat >>confdefs.h <<_ACEOF
31921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31922 _ACEOF
31923
31924     EXTRALIBS_ESD="-lesd"
31925
31926 fi
31927
31928 done
31929
31930
31931 fi
31932
31933
31934
31935 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31936 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31937 cat >conftest.$ac_ext <<_ACEOF
31938 /* confdefs.h.  */
31939 _ACEOF
31940 cat confdefs.h >>conftest.$ac_ext
31941 cat >>conftest.$ac_ext <<_ACEOF
31942 /* end confdefs.h.  */
31943 #ifdef __linux__
31944                 #include <linux/cdrom.h>
31945                 #else
31946                 /* For Solaris */
31947                 #include <sys/cdio.h>
31948                 #endif
31949
31950 int
31951 main ()
31952 {
31953 struct cdrom_tocentry entry, old_entry;
31954   ;
31955   return 0;
31956 }
31957 _ACEOF
31958 rm -f conftest.$ac_objext
31959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31960   (eval $ac_compile) 2>conftest.er1
31961   ac_status=$?
31962   grep -v '^ *+' conftest.er1 >conftest.err
31963   rm -f conftest.er1
31964   cat conftest.err >&5
31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966   (exit $ac_status); } &&
31967          { ac_try='test -z "$ac_c_werror_flag"
31968                          || test ! -s conftest.err'
31969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31970   (eval $ac_try) 2>&5
31971   ac_status=$?
31972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973   (exit $ac_status); }; } &&
31974          { ac_try='test -s conftest.$ac_objext'
31975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31976   (eval $ac_try) 2>&5
31977   ac_status=$?
31978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979   (exit $ac_status); }; }; then
31980   echo "$as_me:$LINENO: result: yes" >&5
31981 echo "${ECHO_T}yes" >&6
31982                 cat >>confdefs.h <<\_ACEOF
31983 #define HAVE_KNOWN_CDROM_INTERFACE 1
31984 _ACEOF
31985
31986 else
31987   echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31989
31990 echo "$as_me:$LINENO: result: no" >&5
31991 echo "${ECHO_T}no" >&6
31992 fi
31993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31994
31995
31996 cat >confcache <<\_ACEOF
31997 # This file is a shell script that caches the results of configure
31998 # tests run on this system so they can be shared between configure
31999 # scripts and configure runs, see configure's option --config-cache.
32000 # It is not useful on other systems.  If it contains results you don't
32001 # want to keep, you may remove or edit it.
32002 #
32003 # config.status only pays attention to the cache file if you give it
32004 # the --recheck option to rerun configure.
32005 #
32006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32008 # following values.
32009
32010 _ACEOF
32011
32012 # The following way of writing the cache mishandles newlines in values,
32013 # but we know of no workaround that is simple, portable, and efficient.
32014 # So, don't put newlines in cache variables' values.
32015 # Ultrix sh set writes to stderr and can't be redirected directly,
32016 # and sets the high bit in the cache file unless we assign to the vars.
32017 {
32018   (set) 2>&1 |
32019     case `(ac_space=' '; set | grep ac_space) 2>&1` in
32020     *ac_space=\ *)
32021       # `set' does not quote correctly, so add quotes (double-quote
32022       # substitution turns \\\\ into \\, and sed turns \\ into \).
32023       sed -n \
32024         "s/'/'\\\\''/g;
32025           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32026       ;;
32027     *)
32028       # `set' quotes correctly as required by POSIX, so do not add quotes.
32029       sed -n \
32030         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32031       ;;
32032     esac;
32033 } |
32034   sed '
32035      t clear
32036      : clear
32037      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32038      t end
32039      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32040      : end' >>confcache
32041 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32042   if test -w $cache_file; then
32043     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32044     cat confcache >$cache_file
32045   else
32046     echo "not updating unwritable cache $cache_file"
32047   fi
32048 fi
32049 rm -f confcache
32050
32051
32052 CPP_MT_FLAG=
32053 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32054
32055
32056     THREADS_LINK=
32057     THREADS_CFLAGS=
32058
32059     if test "$wxUSE_THREADS" = "yes" ; then
32060         if test "$USE_BEOS" = 1; then
32061             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32062 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32063             wxUSE_THREADS="no"
32064         fi
32065     fi
32066
32067     if test "$wxUSE_THREADS" = "yes" ; then
32068
32069
32070                                 THREAD_OPTS="-pthread"
32071         case "${host}" in
32072           *-*-solaris2* | *-*-sunos4* )
32073                 if test "x$GCC" = "xyes"; then
32074                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
32075                 else
32076                     THREAD_OPTS="-mt $THREAD_OPTS"
32077                 fi
32078                 ;;
32079           *-*-freebsd*)
32080                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32081                 ;;
32082           *-*-darwin* | *-*-cygwin* )
32083                                                 THREAD_OPTS=""
32084                 ;;
32085           *-*-aix*)
32086                                 THREAD_OPTS="pthreads"
32087                 ;;
32088           *-hp-hpux* )
32089                                                                 if test "x$GCC" != "xyes"; then
32090                     THREAD_OPTS=""
32091                 fi
32092                 ;;
32093
32094           *-*-irix* )
32095                                                                 if test "x$GCC" = "xyes"; then
32096                     THREAD_OPTS=""
32097                 fi
32098                 ;;
32099
32100           *-*-*UnixWare*)
32101                                 if test "x$GCC" != "xyes"; then
32102                     THREAD_OPTS="-Ethread"
32103                 fi
32104                 ;;
32105         esac
32106
32107                                 THREAD_OPTS="$THREAD_OPTS pthread none"
32108
32109                 THREADS_OK=no
32110         for flag in $THREAD_OPTS; do
32111             case $flag in
32112                 none)
32113                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32114 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32115                     ;;
32116
32117                 -*)
32118                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32119 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32120                     THREADS_CFLAGS="$flag"
32121                     ;;
32122
32123                 *)
32124                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32125 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32126                     THREADS_LINK="-l$flag"
32127                     ;;
32128               esac
32129
32130               save_LIBS="$LIBS"
32131               save_CFLAGS="$CFLAGS"
32132               LIBS="$THREADS_LINK $LIBS"
32133               CFLAGS="$THREADS_CFLAGS $CFLAGS"
32134
32135               cat >conftest.$ac_ext <<_ACEOF
32136 /* confdefs.h.  */
32137 _ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h.  */
32141 #include <pthread.h>
32142 int
32143 main ()
32144 {
32145 pthread_create(0,0,0,0);
32146   ;
32147   return 0;
32148 }
32149 _ACEOF
32150 rm -f conftest.$ac_objext conftest$ac_exeext
32151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32152   (eval $ac_link) 2>conftest.er1
32153   ac_status=$?
32154   grep -v '^ *+' conftest.er1 >conftest.err
32155   rm -f conftest.er1
32156   cat conftest.err >&5
32157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32158   (exit $ac_status); } &&
32159          { ac_try='test -z "$ac_c_werror_flag"
32160                          || test ! -s conftest.err'
32161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32162   (eval $ac_try) 2>&5
32163   ac_status=$?
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); }; } &&
32166          { ac_try='test -s conftest$ac_exeext'
32167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32168   (eval $ac_try) 2>&5
32169   ac_status=$?
32170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171   (exit $ac_status); }; }; then
32172   THREADS_OK=yes
32173 else
32174   echo "$as_me: failed program was:" >&5
32175 sed 's/^/| /' conftest.$ac_ext >&5
32176
32177 fi
32178 rm -f conftest.err conftest.$ac_objext \
32179       conftest$ac_exeext conftest.$ac_ext
32180
32181               LIBS="$save_LIBS"
32182               CFLAGS="$save_CFLAGS"
32183
32184               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32185 echo "${ECHO_T}$THREADS_OK" >&6
32186               if test "x$THREADS_OK" = "xyes"; then
32187                       break;
32188               fi
32189
32190               THREADS_LINK=""
32191               THREADS_CFLAGS=""
32192       done
32193
32194       if test "x$THREADS_OK" != "xyes"; then
32195           wxUSE_THREADS=no
32196           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32197 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32198       else
32199                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32200           LIBS="$THREADS_LINK $LIBS"
32201
32202           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32203 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32204           flag=no
32205           case "${host}" in
32206             *-aix*)
32207                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32208                 flag="-D_THREAD_SAFE"
32209                 ;;
32210             *-freebsd*)
32211                 flag="-D_THREAD_SAFE"
32212                 ;;
32213             *-hp-hpux* )
32214                 flag="-D_REENTRANT"
32215                 if test "x$GCC" != "xyes"; then
32216                                         flag="$flag -D_RWSTD_MULTI_THREAD"
32217                 fi
32218                 ;;
32219             *solaris* | alpha*-osf*)
32220                 flag="-D_REENTRANT"
32221                 ;;
32222           esac
32223           echo "$as_me:$LINENO: result: ${flag}" >&5
32224 echo "${ECHO_T}${flag}" >&6
32225           if test "x$flag" != xno; then
32226               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32227           fi
32228
32229           if test "x$THREADS_CFLAGS" != "x"; then
32230                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
32231             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32232           fi
32233       fi
32234     fi
32235
32236         if test "$wxUSE_THREADS" = "yes" ; then
32237
32238 for ac_func in thr_setconcurrency
32239 do
32240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32241 echo "$as_me:$LINENO: checking for $ac_func" >&5
32242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32243 if eval "test \"\${$as_ac_var+set}\" = set"; then
32244   echo $ECHO_N "(cached) $ECHO_C" >&6
32245 else
32246   cat >conftest.$ac_ext <<_ACEOF
32247 /* confdefs.h.  */
32248 _ACEOF
32249 cat confdefs.h >>conftest.$ac_ext
32250 cat >>conftest.$ac_ext <<_ACEOF
32251 /* end confdefs.h.  */
32252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32254 #define $ac_func innocuous_$ac_func
32255
32256 /* System header to define __stub macros and hopefully few prototypes,
32257     which can conflict with char $ac_func (); below.
32258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32259     <limits.h> exists even on freestanding compilers.  */
32260
32261 #ifdef __STDC__
32262 # include <limits.h>
32263 #else
32264 # include <assert.h>
32265 #endif
32266
32267 #undef $ac_func
32268
32269 /* Override any gcc2 internal prototype to avoid an error.  */
32270 #ifdef __cplusplus
32271 extern "C"
32272 {
32273 #endif
32274 /* We use char because int might match the return type of a gcc2
32275    builtin and then its argument prototype would still apply.  */
32276 char $ac_func ();
32277 /* The GNU C library defines this for functions which it implements
32278     to always fail with ENOSYS.  Some functions are actually named
32279     something starting with __ and the normal name is an alias.  */
32280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32281 choke me
32282 #else
32283 char (*f) () = $ac_func;
32284 #endif
32285 #ifdef __cplusplus
32286 }
32287 #endif
32288
32289 int
32290 main ()
32291 {
32292 return f != $ac_func;
32293   ;
32294   return 0;
32295 }
32296 _ACEOF
32297 rm -f conftest.$ac_objext conftest$ac_exeext
32298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32299   (eval $ac_link) 2>conftest.er1
32300   ac_status=$?
32301   grep -v '^ *+' conftest.er1 >conftest.err
32302   rm -f conftest.er1
32303   cat conftest.err >&5
32304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305   (exit $ac_status); } &&
32306          { ac_try='test -z "$ac_c_werror_flag"
32307                          || test ! -s conftest.err'
32308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309   (eval $ac_try) 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; } &&
32313          { ac_try='test -s conftest$ac_exeext'
32314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32315   (eval $ac_try) 2>&5
32316   ac_status=$?
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); }; }; then
32319   eval "$as_ac_var=yes"
32320 else
32321   echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32323
32324 eval "$as_ac_var=no"
32325 fi
32326 rm -f conftest.err conftest.$ac_objext \
32327       conftest$ac_exeext conftest.$ac_ext
32328 fi
32329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32331 if test `eval echo '${'$as_ac_var'}'` = yes; then
32332   cat >>confdefs.h <<_ACEOF
32333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32334 _ACEOF
32335
32336 fi
32337 done
32338
32339
32340
32341 for ac_header in sched.h
32342 do
32343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32345   echo "$as_me:$LINENO: checking for $ac_header" >&5
32346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32348   echo $ECHO_N "(cached) $ECHO_C" >&6
32349 fi
32350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32352 else
32353   # Is the header compilable?
32354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32356 cat >conftest.$ac_ext <<_ACEOF
32357 /* confdefs.h.  */
32358 _ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h.  */
32362 $ac_includes_default
32363 #include <$ac_header>
32364 _ACEOF
32365 rm -f conftest.$ac_objext
32366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32367   (eval $ac_compile) 2>conftest.er1
32368   ac_status=$?
32369   grep -v '^ *+' conftest.er1 >conftest.err
32370   rm -f conftest.er1
32371   cat conftest.err >&5
32372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373   (exit $ac_status); } &&
32374          { ac_try='test -z "$ac_c_werror_flag"
32375                          || test ! -s conftest.err'
32376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32377   (eval $ac_try) 2>&5
32378   ac_status=$?
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); }; } &&
32381          { ac_try='test -s conftest.$ac_objext'
32382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32383   (eval $ac_try) 2>&5
32384   ac_status=$?
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); }; }; then
32387   ac_header_compiler=yes
32388 else
32389   echo "$as_me: failed program was:" >&5
32390 sed 's/^/| /' conftest.$ac_ext >&5
32391
32392 ac_header_compiler=no
32393 fi
32394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32396 echo "${ECHO_T}$ac_header_compiler" >&6
32397
32398 # Is the header present?
32399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32401 cat >conftest.$ac_ext <<_ACEOF
32402 /* confdefs.h.  */
32403 _ACEOF
32404 cat confdefs.h >>conftest.$ac_ext
32405 cat >>conftest.$ac_ext <<_ACEOF
32406 /* end confdefs.h.  */
32407 #include <$ac_header>
32408 _ACEOF
32409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32411   ac_status=$?
32412   grep -v '^ *+' conftest.er1 >conftest.err
32413   rm -f conftest.er1
32414   cat conftest.err >&5
32415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416   (exit $ac_status); } >/dev/null; then
32417   if test -s conftest.err; then
32418     ac_cpp_err=$ac_c_preproc_warn_flag
32419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32420   else
32421     ac_cpp_err=
32422   fi
32423 else
32424   ac_cpp_err=yes
32425 fi
32426 if test -z "$ac_cpp_err"; then
32427   ac_header_preproc=yes
32428 else
32429   echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32431
32432   ac_header_preproc=no
32433 fi
32434 rm -f conftest.err conftest.$ac_ext
32435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32436 echo "${ECHO_T}$ac_header_preproc" >&6
32437
32438 # So?  What about this header?
32439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32440   yes:no: )
32441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32445     ac_header_preproc=yes
32446     ;;
32447   no:yes:* )
32448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32460     (
32461       cat <<\_ASBOX
32462 ## ----------------------------------------- ##
32463 ## Report this to wx-dev@lists.wxwindows.org ##
32464 ## ----------------------------------------- ##
32465 _ASBOX
32466     ) |
32467       sed "s/^/$as_me: WARNING:     /" >&2
32468     ;;
32469 esac
32470 echo "$as_me:$LINENO: checking for $ac_header" >&5
32471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32473   echo $ECHO_N "(cached) $ECHO_C" >&6
32474 else
32475   eval "$as_ac_Header=\$ac_header_preproc"
32476 fi
32477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32479
32480 fi
32481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32482   cat >>confdefs.h <<_ACEOF
32483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32484 _ACEOF
32485
32486 fi
32487
32488 done
32489
32490       if test "$ac_cv_header_sched_h" = "yes"; then
32491           echo "$as_me:$LINENO: checking for sched_yield" >&5
32492 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32493 if test "${ac_cv_func_sched_yield+set}" = set; then
32494   echo $ECHO_N "(cached) $ECHO_C" >&6
32495 else
32496   cat >conftest.$ac_ext <<_ACEOF
32497 /* confdefs.h.  */
32498 _ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h.  */
32502 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32504 #define sched_yield innocuous_sched_yield
32505
32506 /* System header to define __stub macros and hopefully few prototypes,
32507     which can conflict with char sched_yield (); below.
32508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32509     <limits.h> exists even on freestanding compilers.  */
32510
32511 #ifdef __STDC__
32512 # include <limits.h>
32513 #else
32514 # include <assert.h>
32515 #endif
32516
32517 #undef sched_yield
32518
32519 /* Override any gcc2 internal prototype to avoid an error.  */
32520 #ifdef __cplusplus
32521 extern "C"
32522 {
32523 #endif
32524 /* We use char because int might match the return type of a gcc2
32525    builtin and then its argument prototype would still apply.  */
32526 char sched_yield ();
32527 /* The GNU C library defines this for functions which it implements
32528     to always fail with ENOSYS.  Some functions are actually named
32529     something starting with __ and the normal name is an alias.  */
32530 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32531 choke me
32532 #else
32533 char (*f) () = sched_yield;
32534 #endif
32535 #ifdef __cplusplus
32536 }
32537 #endif
32538
32539 int
32540 main ()
32541 {
32542 return f != sched_yield;
32543   ;
32544   return 0;
32545 }
32546 _ACEOF
32547 rm -f conftest.$ac_objext conftest$ac_exeext
32548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32549   (eval $ac_link) 2>conftest.er1
32550   ac_status=$?
32551   grep -v '^ *+' conftest.er1 >conftest.err
32552   rm -f conftest.er1
32553   cat conftest.err >&5
32554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555   (exit $ac_status); } &&
32556          { ac_try='test -z "$ac_c_werror_flag"
32557                          || test ! -s conftest.err'
32558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32559   (eval $ac_try) 2>&5
32560   ac_status=$?
32561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562   (exit $ac_status); }; } &&
32563          { ac_try='test -s conftest$ac_exeext'
32564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565   (eval $ac_try) 2>&5
32566   ac_status=$?
32567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568   (exit $ac_status); }; }; then
32569   ac_cv_func_sched_yield=yes
32570 else
32571   echo "$as_me: failed program was:" >&5
32572 sed 's/^/| /' conftest.$ac_ext >&5
32573
32574 ac_cv_func_sched_yield=no
32575 fi
32576 rm -f conftest.err conftest.$ac_objext \
32577       conftest$ac_exeext conftest.$ac_ext
32578 fi
32579 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32580 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32581 if test $ac_cv_func_sched_yield = yes; then
32582   cat >>confdefs.h <<\_ACEOF
32583 #define HAVE_SCHED_YIELD 1
32584 _ACEOF
32585
32586 else
32587
32588                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32589 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32590 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32591   echo $ECHO_N "(cached) $ECHO_C" >&6
32592 else
32593   ac_check_lib_save_LIBS=$LIBS
32594 LIBS="-lposix4  $LIBS"
32595 cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602 /* Override any gcc2 internal prototype to avoid an error.  */
32603 #ifdef __cplusplus
32604 extern "C"
32605 #endif
32606 /* We use char because int might match the return type of a gcc2
32607    builtin and then its argument prototype would still apply.  */
32608 char sched_yield ();
32609 int
32610 main ()
32611 {
32612 sched_yield ();
32613   ;
32614   return 0;
32615 }
32616 _ACEOF
32617 rm -f conftest.$ac_objext conftest$ac_exeext
32618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32619   (eval $ac_link) 2>conftest.er1
32620   ac_status=$?
32621   grep -v '^ *+' conftest.er1 >conftest.err
32622   rm -f conftest.er1
32623   cat conftest.err >&5
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); } &&
32626          { ac_try='test -z "$ac_c_werror_flag"
32627                          || test ! -s conftest.err'
32628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32629   (eval $ac_try) 2>&5
32630   ac_status=$?
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); }; } &&
32633          { ac_try='test -s conftest$ac_exeext'
32634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32635   (eval $ac_try) 2>&5
32636   ac_status=$?
32637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638   (exit $ac_status); }; }; then
32639   ac_cv_lib_posix4_sched_yield=yes
32640 else
32641   echo "$as_me: failed program was:" >&5
32642 sed 's/^/| /' conftest.$ac_ext >&5
32643
32644 ac_cv_lib_posix4_sched_yield=no
32645 fi
32646 rm -f conftest.err conftest.$ac_objext \
32647       conftest$ac_exeext conftest.$ac_ext
32648 LIBS=$ac_check_lib_save_LIBS
32649 fi
32650 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32651 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32652 if test $ac_cv_lib_posix4_sched_yield = yes; then
32653   cat >>confdefs.h <<\_ACEOF
32654 #define HAVE_SCHED_YIELD 1
32655 _ACEOF
32656  POSIX4_LINK=" -lposix4"
32657 else
32658   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32659 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32660
32661 fi
32662
32663
32664
32665 fi
32666
32667       fi
32668
32669                                           HAVE_PRIOR_FUNCS=0
32670       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32671 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32672 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32673   echo $ECHO_N "(cached) $ECHO_C" >&6
32674 else
32675   cat >conftest.$ac_ext <<_ACEOF
32676 /* confdefs.h.  */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h.  */
32681 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32683 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32684
32685 /* System header to define __stub macros and hopefully few prototypes,
32686     which can conflict with char pthread_attr_getschedpolicy (); below.
32687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32688     <limits.h> exists even on freestanding compilers.  */
32689
32690 #ifdef __STDC__
32691 # include <limits.h>
32692 #else
32693 # include <assert.h>
32694 #endif
32695
32696 #undef pthread_attr_getschedpolicy
32697
32698 /* Override any gcc2 internal prototype to avoid an error.  */
32699 #ifdef __cplusplus
32700 extern "C"
32701 {
32702 #endif
32703 /* We use char because int might match the return type of a gcc2
32704    builtin and then its argument prototype would still apply.  */
32705 char pthread_attr_getschedpolicy ();
32706 /* The GNU C library defines this for functions which it implements
32707     to always fail with ENOSYS.  Some functions are actually named
32708     something starting with __ and the normal name is an alias.  */
32709 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32710 choke me
32711 #else
32712 char (*f) () = pthread_attr_getschedpolicy;
32713 #endif
32714 #ifdef __cplusplus
32715 }
32716 #endif
32717
32718 int
32719 main ()
32720 {
32721 return f != pthread_attr_getschedpolicy;
32722   ;
32723   return 0;
32724 }
32725 _ACEOF
32726 rm -f conftest.$ac_objext conftest$ac_exeext
32727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32728   (eval $ac_link) 2>conftest.er1
32729   ac_status=$?
32730   grep -v '^ *+' conftest.er1 >conftest.err
32731   rm -f conftest.er1
32732   cat conftest.err >&5
32733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734   (exit $ac_status); } &&
32735          { ac_try='test -z "$ac_c_werror_flag"
32736                          || test ! -s conftest.err'
32737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32738   (eval $ac_try) 2>&5
32739   ac_status=$?
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); }; } &&
32742          { ac_try='test -s conftest$ac_exeext'
32743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744   (eval $ac_try) 2>&5
32745   ac_status=$?
32746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747   (exit $ac_status); }; }; then
32748   ac_cv_func_pthread_attr_getschedpolicy=yes
32749 else
32750   echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32752
32753 ac_cv_func_pthread_attr_getschedpolicy=no
32754 fi
32755 rm -f conftest.err conftest.$ac_objext \
32756       conftest$ac_exeext conftest.$ac_ext
32757 fi
32758 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32759 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32760 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32761   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32762 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32763 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32764   echo $ECHO_N "(cached) $ECHO_C" >&6
32765 else
32766   cat >conftest.$ac_ext <<_ACEOF
32767 /* confdefs.h.  */
32768 _ACEOF
32769 cat confdefs.h >>conftest.$ac_ext
32770 cat >>conftest.$ac_ext <<_ACEOF
32771 /* end confdefs.h.  */
32772 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32774 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32775
32776 /* System header to define __stub macros and hopefully few prototypes,
32777     which can conflict with char pthread_attr_setschedparam (); below.
32778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32779     <limits.h> exists even on freestanding compilers.  */
32780
32781 #ifdef __STDC__
32782 # include <limits.h>
32783 #else
32784 # include <assert.h>
32785 #endif
32786
32787 #undef pthread_attr_setschedparam
32788
32789 /* Override any gcc2 internal prototype to avoid an error.  */
32790 #ifdef __cplusplus
32791 extern "C"
32792 {
32793 #endif
32794 /* We use char because int might match the return type of a gcc2
32795    builtin and then its argument prototype would still apply.  */
32796 char pthread_attr_setschedparam ();
32797 /* The GNU C library defines this for functions which it implements
32798     to always fail with ENOSYS.  Some functions are actually named
32799     something starting with __ and the normal name is an alias.  */
32800 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32801 choke me
32802 #else
32803 char (*f) () = pthread_attr_setschedparam;
32804 #endif
32805 #ifdef __cplusplus
32806 }
32807 #endif
32808
32809 int
32810 main ()
32811 {
32812 return f != pthread_attr_setschedparam;
32813   ;
32814   return 0;
32815 }
32816 _ACEOF
32817 rm -f conftest.$ac_objext conftest$ac_exeext
32818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32819   (eval $ac_link) 2>conftest.er1
32820   ac_status=$?
32821   grep -v '^ *+' conftest.er1 >conftest.err
32822   rm -f conftest.er1
32823   cat conftest.err >&5
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); } &&
32826          { ac_try='test -z "$ac_c_werror_flag"
32827                          || test ! -s conftest.err'
32828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829   (eval $ac_try) 2>&5
32830   ac_status=$?
32831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832   (exit $ac_status); }; } &&
32833          { ac_try='test -s conftest$ac_exeext'
32834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32835   (eval $ac_try) 2>&5
32836   ac_status=$?
32837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838   (exit $ac_status); }; }; then
32839   ac_cv_func_pthread_attr_setschedparam=yes
32840 else
32841   echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.$ac_ext >&5
32843
32844 ac_cv_func_pthread_attr_setschedparam=no
32845 fi
32846 rm -f conftest.err conftest.$ac_objext \
32847       conftest$ac_exeext conftest.$ac_ext
32848 fi
32849 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32850 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32851 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32852   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32853 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32854 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32855   echo $ECHO_N "(cached) $ECHO_C" >&6
32856 else
32857   cat >conftest.$ac_ext <<_ACEOF
32858 /* confdefs.h.  */
32859 _ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h.  */
32863 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32865 #define sched_get_priority_max innocuous_sched_get_priority_max
32866
32867 /* System header to define __stub macros and hopefully few prototypes,
32868     which can conflict with char sched_get_priority_max (); below.
32869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32870     <limits.h> exists even on freestanding compilers.  */
32871
32872 #ifdef __STDC__
32873 # include <limits.h>
32874 #else
32875 # include <assert.h>
32876 #endif
32877
32878 #undef sched_get_priority_max
32879
32880 /* Override any gcc2 internal prototype to avoid an error.  */
32881 #ifdef __cplusplus
32882 extern "C"
32883 {
32884 #endif
32885 /* We use char because int might match the return type of a gcc2
32886    builtin and then its argument prototype would still apply.  */
32887 char sched_get_priority_max ();
32888 /* The GNU C library defines this for functions which it implements
32889     to always fail with ENOSYS.  Some functions are actually named
32890     something starting with __ and the normal name is an alias.  */
32891 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32892 choke me
32893 #else
32894 char (*f) () = sched_get_priority_max;
32895 #endif
32896 #ifdef __cplusplus
32897 }
32898 #endif
32899
32900 int
32901 main ()
32902 {
32903 return f != sched_get_priority_max;
32904   ;
32905   return 0;
32906 }
32907 _ACEOF
32908 rm -f conftest.$ac_objext conftest$ac_exeext
32909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32910   (eval $ac_link) 2>conftest.er1
32911   ac_status=$?
32912   grep -v '^ *+' conftest.er1 >conftest.err
32913   rm -f conftest.er1
32914   cat conftest.err >&5
32915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916   (exit $ac_status); } &&
32917          { ac_try='test -z "$ac_c_werror_flag"
32918                          || test ! -s conftest.err'
32919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32920   (eval $ac_try) 2>&5
32921   ac_status=$?
32922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32923   (exit $ac_status); }; } &&
32924          { ac_try='test -s conftest$ac_exeext'
32925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926   (eval $ac_try) 2>&5
32927   ac_status=$?
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); }; }; then
32930   ac_cv_func_sched_get_priority_max=yes
32931 else
32932   echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32934
32935 ac_cv_func_sched_get_priority_max=no
32936 fi
32937 rm -f conftest.err conftest.$ac_objext \
32938       conftest$ac_exeext conftest.$ac_ext
32939 fi
32940 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32941 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32942 if test $ac_cv_func_sched_get_priority_max = yes; then
32943   HAVE_PRIOR_FUNCS=1
32944 else
32945   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32946 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32947 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950   ac_check_lib_save_LIBS=$LIBS
32951 LIBS="-lposix4  $LIBS"
32952 cat >conftest.$ac_ext <<_ACEOF
32953 /* confdefs.h.  */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h.  */
32958
32959 /* Override any gcc2 internal prototype to avoid an error.  */
32960 #ifdef __cplusplus
32961 extern "C"
32962 #endif
32963 /* We use char because int might match the return type of a gcc2
32964    builtin and then its argument prototype would still apply.  */
32965 char sched_get_priority_max ();
32966 int
32967 main ()
32968 {
32969 sched_get_priority_max ();
32970   ;
32971   return 0;
32972 }
32973 _ACEOF
32974 rm -f conftest.$ac_objext conftest$ac_exeext
32975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32976   (eval $ac_link) 2>conftest.er1
32977   ac_status=$?
32978   grep -v '^ *+' conftest.er1 >conftest.err
32979   rm -f conftest.er1
32980   cat conftest.err >&5
32981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982   (exit $ac_status); } &&
32983          { ac_try='test -z "$ac_c_werror_flag"
32984                          || test ! -s conftest.err'
32985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32986   (eval $ac_try) 2>&5
32987   ac_status=$?
32988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989   (exit $ac_status); }; } &&
32990          { ac_try='test -s conftest$ac_exeext'
32991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32992   (eval $ac_try) 2>&5
32993   ac_status=$?
32994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995   (exit $ac_status); }; }; then
32996   ac_cv_lib_posix4_sched_get_priority_max=yes
32997 else
32998   echo "$as_me: failed program was:" >&5
32999 sed 's/^/| /' conftest.$ac_ext >&5
33000
33001 ac_cv_lib_posix4_sched_get_priority_max=no
33002 fi
33003 rm -f conftest.err conftest.$ac_objext \
33004       conftest$ac_exeext conftest.$ac_ext
33005 LIBS=$ac_check_lib_save_LIBS
33006 fi
33007 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33008 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33009 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33010
33011                                 HAVE_PRIOR_FUNCS=1
33012                                 POSIX4_LINK=" -lposix4"
33013
33014 fi
33015
33016
33017 fi
33018
33019
33020 fi
33021
33022
33023 fi
33024
33025
33026       if test "$HAVE_PRIOR_FUNCS" = 1; then
33027         cat >>confdefs.h <<\_ACEOF
33028 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33029 _ACEOF
33030
33031       else
33032         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33033 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33034       fi
33035
33036       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33037 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33038 if test "${ac_cv_func_pthread_cancel+set}" = set; then
33039   echo $ECHO_N "(cached) $ECHO_C" >&6
33040 else
33041   cat >conftest.$ac_ext <<_ACEOF
33042 /* confdefs.h.  */
33043 _ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h.  */
33047 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33049 #define pthread_cancel innocuous_pthread_cancel
33050
33051 /* System header to define __stub macros and hopefully few prototypes,
33052     which can conflict with char pthread_cancel (); below.
33053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33054     <limits.h> exists even on freestanding compilers.  */
33055
33056 #ifdef __STDC__
33057 # include <limits.h>
33058 #else
33059 # include <assert.h>
33060 #endif
33061
33062 #undef pthread_cancel
33063
33064 /* Override any gcc2 internal prototype to avoid an error.  */
33065 #ifdef __cplusplus
33066 extern "C"
33067 {
33068 #endif
33069 /* We use char because int might match the return type of a gcc2
33070    builtin and then its argument prototype would still apply.  */
33071 char pthread_cancel ();
33072 /* The GNU C library defines this for functions which it implements
33073     to always fail with ENOSYS.  Some functions are actually named
33074     something starting with __ and the normal name is an alias.  */
33075 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33076 choke me
33077 #else
33078 char (*f) () = pthread_cancel;
33079 #endif
33080 #ifdef __cplusplus
33081 }
33082 #endif
33083
33084 int
33085 main ()
33086 {
33087 return f != pthread_cancel;
33088   ;
33089   return 0;
33090 }
33091 _ACEOF
33092 rm -f conftest.$ac_objext conftest$ac_exeext
33093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33094   (eval $ac_link) 2>conftest.er1
33095   ac_status=$?
33096   grep -v '^ *+' conftest.er1 >conftest.err
33097   rm -f conftest.er1
33098   cat conftest.err >&5
33099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100   (exit $ac_status); } &&
33101          { ac_try='test -z "$ac_c_werror_flag"
33102                          || test ! -s conftest.err'
33103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33104   (eval $ac_try) 2>&5
33105   ac_status=$?
33106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107   (exit $ac_status); }; } &&
33108          { ac_try='test -s conftest$ac_exeext'
33109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110   (eval $ac_try) 2>&5
33111   ac_status=$?
33112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113   (exit $ac_status); }; }; then
33114   ac_cv_func_pthread_cancel=yes
33115 else
33116   echo "$as_me: failed program was:" >&5
33117 sed 's/^/| /' conftest.$ac_ext >&5
33118
33119 ac_cv_func_pthread_cancel=no
33120 fi
33121 rm -f conftest.err conftest.$ac_objext \
33122       conftest$ac_exeext conftest.$ac_ext
33123 fi
33124 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33125 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33126 if test $ac_cv_func_pthread_cancel = yes; then
33127   cat >>confdefs.h <<\_ACEOF
33128 #define HAVE_PTHREAD_CANCEL 1
33129 _ACEOF
33130
33131 else
33132   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33133 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33134 fi
33135
33136
33137
33138
33139       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33140 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33141 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33142   echo $ECHO_N "(cached) $ECHO_C" >&6
33143 else
33144
33145         cat >conftest.$ac_ext <<_ACEOF
33146 /* confdefs.h.  */
33147 _ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h.  */
33151 #include <pthread.h>
33152 int
33153 main ()
33154 {
33155
33156                pthread_mutexattr_t attr;
33157                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33158
33159   ;
33160   return 0;
33161 }
33162 _ACEOF
33163 rm -f conftest.$ac_objext
33164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33165   (eval $ac_compile) 2>conftest.er1
33166   ac_status=$?
33167   grep -v '^ *+' conftest.er1 >conftest.err
33168   rm -f conftest.er1
33169   cat conftest.err >&5
33170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171   (exit $ac_status); } &&
33172          { ac_try='test -z "$ac_c_werror_flag"
33173                          || test ! -s conftest.err'
33174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33175   (eval $ac_try) 2>&5
33176   ac_status=$?
33177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178   (exit $ac_status); }; } &&
33179          { ac_try='test -s conftest.$ac_objext'
33180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33181   (eval $ac_try) 2>&5
33182   ac_status=$?
33183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184   (exit $ac_status); }; }; then
33185
33186                wx_cv_type_pthread_mutexattr_t=yes
33187
33188 else
33189   echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33191
33192
33193                wx_cv_type_pthread_mutexattr_t=no
33194
33195
33196 fi
33197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33198
33199 fi
33200 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33201 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33202
33203       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33204         cat >>confdefs.h <<\_ACEOF
33205 #define HAVE_PTHREAD_MUTEXATTR_T 1
33206 _ACEOF
33207
33208       else
33209                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33210 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33211 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33212   echo $ECHO_N "(cached) $ECHO_C" >&6
33213 else
33214
33215             cat >conftest.$ac_ext <<_ACEOF
33216 /* confdefs.h.  */
33217 _ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h.  */
33221 #include <pthread.h>
33222 int
33223 main ()
33224 {
33225
33226                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33227
33228   ;
33229   return 0;
33230 }
33231 _ACEOF
33232 rm -f conftest.$ac_objext
33233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33234   (eval $ac_compile) 2>conftest.er1
33235   ac_status=$?
33236   grep -v '^ *+' conftest.er1 >conftest.err
33237   rm -f conftest.er1
33238   cat conftest.err >&5
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); } &&
33241          { ac_try='test -z "$ac_c_werror_flag"
33242                          || test ! -s conftest.err'
33243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244   (eval $ac_try) 2>&5
33245   ac_status=$?
33246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247   (exit $ac_status); }; } &&
33248          { ac_try='test -s conftest.$ac_objext'
33249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33250   (eval $ac_try) 2>&5
33251   ac_status=$?
33252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253   (exit $ac_status); }; }; then
33254
33255                     wx_cv_type_pthread_rec_mutex_init=yes
33256
33257 else
33258   echo "$as_me: failed program was:" >&5
33259 sed 's/^/| /' conftest.$ac_ext >&5
33260
33261
33262                     wx_cv_type_pthread_rec_mutex_init=no
33263
33264
33265 fi
33266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33267
33268 fi
33269 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33270 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33271         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33272           cat >>confdefs.h <<\_ACEOF
33273 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33274 _ACEOF
33275
33276         else
33277                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33278 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33279         fi
33280       fi
33281     fi
33282
33283 else
33284     if test "$wxUSE_THREADS" = "yes" ; then
33285       case "${host}" in
33286         *-*-mingw32* )
33287                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33288 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33289 if test "${wx_cv_cflags_mthread+set}" = set; then
33290   echo $ECHO_N "(cached) $ECHO_C" >&6
33291 else
33292
33293                     CFLAGS_OLD="$CFLAGS"
33294                     CFLAGS="$CFLAGS -mthreads"
33295                     cat >conftest.$ac_ext <<_ACEOF
33296 /* confdefs.h.  */
33297 _ACEOF
33298 cat confdefs.h >>conftest.$ac_ext
33299 cat >>conftest.$ac_ext <<_ACEOF
33300 /* end confdefs.h.  */
33301
33302 int
33303 main ()
33304 {
33305
33306   ;
33307   return 0;
33308 }
33309 _ACEOF
33310 rm -f conftest.$ac_objext
33311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33312   (eval $ac_compile) 2>conftest.er1
33313   ac_status=$?
33314   grep -v '^ *+' conftest.er1 >conftest.err
33315   rm -f conftest.er1
33316   cat conftest.err >&5
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); } &&
33319          { ac_try='test -z "$ac_c_werror_flag"
33320                          || test ! -s conftest.err'
33321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322   (eval $ac_try) 2>&5
33323   ac_status=$?
33324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); }; } &&
33326          { ac_try='test -s conftest.$ac_objext'
33327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328   (eval $ac_try) 2>&5
33329   ac_status=$?
33330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331   (exit $ac_status); }; }; then
33332   wx_cv_cflags_mthread=yes
33333 else
33334   echo "$as_me: failed program was:" >&5
33335 sed 's/^/| /' conftest.$ac_ext >&5
33336
33337 wx_cv_cflags_mthread=no
33338
33339 fi
33340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33341
33342
33343 fi
33344 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33345 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33346
33347             if test "$wx_cv_cflags_mthread" = "yes"; then
33348                                 CXXFLAGS="$CXXFLAGS -mthreads"
33349                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33350                 LDFLAGS="$LDFLAGS -mthreads"
33351             else
33352                                 CFLAGS="$CFLAGS_OLD"
33353             fi
33354         ;;
33355         *-pc-os2*emx )
33356             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33357             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33358             LDFLAGS="$LDFLAGS -Zmt"
33359         ;;
33360       esac
33361     fi
33362 fi
33363
33364 if test "$wxUSE_THREADS" = "yes"; then
33365   cat >>confdefs.h <<\_ACEOF
33366 #define wxUSE_THREADS 1
33367 _ACEOF
33368
33369
33370   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33371 else
33372       if test "$ac_cv_func_strtok_r" = "yes"; then
33373     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33374 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33375     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33376         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33377         echo "$as_me:$LINENO: result: yes" >&5
33378 echo "${ECHO_T}yes" >&6
33379     else
33380         echo "$as_me:$LINENO: result: no" >&5
33381 echo "${ECHO_T}no" >&6
33382     fi
33383   fi
33384 fi
33385
33386 if test "$WXGTK20" = 1 ; then
33387   cat >>confdefs.h <<_ACEOF
33388 #define __WXGTK20__ $WXGTK20
33389 _ACEOF
33390
33391   WXGTK12=1
33392 fi
33393
33394 if test "$WXGTK12" = 1 ; then
33395   cat >>confdefs.h <<_ACEOF
33396 #define __WXGTK12__ $WXGTK12
33397 _ACEOF
33398
33399 fi
33400
33401 if test "$WXGTK127" = 1 ; then
33402   cat >>confdefs.h <<_ACEOF
33403 #define __WXGTK127__ $WXGTK127
33404 _ACEOF
33405
33406 fi
33407
33408 if test "$WXGPE" = 1 ; then
33409   cat >>confdefs.h <<_ACEOF
33410 #define __WXGPE__ $WXGPE
33411 _ACEOF
33412
33413 fi
33414
33415 WXDEBUG=
33416
33417 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33418     WXDEBUG="-g"
33419     wxUSE_OPTIMISE=no
33420 fi
33421
33422 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33423     wxUSE_DEBUG_INFO=yes
33424     WXDEBUG="-ggdb"
33425 fi
33426
33427 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33428     cat >>confdefs.h <<\_ACEOF
33429 #define WXDEBUG 1
33430 _ACEOF
33431
33432     WXDEBUG_DEFINE="-D__WXDEBUG__"
33433 else
33434     if test "$wxUSE_GTK" = 1 ; then
33435         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33436     fi
33437 fi
33438
33439 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33440     cat >>confdefs.h <<\_ACEOF
33441 #define wxUSE_MEMORY_TRACING 1
33442 _ACEOF
33443
33444     cat >>confdefs.h <<\_ACEOF
33445 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33446 _ACEOF
33447
33448     cat >>confdefs.h <<\_ACEOF
33449 #define wxUSE_DEBUG_NEW_ALWAYS 1
33450 _ACEOF
33451
33452     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33453 fi
33454
33455 if test "$wxUSE_DMALLOC" = "yes" ; then
33456     DMALLOC_LIBS="-ldmalloc"
33457 fi
33458
33459 PROFILE=
33460 if test "$wxUSE_PROFILE" = "yes" ; then
33461     PROFILE=" -pg"
33462 fi
33463
33464 CODE_GEN_FLAGS=
33465 CODE_GEN_FLAGS_CXX=
33466 if test "$GCC" = "yes" ; then
33467     if test "$wxUSE_NO_RTTI" = "yes" ; then
33468         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33469     fi
33470     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33471         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33472     fi
33473     if test "$wxUSE_PERMISSIVE" = "yes" ; then
33474         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33475     fi
33476
33477                                                 case "${host}" in
33478       powerpc*-*-aix* )
33479         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33480         ;;
33481       *-hppa* )
33482         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33483         ;;
33484     esac
33485 fi
33486
33487 OPTIMISE=
33488 if test "$wxUSE_OPTIMISE" = "no" ; then
33489     if test "$GCC" = yes ; then
33490                         OPTIMISE="-O0"
33491     fi
33492 else
33493     if test "$GCC" = yes ; then
33494         OPTIMISE="-O2"
33495
33496                 case "${host}" in
33497             i586-*-*|i686-*-* )
33498             OPTIMISE="${OPTIMISE} "
33499         ;;
33500         esac
33501     else
33502         OPTIMISE="-O"
33503     fi
33504 fi
33505
33506
33507 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33508     cat >>confdefs.h <<\_ACEOF
33509 #define WXWIN_COMPATIBILITY_2_2 1
33510 _ACEOF
33511
33512
33513     WXWIN_COMPATIBILITY_2_4="yes"
33514 fi
33515
33516 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33517     cat >>confdefs.h <<\_ACEOF
33518 #define WXWIN_COMPATIBILITY_2_4 1
33519 _ACEOF
33520
33521 fi
33522
33523
33524 if test "$wxUSE_GUI" = "yes"; then
33525   cat >>confdefs.h <<\_ACEOF
33526 #define wxUSE_GUI 1
33527 _ACEOF
33528
33529
33530                       else
33531   cat >>confdefs.h <<\_ACEOF
33532 #define wxUSE_NOGUI 1
33533 _ACEOF
33534
33535 fi
33536
33537
33538 if test "$wxUSE_UNIX" = "yes"; then
33539   cat >>confdefs.h <<\_ACEOF
33540 #define wxUSE_UNIX 1
33541 _ACEOF
33542
33543 fi
33544
33545
33546 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33547
33548     HAVE_DL_FUNCS=0
33549     HAVE_SHL_FUNCS=0
33550     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33551         if test "$USE_DARWIN" = 1; then
33552                         HAVE_DL_FUNCS=1
33553         else
33554
33555 for ac_func in dlopen
33556 do
33557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33558 echo "$as_me:$LINENO: checking for $ac_func" >&5
33559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33560 if eval "test \"\${$as_ac_var+set}\" = set"; then
33561   echo $ECHO_N "(cached) $ECHO_C" >&6
33562 else
33563   cat >conftest.$ac_ext <<_ACEOF
33564 /* confdefs.h.  */
33565 _ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h.  */
33569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33571 #define $ac_func innocuous_$ac_func
33572
33573 /* System header to define __stub macros and hopefully few prototypes,
33574     which can conflict with char $ac_func (); below.
33575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33576     <limits.h> exists even on freestanding compilers.  */
33577
33578 #ifdef __STDC__
33579 # include <limits.h>
33580 #else
33581 # include <assert.h>
33582 #endif
33583
33584 #undef $ac_func
33585
33586 /* Override any gcc2 internal prototype to avoid an error.  */
33587 #ifdef __cplusplus
33588 extern "C"
33589 {
33590 #endif
33591 /* We use char because int might match the return type of a gcc2
33592    builtin and then its argument prototype would still apply.  */
33593 char $ac_func ();
33594 /* The GNU C library defines this for functions which it implements
33595     to always fail with ENOSYS.  Some functions are actually named
33596     something starting with __ and the normal name is an alias.  */
33597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33598 choke me
33599 #else
33600 char (*f) () = $ac_func;
33601 #endif
33602 #ifdef __cplusplus
33603 }
33604 #endif
33605
33606 int
33607 main ()
33608 {
33609 return f != $ac_func;
33610   ;
33611   return 0;
33612 }
33613 _ACEOF
33614 rm -f conftest.$ac_objext conftest$ac_exeext
33615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33616   (eval $ac_link) 2>conftest.er1
33617   ac_status=$?
33618   grep -v '^ *+' conftest.er1 >conftest.err
33619   rm -f conftest.er1
33620   cat conftest.err >&5
33621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622   (exit $ac_status); } &&
33623          { ac_try='test -z "$ac_c_werror_flag"
33624                          || test ! -s conftest.err'
33625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33626   (eval $ac_try) 2>&5
33627   ac_status=$?
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); }; } &&
33630          { ac_try='test -s conftest$ac_exeext'
33631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632   (eval $ac_try) 2>&5
33633   ac_status=$?
33634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635   (exit $ac_status); }; }; then
33636   eval "$as_ac_var=yes"
33637 else
33638   echo "$as_me: failed program was:" >&5
33639 sed 's/^/| /' conftest.$ac_ext >&5
33640
33641 eval "$as_ac_var=no"
33642 fi
33643 rm -f conftest.err conftest.$ac_objext \
33644       conftest$ac_exeext conftest.$ac_ext
33645 fi
33646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33648 if test `eval echo '${'$as_ac_var'}'` = yes; then
33649   cat >>confdefs.h <<_ACEOF
33650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33651 _ACEOF
33652
33653                 cat >>confdefs.h <<\_ACEOF
33654 #define HAVE_DLOPEN 1
33655 _ACEOF
33656
33657                 HAVE_DL_FUNCS=1
33658
33659 else
33660
33661                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33662 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33664   echo $ECHO_N "(cached) $ECHO_C" >&6
33665 else
33666   ac_check_lib_save_LIBS=$LIBS
33667 LIBS="-ldl  $LIBS"
33668 cat >conftest.$ac_ext <<_ACEOF
33669 /* confdefs.h.  */
33670 _ACEOF
33671 cat confdefs.h >>conftest.$ac_ext
33672 cat >>conftest.$ac_ext <<_ACEOF
33673 /* end confdefs.h.  */
33674
33675 /* Override any gcc2 internal prototype to avoid an error.  */
33676 #ifdef __cplusplus
33677 extern "C"
33678 #endif
33679 /* We use char because int might match the return type of a gcc2
33680    builtin and then its argument prototype would still apply.  */
33681 char dlopen ();
33682 int
33683 main ()
33684 {
33685 dlopen ();
33686   ;
33687   return 0;
33688 }
33689 _ACEOF
33690 rm -f conftest.$ac_objext conftest$ac_exeext
33691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33692   (eval $ac_link) 2>conftest.er1
33693   ac_status=$?
33694   grep -v '^ *+' conftest.er1 >conftest.err
33695   rm -f conftest.er1
33696   cat conftest.err >&5
33697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33698   (exit $ac_status); } &&
33699          { ac_try='test -z "$ac_c_werror_flag"
33700                          || test ! -s conftest.err'
33701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33702   (eval $ac_try) 2>&5
33703   ac_status=$?
33704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705   (exit $ac_status); }; } &&
33706          { ac_try='test -s conftest$ac_exeext'
33707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33708   (eval $ac_try) 2>&5
33709   ac_status=$?
33710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711   (exit $ac_status); }; }; then
33712   ac_cv_lib_dl_dlopen=yes
33713 else
33714   echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33716
33717 ac_cv_lib_dl_dlopen=no
33718 fi
33719 rm -f conftest.err conftest.$ac_objext \
33720       conftest$ac_exeext conftest.$ac_ext
33721 LIBS=$ac_check_lib_save_LIBS
33722 fi
33723 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33725 if test $ac_cv_lib_dl_dlopen = yes; then
33726
33727                                 cat >>confdefs.h <<\_ACEOF
33728 #define HAVE_DLOPEN 1
33729 _ACEOF
33730
33731                                 HAVE_DL_FUNCS=1
33732                                 DL_LINK=" -ldl$DL_LINK"
33733
33734 else
33735
33736
33737 for ac_func in shl_load
33738 do
33739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33740 echo "$as_me:$LINENO: checking for $ac_func" >&5
33741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33742 if eval "test \"\${$as_ac_var+set}\" = set"; then
33743   echo $ECHO_N "(cached) $ECHO_C" >&6
33744 else
33745   cat >conftest.$ac_ext <<_ACEOF
33746 /* confdefs.h.  */
33747 _ACEOF
33748 cat confdefs.h >>conftest.$ac_ext
33749 cat >>conftest.$ac_ext <<_ACEOF
33750 /* end confdefs.h.  */
33751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33753 #define $ac_func innocuous_$ac_func
33754
33755 /* System header to define __stub macros and hopefully few prototypes,
33756     which can conflict with char $ac_func (); below.
33757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33758     <limits.h> exists even on freestanding compilers.  */
33759
33760 #ifdef __STDC__
33761 # include <limits.h>
33762 #else
33763 # include <assert.h>
33764 #endif
33765
33766 #undef $ac_func
33767
33768 /* Override any gcc2 internal prototype to avoid an error.  */
33769 #ifdef __cplusplus
33770 extern "C"
33771 {
33772 #endif
33773 /* We use char because int might match the return type of a gcc2
33774    builtin and then its argument prototype would still apply.  */
33775 char $ac_func ();
33776 /* The GNU C library defines this for functions which it implements
33777     to always fail with ENOSYS.  Some functions are actually named
33778     something starting with __ and the normal name is an alias.  */
33779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33780 choke me
33781 #else
33782 char (*f) () = $ac_func;
33783 #endif
33784 #ifdef __cplusplus
33785 }
33786 #endif
33787
33788 int
33789 main ()
33790 {
33791 return f != $ac_func;
33792   ;
33793   return 0;
33794 }
33795 _ACEOF
33796 rm -f conftest.$ac_objext conftest$ac_exeext
33797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33798   (eval $ac_link) 2>conftest.er1
33799   ac_status=$?
33800   grep -v '^ *+' conftest.er1 >conftest.err
33801   rm -f conftest.er1
33802   cat conftest.err >&5
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); } &&
33805          { ac_try='test -z "$ac_c_werror_flag"
33806                          || test ! -s conftest.err'
33807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808   (eval $ac_try) 2>&5
33809   ac_status=$?
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); }; } &&
33812          { ac_try='test -s conftest$ac_exeext'
33813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814   (eval $ac_try) 2>&5
33815   ac_status=$?
33816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817   (exit $ac_status); }; }; then
33818   eval "$as_ac_var=yes"
33819 else
33820   echo "$as_me: failed program was:" >&5
33821 sed 's/^/| /' conftest.$ac_ext >&5
33822
33823 eval "$as_ac_var=no"
33824 fi
33825 rm -f conftest.err conftest.$ac_objext \
33826       conftest$ac_exeext conftest.$ac_ext
33827 fi
33828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33830 if test `eval echo '${'$as_ac_var'}'` = yes; then
33831   cat >>confdefs.h <<_ACEOF
33832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33833 _ACEOF
33834
33835                                                 cat >>confdefs.h <<\_ACEOF
33836 #define HAVE_SHL_LOAD 1
33837 _ACEOF
33838
33839                                                 HAVE_SHL_FUNCS=1
33840
33841 else
33842
33843                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33844 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33845 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33846   echo $ECHO_N "(cached) $ECHO_C" >&6
33847 else
33848   ac_check_lib_save_LIBS=$LIBS
33849 LIBS="-lshl_load  $LIBS"
33850 cat >conftest.$ac_ext <<_ACEOF
33851 /* confdefs.h.  */
33852 _ACEOF
33853 cat confdefs.h >>conftest.$ac_ext
33854 cat >>conftest.$ac_ext <<_ACEOF
33855 /* end confdefs.h.  */
33856
33857 /* Override any gcc2 internal prototype to avoid an error.  */
33858 #ifdef __cplusplus
33859 extern "C"
33860 #endif
33861 /* We use char because int might match the return type of a gcc2
33862    builtin and then its argument prototype would still apply.  */
33863 char dld ();
33864 int
33865 main ()
33866 {
33867 dld ();
33868   ;
33869   return 0;
33870 }
33871 _ACEOF
33872 rm -f conftest.$ac_objext conftest$ac_exeext
33873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33874   (eval $ac_link) 2>conftest.er1
33875   ac_status=$?
33876   grep -v '^ *+' conftest.er1 >conftest.err
33877   rm -f conftest.er1
33878   cat conftest.err >&5
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); } &&
33881          { ac_try='test -z "$ac_c_werror_flag"
33882                          || test ! -s conftest.err'
33883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884   (eval $ac_try) 2>&5
33885   ac_status=$?
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); }; } &&
33888          { ac_try='test -s conftest$ac_exeext'
33889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33890   (eval $ac_try) 2>&5
33891   ac_status=$?
33892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893   (exit $ac_status); }; }; then
33894   ac_cv_lib_shl_load_dld=yes
33895 else
33896   echo "$as_me: failed program was:" >&5
33897 sed 's/^/| /' conftest.$ac_ext >&5
33898
33899 ac_cv_lib_shl_load_dld=no
33900 fi
33901 rm -f conftest.err conftest.$ac_objext \
33902       conftest$ac_exeext conftest.$ac_ext
33903 LIBS=$ac_check_lib_save_LIBS
33904 fi
33905 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33906 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33907 if test $ac_cv_lib_shl_load_dld = yes; then
33908
33909                                                                 HAVE_SHL_FUNCS=1
33910                                                                 DL_LINK=" -ldld$DL_LINK"
33911
33912 fi
33913
33914
33915 fi
33916 done
33917
33918
33919 fi
33920
33921
33922 fi
33923 done
33924
33925
33926                 if test "$HAVE_DL_FUNCS" = 1; then
33927
33928 for ac_func in dlerror
33929 do
33930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33931 echo "$as_me:$LINENO: checking for $ac_func" >&5
33932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33933 if eval "test \"\${$as_ac_var+set}\" = set"; then
33934   echo $ECHO_N "(cached) $ECHO_C" >&6
33935 else
33936   cat >conftest.$ac_ext <<_ACEOF
33937 /* confdefs.h.  */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h.  */
33942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33944 #define $ac_func innocuous_$ac_func
33945
33946 /* System header to define __stub macros and hopefully few prototypes,
33947     which can conflict with char $ac_func (); below.
33948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33949     <limits.h> exists even on freestanding compilers.  */
33950
33951 #ifdef __STDC__
33952 # include <limits.h>
33953 #else
33954 # include <assert.h>
33955 #endif
33956
33957 #undef $ac_func
33958
33959 /* Override any gcc2 internal prototype to avoid an error.  */
33960 #ifdef __cplusplus
33961 extern "C"
33962 {
33963 #endif
33964 /* We use char because int might match the return type of a gcc2
33965    builtin and then its argument prototype would still apply.  */
33966 char $ac_func ();
33967 /* The GNU C library defines this for functions which it implements
33968     to always fail with ENOSYS.  Some functions are actually named
33969     something starting with __ and the normal name is an alias.  */
33970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33971 choke me
33972 #else
33973 char (*f) () = $ac_func;
33974 #endif
33975 #ifdef __cplusplus
33976 }
33977 #endif
33978
33979 int
33980 main ()
33981 {
33982 return f != $ac_func;
33983   ;
33984   return 0;
33985 }
33986 _ACEOF
33987 rm -f conftest.$ac_objext conftest$ac_exeext
33988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989   (eval $ac_link) 2>conftest.er1
33990   ac_status=$?
33991   grep -v '^ *+' conftest.er1 >conftest.err
33992   rm -f conftest.er1
33993   cat conftest.err >&5
33994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995   (exit $ac_status); } &&
33996          { ac_try='test -z "$ac_c_werror_flag"
33997                          || test ! -s conftest.err'
33998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999   (eval $ac_try) 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); }; } &&
34003          { ac_try='test -s conftest$ac_exeext'
34004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005   (eval $ac_try) 2>&5
34006   ac_status=$?
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); }; }; then
34009   eval "$as_ac_var=yes"
34010 else
34011   echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014 eval "$as_ac_var=no"
34015 fi
34016 rm -f conftest.err conftest.$ac_objext \
34017       conftest$ac_exeext conftest.$ac_ext
34018 fi
34019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34021 if test `eval echo '${'$as_ac_var'}'` = yes; then
34022   cat >>confdefs.h <<_ACEOF
34023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34024 _ACEOF
34025  cat >>confdefs.h <<\_ACEOF
34026 #define HAVE_DLERROR 1
34027 _ACEOF
34028
34029 else
34030
34031                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34032 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34033 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34034   echo $ECHO_N "(cached) $ECHO_C" >&6
34035 else
34036   ac_check_lib_save_LIBS=$LIBS
34037 LIBS="-ldl  $LIBS"
34038 cat >conftest.$ac_ext <<_ACEOF
34039 /* confdefs.h.  */
34040 _ACEOF
34041 cat confdefs.h >>conftest.$ac_ext
34042 cat >>conftest.$ac_ext <<_ACEOF
34043 /* end confdefs.h.  */
34044
34045 /* Override any gcc2 internal prototype to avoid an error.  */
34046 #ifdef __cplusplus
34047 extern "C"
34048 #endif
34049 /* We use char because int might match the return type of a gcc2
34050    builtin and then its argument prototype would still apply.  */
34051 char dlerror ();
34052 int
34053 main ()
34054 {
34055 dlerror ();
34056   ;
34057   return 0;
34058 }
34059 _ACEOF
34060 rm -f conftest.$ac_objext conftest$ac_exeext
34061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34062   (eval $ac_link) 2>conftest.er1
34063   ac_status=$?
34064   grep -v '^ *+' conftest.er1 >conftest.err
34065   rm -f conftest.er1
34066   cat conftest.err >&5
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); } &&
34069          { ac_try='test -z "$ac_c_werror_flag"
34070                          || test ! -s conftest.err'
34071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072   (eval $ac_try) 2>&5
34073   ac_status=$?
34074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075   (exit $ac_status); }; } &&
34076          { ac_try='test -s conftest$ac_exeext'
34077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078   (eval $ac_try) 2>&5
34079   ac_status=$?
34080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081   (exit $ac_status); }; }; then
34082   ac_cv_lib_dl_dlerror=yes
34083 else
34084   echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34086
34087 ac_cv_lib_dl_dlerror=no
34088 fi
34089 rm -f conftest.err conftest.$ac_objext \
34090       conftest$ac_exeext conftest.$ac_ext
34091 LIBS=$ac_check_lib_save_LIBS
34092 fi
34093 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34094 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34095 if test $ac_cv_lib_dl_dlerror = yes; then
34096   cat >>confdefs.h <<\_ACEOF
34097 #define HAVE_DLERROR 1
34098 _ACEOF
34099
34100 fi
34101
34102
34103
34104 fi
34105 done
34106
34107         fi
34108         fi
34109
34110         if test "$HAVE_DL_FUNCS" = 0; then
34111             if test "$HAVE_SHL_FUNCS" = 0; then
34112               if test "$USE_UNIX" = 1; then
34113                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34114 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34115                   wxUSE_DYNAMIC_LOADER=no
34116                   wxUSE_DYNLIB_CLASS=no
34117               else
34118                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34119 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34120               fi
34121             fi
34122         fi
34123     fi
34124 fi
34125
34126 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34127     cat >>confdefs.h <<\_ACEOF
34128 #define wxUSE_DYNAMIC_LOADER 1
34129 _ACEOF
34130
34131 fi
34132 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34133     cat >>confdefs.h <<\_ACEOF
34134 #define wxUSE_DYNLIB_CLASS 1
34135 _ACEOF
34136
34137 fi
34138
34139
34140
34141 if test "$wxUSE_PLUGINS" = "yes" ; then
34142     if test "$wxUSE_SHARED" = "no" ; then
34143         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34144 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34145         wxUSE_PLUGINS=no
34146     fi
34147     if test "$wxUSE_MONOLITHIC" = "yes" ; then
34148         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34149 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34150         wxUSE_PLUGINS=no
34151     fi
34152     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34153         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34154 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34155         wxUSE_PLUGINS=no
34156     fi
34157     if test "$wxUSE_PLUGINS" = "yes" ; then
34158         cat >>confdefs.h <<\_ACEOF
34159 #define wxUSE_PLUGINS 1
34160 _ACEOF
34161
34162     fi
34163 fi
34164
34165
34166 if test "$wxUSE_STL" = "yes"; then
34167   cat >>confdefs.h <<\_ACEOF
34168 #define wxUSE_STL 1
34169 _ACEOF
34170
34171 fi
34172
34173 if test "$wxUSE_APPLE_IEEE" = "yes"; then
34174   cat >>confdefs.h <<\_ACEOF
34175 #define wxUSE_APPLE_IEEE 1
34176 _ACEOF
34177
34178 fi
34179
34180 if test "$wxUSE_TIMER" = "yes"; then
34181   cat >>confdefs.h <<\_ACEOF
34182 #define wxUSE_TIMER 1
34183 _ACEOF
34184
34185 fi
34186
34187 WITH_PLUGIN_SDL=0
34188 if test "$wxUSE_SOUND" = "yes"; then
34189       if test "$USE_UNIX" = "1" ; then
34190
34191 for ac_header in sys/soundcard.h
34192 do
34193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34195   echo "$as_me:$LINENO: checking for $ac_header" >&5
34196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34198   echo $ECHO_N "(cached) $ECHO_C" >&6
34199 fi
34200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34202 else
34203   # Is the header compilable?
34204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34206 cat >conftest.$ac_ext <<_ACEOF
34207 /* confdefs.h.  */
34208 _ACEOF
34209 cat confdefs.h >>conftest.$ac_ext
34210 cat >>conftest.$ac_ext <<_ACEOF
34211 /* end confdefs.h.  */
34212 $ac_includes_default
34213 #include <$ac_header>
34214 _ACEOF
34215 rm -f conftest.$ac_objext
34216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34217   (eval $ac_compile) 2>conftest.er1
34218   ac_status=$?
34219   grep -v '^ *+' conftest.er1 >conftest.err
34220   rm -f conftest.er1
34221   cat conftest.err >&5
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); } &&
34224          { ac_try='test -z "$ac_c_werror_flag"
34225                          || test ! -s conftest.err'
34226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227   (eval $ac_try) 2>&5
34228   ac_status=$?
34229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230   (exit $ac_status); }; } &&
34231          { ac_try='test -s conftest.$ac_objext'
34232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233   (eval $ac_try) 2>&5
34234   ac_status=$?
34235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236   (exit $ac_status); }; }; then
34237   ac_header_compiler=yes
34238 else
34239   echo "$as_me: failed program was:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34241
34242 ac_header_compiler=no
34243 fi
34244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34246 echo "${ECHO_T}$ac_header_compiler" >&6
34247
34248 # Is the header present?
34249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34251 cat >conftest.$ac_ext <<_ACEOF
34252 /* confdefs.h.  */
34253 _ACEOF
34254 cat confdefs.h >>conftest.$ac_ext
34255 cat >>conftest.$ac_ext <<_ACEOF
34256 /* end confdefs.h.  */
34257 #include <$ac_header>
34258 _ACEOF
34259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34261   ac_status=$?
34262   grep -v '^ *+' conftest.er1 >conftest.err
34263   rm -f conftest.er1
34264   cat conftest.err >&5
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); } >/dev/null; then
34267   if test -s conftest.err; then
34268     ac_cpp_err=$ac_c_preproc_warn_flag
34269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34270   else
34271     ac_cpp_err=
34272   fi
34273 else
34274   ac_cpp_err=yes
34275 fi
34276 if test -z "$ac_cpp_err"; then
34277   ac_header_preproc=yes
34278 else
34279   echo "$as_me: failed program was:" >&5
34280 sed 's/^/| /' conftest.$ac_ext >&5
34281
34282   ac_header_preproc=no
34283 fi
34284 rm -f conftest.err conftest.$ac_ext
34285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34286 echo "${ECHO_T}$ac_header_preproc" >&6
34287
34288 # So?  What about this header?
34289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34290   yes:no: )
34291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34295     ac_header_preproc=yes
34296     ;;
34297   no:yes:* )
34298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34310     (
34311       cat <<\_ASBOX
34312 ## ----------------------------------------- ##
34313 ## Report this to wx-dev@lists.wxwindows.org ##
34314 ## ----------------------------------------- ##
34315 _ASBOX
34316     ) |
34317       sed "s/^/$as_me: WARNING:     /" >&2
34318     ;;
34319 esac
34320 echo "$as_me:$LINENO: checking for $ac_header" >&5
34321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34323   echo $ECHO_N "(cached) $ECHO_C" >&6
34324 else
34325   eval "$as_ac_Header=\$ac_header_preproc"
34326 fi
34327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34329
34330 fi
34331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34332   cat >>confdefs.h <<_ACEOF
34333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34334 _ACEOF
34335
34336 fi
34337
34338 done
34339
34340
34341     if test "$wxUSE_LIBSDL" != "no"; then
34342
34343 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34344 if test "${with_sdl_prefix+set}" = set; then
34345   withval="$with_sdl_prefix"
34346   sdl_prefix="$withval"
34347 else
34348   sdl_prefix=""
34349 fi;
34350
34351 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34352 if test "${with_sdl_exec_prefix+set}" = set; then
34353   withval="$with_sdl_exec_prefix"
34354   sdl_exec_prefix="$withval"
34355 else
34356   sdl_exec_prefix=""
34357 fi;
34358 # Check whether --enable-sdltest or --disable-sdltest was given.
34359 if test "${enable_sdltest+set}" = set; then
34360   enableval="$enable_sdltest"
34361
34362 else
34363   enable_sdltest=yes
34364 fi;
34365
34366   if test x$sdl_exec_prefix != x ; then
34367      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34368      if test x${SDL_CONFIG+set} != xset ; then
34369         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34370      fi
34371   fi
34372   if test x$sdl_prefix != x ; then
34373      sdl_args="$sdl_args --prefix=$sdl_prefix"
34374      if test x${SDL_CONFIG+set} != xset ; then
34375         SDL_CONFIG=$sdl_prefix/bin/sdl-config
34376      fi
34377   fi
34378
34379
34380   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34381   # Extract the first word of "sdl-config", so it can be a program name with args.
34382 set dummy sdl-config; ac_word=$2
34383 echo "$as_me:$LINENO: checking for $ac_word" >&5
34384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34385 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34386   echo $ECHO_N "(cached) $ECHO_C" >&6
34387 else
34388   case $SDL_CONFIG in
34389   [\\/]* | ?:[\\/]*)
34390   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34391   ;;
34392   *)
34393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34394 for as_dir in $PATH
34395 do
34396   IFS=$as_save_IFS
34397   test -z "$as_dir" && as_dir=.
34398   for ac_exec_ext in '' $ac_executable_extensions; do
34399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34400     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34402     break 2
34403   fi
34404 done
34405 done
34406
34407   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34408   ;;
34409 esac
34410 fi
34411 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34412
34413 if test -n "$SDL_CONFIG"; then
34414   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34415 echo "${ECHO_T}$SDL_CONFIG" >&6
34416 else
34417   echo "$as_me:$LINENO: result: no" >&5
34418 echo "${ECHO_T}no" >&6
34419 fi
34420
34421   min_sdl_version=1.2.0
34422   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34423 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34424   no_sdl=""
34425   if test "$SDL_CONFIG" = "no" ; then
34426     no_sdl=yes
34427   else
34428     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34429     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34430
34431     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34432            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34433     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34434            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34435     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34436            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34437     if test "x$enable_sdltest" = "xyes" ; then
34438       ac_save_CFLAGS="$CFLAGS"
34439       ac_save_LIBS="$LIBS"
34440       CFLAGS="$CFLAGS $SDL_CFLAGS"
34441       LIBS="$LIBS $SDL_LIBS"
34442       rm -f conf.sdltest
34443       if test "$cross_compiling" = yes; then
34444   echo $ac_n "cross compiling; assumed OK... $ac_c"
34445 else
34446   cat >conftest.$ac_ext <<_ACEOF
34447 /* confdefs.h.  */
34448 _ACEOF
34449 cat confdefs.h >>conftest.$ac_ext
34450 cat >>conftest.$ac_ext <<_ACEOF
34451 /* end confdefs.h.  */
34452
34453 #include <stdio.h>
34454 #include <stdlib.h>
34455 #include <string.h>
34456 #include "SDL.h"
34457
34458 char*
34459 my_strdup (char *str)
34460 {
34461   char *new_str;
34462
34463   if (str)
34464     {
34465       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34466       strcpy (new_str, str);
34467     }
34468   else
34469     new_str = NULL;
34470
34471   return new_str;
34472 }
34473
34474 int main (int argc, char *argv[])
34475 {
34476   int major, minor, micro;
34477   char *tmp_version;
34478
34479   /* This hangs on some systems (?)
34480   system ("touch conf.sdltest");
34481   */
34482   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34483
34484   /* HP/UX 9 (%@#!) writes to sscanf strings */
34485   tmp_version = my_strdup("$min_sdl_version");
34486   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34487      printf("%s, bad version string\n", "$min_sdl_version");
34488      exit(1);
34489    }
34490
34491    if (($sdl_major_version > major) ||
34492       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34493       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34494     {
34495       return 0;
34496     }
34497   else
34498     {
34499       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34500       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34501       printf("*** best to upgrade to the required version.\n");
34502       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34503       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34504       printf("*** config.cache before re-running configure\n");
34505       return 1;
34506     }
34507 }
34508
34509
34510 _ACEOF
34511 rm -f conftest$ac_exeext
34512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34513   (eval $ac_link) 2>&5
34514   ac_status=$?
34515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518   (eval $ac_try) 2>&5
34519   ac_status=$?
34520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521   (exit $ac_status); }; }; then
34522   :
34523 else
34524   echo "$as_me: program exited with status $ac_status" >&5
34525 echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34527
34528 ( exit $ac_status )
34529 no_sdl=yes
34530 fi
34531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34532 fi
34533        CFLAGS="$ac_save_CFLAGS"
34534        LIBS="$ac_save_LIBS"
34535      fi
34536   fi
34537   if test "x$no_sdl" = x ; then
34538      echo "$as_me:$LINENO: result: yes" >&5
34539 echo "${ECHO_T}yes" >&6
34540
34541                     EXTRALIBS_SDL="$SDL_LIBS"
34542                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34543                     cat >>confdefs.h <<\_ACEOF
34544 #define wxUSE_LIBSDL 1
34545 _ACEOF
34546
34547
34548   else
34549      echo "$as_me:$LINENO: result: no" >&5
34550 echo "${ECHO_T}no" >&6
34551      if test "$SDL_CONFIG" = "no" ; then
34552        echo "*** The sdl-config script installed by SDL could not be found"
34553        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34554        echo "*** your path, or set the SDL_CONFIG environment variable to the"
34555        echo "*** full path to sdl-config."
34556      else
34557        if test -f conf.sdltest ; then
34558         :
34559        else
34560           echo "*** Could not run SDL test program, checking why..."
34561           CFLAGS="$CFLAGS $SDL_CFLAGS"
34562           LIBS="$LIBS $SDL_LIBS"
34563           cat >conftest.$ac_ext <<_ACEOF
34564 /* confdefs.h.  */
34565 _ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h.  */
34569
34570 #include <stdio.h>
34571 #include "SDL.h"
34572
34573 int main(int argc, char *argv[])
34574 { return 0; }
34575 #undef  main
34576 #define main K_and_R_C_main
34577
34578 int
34579 main ()
34580 {
34581  return 0;
34582   ;
34583   return 0;
34584 }
34585 _ACEOF
34586 rm -f conftest.$ac_objext conftest$ac_exeext
34587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34588   (eval $ac_link) 2>conftest.er1
34589   ac_status=$?
34590   grep -v '^ *+' conftest.er1 >conftest.err
34591   rm -f conftest.er1
34592   cat conftest.err >&5
34593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34594   (exit $ac_status); } &&
34595          { ac_try='test -z "$ac_c_werror_flag"
34596                          || test ! -s conftest.err'
34597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34598   (eval $ac_try) 2>&5
34599   ac_status=$?
34600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34601   (exit $ac_status); }; } &&
34602          { ac_try='test -s conftest$ac_exeext'
34603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34604   (eval $ac_try) 2>&5
34605   ac_status=$?
34606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607   (exit $ac_status); }; }; then
34608    echo "*** The test program compiled, but did not run. This usually means"
34609           echo "*** that the run-time linker is not finding SDL or finding the wrong"
34610           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34611           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34612           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
34613           echo "*** is required on your system"
34614           echo "***"
34615           echo "*** If you have an old version installed, it is best to remove it, although"
34616           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34617 else
34618   echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34620
34621  echo "*** The test program failed to compile or link. See the file config.log for the"
34622           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34623           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34624           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34625 fi
34626 rm -f conftest.err conftest.$ac_objext \
34627       conftest$ac_exeext conftest.$ac_ext
34628           CFLAGS="$ac_save_CFLAGS"
34629           LIBS="$ac_save_LIBS"
34630        fi
34631      fi
34632      SDL_CFLAGS=""
34633      SDL_LIBS=""
34634      wxUSE_LIBSDL="no"
34635   fi
34636
34637
34638   rm -f conf.sdltest
34639
34640       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34641         WITH_PLUGIN_SDL=1
34642       fi
34643     fi
34644   fi
34645
34646   cat >>confdefs.h <<\_ACEOF
34647 #define wxUSE_SOUND 1
34648 _ACEOF
34649
34650   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34651 fi
34652
34653 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34654   cat >>confdefs.h <<\_ACEOF
34655 #define wxUSE_CMDLINE_PARSER 1
34656 _ACEOF
34657
34658 fi
34659
34660 if test "$wxUSE_STOPWATCH" = "yes"; then
34661   cat >>confdefs.h <<\_ACEOF
34662 #define wxUSE_STOPWATCH 1
34663 _ACEOF
34664
34665 fi
34666
34667 if test "$wxUSE_DATETIME" = "yes"; then
34668   cat >>confdefs.h <<\_ACEOF
34669 #define wxUSE_DATETIME 1
34670 _ACEOF
34671
34672 fi
34673
34674 if test "$wxUSE_FILE" = "yes"; then
34675   cat >>confdefs.h <<\_ACEOF
34676 #define wxUSE_FILE 1
34677 _ACEOF
34678
34679 fi
34680
34681 if test "$wxUSE_FFILE" = "yes"; then
34682   cat >>confdefs.h <<\_ACEOF
34683 #define wxUSE_FFILE 1
34684 _ACEOF
34685
34686 fi
34687
34688 if test "$wxUSE_FILESYSTEM" = "yes"; then
34689   cat >>confdefs.h <<\_ACEOF
34690 #define wxUSE_FILESYSTEM 1
34691 _ACEOF
34692
34693 fi
34694
34695 if test "$wxUSE_FS_ZIP" = "yes"; then
34696   cat >>confdefs.h <<\_ACEOF
34697 #define wxUSE_FS_ZIP 1
34698 _ACEOF
34699
34700 fi
34701
34702 if test "$wxUSE_ZIPSTREAM" = "yes"; then
34703   cat >>confdefs.h <<\_ACEOF
34704 #define wxUSE_ZIPSTREAM 1
34705 _ACEOF
34706
34707 fi
34708
34709 if test "$wxUSE_GZSTREAM" = "yes"; then
34710   cat >>confdefs.h <<\_ACEOF
34711 #define wxUSE_GZSTREAM 1
34712 _ACEOF
34713
34714 fi
34715
34716 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34717   cat >>confdefs.h <<\_ACEOF
34718 #define wxUSE_ON_FATAL_EXCEPTION 1
34719 _ACEOF
34720
34721 fi
34722
34723 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34724   cat >>confdefs.h <<\_ACEOF
34725 #define wxUSE_SNGLINST_CHECKER 1
34726 _ACEOF
34727
34728 fi
34729
34730 if test "$wxUSE_BUSYINFO" = "yes"; then
34731   cat >>confdefs.h <<\_ACEOF
34732 #define wxUSE_BUSYINFO 1
34733 _ACEOF
34734
34735 fi
34736
34737 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34738   cat >>confdefs.h <<\_ACEOF
34739 #define wxUSE_STD_IOSTREAM 1
34740 _ACEOF
34741
34742 fi
34743
34744 if test "$wxUSE_TEXTBUFFER" = "yes"; then
34745     cat >>confdefs.h <<\_ACEOF
34746 #define wxUSE_TEXTBUFFER 1
34747 _ACEOF
34748
34749 fi
34750
34751 if test "$wxUSE_TEXTFILE" = "yes"; then
34752   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34753     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34754 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34755   else
34756     cat >>confdefs.h <<\_ACEOF
34757 #define wxUSE_TEXTFILE 1
34758 _ACEOF
34759
34760   fi
34761 fi
34762
34763 if test "$wxUSE_CONFIG" = "yes" ; then
34764   if test "$wxUSE_TEXTFILE" != "yes"; then
34765     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34766 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34767   else
34768     cat >>confdefs.h <<\_ACEOF
34769 #define wxUSE_CONFIG 1
34770 _ACEOF
34771
34772     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34773   fi
34774 fi
34775
34776 if test "$wxUSE_INTL" = "yes" ; then
34777   if test "$wxUSE_FILE" != "yes"; then
34778     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34779 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34780   else
34781     cat >>confdefs.h <<\_ACEOF
34782 #define wxUSE_INTL 1
34783 _ACEOF
34784
34785     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34786     GUIDIST="$GUIDIST INTL_DIST"
34787   fi
34788 fi
34789
34790 if test "$wxUSE_LOG" = "yes"; then
34791   cat >>confdefs.h <<\_ACEOF
34792 #define wxUSE_LOG 1
34793 _ACEOF
34794
34795
34796     if test "$wxUSE_LOGGUI" = "yes"; then
34797       cat >>confdefs.h <<\_ACEOF
34798 #define wxUSE_LOGGUI 1
34799 _ACEOF
34800
34801     fi
34802
34803     if test "$wxUSE_LOGWINDOW" = "yes"; then
34804       cat >>confdefs.h <<\_ACEOF
34805 #define wxUSE_LOGWINDOW 1
34806 _ACEOF
34807
34808     fi
34809
34810     if test "$wxUSE_LOGDIALOG" = "yes"; then
34811       cat >>confdefs.h <<\_ACEOF
34812 #define wxUSE_LOG_DIALOG 1
34813 _ACEOF
34814
34815     fi
34816 fi
34817
34818 if test "$wxUSE_LONGLONG" = "yes"; then
34819   cat >>confdefs.h <<\_ACEOF
34820 #define wxUSE_LONGLONG 1
34821 _ACEOF
34822
34823 fi
34824
34825 if test "$wxUSE_GEOMETRY" = "yes"; then
34826   cat >>confdefs.h <<\_ACEOF
34827 #define wxUSE_GEOMETRY 1
34828 _ACEOF
34829
34830 fi
34831
34832 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34833   cat >>confdefs.h <<\_ACEOF
34834 #define wxUSE_DIALUP_MANAGER 1
34835 _ACEOF
34836
34837   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34838 fi
34839
34840 if test "$wxUSE_STREAMS" = "yes" ; then
34841   cat >>confdefs.h <<\_ACEOF
34842 #define wxUSE_STREAMS 1
34843 _ACEOF
34844
34845 fi
34846
34847
34848 if test "$wxUSE_DATETIME" = "yes"; then
34849
34850 for ac_func in strptime
34851 do
34852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34853 echo "$as_me:$LINENO: checking for $ac_func" >&5
34854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34855 if eval "test \"\${$as_ac_var+set}\" = set"; then
34856   echo $ECHO_N "(cached) $ECHO_C" >&6
34857 else
34858   cat >conftest.$ac_ext <<_ACEOF
34859 /* confdefs.h.  */
34860 _ACEOF
34861 cat confdefs.h >>conftest.$ac_ext
34862 cat >>conftest.$ac_ext <<_ACEOF
34863 /* end confdefs.h.  */
34864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34866 #define $ac_func innocuous_$ac_func
34867
34868 /* System header to define __stub macros and hopefully few prototypes,
34869     which can conflict with char $ac_func (); below.
34870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34871     <limits.h> exists even on freestanding compilers.  */
34872
34873 #ifdef __STDC__
34874 # include <limits.h>
34875 #else
34876 # include <assert.h>
34877 #endif
34878
34879 #undef $ac_func
34880
34881 /* Override any gcc2 internal prototype to avoid an error.  */
34882 #ifdef __cplusplus
34883 extern "C"
34884 {
34885 #endif
34886 /* We use char because int might match the return type of a gcc2
34887    builtin and then its argument prototype would still apply.  */
34888 char $ac_func ();
34889 /* The GNU C library defines this for functions which it implements
34890     to always fail with ENOSYS.  Some functions are actually named
34891     something starting with __ and the normal name is an alias.  */
34892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34893 choke me
34894 #else
34895 char (*f) () = $ac_func;
34896 #endif
34897 #ifdef __cplusplus
34898 }
34899 #endif
34900
34901 int
34902 main ()
34903 {
34904 return f != $ac_func;
34905   ;
34906   return 0;
34907 }
34908 _ACEOF
34909 rm -f conftest.$ac_objext conftest$ac_exeext
34910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34911   (eval $ac_link) 2>conftest.er1
34912   ac_status=$?
34913   grep -v '^ *+' conftest.er1 >conftest.err
34914   rm -f conftest.er1
34915   cat conftest.err >&5
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); } &&
34918          { ac_try='test -z "$ac_c_werror_flag"
34919                          || test ! -s conftest.err'
34920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34921   (eval $ac_try) 2>&5
34922   ac_status=$?
34923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924   (exit $ac_status); }; } &&
34925          { ac_try='test -s conftest$ac_exeext'
34926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34927   (eval $ac_try) 2>&5
34928   ac_status=$?
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); }; }; then
34931   eval "$as_ac_var=yes"
34932 else
34933   echo "$as_me: failed program was:" >&5
34934 sed 's/^/| /' conftest.$ac_ext >&5
34935
34936 eval "$as_ac_var=no"
34937 fi
34938 rm -f conftest.err conftest.$ac_objext \
34939       conftest$ac_exeext conftest.$ac_ext
34940 fi
34941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34943 if test `eval echo '${'$as_ac_var'}'` = yes; then
34944   cat >>confdefs.h <<_ACEOF
34945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34946 _ACEOF
34947
34948 fi
34949 done
34950
34951
34952             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34953 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34954 if test "${wx_cv_var_timezone+set}" = set; then
34955   echo $ECHO_N "(cached) $ECHO_C" >&6
34956 else
34957
34958                         cat >conftest.$ac_ext <<_ACEOF
34959 /* confdefs.h.  */
34960 _ACEOF
34961 cat confdefs.h >>conftest.$ac_ext
34962 cat >>conftest.$ac_ext <<_ACEOF
34963 /* end confdefs.h.  */
34964
34965                                 #include <time.h>
34966
34967 int
34968 main ()
34969 {
34970
34971                                 int tz;
34972                                 tz = timezone;
34973
34974   ;
34975   return 0;
34976 }
34977 _ACEOF
34978 rm -f conftest.$ac_objext
34979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34980   (eval $ac_compile) 2>conftest.er1
34981   ac_status=$?
34982   grep -v '^ *+' conftest.er1 >conftest.err
34983   rm -f conftest.er1
34984   cat conftest.err >&5
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); } &&
34987          { ac_try='test -z "$ac_c_werror_flag"
34988                          || test ! -s conftest.err'
34989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34990   (eval $ac_try) 2>&5
34991   ac_status=$?
34992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993   (exit $ac_status); }; } &&
34994          { ac_try='test -s conftest.$ac_objext'
34995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996   (eval $ac_try) 2>&5
34997   ac_status=$?
34998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999   (exit $ac_status); }; }; then
35000
35001                                 wx_cv_var_timezone=timezone
35002
35003 else
35004   echo "$as_me: failed program was:" >&5
35005 sed 's/^/| /' conftest.$ac_ext >&5
35006
35007
35008                                 cat >conftest.$ac_ext <<_ACEOF
35009 /* confdefs.h.  */
35010 _ACEOF
35011 cat confdefs.h >>conftest.$ac_ext
35012 cat >>conftest.$ac_ext <<_ACEOF
35013 /* end confdefs.h.  */
35014
35015                                         #include <time.h>
35016
35017 int
35018 main ()
35019 {
35020
35021                                         int tz;
35022                                         tz = _timezone;
35023
35024   ;
35025   return 0;
35026 }
35027 _ACEOF
35028 rm -f conftest.$ac_objext
35029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35030   (eval $ac_compile) 2>conftest.er1
35031   ac_status=$?
35032   grep -v '^ *+' conftest.er1 >conftest.err
35033   rm -f conftest.er1
35034   cat conftest.err >&5
35035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036   (exit $ac_status); } &&
35037          { ac_try='test -z "$ac_c_werror_flag"
35038                          || test ! -s conftest.err'
35039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35040   (eval $ac_try) 2>&5
35041   ac_status=$?
35042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043   (exit $ac_status); }; } &&
35044          { ac_try='test -s conftest.$ac_objext'
35045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35046   (eval $ac_try) 2>&5
35047   ac_status=$?
35048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35049   (exit $ac_status); }; }; then
35050
35051                                         wx_cv_var_timezone=_timezone
35052
35053 else
35054   echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35056
35057
35058                                         cat >conftest.$ac_ext <<_ACEOF
35059 /* confdefs.h.  */
35060 _ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h.  */
35064
35065                                                 #include <time.h>
35066
35067 int
35068 main ()
35069 {
35070
35071                                                 int tz;
35072                                                 tz = __timezone;
35073
35074   ;
35075   return 0;
35076 }
35077 _ACEOF
35078 rm -f conftest.$ac_objext
35079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35080   (eval $ac_compile) 2>conftest.er1
35081   ac_status=$?
35082   grep -v '^ *+' conftest.er1 >conftest.err
35083   rm -f conftest.er1
35084   cat conftest.err >&5
35085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086   (exit $ac_status); } &&
35087          { ac_try='test -z "$ac_c_werror_flag"
35088                          || test ! -s conftest.err'
35089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35090   (eval $ac_try) 2>&5
35091   ac_status=$?
35092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35093   (exit $ac_status); }; } &&
35094          { ac_try='test -s conftest.$ac_objext'
35095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35096   (eval $ac_try) 2>&5
35097   ac_status=$?
35098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099   (exit $ac_status); }; }; then
35100
35101                                                 wx_cv_var_timezone=__timezone
35102
35103 else
35104   echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35106
35107
35108                                                 if test "$USE_DOS" = 0 ; then
35109                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35110 echo "$as_me: WARNING: no timezone variable" >&2;}
35111                                                 fi
35112
35113
35114 fi
35115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35116
35117
35118 fi
35119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35120
35121
35122 fi
35123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35124
35125
35126 fi
35127 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35128 echo "${ECHO_T}$wx_cv_var_timezone" >&6
35129
35130         if test "x$wx_cv_var_timezone" != x ; then
35131         cat >>confdefs.h <<_ACEOF
35132 #define WX_TIMEZONE $wx_cv_var_timezone
35133 _ACEOF
35134
35135     fi
35136
35137
35138 for ac_func in localtime
35139 do
35140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35141 echo "$as_me:$LINENO: checking for $ac_func" >&5
35142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35143 if eval "test \"\${$as_ac_var+set}\" = set"; then
35144   echo $ECHO_N "(cached) $ECHO_C" >&6
35145 else
35146   cat >conftest.$ac_ext <<_ACEOF
35147 /* confdefs.h.  */
35148 _ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h.  */
35152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35154 #define $ac_func innocuous_$ac_func
35155
35156 /* System header to define __stub macros and hopefully few prototypes,
35157     which can conflict with char $ac_func (); below.
35158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35159     <limits.h> exists even on freestanding compilers.  */
35160
35161 #ifdef __STDC__
35162 # include <limits.h>
35163 #else
35164 # include <assert.h>
35165 #endif
35166
35167 #undef $ac_func
35168
35169 /* Override any gcc2 internal prototype to avoid an error.  */
35170 #ifdef __cplusplus
35171 extern "C"
35172 {
35173 #endif
35174 /* We use char because int might match the return type of a gcc2
35175    builtin and then its argument prototype would still apply.  */
35176 char $ac_func ();
35177 /* The GNU C library defines this for functions which it implements
35178     to always fail with ENOSYS.  Some functions are actually named
35179     something starting with __ and the normal name is an alias.  */
35180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35181 choke me
35182 #else
35183 char (*f) () = $ac_func;
35184 #endif
35185 #ifdef __cplusplus
35186 }
35187 #endif
35188
35189 int
35190 main ()
35191 {
35192 return f != $ac_func;
35193   ;
35194   return 0;
35195 }
35196 _ACEOF
35197 rm -f conftest.$ac_objext conftest$ac_exeext
35198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35199   (eval $ac_link) 2>conftest.er1
35200   ac_status=$?
35201   grep -v '^ *+' conftest.er1 >conftest.err
35202   rm -f conftest.er1
35203   cat conftest.err >&5
35204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205   (exit $ac_status); } &&
35206          { ac_try='test -z "$ac_c_werror_flag"
35207                          || test ! -s conftest.err'
35208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35209   (eval $ac_try) 2>&5
35210   ac_status=$?
35211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35212   (exit $ac_status); }; } &&
35213          { ac_try='test -s conftest$ac_exeext'
35214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215   (eval $ac_try) 2>&5
35216   ac_status=$?
35217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218   (exit $ac_status); }; }; then
35219   eval "$as_ac_var=yes"
35220 else
35221   echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35223
35224 eval "$as_ac_var=no"
35225 fi
35226 rm -f conftest.err conftest.$ac_objext \
35227       conftest$ac_exeext conftest.$ac_ext
35228 fi
35229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35231 if test `eval echo '${'$as_ac_var'}'` = yes; then
35232   cat >>confdefs.h <<_ACEOF
35233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35234 _ACEOF
35235
35236 fi
35237 done
35238
35239
35240     if test "$ac_cv_func_localtime" = "yes"; then
35241         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35242 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35243 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35244   echo $ECHO_N "(cached) $ECHO_C" >&6
35245 else
35246
35247             cat >conftest.$ac_ext <<_ACEOF
35248 /* confdefs.h.  */
35249 _ACEOF
35250 cat confdefs.h >>conftest.$ac_ext
35251 cat >>conftest.$ac_ext <<_ACEOF
35252 /* end confdefs.h.  */
35253
35254                     #include <time.h>
35255
35256 int
35257 main ()
35258 {
35259
35260                     struct tm tm;
35261                     tm.tm_gmtoff++;
35262
35263   ;
35264   return 0;
35265 }
35266 _ACEOF
35267 rm -f conftest.$ac_objext
35268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35269   (eval $ac_compile) 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } &&
35276          { ac_try='test -z "$ac_c_werror_flag"
35277                          || test ! -s conftest.err'
35278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35279   (eval $ac_try) 2>&5
35280   ac_status=$?
35281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282   (exit $ac_status); }; } &&
35283          { ac_try='test -s conftest.$ac_objext'
35284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35285   (eval $ac_try) 2>&5
35286   ac_status=$?
35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288   (exit $ac_status); }; }; then
35289
35290                     wx_cv_struct_tm_has_gmtoff=yes
35291
35292 else
35293   echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35295
35296 wx_cv_struct_tm_has_gmtoff=no
35297
35298 fi
35299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35300
35301 fi
35302 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35303 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35304     fi
35305
35306     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35307         cat >>confdefs.h <<\_ACEOF
35308 #define WX_GMTOFF_IN_TM 1
35309 _ACEOF
35310
35311     fi
35312
35313
35314
35315 for ac_func in gettimeofday ftime
35316 do
35317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35318 echo "$as_me:$LINENO: checking for $ac_func" >&5
35319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35320 if eval "test \"\${$as_ac_var+set}\" = set"; then
35321   echo $ECHO_N "(cached) $ECHO_C" >&6
35322 else
35323   cat >conftest.$ac_ext <<_ACEOF
35324 /* confdefs.h.  */
35325 _ACEOF
35326 cat confdefs.h >>conftest.$ac_ext
35327 cat >>conftest.$ac_ext <<_ACEOF
35328 /* end confdefs.h.  */
35329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35331 #define $ac_func innocuous_$ac_func
35332
35333 /* System header to define __stub macros and hopefully few prototypes,
35334     which can conflict with char $ac_func (); below.
35335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35336     <limits.h> exists even on freestanding compilers.  */
35337
35338 #ifdef __STDC__
35339 # include <limits.h>
35340 #else
35341 # include <assert.h>
35342 #endif
35343
35344 #undef $ac_func
35345
35346 /* Override any gcc2 internal prototype to avoid an error.  */
35347 #ifdef __cplusplus
35348 extern "C"
35349 {
35350 #endif
35351 /* We use char because int might match the return type of a gcc2
35352    builtin and then its argument prototype would still apply.  */
35353 char $ac_func ();
35354 /* The GNU C library defines this for functions which it implements
35355     to always fail with ENOSYS.  Some functions are actually named
35356     something starting with __ and the normal name is an alias.  */
35357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35358 choke me
35359 #else
35360 char (*f) () = $ac_func;
35361 #endif
35362 #ifdef __cplusplus
35363 }
35364 #endif
35365
35366 int
35367 main ()
35368 {
35369 return f != $ac_func;
35370   ;
35371   return 0;
35372 }
35373 _ACEOF
35374 rm -f conftest.$ac_objext conftest$ac_exeext
35375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35376   (eval $ac_link) 2>conftest.er1
35377   ac_status=$?
35378   grep -v '^ *+' conftest.er1 >conftest.err
35379   rm -f conftest.er1
35380   cat conftest.err >&5
35381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382   (exit $ac_status); } &&
35383          { ac_try='test -z "$ac_c_werror_flag"
35384                          || test ! -s conftest.err'
35385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386   (eval $ac_try) 2>&5
35387   ac_status=$?
35388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389   (exit $ac_status); }; } &&
35390          { ac_try='test -s conftest$ac_exeext'
35391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392   (eval $ac_try) 2>&5
35393   ac_status=$?
35394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395   (exit $ac_status); }; }; then
35396   eval "$as_ac_var=yes"
35397 else
35398   echo "$as_me: failed program was:" >&5
35399 sed 's/^/| /' conftest.$ac_ext >&5
35400
35401 eval "$as_ac_var=no"
35402 fi
35403 rm -f conftest.err conftest.$ac_objext \
35404       conftest$ac_exeext conftest.$ac_ext
35405 fi
35406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35408 if test `eval echo '${'$as_ac_var'}'` = yes; then
35409   cat >>confdefs.h <<_ACEOF
35410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35411 _ACEOF
35412  break
35413 fi
35414 done
35415
35416
35417     if test "$ac_cv_func_gettimeofday" = "yes"; then
35418         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35419 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35420 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35421   echo $ECHO_N "(cached) $ECHO_C" >&6
35422 else
35423
35424
35425
35426             ac_ext=cc
35427 ac_cpp='$CXXCPP $CPPFLAGS'
35428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35431
35432
35433             cat >conftest.$ac_ext <<_ACEOF
35434 /* confdefs.h.  */
35435 _ACEOF
35436 cat confdefs.h >>conftest.$ac_ext
35437 cat >>conftest.$ac_ext <<_ACEOF
35438 /* end confdefs.h.  */
35439
35440                     #include <sys/time.h>
35441                     #include <unistd.h>
35442
35443 int
35444 main ()
35445 {
35446
35447                     struct timeval tv;
35448                     gettimeofday(&tv, NULL);
35449
35450   ;
35451   return 0;
35452 }
35453 _ACEOF
35454 rm -f conftest.$ac_objext
35455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35456   (eval $ac_compile) 2>conftest.er1
35457   ac_status=$?
35458   grep -v '^ *+' conftest.er1 >conftest.err
35459   rm -f conftest.er1
35460   cat conftest.err >&5
35461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462   (exit $ac_status); } &&
35463          { ac_try='test -z "$ac_cxx_werror_flag"
35464                          || test ! -s conftest.err'
35465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466   (eval $ac_try) 2>&5
35467   ac_status=$?
35468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469   (exit $ac_status); }; } &&
35470          { ac_try='test -s conftest.$ac_objext'
35471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35472   (eval $ac_try) 2>&5
35473   ac_status=$?
35474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475   (exit $ac_status); }; }; then
35476   wx_cv_func_gettimeofday_has_2_args=yes
35477 else
35478   echo "$as_me: failed program was:" >&5
35479 sed 's/^/| /' conftest.$ac_ext >&5
35480
35481 cat >conftest.$ac_ext <<_ACEOF
35482 /* confdefs.h.  */
35483 _ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h.  */
35487
35488                         #include <sys/time.h>
35489                         #include <unistd.h>
35490
35491 int
35492 main ()
35493 {
35494
35495                         struct timeval tv;
35496                         gettimeofday(&tv);
35497
35498   ;
35499   return 0;
35500 }
35501 _ACEOF
35502 rm -f conftest.$ac_objext
35503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35504   (eval $ac_compile) 2>conftest.er1
35505   ac_status=$?
35506   grep -v '^ *+' conftest.er1 >conftest.err
35507   rm -f conftest.er1
35508   cat conftest.err >&5
35509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510   (exit $ac_status); } &&
35511          { ac_try='test -z "$ac_cxx_werror_flag"
35512                          || test ! -s conftest.err'
35513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514   (eval $ac_try) 2>&5
35515   ac_status=$?
35516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517   (exit $ac_status); }; } &&
35518          { ac_try='test -s conftest.$ac_objext'
35519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520   (eval $ac_try) 2>&5
35521   ac_status=$?
35522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523   (exit $ac_status); }; }; then
35524   wx_cv_func_gettimeofday_has_2_args=no
35525 else
35526   echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35528
35529
35530                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35531 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35532                         wx_cv_func_gettimeofday_has_2_args=unknown
35533
35534
35535 fi
35536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35537
35538 fi
35539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35540             ac_ext=c
35541 ac_cpp='$CPP $CPPFLAGS'
35542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35545
35546
35547 fi
35548 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35549 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35550
35551         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35552             cat >>confdefs.h <<\_ACEOF
35553 #define WX_GETTIMEOFDAY_NO_TZ 1
35554 _ACEOF
35555
35556         fi
35557     fi
35558
35559     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35560 fi
35561
35562
35563 if test "$wxUSE_SOCKETS" = "yes"; then
35564     if test "$wxUSE_MGL" = "1"; then
35565         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35566 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35567         wxUSE_SOCKETS="no"
35568     fi
35569 fi
35570
35571 if test "$wxUSE_SOCKETS" = "yes"; then
35572         if test "$TOOLKIT" != "MSW"; then
35573                 echo "$as_me:$LINENO: checking for socket" >&5
35574 echo $ECHO_N "checking for socket... $ECHO_C" >&6
35575 if test "${ac_cv_func_socket+set}" = set; then
35576   echo $ECHO_N "(cached) $ECHO_C" >&6
35577 else
35578   cat >conftest.$ac_ext <<_ACEOF
35579 /* confdefs.h.  */
35580 _ACEOF
35581 cat confdefs.h >>conftest.$ac_ext
35582 cat >>conftest.$ac_ext <<_ACEOF
35583 /* end confdefs.h.  */
35584 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
35585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35586 #define socket innocuous_socket
35587
35588 /* System header to define __stub macros and hopefully few prototypes,
35589     which can conflict with char socket (); below.
35590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35591     <limits.h> exists even on freestanding compilers.  */
35592
35593 #ifdef __STDC__
35594 # include <limits.h>
35595 #else
35596 # include <assert.h>
35597 #endif
35598
35599 #undef socket
35600
35601 /* Override any gcc2 internal prototype to avoid an error.  */
35602 #ifdef __cplusplus
35603 extern "C"
35604 {
35605 #endif
35606 /* We use char because int might match the return type of a gcc2
35607    builtin and then its argument prototype would still apply.  */
35608 char socket ();
35609 /* The GNU C library defines this for functions which it implements
35610     to always fail with ENOSYS.  Some functions are actually named
35611     something starting with __ and the normal name is an alias.  */
35612 #if defined (__stub_socket) || defined (__stub___socket)
35613 choke me
35614 #else
35615 char (*f) () = socket;
35616 #endif
35617 #ifdef __cplusplus
35618 }
35619 #endif
35620
35621 int
35622 main ()
35623 {
35624 return f != socket;
35625   ;
35626   return 0;
35627 }
35628 _ACEOF
35629 rm -f conftest.$ac_objext conftest$ac_exeext
35630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35631   (eval $ac_link) 2>conftest.er1
35632   ac_status=$?
35633   grep -v '^ *+' conftest.er1 >conftest.err
35634   rm -f conftest.er1
35635   cat conftest.err >&5
35636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35637   (exit $ac_status); } &&
35638          { ac_try='test -z "$ac_c_werror_flag"
35639                          || test ! -s conftest.err'
35640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641   (eval $ac_try) 2>&5
35642   ac_status=$?
35643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644   (exit $ac_status); }; } &&
35645          { ac_try='test -s conftest$ac_exeext'
35646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647   (eval $ac_try) 2>&5
35648   ac_status=$?
35649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650   (exit $ac_status); }; }; then
35651   ac_cv_func_socket=yes
35652 else
35653   echo "$as_me: failed program was:" >&5
35654 sed 's/^/| /' conftest.$ac_ext >&5
35655
35656 ac_cv_func_socket=no
35657 fi
35658 rm -f conftest.err conftest.$ac_objext \
35659       conftest$ac_exeext conftest.$ac_ext
35660 fi
35661 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35662 echo "${ECHO_T}$ac_cv_func_socket" >&6
35663 if test $ac_cv_func_socket = yes; then
35664   :
35665 else
35666
35667                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35668 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35669 if test "${ac_cv_lib_socket_socket+set}" = set; then
35670   echo $ECHO_N "(cached) $ECHO_C" >&6
35671 else
35672   ac_check_lib_save_LIBS=$LIBS
35673 LIBS="-lsocket  $LIBS"
35674 cat >conftest.$ac_ext <<_ACEOF
35675 /* confdefs.h.  */
35676 _ACEOF
35677 cat confdefs.h >>conftest.$ac_ext
35678 cat >>conftest.$ac_ext <<_ACEOF
35679 /* end confdefs.h.  */
35680
35681 /* Override any gcc2 internal prototype to avoid an error.  */
35682 #ifdef __cplusplus
35683 extern "C"
35684 #endif
35685 /* We use char because int might match the return type of a gcc2
35686    builtin and then its argument prototype would still apply.  */
35687 char socket ();
35688 int
35689 main ()
35690 {
35691 socket ();
35692   ;
35693   return 0;
35694 }
35695 _ACEOF
35696 rm -f conftest.$ac_objext conftest$ac_exeext
35697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35698   (eval $ac_link) 2>conftest.er1
35699   ac_status=$?
35700   grep -v '^ *+' conftest.er1 >conftest.err
35701   rm -f conftest.er1
35702   cat conftest.err >&5
35703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704   (exit $ac_status); } &&
35705          { ac_try='test -z "$ac_c_werror_flag"
35706                          || test ! -s conftest.err'
35707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35708   (eval $ac_try) 2>&5
35709   ac_status=$?
35710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711   (exit $ac_status); }; } &&
35712          { ac_try='test -s conftest$ac_exeext'
35713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35714   (eval $ac_try) 2>&5
35715   ac_status=$?
35716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717   (exit $ac_status); }; }; then
35718   ac_cv_lib_socket_socket=yes
35719 else
35720   echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35722
35723 ac_cv_lib_socket_socket=no
35724 fi
35725 rm -f conftest.err conftest.$ac_objext \
35726       conftest$ac_exeext conftest.$ac_ext
35727 LIBS=$ac_check_lib_save_LIBS
35728 fi
35729 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35730 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35731 if test $ac_cv_lib_socket_socket = yes; then
35732   if test "$INET_LINK" != " -lsocket"; then
35733                         INET_LINK="$INET_LINK -lsocket"
35734                     fi
35735 else
35736
35737                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35738 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35739                         wxUSE_SOCKETS=no
35740
35741
35742 fi
35743
35744
35745
35746 fi
35747
35748     fi
35749 fi
35750
35751 if test "$wxUSE_SOCKETS" = "yes" ; then
35752                 if test "$TOOLKIT" != "MSW"; then
35753                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35754 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35755 if test "${wx_cv_type_getsockname3+set}" = set; then
35756   echo $ECHO_N "(cached) $ECHO_C" >&6
35757 else
35758
35759                 cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h.  */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h.  */
35765
35766                         #include <sys/types.h>
35767                         #include <sys/socket.h>
35768
35769 int
35770 main ()
35771 {
35772
35773                         socklen_t len;
35774                         getsockname(0, 0, &len);
35775
35776   ;
35777   return 0;
35778 }
35779 _ACEOF
35780 rm -f conftest.$ac_objext
35781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35782   (eval $ac_compile) 2>conftest.er1
35783   ac_status=$?
35784   grep -v '^ *+' conftest.er1 >conftest.err
35785   rm -f conftest.er1
35786   cat conftest.err >&5
35787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); } &&
35789          { ac_try='test -z "$ac_c_werror_flag"
35790                          || test ! -s conftest.err'
35791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792   (eval $ac_try) 2>&5
35793   ac_status=$?
35794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795   (exit $ac_status); }; } &&
35796          { ac_try='test -s conftest.$ac_objext'
35797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798   (eval $ac_try) 2>&5
35799   ac_status=$?
35800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801   (exit $ac_status); }; }; then
35802   wx_cv_type_getsockname3=socklen_t
35803 else
35804   echo "$as_me: failed program was:" >&5
35805 sed 's/^/| /' conftest.$ac_ext >&5
35806
35807
35808                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
35809                         if test "$GCC" = yes ; then
35810                             CFLAGS="$CFLAGS -Werror"
35811                         fi
35812
35813                         cat >conftest.$ac_ext <<_ACEOF
35814 /* confdefs.h.  */
35815 _ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h.  */
35819
35820                                 #include <sys/types.h>
35821                                 #include <sys/socket.h>
35822
35823 int
35824 main ()
35825 {
35826
35827                                 size_t len;
35828                                 getsockname(0, 0, &len);
35829
35830   ;
35831   return 0;
35832 }
35833 _ACEOF
35834 rm -f conftest.$ac_objext
35835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35836   (eval $ac_compile) 2>conftest.er1
35837   ac_status=$?
35838   grep -v '^ *+' conftest.er1 >conftest.err
35839   rm -f conftest.er1
35840   cat conftest.err >&5
35841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842   (exit $ac_status); } &&
35843          { ac_try='test -z "$ac_c_werror_flag"
35844                          || test ! -s conftest.err'
35845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846   (eval $ac_try) 2>&5
35847   ac_status=$?
35848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849   (exit $ac_status); }; } &&
35850          { ac_try='test -s conftest.$ac_objext'
35851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852   (eval $ac_try) 2>&5
35853   ac_status=$?
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); }; }; then
35856   wx_cv_type_getsockname3=size_t
35857 else
35858   echo "$as_me: failed program was:" >&5
35859 sed 's/^/| /' conftest.$ac_ext >&5
35860
35861 cat >conftest.$ac_ext <<_ACEOF
35862 /* confdefs.h.  */
35863 _ACEOF
35864 cat confdefs.h >>conftest.$ac_ext
35865 cat >>conftest.$ac_ext <<_ACEOF
35866 /* end confdefs.h.  */
35867
35868                                     #include <sys/types.h>
35869                                     #include <sys/socket.h>
35870
35871 int
35872 main ()
35873 {
35874
35875                                     int len;
35876                                     getsockname(0, 0, &len);
35877
35878   ;
35879   return 0;
35880 }
35881 _ACEOF
35882 rm -f conftest.$ac_objext
35883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35884   (eval $ac_compile) 2>conftest.er1
35885   ac_status=$?
35886   grep -v '^ *+' conftest.er1 >conftest.err
35887   rm -f conftest.er1
35888   cat conftest.err >&5
35889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890   (exit $ac_status); } &&
35891          { ac_try='test -z "$ac_c_werror_flag"
35892                          || test ! -s conftest.err'
35893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35894   (eval $ac_try) 2>&5
35895   ac_status=$?
35896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897   (exit $ac_status); }; } &&
35898          { ac_try='test -s conftest.$ac_objext'
35899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900   (eval $ac_try) 2>&5
35901   ac_status=$?
35902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903   (exit $ac_status); }; }; then
35904   wx_cv_type_getsockname3=int
35905 else
35906   echo "$as_me: failed program was:" >&5
35907 sed 's/^/| /' conftest.$ac_ext >&5
35908
35909 wx_cv_type_getsockname3=unknown
35910
35911 fi
35912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35913
35914 fi
35915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35916
35917                         CFLAGS="$CFLAGS_OLD"
35918
35919
35920 fi
35921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35922
35923 fi
35924 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35925 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35926
35927         if test "$wx_cv_type_getsockname3" = "unknown"; then
35928             wxUSE_SOCKETS=no
35929             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35930 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35931         else
35932             cat >>confdefs.h <<_ACEOF
35933 #define SOCKLEN_T $wx_cv_type_getsockname3
35934 _ACEOF
35935
35936         fi
35937     fi
35938 fi
35939
35940 if test "$wxUSE_SOCKETS" = "yes" ; then
35941     cat >>confdefs.h <<\_ACEOF
35942 #define wxUSE_SOCKETS 1
35943 _ACEOF
35944
35945     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35946 fi
35947
35948 if test "$wxUSE_PROTOCOL" = "yes"; then
35949     if test "$wxUSE_SOCKETS" != "yes"; then
35950         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35951 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35952         wxUSE_PROTOCOL=no
35953     fi
35954 fi
35955
35956 if test "$wxUSE_PROTOCOL" = "yes"; then
35957     cat >>confdefs.h <<\_ACEOF
35958 #define wxUSE_PROTOCOL 1
35959 _ACEOF
35960
35961
35962     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35963         cat >>confdefs.h <<\_ACEOF
35964 #define wxUSE_PROTOCOL_HTTP 1
35965 _ACEOF
35966
35967     fi
35968     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35969         cat >>confdefs.h <<\_ACEOF
35970 #define wxUSE_PROTOCOL_FTP 1
35971 _ACEOF
35972
35973     fi
35974     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35975         cat >>confdefs.h <<\_ACEOF
35976 #define wxUSE_PROTOCOL_FILE 1
35977 _ACEOF
35978
35979     fi
35980 else
35981     if test "$wxUSE_FS_INET" = "yes"; then
35982         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35983 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35984         wxUSE_FS_INET="no"
35985     fi
35986 fi
35987
35988 if test "$wxUSE_URL" = "yes"; then
35989     if test "$wxUSE_PROTOCOL" != "yes"; then
35990         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35991 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35992         wxUSE_URL=no
35993     fi
35994     if test "$wxUSE_URL" = "yes"; then
35995         cat >>confdefs.h <<\_ACEOF
35996 #define wxUSE_URL 1
35997 _ACEOF
35998
35999     fi
36000 fi
36001
36002 if test "$wxUSE_FS_INET" = "yes"; then
36003   cat >>confdefs.h <<\_ACEOF
36004 #define wxUSE_FS_INET 1
36005 _ACEOF
36006
36007 fi
36008
36009
36010 if test "$wxUSE_GUI" = "yes"; then
36011
36012     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36013         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36014 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36015         wxUSE_JOYSTICK=no
36016      fi
36017
36018          if test "$TOOLKIT" != "MSW"; then
36019         if test "$wxUSE_JOYSTICK" = "yes"; then
36020
36021 for ac_header in linux/joystick.h
36022 do
36023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36025   echo "$as_me:$LINENO: checking for $ac_header" >&5
36026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36028   echo $ECHO_N "(cached) $ECHO_C" >&6
36029 fi
36030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36032 else
36033   # Is the header compilable?
36034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36036 cat >conftest.$ac_ext <<_ACEOF
36037 /* confdefs.h.  */
36038 _ACEOF
36039 cat confdefs.h >>conftest.$ac_ext
36040 cat >>conftest.$ac_ext <<_ACEOF
36041 /* end confdefs.h.  */
36042 $ac_includes_default
36043 #include <$ac_header>
36044 _ACEOF
36045 rm -f conftest.$ac_objext
36046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36047   (eval $ac_compile) 2>conftest.er1
36048   ac_status=$?
36049   grep -v '^ *+' conftest.er1 >conftest.err
36050   rm -f conftest.er1
36051   cat conftest.err >&5
36052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053   (exit $ac_status); } &&
36054          { ac_try='test -z "$ac_c_werror_flag"
36055                          || test ! -s conftest.err'
36056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36057   (eval $ac_try) 2>&5
36058   ac_status=$?
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); }; } &&
36061          { ac_try='test -s conftest.$ac_objext'
36062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063   (eval $ac_try) 2>&5
36064   ac_status=$?
36065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066   (exit $ac_status); }; }; then
36067   ac_header_compiler=yes
36068 else
36069   echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072 ac_header_compiler=no
36073 fi
36074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36076 echo "${ECHO_T}$ac_header_compiler" >&6
36077
36078 # Is the header present?
36079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36081 cat >conftest.$ac_ext <<_ACEOF
36082 /* confdefs.h.  */
36083 _ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h.  */
36087 #include <$ac_header>
36088 _ACEOF
36089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36091   ac_status=$?
36092   grep -v '^ *+' conftest.er1 >conftest.err
36093   rm -f conftest.er1
36094   cat conftest.err >&5
36095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096   (exit $ac_status); } >/dev/null; then
36097   if test -s conftest.err; then
36098     ac_cpp_err=$ac_c_preproc_warn_flag
36099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36100   else
36101     ac_cpp_err=
36102   fi
36103 else
36104   ac_cpp_err=yes
36105 fi
36106 if test -z "$ac_cpp_err"; then
36107   ac_header_preproc=yes
36108 else
36109   echo "$as_me: failed program was:" >&5
36110 sed 's/^/| /' conftest.$ac_ext >&5
36111
36112   ac_header_preproc=no
36113 fi
36114 rm -f conftest.err conftest.$ac_ext
36115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36116 echo "${ECHO_T}$ac_header_preproc" >&6
36117
36118 # So?  What about this header?
36119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36120   yes:no: )
36121     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36125     ac_header_preproc=yes
36126     ;;
36127   no:yes:* )
36128     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36130     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36131 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36132     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36134     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36135 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36138     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36140     (
36141       cat <<\_ASBOX
36142 ## ----------------------------------------- ##
36143 ## Report this to wx-dev@lists.wxwindows.org ##
36144 ## ----------------------------------------- ##
36145 _ASBOX
36146     ) |
36147       sed "s/^/$as_me: WARNING:     /" >&2
36148     ;;
36149 esac
36150 echo "$as_me:$LINENO: checking for $ac_header" >&5
36151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36153   echo $ECHO_N "(cached) $ECHO_C" >&6
36154 else
36155   eval "$as_ac_Header=\$ac_header_preproc"
36156 fi
36157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36159
36160 fi
36161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36162   cat >>confdefs.h <<_ACEOF
36163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36164 _ACEOF
36165
36166 fi
36167
36168 done
36169
36170             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36171                 wxUSE_JOYSTICK=no
36172                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36173 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36174             fi
36175         fi
36176     fi
36177
36178     if test "$wxUSE_JOYSTICK" = "yes"; then
36179         cat >>confdefs.h <<\_ACEOF
36180 #define wxUSE_JOYSTICK 1
36181 _ACEOF
36182
36183         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36184     fi
36185 fi
36186
36187
36188
36189 if test "$wxUSE_FONTMAP" = "yes" ; then
36190   cat >>confdefs.h <<\_ACEOF
36191 #define wxUSE_FONTMAP 1
36192 _ACEOF
36193
36194 fi
36195
36196 if test "$wxUSE_UNICODE" = "yes" ; then
36197   cat >>confdefs.h <<\_ACEOF
36198 #define wxUSE_UNICODE 1
36199 _ACEOF
36200
36201
36202   if test "$USE_WIN32" != 1; then
36203       wxUSE_UNICODE_MSLU=no
36204   fi
36205
36206   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36207         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36208 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36209 if test "${ac_cv_lib_unicows_main+set}" = set; then
36210   echo $ECHO_N "(cached) $ECHO_C" >&6
36211 else
36212   ac_check_lib_save_LIBS=$LIBS
36213 LIBS="-lunicows  $LIBS"
36214 cat >conftest.$ac_ext <<_ACEOF
36215 /* confdefs.h.  */
36216 _ACEOF
36217 cat confdefs.h >>conftest.$ac_ext
36218 cat >>conftest.$ac_ext <<_ACEOF
36219 /* end confdefs.h.  */
36220
36221
36222 int
36223 main ()
36224 {
36225 main ();
36226   ;
36227   return 0;
36228 }
36229 _ACEOF
36230 rm -f conftest.$ac_objext conftest$ac_exeext
36231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36232   (eval $ac_link) 2>conftest.er1
36233   ac_status=$?
36234   grep -v '^ *+' conftest.er1 >conftest.err
36235   rm -f conftest.er1
36236   cat conftest.err >&5
36237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238   (exit $ac_status); } &&
36239          { ac_try='test -z "$ac_c_werror_flag"
36240                          || test ! -s conftest.err'
36241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36242   (eval $ac_try) 2>&5
36243   ac_status=$?
36244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245   (exit $ac_status); }; } &&
36246          { ac_try='test -s conftest$ac_exeext'
36247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248   (eval $ac_try) 2>&5
36249   ac_status=$?
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); }; }; then
36252   ac_cv_lib_unicows_main=yes
36253 else
36254   echo "$as_me: failed program was:" >&5
36255 sed 's/^/| /' conftest.$ac_ext >&5
36256
36257 ac_cv_lib_unicows_main=no
36258 fi
36259 rm -f conftest.err conftest.$ac_objext \
36260       conftest$ac_exeext conftest.$ac_ext
36261 LIBS=$ac_check_lib_save_LIBS
36262 fi
36263 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36264 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36265 if test $ac_cv_lib_unicows_main = yes; then
36266
36267                 cat >>confdefs.h <<\_ACEOF
36268 #define wxUSE_UNICODE_MSLU 1
36269 _ACEOF
36270
36271
36272 else
36273
36274                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36275                              Applications will only run on Windows NT/2000/XP!" >&5
36276 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36277                              Applications will only run on Windows NT/2000/XP!" >&2;}
36278                 wxUSE_UNICODE_MSLU=no
36279
36280 fi
36281
36282     fi
36283 fi
36284
36285 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36286   cat >>confdefs.h <<\_ACEOF
36287 #define wxUSE_EXPERIMENTAL_PRINTF 1
36288 _ACEOF
36289
36290 fi
36291
36292
36293 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36294   cat >>confdefs.h <<\_ACEOF
36295 #define wxUSE_POSTSCRIPT 1
36296 _ACEOF
36297
36298 fi
36299
36300 cat >>confdefs.h <<\_ACEOF
36301 #define wxUSE_AFM_FOR_POSTSCRIPT 1
36302 _ACEOF
36303
36304
36305 cat >>confdefs.h <<\_ACEOF
36306 #define wxUSE_NORMALIZED_PS_FONTS 1
36307 _ACEOF
36308
36309
36310
36311 if test "$wxUSE_CONSTRAINTS" = "yes"; then
36312     cat >>confdefs.h <<\_ACEOF
36313 #define wxUSE_CONSTRAINTS 1
36314 _ACEOF
36315
36316     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36317 fi
36318
36319 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36320    cat >>confdefs.h <<\_ACEOF
36321 #define wxUSE_MDI_ARCHITECTURE 1
36322 _ACEOF
36323
36324    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36325 fi
36326
36327 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36328     cat >>confdefs.h <<\_ACEOF
36329 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
36330 _ACEOF
36331
36332     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36333     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36334         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36335     fi
36336 fi
36337
36338 if test "$wxUSE_HELP" = "yes"; then
36339     cat >>confdefs.h <<\_ACEOF
36340 #define wxUSE_HELP 1
36341 _ACEOF
36342
36343     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36344
36345     if test "$wxUSE_MSW" = 1; then
36346       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36347         cat >>confdefs.h <<\_ACEOF
36348 #define wxUSE_MS_HTML_HELP 1
36349 _ACEOF
36350
36351       fi
36352     fi
36353
36354     if test "$wxUSE_WXHTML_HELP" = "yes"; then
36355       if test "$wxUSE_HTML" = "yes"; then
36356         cat >>confdefs.h <<\_ACEOF
36357 #define wxUSE_WXHTML_HELP 1
36358 _ACEOF
36359
36360       else
36361         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36362 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36363         wxUSE_WXHTML_HELP=no
36364       fi
36365     fi
36366 fi
36367
36368 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36369     if test "$wxUSE_CONSTRAINTS" != "yes"; then
36370         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36371 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36372     else
36373         cat >>confdefs.h <<\_ACEOF
36374 #define wxUSE_PRINTING_ARCHITECTURE 1
36375 _ACEOF
36376
36377     fi
36378     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36379 fi
36380
36381 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
36382     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36383 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36384    { (exit 1); exit 1; }; }
36385 fi
36386
36387
36388 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
36389                           -o "$wxUSE_CLIPBOARD"     = "yes" \
36390                           -o "$wxUSE_OLE"     = "yes" \
36391                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36392
36393 for ac_header in ole2.h
36394 do
36395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36397   echo "$as_me:$LINENO: checking for $ac_header" >&5
36398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36400   echo $ECHO_N "(cached) $ECHO_C" >&6
36401 fi
36402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36404 else
36405   # Is the header compilable?
36406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36408 cat >conftest.$ac_ext <<_ACEOF
36409 /* confdefs.h.  */
36410 _ACEOF
36411 cat confdefs.h >>conftest.$ac_ext
36412 cat >>conftest.$ac_ext <<_ACEOF
36413 /* end confdefs.h.  */
36414 $ac_includes_default
36415 #include <$ac_header>
36416 _ACEOF
36417 rm -f conftest.$ac_objext
36418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36419   (eval $ac_compile) 2>conftest.er1
36420   ac_status=$?
36421   grep -v '^ *+' conftest.er1 >conftest.err
36422   rm -f conftest.er1
36423   cat conftest.err >&5
36424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425   (exit $ac_status); } &&
36426          { ac_try='test -z "$ac_c_werror_flag"
36427                          || test ! -s conftest.err'
36428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429   (eval $ac_try) 2>&5
36430   ac_status=$?
36431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432   (exit $ac_status); }; } &&
36433          { ac_try='test -s conftest.$ac_objext'
36434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435   (eval $ac_try) 2>&5
36436   ac_status=$?
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); }; }; then
36439   ac_header_compiler=yes
36440 else
36441   echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.$ac_ext >&5
36443
36444 ac_header_compiler=no
36445 fi
36446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36448 echo "${ECHO_T}$ac_header_compiler" >&6
36449
36450 # Is the header present?
36451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36453 cat >conftest.$ac_ext <<_ACEOF
36454 /* confdefs.h.  */
36455 _ACEOF
36456 cat confdefs.h >>conftest.$ac_ext
36457 cat >>conftest.$ac_ext <<_ACEOF
36458 /* end confdefs.h.  */
36459 #include <$ac_header>
36460 _ACEOF
36461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36463   ac_status=$?
36464   grep -v '^ *+' conftest.er1 >conftest.err
36465   rm -f conftest.er1
36466   cat conftest.err >&5
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); } >/dev/null; then
36469   if test -s conftest.err; then
36470     ac_cpp_err=$ac_c_preproc_warn_flag
36471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36472   else
36473     ac_cpp_err=
36474   fi
36475 else
36476   ac_cpp_err=yes
36477 fi
36478 if test -z "$ac_cpp_err"; then
36479   ac_header_preproc=yes
36480 else
36481   echo "$as_me: failed program was:" >&5
36482 sed 's/^/| /' conftest.$ac_ext >&5
36483
36484   ac_header_preproc=no
36485 fi
36486 rm -f conftest.err conftest.$ac_ext
36487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36488 echo "${ECHO_T}$ac_header_preproc" >&6
36489
36490 # So?  What about this header?
36491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36492   yes:no: )
36493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36497     ac_header_preproc=yes
36498     ;;
36499   no:yes:* )
36500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36512     (
36513       cat <<\_ASBOX
36514 ## ----------------------------------------- ##
36515 ## Report this to wx-dev@lists.wxwindows.org ##
36516 ## ----------------------------------------- ##
36517 _ASBOX
36518     ) |
36519       sed "s/^/$as_me: WARNING:     /" >&2
36520     ;;
36521 esac
36522 echo "$as_me:$LINENO: checking for $ac_header" >&5
36523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36525   echo $ECHO_N "(cached) $ECHO_C" >&6
36526 else
36527   eval "$as_ac_Header=\$ac_header_preproc"
36528 fi
36529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36531
36532 fi
36533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36534   cat >>confdefs.h <<_ACEOF
36535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36536 _ACEOF
36537
36538 fi
36539
36540 done
36541
36542
36543     if test "$ac_cv_header_ole2_h" = "yes" ; then
36544         if test "$GCC" = yes ; then
36545
36546
36547             ac_ext=cc
36548 ac_cpp='$CXXCPP $CPPFLAGS'
36549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36552
36553
36554             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36555 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36556             cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h.  */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h.  */
36562 #include <windows.h>
36563                             #include <ole2.h>
36564 int
36565 main ()
36566 {
36567
36568   ;
36569   return 0;
36570 }
36571 _ACEOF
36572 rm -f conftest.$ac_objext
36573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36574   (eval $ac_compile) 2>conftest.er1
36575   ac_status=$?
36576   grep -v '^ *+' conftest.er1 >conftest.err
36577   rm -f conftest.er1
36578   cat conftest.err >&5
36579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580   (exit $ac_status); } &&
36581          { ac_try='test -z "$ac_cxx_werror_flag"
36582                          || test ! -s conftest.err'
36583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36584   (eval $ac_try) 2>&5
36585   ac_status=$?
36586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587   (exit $ac_status); }; } &&
36588          { ac_try='test -s conftest.$ac_objext'
36589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36590   (eval $ac_try) 2>&5
36591   ac_status=$?
36592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593   (exit $ac_status); }; }; then
36594   echo "$as_me:$LINENO: result: no" >&5
36595 echo "${ECHO_T}no" >&6
36596 else
36597   echo "$as_me: failed program was:" >&5
36598 sed 's/^/| /' conftest.$ac_ext >&5
36599
36600 echo "$as_me:$LINENO: result: yes" >&5
36601 echo "${ECHO_T}yes" >&6
36602                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36603 fi
36604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36605             ac_ext=c
36606 ac_cpp='$CPP $CPPFLAGS'
36607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36610
36611             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36612             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36613             if test "$wxUSE_OLE" = "yes" ; then
36614                 cat >>confdefs.h <<\_ACEOF
36615 #define wxUSE_OLE 1
36616 _ACEOF
36617
36618             fi
36619         fi
36620
36621                 if test "$wxUSE_DATAOBJ" = "yes" ; then
36622             cat >>confdefs.h <<\_ACEOF
36623 #define wxUSE_DATAOBJ 1
36624 _ACEOF
36625
36626         fi
36627     else
36628         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36629 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36630
36631         wxUSE_CLIPBOARD=no
36632         wxUSE_DRAG_AND_DROP=no
36633         wxUSE_DATAOBJ=no
36634         wxUSE_OLE=no
36635     fi
36636
36637     if test "$wxUSE_METAFILE" = "yes"; then
36638         cat >>confdefs.h <<\_ACEOF
36639 #define wxUSE_METAFILE 1
36640 _ACEOF
36641
36642
36643                 cat >>confdefs.h <<\_ACEOF
36644 #define wxUSE_ENH_METAFILE 1
36645 _ACEOF
36646
36647     fi
36648 fi
36649
36650 if test "$wxUSE_IPC" = "yes"; then
36651     if test "$wxUSE_SOCKETS" != "yes"; then
36652         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36653 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36654     fi
36655
36656     cat >>confdefs.h <<\_ACEOF
36657 #define wxUSE_IPC 1
36658 _ACEOF
36659
36660 fi
36661
36662 if test "$wxUSE_CLIPBOARD" = "yes"; then
36663     if test "$wxUSE_MGL" = 1; then
36664         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36665 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36666         wxUSE_CLIPBOARD=no
36667     fi
36668
36669     if test "$wxUSE_CLIPBOARD" = "yes"; then
36670         cat >>confdefs.h <<\_ACEOF
36671 #define wxUSE_CLIPBOARD 1
36672 _ACEOF
36673
36674
36675                 cat >>confdefs.h <<\_ACEOF
36676 #define wxUSE_DATAOBJ 1
36677 _ACEOF
36678
36679     fi
36680 fi
36681
36682 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36683     if test "$wxUSE_GTK" = 1; then
36684         if test "$WXGTK12" != 1; then
36685             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36686 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36687             wxUSE_DRAG_AND_DROP=no
36688         fi
36689     fi
36690
36691     if test "$wxUSE_MOTIF" = 1; then
36692         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36693 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36694         wxUSE_DRAG_AND_DROP=no
36695     fi
36696
36697     if test "$wxUSE_X11" = 1; then
36698         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36699 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36700         wxUSE_DRAG_AND_DROP=no
36701     fi
36702
36703     if test "$wxUSE_MGL" = 1; then
36704         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36705 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36706         wxUSE_DRAG_AND_DROP=no
36707     fi
36708
36709     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36710         cat >>confdefs.h <<\_ACEOF
36711 #define wxUSE_DRAG_AND_DROP 1
36712 _ACEOF
36713
36714     fi
36715
36716 fi
36717
36718 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36719     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36720 fi
36721
36722 if test "$wxUSE_SPLINES" = "yes" ; then
36723   cat >>confdefs.h <<\_ACEOF
36724 #define wxUSE_SPLINES 1
36725 _ACEOF
36726
36727 fi
36728
36729
36730 USES_CONTROLS=0
36731 if test "$wxUSE_CONTROLS" = "yes"; then
36732   USES_CONTROLS=1
36733 fi
36734
36735 if test "$wxUSE_ACCEL" = "yes"; then
36736   cat >>confdefs.h <<\_ACEOF
36737 #define wxUSE_ACCEL 1
36738 _ACEOF
36739
36740   USES_CONTROLS=1
36741 fi
36742
36743 if test "$wxUSE_BUTTON" = "yes"; then
36744   cat >>confdefs.h <<\_ACEOF
36745 #define wxUSE_BUTTON 1
36746 _ACEOF
36747
36748   USES_CONTROLS=1
36749 fi
36750
36751 if test "$wxUSE_BMPBUTTON" = "yes"; then
36752   cat >>confdefs.h <<\_ACEOF
36753 #define wxUSE_BMPBUTTON 1
36754 _ACEOF
36755
36756   USES_CONTROLS=1
36757 fi
36758
36759 if test "$wxUSE_CALCTRL" = "yes"; then
36760   cat >>confdefs.h <<\_ACEOF
36761 #define wxUSE_CALENDARCTRL 1
36762 _ACEOF
36763
36764   USES_CONTROLS=1
36765   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36766 fi
36767
36768 if test "$wxUSE_CARET" = "yes"; then
36769   cat >>confdefs.h <<\_ACEOF
36770 #define wxUSE_CARET 1
36771 _ACEOF
36772
36773   USES_CONTROLS=1
36774   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36775 fi
36776
36777 if test "$wxUSE_COMBOBOX" = "yes"; then
36778   cat >>confdefs.h <<\_ACEOF
36779 #define wxUSE_COMBOBOX 1
36780 _ACEOF
36781
36782   USES_CONTROLS=1
36783 fi
36784
36785 if test "$wxUSE_CHOICE" = "yes"; then
36786   cat >>confdefs.h <<\_ACEOF
36787 #define wxUSE_CHOICE 1
36788 _ACEOF
36789
36790   USES_CONTROLS=1
36791 fi
36792
36793 if test "$wxUSE_CHECKBOX" = "yes"; then
36794   cat >>confdefs.h <<\_ACEOF
36795 #define wxUSE_CHECKBOX 1
36796 _ACEOF
36797
36798   USES_CONTROLS=1
36799 fi
36800
36801 if test "$wxUSE_CHECKLST" = "yes"; then
36802   cat >>confdefs.h <<\_ACEOF
36803 #define wxUSE_CHECKLISTBOX 1
36804 _ACEOF
36805
36806   USES_CONTROLS=1
36807   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36808 fi
36809
36810 if test "$wxUSE_DISPLAY" = "yes"; then
36811     cat >>confdefs.h <<\_ACEOF
36812 #define wxUSE_DISPLAY 1
36813 _ACEOF
36814
36815     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36816 fi
36817
36818 if test "$wxUSE_GAUGE" = "yes"; then
36819   cat >>confdefs.h <<\_ACEOF
36820 #define wxUSE_GAUGE 1
36821 _ACEOF
36822
36823   USES_CONTROLS=1
36824 fi
36825
36826 if test "$wxUSE_GRID" = "yes"; then
36827   cat >>confdefs.h <<\_ACEOF
36828 #define wxUSE_GRID 1
36829 _ACEOF
36830
36831   USES_CONTROLS=1
36832   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36833 fi
36834
36835 if test "$wxUSE_IMAGLIST" = "yes"; then
36836     cat >>confdefs.h <<\_ACEOF
36837 #define wxUSE_IMAGLIST 1
36838 _ACEOF
36839
36840 fi
36841
36842 if test "$wxUSE_LISTBOOK" = "yes"; then
36843     cat >>confdefs.h <<\_ACEOF
36844 #define wxUSE_LISTBOOK 1
36845 _ACEOF
36846
36847     USES_CONTROLS=1
36848 fi
36849
36850 if test "$wxUSE_LISTBOX" = "yes"; then
36851     cat >>confdefs.h <<\_ACEOF
36852 #define wxUSE_LISTBOX 1
36853 _ACEOF
36854
36855     USES_CONTROLS=1
36856 fi
36857
36858 if test "$wxUSE_LISTCTRL" = "yes"; then
36859     if test "$wxUSE_IMAGLIST" = "yes"; then
36860         cat >>confdefs.h <<\_ACEOF
36861 #define wxUSE_LISTCTRL 1
36862 _ACEOF
36863
36864         USES_CONTROLS=1
36865         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36866     else
36867         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36868 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36869     fi
36870 fi
36871
36872 if test "$wxUSE_NOTEBOOK" = "yes"; then
36873     cat >>confdefs.h <<\_ACEOF
36874 #define wxUSE_NOTEBOOK 1
36875 _ACEOF
36876
36877     USES_CONTROLS=1
36878     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36879 fi
36880
36881
36882 if test "$wxUSE_RADIOBOX" = "yes"; then
36883     cat >>confdefs.h <<\_ACEOF
36884 #define wxUSE_RADIOBOX 1
36885 _ACEOF
36886
36887     USES_CONTROLS=1
36888 fi
36889
36890 if test "$wxUSE_RADIOBTN" = "yes"; then
36891     cat >>confdefs.h <<\_ACEOF
36892 #define wxUSE_RADIOBTN 1
36893 _ACEOF
36894
36895     USES_CONTROLS=1
36896 fi
36897
36898 if test "$wxUSE_SASH" = "yes"; then
36899     cat >>confdefs.h <<\_ACEOF
36900 #define wxUSE_SASH 1
36901 _ACEOF
36902
36903     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36904 fi
36905
36906 if test "$wxUSE_SCROLLBAR" = "yes"; then
36907     cat >>confdefs.h <<\_ACEOF
36908 #define wxUSE_SCROLLBAR 1
36909 _ACEOF
36910
36911     USES_CONTROLS=1
36912     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36913 fi
36914
36915 if test "$wxUSE_SLIDER" = "yes"; then
36916     cat >>confdefs.h <<\_ACEOF
36917 #define wxUSE_SLIDER 1
36918 _ACEOF
36919
36920     USES_CONTROLS=1
36921 fi
36922
36923 if test "$wxUSE_SPINBTN" = "yes"; then
36924     cat >>confdefs.h <<\_ACEOF
36925 #define wxUSE_SPINBTN 1
36926 _ACEOF
36927
36928     USES_CONTROLS=1
36929 fi
36930
36931 if test "$wxUSE_SPINCTRL" = "yes"; then
36932     cat >>confdefs.h <<\_ACEOF
36933 #define wxUSE_SPINCTRL 1
36934 _ACEOF
36935
36936     USES_CONTROLS=1
36937 fi
36938
36939 if test "$wxUSE_SPLITTER" = "yes"; then
36940     cat >>confdefs.h <<\_ACEOF
36941 #define wxUSE_SPLITTER 1
36942 _ACEOF
36943
36944     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36945 fi
36946
36947 if test "$wxUSE_STATBMP" = "yes"; then
36948     cat >>confdefs.h <<\_ACEOF
36949 #define wxUSE_STATBMP 1
36950 _ACEOF
36951
36952     USES_CONTROLS=1
36953 fi
36954
36955 if test "$wxUSE_STATBOX" = "yes"; then
36956     cat >>confdefs.h <<\_ACEOF
36957 #define wxUSE_STATBOX 1
36958 _ACEOF
36959
36960     USES_CONTROLS=1
36961 fi
36962
36963 if test "$wxUSE_STATTEXT" = "yes"; then
36964     cat >>confdefs.h <<\_ACEOF
36965 #define wxUSE_STATTEXT 1
36966 _ACEOF
36967
36968     USES_CONTROLS=1
36969 fi
36970
36971 if test "$wxUSE_STATLINE" = "yes"; then
36972     cat >>confdefs.h <<\_ACEOF
36973 #define wxUSE_STATLINE 1
36974 _ACEOF
36975
36976     USES_CONTROLS=1
36977 fi
36978
36979 if test "$wxUSE_STATUSBAR" = "yes"; then
36980     cat >>confdefs.h <<\_ACEOF
36981 #define wxUSE_STATUSBAR 1
36982 _ACEOF
36983
36984     USES_CONTROLS=1
36985
36986     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36987 fi
36988
36989 if test "$wxUSE_TABDIALOG" = "yes"; then
36990     cat >>confdefs.h <<\_ACEOF
36991 #define wxUSE_TAB_DIALOG 1
36992 _ACEOF
36993
36994     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36995 fi
36996
36997 if test "$wxUSE_TEXTCTRL" = "yes"; then
36998     cat >>confdefs.h <<\_ACEOF
36999 #define wxUSE_TEXTCTRL 1
37000 _ACEOF
37001
37002     USES_CONTROLS=1
37003     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37004 fi
37005
37006 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37007     if test "$wxUSE_COCOA" = 1 ; then
37008         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37009 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37010         wxUSE_TOGGLEBTN=no
37011     fi
37012     if test "$wxUSE_UNIVERSAL" = "yes"; then
37013         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37014 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37015         wxUSE_TOGGLEBTN=no
37016     fi
37017
37018     if test "$wxUSE_TOGGLEBTN" = "yes"; then
37019         cat >>confdefs.h <<\_ACEOF
37020 #define wxUSE_TOGGLEBTN 1
37021 _ACEOF
37022
37023         USES_CONTROLS=1
37024     fi
37025 fi
37026
37027 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37028     cat >>confdefs.h <<\_ACEOF
37029 #define wxUSE_TOOLBAR_SIMPLE 1
37030 _ACEOF
37031
37032     wxUSE_TOOLBAR="yes"
37033     USES_CONTROLS=1
37034 fi
37035
37036 if test "$wxUSE_TOOLBAR" = "yes"; then
37037     cat >>confdefs.h <<\_ACEOF
37038 #define wxUSE_TOOLBAR 1
37039 _ACEOF
37040
37041     USES_CONTROLS=1
37042
37043         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37044         wxUSE_TOOLBAR_NATIVE="yes"
37045     fi
37046
37047     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37048         cat >>confdefs.h <<\_ACEOF
37049 #define wxUSE_TOOLBAR_NATIVE 1
37050 _ACEOF
37051
37052         USES_CONTROLS=1
37053     fi
37054
37055     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37056 fi
37057
37058 if test "$wxUSE_TOOLTIPS" = "yes"; then
37059     if test "$wxUSE_MOTIF" = 1; then
37060         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37061 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37062     else
37063         if test "$wxUSE_UNIVERSAL" = "yes"; then
37064             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37065 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37066         else
37067             cat >>confdefs.h <<\_ACEOF
37068 #define wxUSE_TOOLTIPS 1
37069 _ACEOF
37070
37071         fi
37072     fi
37073 fi
37074
37075 if test "$wxUSE_TREECTRL" = "yes"; then
37076     if test "$wxUSE_IMAGLIST" = "yes"; then
37077         cat >>confdefs.h <<\_ACEOF
37078 #define wxUSE_TREECTRL 1
37079 _ACEOF
37080
37081         USES_CONTROLS=1
37082         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37083     else
37084         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37085 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37086     fi
37087 fi
37088
37089 if test "$wxUSE_POPUPWIN" = "yes"; then
37090     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37091         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37092 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37093     else
37094         if test "$wxUSE_PM" = 1; then
37095             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37096 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37097         else
37098             cat >>confdefs.h <<\_ACEOF
37099 #define wxUSE_POPUPWIN 1
37100 _ACEOF
37101
37102
37103             USES_CONTROLS=1
37104         fi
37105     fi
37106 fi
37107
37108 if test "$wxUSE_TIPWINDOW" = "yes"; then
37109     if test "$wxUSE_PM" = 1; then
37110         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37111 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37112     else
37113         cat >>confdefs.h <<\_ACEOF
37114 #define wxUSE_TIPWINDOW 1
37115 _ACEOF
37116
37117     fi
37118 fi
37119
37120 if test "$USES_CONTROLS" = 1; then
37121     cat >>confdefs.h <<\_ACEOF
37122 #define wxUSE_CONTROLS 1
37123 _ACEOF
37124
37125 fi
37126
37127
37128 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37129     cat >>confdefs.h <<\_ACEOF
37130 #define wxUSE_ACCESSIBILITY 1
37131 _ACEOF
37132
37133     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37134 fi
37135
37136 if test "$wxUSE_DRAGIMAGE" = "yes"; then
37137     cat >>confdefs.h <<\_ACEOF
37138 #define wxUSE_DRAGIMAGE 1
37139 _ACEOF
37140
37141     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37142 fi
37143
37144 if test "$wxUSE_EXCEPTIONS" = "yes"; then
37145     cat >>confdefs.h <<\_ACEOF
37146 #define wxUSE_EXCEPTIONS 1
37147 _ACEOF
37148
37149 fi
37150
37151 USE_HTML=0
37152 if test "$wxUSE_HTML" = "yes"; then
37153     cat >>confdefs.h <<\_ACEOF
37154 #define wxUSE_HTML 1
37155 _ACEOF
37156
37157     USE_HTML=1
37158     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37159 fi
37160
37161 if test "$wxUSE_MENUS" = "yes"; then
37162     cat >>confdefs.h <<\_ACEOF
37163 #define wxUSE_MENUS 1
37164 _ACEOF
37165
37166     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37167 fi
37168
37169 if test "$wxUSE_METAFILE" = "yes"; then
37170     cat >>confdefs.h <<\_ACEOF
37171 #define wxUSE_METAFILE 1
37172 _ACEOF
37173
37174 fi
37175
37176 if test "$wxUSE_MIMETYPE" = "yes"; then
37177     cat >>confdefs.h <<\_ACEOF
37178 #define wxUSE_MIMETYPE 1
37179 _ACEOF
37180
37181 fi
37182
37183 if test "$wxUSE_MINIFRAME" = "yes"; then
37184     cat >>confdefs.h <<\_ACEOF
37185 #define wxUSE_MINIFRAME 1
37186 _ACEOF
37187
37188     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37189 fi
37190
37191 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37192     cat >>confdefs.h <<\_ACEOF
37193 #define wxUSE_SYSTEM_OPTIONS 1
37194 _ACEOF
37195
37196     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37197         "$TOOLKIT" = "MOTIF"; then
37198         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37199     fi
37200 fi
37201
37202
37203 if test "$wxUSE_VALIDATORS" = "yes"; then
37204     cat >>confdefs.h <<\_ACEOF
37205 #define wxUSE_VALIDATORS 1
37206 _ACEOF
37207
37208     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37209 fi
37210
37211 if test "$wxUSE_PALETTE" = "yes" ; then
37212   cat >>confdefs.h <<\_ACEOF
37213 #define wxUSE_PALETTE 1
37214 _ACEOF
37215
37216 fi
37217
37218 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37219     LIBS=" -lunicows $LIBS"
37220 fi
37221
37222
37223 if test "$wxUSE_IMAGE" = "yes" ; then
37224     cat >>confdefs.h <<\_ACEOF
37225 #define wxUSE_IMAGE 1
37226 _ACEOF
37227
37228
37229     if test "$wxUSE_GIF" = "yes" ; then
37230       cat >>confdefs.h <<\_ACEOF
37231 #define wxUSE_GIF 1
37232 _ACEOF
37233
37234     fi
37235
37236     if test "$wxUSE_PCX" = "yes" ; then
37237       cat >>confdefs.h <<\_ACEOF
37238 #define wxUSE_PCX 1
37239 _ACEOF
37240
37241     fi
37242
37243     if test "$wxUSE_IFF" = "yes" ; then
37244       cat >>confdefs.h <<\_ACEOF
37245 #define wxUSE_IFF 1
37246 _ACEOF
37247
37248     fi
37249
37250     if test "$wxUSE_PNM" = "yes" ; then
37251       cat >>confdefs.h <<\_ACEOF
37252 #define wxUSE_PNM 1
37253 _ACEOF
37254
37255     fi
37256
37257     if test "$wxUSE_XPM" = "yes" ; then
37258       cat >>confdefs.h <<\_ACEOF
37259 #define wxUSE_XPM 1
37260 _ACEOF
37261
37262     fi
37263
37264     if test "$wxUSE_ICO_CUR" = "yes" ; then
37265       cat >>confdefs.h <<\_ACEOF
37266 #define wxUSE_ICO_CUR 1
37267 _ACEOF
37268
37269     fi
37270 fi
37271
37272
37273 if test "$wxUSE_CHOICEDLG" = "yes"; then
37274     cat >>confdefs.h <<\_ACEOF
37275 #define wxUSE_CHOICEDLG 1
37276 _ACEOF
37277
37278 fi
37279
37280 if test "$wxUSE_COLOURDLG" = "yes"; then
37281     cat >>confdefs.h <<\_ACEOF
37282 #define wxUSE_COLOURDLG 1
37283 _ACEOF
37284
37285 fi
37286
37287 if test "$wxUSE_FILEDLG" = "yes"; then
37288     cat >>confdefs.h <<\_ACEOF
37289 #define wxUSE_FILEDLG 1
37290 _ACEOF
37291
37292 fi
37293
37294 if test "$wxUSE_FINDREPLDLG" = "yes"; then
37295     cat >>confdefs.h <<\_ACEOF
37296 #define wxUSE_FINDREPLDLG 1
37297 _ACEOF
37298
37299 fi
37300
37301 if test "$wxUSE_FONTDLG" = "yes"; then
37302     cat >>confdefs.h <<\_ACEOF
37303 #define wxUSE_FONTDLG 1
37304 _ACEOF
37305
37306 fi
37307
37308 if test "$wxUSE_DIRDLG" = "yes"; then
37309     if test "$wxUSE_TREECTRL" != "yes"; then
37310         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37311 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37312     else
37313         cat >>confdefs.h <<\_ACEOF
37314 #define wxUSE_DIRDLG 1
37315 _ACEOF
37316
37317     fi
37318 fi
37319
37320 if test "$wxUSE_MSGDLG" = "yes"; then
37321     cat >>confdefs.h <<\_ACEOF
37322 #define wxUSE_MSGDLG 1
37323 _ACEOF
37324
37325 fi
37326
37327 if test "$wxUSE_NUMBERDLG" = "yes"; then
37328     cat >>confdefs.h <<\_ACEOF
37329 #define wxUSE_NUMBERDLG 1
37330 _ACEOF
37331
37332 fi
37333
37334 if test "$wxUSE_PROGRESSDLG" = "yes"; then
37335     if test "$wxUSE_CONSTRAINTS" != "yes"; then
37336        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37337 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37338     else
37339         cat >>confdefs.h <<\_ACEOF
37340 #define wxUSE_PROGRESSDLG 1
37341 _ACEOF
37342
37343     fi
37344 fi
37345
37346 if test "$wxUSE_SPLASH" = "yes"; then
37347     cat >>confdefs.h <<\_ACEOF
37348 #define wxUSE_SPLASH 1
37349 _ACEOF
37350
37351 fi
37352
37353 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37354     if test "$wxUSE_CONSTRAINTS" != "yes"; then
37355        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37356 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37357     else
37358         cat >>confdefs.h <<\_ACEOF
37359 #define wxUSE_STARTUP_TIPS 1
37360 _ACEOF
37361
37362     fi
37363 fi
37364
37365 if test "$wxUSE_TEXTDLG" = "yes"; then
37366     cat >>confdefs.h <<\_ACEOF
37367 #define wxUSE_TEXTDLG 1
37368 _ACEOF
37369
37370 fi
37371
37372 if test "$wxUSE_WIZARDDLG" = "yes"; then
37373     cat >>confdefs.h <<\_ACEOF
37374 #define wxUSE_WIZARDDLG 1
37375 _ACEOF
37376
37377     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37378 fi
37379
37380
37381 if test "$cross_compiling" = "yes"; then
37382         OSINFO="\"$host\""
37383 else
37384         OSINFO=`uname -s -r -m`
37385     OSINFO="\"$OSINFO\""
37386 fi
37387
37388 cat >>confdefs.h <<_ACEOF
37389 #define WXWIN_OS_DESCRIPTION $OSINFO
37390 _ACEOF
37391
37392
37393
37394 if test "x$prefix" != "xNONE"; then
37395     wxPREFIX=$prefix
37396 else
37397     wxPREFIX=$ac_default_prefix
37398 fi
37399
37400 cat >>confdefs.h <<_ACEOF
37401 #define wxINSTALL_PREFIX "$wxPREFIX"
37402 _ACEOF
37403
37404
37405 top_builddir_wxconfig=`pwd`
37406
37407
37408
37409 CORE_BASE_LIBS="net base"
37410 CORE_GUI_LIBS="adv core"
37411
37412 if test "$wxUSE_XML" = "yes" ; then
37413     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37414 fi
37415 if test "$wxUSE_ODBC" != "no" ; then
37416     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37417     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37418 fi
37419 if test "$wxUSE_HTML" = "yes" ; then
37420     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37421 fi
37422
37423 if test "$wxUSE_GUI" != "yes"; then
37424     CORE_GUI_LIBS=""
37425 fi
37426
37427
37428
37429
37430
37431
37432
37433
37434 if test "$wxUSE_MAC" = 1 ; then
37435     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37436 fi
37437 if test "$wxUSE_COCOA" = 1 ; then
37438     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37439 fi
37440
37441
37442 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37443
37444 have_cos=0
37445 have_floor=0
37446
37447 for ac_func in cos
37448 do
37449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37450 echo "$as_me:$LINENO: checking for $ac_func" >&5
37451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37452 if eval "test \"\${$as_ac_var+set}\" = set"; then
37453   echo $ECHO_N "(cached) $ECHO_C" >&6
37454 else
37455   cat >conftest.$ac_ext <<_ACEOF
37456 /* confdefs.h.  */
37457 _ACEOF
37458 cat confdefs.h >>conftest.$ac_ext
37459 cat >>conftest.$ac_ext <<_ACEOF
37460 /* end confdefs.h.  */
37461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37463 #define $ac_func innocuous_$ac_func
37464
37465 /* System header to define __stub macros and hopefully few prototypes,
37466     which can conflict with char $ac_func (); below.
37467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37468     <limits.h> exists even on freestanding compilers.  */
37469
37470 #ifdef __STDC__
37471 # include <limits.h>
37472 #else
37473 # include <assert.h>
37474 #endif
37475
37476 #undef $ac_func
37477
37478 /* Override any gcc2 internal prototype to avoid an error.  */
37479 #ifdef __cplusplus
37480 extern "C"
37481 {
37482 #endif
37483 /* We use char because int might match the return type of a gcc2
37484    builtin and then its argument prototype would still apply.  */
37485 char $ac_func ();
37486 /* The GNU C library defines this for functions which it implements
37487     to always fail with ENOSYS.  Some functions are actually named
37488     something starting with __ and the normal name is an alias.  */
37489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37490 choke me
37491 #else
37492 char (*f) () = $ac_func;
37493 #endif
37494 #ifdef __cplusplus
37495 }
37496 #endif
37497
37498 int
37499 main ()
37500 {
37501 return f != $ac_func;
37502   ;
37503   return 0;
37504 }
37505 _ACEOF
37506 rm -f conftest.$ac_objext conftest$ac_exeext
37507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37508   (eval $ac_link) 2>conftest.er1
37509   ac_status=$?
37510   grep -v '^ *+' conftest.er1 >conftest.err
37511   rm -f conftest.er1
37512   cat conftest.err >&5
37513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514   (exit $ac_status); } &&
37515          { ac_try='test -z "$ac_c_werror_flag"
37516                          || test ! -s conftest.err'
37517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37518   (eval $ac_try) 2>&5
37519   ac_status=$?
37520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521   (exit $ac_status); }; } &&
37522          { ac_try='test -s conftest$ac_exeext'
37523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37524   (eval $ac_try) 2>&5
37525   ac_status=$?
37526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527   (exit $ac_status); }; }; then
37528   eval "$as_ac_var=yes"
37529 else
37530   echo "$as_me: failed program was:" >&5
37531 sed 's/^/| /' conftest.$ac_ext >&5
37532
37533 eval "$as_ac_var=no"
37534 fi
37535 rm -f conftest.err conftest.$ac_objext \
37536       conftest$ac_exeext conftest.$ac_ext
37537 fi
37538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37540 if test `eval echo '${'$as_ac_var'}'` = yes; then
37541   cat >>confdefs.h <<_ACEOF
37542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37543 _ACEOF
37544  have_cos=1
37545 fi
37546 done
37547
37548
37549 for ac_func in floor
37550 do
37551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37552 echo "$as_me:$LINENO: checking for $ac_func" >&5
37553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37554 if eval "test \"\${$as_ac_var+set}\" = set"; then
37555   echo $ECHO_N "(cached) $ECHO_C" >&6
37556 else
37557   cat >conftest.$ac_ext <<_ACEOF
37558 /* confdefs.h.  */
37559 _ACEOF
37560 cat confdefs.h >>conftest.$ac_ext
37561 cat >>conftest.$ac_ext <<_ACEOF
37562 /* end confdefs.h.  */
37563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37565 #define $ac_func innocuous_$ac_func
37566
37567 /* System header to define __stub macros and hopefully few prototypes,
37568     which can conflict with char $ac_func (); below.
37569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37570     <limits.h> exists even on freestanding compilers.  */
37571
37572 #ifdef __STDC__
37573 # include <limits.h>
37574 #else
37575 # include <assert.h>
37576 #endif
37577
37578 #undef $ac_func
37579
37580 /* Override any gcc2 internal prototype to avoid an error.  */
37581 #ifdef __cplusplus
37582 extern "C"
37583 {
37584 #endif
37585 /* We use char because int might match the return type of a gcc2
37586    builtin and then its argument prototype would still apply.  */
37587 char $ac_func ();
37588 /* The GNU C library defines this for functions which it implements
37589     to always fail with ENOSYS.  Some functions are actually named
37590     something starting with __ and the normal name is an alias.  */
37591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37592 choke me
37593 #else
37594 char (*f) () = $ac_func;
37595 #endif
37596 #ifdef __cplusplus
37597 }
37598 #endif
37599
37600 int
37601 main ()
37602 {
37603 return f != $ac_func;
37604   ;
37605   return 0;
37606 }
37607 _ACEOF
37608 rm -f conftest.$ac_objext conftest$ac_exeext
37609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37610   (eval $ac_link) 2>conftest.er1
37611   ac_status=$?
37612   grep -v '^ *+' conftest.er1 >conftest.err
37613   rm -f conftest.er1
37614   cat conftest.err >&5
37615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616   (exit $ac_status); } &&
37617          { ac_try='test -z "$ac_c_werror_flag"
37618                          || test ! -s conftest.err'
37619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620   (eval $ac_try) 2>&5
37621   ac_status=$?
37622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623   (exit $ac_status); }; } &&
37624          { ac_try='test -s conftest$ac_exeext'
37625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626   (eval $ac_try) 2>&5
37627   ac_status=$?
37628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629   (exit $ac_status); }; }; then
37630   eval "$as_ac_var=yes"
37631 else
37632   echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37634
37635 eval "$as_ac_var=no"
37636 fi
37637 rm -f conftest.err conftest.$ac_objext \
37638       conftest$ac_exeext conftest.$ac_ext
37639 fi
37640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37642 if test `eval echo '${'$as_ac_var'}'` = yes; then
37643   cat >>confdefs.h <<_ACEOF
37644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37645 _ACEOF
37646  have_floor=1
37647 fi
37648 done
37649
37650 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37651 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37652 if test "$have_cos" = 1 -a "$have_floor" = 1; then
37653     echo "$as_me:$LINENO: result: yes" >&5
37654 echo "${ECHO_T}yes" >&6
37655 else
37656     echo "$as_me:$LINENO: result: no" >&5
37657 echo "${ECHO_T}no" >&6
37658     LIBS="$LIBS -lm"
37659     # use different functions to avoid configure caching
37660     have_sin=0
37661     have_ceil=0
37662
37663 for ac_func in sin
37664 do
37665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37666 echo "$as_me:$LINENO: checking for $ac_func" >&5
37667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37668 if eval "test \"\${$as_ac_var+set}\" = set"; then
37669   echo $ECHO_N "(cached) $ECHO_C" >&6
37670 else
37671   cat >conftest.$ac_ext <<_ACEOF
37672 /* confdefs.h.  */
37673 _ACEOF
37674 cat confdefs.h >>conftest.$ac_ext
37675 cat >>conftest.$ac_ext <<_ACEOF
37676 /* end confdefs.h.  */
37677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37679 #define $ac_func innocuous_$ac_func
37680
37681 /* System header to define __stub macros and hopefully few prototypes,
37682     which can conflict with char $ac_func (); below.
37683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37684     <limits.h> exists even on freestanding compilers.  */
37685
37686 #ifdef __STDC__
37687 # include <limits.h>
37688 #else
37689 # include <assert.h>
37690 #endif
37691
37692 #undef $ac_func
37693
37694 /* Override any gcc2 internal prototype to avoid an error.  */
37695 #ifdef __cplusplus
37696 extern "C"
37697 {
37698 #endif
37699 /* We use char because int might match the return type of a gcc2
37700    builtin and then its argument prototype would still apply.  */
37701 char $ac_func ();
37702 /* The GNU C library defines this for functions which it implements
37703     to always fail with ENOSYS.  Some functions are actually named
37704     something starting with __ and the normal name is an alias.  */
37705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37706 choke me
37707 #else
37708 char (*f) () = $ac_func;
37709 #endif
37710 #ifdef __cplusplus
37711 }
37712 #endif
37713
37714 int
37715 main ()
37716 {
37717 return f != $ac_func;
37718   ;
37719   return 0;
37720 }
37721 _ACEOF
37722 rm -f conftest.$ac_objext conftest$ac_exeext
37723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37724   (eval $ac_link) 2>conftest.er1
37725   ac_status=$?
37726   grep -v '^ *+' conftest.er1 >conftest.err
37727   rm -f conftest.er1
37728   cat conftest.err >&5
37729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730   (exit $ac_status); } &&
37731          { ac_try='test -z "$ac_c_werror_flag"
37732                          || test ! -s conftest.err'
37733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37734   (eval $ac_try) 2>&5
37735   ac_status=$?
37736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37737   (exit $ac_status); }; } &&
37738          { ac_try='test -s conftest$ac_exeext'
37739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37740   (eval $ac_try) 2>&5
37741   ac_status=$?
37742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743   (exit $ac_status); }; }; then
37744   eval "$as_ac_var=yes"
37745 else
37746   echo "$as_me: failed program was:" >&5
37747 sed 's/^/| /' conftest.$ac_ext >&5
37748
37749 eval "$as_ac_var=no"
37750 fi
37751 rm -f conftest.err conftest.$ac_objext \
37752       conftest$ac_exeext conftest.$ac_ext
37753 fi
37754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37756 if test `eval echo '${'$as_ac_var'}'` = yes; then
37757   cat >>confdefs.h <<_ACEOF
37758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37759 _ACEOF
37760  have_sin=1
37761 fi
37762 done
37763
37764
37765 for ac_func in ceil
37766 do
37767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37768 echo "$as_me:$LINENO: checking for $ac_func" >&5
37769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37770 if eval "test \"\${$as_ac_var+set}\" = set"; then
37771   echo $ECHO_N "(cached) $ECHO_C" >&6
37772 else
37773   cat >conftest.$ac_ext <<_ACEOF
37774 /* confdefs.h.  */
37775 _ACEOF
37776 cat confdefs.h >>conftest.$ac_ext
37777 cat >>conftest.$ac_ext <<_ACEOF
37778 /* end confdefs.h.  */
37779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37781 #define $ac_func innocuous_$ac_func
37782
37783 /* System header to define __stub macros and hopefully few prototypes,
37784     which can conflict with char $ac_func (); below.
37785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37786     <limits.h> exists even on freestanding compilers.  */
37787
37788 #ifdef __STDC__
37789 # include <limits.h>
37790 #else
37791 # include <assert.h>
37792 #endif
37793
37794 #undef $ac_func
37795
37796 /* Override any gcc2 internal prototype to avoid an error.  */
37797 #ifdef __cplusplus
37798 extern "C"
37799 {
37800 #endif
37801 /* We use char because int might match the return type of a gcc2
37802    builtin and then its argument prototype would still apply.  */
37803 char $ac_func ();
37804 /* The GNU C library defines this for functions which it implements
37805     to always fail with ENOSYS.  Some functions are actually named
37806     something starting with __ and the normal name is an alias.  */
37807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37808 choke me
37809 #else
37810 char (*f) () = $ac_func;
37811 #endif
37812 #ifdef __cplusplus
37813 }
37814 #endif
37815
37816 int
37817 main ()
37818 {
37819 return f != $ac_func;
37820   ;
37821   return 0;
37822 }
37823 _ACEOF
37824 rm -f conftest.$ac_objext conftest$ac_exeext
37825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37826   (eval $ac_link) 2>conftest.er1
37827   ac_status=$?
37828   grep -v '^ *+' conftest.er1 >conftest.err
37829   rm -f conftest.er1
37830   cat conftest.err >&5
37831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832   (exit $ac_status); } &&
37833          { ac_try='test -z "$ac_c_werror_flag"
37834                          || test ! -s conftest.err'
37835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37836   (eval $ac_try) 2>&5
37837   ac_status=$?
37838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839   (exit $ac_status); }; } &&
37840          { ac_try='test -s conftest$ac_exeext'
37841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37842   (eval $ac_try) 2>&5
37843   ac_status=$?
37844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845   (exit $ac_status); }; }; then
37846   eval "$as_ac_var=yes"
37847 else
37848   echo "$as_me: failed program was:" >&5
37849 sed 's/^/| /' conftest.$ac_ext >&5
37850
37851 eval "$as_ac_var=no"
37852 fi
37853 rm -f conftest.err conftest.$ac_objext \
37854       conftest$ac_exeext conftest.$ac_ext
37855 fi
37856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37858 if test `eval echo '${'$as_ac_var'}'` = yes; then
37859   cat >>confdefs.h <<_ACEOF
37860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37861 _ACEOF
37862  have_ceil=1
37863 fi
37864 done
37865
37866     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37867 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37868     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37869         echo "$as_me:$LINENO: result: yes" >&5
37870 echo "${ECHO_T}yes" >&6
37871     else
37872         echo "$as_me:$LINENO: result: no" >&5
37873 echo "${ECHO_T}no" >&6
37874         # not sure we should warn the user, crash, etc.
37875     fi
37876 fi
37877
37878 if test "$wxUSE_GUI" = "yes"; then
37879
37880
37881             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37882                      drawing dynamic erase event exec font image \
37883                      minimal propsize rotate shaped widgets render"
37884
37885     if test "$wxUSE_MONOLITHIC" != "yes"; then
37886         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37887     fi
37888 else
37889     SAMPLES_SUBDIRS="console"
37890 fi
37891
37892
37893 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37894 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37895
37896 if test "$GXX" = yes ; then
37897         CXXWARNINGS="-Wall"
37898         fi
37899
37900 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37901
37902 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37903 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37904 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37905
37906
37907 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37908 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37909 EXTRALIBS_XML="$EXPAT_LINK"
37910 EXTRALIBS_HTML="$MSPACK_LINK"
37911 EXTRALIBS_ODBC="$ODBC_LINK"
37912 if test "$wxUSE_GUI" = "yes"; then
37913     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37914 fi
37915 if test "$wxUSE_OPENGL" = "yes"; then
37916     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37917 fi
37918
37919 LDFLAGS="$LDFLAGS $PROFILE"
37920
37921 if test "$wxUSE_GTK" = 1; then
37922     WXCONFIG_INCLUDE=
37923 else
37924     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37925 fi
37926
37927 WXCONFIG_EXTRALIBS="$LIBS"
37928
37929 if test "$wxUSE_REGEX" = "builtin" ; then
37930     wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37931 fi
37932 if test "$wxUSE_EXPAT" = "builtin" ; then
37933     wxconfig_3rdparty="$wxconfig_3rdparty expat"
37934 fi
37935 if test "$wxUSE_ODBC" = "builtin" ; then
37936     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37937 fi
37938 if test "$wxUSE_LIBTIFF" = "builtin" ; then
37939     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37940 fi
37941 if test "$wxUSE_LIBJPEG" = "builtin" ; then
37942     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37943 fi
37944 if test "$wxUSE_LIBPNG" = "builtin" ; then
37945     wxconfig_3rdparty="$wxconfig_3rdparty png"
37946 fi
37947 if test "$wxUSE_ZLIB" = "builtin" ; then
37948     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37949 fi
37950 if test "$wxUSE_ODBC" = "builtin" ; then
37951     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37952 fi
37953
37954 for i in $wxconfig_3rdparty ; do
37955     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37956 done
37957
37958
37959 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37960     WXUNIV=1
37961 else
37962     WXUNIV=0
37963 fi
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973 if test $wxUSE_MONOLITHIC = "yes" ; then
37974     MONOLITHIC=1
37975 else
37976     MONOLITHIC=0
37977 fi
37978
37979 if test $wxUSE_PLUGINS = "yes" ; then
37980     USE_PLUGINS=1
37981 else
37982     USE_PLUGINS=0
37983 fi
37984
37985 if test $wxUSE_ODBC != "no" ; then
37986     USE_ODBC=1
37987 else
37988     USE_ODBC=0
37989 fi
37990
37991 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37992     OFFICIAL_BUILD=1
37993 else
37994     OFFICIAL_BUILD=0
37995 fi
37996
37997
37998
37999
38000
38001
38002
38003
38004
38005
38006
38007
38008
38009
38010
38011
38012
38013
38014
38015
38016
38017 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38018
38019
38020
38021
38022
38023
38024
38025
38026
38027     if test "x$BAKEFILE_HOST" = "x"; then
38028         BAKEFILE_HOST="${host}"
38029     fi
38030
38031     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38032
38033     if test -n "$ac_tool_prefix"; then
38034   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38036 echo "$as_me:$LINENO: checking for $ac_word" >&5
38037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38038 if test "${ac_cv_prog_RANLIB+set}" = set; then
38039   echo $ECHO_N "(cached) $ECHO_C" >&6
38040 else
38041   if test -n "$RANLIB"; then
38042   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38043 else
38044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38045 for as_dir in $PATH
38046 do
38047   IFS=$as_save_IFS
38048   test -z "$as_dir" && as_dir=.
38049   for ac_exec_ext in '' $ac_executable_extensions; do
38050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38051     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38053     break 2
38054   fi
38055 done
38056 done
38057
38058 fi
38059 fi
38060 RANLIB=$ac_cv_prog_RANLIB
38061 if test -n "$RANLIB"; then
38062   echo "$as_me:$LINENO: result: $RANLIB" >&5
38063 echo "${ECHO_T}$RANLIB" >&6
38064 else
38065   echo "$as_me:$LINENO: result: no" >&5
38066 echo "${ECHO_T}no" >&6
38067 fi
38068
38069 fi
38070 if test -z "$ac_cv_prog_RANLIB"; then
38071   ac_ct_RANLIB=$RANLIB
38072   # Extract the first word of "ranlib", so it can be a program name with args.
38073 set dummy ranlib; ac_word=$2
38074 echo "$as_me:$LINENO: checking for $ac_word" >&5
38075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38077   echo $ECHO_N "(cached) $ECHO_C" >&6
38078 else
38079   if test -n "$ac_ct_RANLIB"; then
38080   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38081 else
38082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38083 for as_dir in $PATH
38084 do
38085   IFS=$as_save_IFS
38086   test -z "$as_dir" && as_dir=.
38087   for ac_exec_ext in '' $ac_executable_extensions; do
38088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38089     ac_cv_prog_ac_ct_RANLIB="ranlib"
38090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38091     break 2
38092   fi
38093 done
38094 done
38095
38096   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38097 fi
38098 fi
38099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38100 if test -n "$ac_ct_RANLIB"; then
38101   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38102 echo "${ECHO_T}$ac_ct_RANLIB" >&6
38103 else
38104   echo "$as_me:$LINENO: result: no" >&5
38105 echo "${ECHO_T}no" >&6
38106 fi
38107
38108   RANLIB=$ac_ct_RANLIB
38109 else
38110   RANLIB="$ac_cv_prog_RANLIB"
38111 fi
38112
38113     # Find a good install program.  We prefer a C program (faster),
38114 # so one script is as good as another.  But avoid the broken or
38115 # incompatible versions:
38116 # SysV /etc/install, /usr/sbin/install
38117 # SunOS /usr/etc/install
38118 # IRIX /sbin/install
38119 # AIX /bin/install
38120 # AmigaOS /C/install, which installs bootblocks on floppy discs
38121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
38123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
38124 # OS/2's system install, which has a completely different semantic
38125 # ./install, which can be erroneously created by make from ./install.sh.
38126 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38127 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38128 if test -z "$INSTALL"; then
38129 if test "${ac_cv_path_install+set}" = set; then
38130   echo $ECHO_N "(cached) $ECHO_C" >&6
38131 else
38132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38133 for as_dir in $PATH
38134 do
38135   IFS=$as_save_IFS
38136   test -z "$as_dir" && as_dir=.
38137   # Account for people who put trailing slashes in PATH elements.
38138 case $as_dir/ in
38139   ./ | .// | /cC/* | \
38140   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
38141   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
38142   /usr/ucb/* ) ;;
38143   *)
38144     # OSF1 and SCO ODT 3.0 have their own names for install.
38145     # Don't use installbsd from OSF since it installs stuff as root
38146     # by default.
38147     for ac_prog in ginstall scoinst install; do
38148       for ac_exec_ext in '' $ac_executable_extensions; do
38149         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38150           if test $ac_prog = install &&
38151             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38152             # AIX install.  It has an incompatible calling convention.
38153             :
38154           elif test $ac_prog = install &&
38155             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38156             # program-specific install script used by HP pwplus--don't use.
38157             :
38158           else
38159             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38160             break 3
38161           fi
38162         fi
38163       done
38164     done
38165     ;;
38166 esac
38167 done
38168
38169
38170 fi
38171   if test "${ac_cv_path_install+set}" = set; then
38172     INSTALL=$ac_cv_path_install
38173   else
38174     # As a last resort, use the slow shell script.  We don't cache a
38175     # path for INSTALL within a source directory, because that will
38176     # break other packages using the cache if that directory is
38177     # removed, or if the path is relative.
38178     INSTALL=$ac_install_sh
38179   fi
38180 fi
38181 echo "$as_me:$LINENO: result: $INSTALL" >&5
38182 echo "${ECHO_T}$INSTALL" >&6
38183
38184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38185 # It thinks the first close brace ends the variable substitution.
38186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38187
38188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38189
38190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38191
38192     echo "$as_me:$LINENO: checking whether ln -s works" >&5
38193 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38194 LN_S=$as_ln_s
38195 if test "$LN_S" = "ln -s"; then
38196   echo "$as_me:$LINENO: result: yes" >&5
38197 echo "${ECHO_T}yes" >&6
38198 else
38199   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38200 echo "${ECHO_T}no, using $LN_S" >&6
38201 fi
38202
38203
38204     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38205 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38206 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38207 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38208   echo $ECHO_N "(cached) $ECHO_C" >&6
38209 else
38210   cat >conftest.make <<\_ACEOF
38211 all:
38212         @echo 'ac_maketemp="$(MAKE)"'
38213 _ACEOF
38214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38215 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38216 if test -n "$ac_maketemp"; then
38217   eval ac_cv_prog_make_${ac_make}_set=yes
38218 else
38219   eval ac_cv_prog_make_${ac_make}_set=no
38220 fi
38221 rm -f conftest.make
38222 fi
38223 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38224   echo "$as_me:$LINENO: result: yes" >&5
38225 echo "${ECHO_T}yes" >&6
38226   SET_MAKE=
38227 else
38228   echo "$as_me:$LINENO: result: no" >&5
38229 echo "${ECHO_T}no" >&6
38230   SET_MAKE="MAKE=${MAKE-make}"
38231 fi
38232
38233
38234
38235     if test -n "$ac_tool_prefix"; then
38236   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38237 set dummy ${ac_tool_prefix}ar; ac_word=$2
38238 echo "$as_me:$LINENO: checking for $ac_word" >&5
38239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38240 if test "${ac_cv_prog_AR+set}" = set; then
38241   echo $ECHO_N "(cached) $ECHO_C" >&6
38242 else
38243   if test -n "$AR"; then
38244   ac_cv_prog_AR="$AR" # Let the user override the test.
38245 else
38246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38247 for as_dir in $PATH
38248 do
38249   IFS=$as_save_IFS
38250   test -z "$as_dir" && as_dir=.
38251   for ac_exec_ext in '' $ac_executable_extensions; do
38252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38253     ac_cv_prog_AR="${ac_tool_prefix}ar"
38254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38255     break 2
38256   fi
38257 done
38258 done
38259
38260 fi
38261 fi
38262 AR=$ac_cv_prog_AR
38263 if test -n "$AR"; then
38264   echo "$as_me:$LINENO: result: $AR" >&5
38265 echo "${ECHO_T}$AR" >&6
38266 else
38267   echo "$as_me:$LINENO: result: no" >&5
38268 echo "${ECHO_T}no" >&6
38269 fi
38270
38271 fi
38272 if test -z "$ac_cv_prog_AR"; then
38273   ac_ct_AR=$AR
38274   # Extract the first word of "ar", so it can be a program name with args.
38275 set dummy ar; ac_word=$2
38276 echo "$as_me:$LINENO: checking for $ac_word" >&5
38277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38278 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38279   echo $ECHO_N "(cached) $ECHO_C" >&6
38280 else
38281   if test -n "$ac_ct_AR"; then
38282   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38283 else
38284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38285 for as_dir in $PATH
38286 do
38287   IFS=$as_save_IFS
38288   test -z "$as_dir" && as_dir=.
38289   for ac_exec_ext in '' $ac_executable_extensions; do
38290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38291     ac_cv_prog_ac_ct_AR="ar"
38292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38293     break 2
38294   fi
38295 done
38296 done
38297
38298   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38299 fi
38300 fi
38301 ac_ct_AR=$ac_cv_prog_ac_ct_AR
38302 if test -n "$ac_ct_AR"; then
38303   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38304 echo "${ECHO_T}$ac_ct_AR" >&6
38305 else
38306   echo "$as_me:$LINENO: result: no" >&5
38307 echo "${ECHO_T}no" >&6
38308 fi
38309
38310   AR=$ac_ct_AR
38311 else
38312   AR="$ac_cv_prog_AR"
38313 fi
38314
38315     if test -n "$ac_tool_prefix"; then
38316   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38317 set dummy ${ac_tool_prefix}strip; ac_word=$2
38318 echo "$as_me:$LINENO: checking for $ac_word" >&5
38319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38320 if test "${ac_cv_prog_STRIP+set}" = set; then
38321   echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38323   if test -n "$STRIP"; then
38324   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38325 else
38326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38327 for as_dir in $PATH
38328 do
38329   IFS=$as_save_IFS
38330   test -z "$as_dir" && as_dir=.
38331   for ac_exec_ext in '' $ac_executable_extensions; do
38332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38333     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38335     break 2
38336   fi
38337 done
38338 done
38339
38340 fi
38341 fi
38342 STRIP=$ac_cv_prog_STRIP
38343 if test -n "$STRIP"; then
38344   echo "$as_me:$LINENO: result: $STRIP" >&5
38345 echo "${ECHO_T}$STRIP" >&6
38346 else
38347   echo "$as_me:$LINENO: result: no" >&5
38348 echo "${ECHO_T}no" >&6
38349 fi
38350
38351 fi
38352 if test -z "$ac_cv_prog_STRIP"; then
38353   ac_ct_STRIP=$STRIP
38354   # Extract the first word of "strip", so it can be a program name with args.
38355 set dummy strip; ac_word=$2
38356 echo "$as_me:$LINENO: checking for $ac_word" >&5
38357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38359   echo $ECHO_N "(cached) $ECHO_C" >&6
38360 else
38361   if test -n "$ac_ct_STRIP"; then
38362   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38363 else
38364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38365 for as_dir in $PATH
38366 do
38367   IFS=$as_save_IFS
38368   test -z "$as_dir" && as_dir=.
38369   for ac_exec_ext in '' $ac_executable_extensions; do
38370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38371     ac_cv_prog_ac_ct_STRIP="strip"
38372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38373     break 2
38374   fi
38375 done
38376 done
38377
38378   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38379 fi
38380 fi
38381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38382 if test -n "$ac_ct_STRIP"; then
38383   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38384 echo "${ECHO_T}$ac_ct_STRIP" >&6
38385 else
38386   echo "$as_me:$LINENO: result: no" >&5
38387 echo "${ECHO_T}no" >&6
38388 fi
38389
38390   STRIP=$ac_ct_STRIP
38391 else
38392   STRIP="$ac_cv_prog_STRIP"
38393 fi
38394
38395     if test -n "$ac_tool_prefix"; then
38396   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38397 set dummy ${ac_tool_prefix}nm; ac_word=$2
38398 echo "$as_me:$LINENO: checking for $ac_word" >&5
38399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38400 if test "${ac_cv_prog_NM+set}" = set; then
38401   echo $ECHO_N "(cached) $ECHO_C" >&6
38402 else
38403   if test -n "$NM"; then
38404   ac_cv_prog_NM="$NM" # Let the user override the test.
38405 else
38406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38407 for as_dir in $PATH
38408 do
38409   IFS=$as_save_IFS
38410   test -z "$as_dir" && as_dir=.
38411   for ac_exec_ext in '' $ac_executable_extensions; do
38412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38413     ac_cv_prog_NM="${ac_tool_prefix}nm"
38414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38415     break 2
38416   fi
38417 done
38418 done
38419
38420 fi
38421 fi
38422 NM=$ac_cv_prog_NM
38423 if test -n "$NM"; then
38424   echo "$as_me:$LINENO: result: $NM" >&5
38425 echo "${ECHO_T}$NM" >&6
38426 else
38427   echo "$as_me:$LINENO: result: no" >&5
38428 echo "${ECHO_T}no" >&6
38429 fi
38430
38431 fi
38432 if test -z "$ac_cv_prog_NM"; then
38433   ac_ct_NM=$NM
38434   # Extract the first word of "nm", so it can be a program name with args.
38435 set dummy nm; ac_word=$2
38436 echo "$as_me:$LINENO: checking for $ac_word" >&5
38437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38438 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38439   echo $ECHO_N "(cached) $ECHO_C" >&6
38440 else
38441   if test -n "$ac_ct_NM"; then
38442   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38443 else
38444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38445 for as_dir in $PATH
38446 do
38447   IFS=$as_save_IFS
38448   test -z "$as_dir" && as_dir=.
38449   for ac_exec_ext in '' $ac_executable_extensions; do
38450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38451     ac_cv_prog_ac_ct_NM="nm"
38452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38453     break 2
38454   fi
38455 done
38456 done
38457
38458   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38459 fi
38460 fi
38461 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38462 if test -n "$ac_ct_NM"; then
38463   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38464 echo "${ECHO_T}$ac_ct_NM" >&6
38465 else
38466   echo "$as_me:$LINENO: result: no" >&5
38467 echo "${ECHO_T}no" >&6
38468 fi
38469
38470   NM=$ac_ct_NM
38471 else
38472   NM="$ac_cv_prog_NM"
38473 fi
38474
38475
38476     case ${BAKEFILE_HOST} in
38477         *-hp-hpux* )
38478             INSTALL_DIR="mkdir"
38479             ;;
38480         *)  INSTALL_DIR="$INSTALL -d"
38481             ;;
38482     esac
38483
38484
38485     LDFLAGS_GUI=
38486     case ${BAKEFILE_HOST} in
38487         *-*-cygwin* | *-*-mingw32* )
38488         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38489     esac
38490
38491
38492     fi
38493
38494         echo "$as_me:$LINENO: checking if make is GNU make" >&5
38495 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38496 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38497   echo $ECHO_N "(cached) $ECHO_C" >&6
38498 else
38499
38500         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38501                 egrep -s GNU > /dev/null); then
38502             bakefile_cv_prog_makeisgnu="yes"
38503         else
38504             bakefile_cv_prog_makeisgnu="no"
38505         fi
38506
38507 fi
38508 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38509 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38510
38511     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38512         IF_GNU_MAKE=""
38513     else
38514         IF_GNU_MAKE="#"
38515     fi
38516
38517
38518
38519     PLATFORM_UNIX=0
38520     PLATFORM_WIN32=0
38521     PLATFORM_MSDOS=0
38522     PLATFORM_MAC=0
38523     PLATFORM_MACOSX=0
38524     PLATFORM_OS2=0
38525
38526     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38527         case "${BAKEFILE_HOST}" in
38528             *-*-cygwin* | *-*-mingw32* )
38529                 PLATFORM_WIN32=1
38530             ;;
38531             *-pc-msdosdjgpp )
38532                 PLATFORM_MSDOS=1
38533             ;;
38534             *-pc-os2_emx | *-pc-os2-emx )
38535                 PLATFORM_OS2=1
38536             ;;
38537             powerpc-*-darwin* )
38538                 PLATFORM_MAC=1
38539                 PLATFORM_MACOSX=1
38540             ;;
38541             * )
38542                 PLATFORM_UNIX=1
38543             ;;
38544         esac
38545     else
38546         case "$BAKEFILE_FORCE_PLATFORM" in
38547             win32 )
38548                 PLATFORM_WIN32=1
38549             ;;
38550             msdos )
38551                 PLATFORM_MSDOS=1
38552             ;;
38553             os2 )
38554                 PLATFORM_OS2=1
38555             ;;
38556             darwin )
38557                 PLATFORM_MAC=1
38558                 PLATFORM_MACOSX=1
38559             ;;
38560             unix )
38561                 PLATFORM_UNIX=1
38562             ;;
38563             * )
38564                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38565 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38566    { (exit 1); exit 1; }; }
38567             ;;
38568         esac
38569     fi
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579     SO_SUFFIX="so"
38580     SO_SUFFIX_MODULE="so"
38581     EXEEXT=""
38582     LIBPREFIX=lib
38583     DLLPREFIX=lib
38584     DLLPREFIX_MODULE=
38585
38586     case "${BAKEFILE_HOST}" in
38587         *-hp-hpux* )
38588             SO_SUFFIX="sl"
38589             SO_SUFFIX_MODULE="sl"
38590         ;;
38591         *-*-aix* )
38592                                                                         SO_SUFFIX="a"
38593             SO_SUFFIX_MODULE="a"
38594         ;;
38595         *-*-cygwin* | *-*-mingw32* )
38596             SO_SUFFIX="dll"
38597             SO_SUFFIX_MODULE="dll"
38598             EXEEXT=".exe"
38599             DLLPREFIX=""
38600         ;;
38601         *-pc-msdosdjgpp )
38602             EXEEXT=".exe"
38603             DLLPREFIX=""
38604         ;;
38605         *-pc-os2_emx | *-pc-os2-emx )
38606             EXEEXT=".exe"
38607             DLLPREFIX=""
38608             LIBPREFIX=""
38609         ;;
38610         powerpc-*-darwin* )
38611             SO_SUFFIX="dylib"
38612             SO_SUFFIX_MODULE="bundle"
38613         ;;
38614     esac
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624         SHARED_LD_CC="\$(CC) -shared -o"
38625     SHARED_LD_CXX="\$(CXX) -shared -o"
38626
38627         if test "x$GCC" = "xyes"; then
38628                 PIC_FLAG="-fPIC"
38629     fi
38630
38631     case "${BAKEFILE_HOST}" in
38632       *-hp-hpux* )
38633                 if test "x$GCC" = "xyes"; then
38634                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38635             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38636         else
38637                         LDFLAGS="$LDFLAGS -L/usr/lib"
38638
38639             SHARED_LD_CC="${CC} -b -o"
38640             SHARED_LD_CXX="${CXX} -b -o"
38641             PIC_FLAG="+Z"
38642         fi
38643       ;;
38644
38645       *-*-linux* )
38646         if test "x$GCC" != "xyes"; then
38647             echo "$as_me:$LINENO: checking for Intel compiler" >&5
38648 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38649 if test "${bakefile_cv_prog_icc+set}" = set; then
38650   echo $ECHO_N "(cached) $ECHO_C" >&6
38651 else
38652
38653                 cat >conftest.$ac_ext <<_ACEOF
38654 /* confdefs.h.  */
38655 _ACEOF
38656 cat confdefs.h >>conftest.$ac_ext
38657 cat >>conftest.$ac_ext <<_ACEOF
38658 /* end confdefs.h.  */
38659
38660 int
38661 main ()
38662 {
38663
38664                         #ifndef __INTEL_COMPILER
38665                         #error Not icc
38666                         #endif
38667
38668   ;
38669   return 0;
38670 }
38671 _ACEOF
38672 rm -f conftest.$ac_objext
38673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38674   (eval $ac_compile) 2>conftest.er1
38675   ac_status=$?
38676   grep -v '^ *+' conftest.er1 >conftest.err
38677   rm -f conftest.er1
38678   cat conftest.err >&5
38679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680   (exit $ac_status); } &&
38681          { ac_try='test -z "$ac_c_werror_flag"
38682                          || test ! -s conftest.err'
38683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38684   (eval $ac_try) 2>&5
38685   ac_status=$?
38686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687   (exit $ac_status); }; } &&
38688          { ac_try='test -s conftest.$ac_objext'
38689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38690   (eval $ac_try) 2>&5
38691   ac_status=$?
38692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38693   (exit $ac_status); }; }; then
38694   bakefile_cv_prog_icc=yes
38695 else
38696   echo "$as_me: failed program was:" >&5
38697 sed 's/^/| /' conftest.$ac_ext >&5
38698
38699 bakefile_cv_prog_icc=no
38700
38701 fi
38702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38703
38704 fi
38705 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38706 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38707             if test "$bakefile_cv_prog_icc" = "yes"; then
38708                 PIC_FLAG="-KPIC"
38709             fi
38710         fi
38711       ;;
38712
38713       *-*-solaris2* )
38714         if test "x$GCC" != xyes ; then
38715             SHARED_LD_CC="${CC} -G -o"
38716             SHARED_LD_CXX="${CXX} -G -o"
38717             PIC_FLAG="-KPIC"
38718         fi
38719       ;;
38720
38721       *-*-darwin* )
38722                         CFLAGS="$CFLAGS -fno-common"
38723         CXXFLAGS="$CXXFLAGS -fno-common"
38724
38725
38726                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38727 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38728 if test "${wx_cv_gcc31+set}" = set; then
38729   echo $ECHO_N "(cached) $ECHO_C" >&6
38730 else
38731
38732            cat >conftest.$ac_ext <<_ACEOF
38733 /* confdefs.h.  */
38734 _ACEOF
38735 cat confdefs.h >>conftest.$ac_ext
38736 cat >>conftest.$ac_ext <<_ACEOF
38737 /* end confdefs.h.  */
38738
38739 int
38740 main ()
38741 {
38742
38743                    #if (__GNUC__ < 3) || \
38744                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38745                        #error old gcc
38746                    #endif
38747
38748   ;
38749   return 0;
38750 }
38751 _ACEOF
38752 rm -f conftest.$ac_objext
38753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38754   (eval $ac_compile) 2>conftest.er1
38755   ac_status=$?
38756   grep -v '^ *+' conftest.er1 >conftest.err
38757   rm -f conftest.er1
38758   cat conftest.err >&5
38759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760   (exit $ac_status); } &&
38761          { ac_try='test -z "$ac_c_werror_flag"
38762                          || test ! -s conftest.err'
38763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38764   (eval $ac_try) 2>&5
38765   ac_status=$?
38766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767   (exit $ac_status); }; } &&
38768          { ac_try='test -s conftest.$ac_objext'
38769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38770   (eval $ac_try) 2>&5
38771   ac_status=$?
38772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38773   (exit $ac_status); }; }; then
38774
38775                    wx_cv_gcc31=yes
38776
38777 else
38778   echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38780
38781
38782                    wx_cv_gcc31=no
38783
38784
38785 fi
38786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38787
38788 fi
38789 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38790 echo "${ECHO_T}$wx_cv_gcc31" >&6
38791         if test "$wx_cv_gcc31" = "no"; then
38792             cat <<EOF >shared-ld-sh
38793 #!/bin/sh
38794 #-----------------------------------------------------------------------------
38795 #-- Name:        distrib/mac/shared-ld-sh
38796 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
38797 #-- Author:      Gilles Depeyrot
38798 #-- Copyright:   (c) 2002 Gilles Depeyrot
38799 #-- Licence:     any use permitted
38800 #-----------------------------------------------------------------------------
38801
38802 verbose=0
38803 args=""
38804 objects=""
38805 linking_flag="-dynamiclib"
38806
38807 while test \${#} -gt 0; do
38808     case \${1} in
38809
38810        -v)
38811         verbose=1
38812         ;;
38813
38814        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38815         # collect these options and values
38816         args="\${args} \${1} \${2}"
38817         shift
38818         ;;
38819
38820        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38821         # collect these options
38822         args="\${args} \${1}"
38823         ;;
38824
38825        -dynamiclib|-bundle)
38826         linking_flag="\${1}"
38827         ;;
38828
38829        -*)
38830         echo "shared-ld: unhandled option '\${1}'"
38831         exit 1
38832         ;;
38833
38834         *.o | *.a | *.dylib)
38835         # collect object files
38836         objects="\${objects} \${1}"
38837         ;;
38838
38839         *)
38840         echo "shared-ld: unhandled argument '\${1}'"
38841         exit 1
38842         ;;
38843
38844     esac
38845     shift
38846 done
38847
38848 #
38849 # Link one module containing all the others
38850 #
38851 if test \${verbose} = 1; then
38852     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38853 fi
38854 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38855 status=\$?
38856 if test \${status} != 0; then
38857     exit \${status}
38858 fi
38859
38860 #
38861 # Link the shared library from the single module created
38862 #
38863 if test \${verbose} = 1; then
38864     echo "cc \${linking_flag} master.\$\$.o \${args}"
38865 fi
38866 c++ \${linking_flag} master.\$\$.o \${args}
38867 status=\$?
38868 if test \${status} != 0; then
38869     exit \${status}
38870 fi
38871
38872 #
38873 # Remove intermediate module
38874 #
38875 rm -f master.\$\$.o
38876
38877 exit 0
38878 EOF
38879             chmod +x shared-ld-sh
38880
38881                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38882             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38883             SHARED_LD_CXX="$SHARED_LD_CC"
38884             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38885         else
38886                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38887             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38888             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38889             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38890         fi
38891
38892         PIC_FLAG="-dynamic -fPIC"
38893       ;;
38894
38895       *-*-aix* )
38896                 if test "x$GCC" != "xyes"; then
38897                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38898 set dummy makeC++SharedLib; ac_word=$2
38899 echo "$as_me:$LINENO: checking for $ac_word" >&5
38900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38901 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38902   echo $ECHO_N "(cached) $ECHO_C" >&6
38903 else
38904   if test -n "$AIX_CXX_LD"; then
38905   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38906 else
38907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38908 for as_dir in $PATH
38909 do
38910   IFS=$as_save_IFS
38911   test -z "$as_dir" && as_dir=.
38912   for ac_exec_ext in '' $ac_executable_extensions; do
38913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38914     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38916     break 2
38917   fi
38918 done
38919 done
38920
38921   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38922 fi
38923 fi
38924 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38925 if test -n "$AIX_CXX_LD"; then
38926   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38927 echo "${ECHO_T}$AIX_CXX_LD" >&6
38928 else
38929   echo "$as_me:$LINENO: result: no" >&5
38930 echo "${ECHO_T}no" >&6
38931 fi
38932
38933                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38934             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38935         fi
38936       ;;
38937
38938       *-*-beos* )
38939                         SHARED_LD_CC="${LD} -shared -o"
38940         SHARED_LD_CXX="${LD} -shared -o"
38941       ;;
38942
38943       *-*-irix* )
38944                 if test "x$GCC" != "xyes"; then
38945             PIC_FLAG="-KPIC"
38946         fi
38947       ;;
38948
38949       *-*-cygwin* | *-*-mingw32* )
38950         PIC_FLAG=""
38951       ;;
38952
38953       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38954       *-*-sunos4* | \
38955       *-*-osf* | \
38956       *-*-dgux5* | \
38957       *-pc-os2_emx | *-pc-os2-emx | \
38958       *-*-sysv5* )
38959               ;;
38960
38961       *)
38962         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38963 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
38964    { (exit 1); exit 1; }; }
38965     esac
38966
38967     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38968         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38969     fi
38970     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
38971         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
38972     fi
38973
38974
38975
38976
38977
38978
38979
38980
38981     USE_SOVERSION=0
38982     USE_SOVERLINUX=0
38983     USE_SOVERSOLARIS=0
38984     USE_SOSYMLINKS=0
38985     USE_MACVERSION=0
38986     SONAME_FLAG=
38987
38988     case "${BAKEFILE_HOST}" in
38989       *-*-linux* )
38990         SONAME_FLAG="-Wl,-soname,"
38991         USE_SOVERSION=1
38992         USE_SOVERLINUX=1
38993         USE_SOSYMLINKS=1
38994       ;;
38995
38996       *-*-solaris2* )
38997         SONAME_FLAG="-h "
38998         USE_SOVERSION=1
38999         USE_SOVERSOLARIS=1
39000         USE_SOSYMLINKS=1
39001       ;;
39002
39003       *-*-darwin* )
39004         USE_MACVERSION=1
39005         USE_SOVERSION=1
39006         USE_SOSYMLINKS=1
39007       ;;
39008     esac
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39019 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39020     DEPS_TRACKING=0
39021
39022     if test "x$GCC" = "xyes"; then
39023         DEPSMODE=gcc
39024         DEPS_TRACKING=1
39025         case "${BAKEFILE_HOST}" in
39026             powerpc-*-darwin* )
39027                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39028             ;;
39029             * )
39030                 DEPSFLAG_GCC="-MMD"
39031             ;;
39032         esac
39033         echo "$as_me:$LINENO: result: gcc" >&5
39034 echo "${ECHO_T}gcc" >&6
39035     else
39036         echo "$as_me:$LINENO: result: none" >&5
39037 echo "${ECHO_T}none" >&6
39038     fi
39039
39040     if test $DEPS_TRACKING = 1 ; then
39041         cat <<EOF >bk-deps
39042 #!/bin/sh
39043
39044 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39045 # script. It is used to track C/C++ files dependencies in portable way.
39046 #
39047 # Permission is given to use this file in any way.
39048
39049 DEPSMODE=$DEPSMODE
39050 DEPSDIR=.deps
39051 DEPSFLAG_GCC="$DEPSFLAG_GCC"
39052
39053 mkdir -p \$DEPSDIR
39054
39055 if test \$DEPSMODE = gcc ; then
39056     \${*} \${DEPSFLAG_GCC}
39057     status=\${?}
39058     if test \${status} != 0 ; then
39059         exit \${status}
39060     fi
39061     # move created file to the location we want it in:
39062     while test \${#} -gt 0; do
39063         case "\${1}" in
39064             -o )
39065                 shift
39066                 objfile=\${1}
39067             ;;
39068             -* )
39069             ;;
39070             * )
39071                 srcfile=\${1}
39072             ;;
39073         esac
39074         shift
39075     done
39076     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
39077     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
39078     if test -f \$depfile ; then
39079         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
39080         rm -f \$depfile
39081     else
39082         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
39083         if test -f \$depfile ; then
39084             sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
39085             rm -f \$depfile
39086         fi
39087     fi
39088     exit 0
39089 else
39090     \${*}
39091     exit \${?}
39092 fi
39093 EOF
39094         chmod +x bk-deps
39095     fi
39096
39097
39098
39099
39100     RESCOMP=
39101     SETFILE=
39102
39103     case ${BAKEFILE_HOST} in
39104         *-*-cygwin* | *-*-mingw32* )
39105                         if test "$build" != "$host" ; then
39106                 RESCOMP=$host_alias-windres
39107             else
39108                 # Extract the first word of "windres", so it can be a program name with args.
39109 set dummy windres; ac_word=$2
39110 echo "$as_me:$LINENO: checking for $ac_word" >&5
39111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39112 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39113   echo $ECHO_N "(cached) $ECHO_C" >&6
39114 else
39115   if test -n "$RESCOMP"; then
39116   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39117 else
39118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39119 for as_dir in $PATH
39120 do
39121   IFS=$as_save_IFS
39122   test -z "$as_dir" && as_dir=.
39123   for ac_exec_ext in '' $ac_executable_extensions; do
39124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39125     ac_cv_prog_RESCOMP="windres"
39126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39127     break 2
39128   fi
39129 done
39130 done
39131
39132   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39133 fi
39134 fi
39135 RESCOMP=$ac_cv_prog_RESCOMP
39136 if test -n "$RESCOMP"; then
39137   echo "$as_me:$LINENO: result: $RESCOMP" >&5
39138 echo "${ECHO_T}$RESCOMP" >&6
39139 else
39140   echo "$as_me:$LINENO: result: no" >&5
39141 echo "${ECHO_T}no" >&6
39142 fi
39143
39144             fi
39145          ;;
39146
39147       *-*-darwin* )
39148             # Extract the first word of "Rez", so it can be a program name with args.
39149 set dummy Rez; ac_word=$2
39150 echo "$as_me:$LINENO: checking for $ac_word" >&5
39151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39152 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39153   echo $ECHO_N "(cached) $ECHO_C" >&6
39154 else
39155   if test -n "$RESCOMP"; then
39156   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39157 else
39158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39159 for as_dir in $PATH
39160 do
39161   IFS=$as_save_IFS
39162   test -z "$as_dir" && as_dir=.
39163   for ac_exec_ext in '' $ac_executable_extensions; do
39164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39165     ac_cv_prog_RESCOMP="Rez"
39166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39167     break 2
39168   fi
39169 done
39170 done
39171
39172   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39173 fi
39174 fi
39175 RESCOMP=$ac_cv_prog_RESCOMP
39176 if test -n "$RESCOMP"; then
39177   echo "$as_me:$LINENO: result: $RESCOMP" >&5
39178 echo "${ECHO_T}$RESCOMP" >&6
39179 else
39180   echo "$as_me:$LINENO: result: no" >&5
39181 echo "${ECHO_T}no" >&6
39182 fi
39183
39184             # Extract the first word of "SetFile", so it can be a program name with args.
39185 set dummy SetFile; ac_word=$2
39186 echo "$as_me:$LINENO: checking for $ac_word" >&5
39187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39188 if test "${ac_cv_prog_SETFILE+set}" = set; then
39189   echo $ECHO_N "(cached) $ECHO_C" >&6
39190 else
39191   if test -n "$SETFILE"; then
39192   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39193 else
39194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39195 for as_dir in $PATH
39196 do
39197   IFS=$as_save_IFS
39198   test -z "$as_dir" && as_dir=.
39199   for ac_exec_ext in '' $ac_executable_extensions; do
39200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39201     ac_cv_prog_SETFILE="SetFile"
39202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39203     break 2
39204   fi
39205 done
39206 done
39207
39208   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39209 fi
39210 fi
39211 SETFILE=$ac_cv_prog_SETFILE
39212 if test -n "$SETFILE"; then
39213   echo "$as_me:$LINENO: result: $SETFILE" >&5
39214 echo "${ECHO_T}$SETFILE" >&6
39215 else
39216   echo "$as_me:$LINENO: result: no" >&5
39217 echo "${ECHO_T}no" >&6
39218 fi
39219
39220         ;;
39221     esac
39222
39223
39224
39225
39226
39227
39228
39229
39230     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39231 if test "${enable_precomp_headers+set}" = set; then
39232   enableval="$enable_precomp_headers"
39233   bk_use_pch="$enableval"
39234 fi;
39235
39236     GCC_PCH=0
39237
39238     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39239         if test "x$GCC" = "xyes"; then
39240                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39241 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39242             cat >conftest.$ac_ext <<_ACEOF
39243 /* confdefs.h.  */
39244 _ACEOF
39245 cat confdefs.h >>conftest.$ac_ext
39246 cat >>conftest.$ac_ext <<_ACEOF
39247 /* end confdefs.h.  */
39248
39249 int
39250 main ()
39251 {
39252
39253                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39254                         #error "no pch support"
39255                     #endif
39256                     #if (__GNUC__ < 3)
39257                         #error "no pch support"
39258                     #endif
39259                     #if (__GNUC__ == 3) && \
39260                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39261                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39262                         #error "no pch support"
39263                     #endif
39264
39265   ;
39266   return 0;
39267 }
39268 _ACEOF
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271   (eval $ac_compile) 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } &&
39278          { ac_try='test -z "$ac_c_werror_flag"
39279                          || test ! -s conftest.err'
39280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281   (eval $ac_try) 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; } &&
39285          { ac_try='test -s conftest.$ac_objext'
39286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287   (eval $ac_try) 2>&5
39288   ac_status=$?
39289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290   (exit $ac_status); }; }; then
39291
39292                     echo "$as_me:$LINENO: result: yes" >&5
39293 echo "${ECHO_T}yes" >&6
39294                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
39295                     GCC_PCH=1
39296
39297 else
39298   echo "$as_me: failed program was:" >&5
39299 sed 's/^/| /' conftest.$ac_ext >&5
39300
39301
39302                     echo "$as_me:$LINENO: result: no" >&5
39303 echo "${ECHO_T}no" >&6
39304
39305 fi
39306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39307             if test $GCC_PCH = 1 ; then
39308                 cat <<EOF >bk-make-pch
39309 #!/bin/sh
39310
39311 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39312 # script. It is used to generated precompiled headers.
39313 #
39314 # Permission is given to use this file in any way.
39315
39316 outfile="\${1}"
39317 header="\${2}"
39318 shift
39319 shift
39320
39321 compiler=
39322 headerfile=
39323 while test \${#} -gt 0; do
39324     case "\${1}" in
39325         -I* )
39326             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39327             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39328                 headerfile="\${incdir}/\${header}"
39329             fi
39330         ;;
39331     esac
39332     compiler="\${compiler} \${1}"
39333     shift
39334 done
39335
39336 if test "x\${headerfile}" = "x" ; then
39337     echo "error: can't find header \${header} in include paths" >2
39338 else
39339     if test -f \${outfile} ; then
39340         rm -f \${outfile}
39341     else
39342         mkdir -p \`dirname \${outfile}\`
39343     fi
39344     depsfile=".deps/\`basename \${outfile}\`.d"
39345     mkdir -p .deps
39346     # can do this because gcc is >= 3.4:
39347     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39348     exit \${?}
39349 fi
39350 EOF
39351                 chmod +x bk-make-pch
39352             fi
39353         fi
39354     fi
39355
39356
39357
39358
39359
39360     COND_BUILD_DEBUG="#"
39361     if test "x$BUILD" = "xdebug" ; then
39362         COND_BUILD_DEBUG=""
39363     fi
39364
39365     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39366     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39367         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39368     fi
39369
39370     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39371     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39372         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39373     fi
39374
39375     COND_BUILD_DEBUG_UNICODE_0="#"
39376     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39377         COND_BUILD_DEBUG_UNICODE_0=""
39378     fi
39379
39380     COND_BUILD_DEBUG_UNICODE_1="#"
39381     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39382         COND_BUILD_DEBUG_UNICODE_1=""
39383     fi
39384
39385     COND_BUILD_RELEASE="#"
39386     if test "x$BUILD" = "xrelease" ; then
39387         COND_BUILD_RELEASE=""
39388     fi
39389
39390     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39391     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39392         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39393     fi
39394
39395     COND_BUILD_RELEASE_UNICODE_0="#"
39396     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39397         COND_BUILD_RELEASE_UNICODE_0=""
39398     fi
39399
39400     COND_BUILD_RELEASE_UNICODE_1="#"
39401     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39402         COND_BUILD_RELEASE_UNICODE_1=""
39403     fi
39404
39405     COND_DEBUG_FLAG_1="#"
39406     if test "x$DEBUG_FLAG" = "x1" ; then
39407         COND_DEBUG_FLAG_1=""
39408     fi
39409
39410     COND_DEBUG_INFO_0="#"
39411     if test "x$DEBUG_INFO" = "x0" ; then
39412         COND_DEBUG_INFO_0=""
39413     fi
39414
39415     COND_DEBUG_INFO_1="#"
39416     if test "x$DEBUG_INFO" = "x1" ; then
39417         COND_DEBUG_INFO_1=""
39418     fi
39419
39420     COND_DEPS_TRACKING_0="#"
39421     if test "x$DEPS_TRACKING" = "x0" ; then
39422         COND_DEPS_TRACKING_0=""
39423     fi
39424
39425     COND_DEPS_TRACKING_1="#"
39426     if test "x$DEPS_TRACKING" = "x1" ; then
39427         COND_DEPS_TRACKING_1=""
39428     fi
39429
39430     COND_GCC_PCH_1="#"
39431     if test "x$GCC_PCH" = "x1" ; then
39432         COND_GCC_PCH_1=""
39433     fi
39434
39435     COND_MONOLITHIC_0="#"
39436     if test "x$MONOLITHIC" = "x0" ; then
39437         COND_MONOLITHIC_0=""
39438     fi
39439
39440     COND_MONOLITHIC_0_SHARED_0="#"
39441     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39442         COND_MONOLITHIC_0_SHARED_0=""
39443     fi
39444
39445     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39446     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39447         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39448     fi
39449
39450     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39451     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39452         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39453     fi
39454
39455     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39456     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39457         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39458     fi
39459
39460     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39461     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39462         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39463     fi
39464
39465     COND_MONOLITHIC_0_SHARED_1="#"
39466     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39467         COND_MONOLITHIC_0_SHARED_1=""
39468     fi
39469
39470     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39471     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39472         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39473     fi
39474
39475     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39476     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39477         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39478     fi
39479
39480     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39481     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39482         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39483     fi
39484
39485     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39486     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39487         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39488     fi
39489
39490     COND_MONOLITHIC_0_USE_ODBC_1="#"
39491     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39492         COND_MONOLITHIC_0_USE_ODBC_1=""
39493     fi
39494
39495     COND_MONOLITHIC_1="#"
39496     if test "x$MONOLITHIC" = "x1" ; then
39497         COND_MONOLITHIC_1=""
39498     fi
39499
39500     COND_MONOLITHIC_1_SHARED_0="#"
39501     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39502         COND_MONOLITHIC_1_SHARED_0=""
39503     fi
39504
39505     COND_MONOLITHIC_1_SHARED_1="#"
39506     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39507         COND_MONOLITHIC_1_SHARED_1=""
39508     fi
39509
39510     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39511     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39512         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39513     fi
39514
39515     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39516     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39517         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39518     fi
39519
39520     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39521     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39522         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39523     fi
39524
39525     COND_PLATFORM_MACOSX_1="#"
39526     if test "x$PLATFORM_MACOSX" = "x1" ; then
39527         COND_PLATFORM_MACOSX_1=""
39528     fi
39529
39530     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39531     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39532         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39533     fi
39534
39535     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39536     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39537         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39538     fi
39539
39540     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39541     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39542         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39543     fi
39544
39545     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39546     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39547         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39548     fi
39549
39550     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39551     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39552         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39553     fi
39554
39555     COND_PLATFORM_MAC_1="#"
39556     if test "x$PLATFORM_MAC" = "x1" ; then
39557         COND_PLATFORM_MAC_1=""
39558     fi
39559
39560     COND_PLATFORM_OS2_1="#"
39561     if test "x$PLATFORM_OS2" = "x1" ; then
39562         COND_PLATFORM_OS2_1=""
39563     fi
39564
39565     COND_PLATFORM_UNIX_0="#"
39566     if test "x$PLATFORM_UNIX" = "x0" ; then
39567         COND_PLATFORM_UNIX_0=""
39568     fi
39569
39570     COND_PLATFORM_UNIX_1="#"
39571     if test "x$PLATFORM_UNIX" = "x1" ; then
39572         COND_PLATFORM_UNIX_1=""
39573     fi
39574
39575     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39576     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39577         COND_PLATFORM_UNIX_1_USE_GUI_1=""
39578     fi
39579
39580     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39581     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39582         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39583     fi
39584
39585     COND_PLATFORM_WIN32_0="#"
39586     if test "x$PLATFORM_WIN32" = "x0" ; then
39587         COND_PLATFORM_WIN32_0=""
39588     fi
39589
39590     COND_PLATFORM_WIN32_1="#"
39591     if test "x$PLATFORM_WIN32" = "x1" ; then
39592         COND_PLATFORM_WIN32_1=""
39593     fi
39594
39595     COND_SHARED_0="#"
39596     if test "x$SHARED" = "x0" ; then
39597         COND_SHARED_0=""
39598     fi
39599
39600     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39601     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39602         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39603     fi
39604
39605     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39606     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39607         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39608     fi
39609
39610     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39611     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39612         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39613     fi
39614
39615     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39616     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39617         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39618     fi
39619
39620     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39621     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39622         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39623     fi
39624
39625     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39626     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39627         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39628     fi
39629
39630     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39631     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39632         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39633     fi
39634
39635     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39636     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39637         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39638     fi
39639
39640     COND_SHARED_1="#"
39641     if test "x$SHARED" = "x1" ; then
39642         COND_SHARED_1=""
39643     fi
39644
39645     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39646     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39647         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39648     fi
39649
39650     COND_TOOLKIT_COCOA="#"
39651     if test "x$TOOLKIT" = "xCOCOA" ; then
39652         COND_TOOLKIT_COCOA=""
39653     fi
39654
39655     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39656     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39657         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39658     fi
39659
39660     COND_TOOLKIT_GTK="#"
39661     if test "x$TOOLKIT" = "xGTK" ; then
39662         COND_TOOLKIT_GTK=""
39663     fi
39664
39665     COND_TOOLKIT_GTK_USE_GUI_1="#"
39666     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39667         COND_TOOLKIT_GTK_USE_GUI_1=""
39668     fi
39669
39670     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39671     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39672         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39673     fi
39674
39675     COND_TOOLKIT_MAC="#"
39676     if test "x$TOOLKIT" = "xMAC" ; then
39677         COND_TOOLKIT_MAC=""
39678     fi
39679
39680     COND_TOOLKIT_MAC_USE_GUI_1="#"
39681     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39682         COND_TOOLKIT_MAC_USE_GUI_1=""
39683     fi
39684
39685     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39686     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39687         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39688     fi
39689
39690     COND_TOOLKIT_MGL="#"
39691     if test "x$TOOLKIT" = "xMGL" ; then
39692         COND_TOOLKIT_MGL=""
39693     fi
39694
39695     COND_TOOLKIT_MGL_USE_GUI_1="#"
39696     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39697         COND_TOOLKIT_MGL_USE_GUI_1=""
39698     fi
39699
39700     COND_TOOLKIT_MOTIF="#"
39701     if test "x$TOOLKIT" = "xMOTIF" ; then
39702         COND_TOOLKIT_MOTIF=""
39703     fi
39704
39705     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39706     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39707         COND_TOOLKIT_MOTIF_USE_GUI_1=""
39708     fi
39709
39710     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39711     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39712         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39713     fi
39714
39715     COND_TOOLKIT_MSW="#"
39716     if test "x$TOOLKIT" = "xMSW" ; then
39717         COND_TOOLKIT_MSW=""
39718     fi
39719
39720     COND_TOOLKIT_MSW_USE_GUI_1="#"
39721     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39722         COND_TOOLKIT_MSW_USE_GUI_1=""
39723     fi
39724
39725     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39726     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39727         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39728     fi
39729
39730     COND_TOOLKIT_PM="#"
39731     if test "x$TOOLKIT" = "xPM" ; then
39732         COND_TOOLKIT_PM=""
39733     fi
39734
39735     COND_TOOLKIT_PM_USE_GUI_1="#"
39736     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39737         COND_TOOLKIT_PM_USE_GUI_1=""
39738     fi
39739
39740     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39741     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39742         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39743     fi
39744
39745     COND_TOOLKIT_X11="#"
39746     if test "x$TOOLKIT" = "xX11" ; then
39747         COND_TOOLKIT_X11=""
39748     fi
39749
39750     COND_TOOLKIT_X11_USE_GUI_1="#"
39751     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39752         COND_TOOLKIT_X11_USE_GUI_1=""
39753     fi
39754
39755     COND_UNICODE_1="#"
39756     if test "x$UNICODE" = "x1" ; then
39757         COND_UNICODE_1=""
39758     fi
39759
39760     COND_USE_EXCEPTIONS_0="#"
39761     if test "x$USE_EXCEPTIONS" = "x0" ; then
39762         COND_USE_EXCEPTIONS_0=""
39763     fi
39764
39765     COND_USE_EXCEPTIONS_1="#"
39766     if test "x$USE_EXCEPTIONS" = "x1" ; then
39767         COND_USE_EXCEPTIONS_1=""
39768     fi
39769
39770     COND_USE_GUI_0="#"
39771     if test "x$USE_GUI" = "x0" ; then
39772         COND_USE_GUI_0=""
39773     fi
39774
39775     COND_USE_GUI_1="#"
39776     if test "x$USE_GUI" = "x1" ; then
39777         COND_USE_GUI_1=""
39778     fi
39779
39780     COND_USE_GUI_1_WXUNIV_0="#"
39781     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39782         COND_USE_GUI_1_WXUNIV_0=""
39783     fi
39784
39785     COND_USE_GUI_1_WXUNIV_1="#"
39786     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39787         COND_USE_GUI_1_WXUNIV_1=""
39788     fi
39789
39790     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39791     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39792         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39793     fi
39794
39795     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39796     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39797         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39798     fi
39799
39800     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39801     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39802         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39803     fi
39804
39805     COND_USE_ODBC_1="#"
39806     if test "x$USE_ODBC" = "x1" ; then
39807         COND_USE_ODBC_1=""
39808     fi
39809
39810     COND_USE_PLUGINS_0="#"
39811     if test "x$USE_PLUGINS" = "x0" ; then
39812         COND_USE_PLUGINS_0=""
39813     fi
39814
39815     COND_USE_SOSYMLINKS_1="#"
39816     if test "x$USE_SOSYMLINKS" = "x1" ; then
39817         COND_USE_SOSYMLINKS_1=""
39818     fi
39819
39820     COND_USE_SOVERLINUX_1="#"
39821     if test "x$USE_SOVERLINUX" = "x1" ; then
39822         COND_USE_SOVERLINUX_1=""
39823     fi
39824
39825     COND_USE_SOVERSION_0="#"
39826     if test "x$USE_SOVERSION" = "x0" ; then
39827         COND_USE_SOVERSION_0=""
39828     fi
39829
39830     COND_USE_SOVERSOLARIS_1="#"
39831     if test "x$USE_SOVERSOLARIS" = "x1" ; then
39832         COND_USE_SOVERSOLARIS_1=""
39833     fi
39834
39835     COND_WITH_PLUGIN_SDL_1="#"
39836     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39837         COND_WITH_PLUGIN_SDL_1=""
39838     fi
39839
39840     COND_WITH_SDL_1="#"
39841     if test "x$WITH_SDL" = "x1" ; then
39842         COND_WITH_SDL_1=""
39843     fi
39844
39845     COND_WXUNIV_1="#"
39846     if test "x$WXUNIV" = "x1" ; then
39847         COND_WXUNIV_1=""
39848     fi
39849
39850     COND_WXUSE_EXPAT_BUILTIN="#"
39851     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39852         COND_WXUSE_EXPAT_BUILTIN=""
39853     fi
39854
39855     COND_WXUSE_LIBJPEG_BUILTIN="#"
39856     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39857         COND_WXUSE_LIBJPEG_BUILTIN=""
39858     fi
39859
39860     COND_WXUSE_LIBPNG_BUILTIN="#"
39861     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39862         COND_WXUSE_LIBPNG_BUILTIN=""
39863     fi
39864
39865     COND_WXUSE_LIBTIFF_BUILTIN="#"
39866     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39867         COND_WXUSE_LIBTIFF_BUILTIN=""
39868     fi
39869
39870     COND_WXUSE_ODBC_BUILTIN="#"
39871     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39872         COND_WXUSE_ODBC_BUILTIN=""
39873     fi
39874
39875     COND_WXUSE_REGEX_BUILTIN="#"
39876     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39877         COND_WXUSE_REGEX_BUILTIN=""
39878     fi
39879
39880     COND_WXUSE_ZLIB_BUILTIN="#"
39881     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39882         COND_WXUSE_ZLIB_BUILTIN=""
39883     fi
39884
39885
39886
39887
39888
39889 if test $GCC_PCH = 1 ; then
39890     CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39891     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39892 else
39893     case "${host}" in
39894         powerpc-*-darwin* )
39895                                     CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39896             CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
39897             ;;
39898     esac
39899 fi
39900
39901
39902 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
39947
39948
39949
39950
39951
39952
39953
39954
39955
39956
39957
39958
39959
39960
39961
39962
39963
39964
39965
39966
39967
39968
39969
39970
39971
39972
39973
39974
39975
39976
39977
39978
39979
39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
39992
39993
39994
39995
39996
39997
39998
39999
40000
40001
40002
40003 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40004 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
40005 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
40006 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40007   echo $ECHO_N "(cached) $ECHO_C" >&6
40008 else
40009   cat >conftest.make <<\_ACEOF
40010 all:
40011         @echo 'ac_maketemp="$(MAKE)"'
40012 _ACEOF
40013 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40014 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40015 if test -n "$ac_maketemp"; then
40016   eval ac_cv_prog_make_${ac_make}_set=yes
40017 else
40018   eval ac_cv_prog_make_${ac_make}_set=no
40019 fi
40020 rm -f conftest.make
40021 fi
40022 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40023   echo "$as_me:$LINENO: result: yes" >&5
40024 echo "${ECHO_T}yes" >&6
40025   SET_MAKE=
40026 else
40027   echo "$as_me:$LINENO: result: no" >&5
40028 echo "${ECHO_T}no" >&6
40029   SET_MAKE="MAKE=${MAKE-make}"
40030 fi
40031
40032
40033 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
40034     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
40035 fi
40036
40037           ac_config_headers="$ac_config_headers setup.h"
40038
40039
40040                               ac_config_files="$ac_config_files wx-config version-script Makefile"
40041
40042
40043           ac_config_commands="$ac_config_commands default"
40044
40045
40046
40047 if test "$wxUSE_GUI" = "yes"; then
40048     SUBDIRS="samples demos utils contrib"
40049 else         SUBDIRS="samples utils"
40050 fi
40051
40052
40053
40054 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40055 if test "${with_cppunit_prefix+set}" = set; then
40056   withval="$with_cppunit_prefix"
40057   cppunit_config_prefix="$withval"
40058 else
40059   cppunit_config_prefix=""
40060 fi;
40061
40062 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40063 if test "${with_cppunit_exec_prefix+set}" = set; then
40064   withval="$with_cppunit_exec_prefix"
40065   cppunit_config_exec_prefix="$withval"
40066 else
40067   cppunit_config_exec_prefix=""
40068 fi;
40069
40070   if test x$cppunit_config_exec_prefix != x ; then
40071      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40072      if test x${CPPUNIT_CONFIG+set} != xset ; then
40073         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40074      fi
40075   fi
40076   if test x$cppunit_config_prefix != x ; then
40077      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40078      if test x${CPPUNIT_CONFIG+set} != xset ; then
40079         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40080      fi
40081   fi
40082
40083   # Extract the first word of "cppunit-config", so it can be a program name with args.
40084 set dummy cppunit-config; ac_word=$2
40085 echo "$as_me:$LINENO: checking for $ac_word" >&5
40086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40087 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
40088   echo $ECHO_N "(cached) $ECHO_C" >&6
40089 else
40090   case $CPPUNIT_CONFIG in
40091   [\\/]* | ?:[\\/]*)
40092   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
40093   ;;
40094   *)
40095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40096 for as_dir in $PATH
40097 do
40098   IFS=$as_save_IFS
40099   test -z "$as_dir" && as_dir=.
40100   for ac_exec_ext in '' $ac_executable_extensions; do
40101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40102     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40104     break 2
40105   fi
40106 done
40107 done
40108
40109   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
40110   ;;
40111 esac
40112 fi
40113 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
40114
40115 if test -n "$CPPUNIT_CONFIG"; then
40116   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
40117 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
40118 else
40119   echo "$as_me:$LINENO: result: no" >&5
40120 echo "${ECHO_T}no" >&6
40121 fi
40122
40123   cppunit_version_min=1.8.0
40124
40125   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
40126 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
40127   no_cppunit=""
40128   if test "$CPPUNIT_CONFIG" = "no" ; then
40129     no_cppunit=yes
40130   else
40131     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
40132     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
40133     cppunit_version=`$CPPUNIT_CONFIG --version`
40134
40135     cppunit_major_version=`echo $cppunit_version | \
40136            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40137     cppunit_minor_version=`echo $cppunit_version | \
40138            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40139     cppunit_micro_version=`echo $cppunit_version | \
40140            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40141
40142     cppunit_major_min=`echo $cppunit_version_min | \
40143            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40144     cppunit_minor_min=`echo $cppunit_version_min | \
40145            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40146     cppunit_micro_min=`echo $cppunit_version_min | \
40147            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40148
40149     cppunit_version_proper=`expr \
40150         $cppunit_major_version \> $cppunit_major_min \| \
40151         $cppunit_major_version \= $cppunit_major_min \& \
40152         $cppunit_minor_version \> $cppunit_minor_min \| \
40153         $cppunit_major_version \= $cppunit_major_min \& \
40154         $cppunit_minor_version \= $cppunit_minor_min \& \
40155         $cppunit_micro_version \>= $cppunit_micro_min `
40156
40157     if test "$cppunit_version_proper" = "1" ; then
40158       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
40159 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
40160     else
40161       echo "$as_me:$LINENO: result: no" >&5
40162 echo "${ECHO_T}no" >&6
40163       no_cppunit=yes
40164     fi
40165   fi
40166
40167   if test "x$no_cppunit" = x ; then
40168      SUBDIRS="$SUBDIRS tests"
40169   else
40170      CPPUNIT_CFLAGS=""
40171      CPPUNIT_LIBS=""
40172      :
40173   fi
40174
40175
40176
40177
40178
40179 for subdir in `echo $SUBDIRS`; do
40180     if test -d ${srcdir}/${subdir} ; then
40181         if test "$wxUSE_GUI" = "yes"; then
40182             if test ${subdir} = "samples"; then
40183                                                 makefiles="samples/Makefile.in $makefiles"
40184                 for sample in `echo $SAMPLES_SUBDIRS`; do
40185                     if test -d $srcdir/samples/$sample; then
40186                         makefiles="samples/$sample/Makefile.in $makefiles"
40187                     fi
40188                 done
40189             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40190             fi
40191         else                                     if test ${subdir} = "samples"; then
40192                 makefiles="samples/Makefile.in samples/console/Makefile.in"
40193             elif test ${subdir} = "utils"; then
40194                 makefiles="utils/HelpGen/Makefile.in \
40195                            utils/HelpGen/src/Makefile.in \
40196                            utils/tex2rtf/Makefile.in \
40197                            utils/tex2rtf/src/Makefile.in"
40198             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40199             fi
40200         fi
40201
40202         for mkin in $makefiles ; do
40203             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
40204                       ac_config_files="$ac_config_files $mk"
40205
40206         done
40207     fi
40208 done
40209
40210
40211 cat >confcache <<\_ACEOF
40212 # This file is a shell script that caches the results of configure
40213 # tests run on this system so they can be shared between configure
40214 # scripts and configure runs, see configure's option --config-cache.
40215 # It is not useful on other systems.  If it contains results you don't
40216 # want to keep, you may remove or edit it.
40217 #
40218 # config.status only pays attention to the cache file if you give it
40219 # the --recheck option to rerun configure.
40220 #
40221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40223 # following values.
40224
40225 _ACEOF
40226
40227 # The following way of writing the cache mishandles newlines in values,
40228 # but we know of no workaround that is simple, portable, and efficient.
40229 # So, don't put newlines in cache variables' values.
40230 # Ultrix sh set writes to stderr and can't be redirected directly,
40231 # and sets the high bit in the cache file unless we assign to the vars.
40232 {
40233   (set) 2>&1 |
40234     case `(ac_space=' '; set | grep ac_space) 2>&1` in
40235     *ac_space=\ *)
40236       # `set' does not quote correctly, so add quotes (double-quote
40237       # substitution turns \\\\ into \\, and sed turns \\ into \).
40238       sed -n \
40239         "s/'/'\\\\''/g;
40240           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40241       ;;
40242     *)
40243       # `set' quotes correctly as required by POSIX, so do not add quotes.
40244       sed -n \
40245         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40246       ;;
40247     esac;
40248 } |
40249   sed '
40250      t clear
40251      : clear
40252      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40253      t end
40254      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40255      : end' >>confcache
40256 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40257   if test -w $cache_file; then
40258     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40259     cat confcache >$cache_file
40260   else
40261     echo "not updating unwritable cache $cache_file"
40262   fi
40263 fi
40264 rm -f confcache
40265
40266 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40267 # Let make expand exec_prefix.
40268 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40269
40270 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40271 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40272 # trailing colons and then remove the whole line if VPATH becomes empty
40273 # (actually we leave an empty line to preserve line numbers).
40274 if test "x$srcdir" = x.; then
40275   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40276 s/:*\$(srcdir):*/:/;
40277 s/:*\${srcdir}:*/:/;
40278 s/:*@srcdir@:*/:/;
40279 s/^\([^=]*=[     ]*\):*/\1/;
40280 s/:*$//;
40281 s/^[^=]*=[       ]*$//;
40282 }'
40283 fi
40284
40285 DEFS=-DHAVE_CONFIG_H
40286
40287 ac_libobjs=
40288 ac_ltlibobjs=
40289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40290   # 1. Remove the extension, and $U if already installed.
40291   ac_i=`echo "$ac_i" |
40292          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40293   # 2. Add them.
40294   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40295   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40296 done
40297 LIBOBJS=$ac_libobjs
40298
40299 LTLIBOBJS=$ac_ltlibobjs
40300
40301
40302
40303 : ${CONFIG_STATUS=./config.status}
40304 ac_clean_files_save=$ac_clean_files
40305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40306 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40307 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40308 cat >$CONFIG_STATUS <<_ACEOF
40309 #! $SHELL
40310 # Generated by $as_me.
40311 # Run this file to recreate the current configuration.
40312 # Compiler output produced by configure, useful for debugging
40313 # configure, is in config.log if it exists.
40314
40315 debug=false
40316 ac_cs_recheck=false
40317 ac_cs_silent=false
40318 SHELL=\${CONFIG_SHELL-$SHELL}
40319 _ACEOF
40320
40321 cat >>$CONFIG_STATUS <<\_ACEOF
40322 ## --------------------- ##
40323 ## M4sh Initialization.  ##
40324 ## --------------------- ##
40325
40326 # Be Bourne compatible
40327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40328   emulate sh
40329   NULLCMD=:
40330   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40331   # is contrary to our usage.  Disable this feature.
40332   alias -g '${1+"$@"}'='"$@"'
40333 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40334   set -o posix
40335 fi
40336 DUALCASE=1; export DUALCASE # for MKS sh
40337
40338 # Support unset when possible.
40339 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40340   as_unset=unset
40341 else
40342   as_unset=false
40343 fi
40344
40345
40346 # Work around bugs in pre-3.0 UWIN ksh.
40347 $as_unset ENV MAIL MAILPATH
40348 PS1='$ '
40349 PS2='> '
40350 PS4='+ '
40351
40352 # NLS nuisances.
40353 for as_var in \
40354   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40355   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40356   LC_TELEPHONE LC_TIME
40357 do
40358   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40359     eval $as_var=C; export $as_var
40360   else
40361     $as_unset $as_var
40362   fi
40363 done
40364
40365 # Required to use basename.
40366 if expr a : '\(a\)' >/dev/null 2>&1; then
40367   as_expr=expr
40368 else
40369   as_expr=false
40370 fi
40371
40372 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40373   as_basename=basename
40374 else
40375   as_basename=false
40376 fi
40377
40378
40379 # Name of the executable.
40380 as_me=`$as_basename "$0" ||
40381 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40382          X"$0" : 'X\(//\)$' \| \
40383          X"$0" : 'X\(/\)$' \| \
40384          .     : '\(.\)' 2>/dev/null ||
40385 echo X/"$0" |
40386     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40387           /^X\/\(\/\/\)$/{ s//\1/; q; }
40388           /^X\/\(\/\).*/{ s//\1/; q; }
40389           s/.*/./; q'`
40390
40391
40392 # PATH needs CR, and LINENO needs CR and PATH.
40393 # Avoid depending upon Character Ranges.
40394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40397 as_cr_digits='0123456789'
40398 as_cr_alnum=$as_cr_Letters$as_cr_digits
40399
40400 # The user is always right.
40401 if test "${PATH_SEPARATOR+set}" != set; then
40402   echo "#! /bin/sh" >conf$$.sh
40403   echo  "exit 0"   >>conf$$.sh
40404   chmod +x conf$$.sh
40405   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40406     PATH_SEPARATOR=';'
40407   else
40408     PATH_SEPARATOR=:
40409   fi
40410   rm -f conf$$.sh
40411 fi
40412
40413
40414   as_lineno_1=$LINENO
40415   as_lineno_2=$LINENO
40416   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40417   test "x$as_lineno_1" != "x$as_lineno_2" &&
40418   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40419   # Find who we are.  Look in the path if we contain no path at all
40420   # relative or not.
40421   case $0 in
40422     *[\\/]* ) as_myself=$0 ;;
40423     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40424 for as_dir in $PATH
40425 do
40426   IFS=$as_save_IFS
40427   test -z "$as_dir" && as_dir=.
40428   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40429 done
40430
40431        ;;
40432   esac
40433   # We did not find ourselves, most probably we were run as `sh COMMAND'
40434   # in which case we are not to be found in the path.
40435   if test "x$as_myself" = x; then
40436     as_myself=$0
40437   fi
40438   if test ! -f "$as_myself"; then
40439     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40440 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40441    { (exit 1); exit 1; }; }
40442   fi
40443   case $CONFIG_SHELL in
40444   '')
40445     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40447 do
40448   IFS=$as_save_IFS
40449   test -z "$as_dir" && as_dir=.
40450   for as_base in sh bash ksh sh5; do
40451          case $as_dir in
40452          /*)
40453            if ("$as_dir/$as_base" -c '
40454   as_lineno_1=$LINENO
40455   as_lineno_2=$LINENO
40456   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40457   test "x$as_lineno_1" != "x$as_lineno_2" &&
40458   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
40459              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40460              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40461              CONFIG_SHELL=$as_dir/$as_base
40462              export CONFIG_SHELL
40463              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40464            fi;;
40465          esac
40466        done
40467 done
40468 ;;
40469   esac
40470
40471   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40472   # uniformly replaced by the line number.  The first 'sed' inserts a
40473   # line-number line before each line; the second 'sed' does the real
40474   # work.  The second script uses 'N' to pair each line-number line
40475   # with the numbered line, and appends trailing '-' during
40476   # substitution so that $LINENO is not a special case at line end.
40477   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40478   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
40479   sed '=' <$as_myself |
40480     sed '
40481       N
40482       s,$,-,
40483       : loop
40484       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40485       t loop
40486       s,-$,,
40487       s,^['$as_cr_digits']*\n,,
40488     ' >$as_me.lineno &&
40489   chmod +x $as_me.lineno ||
40490     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40491 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40492    { (exit 1); exit 1; }; }
40493
40494   # Don't try to exec as it changes $[0], causing all sort of problems
40495   # (the dirname of $[0] is not the place where we might find the
40496   # original and so on.  Autoconf is especially sensible to this).
40497   . ./$as_me.lineno
40498   # Exit status is that of the last command.
40499   exit
40500 }
40501
40502
40503 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40504   *c*,-n*) ECHO_N= ECHO_C='
40505 ' ECHO_T='      ' ;;
40506   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40507   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
40508 esac
40509
40510 if expr a : '\(a\)' >/dev/null 2>&1; then
40511   as_expr=expr
40512 else
40513   as_expr=false
40514 fi
40515
40516 rm -f conf$$ conf$$.exe conf$$.file
40517 echo >conf$$.file
40518 if ln -s conf$$.file conf$$ 2>/dev/null; then
40519   # We could just check for DJGPP; but this test a) works b) is more generic
40520   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40521   if test -f conf$$.exe; then
40522     # Don't use ln at all; we don't have any links
40523     as_ln_s='cp -p'
40524   else
40525     as_ln_s='ln -s'
40526   fi
40527 elif ln conf$$.file conf$$ 2>/dev/null; then
40528   as_ln_s=ln
40529 else
40530   as_ln_s='cp -p'
40531 fi
40532 rm -f conf$$ conf$$.exe conf$$.file
40533
40534 if mkdir -p . 2>/dev/null; then
40535   as_mkdir_p=:
40536 else
40537   test -d ./-p && rmdir ./-p
40538   as_mkdir_p=false
40539 fi
40540
40541 as_executable_p="test -f"
40542
40543 # Sed expression to map a string onto a valid CPP name.
40544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40545
40546 # Sed expression to map a string onto a valid variable name.
40547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40548
40549
40550 # IFS
40551 # We need space, tab and new line, in precisely that order.
40552 as_nl='
40553 '
40554 IFS="   $as_nl"
40555
40556 # CDPATH.
40557 $as_unset CDPATH
40558
40559 exec 6>&1
40560
40561 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40562 # report actual input values of CONFIG_FILES etc. instead of their
40563 # values after options handling.  Logging --version etc. is OK.
40564 exec 5>>config.log
40565 {
40566   echo
40567   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40568 ## Running $as_me. ##
40569 _ASBOX
40570 } >&5
40571 cat >&5 <<_CSEOF
40572
40573 This file was extended by wxWindows $as_me 2.5.1, which was
40574 generated by GNU Autoconf 2.59.  Invocation command line was
40575
40576   CONFIG_FILES    = $CONFIG_FILES
40577   CONFIG_HEADERS  = $CONFIG_HEADERS
40578   CONFIG_LINKS    = $CONFIG_LINKS
40579   CONFIG_COMMANDS = $CONFIG_COMMANDS
40580   $ $0 $@
40581
40582 _CSEOF
40583 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40584 echo >&5
40585 _ACEOF
40586
40587 # Files that config.status was made for.
40588 if test -n "$ac_config_files"; then
40589   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40590 fi
40591
40592 if test -n "$ac_config_headers"; then
40593   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40594 fi
40595
40596 if test -n "$ac_config_links"; then
40597   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40598 fi
40599
40600 if test -n "$ac_config_commands"; then
40601   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40602 fi
40603
40604 cat >>$CONFIG_STATUS <<\_ACEOF
40605
40606 ac_cs_usage="\
40607 \`$as_me' instantiates files from templates according to the
40608 current configuration.
40609
40610 Usage: $0 [OPTIONS] [FILE]...
40611
40612   -h, --help       print this help, then exit
40613   -V, --version    print version number, then exit
40614   -q, --quiet      do not print progress messages
40615   -d, --debug      don't remove temporary files
40616       --recheck    update $as_me by reconfiguring in the same conditions
40617   --file=FILE[:TEMPLATE]
40618                    instantiate the configuration file FILE
40619   --header=FILE[:TEMPLATE]
40620                    instantiate the configuration header FILE
40621
40622 Configuration files:
40623 $config_files
40624
40625 Configuration headers:
40626 $config_headers
40627
40628 Configuration commands:
40629 $config_commands
40630
40631 Report bugs to <bug-autoconf@gnu.org>."
40632 _ACEOF
40633
40634 cat >>$CONFIG_STATUS <<_ACEOF
40635 ac_cs_version="\\
40636 wxWindows config.status 2.5.1
40637 configured by $0, generated by GNU Autoconf 2.59,
40638   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40639
40640 Copyright (C) 2003 Free Software Foundation, Inc.
40641 This config.status script is free software; the Free Software Foundation
40642 gives unlimited permission to copy, distribute and modify it."
40643 srcdir=$srcdir
40644 INSTALL="$INSTALL"
40645 _ACEOF
40646
40647 cat >>$CONFIG_STATUS <<\_ACEOF
40648 # If no file are specified by the user, then we need to provide default
40649 # value.  By we need to know if files were specified by the user.
40650 ac_need_defaults=:
40651 while test $# != 0
40652 do
40653   case $1 in
40654   --*=*)
40655     ac_option=`expr "x$1" : 'x\([^=]*\)='`
40656     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40657     ac_shift=:
40658     ;;
40659   -*)
40660     ac_option=$1
40661     ac_optarg=$2
40662     ac_shift=shift
40663     ;;
40664   *) # This is not an option, so the user has probably given explicit
40665      # arguments.
40666      ac_option=$1
40667      ac_need_defaults=false;;
40668   esac
40669
40670   case $ac_option in
40671   # Handling of the options.
40672 _ACEOF
40673 cat >>$CONFIG_STATUS <<\_ACEOF
40674   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40675     ac_cs_recheck=: ;;
40676   --version | --vers* | -V )
40677     echo "$ac_cs_version"; exit 0 ;;
40678   --he | --h)
40679     # Conflict between --help and --header
40680     { { echo "$as_me:$LINENO: error: ambiguous option: $1
40681 Try \`$0 --help' for more information." >&5
40682 echo "$as_me: error: ambiguous option: $1
40683 Try \`$0 --help' for more information." >&2;}
40684    { (exit 1); exit 1; }; };;
40685   --help | --hel | -h )
40686     echo "$ac_cs_usage"; exit 0 ;;
40687   --debug | --d* | -d )
40688     debug=: ;;
40689   --file | --fil | --fi | --f )
40690     $ac_shift
40691     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40692     ac_need_defaults=false;;
40693   --header | --heade | --head | --hea )
40694     $ac_shift
40695     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40696     ac_need_defaults=false;;
40697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40698   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40699     ac_cs_silent=: ;;
40700
40701   # This is an error.
40702   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40703 Try \`$0 --help' for more information." >&5
40704 echo "$as_me: error: unrecognized option: $1
40705 Try \`$0 --help' for more information." >&2;}
40706    { (exit 1); exit 1; }; } ;;
40707
40708   *) ac_config_targets="$ac_config_targets $1" ;;
40709
40710   esac
40711   shift
40712 done
40713
40714 ac_configure_extra_args=
40715
40716 if $ac_cs_silent; then
40717   exec 6>/dev/null
40718   ac_configure_extra_args="$ac_configure_extra_args --silent"
40719 fi
40720
40721 _ACEOF
40722 cat >>$CONFIG_STATUS <<_ACEOF
40723 if \$ac_cs_recheck; then
40724   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40725   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40726 fi
40727
40728 _ACEOF
40729
40730 cat >>$CONFIG_STATUS <<_ACEOF
40731 #
40732 # INIT-COMMANDS section.
40733 #
40734
40735
40736             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40737             LN_S="${LN_S}"
40738
40739
40740
40741 _ACEOF
40742
40743
40744
40745 cat >>$CONFIG_STATUS <<\_ACEOF
40746 for ac_config_target in $ac_config_targets
40747 do
40748   case "$ac_config_target" in
40749   # Handling of arguments.
40750   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40751   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40752   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40753   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
40754   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40755   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40756   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40757 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40758    { (exit 1); exit 1; }; };;
40759   esac
40760 done
40761
40762 # If the user did not use the arguments to specify the items to instantiate,
40763 # then the envvar interface is used.  Set only those that are not.
40764 # We use the long form for the default assignment because of an extremely
40765 # bizarre bug on SunOS 4.1.3.
40766 if $ac_need_defaults; then
40767   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40768   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40769   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40770 fi
40771
40772 # Have a temporary directory for convenience.  Make it in the build tree
40773 # simply because there is no reason to put it here, and in addition,
40774 # creating and moving files from /tmp can sometimes cause problems.
40775 # Create a temporary directory, and hook for its removal unless debugging.
40776 $debug ||
40777 {
40778   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40779   trap '{ (exit 1); exit 1; }' 1 2 13 15
40780 }
40781
40782 # Create a (secure) tmp directory for tmp files.
40783
40784 {
40785   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40786   test -n "$tmp" && test -d "$tmp"
40787 }  ||
40788 {
40789   tmp=./confstat$$-$RANDOM
40790   (umask 077 && mkdir $tmp)
40791 } ||
40792 {
40793    echo "$me: cannot create a temporary directory in ." >&2
40794    { (exit 1); exit 1; }
40795 }
40796
40797 _ACEOF
40798
40799 cat >>$CONFIG_STATUS <<_ACEOF
40800
40801 #
40802 # CONFIG_FILES section.
40803 #
40804
40805 # No need to generate the scripts if there are no CONFIG_FILES.
40806 # This happens for instance when ./config.status config.h
40807 if test -n "\$CONFIG_FILES"; then
40808   # Protect against being on the right side of a sed subst in config.status.
40809   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40810    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40811 s,@SHELL@,$SHELL,;t t
40812 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40813 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40814 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40815 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40816 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40817 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40818 s,@exec_prefix@,$exec_prefix,;t t
40819 s,@prefix@,$prefix,;t t
40820 s,@program_transform_name@,$program_transform_name,;t t
40821 s,@bindir@,$bindir,;t t
40822 s,@sbindir@,$sbindir,;t t
40823 s,@libexecdir@,$libexecdir,;t t
40824 s,@datadir@,$datadir,;t t
40825 s,@sysconfdir@,$sysconfdir,;t t
40826 s,@sharedstatedir@,$sharedstatedir,;t t
40827 s,@localstatedir@,$localstatedir,;t t
40828 s,@libdir@,$libdir,;t t
40829 s,@includedir@,$includedir,;t t
40830 s,@oldincludedir@,$oldincludedir,;t t
40831 s,@infodir@,$infodir,;t t
40832 s,@mandir@,$mandir,;t t
40833 s,@build_alias@,$build_alias,;t t
40834 s,@host_alias@,$host_alias,;t t
40835 s,@target_alias@,$target_alias,;t t
40836 s,@DEFS@,$DEFS,;t t
40837 s,@ECHO_C@,$ECHO_C,;t t
40838 s,@ECHO_N@,$ECHO_N,;t t
40839 s,@ECHO_T@,$ECHO_T,;t t
40840 s,@LIBS@,$LIBS,;t t
40841 s,@build@,$build,;t t
40842 s,@build_cpu@,$build_cpu,;t t
40843 s,@build_vendor@,$build_vendor,;t t
40844 s,@build_os@,$build_os,;t t
40845 s,@host@,$host,;t t
40846 s,@host_cpu@,$host_cpu,;t t
40847 s,@host_vendor@,$host_vendor,;t t
40848 s,@host_os@,$host_os,;t t
40849 s,@target@,$target,;t t
40850 s,@target_cpu@,$target_cpu,;t t
40851 s,@target_vendor@,$target_vendor,;t t
40852 s,@target_os@,$target_os,;t t
40853 s,@CC@,$CC,;t t
40854 s,@CFLAGS@,$CFLAGS,;t t
40855 s,@LDFLAGS@,$LDFLAGS,;t t
40856 s,@CPPFLAGS@,$CPPFLAGS,;t t
40857 s,@ac_ct_CC@,$ac_ct_CC,;t t
40858 s,@EXEEXT@,$EXEEXT,;t t
40859 s,@OBJEXT@,$OBJEXT,;t t
40860 s,@CPP@,$CPP,;t t
40861 s,@EGREP@,$EGREP,;t t
40862 s,@CXX@,$CXX,;t t
40863 s,@CXXFLAGS@,$CXXFLAGS,;t t
40864 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40865 s,@RANLIB@,$RANLIB,;t t
40866 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40867 s,@AR@,$AR,;t t
40868 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40869 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40870 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40871 s,@STRIP@,$STRIP,;t t
40872 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
40873 s,@LN_S@,$LN_S,;t t
40874 s,@CXXCPP@,$CXXCPP,;t t
40875 s,@subdirs@,$subdirs,;t t
40876 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40877 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40878 s,@GTK_LIBS@,$GTK_LIBS,;t t
40879 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40880 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40881 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40882 s,@X_CFLAGS@,$X_CFLAGS,;t t
40883 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40884 s,@X_LIBS@,$X_LIBS,;t t
40885 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40886 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40887 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40888 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40889 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
40890 s,@RESCOMP@,$RESCOMP,;t t
40891 s,@DEREZ@,$DEREZ,;t t
40892 s,@SETFILE@,$SETFILE,;t t
40893 s,@LIBICONV@,$LIBICONV,;t t
40894 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
40895 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40896 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40897 s,@SDL_LIBS@,$SDL_LIBS,;t t
40898 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40899 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
40900 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40901 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
40902 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
40903 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40904 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40905 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40906 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
40907 s,@VENDOR@,$VENDOR,;t t
40908 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
40909 s,@WXUNIV@,$WXUNIV,;t t
40910 s,@MONOLITHIC@,$MONOLITHIC,;t t
40911 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
40912 s,@EXTRALIBS@,$EXTRALIBS,;t t
40913 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
40914 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
40915 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
40916 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
40917 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
40918 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40919 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
40920 s,@UNICODE@,$UNICODE,;t t
40921 s,@BUILD@,$BUILD,;t t
40922 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40923 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
40924 s,@SHARED@,$SHARED,;t t
40925 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40926 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40927 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
40928 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
40929 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
40930 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
40931 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
40932 s,@SET_MAKE@,$SET_MAKE,;t t
40933 s,@MAKE_SET@,$MAKE_SET,;t t
40934 s,@ac_ct_AR@,$ac_ct_AR,;t t
40935 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40936 s,@NM@,$NM,;t t
40937 s,@ac_ct_NM@,$ac_ct_NM,;t t
40938 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
40939 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
40940 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40941 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40942 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40943 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40944 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
40945 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
40946 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
40947 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
40948 s,@LIBPREFIX@,$LIBPREFIX,;t t
40949 s,@DLLPREFIX@,$DLLPREFIX,;t t
40950 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
40951 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
40952 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40953 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
40954 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40955 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
40956 s,@PIC_FLAG@,$PIC_FLAG,;t t
40957 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40958 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40959 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40960 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40961 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40962 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
40963 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
40964 s,@GCC_PCH@,$GCC_PCH,;t t
40965 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
40966 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40967 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
40968 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40969 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
40970 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
40971 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
40972 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40973 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
40974 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40975 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40976 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
40977 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
40978 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
40979 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
40980 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
40981 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40982 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
40983 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
40984 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
40985 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
40986 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
40987 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
40988 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
40989 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
40990 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
40991 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
40992 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
40993 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40994 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
40995 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40996 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
40997 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
40998 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
40999 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41000 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41001 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
41002 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41003 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41004 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41005 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41006 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41007 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41008 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41009 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41010 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41011 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41012 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
41013 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41014 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41015 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41016 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41017 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41018 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41019 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41020 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41021 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41022 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41023 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41024 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41025 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41026 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41027 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41028 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41029 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41030 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
41031 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41032 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41033 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41034 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41035 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41036 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41037 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41038 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
41039 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41040 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41041 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
41042 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41043 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41044 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41045 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41046 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41047 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41048 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41049 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41050 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41051 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41052 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41053 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41054 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
41055 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41056 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41057 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41058 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41059 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41060 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
41061 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
41062 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41063 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41064 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41065 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41066 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41067 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41068 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41069 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
41070 s,@PATH_IFS@,$PATH_IFS,;t t
41071 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
41072 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
41073 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
41074 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
41075 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
41076 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
41077 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
41078 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
41079 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
41080 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
41081 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
41082 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
41083 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
41084 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
41085 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
41086 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
41087 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
41088 s,@WX_ALL@,$WX_ALL,;t t
41089 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
41090 s,@SHARED_LD@,$SHARED_LD,;t t
41091 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
41092 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
41093 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
41094 s,@USE_GUI@,$USE_GUI,;t t
41095 s,@AFMINSTALL@,$AFMINSTALL,;t t
41096 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
41097 s,@TOOLKIT@,$TOOLKIT,;t t
41098 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
41099 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
41100 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
41101 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
41102 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
41103 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
41104 s,@cross_compiling@,$cross_compiling,;t t
41105 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
41106 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
41107 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
41108 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
41109 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
41110 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
41111 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
41112 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
41113 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
41114 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
41115 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
41116 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
41117 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
41118 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
41119 s,@GUIDIST@,$GUIDIST,;t t
41120 s,@PORT_FILES@,$PORT_FILES,;t t
41121 s,@DISTDIR@,$DISTDIR,;t t
41122 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
41123 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
41124 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
41125 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
41126 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
41127 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
41128 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
41129 s,@RESFLAGS@,$RESFLAGS,;t t
41130 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
41131 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
41132 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
41133 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
41134 s,@MACRESCOMP@,$MACRESCOMP,;t t
41135 s,@MACSETFILE@,$MACSETFILE,;t t
41136 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
41137 s,@GCC@,$GCC,;t t
41138 s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
41139 s,@DLLTOOL@,$DLLTOOL,;t t
41140 s,@AS@,$AS,;t t
41141 s,@LD@,$LD,;t t
41142 s,@MAKEINFO@,$MAKEINFO,;t t
41143 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
41144 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
41145 s,@LIBOBJS@,$LIBOBJS,;t t
41146 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41147 CEOF
41148
41149 _ACEOF
41150
41151   cat >>$CONFIG_STATUS <<\_ACEOF
41152   # Split the substitutions into bite-sized pieces for seds with
41153   # small command number limits, like on Digital OSF/1 and HP-UX.
41154   ac_max_sed_lines=48
41155   ac_sed_frag=1 # Number of current file.
41156   ac_beg=1 # First line for current file.
41157   ac_end=$ac_max_sed_lines # Line after last line for current file.
41158   ac_more_lines=:
41159   ac_sed_cmds=
41160   while $ac_more_lines; do
41161     if test $ac_beg -gt 1; then
41162       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41163     else
41164       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41165     fi
41166     if test ! -s $tmp/subs.frag; then
41167       ac_more_lines=false
41168     else
41169       # The purpose of the label and of the branching condition is to
41170       # speed up the sed processing (if there are no `@' at all, there
41171       # is no need to browse any of the substitutions).
41172       # These are the two extra sed commands mentioned above.
41173       (echo ':t
41174   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41175       if test -z "$ac_sed_cmds"; then
41176         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41177       else
41178         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41179       fi
41180       ac_sed_frag=`expr $ac_sed_frag + 1`
41181       ac_beg=$ac_end
41182       ac_end=`expr $ac_end + $ac_max_sed_lines`
41183     fi
41184   done
41185   if test -z "$ac_sed_cmds"; then
41186     ac_sed_cmds=cat
41187   fi
41188 fi # test -n "$CONFIG_FILES"
41189
41190 _ACEOF
41191 cat >>$CONFIG_STATUS <<\_ACEOF
41192 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41193   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41194   case $ac_file in
41195   - | *:- | *:-:* ) # input from stdin
41196         cat >$tmp/stdin
41197         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41198         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41199   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41200         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41201   * )   ac_file_in=$ac_file.in ;;
41202   esac
41203
41204   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41205   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41207          X"$ac_file" : 'X\(//\)[^/]' \| \
41208          X"$ac_file" : 'X\(//\)$' \| \
41209          X"$ac_file" : 'X\(/\)' \| \
41210          .     : '\(.\)' 2>/dev/null ||
41211 echo X"$ac_file" |
41212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41214           /^X\(\/\/\)$/{ s//\1/; q; }
41215           /^X\(\/\).*/{ s//\1/; q; }
41216           s/.*/./; q'`
41217   { if $as_mkdir_p; then
41218     mkdir -p "$ac_dir"
41219   else
41220     as_dir="$ac_dir"
41221     as_dirs=
41222     while test ! -d "$as_dir"; do
41223       as_dirs="$as_dir $as_dirs"
41224       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41226          X"$as_dir" : 'X\(//\)[^/]' \| \
41227          X"$as_dir" : 'X\(//\)$' \| \
41228          X"$as_dir" : 'X\(/\)' \| \
41229          .     : '\(.\)' 2>/dev/null ||
41230 echo X"$as_dir" |
41231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41233           /^X\(\/\/\)$/{ s//\1/; q; }
41234           /^X\(\/\).*/{ s//\1/; q; }
41235           s/.*/./; q'`
41236     done
41237     test ! -n "$as_dirs" || mkdir $as_dirs
41238   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41240    { (exit 1); exit 1; }; }; }
41241
41242   ac_builddir=.
41243
41244 if test "$ac_dir" != .; then
41245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41246   # A "../" for each directory in $ac_dir_suffix.
41247   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41248 else
41249   ac_dir_suffix= ac_top_builddir=
41250 fi
41251
41252 case $srcdir in
41253   .)  # No --srcdir option.  We are building in place.
41254     ac_srcdir=.
41255     if test -z "$ac_top_builddir"; then
41256        ac_top_srcdir=.
41257     else
41258        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41259     fi ;;
41260   [\\/]* | ?:[\\/]* )  # Absolute path.
41261     ac_srcdir=$srcdir$ac_dir_suffix;
41262     ac_top_srcdir=$srcdir ;;
41263   *) # Relative path.
41264     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41265     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41266 esac
41267
41268 # Do not use `cd foo && pwd` to compute absolute paths, because
41269 # the directories may not exist.
41270 case `pwd` in
41271 .) ac_abs_builddir="$ac_dir";;
41272 *)
41273   case "$ac_dir" in
41274   .) ac_abs_builddir=`pwd`;;
41275   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41276   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41277   esac;;
41278 esac
41279 case $ac_abs_builddir in
41280 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41281 *)
41282   case ${ac_top_builddir}. in
41283   .) ac_abs_top_builddir=$ac_abs_builddir;;
41284   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41285   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41286   esac;;
41287 esac
41288 case $ac_abs_builddir in
41289 .) ac_abs_srcdir=$ac_srcdir;;
41290 *)
41291   case $ac_srcdir in
41292   .) ac_abs_srcdir=$ac_abs_builddir;;
41293   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41294   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41295   esac;;
41296 esac
41297 case $ac_abs_builddir in
41298 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41299 *)
41300   case $ac_top_srcdir in
41301   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41302   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41303   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41304   esac;;
41305 esac
41306
41307
41308   case $INSTALL in
41309   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41310   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41311   esac
41312
41313   if test x"$ac_file" != x-; then
41314     { echo "$as_me:$LINENO: creating $ac_file" >&5
41315 echo "$as_me: creating $ac_file" >&6;}
41316     rm -f "$ac_file"
41317   fi
41318   # Let's still pretend it is `configure' which instantiates (i.e., don't
41319   # use $as_me), people would be surprised to read:
41320   #    /* config.h.  Generated by config.status.  */
41321   if test x"$ac_file" = x-; then
41322     configure_input=
41323   else
41324     configure_input="$ac_file.  "
41325   fi
41326   configure_input=$configure_input"Generated from `echo $ac_file_in |
41327                                      sed 's,.*/,,'` by configure."
41328
41329   # First look for the input files in the build tree, otherwise in the
41330   # src tree.
41331   ac_file_inputs=`IFS=:
41332     for f in $ac_file_in; do
41333       case $f in
41334       -) echo $tmp/stdin ;;
41335       [\\/$]*)
41336          # Absolute (can't be DOS-style, as IFS=:)
41337          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41338 echo "$as_me: error: cannot find input file: $f" >&2;}
41339    { (exit 1); exit 1; }; }
41340          echo "$f";;
41341       *) # Relative
41342          if test -f "$f"; then
41343            # Build tree
41344            echo "$f"
41345          elif test -f "$srcdir/$f"; then
41346            # Source tree
41347            echo "$srcdir/$f"
41348          else
41349            # /dev/null tree
41350            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41351 echo "$as_me: error: cannot find input file: $f" >&2;}
41352    { (exit 1); exit 1; }; }
41353          fi;;
41354       esac
41355     done` || { (exit 1); exit 1; }
41356 _ACEOF
41357 cat >>$CONFIG_STATUS <<_ACEOF
41358   sed "$ac_vpsub
41359 $extrasub
41360 _ACEOF
41361 cat >>$CONFIG_STATUS <<\_ACEOF
41362 :t
41363 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41364 s,@configure_input@,$configure_input,;t t
41365 s,@srcdir@,$ac_srcdir,;t t
41366 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41367 s,@top_srcdir@,$ac_top_srcdir,;t t
41368 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41369 s,@builddir@,$ac_builddir,;t t
41370 s,@abs_builddir@,$ac_abs_builddir,;t t
41371 s,@top_builddir@,$ac_top_builddir,;t t
41372 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41373 s,@INSTALL@,$ac_INSTALL,;t t
41374 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41375   rm -f $tmp/stdin
41376   if test x"$ac_file" != x-; then
41377     mv $tmp/out $ac_file
41378   else
41379     cat $tmp/out
41380     rm -f $tmp/out
41381   fi
41382
41383 done
41384 _ACEOF
41385 cat >>$CONFIG_STATUS <<\_ACEOF
41386
41387 #
41388 # CONFIG_HEADER section.
41389 #
41390
41391 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41392 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41393 #
41394 # ac_d sets the value in "#define NAME VALUE" lines.
41395 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41396 ac_dB='[         ].*$,\1#\2'
41397 ac_dC=' '
41398 ac_dD=',;t'
41399 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41400 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41401 ac_uB='$,\1#\2define\3'
41402 ac_uC=' '
41403 ac_uD=',;t'
41404
41405 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41406   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41407   case $ac_file in
41408   - | *:- | *:-:* ) # input from stdin
41409         cat >$tmp/stdin
41410         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41411         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41412   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41413         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41414   * )   ac_file_in=$ac_file.in ;;
41415   esac
41416
41417   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41418 echo "$as_me: creating $ac_file" >&6;}
41419
41420   # First look for the input files in the build tree, otherwise in the
41421   # src tree.
41422   ac_file_inputs=`IFS=:
41423     for f in $ac_file_in; do
41424       case $f in
41425       -) echo $tmp/stdin ;;
41426       [\\/$]*)
41427          # Absolute (can't be DOS-style, as IFS=:)
41428          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41429 echo "$as_me: error: cannot find input file: $f" >&2;}
41430    { (exit 1); exit 1; }; }
41431          # Do quote $f, to prevent DOS paths from being IFS'd.
41432          echo "$f";;
41433       *) # Relative
41434          if test -f "$f"; then
41435            # Build tree
41436            echo "$f"
41437          elif test -f "$srcdir/$f"; then
41438            # Source tree
41439            echo "$srcdir/$f"
41440          else
41441            # /dev/null tree
41442            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41443 echo "$as_me: error: cannot find input file: $f" >&2;}
41444    { (exit 1); exit 1; }; }
41445          fi;;
41446       esac
41447     done` || { (exit 1); exit 1; }
41448   # Remove the trailing spaces.
41449   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41450
41451 _ACEOF
41452
41453 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41454 # `conftest.undefs', that substitutes the proper values into
41455 # config.h.in to produce config.h.  The first handles `#define'
41456 # templates, and the second `#undef' templates.
41457 # And first: Protect against being on the right side of a sed subst in
41458 # config.status.  Protect against being in an unquoted here document
41459 # in config.status.
41460 rm -f conftest.defines conftest.undefs
41461 # Using a here document instead of a string reduces the quoting nightmare.
41462 # Putting comments in sed scripts is not portable.
41463 #
41464 # `end' is used to avoid that the second main sed command (meant for
41465 # 0-ary CPP macros) applies to n-ary macro definitions.
41466 # See the Autoconf documentation for `clear'.
41467 cat >confdef2sed.sed <<\_ACEOF
41468 s/[\\&,]/\\&/g
41469 s,[\\$`],\\&,g
41470 t clear
41471 : clear
41472 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41473 t end
41474 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41475 : end
41476 _ACEOF
41477 # If some macros were called several times there might be several times
41478 # the same #defines, which is useless.  Nevertheless, we may not want to
41479 # sort them, since we want the *last* AC-DEFINE to be honored.
41480 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41481 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41482 rm -f confdef2sed.sed
41483
41484 # This sed command replaces #undef with comments.  This is necessary, for
41485 # example, in the case of _POSIX_SOURCE, which is predefined and required
41486 # on some systems where configure will not decide to define it.
41487 cat >>conftest.undefs <<\_ACEOF
41488 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41489 _ACEOF
41490
41491 # Break up conftest.defines because some shells have a limit on the size
41492 # of here documents, and old seds have small limits too (100 cmds).
41493 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41494 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41495 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41496 echo '  :' >>$CONFIG_STATUS
41497 rm -f conftest.tail
41498 while grep . conftest.defines >/dev/null
41499 do
41500   # Write a limited-size here document to $tmp/defines.sed.
41501   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41502   # Speed up: don't consider the non `#define' lines.
41503   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41504   # Work around the forget-to-reset-the-flag bug.
41505   echo 't clr' >>$CONFIG_STATUS
41506   echo ': clr' >>$CONFIG_STATUS
41507   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41508   echo 'CEOF
41509   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41510   rm -f $tmp/in
41511   mv $tmp/out $tmp/in
41512 ' >>$CONFIG_STATUS
41513   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41514   rm -f conftest.defines
41515   mv conftest.tail conftest.defines
41516 done
41517 rm -f conftest.defines
41518 echo '  fi # grep' >>$CONFIG_STATUS
41519 echo >>$CONFIG_STATUS
41520
41521 # Break up conftest.undefs because some shells have a limit on the size
41522 # of here documents, and old seds have small limits too (100 cmds).
41523 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41524 rm -f conftest.tail
41525 while grep . conftest.undefs >/dev/null
41526 do
41527   # Write a limited-size here document to $tmp/undefs.sed.
41528   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41529   # Speed up: don't consider the non `#undef'
41530   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41531   # Work around the forget-to-reset-the-flag bug.
41532   echo 't clr' >>$CONFIG_STATUS
41533   echo ': clr' >>$CONFIG_STATUS
41534   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41535   echo 'CEOF
41536   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41537   rm -f $tmp/in
41538   mv $tmp/out $tmp/in
41539 ' >>$CONFIG_STATUS
41540   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41541   rm -f conftest.undefs
41542   mv conftest.tail conftest.undefs
41543 done
41544 rm -f conftest.undefs
41545
41546 cat >>$CONFIG_STATUS <<\_ACEOF
41547   # Let's still pretend it is `configure' which instantiates (i.e., don't
41548   # use $as_me), people would be surprised to read:
41549   #    /* config.h.  Generated by config.status.  */
41550   if test x"$ac_file" = x-; then
41551     echo "/* Generated by configure.  */" >$tmp/config.h
41552   else
41553     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41554   fi
41555   cat $tmp/in >>$tmp/config.h
41556   rm -f $tmp/in
41557   if test x"$ac_file" != x-; then
41558     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41559       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41560 echo "$as_me: $ac_file is unchanged" >&6;}
41561     else
41562       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41564          X"$ac_file" : 'X\(//\)[^/]' \| \
41565          X"$ac_file" : 'X\(//\)$' \| \
41566          X"$ac_file" : 'X\(/\)' \| \
41567          .     : '\(.\)' 2>/dev/null ||
41568 echo X"$ac_file" |
41569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41570           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41571           /^X\(\/\/\)$/{ s//\1/; q; }
41572           /^X\(\/\).*/{ s//\1/; q; }
41573           s/.*/./; q'`
41574       { if $as_mkdir_p; then
41575     mkdir -p "$ac_dir"
41576   else
41577     as_dir="$ac_dir"
41578     as_dirs=
41579     while test ! -d "$as_dir"; do
41580       as_dirs="$as_dir $as_dirs"
41581       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41583          X"$as_dir" : 'X\(//\)[^/]' \| \
41584          X"$as_dir" : 'X\(//\)$' \| \
41585          X"$as_dir" : 'X\(/\)' \| \
41586          .     : '\(.\)' 2>/dev/null ||
41587 echo X"$as_dir" |
41588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41589           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41590           /^X\(\/\/\)$/{ s//\1/; q; }
41591           /^X\(\/\).*/{ s//\1/; q; }
41592           s/.*/./; q'`
41593     done
41594     test ! -n "$as_dirs" || mkdir $as_dirs
41595   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41597    { (exit 1); exit 1; }; }; }
41598
41599       rm -f $ac_file
41600       mv $tmp/config.h $ac_file
41601     fi
41602   else
41603     cat $tmp/config.h
41604     rm -f $tmp/config.h
41605   fi
41606 done
41607 _ACEOF
41608 cat >>$CONFIG_STATUS <<\_ACEOF
41609
41610 #
41611 # CONFIG_COMMANDS section.
41612 #
41613 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41614   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41615   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41616   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41617 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41618          X"$ac_dest" : 'X\(//\)[^/]' \| \
41619          X"$ac_dest" : 'X\(//\)$' \| \
41620          X"$ac_dest" : 'X\(/\)' \| \
41621          .     : '\(.\)' 2>/dev/null ||
41622 echo X"$ac_dest" |
41623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41624           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41625           /^X\(\/\/\)$/{ s//\1/; q; }
41626           /^X\(\/\).*/{ s//\1/; q; }
41627           s/.*/./; q'`
41628   { if $as_mkdir_p; then
41629     mkdir -p "$ac_dir"
41630   else
41631     as_dir="$ac_dir"
41632     as_dirs=
41633     while test ! -d "$as_dir"; do
41634       as_dirs="$as_dir $as_dirs"
41635       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41637          X"$as_dir" : 'X\(//\)[^/]' \| \
41638          X"$as_dir" : 'X\(//\)$' \| \
41639          X"$as_dir" : 'X\(/\)' \| \
41640          .     : '\(.\)' 2>/dev/null ||
41641 echo X"$as_dir" |
41642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41644           /^X\(\/\/\)$/{ s//\1/; q; }
41645           /^X\(\/\).*/{ s//\1/; q; }
41646           s/.*/./; q'`
41647     done
41648     test ! -n "$as_dirs" || mkdir $as_dirs
41649   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41651    { (exit 1); exit 1; }; }; }
41652
41653   ac_builddir=.
41654
41655 if test "$ac_dir" != .; then
41656   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41657   # A "../" for each directory in $ac_dir_suffix.
41658   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41659 else
41660   ac_dir_suffix= ac_top_builddir=
41661 fi
41662
41663 case $srcdir in
41664   .)  # No --srcdir option.  We are building in place.
41665     ac_srcdir=.
41666     if test -z "$ac_top_builddir"; then
41667        ac_top_srcdir=.
41668     else
41669        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41670     fi ;;
41671   [\\/]* | ?:[\\/]* )  # Absolute path.
41672     ac_srcdir=$srcdir$ac_dir_suffix;
41673     ac_top_srcdir=$srcdir ;;
41674   *) # Relative path.
41675     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41676     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41677 esac
41678
41679 # Do not use `cd foo && pwd` to compute absolute paths, because
41680 # the directories may not exist.
41681 case `pwd` in
41682 .) ac_abs_builddir="$ac_dir";;
41683 *)
41684   case "$ac_dir" in
41685   .) ac_abs_builddir=`pwd`;;
41686   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41687   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41688   esac;;
41689 esac
41690 case $ac_abs_builddir in
41691 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41692 *)
41693   case ${ac_top_builddir}. in
41694   .) ac_abs_top_builddir=$ac_abs_builddir;;
41695   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41696   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41697   esac;;
41698 esac
41699 case $ac_abs_builddir in
41700 .) ac_abs_srcdir=$ac_srcdir;;
41701 *)
41702   case $ac_srcdir in
41703   .) ac_abs_srcdir=$ac_abs_builddir;;
41704   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41705   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41706   esac;;
41707 esac
41708 case $ac_abs_builddir in
41709 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41710 *)
41711   case $ac_top_srcdir in
41712   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41713   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41714   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41715   esac;;
41716 esac
41717
41718
41719   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41720 echo "$as_me: executing $ac_dest commands" >&6;}
41721   case $ac_dest in
41722     default )
41723                                                                                                 if test ! -h wx-config; then
41724                 chmod +x wx-config
41725                 mv wx-config wx${TOOLCHAIN_NAME}-config
41726                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
41727             fi
41728
41729             if test ! -d lib; then
41730               mkdir lib
41731             fi
41732             if test ! -d lib/wx; then
41733               mkdir lib/wx
41734             fi
41735             if test ! -d lib/wx/include; then
41736               mkdir lib/wx/include
41737             fi
41738             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41739               mkdir lib/wx/include/${TOOLCHAIN_NAME}
41740             fi
41741             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41742               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
41743             fi
41744             if test -f setup.h; then
41745               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
41746             fi
41747            ;;
41748   esac
41749 done
41750 _ACEOF
41751
41752 cat >>$CONFIG_STATUS <<\_ACEOF
41753
41754 { (exit 0); exit 0; }
41755 _ACEOF
41756 chmod +x $CONFIG_STATUS
41757 ac_clean_files=$ac_clean_files_save
41758
41759
41760 # configure is writing to config.log, and then calls config.status.
41761 # config.status does its own redirection, appending to config.log.
41762 # Unfortunately, on DOS this fails, as config.log is still kept open
41763 # by configure, so config.status won't be able to write to it; its
41764 # output is simply discarded.  So we exec the FD to /dev/null,
41765 # effectively closing config.log, so it can be properly (re)opened and
41766 # appended to by config.status.  When coming back to configure, we
41767 # need to make the FD available again.
41768 if test "$no_create" != yes; then
41769   ac_cs_success=:
41770   ac_config_status_args=
41771   test "$silent" = yes &&
41772     ac_config_status_args="$ac_config_status_args --quiet"
41773   exec 5>/dev/null
41774   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41775   exec 5>>config.log
41776   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41777   # would make configure fail if this is the last instruction.
41778   $ac_cs_success || { (exit 1); exit 1; }
41779 fi
41780
41781 #
41782 # CONFIG_SUBDIRS section.
41783 #
41784 if test "$no_recursion" != yes; then
41785
41786   # Remove --cache-file and --srcdir arguments so they do not pile up.
41787   ac_sub_configure_args=
41788   ac_prev=
41789   for ac_arg in $ac_configure_args; do
41790     if test -n "$ac_prev"; then
41791       ac_prev=
41792       continue
41793     fi
41794     case $ac_arg in
41795     -cache-file | --cache-file | --cache-fil | --cache-fi \
41796     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41797       ac_prev=cache_file ;;
41798     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41799     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41800     | --c=*)
41801       ;;
41802     --config-cache | -C)
41803       ;;
41804     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41805       ac_prev=srcdir ;;
41806     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41807       ;;
41808     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41809       ac_prev=prefix ;;
41810     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41811       ;;
41812     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41813     esac
41814   done
41815
41816   # Always prepend --prefix to ensure using the same prefix
41817   # in subdir configurations.
41818   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41819
41820   ac_popdir=`pwd`
41821   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41822
41823     # Do not complain, so a configure script can configure whichever
41824     # parts of a large source tree are present.
41825     test -d $srcdir/$ac_dir || continue
41826
41827     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41828 echo "$as_me: configuring in $ac_dir" >&6;}
41829     { if $as_mkdir_p; then
41830     mkdir -p "$ac_dir"
41831   else
41832     as_dir="$ac_dir"
41833     as_dirs=
41834     while test ! -d "$as_dir"; do
41835       as_dirs="$as_dir $as_dirs"
41836       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41838          X"$as_dir" : 'X\(//\)[^/]' \| \
41839          X"$as_dir" : 'X\(//\)$' \| \
41840          X"$as_dir" : 'X\(/\)' \| \
41841          .     : '\(.\)' 2>/dev/null ||
41842 echo X"$as_dir" |
41843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41844           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41845           /^X\(\/\/\)$/{ s//\1/; q; }
41846           /^X\(\/\).*/{ s//\1/; q; }
41847           s/.*/./; q'`
41848     done
41849     test ! -n "$as_dirs" || mkdir $as_dirs
41850   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41852    { (exit 1); exit 1; }; }; }
41853
41854     ac_builddir=.
41855
41856 if test "$ac_dir" != .; then
41857   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41858   # A "../" for each directory in $ac_dir_suffix.
41859   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41860 else
41861   ac_dir_suffix= ac_top_builddir=
41862 fi
41863
41864 case $srcdir in
41865   .)  # No --srcdir option.  We are building in place.
41866     ac_srcdir=.
41867     if test -z "$ac_top_builddir"; then
41868        ac_top_srcdir=.
41869     else
41870        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41871     fi ;;
41872   [\\/]* | ?:[\\/]* )  # Absolute path.
41873     ac_srcdir=$srcdir$ac_dir_suffix;
41874     ac_top_srcdir=$srcdir ;;
41875   *) # Relative path.
41876     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41877     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41878 esac
41879
41880 # Do not use `cd foo && pwd` to compute absolute paths, because
41881 # the directories may not exist.
41882 case `pwd` in
41883 .) ac_abs_builddir="$ac_dir";;
41884 *)
41885   case "$ac_dir" in
41886   .) ac_abs_builddir=`pwd`;;
41887   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41888   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41889   esac;;
41890 esac
41891 case $ac_abs_builddir in
41892 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41893 *)
41894   case ${ac_top_builddir}. in
41895   .) ac_abs_top_builddir=$ac_abs_builddir;;
41896   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41897   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41898   esac;;
41899 esac
41900 case $ac_abs_builddir in
41901 .) ac_abs_srcdir=$ac_srcdir;;
41902 *)
41903   case $ac_srcdir in
41904   .) ac_abs_srcdir=$ac_abs_builddir;;
41905   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41906   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41907   esac;;
41908 esac
41909 case $ac_abs_builddir in
41910 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41911 *)
41912   case $ac_top_srcdir in
41913   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41914   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41915   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41916   esac;;
41917 esac
41918
41919
41920     cd $ac_dir
41921
41922     # Check for guested configure; otherwise get Cygnus style configure.
41923     if test -f $ac_srcdir/configure.gnu; then
41924       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41925     elif test -f $ac_srcdir/configure; then
41926       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41927     elif test -f $ac_srcdir/configure.in; then
41928       ac_sub_configure=$ac_configure
41929     else
41930       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41931 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41932       ac_sub_configure=
41933     fi
41934
41935     # The recursion is here.
41936     if test -n "$ac_sub_configure"; then
41937       # Make the cache file name correct relative to the subdirectory.
41938       case $cache_file in
41939       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41940       *) # Relative path.
41941         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
41942       esac
41943
41944       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41945 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41946       # The eval makes quoting arguments work.
41947       eval $ac_sub_configure $ac_sub_configure_args \
41948            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41949         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
41950 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41951    { (exit 1); exit 1; }; }
41952     fi
41953
41954     cd $ac_popdir
41955   done
41956 fi
41957
41958
41959 echo
41960 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41961 echo ""
41962 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT_LOWERCASE:-base only}"
41963 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
41964
41965 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
41966 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
41967 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
41968
41969 echo "  What level of wxWindows compatibility should be enabled?"
41970 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
41971 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
41972
41973 echo "  Which libraries should wxWindows use?"
41974 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
41975 echo "                                       png                ${wxUSE_LIBPNG-none}"
41976 echo "                                       regex              ${wxUSE_REGEX}"
41977 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
41978 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41979 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
41980 fi
41981 echo "                                       zlib               ${wxUSE_ZLIB}"
41982 echo "                                       odbc               ${wxUSE_ODBC}"
41983 echo "                                       expat              ${wxUSE_EXPAT}"
41984 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
41985 echo "                                       sdl                ${wxUSE_LIBSDL}"
41986
41987 echo ""
41988