]> git.saurik.com Git - wxWidgets.git/blob - configure
Generate pywrap as a console tool.
[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 DLLIMP_SUFFIX LIBPREFIX LIBEXT 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 --enable-omf use OMF object format (OS/2)
1039 --disable-precomp-headers don't use precompiled headers even if compiler can
1040
1041 Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gtk use GTK+
1045 --with-motif use Motif/Lesstif
1046 --with-mac use Mac OS X
1047 --with-cocoa use Cocoa
1048 --with-wine use Wine
1049 --with-msw use MS-Windows
1050 --with-pm use OS/2 Presentation Manager
1051 --with-mgl use SciTech MGL
1052 --with-microwin use MicroWindows
1053 --with-x11 use X11
1054 --with-libpng use libpng (PNG image format)
1055 --with-libjpeg use libjpeg (JPEG file format)
1056 --with-libtiff use libtiff (TIFF file format)
1057 --with-libxpm use libxpm (XPM file format)
1058 --with-libmspack use libmspack (CHM help files loading)
1059 --with-sdl use SDL for audio on Unix
1060 --with-opengl use OpenGL (or Mesa)
1061 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1062 --with-regex enable support for wxRegEx class
1063 --with-zlib use zlib for LZW compression
1064 --with-odbc use the IODBC and wxODBC classes
1065 --with-expat enable XML support using expat parser
1066 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1067 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1068 --with-x use the X Window System
1069 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1070 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1071 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1072 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1073 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1074
1075 Some influential environment variables:
1076 CC C compiler command
1077 CFLAGS C compiler flags
1078 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1079 nonstandard directory <lib dir>
1080 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1081 headers in a nonstandard directory <include dir>
1082 CPP C preprocessor
1083 CXX C++ compiler command
1084 CXXFLAGS C++ compiler flags
1085 CXXCPP C++ preprocessor
1086
1087 Use these variables to override the choices made by `configure' or to help
1088 it to find libraries and programs with nonstandard names/locations.
1089
1090 Report bugs to <wx-dev@lists.wxwindows.org>.
1091 _ACEOF
1092 fi
1093
1094 if test "$ac_init_help" = "recursive"; then
1095 # If there are subdirs, report their specific --help.
1096 ac_popdir=`pwd`
1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098 test -d $ac_dir || continue
1099 ac_builddir=.
1100
1101 if test "$ac_dir" != .; then
1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103 # A "../" for each directory in $ac_dir_suffix.
1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105 else
1106 ac_dir_suffix= ac_top_builddir=
1107 fi
1108
1109 case $srcdir in
1110 .) # No --srcdir option. We are building in place.
1111 ac_srcdir=.
1112 if test -z "$ac_top_builddir"; then
1113 ac_top_srcdir=.
1114 else
1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116 fi ;;
1117 [\\/]* | ?:[\\/]* ) # Absolute path.
1118 ac_srcdir=$srcdir$ac_dir_suffix;
1119 ac_top_srcdir=$srcdir ;;
1120 *) # Relative path.
1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123 esac
1124
1125 # Do not use `cd foo && pwd` to compute absolute paths, because
1126 # the directories may not exist.
1127 case `pwd` in
1128 .) ac_abs_builddir="$ac_dir";;
1129 *)
1130 case "$ac_dir" in
1131 .) ac_abs_builddir=`pwd`;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134 esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *)
1139 case ${ac_top_builddir}. in
1140 .) ac_abs_top_builddir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143 esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_srcdir=$ac_srcdir;;
1147 *)
1148 case $ac_srcdir in
1149 .) ac_abs_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152 esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *)
1157 case $ac_top_srcdir in
1158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161 esac;;
1162 esac
1163
1164 cd $ac_dir
1165 # Check for guested configure; otherwise get Cygnus style configure.
1166 if test -f $ac_srcdir/configure.gnu; then
1167 echo
1168 $SHELL $ac_srcdir/configure.gnu --help=recursive
1169 elif test -f $ac_srcdir/configure; then
1170 echo
1171 $SHELL $ac_srcdir/configure --help=recursive
1172 elif test -f $ac_srcdir/configure.ac ||
1173 test -f $ac_srcdir/configure.in; then
1174 echo
1175 $ac_configure --help
1176 else
1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 fi
1179 cd $ac_popdir
1180 done
1181 fi
1182
1183 test -n "$ac_init_help" && exit 0
1184 if $ac_init_version; then
1185 cat <<\_ACEOF
1186 wxWindows configure 2.5.1
1187 generated by GNU Autoconf 2.59
1188
1189 Copyright (C) 2003 Free Software Foundation, Inc.
1190 This configure script is free software; the Free Software Foundation
1191 gives unlimited permission to copy, distribute and modify it.
1192 _ACEOF
1193 exit 0
1194 fi
1195 exec 5>config.log
1196 cat >&5 <<_ACEOF
1197 This file contains any messages produced by compilers while
1198 running configure, to aid debugging if configure makes a mistake.
1199
1200 It was created by wxWindows $as_me 2.5.1, which was
1201 generated by GNU Autoconf 2.59. Invocation command line was
1202
1203 $ $0 $@
1204
1205 _ACEOF
1206 {
1207 cat <<_ASUNAME
1208 ## --------- ##
1209 ## Platform. ##
1210 ## --------- ##
1211
1212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217
1218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220
1221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228
1229 _ASUNAME
1230
1231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 for as_dir in $PATH
1233 do
1234 IFS=$as_save_IFS
1235 test -z "$as_dir" && as_dir=.
1236 echo "PATH: $as_dir"
1237 done
1238
1239 } >&5
1240
1241 cat >&5 <<_ACEOF
1242
1243
1244 ## ----------- ##
1245 ## Core tests. ##
1246 ## ----------- ##
1247
1248 _ACEOF
1249
1250
1251 # Keep a trace of the command line.
1252 # Strip out --no-create and --no-recursion so they do not pile up.
1253 # Strip out --silent because we don't want to record it for future runs.
1254 # Also quote any args containing shell meta-characters.
1255 # Make two passes to allow for proper duplicate-argument suppression.
1256 ac_configure_args=
1257 ac_configure_args0=
1258 ac_configure_args1=
1259 ac_sep=
1260 ac_must_keep_next=false
1261 for ac_pass in 1 2
1262 do
1263 for ac_arg
1264 do
1265 case $ac_arg in
1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 continue ;;
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 esac
1273 case $ac_pass in
1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 2)
1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277 if test $ac_must_keep_next = true; then
1278 ac_must_keep_next=false # Got value, back to normal.
1279 else
1280 case $ac_arg in
1281 *=* | --config-cache | -C | -disable-* | --disable-* \
1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284 | -with-* | --with-* | -without-* | --without-* | --x)
1285 case "$ac_configure_args0 " in
1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287 esac
1288 ;;
1289 -* ) ac_must_keep_next=true ;;
1290 esac
1291 fi
1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293 # Get rid of the leading space.
1294 ac_sep=" "
1295 ;;
1296 esac
1297 done
1298 done
1299 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301
1302 # When interrupted or exit'd, cleanup temporary files, and complete
1303 # config.log. We remove comments because anyway the quotes in there
1304 # would cause problems or look ugly.
1305 # WARNING: Be sure not to use single quotes in there, as some shells,
1306 # such as our DU 5.0 friend, will then `close' the trap.
1307 trap 'exit_status=$?
1308 # Save into config.log some information that might help in debugging.
1309 {
1310 echo
1311
1312 cat <<\_ASBOX
1313 ## ---------------- ##
1314 ## Cache variables. ##
1315 ## ---------------- ##
1316 _ASBOX
1317 echo
1318 # The following way of writing the cache mishandles newlines in values,
1319 {
1320 (set) 2>&1 |
1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322 *ac_space=\ *)
1323 sed -n \
1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 ;;
1327 *)
1328 sed -n \
1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 ;;
1331 esac;
1332 }
1333 echo
1334
1335 cat <<\_ASBOX
1336 ## ----------------- ##
1337 ## Output variables. ##
1338 ## ----------------- ##
1339 _ASBOX
1340 echo
1341 for ac_var in $ac_subst_vars
1342 do
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1345 done | sort
1346 echo
1347
1348 if test -n "$ac_subst_files"; then
1349 cat <<\_ASBOX
1350 ## ------------- ##
1351 ## Output files. ##
1352 ## ------------- ##
1353 _ASBOX
1354 echo
1355 for ac_var in $ac_subst_files
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361 fi
1362
1363 if test -s confdefs.h; then
1364 cat <<\_ASBOX
1365 ## ----------- ##
1366 ## confdefs.h. ##
1367 ## ----------- ##
1368 _ASBOX
1369 echo
1370 sed "/^$/d" confdefs.h | sort
1371 echo
1372 fi
1373 test "$ac_signal" != 0 &&
1374 echo "$as_me: caught signal $ac_signal"
1375 echo "$as_me: exit $exit_status"
1376 } >&5
1377 rm -f core *.core &&
1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379 exit $exit_status
1380 ' 0
1381 for ac_signal in 1 2 13 15; do
1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 done
1384 ac_signal=0
1385
1386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1387 rm -rf conftest* confdefs.h
1388 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389 echo >confdefs.h
1390
1391 # Predefined preprocessor variables.
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 _ACEOF
1416
1417
1418 # Let the site file select an alternate cache file if it wants to.
1419 # Prefer explicitly selected file to automatically selected ones.
1420 if test -z "$CONFIG_SITE"; then
1421 if test "x$prefix" != xNONE; then
1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423 else
1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1425 fi
1426 fi
1427 for ac_site_file in $CONFIG_SITE; do
1428 if test -r "$ac_site_file"; then
1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430 echo "$as_me: loading site script $ac_site_file" >&6;}
1431 sed 's/^/| /' "$ac_site_file" >&5
1432 . "$ac_site_file"
1433 fi
1434 done
1435
1436 if test -r "$cache_file"; then
1437 # Some versions of bash will fail to source /dev/null (special
1438 # files actually), so we avoid doing that.
1439 if test -f "$cache_file"; then
1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441 echo "$as_me: loading cache $cache_file" >&6;}
1442 case $cache_file in
1443 [\\/]* | ?:[\\/]* ) . $cache_file;;
1444 *) . ./$cache_file;;
1445 esac
1446 fi
1447 else
1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449 echo "$as_me: creating cache $cache_file" >&6;}
1450 >$cache_file
1451 fi
1452
1453 # Check that the precious variables saved in the cache have kept the same
1454 # value.
1455 ac_cache_corrupted=false
1456 for ac_var in `(set) 2>&1 |
1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459 eval ac_new_set=\$ac_env_${ac_var}_set
1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461 eval ac_new_val="\$ac_env_${ac_var}_value"
1462 case $ac_old_set,$ac_new_set in
1463 set,)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,set)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,);;
1472 *)
1473 if test "x$ac_old_val" != "x$ac_new_val"; then
1474 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1475 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1476 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1477 echo "$as_me: former value: $ac_old_val" >&2;}
1478 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1479 echo "$as_me: current value: $ac_new_val" >&2;}
1480 ac_cache_corrupted=:
1481 fi;;
1482 esac
1483 # Pass precious variables to config.status.
1484 if test "$ac_new_set" = set; then
1485 case $ac_new_val in
1486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1487 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 *) ac_arg=$ac_var=$ac_new_val ;;
1489 esac
1490 case " $ac_configure_args " in
1491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1492 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 esac
1494 fi
1495 done
1496 if $ac_cache_corrupted; then
1497 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1498 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1499 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1500 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1501 { (exit 1); exit 1; }; }
1502 fi
1503
1504 ac_ext=c
1505 ac_cpp='$CPP $CPPFLAGS'
1506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1539 ac_aux_dir=
1540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break
1545 elif test -f $ac_dir/install.sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install.sh -c"
1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
1553 fi
1554 done
1555 if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558 { (exit 1); exit 1; }; }
1559 fi
1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564 # Make sure we can run config.sub.
1565 $ac_config_sub sun4 >/dev/null 2>&1 ||
1566 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1567 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1568 { (exit 1); exit 1; }; }
1569
1570 echo "$as_me:$LINENO: checking build system type" >&5
1571 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1572 if test "${ac_cv_build+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 ac_cv_build_alias=$build_alias
1576 test -z "$ac_cv_build_alias" &&
1577 ac_cv_build_alias=`$ac_config_guess`
1578 test -z "$ac_cv_build_alias" &&
1579 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1580 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1581 { (exit 1); exit 1; }; }
1582 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587 fi
1588 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1589 echo "${ECHO_T}$ac_cv_build" >&6
1590 build=$ac_cv_build
1591 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596 echo "$as_me:$LINENO: checking host system type" >&5
1597 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1598 if test "${ac_cv_host+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 ac_cv_host_alias=$host_alias
1602 test -z "$ac_cv_host_alias" &&
1603 ac_cv_host_alias=$ac_cv_build_alias
1604 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1606 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609 fi
1610 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1611 echo "${ECHO_T}$ac_cv_host" >&6
1612 host=$ac_cv_host
1613 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618 echo "$as_me:$LINENO: checking target system type" >&5
1619 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1620 if test "${ac_cv_target+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 ac_cv_target_alias=$target_alias
1624 test "x$ac_cv_target_alias" = "x" &&
1625 ac_cv_target_alias=$ac_cv_host_alias
1626 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1633 echo "${ECHO_T}$ac_cv_target" >&6
1634 target=$ac_cv_target
1635 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 # The aliases save the names the user supplied, while $host etc.
1641 # will get canonicalized.
1642 test -n "$target_alias" &&
1643 test "$program_prefix$program_suffix$program_transform_name" = \
1644 NONENONEs,x,x, &&
1645 program_prefix=${target_alias}-
1646
1647
1648
1649 WX_MAJOR_VERSION_NUMBER=2
1650 WX_MINOR_VERSION_NUMBER=5
1651 WX_RELEASE_NUMBER=1
1652
1653 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1654 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1655
1656 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1657
1658 WX_CURRENT=1
1659 WX_REVISION=0
1660 WX_AGE=0
1661
1662
1663
1664 USE_UNIX=1
1665 USE_OS2=0
1666 USE_WIN32=0
1667 USE_DOS=0
1668 USE_BEOS=0
1669 USE_MAC=0
1670
1671 USE_AIX=
1672 USE_BSD= USE_DARWIN= USE_FREEBSD=
1673 USE_GNU= USE_HPUX=
1674 USE_LINUX=
1675 USE_NETBSD=
1676 USE_OPENBSD=
1677 USE_OSF= USE_SGI=
1678 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1679 USE_ULTRIX=
1680 USE_UNIXWARE=
1681
1682 USE_ALPHA=
1683
1684 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1685
1686 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1687
1688 DEFAULT_wxUSE_COCOA=0
1689 DEFAULT_wxUSE_GTK=0
1690 DEFAULT_wxUSE_MAC=0
1691 DEFAULT_wxUSE_MGL=0
1692 DEFAULT_wxUSE_MICROWIN=0
1693 DEFAULT_wxUSE_MOTIF=0
1694 DEFAULT_wxUSE_MSW=0
1695 DEFAULT_wxUSE_PM=0
1696 DEFAULT_wxUSE_X11=0
1697
1698 DEFAULT_DEFAULT_wxUSE_COCOA=0
1699 DEFAULT_DEFAULT_wxUSE_GTK=0
1700 DEFAULT_DEFAULT_wxUSE_MAC=0
1701 DEFAULT_DEFAULT_wxUSE_MGL=0
1702 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1703 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1704 DEFAULT_DEFAULT_wxUSE_MSW=0
1705 DEFAULT_DEFAULT_wxUSE_PM=0
1706 DEFAULT_DEFAULT_wxUSE_X11=0
1707
1708 PROGRAM_EXT=
1709 SO_SUFFIX=so
1710 SAMPLES_RPATH_FLAG=
1711 SAMPLES_RPATH_POSTLINK=
1712
1713 case "${host}" in
1714 *-hp-hpux* )
1715 USE_HPUX=1
1716 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1717 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1718 SO_SUFFIX=sl
1719 cat >>confdefs.h <<\_ACEOF
1720 #define __HPUX__ 1
1721 _ACEOF
1722
1723 ;;
1724 *-*-linux* )
1725 USE_LINUX=1
1726 cat >>confdefs.h <<\_ACEOF
1727 #define __LINUX__ 1
1728 _ACEOF
1729
1730 TMP=`uname -m`
1731 if test "x$TMP" = "xalpha"; then
1732 USE_ALPHA=1
1733 cat >>confdefs.h <<\_ACEOF
1734 #define __ALPHA__ 1
1735 _ACEOF
1736
1737 fi
1738 DEFAULT_DEFAULT_wxUSE_GTK=1
1739 ;;
1740 *-*-gnu* | *-*-k*bsd*-gnu )
1741 USE_GNU=1
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746 #define __ALPHA__ 1
1747 _ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-irix5* | *-*-irix6* )
1753 USE_SGI=1
1754 USE_SVR4=1
1755 cat >>confdefs.h <<\_ACEOF
1756 #define __SGI__ 1
1757 _ACEOF
1758
1759 cat >>confdefs.h <<\_ACEOF
1760 #define __SVR4__ 1
1761 _ACEOF
1762
1763 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1764 ;;
1765 *-*-solaris2* )
1766 USE_SUN=1
1767 USE_SOLARIS=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770 #define __SUN__ 1
1771 _ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774 #define __SOLARIS__ 1
1775 _ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778 #define __SVR4__ 1
1779 _ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1783 ;;
1784 *-*-sunos4* )
1785 USE_SUN=1
1786 USE_SUNOS=1
1787 USE_BSD=1
1788 cat >>confdefs.h <<\_ACEOF
1789 #define __SUN__ 1
1790 _ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793 #define __SUNOS__ 1
1794 _ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797 #define __BSD__ 1
1798 _ACEOF
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 ;;
1802 *-*-freebsd*)
1803 USE_BSD=1
1804 USE_FREEBSD=1
1805 cat >>confdefs.h <<\_ACEOF
1806 #define __FREEBSD__ 1
1807 _ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810 #define __BSD__ 1
1811 _ACEOF
1812
1813 DEFAULT_DEFAULT_wxUSE_GTK=1
1814 ;;
1815 *-*-openbsd*)
1816 USE_BSD=1
1817 USE_OPENBSD=1
1818 cat >>confdefs.h <<\_ACEOF
1819 #define __OPENBSD__ 1
1820 _ACEOF
1821
1822 cat >>confdefs.h <<\_ACEOF
1823 #define __BSD__ 1
1824 _ACEOF
1825
1826 DEFAULT_DEFAULT_wxUSE_GTK=1
1827 ;;
1828 *-*-netbsd*)
1829 USE_BSD=1
1830 USE_NETBSD=1
1831 cat >>confdefs.h <<\_ACEOF
1832 #define __NETBSD__ 1
1833 _ACEOF
1834
1835 cat >>confdefs.h <<\_ACEOF
1836 #define __BSD__ 1
1837 _ACEOF
1838
1839 DEFAULT_DEFAULT_wxUSE_GTK=1
1840 ;;
1841 *-*-osf* )
1842 USE_ALPHA=1
1843 USE_OSF=1
1844 cat >>confdefs.h <<\_ACEOF
1845 #define __ALPHA__ 1
1846 _ACEOF
1847
1848 cat >>confdefs.h <<\_ACEOF
1849 #define __OSF__ 1
1850 _ACEOF
1851
1852 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1853 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1854 ;;
1855 *-*-dgux5* )
1856 USE_ALPHA=1
1857 USE_SVR4=1
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __ALPHA__ 1
1860 _ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863 #define __SVR4__ 1
1864 _ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 ;;
1868 *-*-sysv5* )
1869 USE_SYSV=1
1870 USE_SVR4=1
1871 cat >>confdefs.h <<\_ACEOF
1872 #define __SYSV__ 1
1873 _ACEOF
1874
1875 cat >>confdefs.h <<\_ACEOF
1876 #define __SVR4__ 1
1877 _ACEOF
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 ;;
1881 *-*-aix* )
1882 USE_AIX=1
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 SO_SUFFIX=a
1886 cat >>confdefs.h <<\_ACEOF
1887 #define __AIX__ 1
1888 _ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891 #define __SYSV__ 1
1892 _ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895 #define __SVR4__ 1
1896 _ACEOF
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900
1901 *-*-*UnixWare*)
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 USE_UNIXWARE=1
1905 cat >>confdefs.h <<\_ACEOF
1906 #define __UNIXWARE__ 1
1907 _ACEOF
1908
1909 ;;
1910
1911 *-*-cygwin* | *-*-mingw32* )
1912 SO_SUFFIX=dll
1913 PROGRAM_EXT=".exe"
1914 RESCOMP=windres
1915 DEFAULT_DEFAULT_wxUSE_MSW=1
1916 ;;
1917
1918 *-pc-msdosdjgpp )
1919 USE_UNIX=0
1920 USE_DOS=1
1921 cat >>confdefs.h <<\_ACEOF
1922 #define __DOS__ 1
1923 _ACEOF
1924
1925 PROGRAM_EXT=".exe"
1926 DEFAULT_DEFAULT_wxUSE_MGL=1
1927 LIBS="$LIBS -lstdc++"
1928 ;;
1929
1930 *-pc-os2_emx | *-pc-os2-emx )
1931 cat >>confdefs.h <<\_ACEOF
1932 #define __EMX__ 1
1933 _ACEOF
1934
1935 USE_OS2=1
1936 cat >>confdefs.h <<\_ACEOF
1937 #define __OS2__ 1
1938 _ACEOF
1939
1940 PROGRAM_EXT=".exe"
1941 DEFAULT_DEFAULT_wxUSE_PM=1
1942 CXX=gcc
1943 LDFLAGS="$LDFLAGS -Zcrtdll"
1944 ac_executable_extensions=".exe"
1945 export ac_executable_extensions
1946 ac_save_IFS="$IFS"
1947 IFS='\\'
1948 ac_TEMP_PATH=
1949 for ac_dir in $PATH; do
1950 IFS=$ac_save_IFS
1951 if test -z "$ac_TEMP_PATH"; then
1952 ac_TEMP_PATH="$ac_dir"
1953 else
1954 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1955 fi
1956 done
1957 export PATH="$ac_TEMP_PATH"
1958 unset ac_TEMP_PATH
1959 ;;
1960
1961 powerpc-*-darwin* )
1962 USE_BSD=1
1963 USE_DARWIN=1
1964 SO_SUFFIX=dylib
1965 cat >>confdefs.h <<\_ACEOF
1966 #define __BSD__ 1
1967 _ACEOF
1968
1969 cat >>confdefs.h <<\_ACEOF
1970 #define __DARWIN__ 1
1971 _ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974 #define __POWERPC__ 1
1975 _ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978 #define TARGET_CARBON 1
1979 _ACEOF
1980
1981 DEFAULT_DEFAULT_wxUSE_MAC=1
1982 ;;
1983
1984 *-*-beos* )
1985 USE_BEOS=1
1986 cat >>confdefs.h <<\_ACEOF
1987 #define __BEOS__ 1
1988 _ACEOF
1989
1990 ;;
1991
1992 *)
1993 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1994 echo "$as_me: error: unknown system type ${host}." >&2;}
1995 { (exit 1); exit 1; }; }
1996 esac
1997
1998
1999
2000
2001 wx_arg_cache_file="configarg.cache"
2002 echo "loading argument cache $wx_arg_cache_file"
2003 rm -f ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}
2006
2007
2008 DEBUG_CONFIGURE=0
2009 if test $DEBUG_CONFIGURE = 1; then
2010 DEFAULT_wxUSE_UNIVERSAL=no
2011 DEFAULT_wxUSE_STL=no
2012
2013 DEFAULT_wxUSE_NANOX=no
2014
2015 DEFAULT_wxUSE_THREADS=yes
2016
2017 DEFAULT_wxUSE_SHARED=yes
2018 DEFAULT_wxUSE_OPTIMISE=no
2019 DEFAULT_wxUSE_PROFILE=no
2020 DEFAULT_wxUSE_NO_DEPS=no
2021 DEFAULT_wxUSE_NO_RTTI=no
2022 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2023 DEFAULT_wxUSE_PERMISSIVE=no
2024 DEFAULT_wxUSE_DEBUG_FLAG=yes
2025 DEFAULT_wxUSE_DEBUG_INFO=yes
2026 DEFAULT_wxUSE_DEBUG_GDB=yes
2027 DEFAULT_wxUSE_MEM_TRACING=no
2028 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2029 DEFAULT_wxUSE_DMALLOC=no
2030 DEFAULT_wxUSE_APPLE_IEEE=no
2031
2032 DEFAULT_wxUSE_EXCEPTIONS=no
2033 DEFAULT_wxUSE_LOG=yes
2034 DEFAULT_wxUSE_LOGWINDOW=no
2035 DEFAULT_wxUSE_LOGGUI=no
2036 DEFAULT_wxUSE_LOGDIALOG=no
2037
2038 DEFAULT_wxUSE_GUI=yes
2039 DEFAULT_wxUSE_CONTROLS=no
2040
2041 DEFAULT_wxUSE_REGEX=no
2042 DEFAULT_wxUSE_XML=no
2043 DEFAULT_wxUSE_EXPAT=no
2044 DEFAULT_wxUSE_ZLIB=no
2045 DEFAULT_wxUSE_LIBPNG=no
2046 DEFAULT_wxUSE_LIBJPEG=no
2047 DEFAULT_wxUSE_LIBTIFF=no
2048 DEFAULT_wxUSE_LIBXPM=no
2049 DEFAULT_wxUSE_LIBMSPACK=no
2050 DEFAULT_wxUSE_LIBSDL=no
2051 DEFAULT_wxUSE_ODBC=no
2052 DEFAULT_wxUSE_OPENGL=no
2053
2054 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2055 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2056 DEFAULT_wxUSE_STD_IOSTREAM=no
2057 DEFAULT_wxUSE_CMDLINE_PARSER=no
2058 DEFAULT_wxUSE_DATETIME=no
2059 DEFAULT_wxUSE_TIMER=no
2060 DEFAULT_wxUSE_STOPWATCH=no
2061 DEFAULT_wxUSE_FILE=no
2062 DEFAULT_wxUSE_FFILE=no
2063 DEFAULT_wxUSE_TEXTBUFFER=no
2064 DEFAULT_wxUSE_TEXTFILE=no
2065 DEFAULT_wxUSE_SOUND=no
2066 DEFAULT_wxUSE_INTL=no
2067 DEFAULT_wxUSE_CONFIG=no
2068 DEFAULT_wxUSE_FONTMAP=no
2069 DEFAULT_wxUSE_STREAMS=no
2070 DEFAULT_wxUSE_SOCKETS=no
2071 DEFAULT_wxUSE_OLE=no
2072 DEFAULT_wxUSE_DATAOBJ=no
2073 DEFAULT_wxUSE_DIALUP_MANAGER=no
2074 DEFAULT_wxUSE_JOYSTICK=no
2075 DEFAULT_wxUSE_DYNLIB_CLASS=no
2076 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2077 DEFAULT_wxUSE_LONGLONG=no
2078 DEFAULT_wxUSE_GEOMETRY=no
2079
2080 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2081 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2082 DEFAULT_wxUSE_POSTSCRIPT=no
2083
2084 DEFAULT_wxUSE_CLIPBOARD=no
2085 DEFAULT_wxUSE_TOOLTIPS=no
2086 DEFAULT_wxUSE_DRAG_AND_DROP=no
2087 DEFAULT_wxUSE_DRAGIMAGE=no
2088 DEFAULT_wxUSE_SPLINES=no
2089
2090 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2091 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2092 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2093
2094 DEFAULT_wxUSE_RESOURCES=no
2095 DEFAULT_wxUSE_CONSTRAINTS=no
2096 DEFAULT_wxUSE_IPC=no
2097 DEFAULT_wxUSE_HELP=no
2098 DEFAULT_wxUSE_MS_HTML_HELP=no
2099 DEFAULT_wxUSE_WXHTML_HELP=no
2100 DEFAULT_wxUSE_TREELAYOUT=no
2101 DEFAULT_wxUSE_METAFILE=no
2102 DEFAULT_wxUSE_MIMETYPE=no
2103 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2104 DEFAULT_wxUSE_PROTOCOL=no
2105 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2106 DEFAULT_wxUSE_PROTOCOL_FTP=no
2107 DEFAULT_wxUSE_PROTOCOL_FILE=no
2108 DEFAULT_wxUSE_URL=no
2109
2110 DEFAULT_wxUSE_COMMONDLGS=no
2111 DEFAULT_wxUSE_CHOICEDLG=no
2112 DEFAULT_wxUSE_COLOURDLG=no
2113 DEFAULT_wxUSE_DIRDLG=no
2114 DEFAULT_wxUSE_FILEDLG=no
2115 DEFAULT_wxUSE_FINDREPLDLG=no
2116 DEFAULT_wxUSE_FONTDLG=no
2117 DEFAULT_wxUSE_MSGDLG=no
2118 DEFAULT_wxUSE_NUMBERDLG=no
2119 DEFAULT_wxUSE_TEXTDLG=no
2120 DEFAULT_wxUSE_SPLASH=no
2121 DEFAULT_wxUSE_STARTUP_TIPS=no
2122 DEFAULT_wxUSE_PROGRESSDLG=no
2123 DEFAULT_wxUSE_WIZARDDLG=no
2124
2125 DEFAULT_wxUSE_MENUS=no
2126 DEFAULT_wxUSE_MINIFRAME=no
2127 DEFAULT_wxUSE_HTML=no
2128 DEFAULT_wxUSE_FILESYSTEM=no
2129 DEFAULT_wxUSE_FS_INET=no
2130 DEFAULT_wxUSE_FS_ZIP=no
2131 DEFAULT_wxUSE_BUSYINFO=no
2132 DEFAULT_wxUSE_ZIPSTREAM=no
2133 DEFAULT_wxUSE_GZSTREAM=no
2134 DEFAULT_wxUSE_VALIDATORS=no
2135
2136 DEFAULT_wxUSE_ACCEL=no
2137 DEFAULT_wxUSE_BUTTON=no
2138 DEFAULT_wxUSE_BMPBUTTON=no
2139 DEFAULT_wxUSE_CALCTRL=no
2140 DEFAULT_wxUSE_CARET=no
2141 DEFAULT_wxUSE_CHECKBOX=no
2142 DEFAULT_wxUSE_CHECKLST=no
2143 DEFAULT_wxUSE_CHOICE=no
2144 DEFAULT_wxUSE_COMBOBOX=no
2145 DEFAULT_wxUSE_DISPLAY=no
2146 DEFAULT_wxUSE_GAUGE=no
2147 DEFAULT_wxUSE_GRID=no
2148 DEFAULT_wxUSE_IMAGLIST=no
2149 DEFAULT_wxUSE_LISTBOOK=no
2150 DEFAULT_wxUSE_LISTBOX=no
2151 DEFAULT_wxUSE_LISTCTRL=no
2152 DEFAULT_wxUSE_NOTEBOOK=no
2153 DEFAULT_wxUSE_RADIOBOX=no
2154 DEFAULT_wxUSE_RADIOBTN=no
2155 DEFAULT_wxUSE_SASH=no
2156 DEFAULT_wxUSE_SCROLLBAR=no
2157 DEFAULT_wxUSE_SLIDER=no
2158 DEFAULT_wxUSE_SPINBTN=no
2159 DEFAULT_wxUSE_SPINCTRL=no
2160 DEFAULT_wxUSE_SPLITTER=no
2161 DEFAULT_wxUSE_STATBMP=no
2162 DEFAULT_wxUSE_STATBOX=no
2163 DEFAULT_wxUSE_STATLINE=no
2164 DEFAULT_wxUSE_STATTEXT=no
2165 DEFAULT_wxUSE_STATUSBAR=yes
2166 DEFAULT_wxUSE_TABDIALOG=no
2167 DEFAULT_wxUSE_TEXTCTRL=no
2168 DEFAULT_wxUSE_TOGGLEBTN=no
2169 DEFAULT_wxUSE_TOOLBAR=no
2170 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2171 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2172 DEFAULT_wxUSE_TREECTRL=no
2173 DEFAULT_wxUSE_POPUPWIN=no
2174 DEFAULT_wxUSE_TIPWINDOW=no
2175
2176 DEFAULT_wxUSE_UNICODE=no
2177 DEFAULT_wxUSE_UNICODE_MSLU=no
2178 DEFAULT_wxUSE_WCSRTOMBS=no
2179
2180 DEFAULT_wxUSE_PALETTE=no
2181 DEFAULT_wxUSE_IMAGE=no
2182 DEFAULT_wxUSE_GIF=no
2183 DEFAULT_wxUSE_PCX=no
2184 DEFAULT_wxUSE_PNM=no
2185 DEFAULT_wxUSE_IFF=no
2186 DEFAULT_wxUSE_XPM=no
2187 DEFAULT_wxUSE_ICO_CUR=no
2188 DEFAULT_wxUSE_ACCESSIBILITY=no
2189
2190 DEFAULT_wxUSE_MONOLITHIC=no
2191 DEFAULT_wxUSE_PLUGINS=no
2192 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2193 else
2194 DEFAULT_wxUSE_UNIVERSAL=no
2195 DEFAULT_wxUSE_STL=no
2196
2197 DEFAULT_wxUSE_NANOX=no
2198
2199 DEFAULT_wxUSE_THREADS=yes
2200
2201 DEFAULT_wxUSE_SHARED=yes
2202 DEFAULT_wxUSE_OPTIMISE=yes
2203 DEFAULT_wxUSE_PROFILE=no
2204 DEFAULT_wxUSE_NO_DEPS=no
2205 DEFAULT_wxUSE_NO_RTTI=no
2206 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2207 DEFAULT_wxUSE_PERMISSIVE=no
2208 DEFAULT_wxUSE_DEBUG_FLAG=no
2209 DEFAULT_wxUSE_DEBUG_INFO=no
2210 DEFAULT_wxUSE_DEBUG_GDB=no
2211 DEFAULT_wxUSE_MEM_TRACING=no
2212 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2213 DEFAULT_wxUSE_DMALLOC=no
2214 DEFAULT_wxUSE_APPLE_IEEE=yes
2215
2216 DEFAULT_wxUSE_EXCEPTIONS=yes
2217 DEFAULT_wxUSE_LOG=yes
2218 DEFAULT_wxUSE_LOGWINDOW=yes
2219 DEFAULT_wxUSE_LOGGUI=yes
2220 DEFAULT_wxUSE_LOGDIALOG=yes
2221
2222 DEFAULT_wxUSE_GUI=yes
2223
2224 DEFAULT_wxUSE_REGEX=yes
2225 DEFAULT_wxUSE_XML=yes
2226 DEFAULT_wxUSE_EXPAT=yes
2227 DEFAULT_wxUSE_ZLIB=yes
2228 DEFAULT_wxUSE_LIBPNG=yes
2229 DEFAULT_wxUSE_LIBJPEG=yes
2230 DEFAULT_wxUSE_LIBTIFF=yes
2231 DEFAULT_wxUSE_LIBXPM=yes
2232 DEFAULT_wxUSE_LIBMSPACK=yes
2233 DEFAULT_wxUSE_LIBSDL=no
2234 DEFAULT_wxUSE_ODBC=no
2235 DEFAULT_wxUSE_OPENGL=no
2236
2237 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2238 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2239 DEFAULT_wxUSE_STD_IOSTREAM=no
2240 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2241 DEFAULT_wxUSE_DATETIME=yes
2242 DEFAULT_wxUSE_TIMER=yes
2243 DEFAULT_wxUSE_STOPWATCH=yes
2244 DEFAULT_wxUSE_FILE=yes
2245 DEFAULT_wxUSE_FFILE=yes
2246 DEFAULT_wxUSE_TEXTBUFFER=yes
2247 DEFAULT_wxUSE_TEXTFILE=yes
2248 DEFAULT_wxUSE_SOUND=yes
2249 DEFAULT_wxUSE_INTL=yes
2250 DEFAULT_wxUSE_CONFIG=yes
2251 DEFAULT_wxUSE_FONTMAP=yes
2252 DEFAULT_wxUSE_STREAMS=yes
2253 DEFAULT_wxUSE_SOCKETS=yes
2254 DEFAULT_wxUSE_OLE=yes
2255 DEFAULT_wxUSE_DATAOBJ=yes
2256 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2257 DEFAULT_wxUSE_JOYSTICK=yes
2258 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2259 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2260 DEFAULT_wxUSE_LONGLONG=yes
2261 DEFAULT_wxUSE_GEOMETRY=yes
2262
2263 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2264 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2265 DEFAULT_wxUSE_POSTSCRIPT=yes
2266
2267 DEFAULT_wxUSE_CLIPBOARD=yes
2268 DEFAULT_wxUSE_TOOLTIPS=yes
2269 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2270 DEFAULT_wxUSE_DRAGIMAGE=yes
2271 DEFAULT_wxUSE_SPLINES=yes
2272
2273 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2276
2277 DEFAULT_wxUSE_RESOURCES=no
2278 DEFAULT_wxUSE_CONSTRAINTS=yes
2279 DEFAULT_wxUSE_IPC=yes
2280 DEFAULT_wxUSE_HELP=yes
2281 DEFAULT_wxUSE_MS_HTML_HELP=yes
2282 DEFAULT_wxUSE_WXHTML_HELP=yes
2283 DEFAULT_wxUSE_TREELAYOUT=yes
2284 DEFAULT_wxUSE_METAFILE=yes
2285 DEFAULT_wxUSE_MIMETYPE=yes
2286 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2287 DEFAULT_wxUSE_PROTOCOL=yes
2288 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2289 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2290 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2291 DEFAULT_wxUSE_URL=yes
2292
2293 DEFAULT_wxUSE_COMMONDLGS=yes
2294 DEFAULT_wxUSE_CHOICEDLG=yes
2295 DEFAULT_wxUSE_COLOURDLG=yes
2296 DEFAULT_wxUSE_DIRDLG=yes
2297 DEFAULT_wxUSE_FILEDLG=yes
2298 DEFAULT_wxUSE_FINDREPLDLG=yes
2299 DEFAULT_wxUSE_FONTDLG=yes
2300 DEFAULT_wxUSE_MSGDLG=yes
2301 DEFAULT_wxUSE_NUMBERDLG=yes
2302 DEFAULT_wxUSE_TEXTDLG=yes
2303 DEFAULT_wxUSE_SPLASH=yes
2304 DEFAULT_wxUSE_STARTUP_TIPS=yes
2305 DEFAULT_wxUSE_PROGRESSDLG=yes
2306 DEFAULT_wxUSE_WIZARDDLG=yes
2307
2308 DEFAULT_wxUSE_MENUS=yes
2309 DEFAULT_wxUSE_MINIFRAME=yes
2310 DEFAULT_wxUSE_HTML=yes
2311 DEFAULT_wxUSE_FILESYSTEM=yes
2312 DEFAULT_wxUSE_FS_INET=yes
2313 DEFAULT_wxUSE_FS_ZIP=yes
2314 DEFAULT_wxUSE_BUSYINFO=yes
2315 DEFAULT_wxUSE_ZIPSTREAM=yes
2316 DEFAULT_wxUSE_GZSTREAM=yes
2317 DEFAULT_wxUSE_VALIDATORS=yes
2318
2319 DEFAULT_wxUSE_ACCEL=yes
2320 DEFAULT_wxUSE_BUTTON=yes
2321 DEFAULT_wxUSE_BMPBUTTON=yes
2322 DEFAULT_wxUSE_CALCTRL=yes
2323 DEFAULT_wxUSE_CARET=yes
2324 DEFAULT_wxUSE_CHECKBOX=yes
2325 DEFAULT_wxUSE_CHECKLST=yes
2326 DEFAULT_wxUSE_CHOICE=yes
2327 DEFAULT_wxUSE_COMBOBOX=yes
2328 DEFAULT_wxUSE_DISPLAY=yes
2329 DEFAULT_wxUSE_GAUGE=yes
2330 DEFAULT_wxUSE_GRID=yes
2331 DEFAULT_wxUSE_IMAGLIST=yes
2332 DEFAULT_wxUSE_LISTBOOK=yes
2333 DEFAULT_wxUSE_LISTBOX=yes
2334 DEFAULT_wxUSE_LISTCTRL=yes
2335 DEFAULT_wxUSE_NOTEBOOK=yes
2336 DEFAULT_wxUSE_RADIOBOX=yes
2337 DEFAULT_wxUSE_RADIOBTN=yes
2338 DEFAULT_wxUSE_SASH=yes
2339 DEFAULT_wxUSE_SCROLLBAR=yes
2340 DEFAULT_wxUSE_SLIDER=yes
2341 DEFAULT_wxUSE_SPINBTN=yes
2342 DEFAULT_wxUSE_SPINCTRL=yes
2343 DEFAULT_wxUSE_SPLITTER=yes
2344 DEFAULT_wxUSE_STATBMP=yes
2345 DEFAULT_wxUSE_STATBOX=yes
2346 DEFAULT_wxUSE_STATLINE=yes
2347 DEFAULT_wxUSE_STATTEXT=yes
2348 DEFAULT_wxUSE_STATUSBAR=yes
2349 DEFAULT_wxUSE_TABDIALOG=no
2350 DEFAULT_wxUSE_TEXTCTRL=yes
2351 DEFAULT_wxUSE_TOGGLEBTN=yes
2352 DEFAULT_wxUSE_TOOLBAR=yes
2353 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2354 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2355 DEFAULT_wxUSE_TREECTRL=yes
2356 DEFAULT_wxUSE_POPUPWIN=yes
2357 DEFAULT_wxUSE_TIPWINDOW=yes
2358
2359 DEFAULT_wxUSE_UNICODE=no
2360 DEFAULT_wxUSE_UNICODE_MSLU=yes
2361 DEFAULT_wxUSE_WCSRTOMBS=no
2362
2363 DEFAULT_wxUSE_PALETTE=yes
2364 DEFAULT_wxUSE_IMAGE=yes
2365 DEFAULT_wxUSE_GIF=yes
2366 DEFAULT_wxUSE_PCX=yes
2367 DEFAULT_wxUSE_IFF=no
2368 DEFAULT_wxUSE_PNM=yes
2369 DEFAULT_wxUSE_XPM=yes
2370 DEFAULT_wxUSE_ICO_CUR=yes
2371 DEFAULT_wxUSE_ACCESSIBILITY=no
2372
2373 DEFAULT_wxUSE_MONOLITHIC=no
2374 DEFAULT_wxUSE_PLUGINS=no
2375 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2376 fi
2377
2378
2379
2380 for toolkit in `echo $ALL_TOOLKITS`; do
2381 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2382 if test "x$LINE" != "x" ; then
2383 has_toolkit_in_cache=1
2384 eval "DEFAULT_$LINE"
2385 eval "CACHE_$toolkit=1"
2386 fi
2387 done
2388
2389
2390
2391 enablestring=
2392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2393 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2394 no_cache=0
2395 # Check whether --enable-gui or --disable-gui was given.
2396 if test "${enable_gui+set}" = set; then
2397 enableval="$enable_gui"
2398
2399 if test "$enableval" = yes; then
2400 ac_cv_use_gui='wxUSE_GUI=yes'
2401 else
2402 ac_cv_use_gui='wxUSE_GUI=no'
2403 fi
2404
2405 else
2406
2407 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2415
2416 fi;
2417
2418 eval "$ac_cv_use_gui"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_GUI" = yes; then
2424 echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431
2432 enablestring=
2433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2434 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2435 no_cache=0
2436 # Check whether --enable-monolithic or --disable-monolithic was given.
2437 if test "${enable_monolithic+set}" = set; then
2438 enableval="$enable_monolithic"
2439
2440 if test "$enableval" = yes; then
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2442 else
2443 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2444 fi
2445
2446 else
2447
2448 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2449 if test "x$LINE" != x ; then
2450 eval "DEFAULT_$LINE"
2451 else
2452 no_cache=1
2453 fi
2454
2455 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2456
2457 fi;
2458
2459 eval "$ac_cv_use_monolithic"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_MONOLITHIC" = yes; then
2465 echo "$as_me:$LINENO: result: yes" >&5
2466 echo "${ECHO_T}yes" >&6
2467 else
2468 echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2470 fi
2471
2472
2473 enablestring=
2474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2475 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2476 no_cache=0
2477 # Check whether --enable-plugins or --disable-plugins was given.
2478 if test "${enable_plugins+set}" = set; then
2479 enableval="$enable_plugins"
2480
2481 if test "$enableval" = yes; then
2482 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2483 else
2484 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2485 fi
2486
2487 else
2488
2489 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2490 if test "x$LINE" != x ; then
2491 eval "DEFAULT_$LINE"
2492 else
2493 no_cache=1
2494 fi
2495
2496 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2497
2498 fi;
2499
2500 eval "$ac_cv_use_plugins"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_PLUGINS" = yes; then
2506 echo "$as_me:$LINENO: result: yes" >&5
2507 echo "${ECHO_T}yes" >&6
2508 else
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513
2514 if test "$wxUSE_GUI" = "yes"; then
2515
2516
2517 enablestring=
2518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2519 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2520 no_cache=0
2521 # Check whether --enable-universal or --disable-universal was given.
2522 if test "${enable_universal+set}" = set; then
2523 enableval="$enable_universal"
2524
2525 if test "$enableval" = yes; then
2526 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2527 else
2528 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2529 fi
2530
2531 else
2532
2533 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
2540 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2541
2542 fi;
2543
2544 eval "$ac_cv_use_universal"
2545 if test "$no_cache" != 1; then
2546 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2547 fi
2548
2549 if test "$wxUSE_UNIVERSAL" = yes; then
2550 echo "$as_me:$LINENO: result: yes" >&5
2551 echo "${ECHO_T}yes" >&6
2552 else
2553 echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2555 fi
2556
2557
2558 # Check whether --with-gtk or --without-gtk was given.
2559 if test "${with_gtk+set}" = set; then
2560 withval="$with_gtk"
2561 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2562 fi;
2563
2564 # Check whether --with-motif or --without-motif was given.
2565 if test "${with_motif+set}" = set; then
2566 withval="$with_motif"
2567 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2568 fi;
2569
2570 # Check whether --with-mac or --without-mac was given.
2571 if test "${with_mac+set}" = set; then
2572 withval="$with_mac"
2573 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2574 fi;
2575
2576 # Check whether --with-cocoa or --without-cocoa was given.
2577 if test "${with_cocoa+set}" = set; then
2578 withval="$with_cocoa"
2579 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2580 fi;
2581
2582 # Check whether --with-wine or --without-wine was given.
2583 if test "${with_wine+set}" = set; then
2584 withval="$with_wine"
2585 wxUSE_WINE="$withval" CACHE_WINE=1
2586 fi;
2587
2588 # Check whether --with-msw or --without-msw was given.
2589 if test "${with_msw+set}" = set; then
2590 withval="$with_msw"
2591 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2592 fi;
2593
2594 # Check whether --with-pm or --without-pm was given.
2595 if test "${with_pm+set}" = set; then
2596 withval="$with_pm"
2597 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2598 fi;
2599
2600 # Check whether --with-mgl or --without-mgl was given.
2601 if test "${with_mgl+set}" = set; then
2602 withval="$with_mgl"
2603 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2604 fi;
2605
2606 # Check whether --with-microwin or --without-microwin was given.
2607 if test "${with_microwin+set}" = set; then
2608 withval="$with_microwin"
2609 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2610 fi;
2611
2612 # Check whether --with-x11 or --without-x11 was given.
2613 if test "${with_x11+set}" = set; then
2614 withval="$with_x11"
2615 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2616 fi;
2617
2618 enablestring=
2619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2620 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2621 no_cache=0
2622 # Check whether --enable-nanox or --disable-nanox was given.
2623 if test "${enable_nanox+set}" = set; then
2624 enableval="$enable_nanox"
2625
2626 if test "$enableval" = yes; then
2627 ac_cv_use_nanox='wxUSE_NANOX=yes'
2628 else
2629 ac_cv_use_nanox='wxUSE_NANOX=no'
2630 fi
2631
2632 else
2633
2634 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2642
2643 fi;
2644
2645 eval "$ac_cv_use_nanox"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_NANOX" = yes; then
2651 echo "$as_me:$LINENO: result: yes" >&5
2652 echo "${ECHO_T}yes" >&6
2653 else
2654 echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6
2656 fi
2657
2658
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2662 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2665 if test "${enable_gtk2+set}" = set; then
2666 enableval="$enable_gtk2"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2670 else
2671 ac_cv_use_gtk2='wxUSE_GTK2=no'
2672 fi
2673
2674 else
2675
2676 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2684
2685 fi;
2686
2687 eval "$ac_cv_use_gtk2"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_GTK2" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694 echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697 echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701 enablestring=
2702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2703 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2704 no_cache=0
2705 # Check whether --enable-gpe or --disable-gpe was given.
2706 if test "${enable_gpe+set}" = set; then
2707 enableval="$enable_gpe"
2708
2709 if test "$enableval" = yes; then
2710 ac_cv_use_gpe='wxUSE_GPE=yes'
2711 else
2712 ac_cv_use_gpe='wxUSE_GPE=no'
2713 fi
2714
2715 else
2716
2717 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2725
2726 fi;
2727
2728 eval "$ac_cv_use_gpe"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_GPE" = yes; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 fi
2740
2741
2742
2743 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2744 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2745 no_cache=0
2746
2747 # Check whether --with-libpng or --without-libpng was given.
2748 if test "${with_libpng+set}" = set; then
2749 withval="$with_libpng"
2750
2751 if test "$withval" = yes; then
2752 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2753 elif test "$withval" = no; then
2754 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2755 elif test "$withval" = sys; then
2756 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2757 elif test "$withval" = builtin; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2759 else
2760 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2761 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2762 { (exit 1); exit 1; }; }
2763 fi
2764
2765 else
2766
2767 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2775
2776 fi;
2777
2778 eval "$ac_cv_use_libpng"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_LIBPNG" = yes; then
2784 echo "$as_me:$LINENO: result: yes" >&5
2785 echo "${ECHO_T}yes" >&6
2786 elif test "$wxUSE_LIBPNG" = no; then
2787 echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6
2789 elif test "$wxUSE_LIBPNG" = sys; then
2790 echo "$as_me:$LINENO: result: system version" >&5
2791 echo "${ECHO_T}system version" >&6
2792 elif test "$wxUSE_LIBPNG" = builtin; then
2793 echo "$as_me:$LINENO: result: builtin version" >&5
2794 echo "${ECHO_T}builtin version" >&6
2795 else
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
2799 fi
2800
2801
2802 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2803 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2804 no_cache=0
2805
2806 # Check whether --with-libjpeg or --without-libjpeg was given.
2807 if test "${with_libjpeg+set}" = set; then
2808 withval="$with_libjpeg"
2809
2810 if test "$withval" = yes; then
2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2812 elif test "$withval" = no; then
2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2814 elif test "$withval" = sys; then
2815 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2816 elif test "$withval" = builtin; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2818 else
2819 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2820 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824 else
2825
2826 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2834
2835 fi;
2836
2837 eval "$ac_cv_use_libjpeg"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_LIBJPEG" = yes; then
2843 echo "$as_me:$LINENO: result: yes" >&5
2844 echo "${ECHO_T}yes" >&6
2845 elif test "$wxUSE_LIBJPEG" = no; then
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2848 elif test "$wxUSE_LIBJPEG" = sys; then
2849 echo "$as_me:$LINENO: result: system version" >&5
2850 echo "${ECHO_T}system version" >&6
2851 elif test "$wxUSE_LIBJPEG" = builtin; then
2852 echo "$as_me:$LINENO: result: builtin version" >&5
2853 echo "${ECHO_T}builtin version" >&6
2854 else
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860
2861 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2862 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2863 no_cache=0
2864
2865 # Check whether --with-libtiff or --without-libtiff was given.
2866 if test "${with_libtiff+set}" = set; then
2867 withval="$with_libtiff"
2868
2869 if test "$withval" = yes; then
2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2871 elif test "$withval" = no; then
2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2873 elif test "$withval" = sys; then
2874 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2875 elif test "$withval" = builtin; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2877 else
2878 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2879 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2880 { (exit 1); exit 1; }; }
2881 fi
2882
2883 else
2884
2885 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2893
2894 fi;
2895
2896 eval "$ac_cv_use_libtiff"
2897 if test "$no_cache" != 1; then
2898 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2899 fi
2900
2901 if test "$wxUSE_LIBTIFF" = yes; then
2902 echo "$as_me:$LINENO: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6
2904 elif test "$wxUSE_LIBTIFF" = no; then
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2907 elif test "$wxUSE_LIBTIFF" = sys; then
2908 echo "$as_me:$LINENO: result: system version" >&5
2909 echo "${ECHO_T}system version" >&6
2910 elif test "$wxUSE_LIBTIFF" = builtin; then
2911 echo "$as_me:$LINENO: result: builtin version" >&5
2912 echo "${ECHO_T}builtin version" >&6
2913 else
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919
2920 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2921 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2922 no_cache=0
2923
2924 # Check whether --with-libxpm or --without-libxpm was given.
2925 if test "${with_libxpm+set}" = set; then
2926 withval="$with_libxpm"
2927
2928 if test "$withval" = yes; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2930 elif test "$withval" = no; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2932 elif test "$withval" = sys; then
2933 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2934 elif test "$withval" = builtin; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2936 else
2937 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2938 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941
2942 else
2943
2944 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2952
2953 fi;
2954
2955 eval "$ac_cv_use_libxpm"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_LIBXPM" = yes; then
2961 echo "$as_me:$LINENO: result: yes" >&5
2962 echo "${ECHO_T}yes" >&6
2963 elif test "$wxUSE_LIBXPM" = no; then
2964 echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2966 elif test "$wxUSE_LIBXPM" = sys; then
2967 echo "$as_me:$LINENO: result: system version" >&5
2968 echo "${ECHO_T}system version" >&6
2969 elif test "$wxUSE_LIBXPM" = builtin; then
2970 echo "$as_me:$LINENO: result: builtin version" >&5
2971 echo "${ECHO_T}builtin version" >&6
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978
2979 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2980 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2981 no_cache=0
2982
2983 # Check whether --with-libmspack or --without-libmspack was given.
2984 if test "${with_libmspack+set}" = set; then
2985 withval="$with_libmspack"
2986
2987 if test "$withval" = yes; then
2988 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2989 else
2990 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2991 fi
2992
2993 else
2994
2995 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2996 if test "x$LINE" != x ; then
2997 eval "DEFAULT_$LINE"
2998 else
2999 no_cache=1
3000 fi
3001
3002 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3003
3004 fi;
3005
3006 eval "$ac_cv_use_libmspack"
3007 if test "$no_cache" != 1; then
3008 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3009 fi
3010
3011 if test "$wxUSE_LIBMSPACK" = yes; then
3012 echo "$as_me:$LINENO: result: yes" >&5
3013 echo "${ECHO_T}yes" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3017 fi
3018
3019
3020 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3021 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3022 no_cache=0
3023
3024 # Check whether --with-sdl or --without-sdl was given.
3025 if test "${with_sdl+set}" = set; then
3026 withval="$with_sdl"
3027
3028 if test "$withval" = yes; then
3029 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3030 else
3031 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3032 fi
3033
3034 else
3035
3036 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3044
3045 fi;
3046
3047 eval "$ac_cv_use_sdl"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_LIBSDL" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054 echo "${ECHO_T}yes" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3058 fi
3059
3060
3061 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3062 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3063 no_cache=0
3064
3065 # Check whether --with-opengl or --without-opengl was given.
3066 if test "${with_opengl+set}" = set; then
3067 withval="$with_opengl"
3068
3069 if test "$withval" = yes; then
3070 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3071 else
3072 ac_cv_use_opengl='wxUSE_OPENGL=no'
3073 fi
3074
3075 else
3076
3077 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3085
3086 fi;
3087
3088 eval "$ac_cv_use_opengl"
3089 if test "$no_cache" != 1; then
3090 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3091 fi
3092
3093 if test "$wxUSE_OPENGL" = yes; then
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3099 fi
3100
3101
3102 fi
3103
3104
3105 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3106 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3107 no_cache=0
3108
3109 # Check whether --with-dmalloc or --without-dmalloc was given.
3110 if test "${with_dmalloc+set}" = set; then
3111 withval="$with_dmalloc"
3112
3113 if test "$withval" = yes; then
3114 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3115 else
3116 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3117 fi
3118
3119 else
3120
3121 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
3128 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3129
3130 fi;
3131
3132 eval "$ac_cv_use_dmalloc"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_DMALLOC" = yes; then
3138 echo "$as_me:$LINENO: result: yes" >&5
3139 echo "${ECHO_T}yes" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3143 fi
3144
3145
3146 echo "$as_me:$LINENO: checking for --with-regex" >&5
3147 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3148 no_cache=0
3149
3150 # Check whether --with-regex or --without-regex was given.
3151 if test "${with_regex+set}" = set; then
3152 withval="$with_regex"
3153
3154 if test "$withval" = yes; then
3155 ac_cv_use_regex='wxUSE_REGEX=yes'
3156 elif test "$withval" = no; then
3157 ac_cv_use_regex='wxUSE_REGEX=no'
3158 elif test "$withval" = sys; then
3159 ac_cv_use_regex='wxUSE_REGEX=sys'
3160 elif test "$withval" = builtin; then
3161 ac_cv_use_regex='wxUSE_REGEX=builtin'
3162 else
3163 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3164 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168 else
3169
3170 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3178
3179 fi;
3180
3181 eval "$ac_cv_use_regex"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_REGEX" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188 echo "${ECHO_T}yes" >&6
3189 elif test "$wxUSE_REGEX" = no; then
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 elif test "$wxUSE_REGEX" = sys; then
3193 echo "$as_me:$LINENO: result: system version" >&5
3194 echo "${ECHO_T}system version" >&6
3195 elif test "$wxUSE_REGEX" = builtin; then
3196 echo "$as_me:$LINENO: result: builtin version" >&5
3197 echo "${ECHO_T}builtin version" >&6
3198 else
3199 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3200 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3201 { (exit 1); exit 1; }; }
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3206 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3207 no_cache=0
3208
3209 # Check whether --with-zlib or --without-zlib was given.
3210 if test "${with_zlib+set}" = set; then
3211 withval="$with_zlib"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_zlib='wxUSE_ZLIB=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3223 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227 else
3228
3229 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3237
3238 fi;
3239
3240 eval "$ac_cv_use_zlib"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_ZLIB" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247 echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_ZLIB" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_ZLIB" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253 echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_ZLIB" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256 echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3259 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3265 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3266 no_cache=0
3267
3268 # Check whether --with-odbc or --without-odbc was given.
3269 if test "${with_odbc+set}" = set; then
3270 withval="$with_odbc"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_odbc='wxUSE_ODBC=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_odbc='wxUSE_ODBC=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_odbc='wxUSE_ODBC=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3282 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286 else
3287
3288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3296
3297 fi;
3298
3299 eval "$ac_cv_use_odbc"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ODBC" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306 echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ODBC" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ODBC" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312 echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ODBC" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315 echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3318 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-expat" >&5
3324 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3325 no_cache=0
3326
3327 # Check whether --with-expat or --without-expat was given.
3328 if test "${with_expat+set}" = set; then
3329 withval="$with_expat"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_expat='wxUSE_EXPAT=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_expat='wxUSE_EXPAT=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_expat='wxUSE_EXPAT=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3341 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345 else
3346
3347 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3355
3356 fi;
3357
3358 eval "$ac_cv_use_expat"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_EXPAT" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365 echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_EXPAT" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_EXPAT" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371 echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_EXPAT" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374 echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3377 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382
3383
3384 enablestring=
3385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3386 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3387 no_cache=0
3388 # Check whether --enable-shared or --disable-shared was given.
3389 if test "${enable_shared+set}" = set; then
3390 enableval="$enable_shared"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_shared='wxUSE_SHARED=yes'
3394 else
3395 ac_cv_use_shared='wxUSE_SHARED=no'
3396 fi
3397
3398 else
3399
3400 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3408
3409 fi;
3410
3411 eval "$ac_cv_use_shared"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_SHARED" = yes; then
3417 echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6
3419 else
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424
3425 enablestring=
3426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3427 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3428 no_cache=0
3429 # Check whether --enable-optimise or --disable-optimise was given.
3430 if test "${enable_optimise+set}" = set; then
3431 enableval="$enable_optimise"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3435 else
3436 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3437 fi
3438
3439 else
3440
3441 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3449
3450 fi;
3451
3452 eval "$ac_cv_use_optimise"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_OPTIMISE" = yes; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3460 else
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465
3466 enablestring=
3467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3468 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3469 no_cache=0
3470 # Check whether --enable-debug or --disable-debug was given.
3471 if test "${enable_debug+set}" = set; then
3472 enableval="$enable_debug"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_debug='wxUSE_DEBUG=yes'
3476 else
3477 ac_cv_use_debug='wxUSE_DEBUG=no'
3478 fi
3479
3480 else
3481
3482 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3490
3491 fi;
3492
3493 eval "$ac_cv_use_debug"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_DEBUG" = yes; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500 echo "${ECHO_T}yes" >&6
3501 else
3502 echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3504 fi
3505
3506
3507 enablestring=
3508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3509 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3510 no_cache=0
3511 # Check whether --enable-stl or --disable-stl was given.
3512 if test "${enable_stl+set}" = set; then
3513 enableval="$enable_stl"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_stl='wxUSE_STL=yes'
3517 else
3518 ac_cv_use_stl='wxUSE_STL=no'
3519 fi
3520
3521 else
3522
3523 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3531
3532 fi;
3533
3534 eval "$ac_cv_use_stl"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_STL" = yes; then
3540 echo "$as_me:$LINENO: result: yes" >&5
3541 echo "${ECHO_T}yes" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547 if test "$USE_OS2" = "1"; then
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3551 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-omf or --disable-omf was given.
3554 if test "${enable_omf+set}" = set; then
3555 enableval="$enable_omf"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_omf='wxUSE_OMF=yes'
3559 else
3560 ac_cv_use_omf='wxUSE_OMF=no'
3561 fi
3562
3563 else
3564
3565 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3573
3574 fi;
3575
3576 eval "$ac_cv_use_omf"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_OMF" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583 echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 fi
3590
3591 if test "$wxUSE_DEBUG" = "yes"; then
3592 DEFAULT_wxUSE_DEBUG_FLAG=yes
3593 DEFAULT_wxUSE_DEBUG_INFO=yes
3594 BUILD=debug
3595 elif test "$wxUSE_DEBUG" = "no"; then
3596 DEFAULT_wxUSE_DEBUG_FLAG=no
3597 DEFAULT_wxUSE_DEBUG_INFO=no
3598 BUILD=release
3599 fi
3600
3601
3602 enablestring=
3603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3604 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3605 no_cache=0
3606 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3607 if test "${enable_debug_flag+set}" = set; then
3608 enableval="$enable_debug_flag"
3609
3610 if test "$enableval" = yes; then
3611 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3612 else
3613 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3614 fi
3615
3616 else
3617
3618 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3619 if test "x$LINE" != x ; then
3620 eval "DEFAULT_$LINE"
3621 else
3622 no_cache=1
3623 fi
3624
3625 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3626
3627 fi;
3628
3629 eval "$ac_cv_use_debug_flag"
3630 if test "$no_cache" != 1; then
3631 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3632 fi
3633
3634 if test "$wxUSE_DEBUG_FLAG" = yes; then
3635 echo "$as_me:$LINENO: result: yes" >&5
3636 echo "${ECHO_T}yes" >&6
3637 else
3638 echo "$as_me:$LINENO: result: no" >&5
3639 echo "${ECHO_T}no" >&6
3640 fi
3641
3642
3643 enablestring=
3644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3645 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3646 no_cache=0
3647 # Check whether --enable-debug_info or --disable-debug_info was given.
3648 if test "${enable_debug_info+set}" = set; then
3649 enableval="$enable_debug_info"
3650
3651 if test "$enableval" = yes; then
3652 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3653 else
3654 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3655 fi
3656
3657 else
3658
3659 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3660 if test "x$LINE" != x ; then
3661 eval "DEFAULT_$LINE"
3662 else
3663 no_cache=1
3664 fi
3665
3666 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3667
3668 fi;
3669
3670 eval "$ac_cv_use_debug_info"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_DEBUG_INFO" = yes; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683
3684 enablestring=
3685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3686 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3687 no_cache=0
3688 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3689 if test "${enable_debug_gdb+set}" = set; then
3690 enableval="$enable_debug_gdb"
3691
3692 if test "$enableval" = yes; then
3693 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3694 else
3695 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3696 fi
3697
3698 else
3699
3700 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3701 if test "x$LINE" != x ; then
3702 eval "DEFAULT_$LINE"
3703 else
3704 no_cache=1
3705 fi
3706
3707 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3708
3709 fi;
3710
3711 eval "$ac_cv_use_debug_gdb"
3712 if test "$no_cache" != 1; then
3713 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3714 fi
3715
3716 if test "$wxUSE_DEBUG_GDB" = yes; then
3717 echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723
3724
3725 enablestring=
3726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3727 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3728 no_cache=0
3729 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3730 if test "${enable_debug_cntxt+set}" = set; then
3731 enableval="$enable_debug_cntxt"
3732
3733 if test "$enableval" = yes; then
3734 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3735 else
3736 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3737 fi
3738
3739 else
3740
3741 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3749
3750 fi;
3751
3752 eval "$ac_cv_use_debug_cntxt"
3753 if test "$no_cache" != 1; then
3754 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3755 fi
3756
3757 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3758 echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 fi
3764
3765
3766 enablestring=
3767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3768 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3769 no_cache=0
3770 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3771 if test "${enable_mem_tracing+set}" = set; then
3772 enableval="$enable_mem_tracing"
3773
3774 if test "$enableval" = yes; then
3775 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3776 else
3777 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3778 fi
3779
3780 else
3781
3782 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3783 if test "x$LINE" != x ; then
3784 eval "DEFAULT_$LINE"
3785 else
3786 no_cache=1
3787 fi
3788
3789 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3790
3791 fi;
3792
3793 eval "$ac_cv_use_mem_tracing"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_MEM_TRACING" = yes; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3801 else
3802 echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6
3804 fi
3805
3806
3807 enablestring=
3808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3809 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3810 no_cache=0
3811 # Check whether --enable-profile or --disable-profile was given.
3812 if test "${enable_profile+set}" = set; then
3813 enableval="$enable_profile"
3814
3815 if test "$enableval" = yes; then
3816 ac_cv_use_profile='wxUSE_PROFILE=yes'
3817 else
3818 ac_cv_use_profile='wxUSE_PROFILE=no'
3819 fi
3820
3821 else
3822
3823 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3824 if test "x$LINE" != x ; then
3825 eval "DEFAULT_$LINE"
3826 else
3827 no_cache=1
3828 fi
3829
3830 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3831
3832 fi;
3833
3834 eval "$ac_cv_use_profile"
3835 if test "$no_cache" != 1; then
3836 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3837 fi
3838
3839 if test "$wxUSE_PROFILE" = yes; then
3840 echo "$as_me:$LINENO: result: yes" >&5
3841 echo "${ECHO_T}yes" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 fi
3846
3847
3848 enablestring=
3849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3850 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3851 no_cache=0
3852 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3853 if test "${enable_no_rtti+set}" = set; then
3854 enableval="$enable_no_rtti"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3858 else
3859 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3860 fi
3861
3862 else
3863
3864 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3872
3873 fi;
3874
3875 eval "$ac_cv_use_no_rtti"
3876 if test "$no_cache" != 1; then
3877 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3878 fi
3879
3880 if test "$wxUSE_NO_RTTI" = yes; then
3881 echo "$as_me:$LINENO: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3886 fi
3887
3888
3889 enablestring=
3890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3891 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3892 no_cache=0
3893 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3894 if test "${enable_no_exceptions+set}" = set; then
3895 enableval="$enable_no_exceptions"
3896
3897 if test "$enableval" = yes; then
3898 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3899 else
3900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3901 fi
3902
3903 else
3904
3905 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3913
3914 fi;
3915
3916 eval "$ac_cv_use_no_exceptions"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3922 echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6
3924 else
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929
3930 enablestring=
3931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3932 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3933 no_cache=0
3934 # Check whether --enable-permissive or --disable-permissive was given.
3935 if test "${enable_permissive+set}" = set; then
3936 enableval="$enable_permissive"
3937
3938 if test "$enableval" = yes; then
3939 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3940 else
3941 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3942 fi
3943
3944 else
3945
3946 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3954
3955 fi;
3956
3957 eval "$ac_cv_use_permissive"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_PERMISSIVE" = yes; then
3963 echo "$as_me:$LINENO: result: yes" >&5
3964 echo "${ECHO_T}yes" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968 fi
3969
3970
3971 enablestring=
3972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3973 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3974 no_cache=0
3975 # Check whether --enable-no_deps or --disable-no_deps was given.
3976 if test "${enable_no_deps+set}" = set; then
3977 enableval="$enable_no_deps"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3981 else
3982 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3983 fi
3984
3985 else
3986
3987 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3995
3996 fi;
3997
3998 eval "$ac_cv_use_no_deps"
3999 if test "$no_cache" != 1; then
4000 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4001 fi
4002
4003 if test "$wxUSE_NO_DEPS" = yes; then
4004 echo "$as_me:$LINENO: result: yes" >&5
4005 echo "${ECHO_T}yes" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4015 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-compat22 or --disable-compat22 was given.
4018 if test "${enable_compat22+set}" = set; then
4019 enableval="$enable_compat22"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4023 else
4024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4025 fi
4026
4027 else
4028
4029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4037
4038 fi;
4039
4040 eval "$ac_cv_use_compat22"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=disable
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4056 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-compat24 or --disable-compat24 was given.
4059 if test "${enable_compat24+set}" = set; then
4060 enableval="$enable_compat24"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4064 else
4065 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4066 fi
4067
4068 else
4069
4070 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4078
4079 fi;
4080
4081 eval "$ac_cv_use_compat24"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088 echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095 # Check whether --enable-rpath or --disable-rpath was given.
4096 if test "${enable_rpath+set}" = set; then
4097 enableval="$enable_rpath"
4098 wxRPATH_DIR="$enableval"
4099 fi;
4100
4101 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4102 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4103 fi
4104
4105
4106
4107
4108 enablestring=
4109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4110 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4111 no_cache=0
4112 # Check whether --enable-intl or --disable-intl was given.
4113 if test "${enable_intl+set}" = set; then
4114 enableval="$enable_intl"
4115
4116 if test "$enableval" = yes; then
4117 ac_cv_use_intl='wxUSE_INTL=yes'
4118 else
4119 ac_cv_use_intl='wxUSE_INTL=no'
4120 fi
4121
4122 else
4123
4124 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4132
4133 fi;
4134
4135 eval "$ac_cv_use_intl"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_INTL" = yes; then
4141 echo "$as_me:$LINENO: result: yes" >&5
4142 echo "${ECHO_T}yes" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148
4149 enablestring=
4150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4151 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4152 no_cache=0
4153 # Check whether --enable-config or --disable-config was given.
4154 if test "${enable_config+set}" = set; then
4155 enableval="$enable_config"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_config='wxUSE_CONFIG=yes'
4159 else
4160 ac_cv_use_config='wxUSE_CONFIG=no'
4161 fi
4162
4163 else
4164
4165 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4173
4174 fi;
4175
4176 eval "$ac_cv_use_config"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_CONFIG" = yes; then
4182 echo "$as_me:$LINENO: result: yes" >&5
4183 echo "${ECHO_T}yes" >&6
4184 else
4185 echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189
4190
4191 enablestring=
4192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4193 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4194 no_cache=0
4195 # Check whether --enable-protocols or --disable-protocols was given.
4196 if test "${enable_protocols+set}" = set; then
4197 enableval="$enable_protocols"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4201 else
4202 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4203 fi
4204
4205 else
4206
4207 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4215
4216 fi;
4217
4218 eval "$ac_cv_use_protocols"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_PROTOCOL" = yes; then
4224 echo "$as_me:$LINENO: result: yes" >&5
4225 echo "${ECHO_T}yes" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4229 fi
4230
4231
4232 enablestring=
4233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4234 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4235 no_cache=0
4236 # Check whether --enable-ftp or --disable-ftp was given.
4237 if test "${enable_ftp+set}" = set; then
4238 enableval="$enable_ftp"
4239
4240 if test "$enableval" = yes; then
4241 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4242 else
4243 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4244 fi
4245
4246 else
4247
4248 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4256
4257 fi;
4258
4259 eval "$ac_cv_use_ftp"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4265 echo "$as_me:$LINENO: result: yes" >&5
4266 echo "${ECHO_T}yes" >&6
4267 else
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4270 fi
4271
4272
4273 enablestring=
4274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4275 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4276 no_cache=0
4277 # Check whether --enable-http or --disable-http was given.
4278 if test "${enable_http+set}" = set; then
4279 enableval="$enable_http"
4280
4281 if test "$enableval" = yes; then
4282 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4283 else
4284 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4285 fi
4286
4287 else
4288
4289 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4290 if test "x$LINE" != x ; then
4291 eval "DEFAULT_$LINE"
4292 else
4293 no_cache=1
4294 fi
4295
4296 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4297
4298 fi;
4299
4300 eval "$ac_cv_use_http"
4301 if test "$no_cache" != 1; then
4302 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4303 fi
4304
4305 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4306 echo "$as_me:$LINENO: result: yes" >&5
4307 echo "${ECHO_T}yes" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313
4314 enablestring=
4315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4316 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4317 no_cache=0
4318 # Check whether --enable-fileproto or --disable-fileproto was given.
4319 if test "${enable_fileproto+set}" = set; then
4320 enableval="$enable_fileproto"
4321
4322 if test "$enableval" = yes; then
4323 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4324 else
4325 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4326 fi
4327
4328 else
4329
4330 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4331 if test "x$LINE" != x ; then
4332 eval "DEFAULT_$LINE"
4333 else
4334 no_cache=1
4335 fi
4336
4337 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4338
4339 fi;
4340
4341 eval "$ac_cv_use_fileproto"
4342 if test "$no_cache" != 1; then
4343 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4344 fi
4345
4346 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4347 echo "$as_me:$LINENO: result: yes" >&5
4348 echo "${ECHO_T}yes" >&6
4349 else
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 fi
4353
4354
4355 enablestring=
4356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4357 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4358 no_cache=0
4359 # Check whether --enable-sockets or --disable-sockets was given.
4360 if test "${enable_sockets+set}" = set; then
4361 enableval="$enable_sockets"
4362
4363 if test "$enableval" = yes; then
4364 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4365 else
4366 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4367 fi
4368
4369 else
4370
4371 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4372 if test "x$LINE" != x ; then
4373 eval "DEFAULT_$LINE"
4374 else
4375 no_cache=1
4376 fi
4377
4378 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4379
4380 fi;
4381
4382 eval "$ac_cv_use_sockets"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_SOCKETS" = yes; then
4388 echo "$as_me:$LINENO: result: yes" >&5
4389 echo "${ECHO_T}yes" >&6
4390 else
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4393 fi
4394
4395
4396 enablestring=
4397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4398 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4399 no_cache=0
4400 # Check whether --enable-ole or --disable-ole was given.
4401 if test "${enable_ole+set}" = set; then
4402 enableval="$enable_ole"
4403
4404 if test "$enableval" = yes; then
4405 ac_cv_use_ole='wxUSE_OLE=yes'
4406 else
4407 ac_cv_use_ole='wxUSE_OLE=no'
4408 fi
4409
4410 else
4411
4412 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4413 if test "x$LINE" != x ; then
4414 eval "DEFAULT_$LINE"
4415 else
4416 no_cache=1
4417 fi
4418
4419 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4420
4421 fi;
4422
4423 eval "$ac_cv_use_ole"
4424 if test "$no_cache" != 1; then
4425 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4426 fi
4427
4428 if test "$wxUSE_OLE" = yes; then
4429 echo "$as_me:$LINENO: result: yes" >&5
4430 echo "${ECHO_T}yes" >&6
4431 else
4432 echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6
4434 fi
4435
4436
4437 enablestring=
4438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4439 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4440 no_cache=0
4441 # Check whether --enable-dataobj or --disable-dataobj was given.
4442 if test "${enable_dataobj+set}" = set; then
4443 enableval="$enable_dataobj"
4444
4445 if test "$enableval" = yes; then
4446 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4447 else
4448 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4449 fi
4450
4451 else
4452
4453 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4454 if test "x$LINE" != x ; then
4455 eval "DEFAULT_$LINE"
4456 else
4457 no_cache=1
4458 fi
4459
4460 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4461
4462 fi;
4463
4464 eval "$ac_cv_use_dataobj"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_DATAOBJ" = yes; then
4470 echo "$as_me:$LINENO: result: yes" >&5
4471 echo "${ECHO_T}yes" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4475 fi
4476
4477
4478
4479 enablestring=
4480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4481 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4482 no_cache=0
4483 # Check whether --enable-ipc or --disable-ipc was given.
4484 if test "${enable_ipc+set}" = set; then
4485 enableval="$enable_ipc"
4486
4487 if test "$enableval" = yes; then
4488 ac_cv_use_ipc='wxUSE_IPC=yes'
4489 else
4490 ac_cv_use_ipc='wxUSE_IPC=no'
4491 fi
4492
4493 else
4494
4495 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4503
4504 fi;
4505
4506 eval "$ac_cv_use_ipc"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_IPC" = yes; then
4512 echo "$as_me:$LINENO: result: yes" >&5
4513 echo "${ECHO_T}yes" >&6
4514 else
4515 echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6
4517 fi
4518
4519
4520
4521 enablestring=
4522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4523 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4524 no_cache=0
4525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4526 if test "${enable_apple_ieee+set}" = set; then
4527 enableval="$enable_apple_ieee"
4528
4529 if test "$enableval" = yes; then
4530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4531 else
4532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4533 fi
4534
4535 else
4536
4537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4545
4546 fi;
4547
4548 eval "$ac_cv_use_apple_ieee"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_APPLE_IEEE" = yes; then
4554 echo "$as_me:$LINENO: result: yes" >&5
4555 echo "${ECHO_T}yes" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4559 fi
4560
4561
4562 enablestring=
4563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4564 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4565 no_cache=0
4566 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4567 if test "${enable_catch_segvs+set}" = set; then
4568 enableval="$enable_catch_segvs"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4572 else
4573 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4574 fi
4575
4576 else
4577
4578 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4586
4587 fi;
4588
4589 eval "$ac_cv_use_catch_segvs"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4595 echo "$as_me:$LINENO: result: yes" >&5
4596 echo "${ECHO_T}yes" >&6
4597 else
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4600 fi
4601
4602
4603 enablestring=
4604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4605 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4606 no_cache=0
4607 # Check whether --enable-cmdline or --disable-cmdline was given.
4608 if test "${enable_cmdline+set}" = set; then
4609 enableval="$enable_cmdline"
4610
4611 if test "$enableval" = yes; then
4612 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4613 else
4614 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4615 fi
4616
4617 else
4618
4619 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 else
4623 no_cache=1
4624 fi
4625
4626 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4627
4628 fi;
4629
4630 eval "$ac_cv_use_cmdline"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637 echo "${ECHO_T}yes" >&6
4638 else
4639 echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643
4644 enablestring=
4645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4646 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4647 no_cache=0
4648 # Check whether --enable-datetime or --disable-datetime was given.
4649 if test "${enable_datetime+set}" = set; then
4650 enableval="$enable_datetime"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4654 else
4655 ac_cv_use_datetime='wxUSE_DATETIME=no'
4656 fi
4657
4658 else
4659
4660 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4668
4669 fi;
4670
4671 eval "$ac_cv_use_datetime"
4672 if test "$no_cache" != 1; then
4673 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4674 fi
4675
4676 if test "$wxUSE_DATETIME" = yes; then
4677 echo "$as_me:$LINENO: result: yes" >&5
4678 echo "${ECHO_T}yes" >&6
4679 else
4680 echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4682 fi
4683
4684
4685 enablestring=
4686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4687 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4688 no_cache=0
4689 # Check whether --enable-dialupman or --disable-dialupman was given.
4690 if test "${enable_dialupman+set}" = set; then
4691 enableval="$enable_dialupman"
4692
4693 if test "$enableval" = yes; then
4694 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4695 else
4696 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4697 fi
4698
4699 else
4700
4701 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4702 if test "x$LINE" != x ; then
4703 eval "DEFAULT_$LINE"
4704 else
4705 no_cache=1
4706 fi
4707
4708 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4709
4710 fi;
4711
4712 eval "$ac_cv_use_dialupman"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4718 echo "$as_me:$LINENO: result: yes" >&5
4719 echo "${ECHO_T}yes" >&6
4720 else
4721 echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6
4723 fi
4724
4725
4726 enablestring=
4727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4728 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4729 no_cache=0
4730 # Check whether --enable-dynlib or --disable-dynlib was given.
4731 if test "${enable_dynlib+set}" = set; then
4732 enableval="$enable_dynlib"
4733
4734 if test "$enableval" = yes; then
4735 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4736 else
4737 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4738 fi
4739
4740 else
4741
4742 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4743 if test "x$LINE" != x ; then
4744 eval "DEFAULT_$LINE"
4745 else
4746 no_cache=1
4747 fi
4748
4749 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4750
4751 fi;
4752
4753 eval "$ac_cv_use_dynlib"
4754 if test "$no_cache" != 1; then
4755 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4756 fi
4757
4758 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4759 echo "$as_me:$LINENO: result: yes" >&5
4760 echo "${ECHO_T}yes" >&6
4761 else
4762 echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4764 fi
4765
4766
4767 enablestring=
4768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4769 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4770 no_cache=0
4771 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4772 if test "${enable_dynamicloader+set}" = set; then
4773 enableval="$enable_dynamicloader"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4777 else
4778 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4779 fi
4780
4781 else
4782
4783 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4791
4792 fi;
4793
4794 eval "$ac_cv_use_dynamicloader"
4795 if test "$no_cache" != 1; then
4796 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4797 fi
4798
4799 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4800 echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6
4802 else
4803 echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6
4805 fi
4806
4807
4808 enablestring=
4809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4810 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4811 no_cache=0
4812 # Check whether --enable-exceptions or --disable-exceptions was given.
4813 if test "${enable_exceptions+set}" = set; then
4814 enableval="$enable_exceptions"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4818 else
4819 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4820 fi
4821
4822 else
4823
4824 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4832
4833 fi;
4834
4835 eval "$ac_cv_use_exceptions"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_EXCEPTIONS" = yes; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4843 else
4844 echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4846 fi
4847
4848
4849 enablestring=
4850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4851 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4852 no_cache=0
4853 # Check whether --enable-ffile or --disable-ffile was given.
4854 if test "${enable_ffile+set}" = set; then
4855 enableval="$enable_ffile"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_ffile='wxUSE_FFILE=yes'
4859 else
4860 ac_cv_use_ffile='wxUSE_FFILE=no'
4861 fi
4862
4863 else
4864
4865 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4873
4874 fi;
4875
4876 eval "$ac_cv_use_ffile"
4877 if test "$no_cache" != 1; then
4878 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4879 fi
4880
4881 if test "$wxUSE_FFILE" = yes; then
4882 echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889
4890 enablestring=
4891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4892 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4893 no_cache=0
4894 # Check whether --enable-file or --disable-file was given.
4895 if test "${enable_file+set}" = set; then
4896 enableval="$enable_file"
4897
4898 if test "$enableval" = yes; then
4899 ac_cv_use_file='wxUSE_FILE=yes'
4900 else
4901 ac_cv_use_file='wxUSE_FILE=no'
4902 fi
4903
4904 else
4905
4906 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
4913 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4914
4915 fi;
4916
4917 eval "$ac_cv_use_file"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_FILE" = yes; then
4923 echo "$as_me:$LINENO: result: yes" >&5
4924 echo "${ECHO_T}yes" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4928 fi
4929
4930
4931 enablestring=
4932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4933 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4934 no_cache=0
4935 # Check whether --enable-filesystem or --disable-filesystem was given.
4936 if test "${enable_filesystem+set}" = set; then
4937 enableval="$enable_filesystem"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4941 else
4942 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4943 fi
4944
4945 else
4946
4947 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4955
4956 fi;
4957
4958 eval "$ac_cv_use_filesystem"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_FILESYSTEM" = yes; then
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4966 else
4967 echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4969 fi
4970
4971
4972 enablestring=
4973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4974 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4975 no_cache=0
4976 # Check whether --enable-fontmap or --disable-fontmap was given.
4977 if test "${enable_fontmap+set}" = set; then
4978 enableval="$enable_fontmap"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4982 else
4983 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4984 fi
4985
4986 else
4987
4988 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4996
4997 fi;
4998
4999 eval "$ac_cv_use_fontmap"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_FONTMAP" = yes; then
5005 echo "$as_me:$LINENO: result: yes" >&5
5006 echo "${ECHO_T}yes" >&6
5007 else
5008 echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6
5010 fi
5011
5012
5013 enablestring=
5014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5015 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5016 no_cache=0
5017 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5018 if test "${enable_fs_inet+set}" = set; then
5019 enableval="$enable_fs_inet"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5023 else
5024 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5025 fi
5026
5027 else
5028
5029 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5037
5038 fi;
5039
5040 eval "$ac_cv_use_fs_inet"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_FS_INET" = yes; then
5046 echo "$as_me:$LINENO: result: yes" >&5
5047 echo "${ECHO_T}yes" >&6
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5051 fi
5052
5053
5054 enablestring=
5055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5056 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5057 no_cache=0
5058 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5059 if test "${enable_fs_zip+set}" = set; then
5060 enableval="$enable_fs_zip"
5061
5062 if test "$enableval" = yes; then
5063 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5064 else
5065 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5066 fi
5067
5068 else
5069
5070 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5071 if test "x$LINE" != x ; then
5072 eval "DEFAULT_$LINE"
5073 else
5074 no_cache=1
5075 fi
5076
5077 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5078
5079 fi;
5080
5081 eval "$ac_cv_use_fs_zip"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_FS_ZIP" = yes; then
5087 echo "$as_me:$LINENO: result: yes" >&5
5088 echo "${ECHO_T}yes" >&6
5089 else
5090 echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5092 fi
5093
5094
5095 enablestring=
5096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5097 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5098 no_cache=0
5099 # Check whether --enable-geometry or --disable-geometry was given.
5100 if test "${enable_geometry+set}" = set; then
5101 enableval="$enable_geometry"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5105 else
5106 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5107 fi
5108
5109 else
5110
5111 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5119
5120 fi;
5121
5122 eval "$ac_cv_use_geometry"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_GEOMETRY" = yes; then
5128 echo "$as_me:$LINENO: result: yes" >&5
5129 echo "${ECHO_T}yes" >&6
5130 else
5131 echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5133 fi
5134
5135
5136 enablestring=
5137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5138 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5139 no_cache=0
5140 # Check whether --enable-log or --disable-log was given.
5141 if test "${enable_log+set}" = set; then
5142 enableval="$enable_log"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_log='wxUSE_LOG=yes'
5146 else
5147 ac_cv_use_log='wxUSE_LOG=no'
5148 fi
5149
5150 else
5151
5152 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5160
5161 fi;
5162
5163 eval "$ac_cv_use_log"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_LOG" = yes; then
5169 echo "$as_me:$LINENO: result: yes" >&5
5170 echo "${ECHO_T}yes" >&6
5171 else
5172 echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5174 fi
5175
5176
5177 enablestring=
5178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5179 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5180 no_cache=0
5181 # Check whether --enable-longlong or --disable-longlong was given.
5182 if test "${enable_longlong+set}" = set; then
5183 enableval="$enable_longlong"
5184
5185 if test "$enableval" = yes; then
5186 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5187 else
5188 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5189 fi
5190
5191 else
5192
5193 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5201
5202 fi;
5203
5204 eval "$ac_cv_use_longlong"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_LONGLONG" = yes; then
5210 echo "$as_me:$LINENO: result: yes" >&5
5211 echo "${ECHO_T}yes" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5215 fi
5216
5217
5218 enablestring=
5219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5220 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5221 no_cache=0
5222 # Check whether --enable-mimetype or --disable-mimetype was given.
5223 if test "${enable_mimetype+set}" = set; then
5224 enableval="$enable_mimetype"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5228 else
5229 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5230 fi
5231
5232 else
5233
5234 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5242
5243 fi;
5244
5245 eval "$ac_cv_use_mimetype"
5246 if test "$no_cache" != 1; then
5247 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5248 fi
5249
5250 if test "$wxUSE_MIMETYPE" = yes; then
5251 echo "$as_me:$LINENO: result: yes" >&5
5252 echo "${ECHO_T}yes" >&6
5253 else
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258
5259 enablestring=
5260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5261 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5262 no_cache=0
5263 # Check whether --enable-mslu or --disable-mslu was given.
5264 if test "${enable_mslu+set}" = set; then
5265 enableval="$enable_mslu"
5266
5267 if test "$enableval" = yes; then
5268 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5269 else
5270 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5271 fi
5272
5273 else
5274
5275 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5276 if test "x$LINE" != x ; then
5277 eval "DEFAULT_$LINE"
5278 else
5279 no_cache=1
5280 fi
5281
5282 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5283
5284 fi;
5285
5286 eval "$ac_cv_use_mslu"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_UNICODE_MSLU" = yes; then
5292 echo "$as_me:$LINENO: result: yes" >&5
5293 echo "${ECHO_T}yes" >&6
5294 else
5295 echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5297 fi
5298
5299
5300 enablestring=
5301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5302 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5303 no_cache=0
5304 # Check whether --enable-snglinst or --disable-snglinst was given.
5305 if test "${enable_snglinst+set}" = set; then
5306 enableval="$enable_snglinst"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5310 else
5311 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5312 fi
5313
5314 else
5315
5316 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5324
5325 fi;
5326
5327 eval "$ac_cv_use_snglinst"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5333 echo "$as_me:$LINENO: result: yes" >&5
5334 echo "${ECHO_T}yes" >&6
5335 else
5336 echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5338 fi
5339
5340
5341 enablestring=
5342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5343 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5344 no_cache=0
5345 # Check whether --enable-streams or --disable-streams was given.
5346 if test "${enable_streams+set}" = set; then
5347 enableval="$enable_streams"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_streams='wxUSE_STREAMS=yes'
5351 else
5352 ac_cv_use_streams='wxUSE_STREAMS=no'
5353 fi
5354
5355 else
5356
5357 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5365
5366 fi;
5367
5368 eval "$ac_cv_use_streams"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_STREAMS" = yes; then
5374 echo "$as_me:$LINENO: result: yes" >&5
5375 echo "${ECHO_T}yes" >&6
5376 else
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5379 fi
5380
5381
5382 enablestring=
5383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5384 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5385 no_cache=0
5386 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5387 if test "${enable_std_iostreams+set}" = set; then
5388 enableval="$enable_std_iostreams"
5389
5390 if test "$enableval" = yes; then
5391 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5392 else
5393 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5394 fi
5395
5396 else
5397
5398 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5406
5407 fi;
5408
5409 eval "$ac_cv_use_std_iostreams"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_STD_IOSTREAM" = yes; then
5415 echo "$as_me:$LINENO: result: yes" >&5
5416 echo "${ECHO_T}yes" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6
5420 fi
5421
5422
5423 enablestring=
5424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5425 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5426 no_cache=0
5427 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5428 if test "${enable_stopwatch+set}" = set; then
5429 enableval="$enable_stopwatch"
5430
5431 if test "$enableval" = yes; then
5432 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5433 else
5434 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5435 fi
5436
5437 else
5438
5439 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5440 if test "x$LINE" != x ; then
5441 eval "DEFAULT_$LINE"
5442 else
5443 no_cache=1
5444 fi
5445
5446 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5447
5448 fi;
5449
5450 eval "$ac_cv_use_stopwatch"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_STOPWATCH" = yes; then
5456 echo "$as_me:$LINENO: result: yes" >&5
5457 echo "${ECHO_T}yes" >&6
5458 else
5459 echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5461 fi
5462
5463
5464 enablestring=
5465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5466 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5467 no_cache=0
5468 # Check whether --enable-system_options or --disable-system_options was given.
5469 if test "${enable_system_options+set}" = set; then
5470 enableval="$enable_system_options"
5471
5472 if test "$enableval" = yes; then
5473 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5474 else
5475 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5476 fi
5477
5478 else
5479
5480 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5481 if test "x$LINE" != x ; then
5482 eval "DEFAULT_$LINE"
5483 else
5484 no_cache=1
5485 fi
5486
5487 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5488
5489 fi;
5490
5491 eval "$ac_cv_use_system_options"
5492 if test "$no_cache" != 1; then
5493 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5494 fi
5495
5496 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5497 echo "$as_me:$LINENO: result: yes" >&5
5498 echo "${ECHO_T}yes" >&6
5499 else
5500 echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5502 fi
5503
5504
5505 enablestring=
5506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5507 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5508 no_cache=0
5509 # Check whether --enable-textbuf or --disable-textbuf was given.
5510 if test "${enable_textbuf+set}" = set; then
5511 enableval="$enable_textbuf"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5515 else
5516 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5517 fi
5518
5519 else
5520
5521 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5529
5530 fi;
5531
5532 eval "$ac_cv_use_textbuf"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_TEXTBUFFER" = yes; then
5538 echo "$as_me:$LINENO: result: yes" >&5
5539 echo "${ECHO_T}yes" >&6
5540 else
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5543 fi
5544
5545
5546 enablestring=
5547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5548 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5549 no_cache=0
5550 # Check whether --enable-textfile or --disable-textfile was given.
5551 if test "${enable_textfile+set}" = set; then
5552 enableval="$enable_textfile"
5553
5554 if test "$enableval" = yes; then
5555 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5556 else
5557 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5558 fi
5559
5560 else
5561
5562 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5563 if test "x$LINE" != x ; then
5564 eval "DEFAULT_$LINE"
5565 else
5566 no_cache=1
5567 fi
5568
5569 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5570
5571 fi;
5572
5573 eval "$ac_cv_use_textfile"
5574 if test "$no_cache" != 1; then
5575 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5576 fi
5577
5578 if test "$wxUSE_TEXTFILE" = yes; then
5579 echo "$as_me:$LINENO: result: yes" >&5
5580 echo "${ECHO_T}yes" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5584 fi
5585
5586
5587 enablestring=
5588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5589 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5590 no_cache=0
5591 # Check whether --enable-timer or --disable-timer was given.
5592 if test "${enable_timer+set}" = set; then
5593 enableval="$enable_timer"
5594
5595 if test "$enableval" = yes; then
5596 ac_cv_use_timer='wxUSE_TIMER=yes'
5597 else
5598 ac_cv_use_timer='wxUSE_TIMER=no'
5599 fi
5600
5601 else
5602
5603 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5604 if test "x$LINE" != x ; then
5605 eval "DEFAULT_$LINE"
5606 else
5607 no_cache=1
5608 fi
5609
5610 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5611
5612 fi;
5613
5614 eval "$ac_cv_use_timer"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_TIMER" = yes; then
5620 echo "$as_me:$LINENO: result: yes" >&5
5621 echo "${ECHO_T}yes" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5625 fi
5626
5627
5628 enablestring=
5629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5630 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5631 no_cache=0
5632 # Check whether --enable-unicode or --disable-unicode was given.
5633 if test "${enable_unicode+set}" = set; then
5634 enableval="$enable_unicode"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5638 else
5639 ac_cv_use_unicode='wxUSE_UNICODE=no'
5640 fi
5641
5642 else
5643
5644 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5652
5653 fi;
5654
5655 eval "$ac_cv_use_unicode"
5656 if test "$no_cache" != 1; then
5657 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5658 fi
5659
5660 if test "$wxUSE_UNICODE" = yes; then
5661 echo "$as_me:$LINENO: result: yes" >&5
5662 echo "${ECHO_T}yes" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668
5669 enablestring=
5670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5671 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5672 no_cache=0
5673 # Check whether --enable-sound or --disable-sound was given.
5674 if test "${enable_sound+set}" = set; then
5675 enableval="$enable_sound"
5676
5677 if test "$enableval" = yes; then
5678 ac_cv_use_sound='wxUSE_SOUND=yes'
5679 else
5680 ac_cv_use_sound='wxUSE_SOUND=no'
5681 fi
5682
5683 else
5684
5685 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5693
5694 fi;
5695
5696 eval "$ac_cv_use_sound"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_SOUND" = yes; then
5702 echo "$as_me:$LINENO: result: yes" >&5
5703 echo "${ECHO_T}yes" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709
5710 enablestring=
5711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5712 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5713 no_cache=0
5714 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5715 if test "${enable_wxprintfv+set}" = set; then
5716 enableval="$enable_wxprintfv"
5717
5718 if test "$enableval" = yes; then
5719 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5720 else
5721 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5722 fi
5723
5724 else
5725
5726 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5734
5735 fi;
5736
5737 eval "$ac_cv_use_wxprintfv"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5748 fi
5749
5750
5751 enablestring=
5752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5753 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5754 no_cache=0
5755 # Check whether --enable-zipstream or --disable-zipstream was given.
5756 if test "${enable_zipstream+set}" = set; then
5757 enableval="$enable_zipstream"
5758
5759 if test "$enableval" = yes; then
5760 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5761 else
5762 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5763 fi
5764
5765 else
5766
5767 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5768 if test "x$LINE" != x ; then
5769 eval "DEFAULT_$LINE"
5770 else
5771 no_cache=1
5772 fi
5773
5774 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5775
5776 fi;
5777
5778 eval "$ac_cv_use_zipstream"
5779 if test "$no_cache" != 1; then
5780 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5781 fi
5782
5783 if test "$wxUSE_ZIPSTREAM" = yes; then
5784 echo "$as_me:$LINENO: result: yes" >&5
5785 echo "${ECHO_T}yes" >&6
5786 else
5787 echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5789 fi
5790
5791
5792 enablestring=
5793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5794 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5795 no_cache=0
5796 # Check whether --enable-gzstream or --disable-gzstream was given.
5797 if test "${enable_gzstream+set}" = set; then
5798 enableval="$enable_gzstream"
5799
5800 if test "$enableval" = yes; then
5801 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5802 else
5803 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5804 fi
5805
5806 else
5807
5808 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5816
5817 fi;
5818
5819 eval "$ac_cv_use_gzstream"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_GZSTREAM" = yes; then
5825 echo "$as_me:$LINENO: result: yes" >&5
5826 echo "${ECHO_T}yes" >&6
5827 else
5828 echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6
5830 fi
5831
5832
5833
5834 enablestring=
5835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5836 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5837 no_cache=0
5838 # Check whether --enable-url or --disable-url was given.
5839 if test "${enable_url+set}" = set; then
5840 enableval="$enable_url"
5841
5842 if test "$enableval" = yes; then
5843 ac_cv_use_url='wxUSE_URL=yes'
5844 else
5845 ac_cv_use_url='wxUSE_URL=no'
5846 fi
5847
5848 else
5849
5850 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5858
5859 fi;
5860
5861 eval "$ac_cv_use_url"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_URL" = yes; then
5867 echo "$as_me:$LINENO: result: yes" >&5
5868 echo "${ECHO_T}yes" >&6
5869 else
5870 echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6
5872 fi
5873
5874
5875 enablestring=
5876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5877 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5878 no_cache=0
5879 # Check whether --enable-protocol or --disable-protocol was given.
5880 if test "${enable_protocol+set}" = set; then
5881 enableval="$enable_protocol"
5882
5883 if test "$enableval" = yes; then
5884 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5885 else
5886 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5887 fi
5888
5889 else
5890
5891 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5899
5900 fi;
5901
5902 eval "$ac_cv_use_protocol"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_PROTOCOL" = yes; then
5908 echo "$as_me:$LINENO: result: yes" >&5
5909 echo "${ECHO_T}yes" >&6
5910 else
5911 echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6
5913 fi
5914
5915
5916 enablestring=
5917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5918 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5919 no_cache=0
5920 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5921 if test "${enable_protocol_http+set}" = set; then
5922 enableval="$enable_protocol_http"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5926 else
5927 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5928 fi
5929
5930 else
5931
5932 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5940
5941 fi;
5942
5943 eval "$ac_cv_use_protocol_http"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5949 echo "$as_me:$LINENO: result: yes" >&5
5950 echo "${ECHO_T}yes" >&6
5951 else
5952 echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5954 fi
5955
5956
5957 enablestring=
5958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5959 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5960 no_cache=0
5961 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5962 if test "${enable_protocol_ftp+set}" = set; then
5963 enableval="$enable_protocol_ftp"
5964
5965 if test "$enableval" = yes; then
5966 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5967 else
5968 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5969 fi
5970
5971 else
5972
5973 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5981
5982 fi;
5983
5984 eval "$ac_cv_use_protocol_ftp"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5990 echo "$as_me:$LINENO: result: yes" >&5
5991 echo "${ECHO_T}yes" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5995 fi
5996
5997
5998 enablestring=
5999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6000 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6001 no_cache=0
6002 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6003 if test "${enable_protocol_file+set}" = set; then
6004 enableval="$enable_protocol_file"
6005
6006 if test "$enableval" = yes; then
6007 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6008 else
6009 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6010 fi
6011
6012 else
6013
6014 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6022
6023 fi;
6024
6025 eval "$ac_cv_use_protocol_file"
6026 if test "$no_cache" != 1; then
6027 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6028 fi
6029
6030 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6031 echo "$as_me:$LINENO: result: yes" >&5
6032 echo "${ECHO_T}yes" >&6
6033 else
6034 echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6
6036 fi
6037
6038
6039
6040
6041
6042 enablestring=
6043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6044 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6045 no_cache=0
6046 # Check whether --enable-threads or --disable-threads was given.
6047 if test "${enable_threads+set}" = set; then
6048 enableval="$enable_threads"
6049
6050 if test "$enableval" = yes; then
6051 ac_cv_use_threads='wxUSE_THREADS=yes'
6052 else
6053 ac_cv_use_threads='wxUSE_THREADS=no'
6054 fi
6055
6056 else
6057
6058 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6059 if test "x$LINE" != x ; then
6060 eval "DEFAULT_$LINE"
6061 else
6062 no_cache=1
6063 fi
6064
6065 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6066
6067 fi;
6068
6069 eval "$ac_cv_use_threads"
6070 if test "$no_cache" != 1; then
6071 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6072 fi
6073
6074 if test "$wxUSE_THREADS" = yes; then
6075 echo "$as_me:$LINENO: result: yes" >&5
6076 echo "${ECHO_T}yes" >&6
6077 else
6078 echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6080 fi
6081
6082
6083 if test "$wxUSE_GUI" = "yes"; then
6084
6085
6086
6087 enablestring=
6088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6089 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6090 no_cache=0
6091 # Check whether --enable-docview or --disable-docview was given.
6092 if test "${enable_docview+set}" = set; then
6093 enableval="$enable_docview"
6094
6095 if test "$enableval" = yes; then
6096 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6097 else
6098 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6099 fi
6100
6101 else
6102
6103 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6104 if test "x$LINE" != x ; then
6105 eval "DEFAULT_$LINE"
6106 else
6107 no_cache=1
6108 fi
6109
6110 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6111
6112 fi;
6113
6114 eval "$ac_cv_use_docview"
6115 if test "$no_cache" != 1; then
6116 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6117 fi
6118
6119 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6120 echo "$as_me:$LINENO: result: yes" >&5
6121 echo "${ECHO_T}yes" >&6
6122 else
6123 echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6
6125 fi
6126
6127
6128 enablestring=
6129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6130 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6131 no_cache=0
6132 # Check whether --enable-help or --disable-help was given.
6133 if test "${enable_help+set}" = set; then
6134 enableval="$enable_help"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_help='wxUSE_HELP=yes'
6138 else
6139 ac_cv_use_help='wxUSE_HELP=no'
6140 fi
6141
6142 else
6143
6144 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6152
6153 fi;
6154
6155 eval "$ac_cv_use_help"
6156 if test "$no_cache" != 1; then
6157 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6158 fi
6159
6160 if test "$wxUSE_HELP" = yes; then
6161 echo "$as_me:$LINENO: result: yes" >&5
6162 echo "${ECHO_T}yes" >&6
6163 else
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6166 fi
6167
6168
6169 enablestring=
6170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6171 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6172 no_cache=0
6173 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6174 if test "${enable_mshtmlhelp+set}" = set; then
6175 enableval="$enable_mshtmlhelp"
6176
6177 if test "$enableval" = yes; then
6178 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6179 else
6180 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6181 fi
6182
6183 else
6184
6185 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6186 if test "x$LINE" != x ; then
6187 eval "DEFAULT_$LINE"
6188 else
6189 no_cache=1
6190 fi
6191
6192 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6193
6194 fi;
6195
6196 eval "$ac_cv_use_mshtmlhelp"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_MS_HTML_HELP" = yes; then
6202 echo "$as_me:$LINENO: result: yes" >&5
6203 echo "${ECHO_T}yes" >&6
6204 else
6205 echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6
6207 fi
6208
6209
6210 enablestring=
6211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6212 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6213 no_cache=0
6214 # Check whether --enable-html or --disable-html was given.
6215 if test "${enable_html+set}" = set; then
6216 enableval="$enable_html"
6217
6218 if test "$enableval" = yes; then
6219 ac_cv_use_html='wxUSE_HTML=yes'
6220 else
6221 ac_cv_use_html='wxUSE_HTML=no'
6222 fi
6223
6224 else
6225
6226 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6227 if test "x$LINE" != x ; then
6228 eval "DEFAULT_$LINE"
6229 else
6230 no_cache=1
6231 fi
6232
6233 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6234
6235 fi;
6236
6237 eval "$ac_cv_use_html"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_HTML" = yes; then
6243 echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6
6245 else
6246 echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 fi
6249
6250
6251 enablestring=
6252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6253 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6254 no_cache=0
6255 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6256 if test "${enable_htmlhelp+set}" = set; then
6257 enableval="$enable_htmlhelp"
6258
6259 if test "$enableval" = yes; then
6260 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6261 else
6262 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6263 fi
6264
6265 else
6266
6267 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6268 if test "x$LINE" != x ; then
6269 eval "DEFAULT_$LINE"
6270 else
6271 no_cache=1
6272 fi
6273
6274 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6275
6276 fi;
6277
6278 eval "$ac_cv_use_htmlhelp"
6279 if test "$no_cache" != 1; then
6280 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6281 fi
6282
6283 if test "$wxUSE_WXHTML_HELP" = yes; then
6284 echo "$as_me:$LINENO: result: yes" >&5
6285 echo "${ECHO_T}yes" >&6
6286 else
6287 echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6
6289 fi
6290
6291
6292 enablestring=
6293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6294 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6295 no_cache=0
6296 # Check whether --enable-constraints or --disable-constraints was given.
6297 if test "${enable_constraints+set}" = set; then
6298 enableval="$enable_constraints"
6299
6300 if test "$enableval" = yes; then
6301 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6302 else
6303 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6304 fi
6305
6306 else
6307
6308 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6316
6317 fi;
6318
6319 eval "$ac_cv_use_constraints"
6320 if test "$no_cache" != 1; then
6321 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6322 fi
6323
6324 if test "$wxUSE_CONSTRAINTS" = yes; then
6325 echo "$as_me:$LINENO: result: yes" >&5
6326 echo "${ECHO_T}yes" >&6
6327 else
6328 echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6
6330 fi
6331
6332
6333 enablestring=
6334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6335 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6336 no_cache=0
6337 # Check whether --enable-printarch or --disable-printarch was given.
6338 if test "${enable_printarch+set}" = set; then
6339 enableval="$enable_printarch"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6343 else
6344 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6345 fi
6346
6347 else
6348
6349 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6357
6358 fi;
6359
6360 eval "$ac_cv_use_printarch"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6366 echo "$as_me:$LINENO: result: yes" >&5
6367 echo "${ECHO_T}yes" >&6
6368 else
6369 echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6371 fi
6372
6373
6374 enablestring=
6375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6376 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6377 no_cache=0
6378 # Check whether --enable-mdi or --disable-mdi was given.
6379 if test "${enable_mdi+set}" = set; then
6380 enableval="$enable_mdi"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6384 else
6385 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6386 fi
6387
6388 else
6389
6390 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6398
6399 fi;
6400
6401 eval "$ac_cv_use_mdi"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6407 echo "$as_me:$LINENO: result: yes" >&5
6408 echo "${ECHO_T}yes" >&6
6409 else
6410 echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412 fi
6413
6414
6415 enablestring=
6416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6417 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6418 no_cache=0
6419 # Check whether --enable-loggui or --disable-loggui was given.
6420 if test "${enable_loggui+set}" = set; then
6421 enableval="$enable_loggui"
6422
6423 if test "$enableval" = yes; then
6424 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6425 else
6426 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6427 fi
6428
6429 else
6430
6431 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6439
6440 fi;
6441
6442 eval "$ac_cv_use_loggui"
6443 if test "$no_cache" != 1; then
6444 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6445 fi
6446
6447 if test "$wxUSE_LOGGUI" = yes; then
6448 echo "$as_me:$LINENO: result: yes" >&5
6449 echo "${ECHO_T}yes" >&6
6450 else
6451 echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6453 fi
6454
6455
6456 enablestring=
6457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6458 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6459 no_cache=0
6460 # Check whether --enable-logwin or --disable-logwin was given.
6461 if test "${enable_logwin+set}" = set; then
6462 enableval="$enable_logwin"
6463
6464 if test "$enableval" = yes; then
6465 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6466 else
6467 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6468 fi
6469
6470 else
6471
6472 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6480
6481 fi;
6482
6483 eval "$ac_cv_use_logwin"
6484 if test "$no_cache" != 1; then
6485 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6486 fi
6487
6488 if test "$wxUSE_LOGWINDOW" = yes; then
6489 echo "$as_me:$LINENO: result: yes" >&5
6490 echo "${ECHO_T}yes" >&6
6491 else
6492 echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6494 fi
6495
6496
6497 enablestring=
6498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6499 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6500 no_cache=0
6501 # Check whether --enable-logdialog or --disable-logdialog was given.
6502 if test "${enable_logdialog+set}" = set; then
6503 enableval="$enable_logdialog"
6504
6505 if test "$enableval" = yes; then
6506 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6507 else
6508 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6509 fi
6510
6511 else
6512
6513 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6521
6522 fi;
6523
6524 eval "$ac_cv_use_logdialog"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_LOGDIALOG" = yes; then
6530 echo "$as_me:$LINENO: result: yes" >&5
6531 echo "${ECHO_T}yes" >&6
6532 else
6533 echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6
6535 fi
6536
6537
6538
6539 enablestring=
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6541 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6542 no_cache=0
6543 # Check whether --enable-postscript or --disable-postscript was given.
6544 if test "${enable_postscript+set}" = set; then
6545 enableval="$enable_postscript"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6549 else
6550 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6551 fi
6552
6553 else
6554
6555 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6563
6564 fi;
6565
6566 eval "$ac_cv_use_postscript"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_POSTSCRIPT" = yes; then
6572 echo "$as_me:$LINENO: result: yes" >&5
6573 echo "${ECHO_T}yes" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6577 fi
6578
6579
6580
6581
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6585 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-prologio or --disable-prologio was given.
6588 if test "${enable_prologio+set}" = set; then
6589 enableval="$enable_prologio"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6593 else
6594 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6595 fi
6596
6597 else
6598
6599 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6607
6608 fi;
6609
6610 eval "$ac_cv_use_prologio"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_PROLOGIO" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617 echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6626 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-resources or --disable-resources was given.
6629 if test "${enable_resources+set}" = set; then
6630 enableval="$enable_resources"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6634 else
6635 ac_cv_use_resources='wxUSE_RESOURCES=no'
6636 fi
6637
6638 else
6639
6640 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6648
6649 fi;
6650
6651 eval "$ac_cv_use_resources"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_RESOURCES" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658 echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6
6662 fi
6663
6664
6665
6666
6667 enablestring=
6668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6669 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6670 no_cache=0
6671 # Check whether --enable-clipboard or --disable-clipboard was given.
6672 if test "${enable_clipboard+set}" = set; then
6673 enableval="$enable_clipboard"
6674
6675 if test "$enableval" = yes; then
6676 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6677 else
6678 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6679 fi
6680
6681 else
6682
6683 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6684 if test "x$LINE" != x ; then
6685 eval "DEFAULT_$LINE"
6686 else
6687 no_cache=1
6688 fi
6689
6690 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6691
6692 fi;
6693
6694 eval "$ac_cv_use_clipboard"
6695 if test "$no_cache" != 1; then
6696 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6697 fi
6698
6699 if test "$wxUSE_CLIPBOARD" = yes; then
6700 echo "$as_me:$LINENO: result: yes" >&5
6701 echo "${ECHO_T}yes" >&6
6702 else
6703 echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6
6705 fi
6706
6707
6708 enablestring=
6709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6710 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6711 no_cache=0
6712 # Check whether --enable-dnd or --disable-dnd was given.
6713 if test "${enable_dnd+set}" = set; then
6714 enableval="$enable_dnd"
6715
6716 if test "$enableval" = yes; then
6717 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6718 else
6719 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6720 fi
6721
6722 else
6723
6724 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6725 if test "x$LINE" != x ; then
6726 eval "DEFAULT_$LINE"
6727 else
6728 no_cache=1
6729 fi
6730
6731 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6732
6733 fi;
6734
6735 eval "$ac_cv_use_dnd"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6741 echo "$as_me:$LINENO: result: yes" >&5
6742 echo "${ECHO_T}yes" >&6
6743 else
6744 echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6
6746 fi
6747
6748
6749 enablestring=
6750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6751 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6752 no_cache=0
6753 # Check whether --enable-metafile or --disable-metafile was given.
6754 if test "${enable_metafile+set}" = set; then
6755 enableval="$enable_metafile"
6756
6757 if test "$enableval" = yes; then
6758 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6759 else
6760 ac_cv_use_metafile='wxUSE_METAFILE=no'
6761 fi
6762
6763 else
6764
6765 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6773
6774 fi;
6775
6776 eval "$ac_cv_use_metafile"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_METAFILE" = yes; then
6782 echo "$as_me:$LINENO: result: yes" >&5
6783 echo "${ECHO_T}yes" >&6
6784 else
6785 echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6
6787 fi
6788
6789
6790
6791
6792
6793 enablestring=
6794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6795 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6796 no_cache=0
6797 # Check whether --enable-controls or --disable-controls was given.
6798 if test "${enable_controls+set}" = set; then
6799 enableval="$enable_controls"
6800
6801 if test "$enableval" = yes; then
6802 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6803 else
6804 ac_cv_use_controls='wxUSE_CONTROLS=no'
6805 fi
6806
6807 else
6808
6809 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6810 if test "x$LINE" != x ; then
6811 eval "DEFAULT_$LINE"
6812 else
6813 no_cache=1
6814 fi
6815
6816 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6817
6818 fi;
6819
6820 eval "$ac_cv_use_controls"
6821 if test "$no_cache" != 1; then
6822 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6823 fi
6824
6825 if test "$wxUSE_CONTROLS" = yes; then
6826 echo "$as_me:$LINENO: result: yes" >&5
6827 echo "${ECHO_T}yes" >&6
6828 else
6829 echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6
6831 fi
6832
6833
6834 if test "$wxUSE_CONTROLS" = "yes"; then
6835 DEFAULT_wxUSE_ACCEL=yes
6836 DEFAULT_wxUSE_BMPBUTTON=yes
6837 DEFAULT_wxUSE_BUTTON=yes
6838 DEFAULT_wxUSE_CALCTRL=no
6839 DEFAULT_wxUSE_CARET=yes
6840 DEFAULT_wxUSE_COMBOBOX=yes
6841 DEFAULT_wxUSE_CHECKBOX=yes
6842 DEFAULT_wxUSE_CHECKLISTBOX=yes
6843 DEFAULT_wxUSE_CHOICE=yes
6844 DEFAULT_wxUSE_GAUGE=yes
6845 DEFAULT_wxUSE_GRID=yes
6846 DEFAULT_wxUSE_IMAGLIST=yes
6847 DEFAULT_wxUSE_LISTBOOK=yes
6848 DEFAULT_wxUSE_LISTBOX=yes
6849 DEFAULT_wxUSE_LISTCTRL=yes
6850 DEFAULT_wxUSE_NOTEBOOK=yes
6851 DEFAULT_wxUSE_RADIOBOX=yes
6852 DEFAULT_wxUSE_RADIOBTN=yes
6853 DEFAULT_wxUSE_SASH=yes
6854 DEFAULT_wxUSE_SCROLLBAR=yes
6855 DEFAULT_wxUSE_SLIDER=yes
6856 DEFAULT_wxUSE_SPINBTN=yes
6857 DEFAULT_wxUSE_SPINCTRL=yes
6858 DEFAULT_wxUSE_SPLITTER=yes
6859 DEFAULT_wxUSE_STATBMP=yes
6860 DEFAULT_wxUSE_STATBOX=yes
6861 DEFAULT_wxUSE_STATLINE=yes
6862 DEFAULT_wxUSE_STATUSBAR=yes
6863 DEFAULT_wxUSE_TAB_DIALOG=yes
6864 DEFAULT_wxUSE_TOGGLEBTN=yes
6865 DEFAULT_wxUSE_TOOLBAR=yes
6866 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6867 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6868 DEFAULT_wxUSE_TOOLTIPS=yes
6869 DEFAULT_wxUSE_TREECTRL=yes
6870 DEFAULT_wxUSE_POPUPWIN=yes
6871 DEFAULT_wxUSE_TIPWINDOW=yes
6872 elif test "$wxUSE_CONTROLS" = "no"; then
6873 DEFAULT_wxUSE_ACCEL=no
6874 DEFAULT_wxUSE_BMPBUTTON=no
6875 DEFAULT_wxUSE_BUTTON=no
6876 DEFAULT_wxUSE_CALCTRL=no
6877 DEFAULT_wxUSE_CARET=no
6878 DEFAULT_wxUSE_COMBOBOX=no
6879 DEFAULT_wxUSE_CHECKBOX=no
6880 DEFAULT_wxUSE_CHECKLISTBOX=no
6881 DEFAULT_wxUSE_CHOICE=no
6882 DEFAULT_wxUSE_GAUGE=no
6883 DEFAULT_wxUSE_GRID=no
6884 DEFAULT_wxUSE_IMAGLIST=no
6885 DEFAULT_wxUSE_LISTBOOK=no
6886 DEFAULT_wxUSE_LISTBOX=no
6887 DEFAULT_wxUSE_LISTCTRL=no
6888 DEFAULT_wxUSE_NOTEBOOK=no
6889 DEFAULT_wxUSE_RADIOBOX=no
6890 DEFAULT_wxUSE_RADIOBTN=no
6891 DEFAULT_wxUSE_SASH=no
6892 DEFAULT_wxUSE_SCROLLBAR=no
6893 DEFAULT_wxUSE_SLIDER=no
6894 DEFAULT_wxUSE_SPINBTN=no
6895 DEFAULT_wxUSE_SPINCTRL=no
6896 DEFAULT_wxUSE_SPLITTER=no
6897 DEFAULT_wxUSE_STATBMP=no
6898 DEFAULT_wxUSE_STATBOX=no
6899 DEFAULT_wxUSE_STATLINE=no
6900 DEFAULT_wxUSE_STATUSBAR=no
6901 DEFAULT_wxUSE_TAB_DIALOG=no
6902 DEFAULT_wxUSE_TOGGLEBTN=no
6903 DEFAULT_wxUSE_TOOLBAR=no
6904 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6905 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6906 DEFAULT_wxUSE_TOOLTIPS=no
6907 DEFAULT_wxUSE_TREECTRL=no
6908 DEFAULT_wxUSE_POPUPWIN=no
6909 DEFAULT_wxUSE_TIPWINDOW=no
6910 fi
6911
6912 ## FIXME: This is a blatant hack
6913 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6914 wxUSE_PRINTING_ARCHITECTURE=no
6915 wxUSE_DRAG_AND_DROP=no
6916 # Generic notebook requires tab dialog
6917 DEFAULT_wxUSE_TABDIALOG=yes
6918 DEFAULT_wxUSE_SCROLLBAR=no
6919 DEFAULT_wxUSE_TOOLTIPS=no
6920 DEFAULT_wxUSE_DRAGIMAGE=no
6921 fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6926 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-accel or --disable-accel was given.
6929 if test "${enable_accel+set}" = set; then
6930 enableval="$enable_accel"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_accel='wxUSE_ACCEL=yes'
6934 else
6935 ac_cv_use_accel='wxUSE_ACCEL=no'
6936 fi
6937
6938 else
6939
6940 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6948
6949 fi;
6950
6951 eval "$ac_cv_use_accel"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_ACCEL" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958 echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6967 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-button or --disable-button was given.
6970 if test "${enable_button+set}" = set; then
6971 enableval="$enable_button"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_button='wxUSE_BUTTON=yes'
6975 else
6976 ac_cv_use_button='wxUSE_BUTTON=no'
6977 fi
6978
6979 else
6980
6981 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6989
6990 fi;
6991
6992 eval "$ac_cv_use_button"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_BUTTON" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999 echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7008 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7011 if test "${enable_bmpbutton+set}" = set; then
7012 enableval="$enable_bmpbutton"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7016 else
7017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7018 fi
7019
7020 else
7021
7022 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7030
7031 fi;
7032
7033 eval "$ac_cv_use_bmpbutton"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_BMPBUTTON" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040 echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7049 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-calendar or --disable-calendar was given.
7052 if test "${enable_calendar+set}" = set; then
7053 enableval="$enable_calendar"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7057 else
7058 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7059 fi
7060
7061 else
7062
7063 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7071
7072 fi;
7073
7074 eval "$ac_cv_use_calendar"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_CALCTRL" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081 echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7090 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-caret or --disable-caret was given.
7093 if test "${enable_caret+set}" = set; then
7094 enableval="$enable_caret"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_caret='wxUSE_CARET=yes'
7098 else
7099 ac_cv_use_caret='wxUSE_CARET=no'
7100 fi
7101
7102 else
7103
7104 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7112
7113 fi;
7114
7115 eval "$ac_cv_use_caret"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CARET" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122 echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7131 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-checkbox or --disable-checkbox was given.
7134 if test "${enable_checkbox+set}" = set; then
7135 enableval="$enable_checkbox"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7139 else
7140 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7141 fi
7142
7143 else
7144
7145 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7153
7154 fi;
7155
7156 eval "$ac_cv_use_checkbox"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_CHECKBOX" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163 echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7172 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-checklst or --disable-checklst was given.
7175 if test "${enable_checklst+set}" = set; then
7176 enableval="$enable_checklst"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7180 else
7181 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7182 fi
7183
7184 else
7185
7186 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7194
7195 fi;
7196
7197 eval "$ac_cv_use_checklst"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_CHECKLST" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204 echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211 enablestring=
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7213 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7214 no_cache=0
7215 # Check whether --enable-choice or --disable-choice was given.
7216 if test "${enable_choice+set}" = set; then
7217 enableval="$enable_choice"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_choice='wxUSE_CHOICE=yes'
7221 else
7222 ac_cv_use_choice='wxUSE_CHOICE=no'
7223 fi
7224
7225 else
7226
7227 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7235
7236 fi;
7237
7238 eval "$ac_cv_use_choice"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_CHOICE" = yes; then
7244 echo "$as_me:$LINENO: result: yes" >&5
7245 echo "${ECHO_T}yes" >&6
7246 else
7247 echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6
7249 fi
7250
7251
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7254 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-combobox or --disable-combobox was given.
7257 if test "${enable_combobox+set}" = set; then
7258 enableval="$enable_combobox"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7262 else
7263 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7264 fi
7265
7266 else
7267
7268 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7276
7277 fi;
7278
7279 eval "$ac_cv_use_combobox"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_COMBOBOX" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286 echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293 enablestring=
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7295 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7296 no_cache=0
7297 # Check whether --enable-display or --disable-display was given.
7298 if test "${enable_display+set}" = set; then
7299 enableval="$enable_display"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_display='wxUSE_DISPLAY=yes'
7303 else
7304 ac_cv_use_display='wxUSE_DISPLAY=no'
7305 fi
7306
7307 else
7308
7309 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7317
7318 fi;
7319
7320 eval "$ac_cv_use_display"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_DISPLAY" = yes; then
7326 echo "$as_me:$LINENO: result: yes" >&5
7327 echo "${ECHO_T}yes" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6
7331 fi
7332
7333
7334 enablestring=
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7336 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7337 no_cache=0
7338 # Check whether --enable-gauge or --disable-gauge was given.
7339 if test "${enable_gauge+set}" = set; then
7340 enableval="$enable_gauge"
7341
7342 if test "$enableval" = yes; then
7343 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7344 else
7345 ac_cv_use_gauge='wxUSE_GAUGE=no'
7346 fi
7347
7348 else
7349
7350 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
7357 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7358
7359 fi;
7360
7361 eval "$ac_cv_use_gauge"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_GAUGE" = yes; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368 echo "${ECHO_T}yes" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6
7372 fi
7373
7374
7375 enablestring=
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7377 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7378 no_cache=0
7379 # Check whether --enable-grid or --disable-grid was given.
7380 if test "${enable_grid+set}" = set; then
7381 enableval="$enable_grid"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_grid='wxUSE_GRID=yes'
7385 else
7386 ac_cv_use_grid='wxUSE_GRID=no'
7387 fi
7388
7389 else
7390
7391 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7399
7400 fi;
7401
7402 eval "$ac_cv_use_grid"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_GRID" = yes; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409 echo "${ECHO_T}yes" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 fi
7414
7415
7416 enablestring=
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7418 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7419 no_cache=0
7420 # Check whether --enable-imaglist or --disable-imaglist was given.
7421 if test "${enable_imaglist+set}" = set; then
7422 enableval="$enable_imaglist"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7426 else
7427 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7428 fi
7429
7430 else
7431
7432 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7440
7441 fi;
7442
7443 eval "$ac_cv_use_imaglist"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_IMAGLIST" = yes; then
7449 echo "$as_me:$LINENO: result: yes" >&5
7450 echo "${ECHO_T}yes" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7454 fi
7455
7456
7457 enablestring=
7458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7459 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7460 no_cache=0
7461 # Check whether --enable-listbook or --disable-listbook was given.
7462 if test "${enable_listbook+set}" = set; then
7463 enableval="$enable_listbook"
7464
7465 if test "$enableval" = yes; then
7466 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7467 else
7468 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7469 fi
7470
7471 else
7472
7473 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7474 if test "x$LINE" != x ; then
7475 eval "DEFAULT_$LINE"
7476 else
7477 no_cache=1
7478 fi
7479
7480 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7481
7482 fi;
7483
7484 eval "$ac_cv_use_listbook"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_LISTBOOK" = yes; then
7490 echo "$as_me:$LINENO: result: yes" >&5
7491 echo "${ECHO_T}yes" >&6
7492 else
7493 echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7495 fi
7496
7497
7498 enablestring=
7499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7500 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7501 no_cache=0
7502 # Check whether --enable-listbox or --disable-listbox was given.
7503 if test "${enable_listbox+set}" = set; then
7504 enableval="$enable_listbox"
7505
7506 if test "$enableval" = yes; then
7507 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7508 else
7509 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7510 fi
7511
7512 else
7513
7514 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7515 if test "x$LINE" != x ; then
7516 eval "DEFAULT_$LINE"
7517 else
7518 no_cache=1
7519 fi
7520
7521 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7522
7523 fi;
7524
7525 eval "$ac_cv_use_listbox"
7526 if test "$no_cache" != 1; then
7527 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7528 fi
7529
7530 if test "$wxUSE_LISTBOX" = yes; then
7531 echo "$as_me:$LINENO: result: yes" >&5
7532 echo "${ECHO_T}yes" >&6
7533 else
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536 fi
7537
7538
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7541 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-listctrl or --disable-listctrl was given.
7544 if test "${enable_listctrl+set}" = set; then
7545 enableval="$enable_listctrl"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7549 else
7550 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7551 fi
7552
7553 else
7554
7555 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7563
7564 fi;
7565
7566 eval "$ac_cv_use_listctrl"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_LISTCTRL" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573 echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7582 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-notebook or --disable-notebook was given.
7585 if test "${enable_notebook+set}" = set; then
7586 enableval="$enable_notebook"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7590 else
7591 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7592 fi
7593
7594 else
7595
7596 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7604
7605 fi;
7606
7607 eval "$ac_cv_use_notebook"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_NOTEBOOK" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614 echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6
7618 fi
7619
7620
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7623 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-radiobox or --disable-radiobox was given.
7626 if test "${enable_radiobox+set}" = set; then
7627 enableval="$enable_radiobox"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7631 else
7632 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7633 fi
7634
7635 else
7636
7637 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7645
7646 fi;
7647
7648 eval "$ac_cv_use_radiobox"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_RADIOBOX" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7659 fi
7660
7661
7662 enablestring=
7663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7664 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7665 no_cache=0
7666 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7667 if test "${enable_radiobtn+set}" = set; then
7668 enableval="$enable_radiobtn"
7669
7670 if test "$enableval" = yes; then
7671 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7672 else
7673 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7674 fi
7675
7676 else
7677
7678 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7679 if test "x$LINE" != x ; then
7680 eval "DEFAULT_$LINE"
7681 else
7682 no_cache=1
7683 fi
7684
7685 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7686
7687 fi;
7688
7689 eval "$ac_cv_use_radiobtn"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_RADIOBTN" = yes; then
7695 echo "$as_me:$LINENO: result: yes" >&5
7696 echo "${ECHO_T}yes" >&6
7697 else
7698 echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7700 fi
7701
7702
7703 enablestring=
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7705 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7706 no_cache=0
7707 # Check whether --enable-sash or --disable-sash was given.
7708 if test "${enable_sash+set}" = set; then
7709 enableval="$enable_sash"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_sash='wxUSE_SASH=yes'
7713 else
7714 ac_cv_use_sash='wxUSE_SASH=no'
7715 fi
7716
7717 else
7718
7719 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7727
7728 fi;
7729
7730 eval "$ac_cv_use_sash"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_SASH" = yes; then
7736 echo "$as_me:$LINENO: result: yes" >&5
7737 echo "${ECHO_T}yes" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744 enablestring=
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7746 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7747 no_cache=0
7748 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7749 if test "${enable_scrollbar+set}" = set; then
7750 enableval="$enable_scrollbar"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7754 else
7755 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7756 fi
7757
7758 else
7759
7760 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7768
7769 fi;
7770
7771 eval "$ac_cv_use_scrollbar"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_SCROLLBAR" = yes; then
7777 echo "$as_me:$LINENO: result: yes" >&5
7778 echo "${ECHO_T}yes" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6
7782 fi
7783
7784
7785 enablestring=
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7787 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7788 no_cache=0
7789 # Check whether --enable-slider or --disable-slider was given.
7790 if test "${enable_slider+set}" = set; then
7791 enableval="$enable_slider"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_slider='wxUSE_SLIDER=yes'
7795 else
7796 ac_cv_use_slider='wxUSE_SLIDER=no'
7797 fi
7798
7799 else
7800
7801 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7809
7810 fi;
7811
7812 eval "$ac_cv_use_slider"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_SLIDER" = yes; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819 echo "${ECHO_T}yes" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6
7823 fi
7824
7825
7826 enablestring=
7827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7828 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7829 no_cache=0
7830 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7831 if test "${enable_spinbtn+set}" = set; then
7832 enableval="$enable_spinbtn"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7836 else
7837 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7838 fi
7839
7840 else
7841
7842 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7850
7851 fi;
7852
7853 eval "$ac_cv_use_spinbtn"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_SPINBTN" = yes; then
7859 echo "$as_me:$LINENO: result: yes" >&5
7860 echo "${ECHO_T}yes" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6
7864 fi
7865
7866
7867 enablestring=
7868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7869 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7870 no_cache=0
7871 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7872 if test "${enable_spinctrl+set}" = set; then
7873 enableval="$enable_spinctrl"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7877 else
7878 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7879 fi
7880
7881 else
7882
7883 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7891
7892 fi;
7893
7894 eval "$ac_cv_use_spinctrl"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_SPINCTRL" = yes; then
7900 echo "$as_me:$LINENO: result: yes" >&5
7901 echo "${ECHO_T}yes" >&6
7902 else
7903 echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6
7905 fi
7906
7907
7908 enablestring=
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7910 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7911 no_cache=0
7912 # Check whether --enable-splitter or --disable-splitter was given.
7913 if test "${enable_splitter+set}" = set; then
7914 enableval="$enable_splitter"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7918 else
7919 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7920 fi
7921
7922 else
7923
7924 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7932
7933 fi;
7934
7935 eval "$ac_cv_use_splitter"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_SPLITTER" = yes; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6
7946 fi
7947
7948
7949 enablestring=
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7951 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7952 no_cache=0
7953 # Check whether --enable-statbmp or --disable-statbmp was given.
7954 if test "${enable_statbmp+set}" = set; then
7955 enableval="$enable_statbmp"
7956
7957 if test "$enableval" = yes; then
7958 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7959 else
7960 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7961 fi
7962
7963 else
7964
7965 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7973
7974 fi;
7975
7976 eval "$ac_cv_use_statbmp"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_STATBMP" = yes; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983 echo "${ECHO_T}yes" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6
7987 fi
7988
7989
7990 enablestring=
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7992 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7993 no_cache=0
7994 # Check whether --enable-statbox or --disable-statbox was given.
7995 if test "${enable_statbox+set}" = set; then
7996 enableval="$enable_statbox"
7997
7998 if test "$enableval" = yes; then
7999 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8000 else
8001 ac_cv_use_statbox='wxUSE_STATBOX=no'
8002 fi
8003
8004 else
8005
8006 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8014
8015 fi;
8016
8017 eval "$ac_cv_use_statbox"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_STATBOX" = yes; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024 echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6
8028 fi
8029
8030
8031 enablestring=
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8033 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8034 no_cache=0
8035 # Check whether --enable-statline or --disable-statline was given.
8036 if test "${enable_statline+set}" = set; then
8037 enableval="$enable_statline"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_statline='wxUSE_STATLINE=yes'
8041 else
8042 ac_cv_use_statline='wxUSE_STATLINE=no'
8043 fi
8044
8045 else
8046
8047 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8055
8056 fi;
8057
8058 eval "$ac_cv_use_statline"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_STATLINE" = yes; then
8064 echo "$as_me:$LINENO: result: yes" >&5
8065 echo "${ECHO_T}yes" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6
8069 fi
8070
8071
8072 enablestring=
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8074 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8075 no_cache=0
8076 # Check whether --enable-stattext or --disable-stattext was given.
8077 if test "${enable_stattext+set}" = set; then
8078 enableval="$enable_stattext"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8082 else
8083 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8084 fi
8085
8086 else
8087
8088 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8096
8097 fi;
8098
8099 eval "$ac_cv_use_stattext"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_STATTEXT" = yes; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106 echo "${ECHO_T}yes" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109 echo "${ECHO_T}no" >&6
8110 fi
8111
8112
8113 enablestring=
8114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8115 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8116 no_cache=0
8117 # Check whether --enable-statusbar or --disable-statusbar was given.
8118 if test "${enable_statusbar+set}" = set; then
8119 enableval="$enable_statusbar"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8123 else
8124 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8125 fi
8126
8127 else
8128
8129 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8137
8138 fi;
8139
8140 eval "$ac_cv_use_statusbar"
8141 if test "$no_cache" != 1; then
8142 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8143 fi
8144
8145 if test "$wxUSE_STATUSBAR" = yes; then
8146 echo "$as_me:$LINENO: result: yes" >&5
8147 echo "${ECHO_T}yes" >&6
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6
8151 fi
8152
8153
8154 enablestring=
8155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8156 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8157 no_cache=0
8158 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8159 if test "${enable_tabdialog+set}" = set; then
8160 enableval="$enable_tabdialog"
8161
8162 if test "$enableval" = yes; then
8163 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8164 else
8165 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8166 fi
8167
8168 else
8169
8170 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8171 if test "x$LINE" != x ; then
8172 eval "DEFAULT_$LINE"
8173 else
8174 no_cache=1
8175 fi
8176
8177 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8178
8179 fi;
8180
8181 eval "$ac_cv_use_tabdialog"
8182 if test "$no_cache" != 1; then
8183 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8184 fi
8185
8186 if test "$wxUSE_TABDIALOG" = yes; then
8187 echo "$as_me:$LINENO: result: yes" >&5
8188 echo "${ECHO_T}yes" >&6
8189 else
8190 echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6
8192 fi
8193
8194
8195 enablestring=
8196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8197 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8198 no_cache=0
8199 # Check whether --enable-textctrl or --disable-textctrl was given.
8200 if test "${enable_textctrl+set}" = set; then
8201 enableval="$enable_textctrl"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8205 else
8206 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8207 fi
8208
8209 else
8210
8211 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8219
8220 fi;
8221
8222 eval "$ac_cv_use_textctrl"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_TEXTCTRL" = yes; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229 echo "${ECHO_T}yes" >&6
8230 else
8231 echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8233 fi
8234
8235
8236 enablestring=
8237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8238 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8239 no_cache=0
8240 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8241 if test "${enable_togglebtn+set}" = set; then
8242 enableval="$enable_togglebtn"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8246 else
8247 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8248 fi
8249
8250 else
8251
8252 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8260
8261 fi;
8262
8263 eval "$ac_cv_use_togglebtn"
8264 if test "$no_cache" != 1; then
8265 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8266 fi
8267
8268 if test "$wxUSE_TOGGLEBTN" = yes; then
8269 echo "$as_me:$LINENO: result: yes" >&5
8270 echo "${ECHO_T}yes" >&6
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8274 fi
8275
8276
8277 enablestring=
8278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8279 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8280 no_cache=0
8281 # Check whether --enable-toolbar or --disable-toolbar was given.
8282 if test "${enable_toolbar+set}" = set; then
8283 enableval="$enable_toolbar"
8284
8285 if test "$enableval" = yes; then
8286 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8287 else
8288 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8289 fi
8290
8291 else
8292
8293 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8294 if test "x$LINE" != x ; then
8295 eval "DEFAULT_$LINE"
8296 else
8297 no_cache=1
8298 fi
8299
8300 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8301
8302 fi;
8303
8304 eval "$ac_cv_use_toolbar"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_TOOLBAR" = yes; then
8310 echo "$as_me:$LINENO: result: yes" >&5
8311 echo "${ECHO_T}yes" >&6
8312 else
8313 echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6
8315 fi
8316
8317
8318 enablestring=
8319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8320 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8321 no_cache=0
8322 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8323 if test "${enable_tbarnative+set}" = set; then
8324 enableval="$enable_tbarnative"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8328 else
8329 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8330 fi
8331
8332 else
8333
8334 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8342
8343 fi;
8344
8345 eval "$ac_cv_use_tbarnative"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352 echo "${ECHO_T}yes" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8356 fi
8357
8358
8359 enablestring=
8360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8361 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8362 no_cache=0
8363 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8364 if test "${enable_tbarsmpl+set}" = set; then
8365 enableval="$enable_tbarsmpl"
8366
8367 if test "$enableval" = yes; then
8368 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8369 else
8370 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8371 fi
8372
8373 else
8374
8375 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8376 if test "x$LINE" != x ; then
8377 eval "DEFAULT_$LINE"
8378 else
8379 no_cache=1
8380 fi
8381
8382 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8383
8384 fi;
8385
8386 eval "$ac_cv_use_tbarsmpl"
8387 if test "$no_cache" != 1; then
8388 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8389 fi
8390
8391 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8392 echo "$as_me:$LINENO: result: yes" >&5
8393 echo "${ECHO_T}yes" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6
8397 fi
8398
8399
8400 enablestring=
8401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8402 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8403 no_cache=0
8404 # Check whether --enable-treectrl or --disable-treectrl was given.
8405 if test "${enable_treectrl+set}" = set; then
8406 enableval="$enable_treectrl"
8407
8408 if test "$enableval" = yes; then
8409 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8410 else
8411 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8412 fi
8413
8414 else
8415
8416 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
8423 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8424
8425 fi;
8426
8427 eval "$ac_cv_use_treectrl"
8428 if test "$no_cache" != 1; then
8429 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8430 fi
8431
8432 if test "$wxUSE_TREECTRL" = yes; then
8433 echo "$as_me:$LINENO: result: yes" >&5
8434 echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6
8438 fi
8439
8440
8441 enablestring=
8442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8443 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8444 no_cache=0
8445 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8446 if test "${enable_tipwindow+set}" = set; then
8447 enableval="$enable_tipwindow"
8448
8449 if test "$enableval" = yes; then
8450 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8451 else
8452 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8453 fi
8454
8455 else
8456
8457 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8458 if test "x$LINE" != x ; then
8459 eval "DEFAULT_$LINE"
8460 else
8461 no_cache=1
8462 fi
8463
8464 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8465
8466 fi;
8467
8468 eval "$ac_cv_use_tipwindow"
8469 if test "$no_cache" != 1; then
8470 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8471 fi
8472
8473 if test "$wxUSE_TIPWINDOW" = yes; then
8474 echo "$as_me:$LINENO: result: yes" >&5
8475 echo "${ECHO_T}yes" >&6
8476 else
8477 echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6
8479 fi
8480
8481
8482 enablestring=
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8484 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8485 no_cache=0
8486 # Check whether --enable-popupwin or --disable-popupwin was given.
8487 if test "${enable_popupwin+set}" = set; then
8488 enableval="$enable_popupwin"
8489
8490 if test "$enableval" = yes; then
8491 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8492 else
8493 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8494 fi
8495
8496 else
8497
8498 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8506
8507 fi;
8508
8509 eval "$ac_cv_use_popupwin"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_POPUPWIN" = yes; then
8515 echo "$as_me:$LINENO: result: yes" >&5
8516 echo "${ECHO_T}yes" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6
8520 fi
8521
8522
8523
8524
8525 enablestring=
8526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8527 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8528 no_cache=0
8529 # Check whether --enable-commondlg or --disable-commondlg was given.
8530 if test "${enable_commondlg+set}" = set; then
8531 enableval="$enable_commondlg"
8532
8533 if test "$enableval" = yes; then
8534 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8535 else
8536 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8537 fi
8538
8539 else
8540
8541 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8542 if test "x$LINE" != x ; then
8543 eval "DEFAULT_$LINE"
8544 else
8545 no_cache=1
8546 fi
8547
8548 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8549
8550 fi;
8551
8552 eval "$ac_cv_use_commondlg"
8553 if test "$no_cache" != 1; then
8554 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8555 fi
8556
8557 if test "$wxUSE_COMMONDLGS" = yes; then
8558 echo "$as_me:$LINENO: result: yes" >&5
8559 echo "${ECHO_T}yes" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8563 fi
8564
8565
8566 enablestring=
8567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8568 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8569 no_cache=0
8570 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8571 if test "${enable_choicedlg+set}" = set; then
8572 enableval="$enable_choicedlg"
8573
8574 if test "$enableval" = yes; then
8575 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8576 else
8577 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8578 fi
8579
8580 else
8581
8582 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8590
8591 fi;
8592
8593 eval "$ac_cv_use_choicedlg"
8594 if test "$no_cache" != 1; then
8595 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8596 fi
8597
8598 if test "$wxUSE_CHOICEDLG" = yes; then
8599 echo "$as_me:$LINENO: result: yes" >&5
8600 echo "${ECHO_T}yes" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8604 fi
8605
8606
8607 enablestring=
8608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8609 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8610 no_cache=0
8611 # Check whether --enable-coldlg or --disable-coldlg was given.
8612 if test "${enable_coldlg+set}" = set; then
8613 enableval="$enable_coldlg"
8614
8615 if test "$enableval" = yes; then
8616 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8617 else
8618 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8619 fi
8620
8621 else
8622
8623 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
8630 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8631
8632 fi;
8633
8634 eval "$ac_cv_use_coldlg"
8635 if test "$no_cache" != 1; then
8636 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8637 fi
8638
8639 if test "$wxUSE_COLOURDLG" = yes; then
8640 echo "$as_me:$LINENO: result: yes" >&5
8641 echo "${ECHO_T}yes" >&6
8642 else
8643 echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6
8645 fi
8646
8647
8648 enablestring=
8649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8650 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8651 no_cache=0
8652 # Check whether --enable-filedlg or --disable-filedlg was given.
8653 if test "${enable_filedlg+set}" = set; then
8654 enableval="$enable_filedlg"
8655
8656 if test "$enableval" = yes; then
8657 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8658 else
8659 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8660 fi
8661
8662 else
8663
8664 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8665 if test "x$LINE" != x ; then
8666 eval "DEFAULT_$LINE"
8667 else
8668 no_cache=1
8669 fi
8670
8671 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8672
8673 fi;
8674
8675 eval "$ac_cv_use_filedlg"
8676 if test "$no_cache" != 1; then
8677 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8678 fi
8679
8680 if test "$wxUSE_FILEDLG" = yes; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6
8683 else
8684 echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6
8686 fi
8687
8688
8689 enablestring=
8690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8691 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8692 no_cache=0
8693 # Check whether --enable-finddlg or --disable-finddlg was given.
8694 if test "${enable_finddlg+set}" = set; then
8695 enableval="$enable_finddlg"
8696
8697 if test "$enableval" = yes; then
8698 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8699 else
8700 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8701 fi
8702
8703 else
8704
8705 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8706 if test "x$LINE" != x ; then
8707 eval "DEFAULT_$LINE"
8708 else
8709 no_cache=1
8710 fi
8711
8712 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8713
8714 fi;
8715
8716 eval "$ac_cv_use_finddlg"
8717 if test "$no_cache" != 1; then
8718 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8719 fi
8720
8721 if test "$wxUSE_FINDREPLDLG" = yes; then
8722 echo "$as_me:$LINENO: result: yes" >&5
8723 echo "${ECHO_T}yes" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6
8727 fi
8728
8729
8730 enablestring=
8731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8732 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8733 no_cache=0
8734 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8735 if test "${enable_fontdlg+set}" = set; then
8736 enableval="$enable_fontdlg"
8737
8738 if test "$enableval" = yes; then
8739 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8740 else
8741 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8742 fi
8743
8744 else
8745
8746 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8747 if test "x$LINE" != x ; then
8748 eval "DEFAULT_$LINE"
8749 else
8750 no_cache=1
8751 fi
8752
8753 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8754
8755 fi;
8756
8757 eval "$ac_cv_use_fontdlg"
8758 if test "$no_cache" != 1; then
8759 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8760 fi
8761
8762 if test "$wxUSE_FONTDLG" = yes; then
8763 echo "$as_me:$LINENO: result: yes" >&5
8764 echo "${ECHO_T}yes" >&6
8765 else
8766 echo "$as_me:$LINENO: result: no" >&5
8767 echo "${ECHO_T}no" >&6
8768 fi
8769
8770
8771 enablestring=
8772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8773 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8774 no_cache=0
8775 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8776 if test "${enable_dirdlg+set}" = set; then
8777 enableval="$enable_dirdlg"
8778
8779 if test "$enableval" = yes; then
8780 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8781 else
8782 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8783 fi
8784
8785 else
8786
8787 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8788 if test "x$LINE" != x ; then
8789 eval "DEFAULT_$LINE"
8790 else
8791 no_cache=1
8792 fi
8793
8794 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8795
8796 fi;
8797
8798 eval "$ac_cv_use_dirdlg"
8799 if test "$no_cache" != 1; then
8800 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8801 fi
8802
8803 if test "$wxUSE_DIRDLG" = yes; then
8804 echo "$as_me:$LINENO: result: yes" >&5
8805 echo "${ECHO_T}yes" >&6
8806 else
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8809 fi
8810
8811
8812 enablestring=
8813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8814 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8815 no_cache=0
8816 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8817 if test "${enable_msgdlg+set}" = set; then
8818 enableval="$enable_msgdlg"
8819
8820 if test "$enableval" = yes; then
8821 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8822 else
8823 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8824 fi
8825
8826 else
8827
8828 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8829 if test "x$LINE" != x ; then
8830 eval "DEFAULT_$LINE"
8831 else
8832 no_cache=1
8833 fi
8834
8835 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8836
8837 fi;
8838
8839 eval "$ac_cv_use_msgdlg"
8840 if test "$no_cache" != 1; then
8841 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8842 fi
8843
8844 if test "$wxUSE_MSGDLG" = yes; then
8845 echo "$as_me:$LINENO: result: yes" >&5
8846 echo "${ECHO_T}yes" >&6
8847 else
8848 echo "$as_me:$LINENO: result: no" >&5
8849 echo "${ECHO_T}no" >&6
8850 fi
8851
8852
8853 enablestring=
8854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8855 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8856 no_cache=0
8857 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8858 if test "${enable_numberdlg+set}" = set; then
8859 enableval="$enable_numberdlg"
8860
8861 if test "$enableval" = yes; then
8862 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8863 else
8864 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8865 fi
8866
8867 else
8868
8869 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8870 if test "x$LINE" != x ; then
8871 eval "DEFAULT_$LINE"
8872 else
8873 no_cache=1
8874 fi
8875
8876 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8877
8878 fi;
8879
8880 eval "$ac_cv_use_numberdlg"
8881 if test "$no_cache" != 1; then
8882 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8883 fi
8884
8885 if test "$wxUSE_NUMBERDLG" = yes; then
8886 echo "$as_me:$LINENO: result: yes" >&5
8887 echo "${ECHO_T}yes" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8891 fi
8892
8893
8894 enablestring=
8895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8896 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8897 no_cache=0
8898 # Check whether --enable-splash or --disable-splash was given.
8899 if test "${enable_splash+set}" = set; then
8900 enableval="$enable_splash"
8901
8902 if test "$enableval" = yes; then
8903 ac_cv_use_splash='wxUSE_SPLASH=yes'
8904 else
8905 ac_cv_use_splash='wxUSE_SPLASH=no'
8906 fi
8907
8908 else
8909
8910 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8911 if test "x$LINE" != x ; then
8912 eval "DEFAULT_$LINE"
8913 else
8914 no_cache=1
8915 fi
8916
8917 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8918
8919 fi;
8920
8921 eval "$ac_cv_use_splash"
8922 if test "$no_cache" != 1; then
8923 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8924 fi
8925
8926 if test "$wxUSE_SPLASH" = yes; then
8927 echo "$as_me:$LINENO: result: yes" >&5
8928 echo "${ECHO_T}yes" >&6
8929 else
8930 echo "$as_me:$LINENO: result: no" >&5
8931 echo "${ECHO_T}no" >&6
8932 fi
8933
8934
8935 enablestring=
8936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8937 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8938 no_cache=0
8939 # Check whether --enable-textdlg or --disable-textdlg was given.
8940 if test "${enable_textdlg+set}" = set; then
8941 enableval="$enable_textdlg"
8942
8943 if test "$enableval" = yes; then
8944 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8945 else
8946 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8947 fi
8948
8949 else
8950
8951 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8952 if test "x$LINE" != x ; then
8953 eval "DEFAULT_$LINE"
8954 else
8955 no_cache=1
8956 fi
8957
8958 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8959
8960 fi;
8961
8962 eval "$ac_cv_use_textdlg"
8963 if test "$no_cache" != 1; then
8964 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8965 fi
8966
8967 if test "$wxUSE_TEXTDLG" = yes; then
8968 echo "$as_me:$LINENO: result: yes" >&5
8969 echo "${ECHO_T}yes" >&6
8970 else
8971 echo "$as_me:$LINENO: result: no" >&5
8972 echo "${ECHO_T}no" >&6
8973 fi
8974
8975
8976 enablestring=
8977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8978 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8979 no_cache=0
8980 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8981 if test "${enable_tipdlg+set}" = set; then
8982 enableval="$enable_tipdlg"
8983
8984 if test "$enableval" = yes; then
8985 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8986 else
8987 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8988 fi
8989
8990 else
8991
8992 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8993 if test "x$LINE" != x ; then
8994 eval "DEFAULT_$LINE"
8995 else
8996 no_cache=1
8997 fi
8998
8999 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9000
9001 fi;
9002
9003 eval "$ac_cv_use_tipdlg"
9004 if test "$no_cache" != 1; then
9005 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9006 fi
9007
9008 if test "$wxUSE_STARTUP_TIPS" = yes; then
9009 echo "$as_me:$LINENO: result: yes" >&5
9010 echo "${ECHO_T}yes" >&6
9011 else
9012 echo "$as_me:$LINENO: result: no" >&5
9013 echo "${ECHO_T}no" >&6
9014 fi
9015
9016
9017 enablestring=
9018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9019 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9020 no_cache=0
9021 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9022 if test "${enable_progressdlg+set}" = set; then
9023 enableval="$enable_progressdlg"
9024
9025 if test "$enableval" = yes; then
9026 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9027 else
9028 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9029 fi
9030
9031 else
9032
9033 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9034 if test "x$LINE" != x ; then
9035 eval "DEFAULT_$LINE"
9036 else
9037 no_cache=1
9038 fi
9039
9040 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9041
9042 fi;
9043
9044 eval "$ac_cv_use_progressdlg"
9045 if test "$no_cache" != 1; then
9046 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9047 fi
9048
9049 if test "$wxUSE_PROGRESSDLG" = yes; then
9050 echo "$as_me:$LINENO: result: yes" >&5
9051 echo "${ECHO_T}yes" >&6
9052 else
9053 echo "$as_me:$LINENO: result: no" >&5
9054 echo "${ECHO_T}no" >&6
9055 fi
9056
9057
9058 enablestring=
9059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9060 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9061 no_cache=0
9062 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9063 if test "${enable_wizarddlg+set}" = set; then
9064 enableval="$enable_wizarddlg"
9065
9066 if test "$enableval" = yes; then
9067 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9068 else
9069 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9070 fi
9071
9072 else
9073
9074 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9075 if test "x$LINE" != x ; then
9076 eval "DEFAULT_$LINE"
9077 else
9078 no_cache=1
9079 fi
9080
9081 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9082
9083 fi;
9084
9085 eval "$ac_cv_use_wizarddlg"
9086 if test "$no_cache" != 1; then
9087 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9088 fi
9089
9090 if test "$wxUSE_WIZARDDLG" = yes; then
9091 echo "$as_me:$LINENO: result: yes" >&5
9092 echo "${ECHO_T}yes" >&6
9093 else
9094 echo "$as_me:$LINENO: result: no" >&5
9095 echo "${ECHO_T}no" >&6
9096 fi
9097
9098
9099
9100
9101 enablestring=
9102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9103 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9104 no_cache=0
9105 # Check whether --enable-menus or --disable-menus was given.
9106 if test "${enable_menus+set}" = set; then
9107 enableval="$enable_menus"
9108
9109 if test "$enableval" = yes; then
9110 ac_cv_use_menus='wxUSE_MENUS=yes'
9111 else
9112 ac_cv_use_menus='wxUSE_MENUS=no'
9113 fi
9114
9115 else
9116
9117 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9118 if test "x$LINE" != x ; then
9119 eval "DEFAULT_$LINE"
9120 else
9121 no_cache=1
9122 fi
9123
9124 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9125
9126 fi;
9127
9128 eval "$ac_cv_use_menus"
9129 if test "$no_cache" != 1; then
9130 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9131 fi
9132
9133 if test "$wxUSE_MENUS" = yes; then
9134 echo "$as_me:$LINENO: result: yes" >&5
9135 echo "${ECHO_T}yes" >&6
9136 else
9137 echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9139 fi
9140
9141
9142 enablestring=
9143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9144 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9145 no_cache=0
9146 # Check whether --enable-miniframe or --disable-miniframe was given.
9147 if test "${enable_miniframe+set}" = set; then
9148 enableval="$enable_miniframe"
9149
9150 if test "$enableval" = yes; then
9151 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9152 else
9153 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9154 fi
9155
9156 else
9157
9158 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9159 if test "x$LINE" != x ; then
9160 eval "DEFAULT_$LINE"
9161 else
9162 no_cache=1
9163 fi
9164
9165 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9166
9167 fi;
9168
9169 eval "$ac_cv_use_miniframe"
9170 if test "$no_cache" != 1; then
9171 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9172 fi
9173
9174 if test "$wxUSE_MINIFRAME" = yes; then
9175 echo "$as_me:$LINENO: result: yes" >&5
9176 echo "${ECHO_T}yes" >&6
9177 else
9178 echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9180 fi
9181
9182
9183 enablestring=
9184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9185 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9186 no_cache=0
9187 # Check whether --enable-tooltips or --disable-tooltips was given.
9188 if test "${enable_tooltips+set}" = set; then
9189 enableval="$enable_tooltips"
9190
9191 if test "$enableval" = yes; then
9192 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9193 else
9194 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9195 fi
9196
9197 else
9198
9199 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9200 if test "x$LINE" != x ; then
9201 eval "DEFAULT_$LINE"
9202 else
9203 no_cache=1
9204 fi
9205
9206 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9207
9208 fi;
9209
9210 eval "$ac_cv_use_tooltips"
9211 if test "$no_cache" != 1; then
9212 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9213 fi
9214
9215 if test "$wxUSE_TOOLTIPS" = yes; then
9216 echo "$as_me:$LINENO: result: yes" >&5
9217 echo "${ECHO_T}yes" >&6
9218 else
9219 echo "$as_me:$LINENO: result: no" >&5
9220 echo "${ECHO_T}no" >&6
9221 fi
9222
9223
9224 enablestring=
9225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9226 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9227 no_cache=0
9228 # Check whether --enable-splines or --disable-splines was given.
9229 if test "${enable_splines+set}" = set; then
9230 enableval="$enable_splines"
9231
9232 if test "$enableval" = yes; then
9233 ac_cv_use_splines='wxUSE_SPLINES=yes'
9234 else
9235 ac_cv_use_splines='wxUSE_SPLINES=no'
9236 fi
9237
9238 else
9239
9240 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9241 if test "x$LINE" != x ; then
9242 eval "DEFAULT_$LINE"
9243 else
9244 no_cache=1
9245 fi
9246
9247 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9248
9249 fi;
9250
9251 eval "$ac_cv_use_splines"
9252 if test "$no_cache" != 1; then
9253 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9254 fi
9255
9256 if test "$wxUSE_SPLINES" = yes; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258 echo "${ECHO_T}yes" >&6
9259 else
9260 echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6
9262 fi
9263
9264
9265 enablestring=
9266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9267 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9268 no_cache=0
9269 # Check whether --enable-validators or --disable-validators was given.
9270 if test "${enable_validators+set}" = set; then
9271 enableval="$enable_validators"
9272
9273 if test "$enableval" = yes; then
9274 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9275 else
9276 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9277 fi
9278
9279 else
9280
9281 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9282 if test "x$LINE" != x ; then
9283 eval "DEFAULT_$LINE"
9284 else
9285 no_cache=1
9286 fi
9287
9288 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9289
9290 fi;
9291
9292 eval "$ac_cv_use_validators"
9293 if test "$no_cache" != 1; then
9294 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9295 fi
9296
9297 if test "$wxUSE_VALIDATORS" = yes; then
9298 echo "$as_me:$LINENO: result: yes" >&5
9299 echo "${ECHO_T}yes" >&6
9300 else
9301 echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6
9303 fi
9304
9305
9306 enablestring=
9307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9308 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9309 no_cache=0
9310 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9311 if test "${enable_busyinfo+set}" = set; then
9312 enableval="$enable_busyinfo"
9313
9314 if test "$enableval" = yes; then
9315 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9316 else
9317 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9318 fi
9319
9320 else
9321
9322 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9323 if test "x$LINE" != x ; then
9324 eval "DEFAULT_$LINE"
9325 else
9326 no_cache=1
9327 fi
9328
9329 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9330
9331 fi;
9332
9333 eval "$ac_cv_use_busyinfo"
9334 if test "$no_cache" != 1; then
9335 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9336 fi
9337
9338 if test "$wxUSE_BUSYINFO" = yes; then
9339 echo "$as_me:$LINENO: result: yes" >&5
9340 echo "${ECHO_T}yes" >&6
9341 else
9342 echo "$as_me:$LINENO: result: no" >&5
9343 echo "${ECHO_T}no" >&6
9344 fi
9345
9346
9347 enablestring=
9348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9349 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9350 no_cache=0
9351 # Check whether --enable-joystick or --disable-joystick was given.
9352 if test "${enable_joystick+set}" = set; then
9353 enableval="$enable_joystick"
9354
9355 if test "$enableval" = yes; then
9356 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9357 else
9358 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9359 fi
9360
9361 else
9362
9363 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9364 if test "x$LINE" != x ; then
9365 eval "DEFAULT_$LINE"
9366 else
9367 no_cache=1
9368 fi
9369
9370 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9371
9372 fi;
9373
9374 eval "$ac_cv_use_joystick"
9375 if test "$no_cache" != 1; then
9376 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9377 fi
9378
9379 if test "$wxUSE_JOYSTICK" = yes; then
9380 echo "$as_me:$LINENO: result: yes" >&5
9381 echo "${ECHO_T}yes" >&6
9382 else
9383 echo "$as_me:$LINENO: result: no" >&5
9384 echo "${ECHO_T}no" >&6
9385 fi
9386
9387
9388 enablestring=
9389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9390 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9391 no_cache=0
9392 # Check whether --enable-metafile or --disable-metafile was given.
9393 if test "${enable_metafile+set}" = set; then
9394 enableval="$enable_metafile"
9395
9396 if test "$enableval" = yes; then
9397 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9398 else
9399 ac_cv_use_metafile='wxUSE_METAFILE=no'
9400 fi
9401
9402 else
9403
9404 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9405 if test "x$LINE" != x ; then
9406 eval "DEFAULT_$LINE"
9407 else
9408 no_cache=1
9409 fi
9410
9411 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9412
9413 fi;
9414
9415 eval "$ac_cv_use_metafile"
9416 if test "$no_cache" != 1; then
9417 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9418 fi
9419
9420 if test "$wxUSE_METAFILE" = yes; then
9421 echo "$as_me:$LINENO: result: yes" >&5
9422 echo "${ECHO_T}yes" >&6
9423 else
9424 echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6
9426 fi
9427
9428
9429 enablestring=
9430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9431 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9432 no_cache=0
9433 # Check whether --enable-dragimage or --disable-dragimage was given.
9434 if test "${enable_dragimage+set}" = set; then
9435 enableval="$enable_dragimage"
9436
9437 if test "$enableval" = yes; then
9438 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9439 else
9440 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9441 fi
9442
9443 else
9444
9445 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9446 if test "x$LINE" != x ; then
9447 eval "DEFAULT_$LINE"
9448 else
9449 no_cache=1
9450 fi
9451
9452 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9453
9454 fi;
9455
9456 eval "$ac_cv_use_dragimage"
9457 if test "$no_cache" != 1; then
9458 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9459 fi
9460
9461 if test "$wxUSE_DRAGIMAGE" = yes; then
9462 echo "$as_me:$LINENO: result: yes" >&5
9463 echo "${ECHO_T}yes" >&6
9464 else
9465 echo "$as_me:$LINENO: result: no" >&5
9466 echo "${ECHO_T}no" >&6
9467 fi
9468
9469
9470 enablestring=
9471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9472 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9473 no_cache=0
9474 # Check whether --enable-accessibility or --disable-accessibility was given.
9475 if test "${enable_accessibility+set}" = set; then
9476 enableval="$enable_accessibility"
9477
9478 if test "$enableval" = yes; then
9479 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9480 else
9481 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9482 fi
9483
9484 else
9485
9486 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9487 if test "x$LINE" != x ; then
9488 eval "DEFAULT_$LINE"
9489 else
9490 no_cache=1
9491 fi
9492
9493 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9494
9495 fi;
9496
9497 eval "$ac_cv_use_accessibility"
9498 if test "$no_cache" != 1; then
9499 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9500 fi
9501
9502 if test "$wxUSE_ACCESSIBILITY" = yes; then
9503 echo "$as_me:$LINENO: result: yes" >&5
9504 echo "${ECHO_T}yes" >&6
9505 else
9506 echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6
9508 fi
9509
9510
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9515 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-palette or --disable-palette was given.
9518 if test "${enable_palette+set}" = set; then
9519 enableval="$enable_palette"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_palette='wxUSE_PALETTE=yes'
9523 else
9524 ac_cv_use_palette='wxUSE_PALETTE=no'
9525 fi
9526
9527 else
9528
9529 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9537
9538 fi;
9539
9540 eval "$ac_cv_use_palette"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PALETTE" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547 echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9556 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-image or --disable-image was given.
9559 if test "${enable_image+set}" = set; then
9560 enableval="$enable_image"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_image='wxUSE_IMAGE=yes'
9564 else
9565 ac_cv_use_image='wxUSE_IMAGE=no'
9566 fi
9567
9568 else
9569
9570 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9578
9579 fi;
9580
9581 eval "$ac_cv_use_image"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_IMAGE" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588 echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591 echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9597 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-gif or --disable-gif was given.
9600 if test "${enable_gif+set}" = set; then
9601 enableval="$enable_gif"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_gif='wxUSE_GIF=yes'
9605 else
9606 ac_cv_use_gif='wxUSE_GIF=no'
9607 fi
9608
9609 else
9610
9611 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9619
9620 fi;
9621
9622 eval "$ac_cv_use_gif"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_GIF" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629 echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632 echo "${ECHO_T}no" >&6
9633 fi
9634
9635
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9638 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-pcx or --disable-pcx was given.
9641 if test "${enable_pcx+set}" = set; then
9642 enableval="$enable_pcx"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_pcx='wxUSE_PCX=yes'
9646 else
9647 ac_cv_use_pcx='wxUSE_PCX=no'
9648 fi
9649
9650 else
9651
9652 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9660
9661 fi;
9662
9663 eval "$ac_cv_use_pcx"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_PCX" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670 echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6
9674 fi
9675
9676
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9679 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-iff or --disable-iff was given.
9682 if test "${enable_iff+set}" = set; then
9683 enableval="$enable_iff"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_iff='wxUSE_IFF=yes'
9687 else
9688 ac_cv_use_iff='wxUSE_IFF=no'
9689 fi
9690
9691 else
9692
9693 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9701
9702 fi;
9703
9704 eval "$ac_cv_use_iff"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_IFF" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711 echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714 echo "${ECHO_T}no" >&6
9715 fi
9716
9717
9718 enablestring=
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9720 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9721 no_cache=0
9722 # Check whether --enable-pnm or --disable-pnm was given.
9723 if test "${enable_pnm+set}" = set; then
9724 enableval="$enable_pnm"
9725
9726 if test "$enableval" = yes; then
9727 ac_cv_use_pnm='wxUSE_PNM=yes'
9728 else
9729 ac_cv_use_pnm='wxUSE_PNM=no'
9730 fi
9731
9732 else
9733
9734 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9742
9743 fi;
9744
9745 eval "$ac_cv_use_pnm"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_PNM" = yes; then
9751 echo "$as_me:$LINENO: result: yes" >&5
9752 echo "${ECHO_T}yes" >&6
9753 else
9754 echo "$as_me:$LINENO: result: no" >&5
9755 echo "${ECHO_T}no" >&6
9756 fi
9757
9758
9759 enablestring=
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9761 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9762 no_cache=0
9763 # Check whether --enable-xpm or --disable-xpm was given.
9764 if test "${enable_xpm+set}" = set; then
9765 enableval="$enable_xpm"
9766
9767 if test "$enableval" = yes; then
9768 ac_cv_use_xpm='wxUSE_XPM=yes'
9769 else
9770 ac_cv_use_xpm='wxUSE_XPM=no'
9771 fi
9772
9773 else
9774
9775 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9783
9784 fi;
9785
9786 eval "$ac_cv_use_xpm"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_XPM" = yes; then
9792 echo "$as_me:$LINENO: result: yes" >&5
9793 echo "${ECHO_T}yes" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796 echo "${ECHO_T}no" >&6
9797 fi
9798
9799
9800 enablestring=
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9802 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9803 no_cache=0
9804 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9805 if test "${enable_ico_cur+set}" = set; then
9806 enableval="$enable_ico_cur"
9807
9808 if test "$enableval" = yes; then
9809 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9810 else
9811 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9812 fi
9813
9814 else
9815
9816 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9824
9825 fi;
9826
9827 eval "$ac_cv_use_ico_cur"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_ICO_CUR" = yes; then
9833 echo "$as_me:$LINENO: result: yes" >&5
9834 echo "${ECHO_T}yes" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837 echo "${ECHO_T}no" >&6
9838 fi
9839
9840
9841 fi
9842
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9847 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-official_build or --disable-official_build was given.
9850 if test "${enable_official_build+set}" = set; then
9851 enableval="$enable_official_build"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9855 else
9856 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9857 fi
9858
9859 else
9860
9861 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9869
9870 fi;
9871
9872 eval "$ac_cv_use_official_build"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879 echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882 echo "${ECHO_T}no" >&6
9883 fi
9884
9885 # Check whether --enable-vendor or --disable-vendor was given.
9886 if test "${enable_vendor+set}" = set; then
9887 enableval="$enable_vendor"
9888 VENDOR="$enableval"
9889 fi;
9890 if test "x$VENDOR" = "x"; then
9891 VENDOR="custom"
9892 fi
9893
9894 case "${host}" in
9895 *-pc-os2_emx | *-pc-os2-emx )
9896 PATH_IFS=';'
9897 if test "$wxUSE_OMF" = "yes"; then
9898 AR=emxomfar
9899 RANLIB=:
9900 LDFLAGS="-Zomf $LDFLAGS"
9901 CFLAGS="-Zomf $CFLAGS"
9902 CXXFLAGS="-Zomf $CXXFLAGS"
9903 fi
9904 ;;
9905 *)
9906 PATH_IFS=':'
9907 ;;
9908 esac
9909
9910
9911
9912 echo "saving argument cache $wx_arg_cache_file"
9913 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9914
9915
9916
9917 echo "$as_me:$LINENO: checking for toolkit" >&5
9918 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9919
9920 # In Wine, we need to default to MSW, not GTK or MOTIF
9921 if test "$wxUSE_WINE" = "yes"; then
9922 DEFAULT_DEFAULT_wxUSE_GTK=0
9923 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9924 DEFAULT_DEFAULT_wxUSE_MSW=1
9925 wxUSE_SHARED=no
9926 fi
9927
9928 if test "$wxUSE_GUI" = "yes"; then
9929
9930 if test "$USE_BEOS" = 1; then
9931 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9932 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9933 { (exit 1); exit 1; }; }
9934 fi
9935
9936 if test "$TOOLKIT_GIVEN" = 1; then
9937 for toolkit in `echo $ALL_TOOLKITS`; do
9938 var=wxUSE_$toolkit
9939 eval "value=\$${var}"
9940 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9941 done
9942 else
9943 for toolkit in `echo $ALL_TOOLKITS`; do
9944 if test "$has_toolkit_in_cache" != 1; then
9945 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9946 else
9947 var=DEFAULT_wxUSE_$toolkit
9948 fi
9949 eval "wxUSE_$toolkit=\$${var}"
9950 done
9951 fi
9952
9953 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9954 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9955 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9956
9957 case "${host}" in
9958 *-pc-os2_emx | *-pc-os2-emx )
9959 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9960 esac
9961
9962 case "$NUM_TOOLKITS" in
9963 1)
9964 ;;
9965 0)
9966 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9967 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9968 { (exit 1); exit 1; }; }
9969 ;;
9970 *)
9971 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9972 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9973 { (exit 1); exit 1; }; }
9974 esac
9975
9976 for toolkit in `echo $ALL_TOOLKITS`; do
9977 var=wxUSE_$toolkit
9978 eval "value=\$${var}"
9979 if test "x$value" != x; then
9980 cache_var=CACHE_$toolkit
9981 eval "cache=\$${cache_var}"
9982 if test "$cache" = 1; then
9983 echo "$var=$value" >> ${wx_arg_cache_file}
9984 fi
9985 if test "$value" = 1; then
9986 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9987 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9988 echo "${ECHO_T}$toolkit_echo" >&6
9989 fi
9990 fi
9991 done
9992 else
9993 if test "x$host_alias" != "x"; then
9994 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9995 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9996 else
9997 echo "$as_me:$LINENO: result: base only" >&5
9998 echo "${ECHO_T}base only" >&6
9999 fi
10000 fi
10001
10002 wants_win32=0
10003 doesnt_want_win32=0
10004 case "${host}" in
10005 *-*-cygwin*)
10006 if test "$wxUSE_MSW" = 1 ; then
10007 wants_win32=1
10008 else
10009 doesnt_want_win32=1
10010 fi
10011 ;;
10012 *-*-mingw*)
10013 wants_win32=1
10014 ;;
10015 esac
10016
10017 if test "$wxUSE_WINE" = "yes"; then
10018 wants_win32=1
10019 CC=winegcc
10020 CXX=wineg++
10021 RESCOMP=wrc
10022 LDFLAGS_GUI="-mwindows"
10023 fi
10024
10025 if test "$wants_win32" = 1 ; then
10026 USE_UNIX=0
10027 USE_WIN32=1
10028 cat >>confdefs.h <<\_ACEOF
10029 #define __WIN32__ 1
10030 _ACEOF
10031
10032 cat >>confdefs.h <<\_ACEOF
10033 #define __WIN95__ 1
10034 _ACEOF
10035
10036 cat >>confdefs.h <<\_ACEOF
10037 #define __WINDOWS__ 1
10038 _ACEOF
10039
10040 cat >>confdefs.h <<\_ACEOF
10041 #define __GNUWIN32__ 1
10042 _ACEOF
10043
10044 cat >>confdefs.h <<\_ACEOF
10045 #define STRICT 1
10046 _ACEOF
10047
10048 cat >>confdefs.h <<\_ACEOF
10049 #define WINVER 0x0400
10050 _ACEOF
10051
10052 fi
10053 if test "$doesnt_want_win32" = 1 ; then
10054 USE_UNIX=1
10055 USE_WIN32=0
10056 fi
10057
10058 if test "$USE_UNIX" = 1 ; then
10059 wxUSE_UNIX=yes
10060 cat >>confdefs.h <<\_ACEOF
10061 #define __UNIX__ 1
10062 _ACEOF
10063
10064 fi
10065
10066
10067 cat >confcache <<\_ACEOF
10068 # This file is a shell script that caches the results of configure
10069 # tests run on this system so they can be shared between configure
10070 # scripts and configure runs, see configure's option --config-cache.
10071 # It is not useful on other systems. If it contains results you don't
10072 # want to keep, you may remove or edit it.
10073 #
10074 # config.status only pays attention to the cache file if you give it
10075 # the --recheck option to rerun configure.
10076 #
10077 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10079 # following values.
10080
10081 _ACEOF
10082
10083 # The following way of writing the cache mishandles newlines in values,
10084 # but we know of no workaround that is simple, portable, and efficient.
10085 # So, don't put newlines in cache variables' values.
10086 # Ultrix sh set writes to stderr and can't be redirected directly,
10087 # and sets the high bit in the cache file unless we assign to the vars.
10088 {
10089 (set) 2>&1 |
10090 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10091 *ac_space=\ *)
10092 # `set' does not quote correctly, so add quotes (double-quote
10093 # substitution turns \\\\ into \\, and sed turns \\ into \).
10094 sed -n \
10095 "s/'/'\\\\''/g;
10096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10097 ;;
10098 *)
10099 # `set' quotes correctly as required by POSIX, so do not add quotes.
10100 sed -n \
10101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10102 ;;
10103 esac;
10104 } |
10105 sed '
10106 t clear
10107 : clear
10108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10109 t end
10110 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10111 : end' >>confcache
10112 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10113 if test -w $cache_file; then
10114 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10115 cat confcache >$cache_file
10116 else
10117 echo "not updating unwritable cache $cache_file"
10118 fi
10119 fi
10120 rm -f confcache
10121
10122 if test "$build" != "$host" ; then
10123 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10124 CC=$host_alias-gcc
10125 CXX=$host_alias-c++
10126 AR=$host_alias-ar
10127 RANLIB=$host_alias-ranlib
10128 DLLTOOL=$host_alias-dlltool
10129 RESCOMP=$host_alias-windres
10130 LD=$host_alias-ld
10131 NM=$host_alias-nm
10132 STRIP=$host_alias-strip
10133 else
10134 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10135 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10136 { (exit 1); exit 1; }; }
10137 fi
10138 fi
10139
10140 CFLAGS=${CFLAGS:=}
10141 ac_ext=c
10142 ac_cpp='$CPP $CPPFLAGS'
10143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10146 if test -n "$ac_tool_prefix"; then
10147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10148 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10149 echo "$as_me:$LINENO: checking for $ac_word" >&5
10150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10151 if test "${ac_cv_prog_CC+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 if test -n "$CC"; then
10155 ac_cv_prog_CC="$CC" # Let the user override the test.
10156 else
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10159 do
10160 IFS=$as_save_IFS
10161 test -z "$as_dir" && as_dir=.
10162 for ac_exec_ext in '' $ac_executable_extensions; do
10163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10166 break 2
10167 fi
10168 done
10169 done
10170
10171 fi
10172 fi
10173 CC=$ac_cv_prog_CC
10174 if test -n "$CC"; then
10175 echo "$as_me:$LINENO: result: $CC" >&5
10176 echo "${ECHO_T}$CC" >&6
10177 else
10178 echo "$as_me:$LINENO: result: no" >&5
10179 echo "${ECHO_T}no" >&6
10180 fi
10181
10182 fi
10183 if test -z "$ac_cv_prog_CC"; then
10184 ac_ct_CC=$CC
10185 # Extract the first word of "gcc", so it can be a program name with args.
10186 set dummy gcc; ac_word=$2
10187 echo "$as_me:$LINENO: checking for $ac_word" >&5
10188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 if test -n "$ac_ct_CC"; then
10193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10194 else
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10197 do
10198 IFS=$as_save_IFS
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10202 ac_cv_prog_ac_ct_CC="gcc"
10203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 break 2
10205 fi
10206 done
10207 done
10208
10209 fi
10210 fi
10211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10212 if test -n "$ac_ct_CC"; then
10213 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10214 echo "${ECHO_T}$ac_ct_CC" >&6
10215 else
10216 echo "$as_me:$LINENO: result: no" >&5
10217 echo "${ECHO_T}no" >&6
10218 fi
10219
10220 CC=$ac_ct_CC
10221 else
10222 CC="$ac_cv_prog_CC"
10223 fi
10224
10225 if test -z "$CC"; then
10226 if test -n "$ac_tool_prefix"; then
10227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10228 set dummy ${ac_tool_prefix}cc; ac_word=$2
10229 echo "$as_me:$LINENO: checking for $ac_word" >&5
10230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10231 if test "${ac_cv_prog_CC+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 if test -n "$CC"; then
10235 ac_cv_prog_CC="$CC" # Let the user override the test.
10236 else
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10239 do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_CC="${ac_tool_prefix}cc"
10245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248 done
10249 done
10250
10251 fi
10252 fi
10253 CC=$ac_cv_prog_CC
10254 if test -n "$CC"; then
10255 echo "$as_me:$LINENO: result: $CC" >&5
10256 echo "${ECHO_T}$CC" >&6
10257 else
10258 echo "$as_me:$LINENO: result: no" >&5
10259 echo "${ECHO_T}no" >&6
10260 fi
10261
10262 fi
10263 if test -z "$ac_cv_prog_CC"; then
10264 ac_ct_CC=$CC
10265 # Extract the first word of "cc", so it can be a program name with args.
10266 set dummy cc; ac_word=$2
10267 echo "$as_me:$LINENO: checking for $ac_word" >&5
10268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 if test -n "$ac_ct_CC"; then
10273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10274 else
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in $PATH
10277 do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10282 ac_cv_prog_ac_ct_CC="cc"
10283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10285 fi
10286 done
10287 done
10288
10289 fi
10290 fi
10291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10292 if test -n "$ac_ct_CC"; then
10293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10294 echo "${ECHO_T}$ac_ct_CC" >&6
10295 else
10296 echo "$as_me:$LINENO: result: no" >&5
10297 echo "${ECHO_T}no" >&6
10298 fi
10299
10300 CC=$ac_ct_CC
10301 else
10302 CC="$ac_cv_prog_CC"
10303 fi
10304
10305 fi
10306 if test -z "$CC"; then
10307 # Extract the first word of "cc", so it can be a program name with args.
10308 set dummy cc; ac_word=$2
10309 echo "$as_me:$LINENO: checking for $ac_word" >&5
10310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10311 if test "${ac_cv_prog_CC+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 if test -n "$CC"; then
10315 ac_cv_prog_CC="$CC" # Let the user override the test.
10316 else
10317 ac_prog_rejected=no
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10320 do
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10326 ac_prog_rejected=yes
10327 continue
10328 fi
10329 ac_cv_prog_CC="cc"
10330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10332 fi
10333 done
10334 done
10335
10336 if test $ac_prog_rejected = yes; then
10337 # We found a bogon in the path, so make sure we never use it.
10338 set dummy $ac_cv_prog_CC
10339 shift
10340 if test $# != 0; then
10341 # We chose a different compiler from the bogus one.
10342 # However, it has the same basename, so the bogon will be chosen
10343 # first if we set CC to just the basename; use the full file name.
10344 shift
10345 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10346 fi
10347 fi
10348 fi
10349 fi
10350 CC=$ac_cv_prog_CC
10351 if test -n "$CC"; then
10352 echo "$as_me:$LINENO: result: $CC" >&5
10353 echo "${ECHO_T}$CC" >&6
10354 else
10355 echo "$as_me:$LINENO: result: no" >&5
10356 echo "${ECHO_T}no" >&6
10357 fi
10358
10359 fi
10360 if test -z "$CC"; then
10361 if test -n "$ac_tool_prefix"; then
10362 for ac_prog in cl
10363 do
10364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10366 echo "$as_me:$LINENO: checking for $ac_word" >&5
10367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10368 if test "${ac_cv_prog_CC+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 if test -n "$CC"; then
10372 ac_cv_prog_CC="$CC" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385 done
10386 done
10387
10388 fi
10389 fi
10390 CC=$ac_cv_prog_CC
10391 if test -n "$CC"; then
10392 echo "$as_me:$LINENO: result: $CC" >&5
10393 echo "${ECHO_T}$CC" >&6
10394 else
10395 echo "$as_me:$LINENO: result: no" >&5
10396 echo "${ECHO_T}no" >&6
10397 fi
10398
10399 test -n "$CC" && break
10400 done
10401 fi
10402 if test -z "$CC"; then
10403 ac_ct_CC=$CC
10404 for ac_prog in cl
10405 do
10406 # Extract the first word of "$ac_prog", so it can be a program name with args.
10407 set dummy $ac_prog; ac_word=$2
10408 echo "$as_me:$LINENO: checking for $ac_word" >&5
10409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413 if test -n "$ac_ct_CC"; then
10414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10415 else
10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10418 do
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10423 ac_cv_prog_ac_ct_CC="$ac_prog"
10424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 break 2
10426 fi
10427 done
10428 done
10429
10430 fi
10431 fi
10432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10433 if test -n "$ac_ct_CC"; then
10434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10435 echo "${ECHO_T}$ac_ct_CC" >&6
10436 else
10437 echo "$as_me:$LINENO: result: no" >&5
10438 echo "${ECHO_T}no" >&6
10439 fi
10440
10441 test -n "$ac_ct_CC" && break
10442 done
10443
10444 CC=$ac_ct_CC
10445 fi
10446
10447 fi
10448
10449
10450 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10451 See \`config.log' for more details." >&5
10452 echo "$as_me: error: no acceptable C compiler found in \$PATH
10453 See \`config.log' for more details." >&2;}
10454 { (exit 1); exit 1; }; }
10455
10456 # Provide some information about the compiler.
10457 echo "$as_me:$LINENO:" \
10458 "checking for C compiler version" >&5
10459 ac_compiler=`set X $ac_compile; echo $2`
10460 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10461 (eval $ac_compiler --version </dev/null >&5) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }
10465 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10466 (eval $ac_compiler -v </dev/null >&5) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }
10470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10471 (eval $ac_compiler -V </dev/null >&5) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }
10475
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482
10483 int
10484 main ()
10485 {
10486
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 ac_clean_files_save=$ac_clean_files
10492 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10493 # Try to create an executable without -o first, disregard a.out.
10494 # It will help us diagnose broken compilers, and finding out an intuition
10495 # of exeext.
10496 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10497 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10498 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10500 (eval $ac_link_default) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; then
10504 # Find the output, starting from the most likely. This scheme is
10505 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10506 # resort.
10507
10508 # Be careful to initialize this variable, since it used to be cached.
10509 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10510 ac_cv_exeext=
10511 # b.out is created by i960 compilers.
10512 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10513 do
10514 test -f "$ac_file" || continue
10515 case $ac_file in
10516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10517 ;;
10518 conftest.$ac_ext )
10519 # This is the source file.
10520 ;;
10521 [ab].out )
10522 # We found the default executable, but exeext='' is most
10523 # certainly right.
10524 break;;
10525 *.* )
10526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10527 # FIXME: I believe we export ac_cv_exeext for Libtool,
10528 # but it would be cool to find out if it's true. Does anybody
10529 # maintain Libtool? --akim.
10530 export ac_cv_exeext
10531 break;;
10532 * )
10533 break;;
10534 esac
10535 done
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10541 See \`config.log' for more details." >&5
10542 echo "$as_me: error: C compiler cannot create executables
10543 See \`config.log' for more details." >&2;}
10544 { (exit 77); exit 77; }; }
10545 fi
10546
10547 ac_exeext=$ac_cv_exeext
10548 echo "$as_me:$LINENO: result: $ac_file" >&5
10549 echo "${ECHO_T}$ac_file" >&6
10550
10551 # Check the compiler produces executables we can run. If not, either
10552 # the compiler is broken, or we cross compile.
10553 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10556 # If not cross compiling, check that we can run a simple program.
10557 if test "$cross_compiling" != yes; then
10558 if { ac_try='./$ac_file'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 cross_compiling=no
10565 else
10566 if test "$cross_compiling" = maybe; then
10567 cross_compiling=yes
10568 else
10569 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10570 If you meant to cross compile, use \`--host'.
10571 See \`config.log' for more details." >&5
10572 echo "$as_me: error: cannot run C compiled programs.
10573 If you meant to cross compile, use \`--host'.
10574 See \`config.log' for more details." >&2;}
10575 { (exit 1); exit 1; }; }
10576 fi
10577 fi
10578 fi
10579 echo "$as_me:$LINENO: result: yes" >&5
10580 echo "${ECHO_T}yes" >&6
10581
10582 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10583 ac_clean_files=$ac_clean_files_save
10584 # Check the compiler produces executables we can run. If not, either
10585 # the compiler is broken, or we cross compile.
10586 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10587 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10588 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10589 echo "${ECHO_T}$cross_compiling" >&6
10590
10591 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10592 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; then
10598 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10599 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10600 # work properly (i.e., refer to `conftest.exe'), while it won't with
10601 # `rm'.
10602 for ac_file in conftest.exe conftest conftest.*; do
10603 test -f "$ac_file" || continue
10604 case $ac_file in
10605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10607 export ac_cv_exeext
10608 break;;
10609 * ) break;;
10610 esac
10611 done
10612 else
10613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10614 See \`config.log' for more details." >&5
10615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10616 See \`config.log' for more details." >&2;}
10617 { (exit 1); exit 1; }; }
10618 fi
10619
10620 rm -f conftest$ac_cv_exeext
10621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10622 echo "${ECHO_T}$ac_cv_exeext" >&6
10623
10624 rm -f conftest.$ac_ext
10625 EXEEXT=$ac_cv_exeext
10626 ac_exeext=$EXEEXT
10627 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10628 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10629 if test "${ac_cv_objext+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638
10639 int
10640 main ()
10641 {
10642
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.o conftest.obj
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; then
10653 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10654 case $ac_file in
10655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10657 break;;
10658 esac
10659 done
10660 else
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10665 See \`config.log' for more details." >&5
10666 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10667 See \`config.log' for more details." >&2;}
10668 { (exit 1); exit 1; }; }
10669 fi
10670
10671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10672 fi
10673 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10674 echo "${ECHO_T}$ac_cv_objext" >&6
10675 OBJEXT=$ac_cv_objext
10676 ac_objext=$OBJEXT
10677 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10678 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10679 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688
10689 int
10690 main ()
10691 {
10692 #ifndef __GNUC__
10693 choke me
10694 #endif
10695
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 rm -f conftest.$ac_objext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10702 (eval $ac_compile) 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag"
10710 || test ! -s conftest.err'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; } &&
10716 { ac_try='test -s conftest.$ac_objext'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_compiler_gnu=yes
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 ac_compiler_gnu=no
10728 fi
10729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10731
10732 fi
10733 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10734 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10735 GCC=`test $ac_compiler_gnu = yes && echo yes`
10736 ac_test_CFLAGS=${CFLAGS+set}
10737 ac_save_CFLAGS=$CFLAGS
10738 CFLAGS="-g"
10739 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10740 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10741 if test "${ac_cv_prog_cc_g+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750
10751 int
10752 main ()
10753 {
10754
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761 (eval $ac_compile) 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag"
10769 || test ! -s conftest.err'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest.$ac_objext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_prog_cc_g=yes
10782 else
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_cv_prog_cc_g=no
10787 fi
10788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10791 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10792 if test "$ac_test_CFLAGS" = set; then
10793 CFLAGS=$ac_save_CFLAGS
10794 elif test $ac_cv_prog_cc_g = yes; then
10795 if test "$GCC" = yes; then
10796 CFLAGS="-g -O2"
10797 else
10798 CFLAGS="-g"
10799 fi
10800 else
10801 if test "$GCC" = yes; then
10802 CFLAGS="-O2"
10803 else
10804 CFLAGS=
10805 fi
10806 fi
10807 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10808 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10809 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 ac_cv_prog_cc_stdc=no
10813 ac_save_CC=$CC
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 #include <stdarg.h>
10821 #include <stdio.h>
10822 #include <sys/types.h>
10823 #include <sys/stat.h>
10824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10825 struct buf { int x; };
10826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10827 static char *e (p, i)
10828 char **p;
10829 int i;
10830 {
10831 return p[i];
10832 }
10833 static char *f (char * (*g) (char **, int), char **p, ...)
10834 {
10835 char *s;
10836 va_list v;
10837 va_start (v,p);
10838 s = g (p, va_arg (v,int));
10839 va_end (v);
10840 return s;
10841 }
10842
10843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10844 function prototypes and stuff, but not '\xHH' hex character constants.
10845 These don't provoke an error unfortunately, instead are silently treated
10846 as 'x'. The following induces an error, until -std1 is added to get
10847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10848 array size at least. It's necessary to write '\x00'==0 to get something
10849 that's true only with -std1. */
10850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10851
10852 int test (int i, double x);
10853 struct s1 {int (*f) (int a);};
10854 struct s2 {int (*f) (double a);};
10855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10856 int argc;
10857 char **argv;
10858 int
10859 main ()
10860 {
10861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 # Don't try gcc -ansi; that turns off useful extensions and
10867 # breaks some systems' header files.
10868 # AIX -qlanglvl=ansi
10869 # Ultrix and OSF/1 -std1
10870 # HP-UX 10.20 and later -Ae
10871 # HP-UX older versions -Aa -D_HPUX_SOURCE
10872 # SVR4 -Xc -D__EXTENSIONS__
10873 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10874 do
10875 CC="$ac_save_CC $ac_arg"
10876 rm -f conftest.$ac_objext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878 (eval $ac_compile) 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag"
10886 || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest.$ac_objext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 ac_cv_prog_cc_stdc=$ac_arg
10899 break
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 fi
10905 rm -f conftest.err conftest.$ac_objext
10906 done
10907 rm -f conftest.$ac_ext conftest.$ac_objext
10908 CC=$ac_save_CC
10909
10910 fi
10911
10912 case "x$ac_cv_prog_cc_stdc" in
10913 x|xno)
10914 echo "$as_me:$LINENO: result: none needed" >&5
10915 echo "${ECHO_T}none needed" >&6 ;;
10916 *)
10917 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10918 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10919 CC="$CC $ac_cv_prog_cc_stdc" ;;
10920 esac
10921
10922 # Some people use a C++ compiler to compile C. Since we use `exit',
10923 # in C++ we need to declare it. In case someone uses the same compiler
10924 # for both compiling C and C++ we need to have the C++ compiler decide
10925 # the declaration of exit, since it's the most demanding environment.
10926 cat >conftest.$ac_ext <<_ACEOF
10927 #ifndef __cplusplus
10928 choke me
10929 #endif
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag"
10941 || test ! -s conftest.err'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest.$ac_objext'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 for ac_declaration in \
10954 '' \
10955 'extern "C" void std::exit (int) throw (); using std::exit;' \
10956 'extern "C" void std::exit (int); using std::exit;' \
10957 'extern "C" void exit (int) throw ();' \
10958 'extern "C" void exit (int);' \
10959 'void exit (int);'
10960 do
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h. */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_declaration
10968 #include <stdlib.h>
10969 int
10970 main ()
10971 {
10972 exit (42);
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 :
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 continue
11005 fi
11006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_declaration
11014 int
11015 main ()
11016 {
11017 exit (42);
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag"
11032 || test ! -s conftest.err'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 break
11045 else
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 fi
11050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11051 done
11052 rm -f conftest*
11053 if test -n "$ac_declaration"; then
11054 echo '#ifdef __cplusplus' >>confdefs.h
11055 echo $ac_declaration >>confdefs.h
11056 echo '#endif' >>confdefs.h
11057 fi
11058
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 fi
11064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065 ac_ext=c
11066 ac_cpp='$CPP $CPPFLAGS'
11067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11070
11071
11072
11073 ac_ext=c
11074 ac_cpp='$CPP $CPPFLAGS'
11075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11078 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11079 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11080 # On Suns, sometimes $CPP names a directory.
11081 if test -n "$CPP" && test -d "$CPP"; then
11082 CPP=
11083 fi
11084 if test -z "$CPP"; then
11085 if test "${ac_cv_prog_CPP+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 # Double quotes because CPP needs to be expanded
11089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11090 do
11091 ac_preproc_ok=false
11092 for ac_c_preproc_warn_flag in '' yes
11093 do
11094 # Use a header file that comes with gcc, so configuring glibc
11095 # with a fresh cross-compiler works.
11096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 # <limits.h> exists even on freestanding compilers.
11098 # On the NeXT, cc -E runs the code through the compiler's parser,
11099 # not just through cpp. "Syntax error" is here to catch this case.
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 #ifdef __STDC__
11107 # include <limits.h>
11108 #else
11109 # include <assert.h>
11110 #endif
11111 Syntax error
11112 _ACEOF
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11124 else
11125 ac_cpp_err=
11126 fi
11127 else
11128 ac_cpp_err=yes
11129 fi
11130 if test -z "$ac_cpp_err"; then
11131 :
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 # Broken: fails on valid input.
11137 continue
11138 fi
11139 rm -f conftest.err conftest.$ac_ext
11140
11141 # OK, works on sane cases. Now check whether non-existent headers
11142 # can be detected and how.
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 #include <ac_nonexistent.h>
11150 _ACEOF
11151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } >/dev/null; then
11159 if test -s conftest.err; then
11160 ac_cpp_err=$ac_c_preproc_warn_flag
11161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162 else
11163 ac_cpp_err=
11164 fi
11165 else
11166 ac_cpp_err=yes
11167 fi
11168 if test -z "$ac_cpp_err"; then
11169 # Broken: success on invalid input.
11170 continue
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 # Passes both tests.
11176 ac_preproc_ok=:
11177 break
11178 fi
11179 rm -f conftest.err conftest.$ac_ext
11180
11181 done
11182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11183 rm -f conftest.err conftest.$ac_ext
11184 if $ac_preproc_ok; then
11185 break
11186 fi
11187
11188 done
11189 ac_cv_prog_CPP=$CPP
11190
11191 fi
11192 CPP=$ac_cv_prog_CPP
11193 else
11194 ac_cv_prog_CPP=$CPP
11195 fi
11196 echo "$as_me:$LINENO: result: $CPP" >&5
11197 echo "${ECHO_T}$CPP" >&6
11198 ac_preproc_ok=false
11199 for ac_c_preproc_warn_flag in '' yes
11200 do
11201 # Use a header file that comes with gcc, so configuring glibc
11202 # with a fresh cross-compiler works.
11203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11204 # <limits.h> exists even on freestanding compilers.
11205 # On the NeXT, cc -E runs the code through the compiler's parser,
11206 # not just through cpp. "Syntax error" is here to catch this case.
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 #ifdef __STDC__
11214 # include <limits.h>
11215 #else
11216 # include <assert.h>
11217 #endif
11218 Syntax error
11219 _ACEOF
11220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } >/dev/null; then
11228 if test -s conftest.err; then
11229 ac_cpp_err=$ac_c_preproc_warn_flag
11230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11231 else
11232 ac_cpp_err=
11233 fi
11234 else
11235 ac_cpp_err=yes
11236 fi
11237 if test -z "$ac_cpp_err"; then
11238 :
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 # Broken: fails on valid input.
11244 continue
11245 fi
11246 rm -f conftest.err conftest.$ac_ext
11247
11248 # OK, works on sane cases. Now check whether non-existent headers
11249 # can be detected and how.
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <ac_nonexistent.h>
11257 _ACEOF
11258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11269 else
11270 ac_cpp_err=
11271 fi
11272 else
11273 ac_cpp_err=yes
11274 fi
11275 if test -z "$ac_cpp_err"; then
11276 # Broken: success on invalid input.
11277 continue
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282 # Passes both tests.
11283 ac_preproc_ok=:
11284 break
11285 fi
11286 rm -f conftest.err conftest.$ac_ext
11287
11288 done
11289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11290 rm -f conftest.err conftest.$ac_ext
11291 if $ac_preproc_ok; then
11292 :
11293 else
11294 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11295 See \`config.log' for more details." >&5
11296 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11297 See \`config.log' for more details." >&2;}
11298 { (exit 1); exit 1; }; }
11299 fi
11300
11301 ac_ext=c
11302 ac_cpp='$CPP $CPPFLAGS'
11303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11306
11307
11308 echo "$as_me:$LINENO: checking for egrep" >&5
11309 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11310 if test "${ac_cv_prog_egrep+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11314 then ac_cv_prog_egrep='grep -E'
11315 else ac_cv_prog_egrep='egrep'
11316 fi
11317 fi
11318 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11319 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11320 EGREP=$ac_cv_prog_egrep
11321
11322
11323 if test $ac_cv_c_compiler_gnu = yes; then
11324 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11325 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11326 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329 ac_pattern="Autoconf.*'x'"
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <sgtty.h>
11337 Autoconf TIOCGETP
11338 _ACEOF
11339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11340 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11341 ac_cv_prog_gcc_traditional=yes
11342 else
11343 ac_cv_prog_gcc_traditional=no
11344 fi
11345 rm -f conftest*
11346
11347
11348 if test $ac_cv_prog_gcc_traditional = no; then
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <termio.h>
11356 Autoconf TCGETA
11357 _ACEOF
11358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11359 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11360 ac_cv_prog_gcc_traditional=yes
11361 fi
11362 rm -f conftest*
11363
11364 fi
11365 fi
11366 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11367 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11368 if test $ac_cv_prog_gcc_traditional = yes; then
11369 CC="$CC -traditional"
11370 fi
11371 fi
11372
11373
11374
11375
11376 ac_ext=cc
11377 ac_cpp='$CXXCPP $CPPFLAGS'
11378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11381
11382
11383 CXXFLAGS=${CXXFLAGS:=}
11384 ac_ext=cc
11385 ac_cpp='$CXXCPP $CPPFLAGS'
11386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11389 if test -n "$ac_tool_prefix"; then
11390 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11391 do
11392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11394 echo "$as_me:$LINENO: checking for $ac_word" >&5
11395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11396 if test "${ac_cv_prog_CXX+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 if test -n "$CXX"; then
11400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11401 else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11404 do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11412 fi
11413 done
11414 done
11415
11416 fi
11417 fi
11418 CXX=$ac_cv_prog_CXX
11419 if test -n "$CXX"; then
11420 echo "$as_me:$LINENO: result: $CXX" >&5
11421 echo "${ECHO_T}$CXX" >&6
11422 else
11423 echo "$as_me:$LINENO: result: no" >&5
11424 echo "${ECHO_T}no" >&6
11425 fi
11426
11427 test -n "$CXX" && break
11428 done
11429 fi
11430 if test -z "$CXX"; then
11431 ac_ct_CXX=$CXX
11432 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11433 do
11434 # Extract the first word of "$ac_prog", so it can be a program name with args.
11435 set dummy $ac_prog; ac_word=$2
11436 echo "$as_me:$LINENO: checking for $ac_word" >&5
11437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11438 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 if test -n "$ac_ct_CXX"; then
11442 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_prog_ac_ct_CXX="$ac_prog"
11452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11454 fi
11455 done
11456 done
11457
11458 fi
11459 fi
11460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11461 if test -n "$ac_ct_CXX"; then
11462 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11463 echo "${ECHO_T}$ac_ct_CXX" >&6
11464 else
11465 echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6
11467 fi
11468
11469 test -n "$ac_ct_CXX" && break
11470 done
11471 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11472
11473 CXX=$ac_ct_CXX
11474 fi
11475
11476
11477 # Provide some information about the compiler.
11478 echo "$as_me:$LINENO:" \
11479 "checking for C++ compiler version" >&5
11480 ac_compiler=`set X $ac_compile; echo $2`
11481 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11482 (eval $ac_compiler --version </dev/null >&5) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }
11486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11487 (eval $ac_compiler -v </dev/null >&5) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }
11491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11492 (eval $ac_compiler -V </dev/null >&5) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }
11496
11497 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11498 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508
11509 int
11510 main ()
11511 {
11512 #ifndef __GNUC__
11513 choke me
11514 #endif
11515
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_cxx_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_compiler_gnu=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_compiler_gnu=no
11548 fi
11549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11551
11552 fi
11553 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11554 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11555 GXX=`test $ac_compiler_gnu = yes && echo yes`
11556 ac_test_CXXFLAGS=${CXXFLAGS+set}
11557 ac_save_CXXFLAGS=$CXXFLAGS
11558 CXXFLAGS="-g"
11559 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11560 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11561 if test "${ac_cv_prog_cxx_g+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570
11571 int
11572 main ()
11573 {
11574
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -z "$ac_cxx_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest.$ac_objext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_cv_prog_cxx_g=yes
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 ac_cv_prog_cxx_g=no
11607 fi
11608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11609 fi
11610 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11612 if test "$ac_test_CXXFLAGS" = set; then
11613 CXXFLAGS=$ac_save_CXXFLAGS
11614 elif test $ac_cv_prog_cxx_g = yes; then
11615 if test "$GXX" = yes; then
11616 CXXFLAGS="-g -O2"
11617 else
11618 CXXFLAGS="-g"
11619 fi
11620 else
11621 if test "$GXX" = yes; then
11622 CXXFLAGS="-O2"
11623 else
11624 CXXFLAGS=
11625 fi
11626 fi
11627 for ac_declaration in \
11628 '' \
11629 'extern "C" void std::exit (int) throw (); using std::exit;' \
11630 'extern "C" void std::exit (int); using std::exit;' \
11631 'extern "C" void exit (int) throw ();' \
11632 'extern "C" void exit (int);' \
11633 'void exit (int);'
11634 do
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 $ac_declaration
11642 #include <stdlib.h>
11643 int
11644 main ()
11645 {
11646 exit (42);
11647 ;
11648 return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_cxx_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 :
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 continue
11679 fi
11680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_declaration
11688 int
11689 main ()
11690 {
11691 exit (42);
11692 ;
11693 return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_cxx_werror_flag"
11706 || test ! -s conftest.err'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 break
11719 else
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723 fi
11724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11725 done
11726 rm -f conftest*
11727 if test -n "$ac_declaration"; then
11728 echo '#ifdef __cplusplus' >>confdefs.h
11729 echo $ac_declaration >>confdefs.h
11730 echo '#endif' >>confdefs.h
11731 fi
11732
11733 ac_ext=cc
11734 ac_cpp='$CXXCPP $CPPFLAGS'
11735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11738
11739
11740 ac_ext=c
11741 ac_cpp='$CPP $CPPFLAGS'
11742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745
11746
11747 echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11748 echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11749 GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11750 if test "$GCC" = "yes" ; then
11751 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11752 sed -n '1,/End of search list\./p' | \
11753 grep '^ */usr/local/include$' 2>&1 /dev/null \
11754 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11755 fi
11756 echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11757 echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11758
11759 if test -n "$ac_tool_prefix"; then
11760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11762 echo "$as_me:$LINENO: checking for $ac_word" >&5
11763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11764 if test "${ac_cv_prog_RANLIB+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767 if test -n "$RANLIB"; then
11768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11769 else
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11772 do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11780 fi
11781 done
11782 done
11783
11784 fi
11785 fi
11786 RANLIB=$ac_cv_prog_RANLIB
11787 if test -n "$RANLIB"; then
11788 echo "$as_me:$LINENO: result: $RANLIB" >&5
11789 echo "${ECHO_T}$RANLIB" >&6
11790 else
11791 echo "$as_me:$LINENO: result: no" >&5
11792 echo "${ECHO_T}no" >&6
11793 fi
11794
11795 fi
11796 if test -z "$ac_cv_prog_RANLIB"; then
11797 ac_ct_RANLIB=$RANLIB
11798 # Extract the first word of "ranlib", so it can be a program name with args.
11799 set dummy ranlib; ac_word=$2
11800 echo "$as_me:$LINENO: checking for $ac_word" >&5
11801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805 if test -n "$ac_ct_RANLIB"; then
11806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11807 else
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11810 do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11815 ac_cv_prog_ac_ct_RANLIB="ranlib"
11816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11817 break 2
11818 fi
11819 done
11820 done
11821
11822 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11823 fi
11824 fi
11825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11826 if test -n "$ac_ct_RANLIB"; then
11827 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11828 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11829 else
11830 echo "$as_me:$LINENO: result: no" >&5
11831 echo "${ECHO_T}no" >&6
11832 fi
11833
11834 RANLIB=$ac_ct_RANLIB
11835 else
11836 RANLIB="$ac_cv_prog_RANLIB"
11837 fi
11838
11839
11840 # Extract the first word of "ar", so it can be a program name with args.
11841 set dummy ar; ac_word=$2
11842 echo "$as_me:$LINENO: checking for $ac_word" >&5
11843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11844 if test "${ac_cv_prog_AR+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847 if test -n "$AR"; then
11848 ac_cv_prog_AR="$AR" # Let the user override the test.
11849 else
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11852 do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11857 ac_cv_prog_AR="ar"
11858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 break 2
11860 fi
11861 done
11862 done
11863
11864 fi
11865 fi
11866 AR=$ac_cv_prog_AR
11867 if test -n "$AR"; then
11868 echo "$as_me:$LINENO: result: $AR" >&5
11869 echo "${ECHO_T}$AR" >&6
11870 else
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 fi
11874
11875 if test "x$AR" = "x" ; then
11876 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11877 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11878 { (exit 1); exit 1; }; }
11879 fi
11880
11881 # Find a good install program. We prefer a C program (faster),
11882 # so one script is as good as another. But avoid the broken or
11883 # incompatible versions:
11884 # SysV /etc/install, /usr/sbin/install
11885 # SunOS /usr/etc/install
11886 # IRIX /sbin/install
11887 # AIX /bin/install
11888 # AmigaOS /C/install, which installs bootblocks on floppy discs
11889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11892 # OS/2's system install, which has a completely different semantic
11893 # ./install, which can be erroneously created by make from ./install.sh.
11894 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11895 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11896 if test -z "$INSTALL"; then
11897 if test "${ac_cv_path_install+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11902 do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 # Account for people who put trailing slashes in PATH elements.
11906 case $as_dir/ in
11907 ./ | .// | /cC/* | \
11908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11909 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11910 /usr/ucb/* ) ;;
11911 *)
11912 # OSF1 and SCO ODT 3.0 have their own names for install.
11913 # Don't use installbsd from OSF since it installs stuff as root
11914 # by default.
11915 for ac_prog in ginstall scoinst install; do
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11918 if test $ac_prog = install &&
11919 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11920 # AIX install. It has an incompatible calling convention.
11921 :
11922 elif test $ac_prog = install &&
11923 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11924 # program-specific install script used by HP pwplus--don't use.
11925 :
11926 else
11927 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11928 break 3
11929 fi
11930 fi
11931 done
11932 done
11933 ;;
11934 esac
11935 done
11936
11937
11938 fi
11939 if test "${ac_cv_path_install+set}" = set; then
11940 INSTALL=$ac_cv_path_install
11941 else
11942 # As a last resort, use the slow shell script. We don't cache a
11943 # path for INSTALL within a source directory, because that will
11944 # break other packages using the cache if that directory is
11945 # removed, or if the path is relative.
11946 INSTALL=$ac_install_sh
11947 fi
11948 fi
11949 echo "$as_me:$LINENO: result: $INSTALL" >&5
11950 echo "${ECHO_T}$INSTALL" >&6
11951
11952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11953 # It thinks the first close brace ends the variable substitution.
11954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11955
11956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11957
11958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11959
11960
11961 case ${INSTALL} in
11962 /* ) # Absolute
11963 ;;
11964 ?:* ) # Drive letter, considered as absolute.
11965 ;;
11966 *)
11967 INSTALL=`pwd`/${INSTALL} ;;
11968 esac
11969
11970 case ${host} in
11971 *-hp-hpux* )
11972 INSTALL_DIR="mkdir"
11973 ;;
11974
11975 *) INSTALL_DIR="$INSTALL -d"
11976 ;;
11977 esac
11978
11979
11980 case "${host}" in
11981
11982 powerpc-*-darwin* )
11983 INSTALL_PROGRAM="cp -fp"
11984 INSTALL_DATA="cp -fp"
11985 ;;
11986 *)
11987 ;;
11988 esac
11989
11990 # Extract the first word of "strip", so it can be a program name with args.
11991 set dummy strip; ac_word=$2
11992 echo "$as_me:$LINENO: checking for $ac_word" >&5
11993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11994 if test "${ac_cv_prog_STRIP+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 if test -n "$STRIP"; then
11998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11999 else
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12002 do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_STRIP="strip"
12008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12010 fi
12011 done
12012 done
12013
12014 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12015 fi
12016 fi
12017 STRIP=$ac_cv_prog_STRIP
12018 if test -n "$STRIP"; then
12019 echo "$as_me:$LINENO: result: $STRIP" >&5
12020 echo "${ECHO_T}$STRIP" >&6
12021 else
12022 echo "$as_me:$LINENO: result: no" >&5
12023 echo "${ECHO_T}no" >&6
12024 fi
12025
12026
12027 echo "$as_me:$LINENO: checking if make is GNU make" >&5
12028 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12029 if test "${wx_cv_prog_makeisgnu+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032
12033 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12034 egrep -s GNU > /dev/null); then
12035 wx_cv_prog_makeisgnu="yes"
12036 else
12037 wx_cv_prog_makeisgnu="no"
12038 fi
12039
12040 fi
12041 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12042 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12043
12044 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12045 IF_GNU_MAKE=""
12046 else
12047 IF_GNU_MAKE="#"
12048 fi
12049
12050
12051
12052 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12053 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12054 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12055 if test "${wx_cv_prog_makevpath+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058
12059 cat - << EOF > confMake
12060 check : file
12061 cp \$? \$@
12062 cp \$? final_file
12063 EOF
12064
12065 if test ! -d sub ; then
12066 mkdir sub
12067 fi
12068 echo dummy > sub/file
12069 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12070 RESULT=$?
12071 rm -f sub/file check final_file confMake
12072 rmdir sub
12073 if test "$RESULT" = 0; then
12074 wx_cv_prog_makevpath="yes"
12075 else
12076 wx_cv_prog_makevpath="no"
12077 fi
12078
12079 fi
12080 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12081 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12082
12083 if test "x$wx_cv_prog_makevpath" != "xyes"; then
12084 { { echo "$as_me:$LINENO: error:
12085 You need a make-utility that is able to use the variable
12086 VPATH correctly.
12087 If your version of make does not support VPATH correctly,
12088 please install GNU-make (possibly as gmake), and start
12089 configure with the following command:
12090 export MAKE=gmake; ./configure for sh-type shells
12091 setenv MAKE gmake; ./configure for csh-type shells
12092 Also please do remember to use gmake in this case every time
12093 you are trying to compile.
12094 " >&5
12095 echo "$as_me: error:
12096 You need a make-utility that is able to use the variable
12097 VPATH correctly.
12098 If your version of make does not support VPATH correctly,
12099 please install GNU-make (possibly as gmake), and start
12100 configure with the following command:
12101 export MAKE=gmake; ./configure for sh-type shells
12102 setenv MAKE gmake; ./configure for csh-type shells
12103 Also please do remember to use gmake in this case every time
12104 you are trying to compile.
12105 " >&2;}
12106 { (exit 1); exit 1; }; }
12107 fi fi
12108 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12109 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12110 LN_S=$as_ln_s
12111 if test "$LN_S" = "ln -s"; then
12112 echo "$as_me:$LINENO: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6
12114 else
12115 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12116 echo "${ECHO_T}no, using $LN_S" >&6
12117 fi
12118
12119
12120
12121 case "${host}" in
12122 *-pc-os2_emx | *-pc-os2-emx )
12123 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12124 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12125 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12126 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 ac_check_lib_save_LIBS=$LIBS
12130 LIBS="-lcExt $LIBS"
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h. */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137
12138 /* Override any gcc2 internal prototype to avoid an error. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12144 char drand48 ();
12145 int
12146 main ()
12147 {
12148 drand48 ();
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 rm -f conftest.$ac_objext conftest$ac_exeext
12154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155 (eval $ac_link) 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag"
12163 || test ! -s conftest.err'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest$ac_exeext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_lib_cExt_drand48=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_cv_lib_cExt_drand48=no
12181 fi
12182 rm -f conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LIBS=$ac_check_lib_save_LIBS
12185 fi
12186 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12187 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12188 if test $ac_cv_lib_cExt_drand48 = yes; then
12189 LIBS="$LIBS -lcExt"
12190 fi
12191
12192 else
12193 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12194 fi
12195 echo "$as_me:$LINENO: checking for gcc version" >&5
12196 echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12197 if test "${wx_cv_gccversion+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200
12201 cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h. */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207
12208 int
12209 main ()
12210 {
12211
12212 #if (__GNUC__ < 3)
12213 #error old gcc
12214 #endif
12215
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222 (eval $ac_compile) 2>conftest.er1
12223 ac_status=$?
12224 grep -v '^ *+' conftest.er1 >conftest.err
12225 rm -f conftest.er1
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_c_werror_flag"
12230 || test ! -s conftest.err'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249
12250 int
12251 main ()
12252 {
12253
12254 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12255 #error intermediate gcc
12256 #endif
12257
12258 ;
12259 return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284
12285 wx_cv_gccversion=Innotek
12286
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291
12292 wx_cv_gccversion=3
12293
12294
12295 fi
12296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12297
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302
12303 wx_cv_gccversion=2
12304
12305
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308
12309 fi
12310 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12311 echo "${ECHO_T}$wx_cv_gccversion" >&6
12312 if test "$wx_cv_gccversion" = "2"; then
12313 LIBS="$LIBS -lstdcpp"
12314 LDFLAGS="$LDFLAGS -Zsysv-signals"
12315 else
12316 if test "$wx_cv_gccversion" = "3"; then
12317 LIBS="$LIBS -lstdcxx"
12318 LDFLAGS="$LDFLAGS -Zsysv-signals"
12319 else
12320 LIBS="$LIBS -lstdc++"
12321 fi
12322 fi
12323 if test "$wxUSE_OMF" = "yes"; then
12324 LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12325 fi
12326 ;;
12327 *)
12328
12329
12330
12331 ac_ext=cc
12332 ac_cpp='$CXXCPP $CPPFLAGS'
12333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12336
12337
12338
12339 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12340 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12341 if test "${ac_cv_string_strcasecmp+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h. */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351
12352 #include <string.h>
12353
12354 int
12355 main ()
12356 {
12357
12358 strcasecmp("foo", "bar");
12359
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -z "$ac_cxx_werror_flag"
12374 || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_string_strcasecmp=yes
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_cv_string_strcasecmp=no
12392
12393 fi
12394 rm -f conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396
12397 fi
12398 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12399 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12400
12401 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12402 cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_STRCASECMP_IN_STRING_H 1
12404 _ACEOF
12405
12406 else
12407 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12408 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12409 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419
12420 #include <strings.h>
12421
12422 int
12423 main ()
12424 {
12425
12426 strcasecmp("foo", "bar");
12427
12428 ;
12429 return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434 (eval $ac_link) 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_cxx_werror_flag"
12442 || test ! -s conftest.err'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_strings_strcasecmp=yes
12455 else
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ac_cv_strings_strcasecmp=no
12460
12461 fi
12462 rm -f conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464
12465 fi
12466 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12467 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12468
12469 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12472 _ACEOF
12473
12474 else
12475 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12476 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12477 { (exit 1); exit 1; }; }
12478 fi
12479 fi
12480
12481 ac_ext=c
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
12487 ;;
12488 esac
12489
12490
12491 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12492 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12493 if test "${ac_cv_header_stdc+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 #include <stdlib.h>
12503 #include <stdarg.h>
12504 #include <string.h>
12505 #include <float.h>
12506
12507 int
12508 main ()
12509 {
12510
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag"
12525 || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest.$ac_objext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 ac_cv_header_stdc=yes
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542 ac_cv_header_stdc=no
12543 fi
12544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12545
12546 if test $ac_cv_header_stdc = yes; then
12547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include <string.h>
12555
12556 _ACEOF
12557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12558 $EGREP "memchr" >/dev/null 2>&1; then
12559 :
12560 else
12561 ac_cv_header_stdc=no
12562 fi
12563 rm -f conftest*
12564
12565 fi
12566
12567 if test $ac_cv_header_stdc = yes; then
12568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12569 cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h. */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 #include <stdlib.h>
12576
12577 _ACEOF
12578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12579 $EGREP "free" >/dev/null 2>&1; then
12580 :
12581 else
12582 ac_cv_header_stdc=no
12583 fi
12584 rm -f conftest*
12585
12586 fi
12587
12588 if test $ac_cv_header_stdc = yes; then
12589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12590 if test "$cross_compiling" = yes; then
12591 :
12592 else
12593 cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <ctype.h>
12600 #if ((' ' & 0x0FF) == 0x020)
12601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12603 #else
12604 # define ISLOWER(c) \
12605 (('a' <= (c) && (c) <= 'i') \
12606 || ('j' <= (c) && (c) <= 'r') \
12607 || ('s' <= (c) && (c) <= 'z'))
12608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12609 #endif
12610
12611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12612 int
12613 main ()
12614 {
12615 int i;
12616 for (i = 0; i < 256; i++)
12617 if (XOR (islower (i), ISLOWER (i))
12618 || toupper (i) != TOUPPER (i))
12619 exit(2);
12620 exit (0);
12621 }
12622 _ACEOF
12623 rm -f conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625 (eval $ac_link) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 :
12635 else
12636 echo "$as_me: program exited with status $ac_status" >&5
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 ( exit $ac_status )
12641 ac_cv_header_stdc=no
12642 fi
12643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12644 fi
12645 fi
12646 fi
12647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12649 if test $ac_cv_header_stdc = yes; then
12650
12651 cat >>confdefs.h <<\_ACEOF
12652 #define STDC_HEADERS 1
12653 _ACEOF
12654
12655 fi
12656
12657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12668 inttypes.h stdint.h unistd.h
12669 do
12670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12671 echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 $ac_includes_default
12683
12684 #include <$ac_header>
12685 _ACEOF
12686 rm -f conftest.$ac_objext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12688 (eval $ac_compile) 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -z "$ac_c_werror_flag"
12696 || test ! -s conftest.err'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest.$ac_objext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 eval "$as_ac_Header=yes"
12709 else
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713 eval "$as_ac_Header=no"
12714 fi
12715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12716 fi
12717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722 _ACEOF
12723
12724 fi
12725
12726 done
12727
12728
12729
12730 for ac_header in stdlib.h
12731 do
12732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12734 echo "$as_me:$LINENO: checking for $ac_header" >&5
12735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 fi
12739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12741 else
12742 # Is the header compilable?
12743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 #include <$ac_header>
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag"
12764 || test ! -s conftest.err'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_header_compiler=yes
12777 else
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 ac_header_compiler=no
12782 fi
12783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12785 echo "${ECHO_T}$ac_header_compiler" >&6
12786
12787 # Is the header present?
12788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 #include <$ac_header>
12797 _ACEOF
12798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } >/dev/null; then
12806 if test -s conftest.err; then
12807 ac_cpp_err=$ac_c_preproc_warn_flag
12808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12809 else
12810 ac_cpp_err=
12811 fi
12812 else
12813 ac_cpp_err=yes
12814 fi
12815 if test -z "$ac_cpp_err"; then
12816 ac_header_preproc=yes
12817 else
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821 ac_header_preproc=no
12822 fi
12823 rm -f conftest.err conftest.$ac_ext
12824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12825 echo "${ECHO_T}$ac_header_preproc" >&6
12826
12827 # So? What about this header?
12828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12829 yes:no: )
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12834 ac_header_preproc=yes
12835 ;;
12836 no:yes:* )
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12849 (
12850 cat <<\_ASBOX
12851 ## ----------------------------------------- ##
12852 ## Report this to wx-dev@lists.wxwindows.org ##
12853 ## ----------------------------------------- ##
12854 _ASBOX
12855 ) |
12856 sed "s/^/$as_me: WARNING: /" >&2
12857 ;;
12858 esac
12859 echo "$as_me:$LINENO: checking for $ac_header" >&5
12860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864 eval "$as_ac_Header=\$ac_header_preproc"
12865 fi
12866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12868
12869 fi
12870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12871 cat >>confdefs.h <<_ACEOF
12872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12873 _ACEOF
12874
12875 fi
12876
12877 done
12878
12879
12880 for ac_header in malloc.h
12881 do
12882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12884 echo "$as_me:$LINENO: checking for $ac_header" >&5
12885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 fi
12889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12891 else
12892 # Is the header compilable?
12893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12895 cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h. */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 $ac_includes_default
12902 #include <$ac_header>
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_c_werror_flag"
12914 || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest.$ac_objext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_header_compiler=yes
12927 else
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 ac_header_compiler=no
12932 fi
12933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12935 echo "${ECHO_T}$ac_header_compiler" >&6
12936
12937 # Is the header present?
12938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h. */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 #include <$ac_header>
12947 _ACEOF
12948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } >/dev/null; then
12956 if test -s conftest.err; then
12957 ac_cpp_err=$ac_c_preproc_warn_flag
12958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12959 else
12960 ac_cpp_err=
12961 fi
12962 else
12963 ac_cpp_err=yes
12964 fi
12965 if test -z "$ac_cpp_err"; then
12966 ac_header_preproc=yes
12967 else
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 ac_header_preproc=no
12972 fi
12973 rm -f conftest.err conftest.$ac_ext
12974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12975 echo "${ECHO_T}$ac_header_preproc" >&6
12976
12977 # So? What about this header?
12978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12979 yes:no: )
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12984 ac_header_preproc=yes
12985 ;;
12986 no:yes:* )
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12999 (
13000 cat <<\_ASBOX
13001 ## ----------------------------------------- ##
13002 ## Report this to wx-dev@lists.wxwindows.org ##
13003 ## ----------------------------------------- ##
13004 _ASBOX
13005 ) |
13006 sed "s/^/$as_me: WARNING: /" >&2
13007 ;;
13008 esac
13009 echo "$as_me:$LINENO: checking for $ac_header" >&5
13010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014 eval "$as_ac_Header=\$ac_header_preproc"
13015 fi
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018
13019 fi
13020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13023 _ACEOF
13024
13025 fi
13026
13027 done
13028
13029
13030 for ac_header in unistd.h
13031 do
13032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13034 echo "$as_me:$LINENO: checking for $ac_header" >&5
13035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 fi
13039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13041 else
13042 # Is the header compilable?
13043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 $ac_includes_default
13052 #include <$ac_header>
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_header_compiler=yes
13077 else
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 ac_header_compiler=no
13082 fi
13083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13085 echo "${ECHO_T}$ac_header_compiler" >&6
13086
13087 # Is the header present?
13088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <$ac_header>
13097 _ACEOF
13098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } >/dev/null; then
13106 if test -s conftest.err; then
13107 ac_cpp_err=$ac_c_preproc_warn_flag
13108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13109 else
13110 ac_cpp_err=
13111 fi
13112 else
13113 ac_cpp_err=yes
13114 fi
13115 if test -z "$ac_cpp_err"; then
13116 ac_header_preproc=yes
13117 else
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_header_preproc=no
13122 fi
13123 rm -f conftest.err conftest.$ac_ext
13124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13125 echo "${ECHO_T}$ac_header_preproc" >&6
13126
13127 # So? What about this header?
13128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13129 yes:no: )
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13134 ac_header_preproc=yes
13135 ;;
13136 no:yes:* )
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13149 (
13150 cat <<\_ASBOX
13151 ## ----------------------------------------- ##
13152 ## Report this to wx-dev@lists.wxwindows.org ##
13153 ## ----------------------------------------- ##
13154 _ASBOX
13155 ) |
13156 sed "s/^/$as_me: WARNING: /" >&2
13157 ;;
13158 esac
13159 echo "$as_me:$LINENO: checking for $ac_header" >&5
13160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164 eval "$as_ac_Header=\$ac_header_preproc"
13165 fi
13166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13168
13169 fi
13170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13171 cat >>confdefs.h <<_ACEOF
13172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13173 _ACEOF
13174
13175 fi
13176
13177 done
13178
13179
13180 for ac_header in wchar.h
13181 do
13182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13184 echo "$as_me:$LINENO: checking for $ac_header" >&5
13185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 fi
13189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13191 else
13192 # Is the header compilable?
13193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 $ac_includes_default
13202 #include <$ac_header>
13203 _ACEOF
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag"
13214 || test ! -s conftest.err'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_header_compiler=yes
13227 else
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13230
13231 ac_header_compiler=no
13232 fi
13233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13235 echo "${ECHO_T}$ac_header_compiler" >&6
13236
13237 # Is the header present?
13238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <$ac_header>
13247 _ACEOF
13248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } >/dev/null; then
13256 if test -s conftest.err; then
13257 ac_cpp_err=$ac_c_preproc_warn_flag
13258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13259 else
13260 ac_cpp_err=
13261 fi
13262 else
13263 ac_cpp_err=yes
13264 fi
13265 if test -z "$ac_cpp_err"; then
13266 ac_header_preproc=yes
13267 else
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 ac_header_preproc=no
13272 fi
13273 rm -f conftest.err conftest.$ac_ext
13274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13275 echo "${ECHO_T}$ac_header_preproc" >&6
13276
13277 # So? What about this header?
13278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13279 yes:no: )
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13284 ac_header_preproc=yes
13285 ;;
13286 no:yes:* )
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13299 (
13300 cat <<\_ASBOX
13301 ## ----------------------------------------- ##
13302 ## Report this to wx-dev@lists.wxwindows.org ##
13303 ## ----------------------------------------- ##
13304 _ASBOX
13305 ) |
13306 sed "s/^/$as_me: WARNING: /" >&2
13307 ;;
13308 esac
13309 echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 eval "$as_ac_Header=\$ac_header_preproc"
13315 fi
13316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13318
13319 fi
13320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13321 cat >>confdefs.h <<_ACEOF
13322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323 _ACEOF
13324
13325 fi
13326
13327 done
13328
13329
13330 if test "$ac_cv_header_wchar_h" != "yes"; then
13331
13332 for ac_header in wcstr.h
13333 do
13334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13336 echo "$as_me:$LINENO: checking for $ac_header" >&5
13337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 fi
13341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343 else
13344 # Is the header compilable?
13345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13354 #include <$ac_header>
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_header_compiler=yes
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_header_compiler=no
13384 fi
13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13387 echo "${ECHO_T}$ac_header_compiler" >&6
13388
13389 # Is the header present?
13390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398 #include <$ac_header>
13399 _ACEOF
13400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } >/dev/null; then
13408 if test -s conftest.err; then
13409 ac_cpp_err=$ac_c_preproc_warn_flag
13410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13411 else
13412 ac_cpp_err=
13413 fi
13414 else
13415 ac_cpp_err=yes
13416 fi
13417 if test -z "$ac_cpp_err"; then
13418 ac_header_preproc=yes
13419 else
13420 echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_header_preproc=no
13424 fi
13425 rm -f conftest.err conftest.$ac_ext
13426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13427 echo "${ECHO_T}$ac_header_preproc" >&6
13428
13429 # So? What about this header?
13430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13431 yes:no: )
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13436 ac_header_preproc=yes
13437 ;;
13438 no:yes:* )
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13451 (
13452 cat <<\_ASBOX
13453 ## ----------------------------------------- ##
13454 ## Report this to wx-dev@lists.wxwindows.org ##
13455 ## ----------------------------------------- ##
13456 _ASBOX
13457 ) |
13458 sed "s/^/$as_me: WARNING: /" >&2
13459 ;;
13460 esac
13461 echo "$as_me:$LINENO: checking for $ac_header" >&5
13462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 else
13466 eval "$as_ac_Header=\$ac_header_preproc"
13467 fi
13468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13470
13471 fi
13472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13473 cat >>confdefs.h <<_ACEOF
13474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13475 _ACEOF
13476
13477 fi
13478
13479 done
13480
13481 fi
13482
13483
13484 for ac_header in fnmatch.h
13485 do
13486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13488 echo "$as_me:$LINENO: checking for $ac_header" >&5
13489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 fi
13493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13495 else
13496 # Is the header compilable?
13497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 $ac_includes_default
13506 #include <$ac_header>
13507 _ACEOF
13508 rm -f conftest.$ac_objext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510 (eval $ac_compile) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_header_compiler=yes
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 ac_header_compiler=no
13536 fi
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13539 echo "${ECHO_T}$ac_header_compiler" >&6
13540
13541 # Is the header present?
13542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 #include <$ac_header>
13551 _ACEOF
13552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } >/dev/null; then
13560 if test -s conftest.err; then
13561 ac_cpp_err=$ac_c_preproc_warn_flag
13562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13563 else
13564 ac_cpp_err=
13565 fi
13566 else
13567 ac_cpp_err=yes
13568 fi
13569 if test -z "$ac_cpp_err"; then
13570 ac_header_preproc=yes
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 ac_header_preproc=no
13576 fi
13577 rm -f conftest.err conftest.$ac_ext
13578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13579 echo "${ECHO_T}$ac_header_preproc" >&6
13580
13581 # So? What about this header?
13582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13583 yes:no: )
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13588 ac_header_preproc=yes
13589 ;;
13590 no:yes:* )
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13603 (
13604 cat <<\_ASBOX
13605 ## ----------------------------------------- ##
13606 ## Report this to wx-dev@lists.wxwindows.org ##
13607 ## ----------------------------------------- ##
13608 _ASBOX
13609 ) |
13610 sed "s/^/$as_me: WARNING: /" >&2
13611 ;;
13612 esac
13613 echo "$as_me:$LINENO: checking for $ac_header" >&5
13614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618 eval "$as_ac_Header=\$ac_header_preproc"
13619 fi
13620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13622
13623 fi
13624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13625 cat >>confdefs.h <<_ACEOF
13626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13627 _ACEOF
13628
13629 fi
13630
13631 done
13632
13633
13634 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13635
13636 for ac_func in fnmatch
13637 do
13638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13639 echo "$as_me:$LINENO: checking for $ac_func" >&5
13640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13641 if eval "test \"\${$as_ac_var+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h. */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13652 #define $ac_func innocuous_$ac_func
13653
13654 /* System header to define __stub macros and hopefully few prototypes,
13655 which can conflict with char $ac_func (); below.
13656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13657 <limits.h> exists even on freestanding compilers. */
13658
13659 #ifdef __STDC__
13660 # include <limits.h>
13661 #else
13662 # include <assert.h>
13663 #endif
13664
13665 #undef $ac_func
13666
13667 /* Override any gcc2 internal prototype to avoid an error. */
13668 #ifdef __cplusplus
13669 extern "C"
13670 {
13671 #endif
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13674 char $ac_func ();
13675 /* The GNU C library defines this for functions which it implements
13676 to always fail with ENOSYS. Some functions are actually named
13677 something starting with __ and the normal name is an alias. */
13678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13679 choke me
13680 #else
13681 char (*f) () = $ac_func;
13682 #endif
13683 #ifdef __cplusplus
13684 }
13685 #endif
13686
13687 int
13688 main ()
13689 {
13690 return f != $ac_func;
13691 ;
13692 return 0;
13693 }
13694 _ACEOF
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13697 (eval $ac_link) 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag"
13705 || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 eval "$as_ac_var=yes"
13718 else
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722 eval "$as_ac_var=no"
13723 fi
13724 rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 fi
13727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13729 if test `eval echo '${'$as_ac_var'}'` = yes; then
13730 cat >>confdefs.h <<_ACEOF
13731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13732 _ACEOF
13733
13734 fi
13735 done
13736
13737 fi
13738
13739
13740 for ac_header in langinfo.h
13741 do
13742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13744 echo "$as_me:$LINENO: checking for $ac_header" >&5
13745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 fi
13749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13751 else
13752 # Is the header compilable?
13753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 $ac_includes_default
13762 #include <$ac_header>
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_header_compiler=yes
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791 ac_header_compiler=no
13792 fi
13793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 echo "${ECHO_T}$ac_header_compiler" >&6
13796
13797 # Is the header present?
13798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #include <$ac_header>
13807 _ACEOF
13808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } >/dev/null; then
13816 if test -s conftest.err; then
13817 ac_cpp_err=$ac_c_preproc_warn_flag
13818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13819 else
13820 ac_cpp_err=
13821 fi
13822 else
13823 ac_cpp_err=yes
13824 fi
13825 if test -z "$ac_cpp_err"; then
13826 ac_header_preproc=yes
13827 else
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831 ac_header_preproc=no
13832 fi
13833 rm -f conftest.err conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13835 echo "${ECHO_T}$ac_header_preproc" >&6
13836
13837 # So? What about this header?
13838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 yes:no: )
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13844 ac_header_preproc=yes
13845 ;;
13846 no:yes:* )
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13859 (
13860 cat <<\_ASBOX
13861 ## ----------------------------------------- ##
13862 ## Report this to wx-dev@lists.wxwindows.org ##
13863 ## ----------------------------------------- ##
13864 _ASBOX
13865 ) |
13866 sed "s/^/$as_me: WARNING: /" >&2
13867 ;;
13868 esac
13869 echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 eval "$as_ac_Header=\$ac_header_preproc"
13875 fi
13876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13878
13879 fi
13880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13881 cat >>confdefs.h <<_ACEOF
13882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13883 _ACEOF
13884
13885 fi
13886
13887 done
13888
13889
13890 case "${host}" in
13891 *-pc-os2_emx | *-pc-os2-emx )
13892 if test $ac_cv_header_langinfo_h = "yes"; then
13893 LIBS="$LIBS -lintl"
13894 fi
13895 ;;
13896 esac
13897
13898 if test "$wxUSE_GUI" = "yes"; then
13899 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13900
13901 for ac_header in X11/Xlib.h
13902 do
13903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13905 echo "$as_me:$LINENO: checking for $ac_header" >&5
13906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 fi
13910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13912 else
13913 # Is the header compilable?
13914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h. */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 $ac_includes_default
13923 #include <$ac_header>
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927 (eval $ac_compile) 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag"
13935 || test ! -s conftest.err'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; } &&
13941 { ac_try='test -s conftest.$ac_objext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_header_compiler=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_header_compiler=no
13953 fi
13954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13956 echo "${ECHO_T}$ac_header_compiler" >&6
13957
13958 # Is the header present?
13959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <$ac_header>
13968 _ACEOF
13969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } >/dev/null; then
13977 if test -s conftest.err; then
13978 ac_cpp_err=$ac_c_preproc_warn_flag
13979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13980 else
13981 ac_cpp_err=
13982 fi
13983 else
13984 ac_cpp_err=yes
13985 fi
13986 if test -z "$ac_cpp_err"; then
13987 ac_header_preproc=yes
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 ac_header_preproc=no
13993 fi
13994 rm -f conftest.err conftest.$ac_ext
13995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13996 echo "${ECHO_T}$ac_header_preproc" >&6
13997
13998 # So? What about this header?
13999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14000 yes:no: )
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14005 ac_header_preproc=yes
14006 ;;
14007 no:yes:* )
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14020 (
14021 cat <<\_ASBOX
14022 ## ----------------------------------------- ##
14023 ## Report this to wx-dev@lists.wxwindows.org ##
14024 ## ----------------------------------------- ##
14025 _ASBOX
14026 ) |
14027 sed "s/^/$as_me: WARNING: /" >&2
14028 ;;
14029 esac
14030 echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 eval "$as_ac_Header=\$ac_header_preproc"
14036 fi
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14039
14040 fi
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042 cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14044 _ACEOF
14045
14046 fi
14047
14048 done
14049
14050
14051 for ac_header in X11/XKBlib.h
14052 do
14053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14054 echo "$as_me:$LINENO: checking for $ac_header" >&5
14055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065
14066 #if HAVE_X11_XLIB_H
14067 #include <X11/Xlib.h>
14068 #endif
14069
14070
14071 #include <$ac_header>
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 eval "$as_ac_Header=yes"
14096 else
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 eval "$as_ac_Header=no"
14101 fi
14102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14103 fi
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14109 _ACEOF
14110
14111 fi
14112
14113 done
14114
14115 fi
14116 fi
14117
14118
14119 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14120 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14121 if test "${ac_cv_c_const+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h. */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130
14131 int
14132 main ()
14133 {
14134 /* FIXME: Include the comments suggested by Paul. */
14135 #ifndef __cplusplus
14136 /* Ultrix mips cc rejects this. */
14137 typedef int charset[2];
14138 const charset x;
14139 /* SunOS 4.1.1 cc rejects this. */
14140 char const *const *ccp;
14141 char **p;
14142 /* NEC SVR4.0.2 mips cc rejects this. */
14143 struct point {int x, y;};
14144 static struct point const zero = {0,0};
14145 /* AIX XL C 1.02.0.0 rejects this.
14146 It does not let you subtract one const X* pointer from another in
14147 an arm of an if-expression whose if-part is not a constant
14148 expression */
14149 const char *g = "string";
14150 ccp = &g + (g ? g-g : 0);
14151 /* HPUX 7.0 cc rejects these. */
14152 ++ccp;
14153 p = (char**) ccp;
14154 ccp = (char const *const *) p;
14155 { /* SCO 3.2v4 cc rejects this. */
14156 char *t;
14157 char const *s = 0 ? (char *) 0 : (char const *) 0;
14158
14159 *t++ = 0;
14160 }
14161 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14162 int x[] = {25, 17};
14163 const int *foo = &x[0];
14164 ++foo;
14165 }
14166 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14167 typedef const int *iptr;
14168 iptr p = 0;
14169 ++p;
14170 }
14171 { /* AIX XL C 1.02.0.0 rejects this saying
14172 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14173 struct s { int j; const int *ap[3]; };
14174 struct s *b; b->j = 5;
14175 }
14176 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14177 const int foo = 10;
14178 }
14179 #endif
14180
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187 (eval $ac_compile) 2>conftest.er1
14188 ac_status=$?
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -f conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_c_werror_flag"
14195 || test ! -s conftest.err'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest.$ac_objext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_c_const=yes
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212 ac_cv_c_const=no
14213 fi
14214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14215 fi
14216 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14217 echo "${ECHO_T}$ac_cv_c_const" >&6
14218 if test $ac_cv_c_const = no; then
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define const
14222 _ACEOF
14223
14224 fi
14225
14226 echo "$as_me:$LINENO: checking for inline" >&5
14227 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14228 if test "${ac_cv_c_inline+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231 ac_cv_c_inline=no
14232 for ac_kw in inline __inline__ __inline; do
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #ifndef __cplusplus
14240 typedef int foo_t;
14241 static $ac_kw foo_t static_foo () {return 0; }
14242 $ac_kw foo_t foo () {return 0; }
14243 #endif
14244
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -z "$ac_c_werror_flag"
14256 || test ! -s conftest.err'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; } &&
14262 { ac_try='test -s conftest.$ac_objext'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_cv_c_inline=$ac_kw; break
14269 else
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 fi
14274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14275 done
14276
14277 fi
14278 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14279 echo "${ECHO_T}$ac_cv_c_inline" >&6
14280
14281
14282 case $ac_cv_c_inline in
14283 inline | yes) ;;
14284 *)
14285 case $ac_cv_c_inline in
14286 no) ac_val=;;
14287 *) ac_val=$ac_cv_c_inline;;
14288 esac
14289 cat >>confdefs.h <<_ACEOF
14290 #ifndef __cplusplus
14291 #define inline $ac_val
14292 #endif
14293 _ACEOF
14294 ;;
14295 esac
14296
14297
14298 echo "$as_me:$LINENO: checking for char" >&5
14299 echo $ECHO_N "checking for char... $ECHO_C" >&6
14300 if test "${ac_cv_type_char+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 $ac_includes_default
14310 int
14311 main ()
14312 {
14313 if ((char *) 0)
14314 return 0;
14315 if (sizeof (char))
14316 return 0;
14317 ;
14318 return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_type_char=yes
14344 else
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348 ac_cv_type_char=no
14349 fi
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14353 echo "${ECHO_T}$ac_cv_type_char" >&6
14354
14355 echo "$as_me:$LINENO: checking size of char" >&5
14356 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14357 if test "${ac_cv_sizeof_char+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360 if test "$ac_cv_type_char" = yes; then
14361 # The cast to unsigned long works around a bug in the HP C Compiler
14362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14364 # This bug is HP SR number 8606223364.
14365 if test "$cross_compiling" = yes; then
14366 # Depending upon the size, compute the lo and hi bounds.
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 $ac_includes_default
14374 int
14375 main ()
14376 {
14377 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14378 test_array [0] = 0
14379
14380 ;
14381 return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386 (eval $ac_compile) 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag"
14394 || test ! -s conftest.err'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest.$ac_objext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_lo=0 ac_mid=0
14407 while :; do
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14415 int
14416 main ()
14417 {
14418 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14419 test_array [0] = 0
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_hi=$ac_mid; break
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_lo=`expr $ac_mid + 1`
14453 if test $ac_lo -le $ac_mid; then
14454 ac_lo= ac_hi=
14455 break
14456 fi
14457 ac_mid=`expr 2 '*' $ac_mid + 1`
14458 fi
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460 done
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 $ac_includes_default
14472 int
14473 main ()
14474 {
14475 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14476 test_array [0] = 0
14477
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_hi=-1 ac_mid=-1
14505 while :; do
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 $ac_includes_default
14513 int
14514 main ()
14515 {
14516 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14517 test_array [0] = 0
14518
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525 (eval $ac_compile) 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_lo=$ac_mid; break
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_hi=`expr '(' $ac_mid ')' - 1`
14551 if test $ac_mid -le $ac_hi; then
14552 ac_lo= ac_hi=
14553 break
14554 fi
14555 ac_mid=`expr 2 '*' $ac_mid`
14556 fi
14557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14558 done
14559 else
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14562
14563 ac_lo= ac_hi=
14564 fi
14565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14566 fi
14567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14568 # Binary search between lo and hi bounds.
14569 while test "x$ac_lo" != "x$ac_hi"; do
14570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 int
14579 main ()
14580 {
14581 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14582 test_array [0] = 0
14583
14584 ;
14585 return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_hi=$ac_mid
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_lo=`expr '(' $ac_mid ')' + 1`
14616 fi
14617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14618 done
14619 case $ac_lo in
14620 ?*) ac_cv_sizeof_char=$ac_lo;;
14621 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14622 See \`config.log' for more details." >&5
14623 echo "$as_me: error: cannot compute sizeof (char), 77
14624 See \`config.log' for more details." >&2;}
14625 { (exit 1); exit 1; }; } ;;
14626 esac
14627 else
14628 if test "$cross_compiling" = yes; then
14629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14630 See \`config.log' for more details." >&5
14631 echo "$as_me: error: cannot run test program while cross compiling
14632 See \`config.log' for more details." >&2;}
14633 { (exit 1); exit 1; }; }
14634 else
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h. */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14642 long longval () { return (long) (sizeof (char)); }
14643 unsigned long ulongval () { return (long) (sizeof (char)); }
14644 #include <stdio.h>
14645 #include <stdlib.h>
14646 int
14647 main ()
14648 {
14649
14650 FILE *f = fopen ("conftest.val", "w");
14651 if (! f)
14652 exit (1);
14653 if (((long) (sizeof (char))) < 0)
14654 {
14655 long i = longval ();
14656 if (i != ((long) (sizeof (char))))
14657 exit (1);
14658 fprintf (f, "%ld\n", i);
14659 }
14660 else
14661 {
14662 unsigned long i = ulongval ();
14663 if (i != ((long) (sizeof (char))))
14664 exit (1);
14665 fprintf (f, "%lu\n", i);
14666 }
14667 exit (ferror (f) || fclose (f) != 0);
14668
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_sizeof_char=`cat conftest.val`
14685 else
14686 echo "$as_me: program exited with status $ac_status" >&5
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 ( exit $ac_status )
14691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14692 See \`config.log' for more details." >&5
14693 echo "$as_me: error: cannot compute sizeof (char), 77
14694 See \`config.log' for more details." >&2;}
14695 { (exit 1); exit 1; }; }
14696 fi
14697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 fi
14700 rm -f conftest.val
14701 else
14702 ac_cv_sizeof_char=0
14703 fi
14704 fi
14705 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14706 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14707 cat >>confdefs.h <<_ACEOF
14708 #define SIZEOF_CHAR $ac_cv_sizeof_char
14709 _ACEOF
14710
14711
14712 echo "$as_me:$LINENO: checking for short" >&5
14713 echo $ECHO_N "checking for short... $ECHO_C" >&6
14714 if test "${ac_cv_type_short+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 $ac_includes_default
14724 int
14725 main ()
14726 {
14727 if ((short *) 0)
14728 return 0;
14729 if (sizeof (short))
14730 return 0;
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag"
14745 || test ! -s conftest.err'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_type_short=yes
14758 else
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 ac_cv_type_short=no
14763 fi
14764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14765 fi
14766 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14767 echo "${ECHO_T}$ac_cv_type_short" >&6
14768
14769 echo "$as_me:$LINENO: checking size of short" >&5
14770 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14771 if test "${ac_cv_sizeof_short+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 if test "$ac_cv_type_short" = yes; then
14775 # The cast to unsigned long works around a bug in the HP C Compiler
14776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14778 # This bug is HP SR number 8606223364.
14779 if test "$cross_compiling" = yes; then
14780 # Depending upon the size, compute the lo and hi bounds.
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 int
14789 main ()
14790 {
14791 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14792 test_array [0] = 0
14793
14794 ;
14795 return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_lo=0 ac_mid=0
14821 while :; do
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14829 int
14830 main ()
14831 {
14832 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14833 test_array [0] = 0
14834
14835 ;
14836 return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 ac_hi=$ac_mid; break
14862 else
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866 ac_lo=`expr $ac_mid + 1`
14867 if test $ac_lo -le $ac_mid; then
14868 ac_lo= ac_hi=
14869 break
14870 fi
14871 ac_mid=`expr 2 '*' $ac_mid + 1`
14872 fi
14873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14874 done
14875 else
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 $ac_includes_default
14886 int
14887 main ()
14888 {
14889 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14890 test_array [0] = 0
14891
14892 ;
14893 return 0;
14894 }
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14898 (eval $ac_compile) 2>conftest.er1
14899 ac_status=$?
14900 grep -v '^ *+' conftest.er1 >conftest.err
14901 rm -f conftest.er1
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try='test -z "$ac_c_werror_flag"
14906 || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_hi=-1 ac_mid=-1
14919 while :; do
14920 cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h. */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 $ac_includes_default
14927 int
14928 main ()
14929 {
14930 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14931 test_array [0] = 0
14932
14933 ;
14934 return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>conftest.er1
14940 ac_status=$?
14941 grep -v '^ *+' conftest.er1 >conftest.err
14942 rm -f conftest.er1
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } &&
14946 { ac_try='test -z "$ac_c_werror_flag"
14947 || test ! -s conftest.err'
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; } &&
14953 { ac_try='test -s conftest.$ac_objext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_lo=$ac_mid; break
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 ac_hi=`expr '(' $ac_mid ')' - 1`
14965 if test $ac_mid -le $ac_hi; then
14966 ac_lo= ac_hi=
14967 break
14968 fi
14969 ac_mid=`expr 2 '*' $ac_mid`
14970 fi
14971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14972 done
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977 ac_lo= ac_hi=
14978 fi
14979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14980 fi
14981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14982 # Binary search between lo and hi bounds.
14983 while test "x$ac_lo" != "x$ac_hi"; do
14984 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14985 cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h. */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 $ac_includes_default
14992 int
14993 main ()
14994 {
14995 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14996 test_array [0] = 0
14997
14998 ;
14999 return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_hi=$ac_mid
15025 else
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 ac_lo=`expr '(' $ac_mid ')' + 1`
15030 fi
15031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15032 done
15033 case $ac_lo in
15034 ?*) ac_cv_sizeof_short=$ac_lo;;
15035 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15036 See \`config.log' for more details." >&5
15037 echo "$as_me: error: cannot compute sizeof (short), 77
15038 See \`config.log' for more details." >&2;}
15039 { (exit 1); exit 1; }; } ;;
15040 esac
15041 else
15042 if test "$cross_compiling" = yes; then
15043 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15044 See \`config.log' for more details." >&5
15045 echo "$as_me: error: cannot run test program while cross compiling
15046 See \`config.log' for more details." >&2;}
15047 { (exit 1); exit 1; }; }
15048 else
15049 cat >conftest.$ac_ext <<_ACEOF
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 $ac_includes_default
15056 long longval () { return (long) (sizeof (short)); }
15057 unsigned long ulongval () { return (long) (sizeof (short)); }
15058 #include <stdio.h>
15059 #include <stdlib.h>
15060 int
15061 main ()
15062 {
15063
15064 FILE *f = fopen ("conftest.val", "w");
15065 if (! f)
15066 exit (1);
15067 if (((long) (sizeof (short))) < 0)
15068 {
15069 long i = longval ();
15070 if (i != ((long) (sizeof (short))))
15071 exit (1);
15072 fprintf (f, "%ld\n", i);
15073 }
15074 else
15075 {
15076 unsigned long i = ulongval ();
15077 if (i != ((long) (sizeof (short))))
15078 exit (1);
15079 fprintf (f, "%lu\n", i);
15080 }
15081 exit (ferror (f) || fclose (f) != 0);
15082
15083 ;
15084 return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_cv_sizeof_short=`cat conftest.val`
15099 else
15100 echo "$as_me: program exited with status $ac_status" >&5
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 ( exit $ac_status )
15105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15106 See \`config.log' for more details." >&5
15107 echo "$as_me: error: cannot compute sizeof (short), 77
15108 See \`config.log' for more details." >&2;}
15109 { (exit 1); exit 1; }; }
15110 fi
15111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15112 fi
15113 fi
15114 rm -f conftest.val
15115 else
15116 ac_cv_sizeof_short=0
15117 fi
15118 fi
15119 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15120 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15121 cat >>confdefs.h <<_ACEOF
15122 #define SIZEOF_SHORT $ac_cv_sizeof_short
15123 _ACEOF
15124
15125
15126 echo "$as_me:$LINENO: checking for void *" >&5
15127 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15128 if test "${ac_cv_type_void_p+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131 cat >conftest.$ac_ext <<_ACEOF
15132 /* confdefs.h. */
15133 _ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15137 $ac_includes_default
15138 int
15139 main ()
15140 {
15141 if ((void * *) 0)
15142 return 0;
15143 if (sizeof (void *))
15144 return 0;
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_type_void_p=yes
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176 ac_cv_type_void_p=no
15177 fi
15178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15179 fi
15180 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15181 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15182
15183 echo "$as_me:$LINENO: checking size of void *" >&5
15184 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15185 if test "${ac_cv_sizeof_void_p+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188 if test "$ac_cv_type_void_p" = yes; then
15189 # The cast to unsigned long works around a bug in the HP C Compiler
15190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15192 # This bug is HP SR number 8606223364.
15193 if test "$cross_compiling" = yes; then
15194 # Depending upon the size, compute the lo and hi bounds.
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 $ac_includes_default
15202 int
15203 main ()
15204 {
15205 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15206 test_array [0] = 0
15207
15208 ;
15209 return 0;
15210 }
15211 _ACEOF
15212 rm -f conftest.$ac_objext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15214 (eval $ac_compile) 2>conftest.er1
15215 ac_status=$?
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag"
15222 || test ! -s conftest.err'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_lo=0 ac_mid=0
15235 while :; do
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h. */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 $ac_includes_default
15243 int
15244 main ()
15245 {
15246 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15247 test_array [0] = 0
15248
15249 ;
15250 return 0;
15251 }
15252 _ACEOF
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255 (eval $ac_compile) 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag"
15263 || test ! -s conftest.err'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_hi=$ac_mid; break
15276 else
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_lo=`expr $ac_mid + 1`
15281 if test $ac_lo -le $ac_mid; then
15282 ac_lo= ac_hi=
15283 break
15284 fi
15285 ac_mid=`expr 2 '*' $ac_mid + 1`
15286 fi
15287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15288 done
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 $ac_includes_default
15300 int
15301 main ()
15302 {
15303 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15304 test_array [0] = 0
15305
15306 ;
15307 return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag"
15320 || test ! -s conftest.err'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_hi=-1 ac_mid=-1
15333 while :; do
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 $ac_includes_default
15341 int
15342 main ()
15343 {
15344 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15345 test_array [0] = 0
15346
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15353 (eval $ac_compile) 2>conftest.er1
15354 ac_status=$?
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag"
15361 || test ! -s conftest.err'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest.$ac_objext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_lo=$ac_mid; break
15374 else
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 ac_hi=`expr '(' $ac_mid ')' - 1`
15379 if test $ac_mid -le $ac_hi; then
15380 ac_lo= ac_hi=
15381 break
15382 fi
15383 ac_mid=`expr 2 '*' $ac_mid`
15384 fi
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386 done
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 ac_lo= ac_hi=
15392 fi
15393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15394 fi
15395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15396 # Binary search between lo and hi bounds.
15397 while test "x$ac_lo" != "x$ac_hi"; do
15398 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 int
15407 main ()
15408 {
15409 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15410 test_array [0] = 0
15411
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418 (eval $ac_compile) 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_hi=$ac_mid
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 ac_lo=`expr '(' $ac_mid ')' + 1`
15444 fi
15445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15446 done
15447 case $ac_lo in
15448 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15449 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15450 See \`config.log' for more details." >&5
15451 echo "$as_me: error: cannot compute sizeof (void *), 77
15452 See \`config.log' for more details." >&2;}
15453 { (exit 1); exit 1; }; } ;;
15454 esac
15455 else
15456 if test "$cross_compiling" = yes; then
15457 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15458 See \`config.log' for more details." >&5
15459 echo "$as_me: error: cannot run test program while cross compiling
15460 See \`config.log' for more details." >&2;}
15461 { (exit 1); exit 1; }; }
15462 else
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 $ac_includes_default
15470 long longval () { return (long) (sizeof (void *)); }
15471 unsigned long ulongval () { return (long) (sizeof (void *)); }
15472 #include <stdio.h>
15473 #include <stdlib.h>
15474 int
15475 main ()
15476 {
15477
15478 FILE *f = fopen ("conftest.val", "w");
15479 if (! f)
15480 exit (1);
15481 if (((long) (sizeof (void *))) < 0)
15482 {
15483 long i = longval ();
15484 if (i != ((long) (sizeof (void *))))
15485 exit (1);
15486 fprintf (f, "%ld\n", i);
15487 }
15488 else
15489 {
15490 unsigned long i = ulongval ();
15491 if (i != ((long) (sizeof (void *))))
15492 exit (1);
15493 fprintf (f, "%lu\n", i);
15494 }
15495 exit (ferror (f) || fclose (f) != 0);
15496
15497 ;
15498 return 0;
15499 }
15500 _ACEOF
15501 rm -f conftest$ac_exeext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15503 (eval $ac_link) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_cv_sizeof_void_p=`cat conftest.val`
15513 else
15514 echo "$as_me: program exited with status $ac_status" >&5
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ( exit $ac_status )
15519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15520 See \`config.log' for more details." >&5
15521 echo "$as_me: error: cannot compute sizeof (void *), 77
15522 See \`config.log' for more details." >&2;}
15523 { (exit 1); exit 1; }; }
15524 fi
15525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15526 fi
15527 fi
15528 rm -f conftest.val
15529 else
15530 ac_cv_sizeof_void_p=0
15531 fi
15532 fi
15533 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15534 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15535 cat >>confdefs.h <<_ACEOF
15536 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15537 _ACEOF
15538
15539
15540 echo "$as_me:$LINENO: checking for int" >&5
15541 echo $ECHO_N "checking for int... $ECHO_C" >&6
15542 if test "${ac_cv_type_int+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 $ac_includes_default
15552 int
15553 main ()
15554 {
15555 if ((int *) 0)
15556 return 0;
15557 if (sizeof (int))
15558 return 0;
15559 ;
15560 return 0;
15561 }
15562 _ACEOF
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565 (eval $ac_compile) 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -z "$ac_c_werror_flag"
15573 || test ! -s conftest.err'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest.$ac_objext'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 ac_cv_type_int=yes
15586 else
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 ac_cv_type_int=no
15591 fi
15592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15595 echo "${ECHO_T}$ac_cv_type_int" >&6
15596
15597 echo "$as_me:$LINENO: checking size of int" >&5
15598 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15599 if test "${ac_cv_sizeof_int+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 else
15602 if test "$ac_cv_type_int" = yes; then
15603 # The cast to unsigned long works around a bug in the HP C Compiler
15604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15606 # This bug is HP SR number 8606223364.
15607 if test "$cross_compiling" = yes; then
15608 # Depending upon the size, compute the lo and hi bounds.
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 int
15617 main ()
15618 {
15619 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15620 test_array [0] = 0
15621
15622 ;
15623 return 0;
15624 }
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628 (eval $ac_compile) 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -z "$ac_c_werror_flag"
15636 || test ! -s conftest.err'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } &&
15642 { ac_try='test -s conftest.$ac_objext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_lo=0 ac_mid=0
15649 while :; do
15650 cat >conftest.$ac_ext <<_ACEOF
15651 /* confdefs.h. */
15652 _ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 $ac_includes_default
15657 int
15658 main ()
15659 {
15660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15661 test_array [0] = 0
15662
15663 ;
15664 return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669 (eval $ac_compile) 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag"
15677 || test ! -s conftest.err'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; } &&
15683 { ac_try='test -s conftest.$ac_objext'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_hi=$ac_mid; break
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 ac_lo=`expr $ac_mid + 1`
15695 if test $ac_lo -le $ac_mid; then
15696 ac_lo= ac_hi=
15697 break
15698 fi
15699 ac_mid=`expr 2 '*' $ac_mid + 1`
15700 fi
15701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15702 done
15703 else
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h. */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15713 $ac_includes_default
15714 int
15715 main ()
15716 {
15717 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15718 test_array [0] = 0
15719
15720 ;
15721 return 0;
15722 }
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726 (eval $ac_compile) 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag"
15734 || test ! -s conftest.err'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_hi=-1 ac_mid=-1
15747 while :; do
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 int
15756 main ()
15757 {
15758 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15759 test_array [0] = 0
15760
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>conftest.er1
15768 ac_status=$?
15769 grep -v '^ *+' conftest.er1 >conftest.err
15770 rm -f conftest.er1
15771 cat conftest.err >&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } &&
15774 { ac_try='test -z "$ac_c_werror_flag"
15775 || test ! -s conftest.err'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; } &&
15781 { ac_try='test -s conftest.$ac_objext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_lo=$ac_mid; break
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 ac_hi=`expr '(' $ac_mid ')' - 1`
15793 if test $ac_mid -le $ac_hi; then
15794 ac_lo= ac_hi=
15795 break
15796 fi
15797 ac_mid=`expr 2 '*' $ac_mid`
15798 fi
15799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15800 done
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_lo= ac_hi=
15806 fi
15807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15808 fi
15809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15810 # Binary search between lo and hi bounds.
15811 while test "x$ac_lo" != "x$ac_hi"; do
15812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15813 cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h. */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 $ac_includes_default
15820 int
15821 main ()
15822 {
15823 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15824 test_array [0] = 0
15825
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 rm -f conftest.$ac_objext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag"
15840 || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_hi=$ac_mid
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_lo=`expr '(' $ac_mid ')' + 1`
15858 fi
15859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15860 done
15861 case $ac_lo in
15862 ?*) ac_cv_sizeof_int=$ac_lo;;
15863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15864 See \`config.log' for more details." >&5
15865 echo "$as_me: error: cannot compute sizeof (int), 77
15866 See \`config.log' for more details." >&2;}
15867 { (exit 1); exit 1; }; } ;;
15868 esac
15869 else
15870 if test "$cross_compiling" = yes; then
15871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15872 See \`config.log' for more details." >&5
15873 echo "$as_me: error: cannot run test program while cross compiling
15874 See \`config.log' for more details." >&2;}
15875 { (exit 1); exit 1; }; }
15876 else
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 long longval () { return (long) (sizeof (int)); }
15885 unsigned long ulongval () { return (long) (sizeof (int)); }
15886 #include <stdio.h>
15887 #include <stdlib.h>
15888 int
15889 main ()
15890 {
15891
15892 FILE *f = fopen ("conftest.val", "w");
15893 if (! f)
15894 exit (1);
15895 if (((long) (sizeof (int))) < 0)
15896 {
15897 long i = longval ();
15898 if (i != ((long) (sizeof (int))))
15899 exit (1);
15900 fprintf (f, "%ld\n", i);
15901 }
15902 else
15903 {
15904 unsigned long i = ulongval ();
15905 if (i != ((long) (sizeof (int))))
15906 exit (1);
15907 fprintf (f, "%lu\n", i);
15908 }
15909 exit (ferror (f) || fclose (f) != 0);
15910
15911 ;
15912 return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest$ac_exeext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15917 (eval $ac_link) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_cv_sizeof_int=`cat conftest.val`
15927 else
15928 echo "$as_me: program exited with status $ac_status" >&5
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 ( exit $ac_status )
15933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15934 See \`config.log' for more details." >&5
15935 echo "$as_me: error: cannot compute sizeof (int), 77
15936 See \`config.log' for more details." >&2;}
15937 { (exit 1); exit 1; }; }
15938 fi
15939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15940 fi
15941 fi
15942 rm -f conftest.val
15943 else
15944 ac_cv_sizeof_int=0
15945 fi
15946 fi
15947 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15948 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15949 cat >>confdefs.h <<_ACEOF
15950 #define SIZEOF_INT $ac_cv_sizeof_int
15951 _ACEOF
15952
15953
15954 echo "$as_me:$LINENO: checking for long" >&5
15955 echo $ECHO_N "checking for long... $ECHO_C" >&6
15956 if test "${ac_cv_type_long+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 $ac_includes_default
15966 int
15967 main ()
15968 {
15969 if ((long *) 0)
15970 return 0;
15971 if (sizeof (long))
15972 return 0;
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_type_long=yes
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004 ac_cv_type_long=no
16005 fi
16006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007 fi
16008 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16009 echo "${ECHO_T}$ac_cv_type_long" >&6
16010
16011 echo "$as_me:$LINENO: checking size of long" >&5
16012 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16013 if test "${ac_cv_sizeof_long+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 else
16016 if test "$ac_cv_type_long" = yes; then
16017 # The cast to unsigned long works around a bug in the HP C Compiler
16018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16020 # This bug is HP SR number 8606223364.
16021 if test "$cross_compiling" = yes; then
16022 # Depending upon the size, compute the lo and hi bounds.
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h. */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 int
16031 main ()
16032 {
16033 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16034 test_array [0] = 0
16035
16036 ;
16037 return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
16049 { ac_try='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_lo=0 ac_mid=0
16063 while :; do
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16071 int
16072 main ()
16073 {
16074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16075 test_array [0] = 0
16076
16077 ;
16078 return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_hi=$ac_mid; break
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108 ac_lo=`expr $ac_mid + 1`
16109 if test $ac_lo -le $ac_mid; then
16110 ac_lo= ac_hi=
16111 break
16112 fi
16113 ac_mid=`expr 2 '*' $ac_mid + 1`
16114 fi
16115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16116 done
16117 else
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 cat >conftest.$ac_ext <<_ACEOF
16122 /* confdefs.h. */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16127 $ac_includes_default
16128 int
16129 main ()
16130 {
16131 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16132 test_array [0] = 0
16133
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16141 ac_status=$?
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag"
16148 || test ! -s conftest.err'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest.$ac_objext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_hi=-1 ac_mid=-1
16161 while :; do
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 $ac_includes_default
16169 int
16170 main ()
16171 {
16172 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16173 test_array [0] = 0
16174
16175 ;
16176 return 0;
16177 }
16178 _ACEOF
16179 rm -f conftest.$ac_objext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16181 (eval $ac_compile) 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
16188 { ac_try='test -z "$ac_c_werror_flag"
16189 || test ! -s conftest.err'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_lo=$ac_mid; break
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_hi=`expr '(' $ac_mid ')' - 1`
16207 if test $ac_mid -le $ac_hi; then
16208 ac_lo= ac_hi=
16209 break
16210 fi
16211 ac_mid=`expr 2 '*' $ac_mid`
16212 fi
16213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16214 done
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_lo= ac_hi=
16220 fi
16221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 fi
16223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16224 # Binary search between lo and hi bounds.
16225 while test "x$ac_lo" != "x$ac_hi"; do
16226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233 $ac_includes_default
16234 int
16235 main ()
16236 {
16237 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16238 test_array [0] = 0
16239
16240 ;
16241 return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>conftest.er1
16247 ac_status=$?
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 ac_hi=$ac_mid
16267 else
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271 ac_lo=`expr '(' $ac_mid ')' + 1`
16272 fi
16273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16274 done
16275 case $ac_lo in
16276 ?*) ac_cv_sizeof_long=$ac_lo;;
16277 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16278 See \`config.log' for more details." >&5
16279 echo "$as_me: error: cannot compute sizeof (long), 77
16280 See \`config.log' for more details." >&2;}
16281 { (exit 1); exit 1; }; } ;;
16282 esac
16283 else
16284 if test "$cross_compiling" = yes; then
16285 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16286 See \`config.log' for more details." >&5
16287 echo "$as_me: error: cannot run test program while cross compiling
16288 See \`config.log' for more details." >&2;}
16289 { (exit 1); exit 1; }; }
16290 else
16291 cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h. */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 $ac_includes_default
16298 long longval () { return (long) (sizeof (long)); }
16299 unsigned long ulongval () { return (long) (sizeof (long)); }
16300 #include <stdio.h>
16301 #include <stdlib.h>
16302 int
16303 main ()
16304 {
16305
16306 FILE *f = fopen ("conftest.val", "w");
16307 if (! f)
16308 exit (1);
16309 if (((long) (sizeof (long))) < 0)
16310 {
16311 long i = longval ();
16312 if (i != ((long) (sizeof (long))))
16313 exit (1);
16314 fprintf (f, "%ld\n", i);
16315 }
16316 else
16317 {
16318 unsigned long i = ulongval ();
16319 if (i != ((long) (sizeof (long))))
16320 exit (1);
16321 fprintf (f, "%lu\n", i);
16322 }
16323 exit (ferror (f) || fclose (f) != 0);
16324
16325 ;
16326 return 0;
16327 }
16328 _ACEOF
16329 rm -f conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_sizeof_long=`cat conftest.val`
16341 else
16342 echo "$as_me: program exited with status $ac_status" >&5
16343 echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16345
16346 ( exit $ac_status )
16347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16348 See \`config.log' for more details." >&5
16349 echo "$as_me: error: cannot compute sizeof (long), 77
16350 See \`config.log' for more details." >&2;}
16351 { (exit 1); exit 1; }; }
16352 fi
16353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16354 fi
16355 fi
16356 rm -f conftest.val
16357 else
16358 ac_cv_sizeof_long=0
16359 fi
16360 fi
16361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16362 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16363 cat >>confdefs.h <<_ACEOF
16364 #define SIZEOF_LONG $ac_cv_sizeof_long
16365 _ACEOF
16366
16367
16368 echo "$as_me:$LINENO: checking for size_t" >&5
16369 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16370 if test "${ac_cv_type_size_t+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 cat >conftest.$ac_ext <<_ACEOF
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379 $ac_includes_default
16380 int
16381 main ()
16382 {
16383 if ((size_t *) 0)
16384 return 0;
16385 if (sizeof (size_t))
16386 return 0;
16387 ;
16388 return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -z "$ac_c_werror_flag"
16401 || test ! -s conftest.err'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_type_size_t=yes
16414 else
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 ac_cv_type_size_t=no
16419 fi
16420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16421 fi
16422 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16423 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16424
16425 echo "$as_me:$LINENO: checking size of size_t" >&5
16426 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16427 if test "${ac_cv_sizeof_size_t+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 if test "$ac_cv_type_size_t" = yes; then
16431 # The cast to unsigned long works around a bug in the HP C Compiler
16432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16434 # This bug is HP SR number 8606223364.
16435 if test "$cross_compiling" = yes; then
16436 # Depending upon the size, compute the lo and hi bounds.
16437 cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h. */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 $ac_includes_default
16444 int
16445 main ()
16446 {
16447 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16448 test_array [0] = 0
16449
16450 ;
16451 return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16456 (eval $ac_compile) 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
16463 { ac_try='test -z "$ac_c_werror_flag"
16464 || test ! -s conftest.err'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest.$ac_objext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 ac_lo=0 ac_mid=0
16477 while :; do
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 $ac_includes_default
16485 int
16486 main ()
16487 {
16488 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16489 test_array [0] = 0
16490
16491 ;
16492 return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16497 (eval $ac_compile) 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag"
16505 || test ! -s conftest.err'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try='test -s conftest.$ac_objext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_hi=$ac_mid; break
16518 else
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 ac_lo=`expr $ac_mid + 1`
16523 if test $ac_lo -le $ac_mid; then
16524 ac_lo= ac_hi=
16525 break
16526 fi
16527 ac_mid=`expr 2 '*' $ac_mid + 1`
16528 fi
16529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16530 done
16531 else
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h. */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 int
16543 main ()
16544 {
16545 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16546 test_array [0] = 0
16547
16548 ;
16549 return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -z "$ac_c_werror_flag"
16562 || test ! -s conftest.err'
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_hi=-1 ac_mid=-1
16575 while :; do
16576 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h. */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582 $ac_includes_default
16583 int
16584 main ()
16585 {
16586 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16587 test_array [0] = 0
16588
16589 ;
16590 return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16595 (eval $ac_compile) 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
16602 { ac_try='test -z "$ac_c_werror_flag"
16603 || test ! -s conftest.err'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try='test -s conftest.$ac_objext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_lo=$ac_mid; break
16616 else
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 ac_hi=`expr '(' $ac_mid ')' - 1`
16621 if test $ac_mid -le $ac_hi; then
16622 ac_lo= ac_hi=
16623 break
16624 fi
16625 ac_mid=`expr 2 '*' $ac_mid`
16626 fi
16627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16628 done
16629 else
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 ac_lo= ac_hi=
16634 fi
16635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16636 fi
16637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16638 # Binary search between lo and hi bounds.
16639 while test "x$ac_lo" != "x$ac_hi"; do
16640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16648 int
16649 main ()
16650 {
16651 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16652 test_array [0] = 0
16653
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -z "$ac_c_werror_flag"
16668 || test ! -s conftest.err'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest.$ac_objext'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_hi=$ac_mid
16681 else
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ac_lo=`expr '(' $ac_mid ')' + 1`
16686 fi
16687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16688 done
16689 case $ac_lo in
16690 ?*) ac_cv_sizeof_size_t=$ac_lo;;
16691 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16692 See \`config.log' for more details." >&5
16693 echo "$as_me: error: cannot compute sizeof (size_t), 77
16694 See \`config.log' for more details." >&2;}
16695 { (exit 1); exit 1; }; } ;;
16696 esac
16697 else
16698 if test "$cross_compiling" = yes; then
16699 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16700 See \`config.log' for more details." >&5
16701 echo "$as_me: error: cannot run test program while cross compiling
16702 See \`config.log' for more details." >&2;}
16703 { (exit 1); exit 1; }; }
16704 else
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 $ac_includes_default
16712 long longval () { return (long) (sizeof (size_t)); }
16713 unsigned long ulongval () { return (long) (sizeof (size_t)); }
16714 #include <stdio.h>
16715 #include <stdlib.h>
16716 int
16717 main ()
16718 {
16719
16720 FILE *f = fopen ("conftest.val", "w");
16721 if (! f)
16722 exit (1);
16723 if (((long) (sizeof (size_t))) < 0)
16724 {
16725 long i = longval ();
16726 if (i != ((long) (sizeof (size_t))))
16727 exit (1);
16728 fprintf (f, "%ld\n", i);
16729 }
16730 else
16731 {
16732 unsigned long i = ulongval ();
16733 if (i != ((long) (sizeof (size_t))))
16734 exit (1);
16735 fprintf (f, "%lu\n", i);
16736 }
16737 exit (ferror (f) || fclose (f) != 0);
16738
16739 ;
16740 return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745 (eval $ac_link) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_sizeof_size_t=`cat conftest.val`
16755 else
16756 echo "$as_me: program exited with status $ac_status" >&5
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ( exit $ac_status )
16761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16762 See \`config.log' for more details." >&5
16763 echo "$as_me: error: cannot compute sizeof (size_t), 77
16764 See \`config.log' for more details." >&2;}
16765 { (exit 1); exit 1; }; }
16766 fi
16767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16768 fi
16769 fi
16770 rm -f conftest.val
16771 else
16772 ac_cv_sizeof_size_t=0
16773 fi
16774 fi
16775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16776 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16777 cat >>confdefs.h <<_ACEOF
16778 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16779 _ACEOF
16780
16781
16782
16783 case "${host}" in
16784 arm-*-linux* )
16785 echo "$as_me:$LINENO: checking for long long" >&5
16786 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16787 if test "${ac_cv_type_long_long+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 $ac_includes_default
16797 int
16798 main ()
16799 {
16800 if ((long long *) 0)
16801 return 0;
16802 if (sizeof (long long))
16803 return 0;
16804 ;
16805 return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest.$ac_objext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 (eval $ac_compile) 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_type_long_long=yes
16831 else
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16834
16835 ac_cv_type_long_long=no
16836 fi
16837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16838 fi
16839 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16840 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16841
16842 echo "$as_me:$LINENO: checking size of long long" >&5
16843 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16844 if test "${ac_cv_sizeof_long_long+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847 if test "$ac_cv_type_long_long" = yes; then
16848 # The cast to unsigned long works around a bug in the HP C Compiler
16849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16851 # This bug is HP SR number 8606223364.
16852 if test "$cross_compiling" = yes; then
16853 # Depending upon the size, compute the lo and hi bounds.
16854 cat >conftest.$ac_ext <<_ACEOF
16855 /* confdefs.h. */
16856 _ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h. */
16860 $ac_includes_default
16861 int
16862 main ()
16863 {
16864 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16865 test_array [0] = 0
16866
16867 ;
16868 return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873 (eval $ac_compile) 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag"
16881 || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_lo=0 ac_mid=0
16894 while :; do
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h. */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 $ac_includes_default
16902 int
16903 main ()
16904 {
16905 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16906 test_array [0] = 0
16907
16908 ;
16909 return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914 (eval $ac_compile) 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag"
16922 || test ! -s conftest.err'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_hi=$ac_mid; break
16935 else
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_lo=`expr $ac_mid + 1`
16940 if test $ac_lo -le $ac_mid; then
16941 ac_lo= ac_hi=
16942 break
16943 fi
16944 ac_mid=`expr 2 '*' $ac_mid + 1`
16945 fi
16946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16947 done
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h. */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 $ac_includes_default
16959 int
16960 main ()
16961 {
16962 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16963 test_array [0] = 0
16964
16965 ;
16966 return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16971 (eval $ac_compile) 2>conftest.er1
16972 ac_status=$?
16973 grep -v '^ *+' conftest.er1 >conftest.err
16974 rm -f conftest.er1
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag"
16979 || test ! -s conftest.err'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest.$ac_objext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_hi=-1 ac_mid=-1
16992 while :; do
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 $ac_includes_default
17000 int
17001 main ()
17002 {
17003 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17004 test_array [0] = 0
17005
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag"
17020 || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_lo=$ac_mid; break
17033 else
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_hi=`expr '(' $ac_mid ')' - 1`
17038 if test $ac_mid -le $ac_hi; then
17039 ac_lo= ac_hi=
17040 break
17041 fi
17042 ac_mid=`expr 2 '*' $ac_mid`
17043 fi
17044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17045 done
17046 else
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_lo= ac_hi=
17051 fi
17052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17053 fi
17054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17055 # Binary search between lo and hi bounds.
17056 while test "x$ac_lo" != "x$ac_hi"; do
17057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17058 cat >conftest.$ac_ext <<_ACEOF
17059 /* confdefs.h. */
17060 _ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17064 $ac_includes_default
17065 int
17066 main ()
17067 {
17068 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17069 test_array [0] = 0
17070
17071 ;
17072 return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077 (eval $ac_compile) 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag"
17085 || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest.$ac_objext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_hi=$ac_mid
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 ac_lo=`expr '(' $ac_mid ')' + 1`
17103 fi
17104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17105 done
17106 case $ac_lo in
17107 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17108 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17109 See \`config.log' for more details." >&5
17110 echo "$as_me: error: cannot compute sizeof (long long), 77
17111 See \`config.log' for more details." >&2;}
17112 { (exit 1); exit 1; }; } ;;
17113 esac
17114 else
17115 if test "$cross_compiling" = yes; then
17116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17117 See \`config.log' for more details." >&5
17118 echo "$as_me: error: cannot run test program while cross compiling
17119 See \`config.log' for more details." >&2;}
17120 { (exit 1); exit 1; }; }
17121 else
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 $ac_includes_default
17129 long longval () { return (long) (sizeof (long long)); }
17130 unsigned long ulongval () { return (long) (sizeof (long long)); }
17131 #include <stdio.h>
17132 #include <stdlib.h>
17133 int
17134 main ()
17135 {
17136
17137 FILE *f = fopen ("conftest.val", "w");
17138 if (! f)
17139 exit (1);
17140 if (((long) (sizeof (long long))) < 0)
17141 {
17142 long i = longval ();
17143 if (i != ((long) (sizeof (long long))))
17144 exit (1);
17145 fprintf (f, "%ld\n", i);
17146 }
17147 else
17148 {
17149 unsigned long i = ulongval ();
17150 if (i != ((long) (sizeof (long long))))
17151 exit (1);
17152 fprintf (f, "%lu\n", i);
17153 }
17154 exit (ferror (f) || fclose (f) != 0);
17155
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest$ac_exeext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162 (eval $ac_link) 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_sizeof_long_long=`cat conftest.val`
17172 else
17173 echo "$as_me: program exited with status $ac_status" >&5
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 ( exit $ac_status )
17178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17179 See \`config.log' for more details." >&5
17180 echo "$as_me: error: cannot compute sizeof (long long), 77
17181 See \`config.log' for more details." >&2;}
17182 { (exit 1); exit 1; }; }
17183 fi
17184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17185 fi
17186 fi
17187 rm -f conftest.val
17188 else
17189 ac_cv_sizeof_long_long=0
17190 fi
17191 fi
17192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17193 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17194 cat >>confdefs.h <<_ACEOF
17195 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17196 _ACEOF
17197
17198
17199 ;;
17200 *-hp-hpux* )
17201 echo "$as_me:$LINENO: checking for long long" >&5
17202 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17203 if test "${ac_cv_type_long_long+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 $ac_includes_default
17213 int
17214 main ()
17215 {
17216 if ((long long *) 0)
17217 return 0;
17218 if (sizeof (long long))
17219 return 0;
17220 ;
17221 return 0;
17222 }
17223 _ACEOF
17224 rm -f conftest.$ac_objext
17225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17226 (eval $ac_compile) 2>conftest.er1
17227 ac_status=$?
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try='test -z "$ac_c_werror_flag"
17234 || test ! -s conftest.err'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; } &&
17240 { ac_try='test -s conftest.$ac_objext'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17246 ac_cv_type_long_long=yes
17247 else
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ac_cv_type_long_long=no
17252 fi
17253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17254 fi
17255 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17256 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17257
17258 echo "$as_me:$LINENO: checking size of long long" >&5
17259 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17260 if test "${ac_cv_sizeof_long_long+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263 if test "$ac_cv_type_long_long" = yes; then
17264 # The cast to unsigned long works around a bug in the HP C Compiler
17265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17267 # This bug is HP SR number 8606223364.
17268 if test "$cross_compiling" = yes; then
17269 # Depending upon the size, compute the lo and hi bounds.
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 $ac_includes_default
17277 int
17278 main ()
17279 {
17280 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17281 test_array [0] = 0
17282
17283 ;
17284 return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17289 (eval $ac_compile) 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_lo=0 ac_mid=0
17310 while :; do
17311 cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h. */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 $ac_includes_default
17318 int
17319 main ()
17320 {
17321 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17322 test_array [0] = 0
17323
17324 ;
17325 return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17330 (eval $ac_compile) 2>conftest.er1
17331 ac_status=$?
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_c_werror_flag"
17338 || test ! -s conftest.err'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest.$ac_objext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_hi=$ac_mid; break
17351 else
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_lo=`expr $ac_mid + 1`
17356 if test $ac_lo -le $ac_mid; then
17357 ac_lo= ac_hi=
17358 break
17359 fi
17360 ac_mid=`expr 2 '*' $ac_mid + 1`
17361 fi
17362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17363 done
17364 else
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 $ac_includes_default
17375 int
17376 main ()
17377 {
17378 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17379 test_array [0] = 0
17380
17381 ;
17382 return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17387 (eval $ac_compile) 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try='test -z "$ac_c_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_hi=-1 ac_mid=-1
17408 while :; do
17409 cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h. */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 $ac_includes_default
17416 int
17417 main ()
17418 {
17419 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17420 test_array [0] = 0
17421
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest.$ac_objext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17428 (eval $ac_compile) 2>conftest.er1
17429 ac_status=$?
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -z "$ac_c_werror_flag"
17436 || test ! -s conftest.err'
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ac_lo=$ac_mid; break
17449 else
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453 ac_hi=`expr '(' $ac_mid ')' - 1`
17454 if test $ac_mid -le $ac_hi; then
17455 ac_lo= ac_hi=
17456 break
17457 fi
17458 ac_mid=`expr 2 '*' $ac_mid`
17459 fi
17460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17461 done
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466 ac_lo= ac_hi=
17467 fi
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469 fi
17470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17471 # Binary search between lo and hi bounds.
17472 while test "x$ac_lo" != "x$ac_hi"; do
17473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h. */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 $ac_includes_default
17481 int
17482 main ()
17483 {
17484 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17485 test_array [0] = 0
17486
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493 (eval $ac_compile) 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag"
17501 || test ! -s conftest.err'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest.$ac_objext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_hi=$ac_mid
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ac_lo=`expr '(' $ac_mid ')' + 1`
17519 fi
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17521 done
17522 case $ac_lo in
17523 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17524 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17525 See \`config.log' for more details." >&5
17526 echo "$as_me: error: cannot compute sizeof (long long), 77
17527 See \`config.log' for more details." >&2;}
17528 { (exit 1); exit 1; }; } ;;
17529 esac
17530 else
17531 if test "$cross_compiling" = yes; then
17532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17533 See \`config.log' for more details." >&5
17534 echo "$as_me: error: cannot run test program while cross compiling
17535 See \`config.log' for more details." >&2;}
17536 { (exit 1); exit 1; }; }
17537 else
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17545 long longval () { return (long) (sizeof (long long)); }
17546 unsigned long ulongval () { return (long) (sizeof (long long)); }
17547 #include <stdio.h>
17548 #include <stdlib.h>
17549 int
17550 main ()
17551 {
17552
17553 FILE *f = fopen ("conftest.val", "w");
17554 if (! f)
17555 exit (1);
17556 if (((long) (sizeof (long long))) < 0)
17557 {
17558 long i = longval ();
17559 if (i != ((long) (sizeof (long long))))
17560 exit (1);
17561 fprintf (f, "%ld\n", i);
17562 }
17563 else
17564 {
17565 unsigned long i = ulongval ();
17566 if (i != ((long) (sizeof (long long))))
17567 exit (1);
17568 fprintf (f, "%lu\n", i);
17569 }
17570 exit (ferror (f) || fclose (f) != 0);
17571
17572 ;
17573 return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578 (eval $ac_link) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_sizeof_long_long=`cat conftest.val`
17588 else
17589 echo "$as_me: program exited with status $ac_status" >&5
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593 ( exit $ac_status )
17594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17595 See \`config.log' for more details." >&5
17596 echo "$as_me: error: cannot compute sizeof (long long), 77
17597 See \`config.log' for more details." >&2;}
17598 { (exit 1); exit 1; }; }
17599 fi
17600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17601 fi
17602 fi
17603 rm -f conftest.val
17604 else
17605 ac_cv_sizeof_long_long=0
17606 fi
17607 fi
17608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17609 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17610 cat >>confdefs.h <<_ACEOF
17611 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17612 _ACEOF
17613
17614
17615 if test "$ac_cv_sizeof_long_long" != "0"; then
17616 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17617 fi
17618 ;;
17619 * )
17620 echo "$as_me:$LINENO: checking for long long" >&5
17621 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17622 if test "${ac_cv_type_long_long+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h. */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 $ac_includes_default
17632 int
17633 main ()
17634 {
17635 if ((long long *) 0)
17636 return 0;
17637 if (sizeof (long long))
17638 return 0;
17639 ;
17640 return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645 (eval $ac_compile) 2>conftest.er1
17646 ac_status=$?
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_type_long_long=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_type_long_long=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17673 fi
17674 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17675 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17676
17677 echo "$as_me:$LINENO: checking size of long long" >&5
17678 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17679 if test "${ac_cv_sizeof_long_long+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682 if test "$ac_cv_type_long_long" = yes; then
17683 # The cast to unsigned long works around a bug in the HP C Compiler
17684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17686 # This bug is HP SR number 8606223364.
17687 if test "$cross_compiling" = yes; then
17688 # Depending upon the size, compute the lo and hi bounds.
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 $ac_includes_default
17696 int
17697 main ()
17698 {
17699 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17700 test_array [0] = 0
17701
17702 ;
17703 return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_lo=0 ac_mid=0
17729 while :; do
17730 cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h. */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17737 int
17738 main ()
17739 {
17740 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17741 test_array [0] = 0
17742
17743 ;
17744 return 0;
17745 }
17746 _ACEOF
17747 rm -f conftest.$ac_objext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17749 (eval $ac_compile) 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_c_werror_flag"
17757 || test ! -s conftest.err'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest.$ac_objext'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 ac_hi=$ac_mid; break
17770 else
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 ac_lo=`expr $ac_mid + 1`
17775 if test $ac_lo -le $ac_mid; then
17776 ac_lo= ac_hi=
17777 break
17778 fi
17779 ac_mid=`expr 2 '*' $ac_mid + 1`
17780 fi
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 done
17783 else
17784 echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 $ac_includes_default
17794 int
17795 main ()
17796 {
17797 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17798 test_array [0] = 0
17799
17800 ;
17801 return 0;
17802 }
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag"
17814 || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_hi=-1 ac_mid=-1
17827 while :; do
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 $ac_includes_default
17835 int
17836 main ()
17837 {
17838 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17839 test_array [0] = 0
17840
17841 ;
17842 return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_lo=$ac_mid; break
17868 else
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_hi=`expr '(' $ac_mid ')' - 1`
17873 if test $ac_mid -le $ac_hi; then
17874 ac_lo= ac_hi=
17875 break
17876 fi
17877 ac_mid=`expr 2 '*' $ac_mid`
17878 fi
17879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17880 done
17881 else
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 ac_lo= ac_hi=
17886 fi
17887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17888 fi
17889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17890 # Binary search between lo and hi bounds.
17891 while test "x$ac_lo" != "x$ac_hi"; do
17892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17893 cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h. */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17900 int
17901 main ()
17902 {
17903 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17904 test_array [0] = 0
17905
17906 ;
17907 return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912 (eval $ac_compile) 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest.$ac_objext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_hi=$ac_mid
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_lo=`expr '(' $ac_mid ')' + 1`
17938 fi
17939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17940 done
17941 case $ac_lo in
17942 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17943 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17944 See \`config.log' for more details." >&5
17945 echo "$as_me: error: cannot compute sizeof (long long), 77
17946 See \`config.log' for more details." >&2;}
17947 { (exit 1); exit 1; }; } ;;
17948 esac
17949 else
17950 if test "$cross_compiling" = yes; then
17951 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17952 See \`config.log' for more details." >&5
17953 echo "$as_me: error: cannot run test program while cross compiling
17954 See \`config.log' for more details." >&2;}
17955 { (exit 1); exit 1; }; }
17956 else
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 $ac_includes_default
17964 long longval () { return (long) (sizeof (long long)); }
17965 unsigned long ulongval () { return (long) (sizeof (long long)); }
17966 #include <stdio.h>
17967 #include <stdlib.h>
17968 int
17969 main ()
17970 {
17971
17972 FILE *f = fopen ("conftest.val", "w");
17973 if (! f)
17974 exit (1);
17975 if (((long) (sizeof (long long))) < 0)
17976 {
17977 long i = longval ();
17978 if (i != ((long) (sizeof (long long))))
17979 exit (1);
17980 fprintf (f, "%ld\n", i);
17981 }
17982 else
17983 {
17984 unsigned long i = ulongval ();
17985 if (i != ((long) (sizeof (long long))))
17986 exit (1);
17987 fprintf (f, "%lu\n", i);
17988 }
17989 exit (ferror (f) || fclose (f) != 0);
17990
17991 ;
17992 return 0;
17993 }
17994 _ACEOF
17995 rm -f conftest$ac_exeext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997 (eval $ac_link) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_sizeof_long_long=`cat conftest.val`
18007 else
18008 echo "$as_me: program exited with status $ac_status" >&5
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ( exit $ac_status )
18013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18014 See \`config.log' for more details." >&5
18015 echo "$as_me: error: cannot compute sizeof (long long), 77
18016 See \`config.log' for more details." >&2;}
18017 { (exit 1); exit 1; }; }
18018 fi
18019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18020 fi
18021 fi
18022 rm -f conftest.val
18023 else
18024 ac_cv_sizeof_long_long=0
18025 fi
18026 fi
18027 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18028 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18029 cat >>confdefs.h <<_ACEOF
18030 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18031 _ACEOF
18032
18033
18034 esac
18035
18036 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18037 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18038 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041
18042 if test "$cross_compiling" = yes; then
18043
18044 case "${host}" in
18045 *-pc-msdosdjgpp )
18046 wx_cv_sizeof_wchar_t=0
18047 ;;
18048 * )
18049 wx_cv_sizeof_wchar_t=4
18050 ;;
18051 esac
18052
18053
18054 else
18055 cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h. */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061
18062 /* DJGPP only has fake wchar_t: */
18063 #ifdef __DJGPP__
18064 # error "fake wchar_t"
18065 #endif
18066 #ifdef HAVE_WCHAR_H
18067 # ifdef __CYGWIN__
18068 # include <stddef.h>
18069 # endif
18070 # include <wchar.h>
18071 #endif
18072 #ifdef HAVE_STDLIB_H
18073 # include <stdlib.h>
18074 #endif
18075 #include <stdio.h>
18076 int main()
18077 {
18078 FILE *f=fopen("conftestval", "w");
18079 if (!f) exit(1);
18080 fprintf(f, "%i", sizeof(wchar_t));
18081 exit(0);
18082 }
18083
18084 _ACEOF
18085 rm -f conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 wx_cv_sizeof_wchar_t=`cat conftestval`
18097 else
18098 echo "$as_me: program exited with status $ac_status" >&5
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 ( exit $ac_status )
18103 wx_cv_sizeof_wchar_t=0
18104 fi
18105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18106 fi
18107
18108 fi
18109 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18110 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18111
18112 cat >>confdefs.h <<_ACEOF
18113 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18114 _ACEOF
18115
18116
18117 # Check whether --enable-largefile or --disable-largefile was given.
18118 if test "${enable_largefile+set}" = set; then
18119 enableval="$enable_largefile"
18120
18121 fi;
18122 if test "$enable_largefile" != no; then
18123 wx_largefile=no
18124
18125 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18126 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18127 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h. */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 #define _FILE_OFFSET_BITS 64
18138 #include <sys/types.h>
18139 int
18140 main ()
18141 {
18142 typedef struct {
18143 unsigned int field: sizeof(off_t) == 8;
18144 } wxlf;
18145
18146 ;
18147 return 0;
18148 }
18149 _ACEOF
18150 rm -f conftest.$ac_objext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag"
18160 || test ! -s conftest.err'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest.$ac_objext'
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18172 ac_cv_sys_file_offset_bits=64
18173 else
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177 ac_cv_sys_file_offset_bits=no
18178 fi
18179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180
18181
18182 fi
18183 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18184 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18185
18186 if test "$ac_cv_sys_file_offset_bits" != no; then
18187 wx_largefile=yes
18188 cat >>confdefs.h <<_ACEOF
18189 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18190 _ACEOF
18191
18192 fi
18193
18194 if test "x$wx_largefile" != "xyes"; then
18195
18196 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18197 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18198 if test "${ac_cv_sys_large_files+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h. */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 #define _LARGE_FILES 1
18209 #include <sys/types.h>
18210 int
18211 main ()
18212 {
18213 typedef struct {
18214 unsigned int field: sizeof(off_t) == 8;
18215 } wxlf;
18216
18217 ;
18218 return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223 (eval $ac_compile) 2>conftest.er1
18224 ac_status=$?
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag"
18231 || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest.$ac_objext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 ac_cv_sys_large_files=1
18244 else
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 ac_cv_sys_large_files=no
18249 fi
18250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18251
18252
18253 fi
18254 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18255 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18256
18257 if test "$ac_cv_sys_large_files" != no; then
18258 wx_largefile=yes
18259 cat >>confdefs.h <<_ACEOF
18260 #define _LARGE_FILES $ac_cv_sys_large_files
18261 _ACEOF
18262
18263 fi
18264
18265 fi
18266
18267 echo "$as_me:$LINENO: checking if large file support is available" >&5
18268 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18269 if test "x$wx_largefile" = "xyes"; then
18270 cat >>confdefs.h <<\_ACEOF
18271 #define HAVE_LARGEFILE_SUPPORT 1
18272 _ACEOF
18273
18274 fi
18275 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18276 echo "${ECHO_T}$wx_largefile" >&6
18277 fi
18278
18279
18280 if test "x$wx_largefile" = "xyes"; then
18281 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18282 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18283 else
18284 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18285 fi
18286 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18287 fi
18288
18289 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18290 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18291 if test "${ac_cv_c_bigendian+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18294 ac_cv_c_bigendian=unknown
18295 # See if sys/param.h defines the BYTE_ORDER macro.
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #include <sys/types.h>
18303 #include <sys/param.h>
18304 int
18305 main ()
18306 {
18307
18308 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18309 bogus endian macros
18310 #endif
18311 ;
18312 return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18317 (eval $ac_compile) 2>conftest.er1
18318 ac_status=$?
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -z "$ac_c_werror_flag"
18325 || test ! -s conftest.err'
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest.$ac_objext'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; }; then
18337 # It does; now see whether it defined to BIG_ENDIAN or not.
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h. */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 #include <sys/types.h>
18345 #include <sys/param.h>
18346 int
18347 main ()
18348 {
18349
18350 #if BYTE_ORDER != BIG_ENDIAN
18351 not big endian
18352 #endif
18353 ;
18354 return 0;
18355 }
18356 _ACEOF
18357 rm -f conftest.$ac_objext
18358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag"
18367 || test ! -s conftest.err'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_c_bigendian=yes
18380 else
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 ac_cv_c_bigendian=no
18385 fi
18386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 fi
18392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18393 if test $ac_cv_c_bigendian = unknown; then
18394 if test "$cross_compiling" = yes; then
18395 ac_cv_c_bigendian=unknown
18396 else
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 main () {
18404 /* Are we little or big endian? From Harbison&Steele. */
18405 union
18406 {
18407 long l;
18408 char c[sizeof (long)];
18409 } u;
18410 u.l = 1;
18411 exit (u.c[sizeof (long) - 1] == 1);
18412 }
18413 _ACEOF
18414 rm -f conftest$ac_exeext
18415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18416 (eval $ac_link) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 ac_cv_c_bigendian=no
18426 else
18427 echo "$as_me: program exited with status $ac_status" >&5
18428 echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431 ( exit $ac_status )
18432 ac_cv_c_bigendian=yes
18433 fi
18434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18435 fi
18436 fi
18437 fi
18438 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18439 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18440 if test $ac_cv_c_bigendian = unknown; then
18441 { 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
18442 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;}
18443 fi
18444 if test $ac_cv_c_bigendian = yes; then
18445 cat >>confdefs.h <<\_ACEOF
18446 #define WORDS_BIGENDIAN 1
18447 _ACEOF
18448
18449 fi
18450
18451
18452 ac_ext=cc
18453 ac_cpp='$CXXCPP $CPPFLAGS'
18454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18457 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18458 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18459 if test -z "$CXXCPP"; then
18460 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463 # Double quotes because CXXCPP needs to be expanded
18464 for CXXCPP in "$CXX -E" "/lib/cpp"
18465 do
18466 ac_preproc_ok=false
18467 for ac_cxx_preproc_warn_flag in '' yes
18468 do
18469 # Use a header file that comes with gcc, so configuring glibc
18470 # with a fresh cross-compiler works.
18471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18472 # <limits.h> exists even on freestanding compilers.
18473 # On the NeXT, cc -E runs the code through the compiler's parser,
18474 # not just through cpp. "Syntax error" is here to catch this case.
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #ifdef __STDC__
18482 # include <limits.h>
18483 #else
18484 # include <assert.h>
18485 #endif
18486 Syntax error
18487 _ACEOF
18488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } >/dev/null; then
18496 if test -s conftest.err; then
18497 ac_cpp_err=$ac_cxx_preproc_warn_flag
18498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18499 else
18500 ac_cpp_err=
18501 fi
18502 else
18503 ac_cpp_err=yes
18504 fi
18505 if test -z "$ac_cpp_err"; then
18506 :
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 # Broken: fails on valid input.
18512 continue
18513 fi
18514 rm -f conftest.err conftest.$ac_ext
18515
18516 # OK, works on sane cases. Now check whether non-existent headers
18517 # can be detected and how.
18518 cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h. */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 #include <ac_nonexistent.h>
18525 _ACEOF
18526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } >/dev/null; then
18534 if test -s conftest.err; then
18535 ac_cpp_err=$ac_cxx_preproc_warn_flag
18536 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18537 else
18538 ac_cpp_err=
18539 fi
18540 else
18541 ac_cpp_err=yes
18542 fi
18543 if test -z "$ac_cpp_err"; then
18544 # Broken: success on invalid input.
18545 continue
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 # Passes both tests.
18551 ac_preproc_ok=:
18552 break
18553 fi
18554 rm -f conftest.err conftest.$ac_ext
18555
18556 done
18557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18558 rm -f conftest.err conftest.$ac_ext
18559 if $ac_preproc_ok; then
18560 break
18561 fi
18562
18563 done
18564 ac_cv_prog_CXXCPP=$CXXCPP
18565
18566 fi
18567 CXXCPP=$ac_cv_prog_CXXCPP
18568 else
18569 ac_cv_prog_CXXCPP=$CXXCPP
18570 fi
18571 echo "$as_me:$LINENO: result: $CXXCPP" >&5
18572 echo "${ECHO_T}$CXXCPP" >&6
18573 ac_preproc_ok=false
18574 for ac_cxx_preproc_warn_flag in '' yes
18575 do
18576 # Use a header file that comes with gcc, so configuring glibc
18577 # with a fresh cross-compiler works.
18578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18579 # <limits.h> exists even on freestanding compilers.
18580 # On the NeXT, cc -E runs the code through the compiler's parser,
18581 # not just through cpp. "Syntax error" is here to catch this case.
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #ifdef __STDC__
18589 # include <limits.h>
18590 #else
18591 # include <assert.h>
18592 #endif
18593 Syntax error
18594 _ACEOF
18595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18597 ac_status=$?
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } >/dev/null; then
18603 if test -s conftest.err; then
18604 ac_cpp_err=$ac_cxx_preproc_warn_flag
18605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18606 else
18607 ac_cpp_err=
18608 fi
18609 else
18610 ac_cpp_err=yes
18611 fi
18612 if test -z "$ac_cpp_err"; then
18613 :
18614 else
18615 echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 # Broken: fails on valid input.
18619 continue
18620 fi
18621 rm -f conftest.err conftest.$ac_ext
18622
18623 # OK, works on sane cases. Now check whether non-existent headers
18624 # can be detected and how.
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h. */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 #include <ac_nonexistent.h>
18632 _ACEOF
18633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18635 ac_status=$?
18636 grep -v '^ *+' conftest.er1 >conftest.err
18637 rm -f conftest.er1
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } >/dev/null; then
18641 if test -s conftest.err; then
18642 ac_cpp_err=$ac_cxx_preproc_warn_flag
18643 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18644 else
18645 ac_cpp_err=
18646 fi
18647 else
18648 ac_cpp_err=yes
18649 fi
18650 if test -z "$ac_cpp_err"; then
18651 # Broken: success on invalid input.
18652 continue
18653 else
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657 # Passes both tests.
18658 ac_preproc_ok=:
18659 break
18660 fi
18661 rm -f conftest.err conftest.$ac_ext
18662
18663 done
18664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18665 rm -f conftest.err conftest.$ac_ext
18666 if $ac_preproc_ok; then
18667 :
18668 else
18669 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18670 See \`config.log' for more details." >&5
18671 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18672 See \`config.log' for more details." >&2;}
18673 { (exit 1); exit 1; }; }
18674 fi
18675
18676 ac_ext=cc
18677 ac_cpp='$CXXCPP $CPPFLAGS'
18678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18681
18682
18683
18684
18685
18686 ac_ext=cc
18687 ac_cpp='$CXXCPP $CPPFLAGS'
18688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18691
18692
18693
18694 for ac_header in iostream
18695 do
18696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18698 echo "$as_me:$LINENO: checking for $ac_header" >&5
18699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 fi
18703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18705 else
18706 # Is the header compilable?
18707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 $ac_includes_default
18716 #include <$ac_header>
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18720 (eval $ac_compile) 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_cxx_werror_flag"
18728 || test ! -s conftest.err'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; } &&
18734 { ac_try='test -s conftest.$ac_objext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 ac_header_compiler=yes
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 ac_header_compiler=no
18746 fi
18747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18749 echo "${ECHO_T}$ac_header_compiler" >&6
18750
18751 # Is the header present?
18752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18754 cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h. */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 #include <$ac_header>
18761 _ACEOF
18762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } >/dev/null; then
18770 if test -s conftest.err; then
18771 ac_cpp_err=$ac_cxx_preproc_warn_flag
18772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18773 else
18774 ac_cpp_err=
18775 fi
18776 else
18777 ac_cpp_err=yes
18778 fi
18779 if test -z "$ac_cpp_err"; then
18780 ac_header_preproc=yes
18781 else
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 ac_header_preproc=no
18786 fi
18787 rm -f conftest.err conftest.$ac_ext
18788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18789 echo "${ECHO_T}$ac_header_preproc" >&6
18790
18791 # So? What about this header?
18792 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18793 yes:no: )
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18798 ac_header_preproc=yes
18799 ;;
18800 no:yes:* )
18801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18813 (
18814 cat <<\_ASBOX
18815 ## ----------------------------------------- ##
18816 ## Report this to wx-dev@lists.wxwindows.org ##
18817 ## ----------------------------------------- ##
18818 _ASBOX
18819 ) |
18820 sed "s/^/$as_me: WARNING: /" >&2
18821 ;;
18822 esac
18823 echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 eval "$as_ac_Header=\$ac_header_preproc"
18829 fi
18830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18832
18833 fi
18834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18835 cat >>confdefs.h <<_ACEOF
18836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18837 _ACEOF
18838
18839 fi
18840
18841 done
18842
18843
18844 if test "$ac_cv_header_iostream" = "yes" ; then
18845 :
18846 else
18847 cat >>confdefs.h <<\_ACEOF
18848 #define wxUSE_IOSTREAMH 1
18849 _ACEOF
18850
18851 fi
18852
18853 ac_ext=c
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858
18859
18860
18861
18862 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18863 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18864 if test "${wx_cv_cpp_bool+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867
18868
18869
18870 ac_ext=cc
18871 ac_cpp='$CXXCPP $CPPFLAGS'
18872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18875
18876
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h. */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883
18884
18885 int
18886 main ()
18887 {
18888
18889 bool b = true;
18890
18891 return 0;
18892
18893 ;
18894 return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18899 (eval $ac_compile) 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try='test -z "$ac_cxx_werror_flag"
18907 || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest.$ac_objext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919
18920 wx_cv_cpp_bool=yes
18921
18922 else
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926
18927 wx_cv_cpp_bool=no
18928
18929
18930 fi
18931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18932
18933 ac_ext=c
18934 ac_cpp='$CPP $CPPFLAGS'
18935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938
18939
18940 fi
18941 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18942 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18943
18944 if test "$wx_cv_cpp_bool" = "yes"; then
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_BOOL 1
18947 _ACEOF
18948
18949 fi
18950
18951
18952
18953 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18954 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18955 if test "${wx_cv_explicit+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958
18959
18960
18961 ac_ext=cc
18962 ac_cpp='$CXXCPP $CPPFLAGS'
18963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18966
18967
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974
18975 class Foo { public: explicit Foo(int) {} };
18976
18977 int
18978 main ()
18979 {
18980
18981 return 0;
18982
18983 ;
18984 return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989 (eval $ac_compile) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_cxx_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h. */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016
19017 class Foo { public: explicit Foo(int) {} };
19018 static void TakeFoo(const Foo& foo) { }
19019
19020 int
19021 main ()
19022 {
19023
19024 TakeFoo(17);
19025 return 0;
19026
19027 ;
19028 return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033 (eval $ac_compile) 2>conftest.er1
19034 ac_status=$?
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_cxx_werror_flag"
19041 || test ! -s conftest.err'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest.$ac_objext'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 wx_cv_explicit=no
19054 else
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058 wx_cv_explicit=yes
19059
19060 fi
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 wx_cv_explicit=no
19068
19069 fi
19070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19071
19072 ac_ext=c
19073 ac_cpp='$CPP $CPPFLAGS'
19074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078
19079 fi
19080 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19081 echo "${ECHO_T}$wx_cv_explicit" >&6
19082
19083 if test "$wx_cv_explicit" = "yes"; then
19084 cat >>confdefs.h <<\_ACEOF
19085 #define HAVE_EXPLICIT 1
19086 _ACEOF
19087
19088 fi
19089
19090
19091 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19092 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19093 if test "${ac_cv_cxx_const_cast+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096
19097
19098 ac_ext=cc
19099 ac_cpp='$CXXCPP $CPPFLAGS'
19100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19103
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h. */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19110
19111 int
19112 main ()
19113 {
19114 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19115 ;
19116 return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_cxx_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_cxx_const_cast=yes
19142 else
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 ac_cv_cxx_const_cast=no
19147 fi
19148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149 ac_ext=c
19150 ac_cpp='$CPP $CPPFLAGS'
19151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19154
19155
19156 fi
19157 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19158 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19159 if test "$ac_cv_cxx_const_cast" = yes; then
19160
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_CONST_CAST
19163 _ACEOF
19164
19165 fi
19166
19167 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19168 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19169 if test "${ac_cv_cxx_static_cast+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172
19173
19174 ac_ext=cc
19175 ac_cpp='$CXXCPP $CPPFLAGS'
19176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19179
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 #include <typeinfo>
19187 class Base { public : Base () {} virtual void f () = 0; };
19188 class Derived : public Base { public : Derived () {} virtual void f () {} };
19189 int g (Derived&) { return 0; }
19190 int
19191 main ()
19192 {
19193
19194 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19195 ;
19196 return 0;
19197 }
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_cxx_werror_flag"
19209 || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_cxx_static_cast=yes
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 ac_cv_cxx_static_cast=no
19227 fi
19228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229 ac_ext=c
19230 ac_cpp='$CPP $CPPFLAGS'
19231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19234
19235
19236 fi
19237 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19238 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19239 if test "$ac_cv_cxx_static_cast" = yes; then
19240
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE_STATIC_CAST
19243 _ACEOF
19244
19245 fi
19246
19247
19248 if test "$wxUSE_STL" = "yes"; then
19249 ac_ext=cc
19250 ac_cpp='$CXXCPP $CPPFLAGS'
19251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19254
19255
19256 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19257 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <string>
19265 #include <functional>
19266 #include <algorithm>
19267 #include <vector>
19268 #include <list>
19269 int
19270 main ()
19271 {
19272 std::vector<int> moo;
19273 std::list<int> foo;
19274 std::vector<int>::iterator it =
19275 std::find_if(moo.begin(), moo.end(),
19276 std::bind2nd(std::less<int>(), 3));
19277 ;
19278 return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19283 (eval $ac_compile) 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_cxx_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest.$ac_objext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 echo "$as_me:$LINENO: result: yes" >&5
19304 echo "${ECHO_T}yes" >&6
19305 else
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 echo "$as_me:$LINENO: result: no" >&5
19310 echo "${ECHO_T}no" >&6
19311 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19312 echo "$as_me: error: Basic STL functionality missing" >&2;}
19313 { (exit 1); exit 1; }; }
19314 fi
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19316
19317 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19318 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h. */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <string>
19326 int
19327 main ()
19328 {
19329 std::wstring foo;
19330 ;
19331 return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext
19335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19336 (eval $ac_compile) 2>conftest.er1
19337 ac_status=$?
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
19343 { ac_try='test -z "$ac_cxx_werror_flag"
19344 || test ! -s conftest.err'
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; } &&
19350 { ac_try='test -s conftest.$ac_objext'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
19356 echo "$as_me:$LINENO: result: yes" >&5
19357 echo "${ECHO_T}yes" >&6
19358 cat >>confdefs.h <<\_ACEOF
19359 #define HAVE_STD_WSTRING 1
19360 _ACEOF
19361
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 echo "$as_me:$LINENO: result: no" >&5
19367 echo "${ECHO_T}no" >&6
19368 fi
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370
19371 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19372 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h. */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 #include <string>
19380 int
19381 main ()
19382 {
19383 std::string foo, bar;
19384 foo.compare(bar);
19385 foo.compare(1, 1, bar);
19386 foo.compare(1, 1, bar, 1, 1);
19387 foo.compare("");
19388 foo.compare(1, 1, "");
19389 foo.compare(1, 1, "", 2);
19390 ;
19391 return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396 (eval $ac_compile) 2>conftest.er1
19397 ac_status=$?
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
19403 { ac_try='test -z "$ac_cxx_werror_flag"
19404 || test ! -s conftest.err'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest.$ac_objext'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 echo "$as_me:$LINENO: result: yes" >&5
19417 echo "${ECHO_T}yes" >&6
19418 cat >>confdefs.h <<\_ACEOF
19419 #define HAVE_STD_STRING_COMPARE 1
19420 _ACEOF
19421
19422 else
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 echo "$as_me:$LINENO: result: no" >&5
19427 echo "${ECHO_T}no" >&6
19428 fi
19429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19430
19431 ac_ext=c
19432 ac_cpp='$CPP $CPPFLAGS'
19433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19436
19437 fi
19438
19439
19440 SEARCH_INCLUDE="\
19441 /usr/local/include \
19442 \
19443 /usr/Motif-2.1/include \
19444 /usr/Motif-1.2/include \
19445 /usr/include/Motif1.2 \
19446 /opt/xpm/include/X11 \
19447 /opt/GBxpm/include/ \
19448 /opt/GBxpm/X11/include/ \
19449 \
19450 /usr/dt/include \
19451 /usr/openwin/include \
19452 \
19453 /usr/include/Xm \
19454 \
19455 /usr/X11R6/include \
19456 /usr/X11R6.4/include \
19457 /usr/X11R5/include \
19458 /usr/X11R4/include \
19459 \
19460 /usr/include/X11R6 \
19461 /usr/include/X11R5 \
19462 /usr/include/X11R4 \
19463 \
19464 /usr/local/X11R6/include \
19465 /usr/local/X11R5/include \
19466 /usr/local/X11R4/include \
19467 \
19468 /usr/local/include/X11R6 \
19469 /usr/local/include/X11R5 \
19470 /usr/local/include/X11R4 \
19471 \
19472 /usr/X11/include \
19473 /usr/include/X11 \
19474 /usr/local/X11/include \
19475 /usr/local/include/X11 \
19476 \
19477 /usr/X386/include \
19478 /usr/x386/include \
19479 /usr/XFree86/include/X11 \
19480 \
19481 X:/XFree86/include \
19482 X:/XFree86/include/X11 \
19483 \
19484 /usr/include/gtk \
19485 /usr/local/include/gtk \
19486 /usr/include/glib \
19487 /usr/local/include/glib \
19488 \
19489 /usr/include/qt \
19490 /usr/local/include/qt \
19491 \
19492 /usr/local/arm/3.3.2/include \
19493 \
19494 /usr/include/windows \
19495 /usr/include/wine \
19496 /usr/local/include/wine \
19497 \
19498 /usr/unsupported/include \
19499 /usr/athena/include \
19500 /usr/local/x11r5/include \
19501 /usr/lpp/Xamples/include \
19502 \
19503 /usr/openwin/share/include"
19504
19505 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19506
19507
19508 cat >confcache <<\_ACEOF
19509 # This file is a shell script that caches the results of configure
19510 # tests run on this system so they can be shared between configure
19511 # scripts and configure runs, see configure's option --config-cache.
19512 # It is not useful on other systems. If it contains results you don't
19513 # want to keep, you may remove or edit it.
19514 #
19515 # config.status only pays attention to the cache file if you give it
19516 # the --recheck option to rerun configure.
19517 #
19518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19520 # following values.
19521
19522 _ACEOF
19523
19524 # The following way of writing the cache mishandles newlines in values,
19525 # but we know of no workaround that is simple, portable, and efficient.
19526 # So, don't put newlines in cache variables' values.
19527 # Ultrix sh set writes to stderr and can't be redirected directly,
19528 # and sets the high bit in the cache file unless we assign to the vars.
19529 {
19530 (set) 2>&1 |
19531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19532 *ac_space=\ *)
19533 # `set' does not quote correctly, so add quotes (double-quote
19534 # substitution turns \\\\ into \\, and sed turns \\ into \).
19535 sed -n \
19536 "s/'/'\\\\''/g;
19537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19538 ;;
19539 *)
19540 # `set' quotes correctly as required by POSIX, so do not add quotes.
19541 sed -n \
19542 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19543 ;;
19544 esac;
19545 } |
19546 sed '
19547 t clear
19548 : clear
19549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19550 t end
19551 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19552 : end' >>confcache
19553 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19554 if test -w $cache_file; then
19555 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19556 cat confcache >$cache_file
19557 else
19558 echo "not updating unwritable cache $cache_file"
19559 fi
19560 fi
19561 rm -f confcache
19562
19563 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19564 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19565 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19566 if test "${wx_cv_lib_glibc21+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h. */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 #include <features.h>
19577 int
19578 main ()
19579 {
19580
19581 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19582 #error not glibc2.1
19583 #endif
19584
19585 ;
19586 return 0;
19587 }
19588 _ACEOF
19589 rm -f conftest.$ac_objext
19590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19591 (eval $ac_compile) 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -z "$ac_c_werror_flag"
19599 || test ! -s conftest.err'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; } &&
19605 { ac_try='test -s conftest.$ac_objext'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611
19612 wx_cv_lib_glibc21=yes
19613
19614 else
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618
19619 wx_cv_lib_glibc21=no
19620
19621
19622 fi
19623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19624
19625 fi
19626 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19627 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19628 if test "$wx_cv_lib_glibc21" = "yes"; then
19629 cat >>confdefs.h <<\_ACEOF
19630 #define wxHAVE_GLIBC2 1
19631 _ACEOF
19632
19633 fi
19634 fi
19635
19636 if test "x$wx_cv_lib_glibc21" = "xyes"; then
19637 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19638 cat >>confdefs.h <<\_ACEOF
19639 #define _GNU_SOURCE 1
19640 _ACEOF
19641
19642 fi
19643 fi
19644
19645
19646
19647 if test "$wxUSE_REGEX" != "no"; then
19648 cat >>confdefs.h <<\_ACEOF
19649 #define wxUSE_REGEX 1
19650 _ACEOF
19651
19652
19653 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19654 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19655 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19656 wxUSE_REGEX=builtin
19657 fi
19658
19659 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19660 if test "${ac_cv_header_regex_h+set}" = set; then
19661 echo "$as_me:$LINENO: checking for regex.h" >&5
19662 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19663 if test "${ac_cv_header_regex_h+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 fi
19666 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19667 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19668 else
19669 # Is the header compilable?
19670 echo "$as_me:$LINENO: checking regex.h usability" >&5
19671 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19672 cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h. */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19678 $ac_includes_default
19679 #include <regex.h>
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19683 (eval $ac_compile) 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_c_werror_flag"
19691 || test ! -s conftest.err'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_header_compiler=yes
19704 else
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_header_compiler=no
19709 fi
19710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19712 echo "${ECHO_T}$ac_header_compiler" >&6
19713
19714 # Is the header present?
19715 echo "$as_me:$LINENO: checking regex.h presence" >&5
19716 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h. */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 #include <regex.h>
19724 _ACEOF
19725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } >/dev/null; then
19733 if test -s conftest.err; then
19734 ac_cpp_err=$ac_c_preproc_warn_flag
19735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19736 else
19737 ac_cpp_err=
19738 fi
19739 else
19740 ac_cpp_err=yes
19741 fi
19742 if test -z "$ac_cpp_err"; then
19743 ac_header_preproc=yes
19744 else
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19747
19748 ac_header_preproc=no
19749 fi
19750 rm -f conftest.err conftest.$ac_ext
19751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19752 echo "${ECHO_T}$ac_header_preproc" >&6
19753
19754 # So? What about this header?
19755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19756 yes:no: )
19757 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19758 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19759 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19760 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19761 ac_header_preproc=yes
19762 ;;
19763 no:yes:* )
19764 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19765 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19767 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19769 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19771 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19773 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19774 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19775 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19776 (
19777 cat <<\_ASBOX
19778 ## ----------------------------------------- ##
19779 ## Report this to wx-dev@lists.wxwindows.org ##
19780 ## ----------------------------------------- ##
19781 _ASBOX
19782 ) |
19783 sed "s/^/$as_me: WARNING: /" >&2
19784 ;;
19785 esac
19786 echo "$as_me:$LINENO: checking for regex.h" >&5
19787 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19788 if test "${ac_cv_header_regex_h+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791 ac_cv_header_regex_h=$ac_header_preproc
19792 fi
19793 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19794 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19795
19796 fi
19797 if test $ac_cv_header_regex_h = yes; then
19798
19799 for ac_func in regcomp
19800 do
19801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19802 echo "$as_me:$LINENO: checking for $ac_func" >&5
19803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19804 if eval "test \"\${$as_ac_var+set}\" = set"; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19815 #define $ac_func innocuous_$ac_func
19816
19817 /* System header to define __stub macros and hopefully few prototypes,
19818 which can conflict with char $ac_func (); below.
19819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19820 <limits.h> exists even on freestanding compilers. */
19821
19822 #ifdef __STDC__
19823 # include <limits.h>
19824 #else
19825 # include <assert.h>
19826 #endif
19827
19828 #undef $ac_func
19829
19830 /* Override any gcc2 internal prototype to avoid an error. */
19831 #ifdef __cplusplus
19832 extern "C"
19833 {
19834 #endif
19835 /* We use char because int might match the return type of a gcc2
19836 builtin and then its argument prototype would still apply. */
19837 char $ac_func ();
19838 /* The GNU C library defines this for functions which it implements
19839 to always fail with ENOSYS. Some functions are actually named
19840 something starting with __ and the normal name is an alias. */
19841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19842 choke me
19843 #else
19844 char (*f) () = $ac_func;
19845 #endif
19846 #ifdef __cplusplus
19847 }
19848 #endif
19849
19850 int
19851 main ()
19852 {
19853 return f != $ac_func;
19854 ;
19855 return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19860 (eval $ac_link) 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest$ac_exeext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 eval "$as_ac_var=yes"
19881 else
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 eval "$as_ac_var=no"
19886 fi
19887 rm -f conftest.err conftest.$ac_objext \
19888 conftest$ac_exeext conftest.$ac_ext
19889 fi
19890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19892 if test `eval echo '${'$as_ac_var'}'` = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19895 _ACEOF
19896
19897 fi
19898 done
19899
19900 fi
19901
19902
19903
19904 if test "x$ac_cv_func_regcomp" != "xyes"; then
19905 if test "$wxUSE_REGEX" = "sys" ; then
19906 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19907 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19908 { (exit 1); exit 1; }; }
19909 else
19910 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19911 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19912 wxUSE_REGEX=builtin
19913 fi
19914 else
19915 wxUSE_REGEX=sys
19916 cat >>confdefs.h <<\_ACEOF
19917 #define WX_NO_REGEX_ADVANCED 1
19918 _ACEOF
19919
19920 fi
19921 fi
19922 fi
19923
19924
19925 ZLIB_LINK=
19926 if test "$wxUSE_ZLIB" != "no" ; then
19927 cat >>confdefs.h <<\_ACEOF
19928 #define wxUSE_ZLIB 1
19929 _ACEOF
19930
19931
19932 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19933 if test "$USE_DARWIN" = 1; then
19934 system_zlib_h_ok="yes"
19935 else
19936 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19937 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19938 if test "${ac_cv_header_zlib_h+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941 if test "$cross_compiling" = yes; then
19942 unset ac_cv_header_zlib_h
19943
19944 else
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h. */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951
19952 #include <zlib.h>
19953 #include <stdio.h>
19954
19955 int main()
19956 {
19957 FILE *f=fopen("conftestval", "w");
19958 if (!f) exit(1);
19959 fprintf(f, "%s",
19960 ZLIB_VERSION[0] == '1' &&
19961 (ZLIB_VERSION[2] > '1' ||
19962 (ZLIB_VERSION[2] == '1' &&
19963 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19964 exit(0);
19965 }
19966
19967 _ACEOF
19968 rm -f conftest$ac_exeext
19969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19970 (eval $ac_link) 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_cv_header_zlib_h=`cat conftestval`
19980 else
19981 echo "$as_me: program exited with status $ac_status" >&5
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985 ( exit $ac_status )
19986 ac_cv_header_zlib_h=no
19987 fi
19988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19989 fi
19990
19991 fi
19992 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19993 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19994 if test "${ac_cv_header_zlib_h+set}" = set; then
19995 echo "$as_me:$LINENO: checking for zlib.h" >&5
19996 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19997 if test "${ac_cv_header_zlib_h+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 fi
20000 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20001 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20002 else
20003 # Is the header compilable?
20004 echo "$as_me:$LINENO: checking zlib.h usability" >&5
20005 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h. */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20013 #include <zlib.h>
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017 (eval $ac_compile) 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag"
20025 || test ! -s conftest.err'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_header_compiler=yes
20038 else
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042 ac_header_compiler=no
20043 fi
20044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20046 echo "${ECHO_T}$ac_header_compiler" >&6
20047
20048 # Is the header present?
20049 echo "$as_me:$LINENO: checking zlib.h presence" >&5
20050 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h. */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 #include <zlib.h>
20058 _ACEOF
20059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20061 ac_status=$?
20062 grep -v '^ *+' conftest.er1 >conftest.err
20063 rm -f conftest.er1
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } >/dev/null; then
20067 if test -s conftest.err; then
20068 ac_cpp_err=$ac_c_preproc_warn_flag
20069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20070 else
20071 ac_cpp_err=
20072 fi
20073 else
20074 ac_cpp_err=yes
20075 fi
20076 if test -z "$ac_cpp_err"; then
20077 ac_header_preproc=yes
20078 else
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20081
20082 ac_header_preproc=no
20083 fi
20084 rm -f conftest.err conftest.$ac_ext
20085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20086 echo "${ECHO_T}$ac_header_preproc" >&6
20087
20088 # So? What about this header?
20089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20090 yes:no: )
20091 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20092 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20094 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20095 ac_header_preproc=yes
20096 ;;
20097 no:yes:* )
20098 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20099 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20101 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20103 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20105 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20107 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20109 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20110 (
20111 cat <<\_ASBOX
20112 ## ----------------------------------------- ##
20113 ## Report this to wx-dev@lists.wxwindows.org ##
20114 ## ----------------------------------------- ##
20115 _ASBOX
20116 ) |
20117 sed "s/^/$as_me: WARNING: /" >&2
20118 ;;
20119 esac
20120 echo "$as_me:$LINENO: checking for zlib.h" >&5
20121 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20122 if test "${ac_cv_header_zlib_h+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125 ac_cv_header_zlib_h=$ac_header_preproc
20126 fi
20127 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20128 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20129
20130 fi
20131
20132
20133
20134 system_zlib_h_ok=$ac_cv_header_zlib_h
20135 fi
20136
20137 if test "$system_zlib_h_ok" = "yes"; then
20138 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20139 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20140 if test "${ac_cv_lib_z_deflate+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143 ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-lz $LIBS"
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151
20152 /* Override any gcc2 internal prototype to avoid an error. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20158 char deflate ();
20159 int
20160 main ()
20161 {
20162 deflate ();
20163 ;
20164 return 0;
20165 }
20166 _ACEOF
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169 (eval $ac_link) 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_c_werror_flag"
20177 || test ! -s conftest.err'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest$ac_exeext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_lib_z_deflate=yes
20190 else
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_lib_z_deflate=no
20195 fi
20196 rm -f conftest.err conftest.$ac_objext \
20197 conftest$ac_exeext conftest.$ac_ext
20198 LIBS=$ac_check_lib_save_LIBS
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20201 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20202 if test $ac_cv_lib_z_deflate = yes; then
20203 ZLIB_LINK=" -lz"
20204 fi
20205
20206 fi
20207
20208 if test "x$ZLIB_LINK" = "x" ; then
20209 if test "$wxUSE_ZLIB" = "sys" ; then
20210 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20211 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20212 { (exit 1); exit 1; }; }
20213 else
20214 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20215 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20216 wxUSE_ZLIB=builtin
20217 fi
20218 else
20219 wxUSE_ZLIB=sys
20220 fi
20221 fi
20222 fi
20223
20224
20225 PNG_LINK=
20226 if test "$wxUSE_LIBPNG" != "no" ; then
20227 cat >>confdefs.h <<\_ACEOF
20228 #define wxUSE_LIBPNG 1
20229 _ACEOF
20230
20231
20232 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20233 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20234 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20235 wxUSE_LIBPNG=sys
20236 fi
20237
20238 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20239 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20240 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20241 wxUSE_LIBPNG=builtin
20242 fi
20243
20244 if test "$wxUSE_MGL" != 1 ; then
20245 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20246 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20247 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20248 if test "${ac_cv_header_png_h+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251 if test "$cross_compiling" = yes; then
20252 unset ac_cv_header_png_h
20253
20254 else
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h. */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261
20262 #include <png.h>
20263 #include <stdio.h>
20264
20265 int main()
20266 {
20267 FILE *f=fopen("conftestval", "w");
20268 if (!f) exit(1);
20269 fprintf(f, "%s",
20270 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20271 exit(0);
20272 }
20273
20274 _ACEOF
20275 rm -f conftest$ac_exeext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_header_png_h=`cat conftestval`
20287 else
20288 echo "$as_me: program exited with status $ac_status" >&5
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ( exit $ac_status )
20293 ac_cv_header_png_h=no
20294 fi
20295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20296 fi
20297
20298 fi
20299 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20300 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20301 if test "${ac_cv_header_png_h+set}" = set; then
20302 echo "$as_me:$LINENO: checking for png.h" >&5
20303 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20304 if test "${ac_cv_header_png_h+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 fi
20307 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20308 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20309 else
20310 # Is the header compilable?
20311 echo "$as_me:$LINENO: checking png.h usability" >&5
20312 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h. */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 $ac_includes_default
20320 #include <png.h>
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20324 (eval $ac_compile) 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -z "$ac_c_werror_flag"
20332 || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest.$ac_objext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_header_compiler=yes
20345 else
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20348
20349 ac_header_compiler=no
20350 fi
20351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20353 echo "${ECHO_T}$ac_header_compiler" >&6
20354
20355 # Is the header present?
20356 echo "$as_me:$LINENO: checking png.h presence" >&5
20357 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h. */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 #include <png.h>
20365 _ACEOF
20366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } >/dev/null; then
20374 if test -s conftest.err; then
20375 ac_cpp_err=$ac_c_preproc_warn_flag
20376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20377 else
20378 ac_cpp_err=
20379 fi
20380 else
20381 ac_cpp_err=yes
20382 fi
20383 if test -z "$ac_cpp_err"; then
20384 ac_header_preproc=yes
20385 else
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 ac_header_preproc=no
20390 fi
20391 rm -f conftest.err conftest.$ac_ext
20392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20393 echo "${ECHO_T}$ac_header_preproc" >&6
20394
20395 # So? What about this header?
20396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20397 yes:no: )
20398 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20399 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20400 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20401 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20402 ac_header_preproc=yes
20403 ;;
20404 no:yes:* )
20405 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20406 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20407 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20408 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20409 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20410 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20411 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20412 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20413 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20414 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20416 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20417 (
20418 cat <<\_ASBOX
20419 ## ----------------------------------------- ##
20420 ## Report this to wx-dev@lists.wxwindows.org ##
20421 ## ----------------------------------------- ##
20422 _ASBOX
20423 ) |
20424 sed "s/^/$as_me: WARNING: /" >&2
20425 ;;
20426 esac
20427 echo "$as_me:$LINENO: checking for png.h" >&5
20428 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20429 if test "${ac_cv_header_png_h+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432 ac_cv_header_png_h=$ac_header_preproc
20433 fi
20434 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20435 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20436
20437 fi
20438
20439
20440
20441 if test "$ac_cv_header_png_h" = "yes"; then
20442 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20443 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20444 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 ac_check_lib_save_LIBS=$LIBS
20448 LIBS="-lpng -lz -lm $LIBS"
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455
20456 /* Override any gcc2 internal prototype to avoid an error. */
20457 #ifdef __cplusplus
20458 extern "C"
20459 #endif
20460 /* We use char because int might match the return type of a gcc2
20461 builtin and then its argument prototype would still apply. */
20462 char png_check_sig ();
20463 int
20464 main ()
20465 {
20466 png_check_sig ();
20467 ;
20468 return 0;
20469 }
20470 _ACEOF
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20473 (eval $ac_link) 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -z "$ac_c_werror_flag"
20481 || test ! -s conftest.err'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; } &&
20487 { ac_try='test -s conftest$ac_exeext'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 ac_cv_lib_png_png_check_sig=yes
20494 else
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 ac_cv_lib_png_png_check_sig=no
20499 fi
20500 rm -f conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20502 LIBS=$ac_check_lib_save_LIBS
20503 fi
20504 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20505 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20506 if test $ac_cv_lib_png_png_check_sig = yes; then
20507 PNG_LINK=" -lpng -lz"
20508 fi
20509
20510 fi
20511
20512 if test "x$PNG_LINK" = "x" ; then
20513 if test "$wxUSE_LIBPNG" = "sys" ; then
20514 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20515 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20516 { (exit 1); exit 1; }; }
20517 else
20518 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20519 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20520 wxUSE_LIBPNG=builtin
20521 fi
20522 else
20523 wxUSE_LIBPNG=sys
20524 fi
20525 fi
20526 fi
20527
20528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20529 fi
20530
20531
20532 JPEG_LINK=
20533 if test "$wxUSE_LIBJPEG" != "no" ; then
20534 cat >>confdefs.h <<\_ACEOF
20535 #define wxUSE_LIBJPEG 1
20536 _ACEOF
20537
20538
20539 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20540 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20541 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20542 wxUSE_LIBJPEG=sys
20543 fi
20544
20545 if test "$wxUSE_MGL" != 1 ; then
20546 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20547 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20548 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20549 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558
20559 #undef HAVE_STDLIB_H
20560 #include <stdio.h>
20561 #include <jpeglib.h>
20562
20563 int
20564 main ()
20565 {
20566
20567
20568 ;
20569 return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_header_jpeglib_h=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_cv_header_jpeglib_h=no
20600
20601 fi
20602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20603
20604 fi
20605
20606 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20607 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20608
20609 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20610 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20611 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20612 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615 ac_check_lib_save_LIBS=$LIBS
20616 LIBS="-ljpeg $LIBS"
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623
20624 /* Override any gcc2 internal prototype to avoid an error. */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 /* We use char because int might match the return type of a gcc2
20629 builtin and then its argument prototype would still apply. */
20630 char jpeg_read_header ();
20631 int
20632 main ()
20633 {
20634 jpeg_read_header ();
20635 ;
20636 return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag"
20649 || test ! -s conftest.err'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_cv_lib_jpeg_jpeg_read_header=yes
20662 else
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20665
20666 ac_cv_lib_jpeg_jpeg_read_header=no
20667 fi
20668 rm -f conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
20670 LIBS=$ac_check_lib_save_LIBS
20671 fi
20672 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20673 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20674 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20675 JPEG_LINK=" -ljpeg"
20676 fi
20677
20678 fi
20679
20680 if test "x$JPEG_LINK" = "x" ; then
20681 if test "$wxUSE_LIBJPEG" = "sys" ; then
20682 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20683 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20684 { (exit 1); exit 1; }; }
20685 else
20686 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20687 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20688 wxUSE_LIBJPEG=builtin
20689 fi
20690 else
20691 wxUSE_LIBJPEG=sys
20692 fi
20693 fi
20694 fi
20695 fi
20696
20697
20698 TIFF_LINK=
20699 TIFF_PREREQ_LINKS=-lm
20700 if test "$wxUSE_LIBTIFF" != "no" ; then
20701 cat >>confdefs.h <<\_ACEOF
20702 #define wxUSE_LIBTIFF 1
20703 _ACEOF
20704
20705
20706 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20707 if test "$wxUSE_LIBJPEG" = "sys"; then
20708 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20709 fi
20710 if test "$wxUSE_ZLIB" = "sys"; then
20711 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20712 fi
20713 if test "${ac_cv_header_tiffio_h+set}" = set; then
20714 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20715 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20716 if test "${ac_cv_header_tiffio_h+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 fi
20719 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20720 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20721 else
20722 # Is the header compilable?
20723 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20724 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h. */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 $ac_includes_default
20732 #include <tiffio.h>
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try='test -z "$ac_c_werror_flag"
20744 || test ! -s conftest.err'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try='test -s conftest.$ac_objext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_header_compiler=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 ac_header_compiler=no
20762 fi
20763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20765 echo "${ECHO_T}$ac_header_compiler" >&6
20766
20767 # Is the header present?
20768 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20769 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h. */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <tiffio.h>
20777 _ACEOF
20778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } >/dev/null; then
20786 if test -s conftest.err; then
20787 ac_cpp_err=$ac_c_preproc_warn_flag
20788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20789 else
20790 ac_cpp_err=
20791 fi
20792 else
20793 ac_cpp_err=yes
20794 fi
20795 if test -z "$ac_cpp_err"; then
20796 ac_header_preproc=yes
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801 ac_header_preproc=no
20802 fi
20803 rm -f conftest.err conftest.$ac_ext
20804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20805 echo "${ECHO_T}$ac_header_preproc" >&6
20806
20807 # So? What about this header?
20808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20809 yes:no: )
20810 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20811 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20813 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20814 ac_header_preproc=yes
20815 ;;
20816 no:yes:* )
20817 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20818 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20820 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20822 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20824 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20826 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20827 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20828 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20829 (
20830 cat <<\_ASBOX
20831 ## ----------------------------------------- ##
20832 ## Report this to wx-dev@lists.wxwindows.org ##
20833 ## ----------------------------------------- ##
20834 _ASBOX
20835 ) |
20836 sed "s/^/$as_me: WARNING: /" >&2
20837 ;;
20838 esac
20839 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20840 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20841 if test "${ac_cv_header_tiffio_h+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 ac_cv_header_tiffio_h=$ac_header_preproc
20845 fi
20846 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20847 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20848
20849 fi
20850 if test $ac_cv_header_tiffio_h = yes; then
20851
20852 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20853 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20854 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857 ac_check_lib_save_LIBS=$LIBS
20858 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865
20866 /* Override any gcc2 internal prototype to avoid an error. */
20867 #ifdef __cplusplus
20868 extern "C"
20869 #endif
20870 /* We use char because int might match the return type of a gcc2
20871 builtin and then its argument prototype would still apply. */
20872 char TIFFError ();
20873 int
20874 main ()
20875 {
20876 TIFFError ();
20877 ;
20878 return 0;
20879 }
20880 _ACEOF
20881 rm -f conftest.$ac_objext conftest$ac_exeext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20883 (eval $ac_link) 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_c_werror_flag"
20891 || test ! -s conftest.err'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; } &&
20897 { ac_try='test -s conftest$ac_exeext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ac_cv_lib_tiff_TIFFError=yes
20904 else
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 ac_cv_lib_tiff_TIFFError=no
20909 fi
20910 rm -f conftest.err conftest.$ac_objext \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20913 fi
20914 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20915 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20916 if test $ac_cv_lib_tiff_TIFFError = yes; then
20917 TIFF_LINK=" -ltiff"
20918 fi
20919
20920
20921
20922 fi
20923
20924
20925
20926 if test "x$TIFF_LINK" = "x" ; then
20927 if test "$wxUSE_LIBTIFF" = "sys" ; then
20928 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20929 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20930 { (exit 1); exit 1; }; }
20931 else
20932 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20933 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20934 wxUSE_LIBTIFF=builtin
20935 fi
20936 else
20937 wxUSE_LIBTIFF=sys
20938 fi
20939 fi
20940 fi
20941
20942
20943 if test "$wxUSE_EXPAT" != "no"; then
20944 wxUSE_XML=yes
20945 cat >>confdefs.h <<\_ACEOF
20946 #define wxUSE_EXPAT 1
20947 _ACEOF
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define wxUSE_XML 1
20951 _ACEOF
20952
20953
20954 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20955 if test "${ac_cv_header_expat_h+set}" = set; then
20956 echo "$as_me:$LINENO: checking for expat.h" >&5
20957 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20958 if test "${ac_cv_header_expat_h+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 fi
20961 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20962 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20963 else
20964 # Is the header compilable?
20965 echo "$as_me:$LINENO: checking expat.h usability" >&5
20966 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 $ac_includes_default
20974 #include <expat.h>
20975 _ACEOF
20976 rm -f conftest.$ac_objext
20977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20978 (eval $ac_compile) 2>conftest.er1
20979 ac_status=$?
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } &&
20985 { ac_try='test -z "$ac_c_werror_flag"
20986 || test ! -s conftest.err'
20987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998 ac_header_compiler=yes
20999 else
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 ac_header_compiler=no
21004 fi
21005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21007 echo "${ECHO_T}$ac_header_compiler" >&6
21008
21009 # Is the header present?
21010 echo "$as_me:$LINENO: checking expat.h presence" >&5
21011 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 #include <expat.h>
21019 _ACEOF
21020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21022 ac_status=$?
21023 grep -v '^ *+' conftest.er1 >conftest.err
21024 rm -f conftest.er1
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } >/dev/null; then
21028 if test -s conftest.err; then
21029 ac_cpp_err=$ac_c_preproc_warn_flag
21030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21031 else
21032 ac_cpp_err=
21033 fi
21034 else
21035 ac_cpp_err=yes
21036 fi
21037 if test -z "$ac_cpp_err"; then
21038 ac_header_preproc=yes
21039 else
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043 ac_header_preproc=no
21044 fi
21045 rm -f conftest.err conftest.$ac_ext
21046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21047 echo "${ECHO_T}$ac_header_preproc" >&6
21048
21049 # So? What about this header?
21050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21051 yes:no: )
21052 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21053 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21055 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21056 ac_header_preproc=yes
21057 ;;
21058 no:yes:* )
21059 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21060 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21062 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21064 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21066 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
21067 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21068 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
21069 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21070 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21071 (
21072 cat <<\_ASBOX
21073 ## ----------------------------------------- ##
21074 ## Report this to wx-dev@lists.wxwindows.org ##
21075 ## ----------------------------------------- ##
21076 _ASBOX
21077 ) |
21078 sed "s/^/$as_me: WARNING: /" >&2
21079 ;;
21080 esac
21081 echo "$as_me:$LINENO: checking for expat.h" >&5
21082 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21083 if test "${ac_cv_header_expat_h+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086 ac_cv_header_expat_h=$ac_header_preproc
21087 fi
21088 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21089 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21090
21091 fi
21092 if test $ac_cv_header_expat_h = yes; then
21093 found_expat_h=1
21094 fi
21095
21096
21097 if test "x$found_expat_h" = "x1"; then
21098 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21099 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21100 if test "${wx_cv_expat_is_not_broken+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103
21104
21105
21106 ac_ext=cc
21107 ac_cpp='$CXXCPP $CPPFLAGS'
21108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21111
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 #include <expat.h>
21119 int
21120 main ()
21121 {
21122
21123 ;
21124 return 0;
21125 }
21126 _ACEOF
21127 rm -f conftest.$ac_objext
21128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21129 (eval $ac_compile) 2>conftest.er1
21130 ac_status=$?
21131 grep -v '^ *+' conftest.er1 >conftest.err
21132 rm -f conftest.er1
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } &&
21136 { ac_try='test -z "$ac_cxx_werror_flag"
21137 || test ! -s conftest.err'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; } &&
21143 { ac_try='test -s conftest.$ac_objext'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 wx_cv_expat_is_not_broken=yes
21150 else
21151 echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154 wx_cv_expat_is_not_broken=no
21155
21156 fi
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21158 ac_ext=c
21159 ac_cpp='$CPP $CPPFLAGS'
21160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164
21165
21166 fi
21167 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21168 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21169 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21170 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21171 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21172 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 ac_check_lib_save_LIBS=$LIBS
21176 LIBS="-lexpat $LIBS"
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183
21184 /* Override any gcc2 internal prototype to avoid an error. */
21185 #ifdef __cplusplus
21186 extern "C"
21187 #endif
21188 /* We use char because int might match the return type of a gcc2
21189 builtin and then its argument prototype would still apply. */
21190 char XML_ParserCreate ();
21191 int
21192 main ()
21193 {
21194 XML_ParserCreate ();
21195 ;
21196 return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201 (eval $ac_link) 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_c_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest$ac_exeext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 ac_cv_lib_expat_XML_ParserCreate=yes
21222 else
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226 ac_cv_lib_expat_XML_ParserCreate=no
21227 fi
21228 rm -f conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21230 LIBS=$ac_check_lib_save_LIBS
21231 fi
21232 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21233 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21234 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21235 EXPAT_LINK=" -lexpat"
21236 fi
21237
21238 fi
21239 fi
21240 if test "x$EXPAT_LINK" = "x" ; then
21241 if test "$wxUSE_EXPAT" = "sys" ; then
21242 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21243 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21244 { (exit 1); exit 1; }; }
21245 else
21246 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21247 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21248 wxUSE_EXPAT=builtin
21249 fi
21250 else
21251 wxUSE_EXPAT=sys
21252 fi
21253 fi
21254 if test "$wxUSE_EXPAT" = "builtin" ; then
21255
21256
21257 subdirs="$subdirs src/expat"
21258
21259 fi
21260 fi
21261
21262
21263
21264 if test "$wxUSE_LIBMSPACK" != "no"; then
21265
21266 if test "${ac_cv_header_mspack_h+set}" = set; then
21267 echo "$as_me:$LINENO: checking for mspack.h" >&5
21268 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21269 if test "${ac_cv_header_mspack_h+set}" = set; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21271 fi
21272 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21273 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21274 else
21275 # Is the header compilable?
21276 echo "$as_me:$LINENO: checking mspack.h usability" >&5
21277 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 $ac_includes_default
21285 #include <mspack.h>
21286 _ACEOF
21287 rm -f conftest.$ac_objext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289 (eval $ac_compile) 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -z "$ac_c_werror_flag"
21297 || test ! -s conftest.err'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; } &&
21303 { ac_try='test -s conftest.$ac_objext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 ac_header_compiler=yes
21310 else
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 ac_header_compiler=no
21315 fi
21316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21318 echo "${ECHO_T}$ac_header_compiler" >&6
21319
21320 # Is the header present?
21321 echo "$as_me:$LINENO: checking mspack.h presence" >&5
21322 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h. */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 #include <mspack.h>
21330 _ACEOF
21331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21333 ac_status=$?
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } >/dev/null; then
21339 if test -s conftest.err; then
21340 ac_cpp_err=$ac_c_preproc_warn_flag
21341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21342 else
21343 ac_cpp_err=
21344 fi
21345 else
21346 ac_cpp_err=yes
21347 fi
21348 if test -z "$ac_cpp_err"; then
21349 ac_header_preproc=yes
21350 else
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ac_header_preproc=no
21355 fi
21356 rm -f conftest.err conftest.$ac_ext
21357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21358 echo "${ECHO_T}$ac_header_preproc" >&6
21359
21360 # So? What about this header?
21361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21362 yes:no: )
21363 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21364 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21366 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21367 ac_header_preproc=yes
21368 ;;
21369 no:yes:* )
21370 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21371 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21373 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21375 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21377 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21379 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21381 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21382 (
21383 cat <<\_ASBOX
21384 ## ----------------------------------------- ##
21385 ## Report this to wx-dev@lists.wxwindows.org ##
21386 ## ----------------------------------------- ##
21387 _ASBOX
21388 ) |
21389 sed "s/^/$as_me: WARNING: /" >&2
21390 ;;
21391 esac
21392 echo "$as_me:$LINENO: checking for mspack.h" >&5
21393 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21394 if test "${ac_cv_header_mspack_h+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397 ac_cv_header_mspack_h=$ac_header_preproc
21398 fi
21399 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21400 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21401
21402 fi
21403 if test $ac_cv_header_mspack_h = yes; then
21404 found_mspack_h=1
21405 fi
21406
21407
21408 if test "x$found_mspack_h" = "x1"; then
21409 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21410 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21411 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414 ac_check_lib_save_LIBS=$LIBS
21415 LIBS="-lmspack $LIBS"
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422
21423 /* Override any gcc2 internal prototype to avoid an error. */
21424 #ifdef __cplusplus
21425 extern "C"
21426 #endif
21427 /* We use char because int might match the return type of a gcc2
21428 builtin and then its argument prototype would still apply. */
21429 char mspack_create_chm_decompressor ();
21430 int
21431 main ()
21432 {
21433 mspack_create_chm_decompressor ();
21434 ;
21435 return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext conftest$ac_exeext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440 (eval $ac_link) 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -z "$ac_c_werror_flag"
21448 || test ! -s conftest.err'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest$ac_exeext'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21466 fi
21467 rm -f conftest.err conftest.$ac_objext \
21468 conftest$ac_exeext conftest.$ac_ext
21469 LIBS=$ac_check_lib_save_LIBS
21470 fi
21471 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21472 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21473 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21474 MSPACK_LINK=" -lmspack"
21475 fi
21476
21477 fi
21478 if test "x$MSPACK_LINK" = "x" ; then
21479 wxUSE_LIBMSPACK=no
21480 else
21481 cat >>confdefs.h <<\_ACEOF
21482 #define wxUSE_LIBMSPACK 1
21483 _ACEOF
21484
21485 fi
21486 fi
21487
21488
21489
21490 AFMINSTALL=
21491 WIN32INSTALL=
21492
21493 TOOLKIT=
21494 TOOLKIT_INCLUDE=
21495 WIDGET_SET=
21496
21497 if test "$USE_WIN32" = 1 ; then
21498
21499 for ac_header in w32api.h
21500 do
21501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21503 echo "$as_me:$LINENO: checking for $ac_header" >&5
21504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 fi
21508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21510 else
21511 # Is the header compilable?
21512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21514 cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h. */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 $ac_includes_default
21521 #include <$ac_header>
21522 _ACEOF
21523 rm -f conftest.$ac_objext
21524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21525 (eval $ac_compile) 2>conftest.er1
21526 ac_status=$?
21527 grep -v '^ *+' conftest.er1 >conftest.err
21528 rm -f conftest.er1
21529 cat conftest.err >&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } &&
21532 { ac_try='test -z "$ac_c_werror_flag"
21533 || test ! -s conftest.err'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest.$ac_objext'
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ac_header_compiler=yes
21546 else
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550 ac_header_compiler=no
21551 fi
21552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21554 echo "${ECHO_T}$ac_header_compiler" >&6
21555
21556 # Is the header present?
21557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h. */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21565 #include <$ac_header>
21566 _ACEOF
21567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21569 ac_status=$?
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } >/dev/null; then
21575 if test -s conftest.err; then
21576 ac_cpp_err=$ac_c_preproc_warn_flag
21577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21578 else
21579 ac_cpp_err=
21580 fi
21581 else
21582 ac_cpp_err=yes
21583 fi
21584 if test -z "$ac_cpp_err"; then
21585 ac_header_preproc=yes
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_header_preproc=no
21591 fi
21592 rm -f conftest.err conftest.$ac_ext
21593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21594 echo "${ECHO_T}$ac_header_preproc" >&6
21595
21596 # So? What about this header?
21597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21598 yes:no: )
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21603 ac_header_preproc=yes
21604 ;;
21605 no:yes:* )
21606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21618 (
21619 cat <<\_ASBOX
21620 ## ----------------------------------------- ##
21621 ## Report this to wx-dev@lists.wxwindows.org ##
21622 ## ----------------------------------------- ##
21623 _ASBOX
21624 ) |
21625 sed "s/^/$as_me: WARNING: /" >&2
21626 ;;
21627 esac
21628 echo "$as_me:$LINENO: checking for $ac_header" >&5
21629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633 eval "$as_ac_Header=\$ac_header_preproc"
21634 fi
21635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21637
21638 fi
21639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21640 cat >>confdefs.h <<_ACEOF
21641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21642 _ACEOF
21643
21644 fi
21645
21646 done
21647
21648 if test "${ac_cv_header_windows_h+set}" = set; then
21649 echo "$as_me:$LINENO: checking for windows.h" >&5
21650 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21651 if test "${ac_cv_header_windows_h+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 fi
21654 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21655 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21656 else
21657 # Is the header compilable?
21658 echo "$as_me:$LINENO: checking windows.h usability" >&5
21659 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21660 cat >conftest.$ac_ext <<_ACEOF
21661 /* confdefs.h. */
21662 _ACEOF
21663 cat confdefs.h >>conftest.$ac_ext
21664 cat >>conftest.$ac_ext <<_ACEOF
21665 /* end confdefs.h. */
21666 $ac_includes_default
21667 #include <windows.h>
21668 _ACEOF
21669 rm -f conftest.$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671 (eval $ac_compile) 2>conftest.er1
21672 ac_status=$?
21673 grep -v '^ *+' conftest.er1 >conftest.err
21674 rm -f conftest.er1
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
21678 { ac_try='test -z "$ac_c_werror_flag"
21679 || test ! -s conftest.err'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_header_compiler=yes
21692 else
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 ac_header_compiler=no
21697 fi
21698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21701
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking windows.h presence" >&5
21704 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h. */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <windows.h>
21712 _ACEOF
21713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21715 ac_status=$?
21716 grep -v '^ *+' conftest.er1 >conftest.err
21717 rm -f conftest.er1
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } >/dev/null; then
21721 if test -s conftest.err; then
21722 ac_cpp_err=$ac_c_preproc_warn_flag
21723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21724 else
21725 ac_cpp_err=
21726 fi
21727 else
21728 ac_cpp_err=yes
21729 fi
21730 if test -z "$ac_cpp_err"; then
21731 ac_header_preproc=yes
21732 else
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ac_header_preproc=no
21737 fi
21738 rm -f conftest.err conftest.$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21741
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21744 yes:no: )
21745 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21748 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21749 ac_header_preproc=yes
21750 ;;
21751 no:yes:* )
21752 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21753 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21755 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21757 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21759 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21761 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21763 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21764 (
21765 cat <<\_ASBOX
21766 ## ----------------------------------------- ##
21767 ## Report this to wx-dev@lists.wxwindows.org ##
21768 ## ----------------------------------------- ##
21769 _ASBOX
21770 ) |
21771 sed "s/^/$as_me: WARNING: /" >&2
21772 ;;
21773 esac
21774 echo "$as_me:$LINENO: checking for windows.h" >&5
21775 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21776 if test "${ac_cv_header_windows_h+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 ac_cv_header_windows_h=$ac_header_preproc
21780 fi
21781 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21782 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21783
21784 fi
21785 if test $ac_cv_header_windows_h = yes; then
21786 :
21787 else
21788
21789 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21790 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21791 { (exit 1); exit 1; }; }
21792
21793 fi
21794
21795
21796
21797 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21798
21799 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21800 LIBS="$LIBS -loleacc"
21801 fi
21802
21803 case "${host}" in
21804 *-*-cygwin* )
21805 LIBS="$LIBS -lkernel32 -luser32"
21806 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21807 esac
21808
21809 if test "$wxUSE_ODBC" = "sys" ; then
21810 wxUSE_ODBC = "yes"
21811 fi
21812 if test "$wxUSE_ODBC" = "yes" ; then
21813 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21814 cat >>confdefs.h <<\_ACEOF
21815 #define wxUSE_ODBC 1
21816 _ACEOF
21817
21818 fi
21819
21820 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21821 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21822
21823 WIN32INSTALL=win32install
21824 fi
21825
21826 if test "$wxUSE_GUI" = "yes"; then
21827 USE_GUI=1
21828
21829 GUI_TK_LIBRARY=
21830
21831 WXGTK12=
21832 WXGTK127=
21833 WXGTK20=
21834 WXGPE=
21835
21836 if test "$wxUSE_MSW" = 1 ; then
21837 TOOLKIT=MSW
21838 GUIDIST=MSW_DIST
21839
21840 case "${host}" in
21841 *-*-mingw32* )
21842 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21843 esac
21844 fi
21845
21846 if test "$wxUSE_GTK" = 1; then
21847 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21848 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21849
21850 gtk_version_cached=1
21851 if test "${wx_cv_lib_gtk+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854
21855 gtk_version_cached=0
21856 echo "$as_me:$LINENO: result: " >&5
21857 echo "${ECHO_T}" >&6
21858
21859 GTK_MODULES=
21860 if test "$wxUSE_THREADS" = "yes"; then
21861 GTK_MODULES=gthread
21862 fi
21863
21864 wx_cv_lib_gtk=
21865 if test "x$wxUSE_GTK2" = "xyes"; then
21866 # Check whether --enable-gtktest or --disable-gtktest was given.
21867 if test "${enable_gtktest+set}" = set; then
21868 enableval="$enable_gtktest"
21869
21870 else
21871 enable_gtktest=yes
21872 fi;
21873
21874 pkg_config_args=gtk+-2.0
21875 for module in . $GTK_MODULES
21876 do
21877 case "$module" in
21878 gthread)
21879 pkg_config_args="$pkg_config_args gthread-2.0"
21880 ;;
21881 esac
21882 done
21883
21884 no_gtk=""
21885
21886 # Extract the first word of "pkg-config", so it can be a program name with args.
21887 set dummy pkg-config; ac_word=$2
21888 echo "$as_me:$LINENO: checking for $ac_word" >&5
21889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893 case $PKG_CONFIG in
21894 [\\/]* | ?:[\\/]*)
21895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21896 ;;
21897 *)
21898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21899 for as_dir in $PATH
21900 do
21901 IFS=$as_save_IFS
21902 test -z "$as_dir" && as_dir=.
21903 for ac_exec_ext in '' $ac_executable_extensions; do
21904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21907 break 2
21908 fi
21909 done
21910 done
21911
21912 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21913 ;;
21914 esac
21915 fi
21916 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21917
21918 if test -n "$PKG_CONFIG"; then
21919 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21920 echo "${ECHO_T}$PKG_CONFIG" >&6
21921 else
21922 echo "$as_me:$LINENO: result: no" >&5
21923 echo "${ECHO_T}no" >&6
21924 fi
21925
21926
21927 if test x$PKG_CONFIG != xno ; then
21928 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21929 :
21930 else
21931 echo "*** pkg-config too old; version 0.7 or better required."
21932 no_gtk=yes
21933 PKG_CONFIG=no
21934 fi
21935 else
21936 no_gtk=yes
21937 fi
21938
21939 min_gtk_version=2.0.0
21940 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21941 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21942
21943 if test x$PKG_CONFIG != xno ; then
21944 ## don't try to run the test against uninstalled libtool libs
21945 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21946 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21947 enable_gtktest=no
21948 fi
21949
21950 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21951 :
21952 else
21953 no_gtk=yes
21954 fi
21955 fi
21956
21957 if test x"$no_gtk" = x ; then
21958 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21959 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21960 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21961 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21962 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21963 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21964 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21966 if test "x$enable_gtktest" = "xyes" ; then
21967 ac_save_CFLAGS="$CFLAGS"
21968 ac_save_LIBS="$LIBS"
21969 CFLAGS="$CFLAGS $GTK_CFLAGS"
21970 LIBS="$GTK_LIBS $LIBS"
21971 rm -f conf.gtktest
21972 if test "$cross_compiling" = yes; then
21973 echo $ac_n "cross compiling; assumed OK... $ac_c"
21974 else
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h. */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21981
21982 #include <gtk/gtk.h>
21983 #include <stdio.h>
21984 #include <stdlib.h>
21985
21986 int
21987 main ()
21988 {
21989 int major, minor, micro;
21990 char *tmp_version;
21991
21992 system ("touch conf.gtktest");
21993
21994 /* HP/UX 9 (%@#!) writes to sscanf strings */
21995 tmp_version = g_strdup("$min_gtk_version");
21996 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21997 printf("%s, bad version string\n", "$min_gtk_version");
21998 exit(1);
21999 }
22000
22001 if ((gtk_major_version != $gtk_config_major_version) ||
22002 (gtk_minor_version != $gtk_config_minor_version) ||
22003 (gtk_micro_version != $gtk_config_micro_version))
22004 {
22005 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22006 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22007 gtk_major_version, gtk_minor_version, gtk_micro_version);
22008 printf ("*** was found! If pkg-config was correct, then it is best\n");
22009 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22010 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22011 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22012 printf("*** required on your system.\n");
22013 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22014 printf("*** to point to the correct configuration files\n");
22015 }
22016 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22017 (gtk_minor_version != GTK_MINOR_VERSION) ||
22018 (gtk_micro_version != GTK_MICRO_VERSION))
22019 {
22020 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22021 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22022 printf("*** library (version %d.%d.%d)\n",
22023 gtk_major_version, gtk_minor_version, gtk_micro_version);
22024 }
22025 else
22026 {
22027 if ((gtk_major_version > major) ||
22028 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22029 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22030 {
22031 return 0;
22032 }
22033 else
22034 {
22035 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22036 gtk_major_version, gtk_minor_version, gtk_micro_version);
22037 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22038 major, minor, micro);
22039 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22040 printf("***\n");
22041 printf("*** If you have already installed a sufficiently new version, this error\n");
22042 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22043 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22044 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22045 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22046 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22047 printf("*** so that the correct libraries are found at run-time))\n");
22048 }
22049 }
22050 return 1;
22051 }
22052
22053 _ACEOF
22054 rm -f conftest$ac_exeext
22055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22056 (eval $ac_link) 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065 :
22066 else
22067 echo "$as_me: program exited with status $ac_status" >&5
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071 ( exit $ac_status )
22072 no_gtk=yes
22073 fi
22074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22075 fi
22076 CFLAGS="$ac_save_CFLAGS"
22077 LIBS="$ac_save_LIBS"
22078 fi
22079 fi
22080 if test "x$no_gtk" = x ; then
22081 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22082 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22083 wx_cv_lib_gtk=2.0
22084 else
22085 echo "$as_me:$LINENO: result: no" >&5
22086 echo "${ECHO_T}no" >&6
22087 if test "$PKG_CONFIG" = "no" ; then
22088 echo "*** A new enough version of pkg-config was not found."
22089 echo "*** See http://pkgconfig.sourceforge.net"
22090 else
22091 if test -f conf.gtktest ; then
22092 :
22093 else
22094 echo "*** Could not run GTK+ test program, checking why..."
22095 ac_save_CFLAGS="$CFLAGS"
22096 ac_save_LIBS="$LIBS"
22097 CFLAGS="$CFLAGS $GTK_CFLAGS"
22098 LIBS="$LIBS $GTK_LIBS"
22099 cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h. */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105
22106 #include <gtk/gtk.h>
22107 #include <stdio.h>
22108
22109 int
22110 main ()
22111 {
22112 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22113 ;
22114 return 0;
22115 }
22116 _ACEOF
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22119 (eval $ac_link) 2>conftest.er1
22120 ac_status=$?
22121 grep -v '^ *+' conftest.er1 >conftest.err
22122 rm -f conftest.er1
22123 cat conftest.err >&5
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); } &&
22126 { ac_try='test -z "$ac_c_werror_flag"
22127 || test ! -s conftest.err'
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22130 ac_status=$?
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; } &&
22133 { ac_try='test -s conftest$ac_exeext'
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 echo "*** The test program compiled, but did not run. This usually means"
22140 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22141 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22142 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22143 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22144 echo "*** is required on your system"
22145 echo "***"
22146 echo "*** If you have an old version installed, it is best to remove it, although"
22147 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22148 else
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 echo "*** The test program failed to compile or link. See the file config.log for the"
22153 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22154 fi
22155 rm -f conftest.err conftest.$ac_objext \
22156 conftest$ac_exeext conftest.$ac_ext
22157 CFLAGS="$ac_save_CFLAGS"
22158 LIBS="$ac_save_LIBS"
22159 fi
22160 fi
22161 GTK_CFLAGS=""
22162 GTK_LIBS=""
22163 :
22164 fi
22165
22166
22167 rm -f conf.gtktest
22168
22169 else
22170
22171 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22172 if test "${with_gtk_prefix+set}" = set; then
22173 withval="$with_gtk_prefix"
22174 gtk_config_prefix="$withval"
22175 else
22176 gtk_config_prefix=""
22177 fi;
22178
22179 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22180 if test "${with_gtk_exec_prefix+set}" = set; then
22181 withval="$with_gtk_exec_prefix"
22182 gtk_config_exec_prefix="$withval"
22183 else
22184 gtk_config_exec_prefix=""
22185 fi;
22186 # Check whether --enable-gtktest or --disable-gtktest was given.
22187 if test "${enable_gtktest+set}" = set; then
22188 enableval="$enable_gtktest"
22189
22190 else
22191 enable_gtktest=yes
22192 fi;
22193
22194 for module in . $GTK_MODULES
22195 do
22196 case "$module" in
22197 gthread)
22198 gtk_config_args="$gtk_config_args gthread"
22199 ;;
22200 esac
22201 done
22202
22203 if test x$gtk_config_exec_prefix != x ; then
22204 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22205 if test x${GTK_CONFIG+set} != xset ; then
22206 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22207 fi
22208 fi
22209 if test x$gtk_config_prefix != x ; then
22210 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22211 if test x${GTK_CONFIG+set} != xset ; then
22212 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22213 fi
22214 fi
22215
22216 # Extract the first word of "gtk-config", so it can be a program name with args.
22217 set dummy gtk-config; ac_word=$2
22218 echo "$as_me:$LINENO: checking for $ac_word" >&5
22219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22220 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223 case $GTK_CONFIG in
22224 [\\/]* | ?:[\\/]*)
22225 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22226 ;;
22227 *)
22228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22229 for as_dir in $PATH
22230 do
22231 IFS=$as_save_IFS
22232 test -z "$as_dir" && as_dir=.
22233 for ac_exec_ext in '' $ac_executable_extensions; do
22234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22235 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22237 break 2
22238 fi
22239 done
22240 done
22241
22242 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22243 ;;
22244 esac
22245 fi
22246 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22247
22248 if test -n "$GTK_CONFIG"; then
22249 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22250 echo "${ECHO_T}$GTK_CONFIG" >&6
22251 else
22252 echo "$as_me:$LINENO: result: no" >&5
22253 echo "${ECHO_T}no" >&6
22254 fi
22255
22256 min_gtk_version=1.2.7
22257 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22258 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22259 no_gtk=""
22260 if test "$GTK_CONFIG" = "no" ; then
22261 no_gtk=yes
22262 else
22263 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22264 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22265 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22266 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22267 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22268 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22269 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22270 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22271 if test "x$enable_gtktest" = "xyes" ; then
22272 ac_save_CFLAGS="$CFLAGS"
22273 ac_save_LIBS="$LIBS"
22274 CFLAGS="$CFLAGS $GTK_CFLAGS"
22275 LIBS="$GTK_LIBS $LIBS"
22276 rm -f conf.gtktest
22277 if test "$cross_compiling" = yes; then
22278 echo $ac_n "cross compiling; assumed OK... $ac_c"
22279 else
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h. */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286
22287 #include <gtk/gtk.h>
22288 #include <stdio.h>
22289 #include <stdlib.h>
22290
22291 int
22292 main ()
22293 {
22294 int major, minor, micro;
22295 char *tmp_version;
22296
22297 system ("touch conf.gtktest");
22298
22299 /* HP/UX 9 (%@#!) writes to sscanf strings */
22300 tmp_version = g_strdup("$min_gtk_version");
22301 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22302 printf("%s, bad version string\n", "$min_gtk_version");
22303 exit(1);
22304 }
22305
22306 if ((gtk_major_version != $gtk_config_major_version) ||
22307 (gtk_minor_version != $gtk_config_minor_version) ||
22308 (gtk_micro_version != $gtk_config_micro_version))
22309 {
22310 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22311 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22312 gtk_major_version, gtk_minor_version, gtk_micro_version);
22313 printf ("*** was found! If gtk-config was correct, then it is best\n");
22314 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22315 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22316 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22317 printf("*** required on your system.\n");
22318 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22319 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22320 printf("*** before re-running configure\n");
22321 }
22322 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22323 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22324 (gtk_minor_version != GTK_MINOR_VERSION) ||
22325 (gtk_micro_version != GTK_MICRO_VERSION))
22326 {
22327 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22328 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22329 printf("*** library (version %d.%d.%d)\n",
22330 gtk_major_version, gtk_minor_version, gtk_micro_version);
22331 }
22332 #endif /* defined (GTK_MAJOR_VERSION) ... */
22333 else
22334 {
22335 if ((gtk_major_version > major) ||
22336 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22337 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22338 {
22339 return 0;
22340 }
22341 else
22342 {
22343 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22344 gtk_major_version, gtk_minor_version, gtk_micro_version);
22345 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22346 major, minor, micro);
22347 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22348 printf("***\n");
22349 printf("*** If you have already installed a sufficiently new version, this error\n");
22350 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22351 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22352 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22353 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22354 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22355 printf("*** so that the correct libraries are found at run-time))\n");
22356 }
22357 }
22358 return 1;
22359 }
22360
22361 _ACEOF
22362 rm -f conftest$ac_exeext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22364 (eval $ac_link) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 :
22374 else
22375 echo "$as_me: program exited with status $ac_status" >&5
22376 echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22378
22379 ( exit $ac_status )
22380 no_gtk=yes
22381 fi
22382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22383 fi
22384 CFLAGS="$ac_save_CFLAGS"
22385 LIBS="$ac_save_LIBS"
22386 fi
22387 fi
22388 if test "x$no_gtk" = x ; then
22389 echo "$as_me:$LINENO: result: yes" >&5
22390 echo "${ECHO_T}yes" >&6
22391 wx_cv_lib_gtk=1.2.7
22392 else
22393 echo "$as_me:$LINENO: result: no" >&5
22394 echo "${ECHO_T}no" >&6
22395 if test "$GTK_CONFIG" = "no" ; then
22396 echo "*** The gtk-config script installed by GTK could not be found"
22397 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22398 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22399 echo "*** full path to gtk-config."
22400 else
22401 if test -f conf.gtktest ; then
22402 :
22403 else
22404 echo "*** Could not run GTK test program, checking why..."
22405 CFLAGS="$CFLAGS $GTK_CFLAGS"
22406 LIBS="$LIBS $GTK_LIBS"
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h. */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413
22414 #include <gtk/gtk.h>
22415 #include <stdio.h>
22416
22417 int
22418 main ()
22419 {
22420 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22421 ;
22422 return 0;
22423 }
22424 _ACEOF
22425 rm -f conftest.$ac_objext conftest$ac_exeext
22426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22427 (eval $ac_link) 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } &&
22434 { ac_try='test -z "$ac_c_werror_flag"
22435 || test ! -s conftest.err'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; } &&
22441 { ac_try='test -s conftest$ac_exeext'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }; then
22447 echo "*** The test program compiled, but did not run. This usually means"
22448 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22449 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22450 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22451 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22452 echo "*** is required on your system"
22453 echo "***"
22454 echo "*** If you have an old version installed, it is best to remove it, although"
22455 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22456 echo "***"
22457 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22458 echo "*** came with the system with the command"
22459 echo "***"
22460 echo "*** rpm --erase --nodeps gtk gtk-devel"
22461 else
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465 echo "*** The test program failed to compile or link. See the file config.log for the"
22466 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22467 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22468 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22469 fi
22470 rm -f conftest.err conftest.$ac_objext \
22471 conftest$ac_exeext conftest.$ac_ext
22472 CFLAGS="$ac_save_CFLAGS"
22473 LIBS="$ac_save_LIBS"
22474 fi
22475 fi
22476 GTK_CFLAGS=""
22477 GTK_LIBS=""
22478 :
22479 fi
22480
22481
22482 rm -f conf.gtktest
22483
22484
22485 if test -z "$wx_cv_lib_gtk"; then
22486
22487 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22488 if test "${with_gtk_prefix+set}" = set; then
22489 withval="$with_gtk_prefix"
22490 gtk_config_prefix="$withval"
22491 else
22492 gtk_config_prefix=""
22493 fi;
22494
22495 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22496 if test "${with_gtk_exec_prefix+set}" = set; then
22497 withval="$with_gtk_exec_prefix"
22498 gtk_config_exec_prefix="$withval"
22499 else
22500 gtk_config_exec_prefix=""
22501 fi;
22502 # Check whether --enable-gtktest or --disable-gtktest was given.
22503 if test "${enable_gtktest+set}" = set; then
22504 enableval="$enable_gtktest"
22505
22506 else
22507 enable_gtktest=yes
22508 fi;
22509
22510 for module in . $GTK_MODULES
22511 do
22512 case "$module" in
22513 gthread)
22514 gtk_config_args="$gtk_config_args gthread"
22515 ;;
22516 esac
22517 done
22518
22519 if test x$gtk_config_exec_prefix != x ; then
22520 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22521 if test x${GTK_CONFIG+set} != xset ; then
22522 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22523 fi
22524 fi
22525 if test x$gtk_config_prefix != x ; then
22526 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22527 if test x${GTK_CONFIG+set} != xset ; then
22528 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22529 fi
22530 fi
22531
22532 # Extract the first word of "gtk-config", so it can be a program name with args.
22533 set dummy gtk-config; ac_word=$2
22534 echo "$as_me:$LINENO: checking for $ac_word" >&5
22535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22536 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539 case $GTK_CONFIG in
22540 [\\/]* | ?:[\\/]*)
22541 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22542 ;;
22543 *)
22544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22545 for as_dir in $PATH
22546 do
22547 IFS=$as_save_IFS
22548 test -z "$as_dir" && as_dir=.
22549 for ac_exec_ext in '' $ac_executable_extensions; do
22550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22551 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22553 break 2
22554 fi
22555 done
22556 done
22557
22558 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22559 ;;
22560 esac
22561 fi
22562 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22563
22564 if test -n "$GTK_CONFIG"; then
22565 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22566 echo "${ECHO_T}$GTK_CONFIG" >&6
22567 else
22568 echo "$as_me:$LINENO: result: no" >&5
22569 echo "${ECHO_T}no" >&6
22570 fi
22571
22572 min_gtk_version=1.2.3
22573 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22574 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22575 no_gtk=""
22576 if test "$GTK_CONFIG" = "no" ; then
22577 no_gtk=yes
22578 else
22579 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22580 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22581 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22583 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22584 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22585 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22586 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22587 if test "x$enable_gtktest" = "xyes" ; then
22588 ac_save_CFLAGS="$CFLAGS"
22589 ac_save_LIBS="$LIBS"
22590 CFLAGS="$CFLAGS $GTK_CFLAGS"
22591 LIBS="$GTK_LIBS $LIBS"
22592 rm -f conf.gtktest
22593 if test "$cross_compiling" = yes; then
22594 echo $ac_n "cross compiling; assumed OK... $ac_c"
22595 else
22596 cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h. */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602
22603 #include <gtk/gtk.h>
22604 #include <stdio.h>
22605 #include <stdlib.h>
22606
22607 int
22608 main ()
22609 {
22610 int major, minor, micro;
22611 char *tmp_version;
22612
22613 system ("touch conf.gtktest");
22614
22615 /* HP/UX 9 (%@#!) writes to sscanf strings */
22616 tmp_version = g_strdup("$min_gtk_version");
22617 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22618 printf("%s, bad version string\n", "$min_gtk_version");
22619 exit(1);
22620 }
22621
22622 if ((gtk_major_version != $gtk_config_major_version) ||
22623 (gtk_minor_version != $gtk_config_minor_version) ||
22624 (gtk_micro_version != $gtk_config_micro_version))
22625 {
22626 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22627 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22628 gtk_major_version, gtk_minor_version, gtk_micro_version);
22629 printf ("*** was found! If gtk-config was correct, then it is best\n");
22630 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22631 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22632 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22633 printf("*** required on your system.\n");
22634 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22635 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22636 printf("*** before re-running configure\n");
22637 }
22638 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22639 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22640 (gtk_minor_version != GTK_MINOR_VERSION) ||
22641 (gtk_micro_version != GTK_MICRO_VERSION))
22642 {
22643 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22644 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22645 printf("*** library (version %d.%d.%d)\n",
22646 gtk_major_version, gtk_minor_version, gtk_micro_version);
22647 }
22648 #endif /* defined (GTK_MAJOR_VERSION) ... */
22649 else
22650 {
22651 if ((gtk_major_version > major) ||
22652 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22653 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22654 {
22655 return 0;
22656 }
22657 else
22658 {
22659 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22660 gtk_major_version, gtk_minor_version, gtk_micro_version);
22661 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22662 major, minor, micro);
22663 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22664 printf("***\n");
22665 printf("*** If you have already installed a sufficiently new version, this error\n");
22666 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22667 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22668 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22669 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22670 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22671 printf("*** so that the correct libraries are found at run-time))\n");
22672 }
22673 }
22674 return 1;
22675 }
22676
22677 _ACEOF
22678 rm -f conftest$ac_exeext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22680 (eval $ac_link) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 :
22690 else
22691 echo "$as_me: program exited with status $ac_status" >&5
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 ( exit $ac_status )
22696 no_gtk=yes
22697 fi
22698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22699 fi
22700 CFLAGS="$ac_save_CFLAGS"
22701 LIBS="$ac_save_LIBS"
22702 fi
22703 fi
22704 if test "x$no_gtk" = x ; then
22705 echo "$as_me:$LINENO: result: yes" >&5
22706 echo "${ECHO_T}yes" >&6
22707 wx_cv_lib_gtk=1.2.3
22708 else
22709 echo "$as_me:$LINENO: result: no" >&5
22710 echo "${ECHO_T}no" >&6
22711 if test "$GTK_CONFIG" = "no" ; then
22712 echo "*** The gtk-config script installed by GTK could not be found"
22713 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22714 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22715 echo "*** full path to gtk-config."
22716 else
22717 if test -f conf.gtktest ; then
22718 :
22719 else
22720 echo "*** Could not run GTK test program, checking why..."
22721 CFLAGS="$CFLAGS $GTK_CFLAGS"
22722 LIBS="$LIBS $GTK_LIBS"
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729
22730 #include <gtk/gtk.h>
22731 #include <stdio.h>
22732
22733 int
22734 main ()
22735 {
22736 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22737 ;
22738 return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext conftest$ac_exeext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22743 (eval $ac_link) 2>conftest.er1
22744 ac_status=$?
22745 grep -v '^ *+' conftest.er1 >conftest.err
22746 rm -f conftest.er1
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -z "$ac_c_werror_flag"
22751 || test ! -s conftest.err'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest$ac_exeext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 echo "*** The test program compiled, but did not run. This usually means"
22764 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22765 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22766 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22767 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22768 echo "*** is required on your system"
22769 echo "***"
22770 echo "*** If you have an old version installed, it is best to remove it, although"
22771 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22772 echo "***"
22773 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22774 echo "*** came with the system with the command"
22775 echo "***"
22776 echo "*** rpm --erase --nodeps gtk gtk-devel"
22777 else
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781 echo "*** The test program failed to compile or link. See the file config.log for the"
22782 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22783 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22784 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22785 fi
22786 rm -f conftest.err conftest.$ac_objext \
22787 conftest$ac_exeext conftest.$ac_ext
22788 CFLAGS="$ac_save_CFLAGS"
22789 LIBS="$ac_save_LIBS"
22790 fi
22791 fi
22792 GTK_CFLAGS=""
22793 GTK_LIBS=""
22794 :
22795 fi
22796
22797
22798 rm -f conf.gtktest
22799
22800 fi
22801 fi
22802
22803 if test -z "$wx_cv_lib_gtk"; then
22804 wx_cv_lib_gtk=none
22805 else
22806 wx_cv_cflags_gtk=$GTK_CFLAGS
22807 wx_cv_libs_gtk=$GTK_LIBS
22808 fi
22809
22810
22811 fi
22812
22813
22814 if test "$gtk_version_cached" = 1; then
22815 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22816 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22817 fi
22818
22819 case "$wx_cv_lib_gtk" in
22820 2.0) WXGTK20=1
22821 TOOLKIT_VERSION=2
22822 ;;
22823 1.2.7) WXGTK127=1
22824 WXGTK12=1
22825 ;;
22826 1.2.3) WXGTK12=1
22827 ;;
22828 *) { { echo "$as_me:$LINENO: error:
22829 Please check that gtk-config is in path, the directory
22830 where GTK+ libraries are installed (returned by
22831 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22832 equivalent variable and GTK+ is version 1.2.3 or above.
22833 " >&5
22834 echo "$as_me: error:
22835 Please check that gtk-config is in path, the directory
22836 where GTK+ libraries are installed (returned by
22837 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22838 equivalent variable and GTK+ is version 1.2.3 or above.
22839 " >&2;}
22840 { (exit 1); exit 1; }; }
22841 ;;
22842 esac
22843
22844 if test "$WXGTK20" = 1; then
22845 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22846
22847 succeeded=no
22848
22849 if test -z "$PKG_CONFIG"; then
22850 # Extract the first word of "pkg-config", so it can be a program name with args.
22851 set dummy pkg-config; ac_word=$2
22852 echo "$as_me:$LINENO: checking for $ac_word" >&5
22853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22854 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857 case $PKG_CONFIG in
22858 [\\/]* | ?:[\\/]*)
22859 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22860 ;;
22861 *)
22862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22863 for as_dir in $PATH
22864 do
22865 IFS=$as_save_IFS
22866 test -z "$as_dir" && as_dir=.
22867 for ac_exec_ext in '' $ac_executable_extensions; do
22868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22869 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22871 break 2
22872 fi
22873 done
22874 done
22875
22876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22877 ;;
22878 esac
22879 fi
22880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22881
22882 if test -n "$PKG_CONFIG"; then
22883 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22884 echo "${ECHO_T}$PKG_CONFIG" >&6
22885 else
22886 echo "$as_me:$LINENO: result: no" >&5
22887 echo "${ECHO_T}no" >&6
22888 fi
22889
22890 fi
22891
22892 if test "$PKG_CONFIG" = "no" ; then
22893 echo "*** The pkg-config script could not be found. Make sure it is"
22894 echo "*** in your path, or set the PKG_CONFIG environment variable"
22895 echo "*** to the full path to pkg-config."
22896 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22897 else
22898 PKG_CONFIG_MIN_VERSION=0.9.0
22899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22900 echo "$as_me:$LINENO: checking for pangoft2" >&5
22901 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22902
22903 if $PKG_CONFIG --exists "pangoft2" ; then
22904 echo "$as_me:$LINENO: result: yes" >&5
22905 echo "${ECHO_T}yes" >&6
22906 succeeded=yes
22907
22908 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22909 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22910 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22911 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22912 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22913
22914 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22915 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22916 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22917 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22918 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22919 else
22920 PANGOFT2_CFLAGS=""
22921 PANGOFT2_LIBS=""
22922 ## If we have a custom action on failure, don't print errors, but
22923 ## do set a variable so people can do so.
22924 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22925
22926 fi
22927
22928
22929
22930 else
22931 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22932 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22933 fi
22934 fi
22935
22936 if test $succeeded = yes; then
22937
22938 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22939 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22940
22941 else
22942
22943 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22944 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22945 wxUSE_PRINTING_ARCHITECTURE="no"
22946
22947
22948 fi
22949
22950 fi
22951 else
22952 if test "$wxUSE_UNICODE" = "yes"; then
22953 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22954 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22955 wxUSE_UNICODE=no
22956 fi
22957 fi
22958
22959 if test "$USE_DARWIN" != 1; then
22960
22961 for ac_func in poll
22962 do
22963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22964 echo "$as_me:$LINENO: checking for $ac_func" >&5
22965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22966 if eval "test \"\${$as_ac_var+set}\" = set"; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 else
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h. */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22977 #define $ac_func innocuous_$ac_func
22978
22979 /* System header to define __stub macros and hopefully few prototypes,
22980 which can conflict with char $ac_func (); below.
22981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22982 <limits.h> exists even on freestanding compilers. */
22983
22984 #ifdef __STDC__
22985 # include <limits.h>
22986 #else
22987 # include <assert.h>
22988 #endif
22989
22990 #undef $ac_func
22991
22992 /* Override any gcc2 internal prototype to avoid an error. */
22993 #ifdef __cplusplus
22994 extern "C"
22995 {
22996 #endif
22997 /* We use char because int might match the return type of a gcc2
22998 builtin and then its argument prototype would still apply. */
22999 char $ac_func ();
23000 /* The GNU C library defines this for functions which it implements
23001 to always fail with ENOSYS. Some functions are actually named
23002 something starting with __ and the normal name is an alias. */
23003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23004 choke me
23005 #else
23006 char (*f) () = $ac_func;
23007 #endif
23008 #ifdef __cplusplus
23009 }
23010 #endif
23011
23012 int
23013 main ()
23014 {
23015 return f != $ac_func;
23016 ;
23017 return 0;
23018 }
23019 _ACEOF
23020 rm -f conftest.$ac_objext conftest$ac_exeext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022 (eval $ac_link) 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -z "$ac_c_werror_flag"
23030 || test ! -s conftest.err'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; } &&
23036 { ac_try='test -s conftest$ac_exeext'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 eval "$as_ac_var=yes"
23043 else
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047 eval "$as_ac_var=no"
23048 fi
23049 rm -f conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
23051 fi
23052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23054 if test `eval echo '${'$as_ac_var'}'` = yes; then
23055 cat >>confdefs.h <<_ACEOF
23056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23057 _ACEOF
23058
23059 fi
23060 done
23061
23062 fi
23063
23064 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23065 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23066
23067 AFMINSTALL=afminstall
23068 TOOLKIT=GTK
23069 GUIDIST=GTK_DIST
23070
23071 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23072 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23073 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 else
23076 ac_check_lib_save_LIBS=$LIBS
23077 LIBS="-lgdk $LIBS"
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084
23085 /* Override any gcc2 internal prototype to avoid an error. */
23086 #ifdef __cplusplus
23087 extern "C"
23088 #endif
23089 /* We use char because int might match the return type of a gcc2
23090 builtin and then its argument prototype would still apply. */
23091 char gdk_im_open ();
23092 int
23093 main ()
23094 {
23095 gdk_im_open ();
23096 ;
23097 return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext conftest$ac_exeext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23102 (eval $ac_link) 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } &&
23109 { ac_try='test -z "$ac_c_werror_flag"
23110 || test ! -s conftest.err'
23111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23113 ac_status=$?
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; } &&
23116 { ac_try='test -s conftest$ac_exeext'
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; }; then
23122 ac_cv_lib_gdk_gdk_im_open=yes
23123 else
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127 ac_cv_lib_gdk_gdk_im_open=no
23128 fi
23129 rm -f conftest.err conftest.$ac_objext \
23130 conftest$ac_exeext conftest.$ac_ext
23131 LIBS=$ac_check_lib_save_LIBS
23132 fi
23133 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23134 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23135 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23136 cat >>confdefs.h <<\_ACEOF
23137 #define HAVE_XIM 1
23138 _ACEOF
23139
23140 fi
23141
23142
23143
23144 if test "$wxUSE_GPE" = "yes"; then
23145 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23146 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23147
23148 ac_find_libraries=
23149 for ac_dir in $SEARCH_LIB /usr/lib;
23150 do
23151 for ac_extension in a so sl dylib; do
23152 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23153 ac_find_libraries=$ac_dir
23154 break 2
23155 fi
23156 done
23157 done
23158
23159 if test "$ac_find_libraries" != "" ; then
23160
23161 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23162 result=$?
23163 if test $result = 0; then
23164 ac_path_to_link=""
23165 else
23166 ac_path_to_link=" -L$ac_find_libraries"
23167 fi
23168
23169 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23170 WXGPE=1
23171 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23172 echo "${ECHO_T}found at $ac_find_libraries" >&6
23173 else
23174 echo "$as_me:$LINENO: result: not found" >&5
23175 echo "${ECHO_T}not found" >&6
23176 fi
23177
23178 fi
23179 fi
23180
23181 if test "$wxUSE_MGL" = 1; then
23182 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23183 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23184 if test "x$MGL_ROOT" = x ; then
23185 echo "$as_me:$LINENO: result: not found" >&5
23186 echo "${ECHO_T}not found" >&6
23187 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23188 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23189 { (exit 1); exit 1; }; }
23190 else
23191 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23192 echo "${ECHO_T}$MGL_ROOT" >&6
23193 fi
23194
23195 echo "$as_me:$LINENO: checking for libmgl location" >&5
23196 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23197 case "${host}" in
23198 *-*-linux* )
23199 if test "x$wxUSE_SHARED" = xyes ; then
23200 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23201 else
23202 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23203 fi
23204 ;;
23205 *-pc-msdosdjgpp )
23206 mgl_os_candidates="dos32/dj2"
23207 ;;
23208 *)
23209 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23210 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23211 { (exit 1); exit 1; }; }
23212 esac
23213
23214 mgl_lib_type=""
23215 mgl_os=""
23216
23217 for mgl_os_i in $mgl_os_candidates ; do
23218 if test "x$mgl_os" = x ; then
23219 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23220 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23221 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23222 mgl_lib_type=debug
23223 mgl_os=$mgl_os_i
23224 fi
23225 fi
23226 if test "x$mgl_lib_type" = x ; then
23227 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23228 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23229 mgl_lib_type=release
23230 mgl_os=$mgl_os_i
23231 fi
23232 fi
23233 fi
23234 done
23235
23236 if test "x$mgl_os" = x ; then
23237 echo "$as_me:$LINENO: result: not found" >&5
23238 echo "${ECHO_T}not found" >&6
23239 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23240 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23241 { (exit 1); exit 1; }; }
23242 fi
23243 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23244 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23245
23246 wxUSE_UNIVERSAL="yes"
23247
23248 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23249 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23250
23251 AFMINSTALL=afminstall
23252 TOOLKIT=MGL
23253 GUIDIST=MGL_DIST
23254 fi
23255
23256 if test "$wxUSE_MICROWIN" = 1; then
23257 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23258 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23259 if test "x$MICROWINDOWS" = x ; then
23260 echo "$as_me:$LINENO: result: not found" >&5
23261 echo "${ECHO_T}not found" >&6
23262 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23263 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23264 { (exit 1); exit 1; }; }
23265 else
23266 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23267 echo "${ECHO_T}$MICROWINDOWS" >&6
23268 fi
23269
23270 if test -f $MICROWINDOWS/lib/libmwin.a; then
23271 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23272 echo "${ECHO_T}MicroWindows' libraries found." >&6
23273 else
23274 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23275 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23276 { (exit 1); exit 1; }; }
23277 fi
23278
23279 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23280 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23281
23282 wxUSE_UNIVERSAL="yes"
23283
23284 AFMINSTALL=afminstall
23285 TOOLKIT=MICROWIN
23286 GUIDIST=MICROWIN_DIST
23287
23288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23289 fi
23290
23291 if test "$wxUSE_X11" = 1; then
23292 echo "$as_me:$LINENO: checking for X" >&5
23293 echo $ECHO_N "checking for X... $ECHO_C" >&6
23294
23295
23296 # Check whether --with-x or --without-x was given.
23297 if test "${with_x+set}" = set; then
23298 withval="$with_x"
23299
23300 fi;
23301 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23302 if test "x$with_x" = xno; then
23303 # The user explicitly disabled X.
23304 have_x=disabled
23305 else
23306 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23307 # Both variables are already set.
23308 have_x=yes
23309 else
23310 if test "${ac_cv_have_x+set}" = set; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313 # One or both of the vars are not set, and there is no cached value.
23314 ac_x_includes=no ac_x_libraries=no
23315 rm -fr conftest.dir
23316 if mkdir conftest.dir; then
23317 cd conftest.dir
23318 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23319 cat >Imakefile <<'_ACEOF'
23320 acfindx:
23321 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23322 _ACEOF
23323 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23325 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23326 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23327 for ac_extension in a so sl; do
23328 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23329 test -f $ac_im_libdir/libX11.$ac_extension; then
23330 ac_im_usrlibdir=$ac_im_libdir; break
23331 fi
23332 done
23333 # Screen out bogus values from the imake configuration. They are
23334 # bogus both because they are the default anyway, and because
23335 # using them would break gcc on systems where it needs fixed includes.
23336 case $ac_im_incroot in
23337 /usr/include) ;;
23338 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23339 esac
23340 case $ac_im_usrlibdir in
23341 /usr/lib | /lib) ;;
23342 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23343 esac
23344 fi
23345 cd ..
23346 rm -fr conftest.dir
23347 fi
23348
23349 # Standard set of common directories for X headers.
23350 # Check X11 before X11Rn because it is often a symlink to the current release.
23351 ac_x_header_dirs='
23352 /usr/X11/include
23353 /usr/X11R6/include
23354 /usr/X11R5/include
23355 /usr/X11R4/include
23356
23357 /usr/include/X11
23358 /usr/include/X11R6
23359 /usr/include/X11R5
23360 /usr/include/X11R4
23361
23362 /usr/local/X11/include
23363 /usr/local/X11R6/include
23364 /usr/local/X11R5/include
23365 /usr/local/X11R4/include
23366
23367 /usr/local/include/X11
23368 /usr/local/include/X11R6
23369 /usr/local/include/X11R5
23370 /usr/local/include/X11R4
23371
23372 /usr/X386/include
23373 /usr/x386/include
23374 /usr/XFree86/include/X11
23375
23376 /usr/include
23377 /usr/local/include
23378 /usr/unsupported/include
23379 /usr/athena/include
23380 /usr/local/x11r5/include
23381 /usr/lpp/Xamples/include
23382
23383 /usr/openwin/include
23384 /usr/openwin/share/include'
23385
23386 if test "$ac_x_includes" = no; then
23387 # Guess where to find include files, by looking for Intrinsic.h.
23388 # First, try using that file with no special directory specified.
23389 cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h. */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 #include <X11/Intrinsic.h>
23396 _ACEOF
23397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23399 ac_status=$?
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } >/dev/null; then
23405 if test -s conftest.err; then
23406 ac_cpp_err=$ac_c_preproc_warn_flag
23407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23408 else
23409 ac_cpp_err=
23410 fi
23411 else
23412 ac_cpp_err=yes
23413 fi
23414 if test -z "$ac_cpp_err"; then
23415 # We can compile using X headers with no special include directory.
23416 ac_x_includes=
23417 else
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23420
23421 for ac_dir in $ac_x_header_dirs; do
23422 if test -r "$ac_dir/X11/Intrinsic.h"; then
23423 ac_x_includes=$ac_dir
23424 break
23425 fi
23426 done
23427 fi
23428 rm -f conftest.err conftest.$ac_ext
23429 fi # $ac_x_includes = no
23430
23431 if test "$ac_x_libraries" = no; then
23432 # Check for the libraries.
23433 # See if we find them without any special options.
23434 # Don't add to $LIBS permanently.
23435 ac_save_LIBS=$LIBS
23436 LIBS="-lXt $LIBS"
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 #include <X11/Intrinsic.h>
23444 int
23445 main ()
23446 {
23447 XtMalloc (0)
23448 ;
23449 return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext conftest$ac_exeext
23453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454 (eval $ac_link) 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
23461 { ac_try='test -z "$ac_c_werror_flag"
23462 || test ! -s conftest.err'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } &&
23468 { ac_try='test -s conftest$ac_exeext'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; }; then
23474 LIBS=$ac_save_LIBS
23475 # We can link X programs with no special library path.
23476 ac_x_libraries=
23477 else
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23480
23481 LIBS=$ac_save_LIBS
23482 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23483 do
23484 # Don't even attempt the hair of trying to link an X program!
23485 for ac_extension in a so sl; do
23486 if test -r $ac_dir/libXt.$ac_extension; then
23487 ac_x_libraries=$ac_dir
23488 break 2
23489 fi
23490 done
23491 done
23492 fi
23493 rm -f conftest.err conftest.$ac_objext \
23494 conftest$ac_exeext conftest.$ac_ext
23495 fi # $ac_x_libraries = no
23496
23497 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23498 # Didn't find X anywhere. Cache the known absence of X.
23499 ac_cv_have_x="have_x=no"
23500 else
23501 # Record where we found X for the cache.
23502 ac_cv_have_x="have_x=yes \
23503 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23504 fi
23505 fi
23506
23507 fi
23508 eval "$ac_cv_have_x"
23509 fi # $with_x != no
23510
23511 if test "$have_x" != yes; then
23512 echo "$as_me:$LINENO: result: $have_x" >&5
23513 echo "${ECHO_T}$have_x" >&6
23514 no_x=yes
23515 else
23516 # If each of the values was on the command line, it overrides each guess.
23517 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23518 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23519 # Update the cache value to reflect the command line values.
23520 ac_cv_have_x="have_x=yes \
23521 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23522 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23523 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23524 fi
23525
23526 if test "$no_x" = yes; then
23527 # Not all programs may use this symbol, but it does not hurt to define it.
23528
23529 cat >>confdefs.h <<\_ACEOF
23530 #define X_DISPLAY_MISSING 1
23531 _ACEOF
23532
23533 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23534 else
23535 if test -n "$x_includes"; then
23536 X_CFLAGS="$X_CFLAGS -I$x_includes"
23537 fi
23538
23539 # It would also be nice to do this for all -L options, not just this one.
23540 if test -n "$x_libraries"; then
23541 X_LIBS="$X_LIBS -L$x_libraries"
23542 # For Solaris; some versions of Sun CC require a space after -R and
23543 # others require no space. Words are not sufficient . . . .
23544 case `(uname -sr) 2>/dev/null` in
23545 "SunOS 5"*)
23546 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23547 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23548 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h. */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555
23556 int
23557 main ()
23558 {
23559
23560 ;
23561 return 0;
23562 }
23563 _ACEOF
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23566 (eval $ac_link) 2>conftest.er1
23567 ac_status=$?
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } &&
23573 { ac_try='test -z "$ac_c_werror_flag"
23574 || test ! -s conftest.err'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; } &&
23580 { ac_try='test -s conftest$ac_exeext'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_R_nospace=yes
23587 else
23588 echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23590
23591 ac_R_nospace=no
23592 fi
23593 rm -f conftest.err conftest.$ac_objext \
23594 conftest$ac_exeext conftest.$ac_ext
23595 if test $ac_R_nospace = yes; then
23596 echo "$as_me:$LINENO: result: no" >&5
23597 echo "${ECHO_T}no" >&6
23598 X_LIBS="$X_LIBS -R$x_libraries"
23599 else
23600 LIBS="$ac_xsave_LIBS -R $x_libraries"
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h. */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607
23608 int
23609 main ()
23610 {
23611
23612 ;
23613 return 0;
23614 }
23615 _ACEOF
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23618 (eval $ac_link) 2>conftest.er1
23619 ac_status=$?
23620 grep -v '^ *+' conftest.er1 >conftest.err
23621 rm -f conftest.er1
23622 cat conftest.err >&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } &&
23625 { ac_try='test -z "$ac_c_werror_flag"
23626 || test ! -s conftest.err'
23627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628 (eval $ac_try) 2>&5
23629 ac_status=$?
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; } &&
23632 { ac_try='test -s conftest$ac_exeext'
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; }; then
23638 ac_R_space=yes
23639 else
23640 echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 ac_R_space=no
23644 fi
23645 rm -f conftest.err conftest.$ac_objext \
23646 conftest$ac_exeext conftest.$ac_ext
23647 if test $ac_R_space = yes; then
23648 echo "$as_me:$LINENO: result: yes" >&5
23649 echo "${ECHO_T}yes" >&6
23650 X_LIBS="$X_LIBS -R $x_libraries"
23651 else
23652 echo "$as_me:$LINENO: result: neither works" >&5
23653 echo "${ECHO_T}neither works" >&6
23654 fi
23655 fi
23656 LIBS=$ac_xsave_LIBS
23657 esac
23658 fi
23659
23660 # Check for system-dependent libraries X programs must link with.
23661 # Do this before checking for the system-independent R6 libraries
23662 # (-lICE), since we may need -lsocket or whatever for X linking.
23663
23664 if test "$ISC" = yes; then
23665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23666 else
23667 # Martyn Johnson says this is needed for Ultrix, if the X
23668 # libraries were built with DECnet support. And Karl Berry says
23669 # the Alpha needs dnet_stub (dnet does not exist).
23670 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23671 cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h. */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677
23678 /* Override any gcc2 internal prototype to avoid an error. */
23679 #ifdef __cplusplus
23680 extern "C"
23681 #endif
23682 /* We use char because int might match the return type of a gcc2
23683 builtin and then its argument prototype would still apply. */
23684 char XOpenDisplay ();
23685 int
23686 main ()
23687 {
23688 XOpenDisplay ();
23689 ;
23690 return 0;
23691 }
23692 _ACEOF
23693 rm -f conftest.$ac_objext conftest$ac_exeext
23694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23695 (eval $ac_link) 2>conftest.er1
23696 ac_status=$?
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } &&
23702 { ac_try='test -z "$ac_c_werror_flag"
23703 || test ! -s conftest.err'
23704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705 (eval $ac_try) 2>&5
23706 ac_status=$?
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); }; } &&
23709 { ac_try='test -s conftest$ac_exeext'
23710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23711 (eval $ac_try) 2>&5
23712 ac_status=$?
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); }; }; then
23715 :
23716 else
23717 echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23721 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23722 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23723 echo $ECHO_N "(cached) $ECHO_C" >&6
23724 else
23725 ac_check_lib_save_LIBS=$LIBS
23726 LIBS="-ldnet $LIBS"
23727 cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h. */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733
23734 /* Override any gcc2 internal prototype to avoid an error. */
23735 #ifdef __cplusplus
23736 extern "C"
23737 #endif
23738 /* We use char because int might match the return type of a gcc2
23739 builtin and then its argument prototype would still apply. */
23740 char dnet_ntoa ();
23741 int
23742 main ()
23743 {
23744 dnet_ntoa ();
23745 ;
23746 return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751 (eval $ac_link) 2>conftest.er1
23752 ac_status=$?
23753 grep -v '^ *+' conftest.er1 >conftest.err
23754 rm -f conftest.er1
23755 cat conftest.err >&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } &&
23758 { ac_try='test -z "$ac_c_werror_flag"
23759 || test ! -s conftest.err'
23760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761 (eval $ac_try) 2>&5
23762 ac_status=$?
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); }; } &&
23765 { ac_try='test -s conftest$ac_exeext'
23766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767 (eval $ac_try) 2>&5
23768 ac_status=$?
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); }; }; then
23771 ac_cv_lib_dnet_dnet_ntoa=yes
23772 else
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776 ac_cv_lib_dnet_dnet_ntoa=no
23777 fi
23778 rm -f conftest.err conftest.$ac_objext \
23779 conftest$ac_exeext conftest.$ac_ext
23780 LIBS=$ac_check_lib_save_LIBS
23781 fi
23782 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23783 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23784 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23785 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23786 fi
23787
23788 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23789 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23790 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23791 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794 ac_check_lib_save_LIBS=$LIBS
23795 LIBS="-ldnet_stub $LIBS"
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h. */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802
23803 /* Override any gcc2 internal prototype to avoid an error. */
23804 #ifdef __cplusplus
23805 extern "C"
23806 #endif
23807 /* We use char because int might match the return type of a gcc2
23808 builtin and then its argument prototype would still apply. */
23809 char dnet_ntoa ();
23810 int
23811 main ()
23812 {
23813 dnet_ntoa ();
23814 ;
23815 return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820 (eval $ac_link) 2>conftest.er1
23821 ac_status=$?
23822 grep -v '^ *+' conftest.er1 >conftest.err
23823 rm -f conftest.er1
23824 cat conftest.err >&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } &&
23827 { ac_try='test -z "$ac_c_werror_flag"
23828 || test ! -s conftest.err'
23829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23830 (eval $ac_try) 2>&5
23831 ac_status=$?
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; } &&
23834 { ac_try='test -s conftest$ac_exeext'
23835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); }; }; then
23840 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23841 else
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845 ac_cv_lib_dnet_stub_dnet_ntoa=no
23846 fi
23847 rm -f conftest.err conftest.$ac_objext \
23848 conftest$ac_exeext conftest.$ac_ext
23849 LIBS=$ac_check_lib_save_LIBS
23850 fi
23851 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23852 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23853 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23854 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23855 fi
23856
23857 fi
23858 fi
23859 rm -f conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
23861 LIBS="$ac_xsave_LIBS"
23862
23863 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23864 # to get the SysV transport functions.
23865 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23866 # needs -lnsl.
23867 # The nsl library prevents programs from opening the X display
23868 # on Irix 5.2, according to T.E. Dickey.
23869 # The functions gethostbyname, getservbyname, and inet_addr are
23870 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23871 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23872 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23873 if test "${ac_cv_func_gethostbyname+set}" = set; then
23874 echo $ECHO_N "(cached) $ECHO_C" >&6
23875 else
23876 cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h. */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23882 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23884 #define gethostbyname innocuous_gethostbyname
23885
23886 /* System header to define __stub macros and hopefully few prototypes,
23887 which can conflict with char gethostbyname (); below.
23888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23889 <limits.h> exists even on freestanding compilers. */
23890
23891 #ifdef __STDC__
23892 # include <limits.h>
23893 #else
23894 # include <assert.h>
23895 #endif
23896
23897 #undef gethostbyname
23898
23899 /* Override any gcc2 internal prototype to avoid an error. */
23900 #ifdef __cplusplus
23901 extern "C"
23902 {
23903 #endif
23904 /* We use char because int might match the return type of a gcc2
23905 builtin and then its argument prototype would still apply. */
23906 char gethostbyname ();
23907 /* The GNU C library defines this for functions which it implements
23908 to always fail with ENOSYS. Some functions are actually named
23909 something starting with __ and the normal name is an alias. */
23910 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23911 choke me
23912 #else
23913 char (*f) () = gethostbyname;
23914 #endif
23915 #ifdef __cplusplus
23916 }
23917 #endif
23918
23919 int
23920 main ()
23921 {
23922 return f != gethostbyname;
23923 ;
23924 return 0;
23925 }
23926 _ACEOF
23927 rm -f conftest.$ac_objext conftest$ac_exeext
23928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23929 (eval $ac_link) 2>conftest.er1
23930 ac_status=$?
23931 grep -v '^ *+' conftest.er1 >conftest.err
23932 rm -f conftest.er1
23933 cat conftest.err >&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } &&
23936 { ac_try='test -z "$ac_c_werror_flag"
23937 || test ! -s conftest.err'
23938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); }; } &&
23943 { ac_try='test -s conftest$ac_exeext'
23944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); }; }; then
23949 ac_cv_func_gethostbyname=yes
23950 else
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23953
23954 ac_cv_func_gethostbyname=no
23955 fi
23956 rm -f conftest.err conftest.$ac_objext \
23957 conftest$ac_exeext conftest.$ac_ext
23958 fi
23959 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23960 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23961
23962 if test $ac_cv_func_gethostbyname = no; then
23963 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23964 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23965 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23968 ac_check_lib_save_LIBS=$LIBS
23969 LIBS="-lnsl $LIBS"
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976
23977 /* Override any gcc2 internal prototype to avoid an error. */
23978 #ifdef __cplusplus
23979 extern "C"
23980 #endif
23981 /* We use char because int might match the return type of a gcc2
23982 builtin and then its argument prototype would still apply. */
23983 char gethostbyname ();
23984 int
23985 main ()
23986 {
23987 gethostbyname ();
23988 ;
23989 return 0;
23990 }
23991 _ACEOF
23992 rm -f conftest.$ac_objext conftest$ac_exeext
23993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23994 (eval $ac_link) 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } &&
24001 { ac_try='test -z "$ac_c_werror_flag"
24002 || test ! -s conftest.err'
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; } &&
24008 { ac_try='test -s conftest$ac_exeext'
24009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); }; }; then
24014 ac_cv_lib_nsl_gethostbyname=yes
24015 else
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24018
24019 ac_cv_lib_nsl_gethostbyname=no
24020 fi
24021 rm -f conftest.err conftest.$ac_objext \
24022 conftest$ac_exeext conftest.$ac_ext
24023 LIBS=$ac_check_lib_save_LIBS
24024 fi
24025 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24026 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24027 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24029 fi
24030
24031 if test $ac_cv_lib_nsl_gethostbyname = no; then
24032 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24033 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24034 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037 ac_check_lib_save_LIBS=$LIBS
24038 LIBS="-lbsd $LIBS"
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h. */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045
24046 /* Override any gcc2 internal prototype to avoid an error. */
24047 #ifdef __cplusplus
24048 extern "C"
24049 #endif
24050 /* We use char because int might match the return type of a gcc2
24051 builtin and then its argument prototype would still apply. */
24052 char gethostbyname ();
24053 int
24054 main ()
24055 {
24056 gethostbyname ();
24057 ;
24058 return 0;
24059 }
24060 _ACEOF
24061 rm -f conftest.$ac_objext conftest$ac_exeext
24062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24063 (eval $ac_link) 2>conftest.er1
24064 ac_status=$?
24065 grep -v '^ *+' conftest.er1 >conftest.err
24066 rm -f conftest.er1
24067 cat conftest.err >&5
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } &&
24070 { ac_try='test -z "$ac_c_werror_flag"
24071 || test ! -s conftest.err'
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; } &&
24077 { ac_try='test -s conftest$ac_exeext'
24078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079 (eval $ac_try) 2>&5
24080 ac_status=$?
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; }; then
24083 ac_cv_lib_bsd_gethostbyname=yes
24084 else
24085 echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088 ac_cv_lib_bsd_gethostbyname=no
24089 fi
24090 rm -f conftest.err conftest.$ac_objext \
24091 conftest$ac_exeext conftest.$ac_ext
24092 LIBS=$ac_check_lib_save_LIBS
24093 fi
24094 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24095 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24096 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24098 fi
24099
24100 fi
24101 fi
24102
24103 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24104 # socket/setsockopt and other routines are undefined under SCO ODT
24105 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24106 # on later versions), says Simon Leinen: it contains gethostby*
24107 # variants that don't use the name server (or something). -lsocket
24108 # must be given before -lnsl if both are needed. We assume that
24109 # if connect needs -lnsl, so does gethostbyname.
24110 echo "$as_me:$LINENO: checking for connect" >&5
24111 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24112 if test "${ac_cv_func_connect+set}" = set; then
24113 echo $ECHO_N "(cached) $ECHO_C" >&6
24114 else
24115 cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h. */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24123 #define connect innocuous_connect
24124
24125 /* System header to define __stub macros and hopefully few prototypes,
24126 which can conflict with char connect (); below.
24127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24128 <limits.h> exists even on freestanding compilers. */
24129
24130 #ifdef __STDC__
24131 # include <limits.h>
24132 #else
24133 # include <assert.h>
24134 #endif
24135
24136 #undef connect
24137
24138 /* Override any gcc2 internal prototype to avoid an error. */
24139 #ifdef __cplusplus
24140 extern "C"
24141 {
24142 #endif
24143 /* We use char because int might match the return type of a gcc2
24144 builtin and then its argument prototype would still apply. */
24145 char connect ();
24146 /* The GNU C library defines this for functions which it implements
24147 to always fail with ENOSYS. Some functions are actually named
24148 something starting with __ and the normal name is an alias. */
24149 #if defined (__stub_connect) || defined (__stub___connect)
24150 choke me
24151 #else
24152 char (*f) () = connect;
24153 #endif
24154 #ifdef __cplusplus
24155 }
24156 #endif
24157
24158 int
24159 main ()
24160 {
24161 return f != connect;
24162 ;
24163 return 0;
24164 }
24165 _ACEOF
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168 (eval $ac_link) 2>conftest.er1
24169 ac_status=$?
24170 grep -v '^ *+' conftest.er1 >conftest.err
24171 rm -f conftest.er1
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
24175 { ac_try='test -z "$ac_c_werror_flag"
24176 || test ! -s conftest.err'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24179 ac_status=$?
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; } &&
24182 { ac_try='test -s conftest$ac_exeext'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24185 ac_status=$?
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24188 ac_cv_func_connect=yes
24189 else
24190 echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24192
24193 ac_cv_func_connect=no
24194 fi
24195 rm -f conftest.err conftest.$ac_objext \
24196 conftest$ac_exeext conftest.$ac_ext
24197 fi
24198 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24199 echo "${ECHO_T}$ac_cv_func_connect" >&6
24200
24201 if test $ac_cv_func_connect = no; then
24202 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24203 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24204 if test "${ac_cv_lib_socket_connect+set}" = set; then
24205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206 else
24207 ac_check_lib_save_LIBS=$LIBS
24208 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24209 cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h. */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215
24216 /* Override any gcc2 internal prototype to avoid an error. */
24217 #ifdef __cplusplus
24218 extern "C"
24219 #endif
24220 /* We use char because int might match the return type of a gcc2
24221 builtin and then its argument prototype would still apply. */
24222 char connect ();
24223 int
24224 main ()
24225 {
24226 connect ();
24227 ;
24228 return 0;
24229 }
24230 _ACEOF
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233 (eval $ac_link) 2>conftest.er1
24234 ac_status=$?
24235 grep -v '^ *+' conftest.er1 >conftest.err
24236 rm -f conftest.er1
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
24240 { ac_try='test -z "$ac_c_werror_flag"
24241 || test ! -s conftest.err'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24244 ac_status=$?
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 ac_cv_lib_socket_connect=yes
24254 else
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24257
24258 ac_cv_lib_socket_connect=no
24259 fi
24260 rm -f conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24263 fi
24264 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24265 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24266 if test $ac_cv_lib_socket_connect = yes; then
24267 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24268 fi
24269
24270 fi
24271
24272 # Guillermo Gomez says -lposix is necessary on A/UX.
24273 echo "$as_me:$LINENO: checking for remove" >&5
24274 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24275 if test "${ac_cv_func_remove+set}" = set; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 else
24278 cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h. */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24286 #define remove innocuous_remove
24287
24288 /* System header to define __stub macros and hopefully few prototypes,
24289 which can conflict with char remove (); below.
24290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24291 <limits.h> exists even on freestanding compilers. */
24292
24293 #ifdef __STDC__
24294 # include <limits.h>
24295 #else
24296 # include <assert.h>
24297 #endif
24298
24299 #undef remove
24300
24301 /* Override any gcc2 internal prototype to avoid an error. */
24302 #ifdef __cplusplus
24303 extern "C"
24304 {
24305 #endif
24306 /* We use char because int might match the return type of a gcc2
24307 builtin and then its argument prototype would still apply. */
24308 char remove ();
24309 /* The GNU C library defines this for functions which it implements
24310 to always fail with ENOSYS. Some functions are actually named
24311 something starting with __ and the normal name is an alias. */
24312 #if defined (__stub_remove) || defined (__stub___remove)
24313 choke me
24314 #else
24315 char (*f) () = remove;
24316 #endif
24317 #ifdef __cplusplus
24318 }
24319 #endif
24320
24321 int
24322 main ()
24323 {
24324 return f != remove;
24325 ;
24326 return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24331 (eval $ac_link) 2>conftest.er1
24332 ac_status=$?
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } &&
24338 { ac_try='test -z "$ac_c_werror_flag"
24339 || test ! -s conftest.err'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24342 ac_status=$?
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; } &&
24345 { ac_try='test -s conftest$ac_exeext'
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24348 ac_status=$?
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ac_cv_func_remove=yes
24352 else
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ac_cv_func_remove=no
24357 fi
24358 rm -f conftest.err conftest.$ac_objext \
24359 conftest$ac_exeext conftest.$ac_ext
24360 fi
24361 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24362 echo "${ECHO_T}$ac_cv_func_remove" >&6
24363
24364 if test $ac_cv_func_remove = no; then
24365 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24366 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24367 if test "${ac_cv_lib_posix_remove+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24369 else
24370 ac_check_lib_save_LIBS=$LIBS
24371 LIBS="-lposix $LIBS"
24372 cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h. */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24378
24379 /* Override any gcc2 internal prototype to avoid an error. */
24380 #ifdef __cplusplus
24381 extern "C"
24382 #endif
24383 /* We use char because int might match the return type of a gcc2
24384 builtin and then its argument prototype would still apply. */
24385 char remove ();
24386 int
24387 main ()
24388 {
24389 remove ();
24390 ;
24391 return 0;
24392 }
24393 _ACEOF
24394 rm -f conftest.$ac_objext conftest$ac_exeext
24395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24396 (eval $ac_link) 2>conftest.er1
24397 ac_status=$?
24398 grep -v '^ *+' conftest.er1 >conftest.err
24399 rm -f conftest.er1
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } &&
24403 { ac_try='test -z "$ac_c_werror_flag"
24404 || test ! -s conftest.err'
24405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24407 ac_status=$?
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; } &&
24410 { ac_try='test -s conftest$ac_exeext'
24411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412 (eval $ac_try) 2>&5
24413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24416 ac_cv_lib_posix_remove=yes
24417 else
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24420
24421 ac_cv_lib_posix_remove=no
24422 fi
24423 rm -f conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
24425 LIBS=$ac_check_lib_save_LIBS
24426 fi
24427 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24428 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24429 if test $ac_cv_lib_posix_remove = yes; then
24430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24431 fi
24432
24433 fi
24434
24435 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24436 echo "$as_me:$LINENO: checking for shmat" >&5
24437 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24438 if test "${ac_cv_func_shmat+set}" = set; then
24439 echo $ECHO_N "(cached) $ECHO_C" >&6
24440 else
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h. */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24449 #define shmat innocuous_shmat
24450
24451 /* System header to define __stub macros and hopefully few prototypes,
24452 which can conflict with char shmat (); below.
24453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24454 <limits.h> exists even on freestanding compilers. */
24455
24456 #ifdef __STDC__
24457 # include <limits.h>
24458 #else
24459 # include <assert.h>
24460 #endif
24461
24462 #undef shmat
24463
24464 /* Override any gcc2 internal prototype to avoid an error. */
24465 #ifdef __cplusplus
24466 extern "C"
24467 {
24468 #endif
24469 /* We use char because int might match the return type of a gcc2
24470 builtin and then its argument prototype would still apply. */
24471 char shmat ();
24472 /* The GNU C library defines this for functions which it implements
24473 to always fail with ENOSYS. Some functions are actually named
24474 something starting with __ and the normal name is an alias. */
24475 #if defined (__stub_shmat) || defined (__stub___shmat)
24476 choke me
24477 #else
24478 char (*f) () = shmat;
24479 #endif
24480 #ifdef __cplusplus
24481 }
24482 #endif
24483
24484 int
24485 main ()
24486 {
24487 return f != shmat;
24488 ;
24489 return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24494 (eval $ac_link) 2>conftest.er1
24495 ac_status=$?
24496 grep -v '^ *+' conftest.er1 >conftest.err
24497 rm -f conftest.er1
24498 cat conftest.err >&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); } &&
24501 { ac_try='test -z "$ac_c_werror_flag"
24502 || test ! -s conftest.err'
24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24505 ac_status=$?
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); }; } &&
24508 { ac_try='test -s conftest$ac_exeext'
24509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; }; then
24514 ac_cv_func_shmat=yes
24515 else
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24518
24519 ac_cv_func_shmat=no
24520 fi
24521 rm -f conftest.err conftest.$ac_objext \
24522 conftest$ac_exeext conftest.$ac_ext
24523 fi
24524 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24525 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24526
24527 if test $ac_cv_func_shmat = no; then
24528 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24529 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24530 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 else
24533 ac_check_lib_save_LIBS=$LIBS
24534 LIBS="-lipc $LIBS"
24535 cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h. */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541
24542 /* Override any gcc2 internal prototype to avoid an error. */
24543 #ifdef __cplusplus
24544 extern "C"
24545 #endif
24546 /* We use char because int might match the return type of a gcc2
24547 builtin and then its argument prototype would still apply. */
24548 char shmat ();
24549 int
24550 main ()
24551 {
24552 shmat ();
24553 ;
24554 return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24559 (eval $ac_link) 2>conftest.er1
24560 ac_status=$?
24561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); } &&
24566 { ac_try='test -z "$ac_c_werror_flag"
24567 || test ! -s conftest.err'
24568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24569 (eval $ac_try) 2>&5
24570 ac_status=$?
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); }; } &&
24573 { ac_try='test -s conftest$ac_exeext'
24574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24575 (eval $ac_try) 2>&5
24576 ac_status=$?
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); }; }; then
24579 ac_cv_lib_ipc_shmat=yes
24580 else
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24583
24584 ac_cv_lib_ipc_shmat=no
24585 fi
24586 rm -f conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
24588 LIBS=$ac_check_lib_save_LIBS
24589 fi
24590 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24591 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24592 if test $ac_cv_lib_ipc_shmat = yes; then
24593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24594 fi
24595
24596 fi
24597 fi
24598
24599 # Check for libraries that X11R6 Xt/Xaw programs need.
24600 ac_save_LDFLAGS=$LDFLAGS
24601 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24602 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24603 # check for ICE first), but we must link in the order -lSM -lICE or
24604 # we get undefined symbols. So assume we have SM if we have ICE.
24605 # These have to be linked with before -lX11, unlike the other
24606 # libraries we check for below, so use a different variable.
24607 # John Interrante, Karl Berry
24608 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24609 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24610 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613 ac_check_lib_save_LIBS=$LIBS
24614 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24615 cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h. */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621
24622 /* Override any gcc2 internal prototype to avoid an error. */
24623 #ifdef __cplusplus
24624 extern "C"
24625 #endif
24626 /* We use char because int might match the return type of a gcc2
24627 builtin and then its argument prototype would still apply. */
24628 char IceConnectionNumber ();
24629 int
24630 main ()
24631 {
24632 IceConnectionNumber ();
24633 ;
24634 return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24639 (eval $ac_link) 2>conftest.er1
24640 ac_status=$?
24641 grep -v '^ *+' conftest.er1 >conftest.err
24642 rm -f conftest.er1
24643 cat conftest.err >&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } &&
24646 { ac_try='test -z "$ac_c_werror_flag"
24647 || test ! -s conftest.err'
24648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; } &&
24653 { ac_try='test -s conftest$ac_exeext'
24654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); }; }; then
24659 ac_cv_lib_ICE_IceConnectionNumber=yes
24660 else
24661 echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24663
24664 ac_cv_lib_ICE_IceConnectionNumber=no
24665 fi
24666 rm -f conftest.err conftest.$ac_objext \
24667 conftest$ac_exeext conftest.$ac_ext
24668 LIBS=$ac_check_lib_save_LIBS
24669 fi
24670 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24671 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24672 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24673 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24674 fi
24675
24676 LDFLAGS=$ac_save_LDFLAGS
24677
24678 fi
24679
24680
24681 if test "$no_x" = "yes"; then
24682 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24683 echo "$as_me: error: X11 not found" >&2;}
24684 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24685 fi
24686
24687 GUI_TK_LIBRARY="$X_LIBS"
24688 TOOLKIT_INCLUDE="$X_CFLAGS"
24689 AFMINSTALL=afminstall
24690 COMPILED_X_PROGRAM=0
24691
24692 if test "$wxUSE_NANOX" = "yes"; then
24693 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24694 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24695 if test "x$MICROWIN" = x ; then
24696 echo "$as_me:$LINENO: result: not found" >&5
24697 echo "${ECHO_T}not found" >&6
24698 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24699 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24700 { (exit 1); exit 1; }; }
24701 else
24702 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24703 echo "${ECHO_T}$MICROWIN" >&6
24704 cat >>confdefs.h <<\_ACEOF
24705 #define wxUSE_NANOX 1
24706 _ACEOF
24707
24708 fi
24709 fi
24710
24711 if test "$wxUSE_UNICODE" = "yes"; then
24712
24713 succeeded=no
24714
24715 if test -z "$PKG_CONFIG"; then
24716 # Extract the first word of "pkg-config", so it can be a program name with args.
24717 set dummy pkg-config; ac_word=$2
24718 echo "$as_me:$LINENO: checking for $ac_word" >&5
24719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723 case $PKG_CONFIG in
24724 [\\/]* | ?:[\\/]*)
24725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24726 ;;
24727 *)
24728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24729 for as_dir in $PATH
24730 do
24731 IFS=$as_save_IFS
24732 test -z "$as_dir" && as_dir=.
24733 for ac_exec_ext in '' $ac_executable_extensions; do
24734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24737 break 2
24738 fi
24739 done
24740 done
24741
24742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24743 ;;
24744 esac
24745 fi
24746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24747
24748 if test -n "$PKG_CONFIG"; then
24749 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24750 echo "${ECHO_T}$PKG_CONFIG" >&6
24751 else
24752 echo "$as_me:$LINENO: result: no" >&5
24753 echo "${ECHO_T}no" >&6
24754 fi
24755
24756 fi
24757
24758 if test "$PKG_CONFIG" = "no" ; then
24759 echo "*** The pkg-config script could not be found. Make sure it is"
24760 echo "*** in your path, or set the PKG_CONFIG environment variable"
24761 echo "*** to the full path to pkg-config."
24762 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24763 else
24764 PKG_CONFIG_MIN_VERSION=0.9.0
24765 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24766 echo "$as_me:$LINENO: checking for pangox" >&5
24767 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24768
24769 if $PKG_CONFIG --exists "pangox" ; then
24770 echo "$as_me:$LINENO: result: yes" >&5
24771 echo "${ECHO_T}yes" >&6
24772 succeeded=yes
24773
24774 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24775 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24776 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24777 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24778 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24779
24780 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24781 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24782 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24783 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24784 echo "${ECHO_T}$PANGOX_LIBS" >&6
24785 else
24786 PANGOX_CFLAGS=""
24787 PANGOX_LIBS=""
24788 ## If we have a custom action on failure, don't print errors, but
24789 ## do set a variable so people can do so.
24790 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24791
24792 fi
24793
24794
24795
24796 else
24797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24799 fi
24800 fi
24801
24802 if test $succeeded = yes; then
24803
24804 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24805 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24806
24807 else
24808
24809 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24810 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24811 { (exit 1); exit 1; }; }
24812
24813
24814 fi
24815
24816
24817 succeeded=no
24818
24819 if test -z "$PKG_CONFIG"; then
24820 # Extract the first word of "pkg-config", so it can be a program name with args.
24821 set dummy pkg-config; ac_word=$2
24822 echo "$as_me:$LINENO: checking for $ac_word" >&5
24823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24824 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24825 echo $ECHO_N "(cached) $ECHO_C" >&6
24826 else
24827 case $PKG_CONFIG in
24828 [\\/]* | ?:[\\/]*)
24829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24830 ;;
24831 *)
24832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24833 for as_dir in $PATH
24834 do
24835 IFS=$as_save_IFS
24836 test -z "$as_dir" && as_dir=.
24837 for ac_exec_ext in '' $ac_executable_extensions; do
24838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24841 break 2
24842 fi
24843 done
24844 done
24845
24846 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24847 ;;
24848 esac
24849 fi
24850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24851
24852 if test -n "$PKG_CONFIG"; then
24853 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24854 echo "${ECHO_T}$PKG_CONFIG" >&6
24855 else
24856 echo "$as_me:$LINENO: result: no" >&5
24857 echo "${ECHO_T}no" >&6
24858 fi
24859
24860 fi
24861
24862 if test "$PKG_CONFIG" = "no" ; then
24863 echo "*** The pkg-config script could not be found. Make sure it is"
24864 echo "*** in your path, or set the PKG_CONFIG environment variable"
24865 echo "*** to the full path to pkg-config."
24866 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24867 else
24868 PKG_CONFIG_MIN_VERSION=0.9.0
24869 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24870 echo "$as_me:$LINENO: checking for pangoft2" >&5
24871 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24872
24873 if $PKG_CONFIG --exists "pangoft2" ; then
24874 echo "$as_me:$LINENO: result: yes" >&5
24875 echo "${ECHO_T}yes" >&6
24876 succeeded=yes
24877
24878 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24879 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24880 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24881 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24882 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24883
24884 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24885 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24886 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24887 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24888 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24889 else
24890 PANGOFT2_CFLAGS=""
24891 PANGOFT2_LIBS=""
24892 ## If we have a custom action on failure, don't print errors, but
24893 ## do set a variable so people can do so.
24894 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24895
24896 fi
24897
24898
24899
24900 else
24901 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24902 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24903 fi
24904 fi
24905
24906 if test $succeeded = yes; then
24907
24908 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24909 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24910
24911 else
24912
24913 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24914 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24915 wxUSE_PRINTING_ARCHITECTURE="no"
24916
24917
24918 fi
24919
24920
24921 succeeded=no
24922
24923 if test -z "$PKG_CONFIG"; then
24924 # Extract the first word of "pkg-config", so it can be a program name with args.
24925 set dummy pkg-config; ac_word=$2
24926 echo "$as_me:$LINENO: checking for $ac_word" >&5
24927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24928 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24930 else
24931 case $PKG_CONFIG in
24932 [\\/]* | ?:[\\/]*)
24933 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24934 ;;
24935 *)
24936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24937 for as_dir in $PATH
24938 do
24939 IFS=$as_save_IFS
24940 test -z "$as_dir" && as_dir=.
24941 for ac_exec_ext in '' $ac_executable_extensions; do
24942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24943 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24945 break 2
24946 fi
24947 done
24948 done
24949
24950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24951 ;;
24952 esac
24953 fi
24954 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24955
24956 if test -n "$PKG_CONFIG"; then
24957 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24958 echo "${ECHO_T}$PKG_CONFIG" >&6
24959 else
24960 echo "$as_me:$LINENO: result: no" >&5
24961 echo "${ECHO_T}no" >&6
24962 fi
24963
24964 fi
24965
24966 if test "$PKG_CONFIG" = "no" ; then
24967 echo "*** The pkg-config script could not be found. Make sure it is"
24968 echo "*** in your path, or set the PKG_CONFIG environment variable"
24969 echo "*** to the full path to pkg-config."
24970 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24971 else
24972 PKG_CONFIG_MIN_VERSION=0.9.0
24973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24974 echo "$as_me:$LINENO: checking for pangoxft" >&5
24975 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24976
24977 if $PKG_CONFIG --exists "pangoxft" ; then
24978 echo "$as_me:$LINENO: result: yes" >&5
24979 echo "${ECHO_T}yes" >&6
24980 succeeded=yes
24981
24982 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24983 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24984 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24985 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24986 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24987
24988 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24989 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24990 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24991 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24992 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24993 else
24994 PANGOXFT_CFLAGS=""
24995 PANGOXFT_LIBS=""
24996 ## If we have a custom action on failure, don't print errors, but
24997 ## do set a variable so people can do so.
24998 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24999
25000 fi
25001
25002
25003
25004 else
25005 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25006 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25007 fi
25008 fi
25009
25010 if test $succeeded = yes; then
25011
25012 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25013 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25014
25015 else
25016
25017 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25018 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25019
25020
25021 fi
25022
25023 fi
25024
25025 wxUSE_UNIVERSAL="yes"
25026
25027 if test "$wxUSE_NANOX" = "yes"; then
25028 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25029 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"
25030 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25031 else
25032 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25033 fi
25034
25035 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25036 TOOLKIT=X11
25037 GUIDIST=X11_DIST
25038 fi
25039
25040 if test "$wxUSE_MOTIF" = 1; then
25041 if test "$no_x" = yes; then
25042 # Not all programs may use this symbol, but it does not hurt to define it.
25043
25044 cat >>confdefs.h <<\_ACEOF
25045 #define X_DISPLAY_MISSING 1
25046 _ACEOF
25047
25048 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25049 else
25050 if test -n "$x_includes"; then
25051 X_CFLAGS="$X_CFLAGS -I$x_includes"
25052 fi
25053
25054 # It would also be nice to do this for all -L options, not just this one.
25055 if test -n "$x_libraries"; then
25056 X_LIBS="$X_LIBS -L$x_libraries"
25057 # For Solaris; some versions of Sun CC require a space after -R and
25058 # others require no space. Words are not sufficient . . . .
25059 case `(uname -sr) 2>/dev/null` in
25060 "SunOS 5"*)
25061 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25062 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25063 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25064 cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h. */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25070
25071 int
25072 main ()
25073 {
25074
25075 ;
25076 return 0;
25077 }
25078 _ACEOF
25079 rm -f conftest.$ac_objext conftest$ac_exeext
25080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25081 (eval $ac_link) 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } &&
25088 { ac_try='test -z "$ac_c_werror_flag"
25089 || test ! -s conftest.err'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; } &&
25095 { ac_try='test -s conftest$ac_exeext'
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25101 ac_R_nospace=yes
25102 else
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106 ac_R_nospace=no
25107 fi
25108 rm -f conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
25110 if test $ac_R_nospace = yes; then
25111 echo "$as_me:$LINENO: result: no" >&5
25112 echo "${ECHO_T}no" >&6
25113 X_LIBS="$X_LIBS -R$x_libraries"
25114 else
25115 LIBS="$ac_xsave_LIBS -R $x_libraries"
25116 cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h. */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122
25123 int
25124 main ()
25125 {
25126
25127 ;
25128 return 0;
25129 }
25130 _ACEOF
25131 rm -f conftest.$ac_objext conftest$ac_exeext
25132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25133 (eval $ac_link) 2>conftest.er1
25134 ac_status=$?
25135 grep -v '^ *+' conftest.er1 >conftest.err
25136 rm -f conftest.er1
25137 cat conftest.err >&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); } &&
25140 { ac_try='test -z "$ac_c_werror_flag"
25141 || test ! -s conftest.err'
25142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; } &&
25147 { ac_try='test -s conftest$ac_exeext'
25148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25150 ac_status=$?
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; }; then
25153 ac_R_space=yes
25154 else
25155 echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25157
25158 ac_R_space=no
25159 fi
25160 rm -f conftest.err conftest.$ac_objext \
25161 conftest$ac_exeext conftest.$ac_ext
25162 if test $ac_R_space = yes; then
25163 echo "$as_me:$LINENO: result: yes" >&5
25164 echo "${ECHO_T}yes" >&6
25165 X_LIBS="$X_LIBS -R $x_libraries"
25166 else
25167 echo "$as_me:$LINENO: result: neither works" >&5
25168 echo "${ECHO_T}neither works" >&6
25169 fi
25170 fi
25171 LIBS=$ac_xsave_LIBS
25172 esac
25173 fi
25174
25175 # Check for system-dependent libraries X programs must link with.
25176 # Do this before checking for the system-independent R6 libraries
25177 # (-lICE), since we may need -lsocket or whatever for X linking.
25178
25179 if test "$ISC" = yes; then
25180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25181 else
25182 # Martyn Johnson says this is needed for Ultrix, if the X
25183 # libraries were built with DECnet support. And Karl Berry says
25184 # the Alpha needs dnet_stub (dnet does not exist).
25185 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h. */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192
25193 /* Override any gcc2 internal prototype to avoid an error. */
25194 #ifdef __cplusplus
25195 extern "C"
25196 #endif
25197 /* We use char because int might match the return type of a gcc2
25198 builtin and then its argument prototype would still apply. */
25199 char XOpenDisplay ();
25200 int
25201 main ()
25202 {
25203 XOpenDisplay ();
25204 ;
25205 return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext conftest$ac_exeext
25209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25210 (eval $ac_link) 2>conftest.er1
25211 ac_status=$?
25212 grep -v '^ *+' conftest.er1 >conftest.err
25213 rm -f conftest.er1
25214 cat conftest.err >&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } &&
25217 { ac_try='test -z "$ac_c_werror_flag"
25218 || test ! -s conftest.err'
25219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; } &&
25224 { ac_try='test -s conftest$ac_exeext'
25225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226 (eval $ac_try) 2>&5
25227 ac_status=$?
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); }; }; then
25230 :
25231 else
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25236 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25237 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240 ac_check_lib_save_LIBS=$LIBS
25241 LIBS="-ldnet $LIBS"
25242 cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h. */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25248
25249 /* Override any gcc2 internal prototype to avoid an error. */
25250 #ifdef __cplusplus
25251 extern "C"
25252 #endif
25253 /* We use char because int might match the return type of a gcc2
25254 builtin and then its argument prototype would still apply. */
25255 char dnet_ntoa ();
25256 int
25257 main ()
25258 {
25259 dnet_ntoa ();
25260 ;
25261 return 0;
25262 }
25263 _ACEOF
25264 rm -f conftest.$ac_objext conftest$ac_exeext
25265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25266 (eval $ac_link) 2>conftest.er1
25267 ac_status=$?
25268 grep -v '^ *+' conftest.er1 >conftest.err
25269 rm -f conftest.er1
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } &&
25273 { ac_try='test -z "$ac_c_werror_flag"
25274 || test ! -s conftest.err'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25277 ac_status=$?
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; } &&
25280 { ac_try='test -s conftest$ac_exeext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 ac_cv_lib_dnet_dnet_ntoa=yes
25287 else
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25290
25291 ac_cv_lib_dnet_dnet_ntoa=no
25292 fi
25293 rm -f conftest.err conftest.$ac_objext \
25294 conftest$ac_exeext conftest.$ac_ext
25295 LIBS=$ac_check_lib_save_LIBS
25296 fi
25297 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25298 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25299 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25300 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25301 fi
25302
25303 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25304 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25305 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25306 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
25308 else
25309 ac_check_lib_save_LIBS=$LIBS
25310 LIBS="-ldnet_stub $LIBS"
25311 cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h. */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h. */
25317
25318 /* Override any gcc2 internal prototype to avoid an error. */
25319 #ifdef __cplusplus
25320 extern "C"
25321 #endif
25322 /* We use char because int might match the return type of a gcc2
25323 builtin and then its argument prototype would still apply. */
25324 char dnet_ntoa ();
25325 int
25326 main ()
25327 {
25328 dnet_ntoa ();
25329 ;
25330 return 0;
25331 }
25332 _ACEOF
25333 rm -f conftest.$ac_objext conftest$ac_exeext
25334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25335 (eval $ac_link) 2>conftest.er1
25336 ac_status=$?
25337 grep -v '^ *+' conftest.er1 >conftest.err
25338 rm -f conftest.er1
25339 cat conftest.err >&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } &&
25342 { ac_try='test -z "$ac_c_werror_flag"
25343 || test ! -s conftest.err'
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; } &&
25349 { ac_try='test -s conftest$ac_exeext'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25356 else
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360 ac_cv_lib_dnet_stub_dnet_ntoa=no
25361 fi
25362 rm -f conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
25364 LIBS=$ac_check_lib_save_LIBS
25365 fi
25366 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25367 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25368 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25369 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25370 fi
25371
25372 fi
25373 fi
25374 rm -f conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
25376 LIBS="$ac_xsave_LIBS"
25377
25378 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25379 # to get the SysV transport functions.
25380 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25381 # needs -lnsl.
25382 # The nsl library prevents programs from opening the X display
25383 # on Irix 5.2, according to T.E. Dickey.
25384 # The functions gethostbyname, getservbyname, and inet_addr are
25385 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25386 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25387 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25388 if test "${ac_cv_func_gethostbyname+set}" = set; then
25389 echo $ECHO_N "(cached) $ECHO_C" >&6
25390 else
25391 cat >conftest.$ac_ext <<_ACEOF
25392 /* confdefs.h. */
25393 _ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h. */
25397 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25399 #define gethostbyname innocuous_gethostbyname
25400
25401 /* System header to define __stub macros and hopefully few prototypes,
25402 which can conflict with char gethostbyname (); below.
25403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25404 <limits.h> exists even on freestanding compilers. */
25405
25406 #ifdef __STDC__
25407 # include <limits.h>
25408 #else
25409 # include <assert.h>
25410 #endif
25411
25412 #undef gethostbyname
25413
25414 /* Override any gcc2 internal prototype to avoid an error. */
25415 #ifdef __cplusplus
25416 extern "C"
25417 {
25418 #endif
25419 /* We use char because int might match the return type of a gcc2
25420 builtin and then its argument prototype would still apply. */
25421 char gethostbyname ();
25422 /* The GNU C library defines this for functions which it implements
25423 to always fail with ENOSYS. Some functions are actually named
25424 something starting with __ and the normal name is an alias. */
25425 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25426 choke me
25427 #else
25428 char (*f) () = gethostbyname;
25429 #endif
25430 #ifdef __cplusplus
25431 }
25432 #endif
25433
25434 int
25435 main ()
25436 {
25437 return f != gethostbyname;
25438 ;
25439 return 0;
25440 }
25441 _ACEOF
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25444 (eval $ac_link) 2>conftest.er1
25445 ac_status=$?
25446 grep -v '^ *+' conftest.er1 >conftest.err
25447 rm -f conftest.er1
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -z "$ac_c_werror_flag"
25452 || test ! -s conftest.err'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25455 ac_status=$?
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; } &&
25458 { ac_try='test -s conftest$ac_exeext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25461 ac_status=$?
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 ac_cv_func_gethostbyname=yes
25465 else
25466 echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469 ac_cv_func_gethostbyname=no
25470 fi
25471 rm -f conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
25473 fi
25474 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25475 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25476
25477 if test $ac_cv_func_gethostbyname = no; then
25478 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25479 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25480 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25482 else
25483 ac_check_lib_save_LIBS=$LIBS
25484 LIBS="-lnsl $LIBS"
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h. */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491
25492 /* Override any gcc2 internal prototype to avoid an error. */
25493 #ifdef __cplusplus
25494 extern "C"
25495 #endif
25496 /* We use char because int might match the return type of a gcc2
25497 builtin and then its argument prototype would still apply. */
25498 char gethostbyname ();
25499 int
25500 main ()
25501 {
25502 gethostbyname ();
25503 ;
25504 return 0;
25505 }
25506 _ACEOF
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25509 (eval $ac_link) 2>conftest.er1
25510 ac_status=$?
25511 grep -v '^ *+' conftest.er1 >conftest.err
25512 rm -f conftest.er1
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } &&
25516 { ac_try='test -z "$ac_c_werror_flag"
25517 || test ! -s conftest.err'
25518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); }; } &&
25523 { ac_try='test -s conftest$ac_exeext'
25524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525 (eval $ac_try) 2>&5
25526 ac_status=$?
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); }; }; then
25529 ac_cv_lib_nsl_gethostbyname=yes
25530 else
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25533
25534 ac_cv_lib_nsl_gethostbyname=no
25535 fi
25536 rm -f conftest.err conftest.$ac_objext \
25537 conftest$ac_exeext conftest.$ac_ext
25538 LIBS=$ac_check_lib_save_LIBS
25539 fi
25540 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25541 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25542 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25543 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25544 fi
25545
25546 if test $ac_cv_lib_nsl_gethostbyname = no; then
25547 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25548 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25549 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552 ac_check_lib_save_LIBS=$LIBS
25553 LIBS="-lbsd $LIBS"
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h. */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560
25561 /* Override any gcc2 internal prototype to avoid an error. */
25562 #ifdef __cplusplus
25563 extern "C"
25564 #endif
25565 /* We use char because int might match the return type of a gcc2
25566 builtin and then its argument prototype would still apply. */
25567 char gethostbyname ();
25568 int
25569 main ()
25570 {
25571 gethostbyname ();
25572 ;
25573 return 0;
25574 }
25575 _ACEOF
25576 rm -f conftest.$ac_objext conftest$ac_exeext
25577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25578 (eval $ac_link) 2>conftest.er1
25579 ac_status=$?
25580 grep -v '^ *+' conftest.er1 >conftest.err
25581 rm -f conftest.er1
25582 cat conftest.err >&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } &&
25585 { ac_try='test -z "$ac_c_werror_flag"
25586 || test ! -s conftest.err'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; } &&
25592 { ac_try='test -s conftest$ac_exeext'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
25598 ac_cv_lib_bsd_gethostbyname=yes
25599 else
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603 ac_cv_lib_bsd_gethostbyname=no
25604 fi
25605 rm -f conftest.err conftest.$ac_objext \
25606 conftest$ac_exeext conftest.$ac_ext
25607 LIBS=$ac_check_lib_save_LIBS
25608 fi
25609 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25610 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25611 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25612 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25613 fi
25614
25615 fi
25616 fi
25617
25618 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25619 # socket/setsockopt and other routines are undefined under SCO ODT
25620 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25621 # on later versions), says Simon Leinen: it contains gethostby*
25622 # variants that don't use the name server (or something). -lsocket
25623 # must be given before -lnsl if both are needed. We assume that
25624 # if connect needs -lnsl, so does gethostbyname.
25625 echo "$as_me:$LINENO: checking for connect" >&5
25626 echo $ECHO_N "checking for connect... $ECHO_C" >&6
25627 if test "${ac_cv_func_connect+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630 cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h. */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25638 #define connect innocuous_connect
25639
25640 /* System header to define __stub macros and hopefully few prototypes,
25641 which can conflict with char connect (); below.
25642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25643 <limits.h> exists even on freestanding compilers. */
25644
25645 #ifdef __STDC__
25646 # include <limits.h>
25647 #else
25648 # include <assert.h>
25649 #endif
25650
25651 #undef connect
25652
25653 /* Override any gcc2 internal prototype to avoid an error. */
25654 #ifdef __cplusplus
25655 extern "C"
25656 {
25657 #endif
25658 /* We use char because int might match the return type of a gcc2
25659 builtin and then its argument prototype would still apply. */
25660 char connect ();
25661 /* The GNU C library defines this for functions which it implements
25662 to always fail with ENOSYS. Some functions are actually named
25663 something starting with __ and the normal name is an alias. */
25664 #if defined (__stub_connect) || defined (__stub___connect)
25665 choke me
25666 #else
25667 char (*f) () = connect;
25668 #endif
25669 #ifdef __cplusplus
25670 }
25671 #endif
25672
25673 int
25674 main ()
25675 {
25676 return f != connect;
25677 ;
25678 return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext conftest$ac_exeext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25683 (eval $ac_link) 2>conftest.er1
25684 ac_status=$?
25685 grep -v '^ *+' conftest.er1 >conftest.err
25686 rm -f conftest.er1
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } &&
25690 { ac_try='test -z "$ac_c_werror_flag"
25691 || test ! -s conftest.err'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; } &&
25697 { ac_try='test -s conftest$ac_exeext'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25700 ac_status=$?
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; }; then
25703 ac_cv_func_connect=yes
25704 else
25705 echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25707
25708 ac_cv_func_connect=no
25709 fi
25710 rm -f conftest.err conftest.$ac_objext \
25711 conftest$ac_exeext conftest.$ac_ext
25712 fi
25713 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25714 echo "${ECHO_T}$ac_cv_func_connect" >&6
25715
25716 if test $ac_cv_func_connect = no; then
25717 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25718 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25719 if test "${ac_cv_lib_socket_connect+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25721 else
25722 ac_check_lib_save_LIBS=$LIBS
25723 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h. */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730
25731 /* Override any gcc2 internal prototype to avoid an error. */
25732 #ifdef __cplusplus
25733 extern "C"
25734 #endif
25735 /* We use char because int might match the return type of a gcc2
25736 builtin and then its argument prototype would still apply. */
25737 char connect ();
25738 int
25739 main ()
25740 {
25741 connect ();
25742 ;
25743 return 0;
25744 }
25745 _ACEOF
25746 rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25748 (eval $ac_link) 2>conftest.er1
25749 ac_status=$?
25750 grep -v '^ *+' conftest.er1 >conftest.err
25751 rm -f conftest.er1
25752 cat conftest.err >&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } &&
25755 { ac_try='test -z "$ac_c_werror_flag"
25756 || test ! -s conftest.err'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; } &&
25762 { ac_try='test -s conftest$ac_exeext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25765 ac_status=$?
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 ac_cv_lib_socket_connect=yes
25769 else
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773 ac_cv_lib_socket_connect=no
25774 fi
25775 rm -f conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
25777 LIBS=$ac_check_lib_save_LIBS
25778 fi
25779 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25780 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25781 if test $ac_cv_lib_socket_connect = yes; then
25782 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25783 fi
25784
25785 fi
25786
25787 # Guillermo Gomez says -lposix is necessary on A/UX.
25788 echo "$as_me:$LINENO: checking for remove" >&5
25789 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25790 if test "${ac_cv_func_remove+set}" = set; then
25791 echo $ECHO_N "(cached) $ECHO_C" >&6
25792 else
25793 cat >conftest.$ac_ext <<_ACEOF
25794 /* confdefs.h. */
25795 _ACEOF
25796 cat confdefs.h >>conftest.$ac_ext
25797 cat >>conftest.$ac_ext <<_ACEOF
25798 /* end confdefs.h. */
25799 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25801 #define remove innocuous_remove
25802
25803 /* System header to define __stub macros and hopefully few prototypes,
25804 which can conflict with char remove (); below.
25805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25806 <limits.h> exists even on freestanding compilers. */
25807
25808 #ifdef __STDC__
25809 # include <limits.h>
25810 #else
25811 # include <assert.h>
25812 #endif
25813
25814 #undef remove
25815
25816 /* Override any gcc2 internal prototype to avoid an error. */
25817 #ifdef __cplusplus
25818 extern "C"
25819 {
25820 #endif
25821 /* We use char because int might match the return type of a gcc2
25822 builtin and then its argument prototype would still apply. */
25823 char remove ();
25824 /* The GNU C library defines this for functions which it implements
25825 to always fail with ENOSYS. Some functions are actually named
25826 something starting with __ and the normal name is an alias. */
25827 #if defined (__stub_remove) || defined (__stub___remove)
25828 choke me
25829 #else
25830 char (*f) () = remove;
25831 #endif
25832 #ifdef __cplusplus
25833 }
25834 #endif
25835
25836 int
25837 main ()
25838 {
25839 return f != remove;
25840 ;
25841 return 0;
25842 }
25843 _ACEOF
25844 rm -f conftest.$ac_objext conftest$ac_exeext
25845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25846 (eval $ac_link) 2>conftest.er1
25847 ac_status=$?
25848 grep -v '^ *+' conftest.er1 >conftest.err
25849 rm -f conftest.er1
25850 cat conftest.err >&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } &&
25853 { ac_try='test -z "$ac_c_werror_flag"
25854 || test ! -s conftest.err'
25855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25856 (eval $ac_try) 2>&5
25857 ac_status=$?
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); }; } &&
25860 { ac_try='test -s conftest$ac_exeext'
25861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862 (eval $ac_try) 2>&5
25863 ac_status=$?
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); }; }; then
25866 ac_cv_func_remove=yes
25867 else
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25870
25871 ac_cv_func_remove=no
25872 fi
25873 rm -f conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
25875 fi
25876 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25877 echo "${ECHO_T}$ac_cv_func_remove" >&6
25878
25879 if test $ac_cv_func_remove = no; then
25880 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25881 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25882 if test "${ac_cv_lib_posix_remove+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 else
25885 ac_check_lib_save_LIBS=$LIBS
25886 LIBS="-lposix $LIBS"
25887 cat >conftest.$ac_ext <<_ACEOF
25888 /* confdefs.h. */
25889 _ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893
25894 /* Override any gcc2 internal prototype to avoid an error. */
25895 #ifdef __cplusplus
25896 extern "C"
25897 #endif
25898 /* We use char because int might match the return type of a gcc2
25899 builtin and then its argument prototype would still apply. */
25900 char remove ();
25901 int
25902 main ()
25903 {
25904 remove ();
25905 ;
25906 return 0;
25907 }
25908 _ACEOF
25909 rm -f conftest.$ac_objext conftest$ac_exeext
25910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25911 (eval $ac_link) 2>conftest.er1
25912 ac_status=$?
25913 grep -v '^ *+' conftest.er1 >conftest.err
25914 rm -f conftest.er1
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } &&
25918 { ac_try='test -z "$ac_c_werror_flag"
25919 || test ! -s conftest.err'
25920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); }; } &&
25925 { ac_try='test -s conftest$ac_exeext'
25926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25928 ac_status=$?
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; }; then
25931 ac_cv_lib_posix_remove=yes
25932 else
25933 echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25935
25936 ac_cv_lib_posix_remove=no
25937 fi
25938 rm -f conftest.err conftest.$ac_objext \
25939 conftest$ac_exeext conftest.$ac_ext
25940 LIBS=$ac_check_lib_save_LIBS
25941 fi
25942 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25943 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25944 if test $ac_cv_lib_posix_remove = yes; then
25945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25946 fi
25947
25948 fi
25949
25950 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25951 echo "$as_me:$LINENO: checking for shmat" >&5
25952 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25953 if test "${ac_cv_func_shmat+set}" = set; then
25954 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 else
25956 cat >conftest.$ac_ext <<_ACEOF
25957 /* confdefs.h. */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h. */
25962 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25964 #define shmat innocuous_shmat
25965
25966 /* System header to define __stub macros and hopefully few prototypes,
25967 which can conflict with char shmat (); below.
25968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25969 <limits.h> exists even on freestanding compilers. */
25970
25971 #ifdef __STDC__
25972 # include <limits.h>
25973 #else
25974 # include <assert.h>
25975 #endif
25976
25977 #undef shmat
25978
25979 /* Override any gcc2 internal prototype to avoid an error. */
25980 #ifdef __cplusplus
25981 extern "C"
25982 {
25983 #endif
25984 /* We use char because int might match the return type of a gcc2
25985 builtin and then its argument prototype would still apply. */
25986 char shmat ();
25987 /* The GNU C library defines this for functions which it implements
25988 to always fail with ENOSYS. Some functions are actually named
25989 something starting with __ and the normal name is an alias. */
25990 #if defined (__stub_shmat) || defined (__stub___shmat)
25991 choke me
25992 #else
25993 char (*f) () = shmat;
25994 #endif
25995 #ifdef __cplusplus
25996 }
25997 #endif
25998
25999 int
26000 main ()
26001 {
26002 return f != shmat;
26003 ;
26004 return 0;
26005 }
26006 _ACEOF
26007 rm -f conftest.$ac_objext conftest$ac_exeext
26008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26009 (eval $ac_link) 2>conftest.er1
26010 ac_status=$?
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } &&
26016 { ac_try='test -z "$ac_c_werror_flag"
26017 || test ! -s conftest.err'
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest$ac_exeext'
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; }; then
26029 ac_cv_func_shmat=yes
26030 else
26031 echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034 ac_cv_func_shmat=no
26035 fi
26036 rm -f conftest.err conftest.$ac_objext \
26037 conftest$ac_exeext conftest.$ac_ext
26038 fi
26039 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26040 echo "${ECHO_T}$ac_cv_func_shmat" >&6
26041
26042 if test $ac_cv_func_shmat = no; then
26043 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26044 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26045 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26046 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 else
26048 ac_check_lib_save_LIBS=$LIBS
26049 LIBS="-lipc $LIBS"
26050 cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h. */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26056
26057 /* Override any gcc2 internal prototype to avoid an error. */
26058 #ifdef __cplusplus
26059 extern "C"
26060 #endif
26061 /* We use char because int might match the return type of a gcc2
26062 builtin and then its argument prototype would still apply. */
26063 char shmat ();
26064 int
26065 main ()
26066 {
26067 shmat ();
26068 ;
26069 return 0;
26070 }
26071 _ACEOF
26072 rm -f conftest.$ac_objext conftest$ac_exeext
26073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26074 (eval $ac_link) 2>conftest.er1
26075 ac_status=$?
26076 grep -v '^ *+' conftest.er1 >conftest.err
26077 rm -f conftest.er1
26078 cat conftest.err >&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); } &&
26081 { ac_try='test -z "$ac_c_werror_flag"
26082 || test ! -s conftest.err'
26083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); }; } &&
26088 { ac_try='test -s conftest$ac_exeext'
26089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); }; }; then
26094 ac_cv_lib_ipc_shmat=yes
26095 else
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26098
26099 ac_cv_lib_ipc_shmat=no
26100 fi
26101 rm -f conftest.err conftest.$ac_objext \
26102 conftest$ac_exeext conftest.$ac_ext
26103 LIBS=$ac_check_lib_save_LIBS
26104 fi
26105 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26106 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26107 if test $ac_cv_lib_ipc_shmat = yes; then
26108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26109 fi
26110
26111 fi
26112 fi
26113
26114 # Check for libraries that X11R6 Xt/Xaw programs need.
26115 ac_save_LDFLAGS=$LDFLAGS
26116 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26117 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26118 # check for ICE first), but we must link in the order -lSM -lICE or
26119 # we get undefined symbols. So assume we have SM if we have ICE.
26120 # These have to be linked with before -lX11, unlike the other
26121 # libraries we check for below, so use a different variable.
26122 # John Interrante, Karl Berry
26123 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26124 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26125 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26126 echo $ECHO_N "(cached) $ECHO_C" >&6
26127 else
26128 ac_check_lib_save_LIBS=$LIBS
26129 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26130 cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h. */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136
26137 /* Override any gcc2 internal prototype to avoid an error. */
26138 #ifdef __cplusplus
26139 extern "C"
26140 #endif
26141 /* We use char because int might match the return type of a gcc2
26142 builtin and then its argument prototype would still apply. */
26143 char IceConnectionNumber ();
26144 int
26145 main ()
26146 {
26147 IceConnectionNumber ();
26148 ;
26149 return 0;
26150 }
26151 _ACEOF
26152 rm -f conftest.$ac_objext conftest$ac_exeext
26153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26154 (eval $ac_link) 2>conftest.er1
26155 ac_status=$?
26156 grep -v '^ *+' conftest.er1 >conftest.err
26157 rm -f conftest.er1
26158 cat conftest.err >&5
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); } &&
26161 { ac_try='test -z "$ac_c_werror_flag"
26162 || test ! -s conftest.err'
26163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164 (eval $ac_try) 2>&5
26165 ac_status=$?
26166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); }; } &&
26168 { ac_try='test -s conftest$ac_exeext'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; }; then
26174 ac_cv_lib_ICE_IceConnectionNumber=yes
26175 else
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26178
26179 ac_cv_lib_ICE_IceConnectionNumber=no
26180 fi
26181 rm -f conftest.err conftest.$ac_objext \
26182 conftest$ac_exeext conftest.$ac_ext
26183 LIBS=$ac_check_lib_save_LIBS
26184 fi
26185 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26186 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26187 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26188 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26189 fi
26190
26191 LDFLAGS=$ac_save_LDFLAGS
26192
26193 fi
26194
26195
26196 if test "$no_x" = "yes"; then
26197 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26198 echo "$as_me: error: X11 not found" >&2;}
26199 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26200 fi
26201
26202 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26203 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26204 AFMINSTALL=afminstall
26205 COMPILED_X_PROGRAM=0
26206
26207 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26208 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26209
26210 ac_find_includes=
26211 for ac_dir in $SEARCH_INCLUDE /usr/include;
26212 do
26213 if test -f "$ac_dir/Xm/Xm.h"; then
26214 ac_find_includes=$ac_dir
26215 break
26216 fi
26217 done
26218
26219 if test "$ac_find_includes" != "" ; then
26220 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26221 echo "${ECHO_T}found in $ac_find_includes" >&6
26222
26223 if test "x$ac_find_includes" = "x/usr/include"; then
26224 ac_path_to_include=""
26225 else
26226 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26227 result=$?
26228 if test $result = 0; then
26229 ac_path_to_include=""
26230 else
26231 ac_path_to_include=" -I$ac_find_includes"
26232 fi
26233 fi
26234
26235 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26236 else
26237 cat >conftest.$ac_ext <<_ACEOF
26238 /* confdefs.h. */
26239 _ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h. */
26243
26244 #include <Xm/Xm.h>
26245
26246 int
26247 main ()
26248 {
26249
26250 int version;
26251 version = xmUseVersion;
26252
26253 ;
26254 return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext
26258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26259 (eval $ac_compile) 2>conftest.er1
26260 ac_status=$?
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } &&
26266 { ac_try='test -z "$ac_c_werror_flag"
26267 || test ! -s conftest.err'
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; } &&
26273 { ac_try='test -s conftest.$ac_objext'
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; }; then
26279
26280 echo "$as_me:$LINENO: result: found in default search path" >&5
26281 echo "${ECHO_T}found in default search path" >&6
26282 COMPILED_X_PROGRAM=1
26283
26284 else
26285 echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26287
26288
26289 echo "$as_me:$LINENO: result: no" >&5
26290 echo "${ECHO_T}no" >&6
26291 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26292 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26293 { (exit 1); exit 1; }; }
26294
26295
26296 fi
26297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26298 fi
26299
26300 if test "$COMPILED_X_PROGRAM" = 0; then
26301 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26302 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26303
26304 ac_find_libraries=
26305 for ac_dir in $SEARCH_LIB /usr/lib;
26306 do
26307 for ac_extension in a so sl dylib; do
26308 if test -f "$ac_dir/libXm.$ac_extension"; then
26309 ac_find_libraries=$ac_dir
26310 break 2
26311 fi
26312 done
26313 done
26314
26315 if test "$ac_find_libraries" != "" ; then
26316 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26317 echo "${ECHO_T}found at $ac_find_libraries" >&6
26318
26319
26320 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26321 result=$?
26322 if test $result = 0; then
26323 ac_path_to_link=""
26324 else
26325 ac_path_to_link=" -L$ac_find_libraries"
26326 fi
26327
26328 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26329 else
26330 save_CFLAGS=$CFLAGS
26331 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26332
26333 cat >conftest.$ac_ext <<_ACEOF
26334 /* confdefs.h. */
26335 _ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339
26340 #include <Xm/Xm.h>
26341
26342 int
26343 main ()
26344 {
26345
26346 int version;
26347 version = xmUseVersion;
26348
26349 ;
26350 return 0;
26351 }
26352 _ACEOF
26353 rm -f conftest.$ac_objext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26355 (eval $ac_compile) 2>conftest.er1
26356 ac_status=$?
26357 grep -v '^ *+' conftest.er1 >conftest.err
26358 rm -f conftest.er1
26359 cat conftest.err >&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } &&
26362 { ac_try='test -z "$ac_c_werror_flag"
26363 || test ! -s conftest.err'
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; } &&
26369 { ac_try='test -s conftest.$ac_objext'
26370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); }; }; then
26375
26376 echo "$as_me:$LINENO: result: found in default search path" >&5
26377 echo "${ECHO_T}found in default search path" >&6
26378 COMPILED_X_PROGRAM=1
26379
26380 else
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26383
26384
26385 echo "$as_me:$LINENO: result: no" >&5
26386 echo "${ECHO_T}no" >&6
26387 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26388 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26389 { (exit 1); exit 1; }; }
26390
26391
26392 fi
26393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26394
26395 CFLAGS=$save_CFLAGS
26396 fi
26397 fi
26398
26399 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26400 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26401 libp_link=""
26402 libsm_ice_link=""
26403 libs_found=0
26404 for libp in "" " -lXp"; do
26405 if test "$libs_found" = "0"; then
26406 for libsm_ice in "" " -lSM -lICE"; do
26407 if test "$libs_found" = "0"; then
26408 save_LIBS="$LIBS"
26409 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26410 save_CFLAGS=$CFLAGS
26411 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26412
26413 cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h. */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h. */
26419
26420 #include <Xm/Xm.h>
26421 #include <Xm/List.h>
26422
26423 int
26424 main ()
26425 {
26426
26427 XmString string = NULL;
26428 Widget w = NULL;
26429 int position = 0;
26430 XmListAddItem(w, string, position);
26431
26432 ;
26433 return 0;
26434 }
26435 _ACEOF
26436 rm -f conftest.$ac_objext conftest$ac_exeext
26437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26438 (eval $ac_link) 2>conftest.er1
26439 ac_status=$?
26440 grep -v '^ *+' conftest.er1 >conftest.err
26441 rm -f conftest.er1
26442 cat conftest.err >&5
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } &&
26445 { ac_try='test -z "$ac_c_werror_flag"
26446 || test ! -s conftest.err'
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26449 ac_status=$?
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; } &&
26452 { ac_try='test -s conftest$ac_exeext'
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26455 ac_status=$?
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; }; then
26458
26459 libp_link="$libp"
26460 libsm_ice_link="$libsm_ice"
26461 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26462 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26463 libs_found=1
26464
26465 else
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26468
26469
26470
26471 fi
26472 rm -f conftest.err conftest.$ac_objext \
26473 conftest$ac_exeext conftest.$ac_ext
26474
26475 LIBS="$save_LIBS"
26476 CFLAGS=$save_CFLAGS
26477 fi
26478 done
26479 fi
26480 done
26481
26482 if test "$libs_found" = "0"; then
26483 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26484 echo "${ECHO_T}can't find the right libraries" >&6
26485 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26486 echo "$as_me: error: can't link a simple motif program" >&2;}
26487 { (exit 1); exit 1; }; }
26488 fi
26489
26490 save_CFLAGS=$CFLAGS
26491 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26492 echo "$as_me:$LINENO: checking for Motif 2" >&5
26493 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26494 cat >conftest.$ac_ext <<_ACEOF
26495 /* confdefs.h. */
26496 _ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26500
26501 #include <Xm/Xm.h>
26502
26503 int
26504 main ()
26505 {
26506
26507 #if XmVersion < 2000
26508 #error "Not Motif 2"
26509 #endif
26510
26511 ;
26512 return 0;
26513 }
26514 _ACEOF
26515 rm -f conftest.$ac_objext
26516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517 (eval $ac_compile) 2>conftest.er1
26518 ac_status=$?
26519 grep -v '^ *+' conftest.er1 >conftest.err
26520 rm -f conftest.er1
26521 cat conftest.err >&5
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } &&
26524 { ac_try='test -z "$ac_c_werror_flag"
26525 || test ! -s conftest.err'
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; } &&
26531 { ac_try='test -s conftest.$ac_objext'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; }; then
26537
26538 cat >>confdefs.h <<\_ACEOF
26539 #define __WXMOTIF20__ 1
26540 _ACEOF
26541
26542 echo "$as_me:$LINENO: result: found" >&5
26543 echo "${ECHO_T}found" >&6
26544
26545 else
26546 echo "$as_me: failed program was:" >&5
26547 sed 's/^/| /' conftest.$ac_ext >&5
26548
26549
26550 cat >>confdefs.h <<\_ACEOF
26551 #define __WXMOTIF20__ 0
26552 _ACEOF
26553
26554 echo "$as_me:$LINENO: result: not found" >&5
26555 echo "${ECHO_T}not found" >&6
26556
26557 fi
26558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26559 CFLAGS=$save_CFLAGS
26560
26561 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26562 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26563 TOOLKIT=MOTIF
26564 GUIDIST=MOTIF_DIST
26565 fi
26566
26567 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26568 if test "$wxUSE_LIBXPM" = "sys"; then
26569 echo "$as_me:$LINENO: checking for Xpm library" >&5
26570 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26571
26572 ac_find_libraries=
26573 for ac_dir in $SEARCH_LIB /usr/lib;
26574 do
26575 for ac_extension in a so sl dylib; do
26576 if test -f "$ac_dir/libXpm.$ac_extension"; then
26577 ac_find_libraries=$ac_dir
26578 break 2
26579 fi
26580 done
26581 done
26582
26583 if test "$ac_find_libraries" != "" ; then
26584
26585 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26586 result=$?
26587 if test $result = 0; then
26588 ac_path_to_link=""
26589 else
26590 ac_path_to_link=" -L$ac_find_libraries"
26591 fi
26592
26593 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26594 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26595 echo "${ECHO_T}found at $ac_find_libraries" >&6
26596
26597 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26598 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26599 if test "${wx_cv_x11_xpm_h+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602
26603 save_CFLAGS=$CFLAGS
26604 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26605
26606 cat >conftest.$ac_ext <<_ACEOF
26607 /* confdefs.h. */
26608 _ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h. */
26612
26613 #include <X11/xpm.h>
26614
26615 int
26616 main ()
26617 {
26618
26619 int version;
26620 version = XpmLibraryVersion();
26621
26622 ;
26623 return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26628 (eval $ac_compile) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag"
26636 || test ! -s conftest.err'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest.$ac_objext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
26648 wx_cv_x11_xpm_h=yes
26649 else
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653 wx_cv_x11_xpm_h=no
26654
26655 fi
26656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26657
26658 CFLAGS=$save_CFLAGS
26659
26660
26661 fi
26662 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26663 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26664
26665 if test $wx_cv_x11_xpm_h = "yes"; then
26666 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26667 cat >>confdefs.h <<\_ACEOF
26668 #define wxHAVE_LIB_XPM 1
26669 _ACEOF
26670
26671 else
26672 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26673 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26674 fi
26675 fi
26676
26677 fi
26678
26679 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26680 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26681 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26683 else
26684 ac_check_lib_save_LIBS=$LIBS
26685 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26686 cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h. */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692
26693 /* Override any gcc2 internal prototype to avoid an error. */
26694 #ifdef __cplusplus
26695 extern "C"
26696 #endif
26697 /* We use char because int might match the return type of a gcc2
26698 builtin and then its argument prototype would still apply. */
26699 char XShapeQueryExtension ();
26700 int
26701 main ()
26702 {
26703 XShapeQueryExtension ();
26704 ;
26705 return 0;
26706 }
26707 _ACEOF
26708 rm -f conftest.$ac_objext conftest$ac_exeext
26709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26710 (eval $ac_link) 2>conftest.er1
26711 ac_status=$?
26712 grep -v '^ *+' conftest.er1 >conftest.err
26713 rm -f conftest.er1
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } &&
26717 { ac_try='test -z "$ac_c_werror_flag"
26718 || test ! -s conftest.err'
26719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720 (eval $ac_try) 2>&5
26721 ac_status=$?
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); }; } &&
26724 { ac_try='test -s conftest$ac_exeext'
26725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; }; then
26730 ac_cv_lib_Xext_XShapeQueryExtension=yes
26731 else
26732 echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26734
26735 ac_cv_lib_Xext_XShapeQueryExtension=no
26736 fi
26737 rm -f conftest.err conftest.$ac_objext \
26738 conftest$ac_exeext conftest.$ac_ext
26739 LIBS=$ac_check_lib_save_LIBS
26740 fi
26741 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26742 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26743 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26744
26745 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26746 wxHAVE_XEXT_LIB=1
26747
26748 fi
26749
26750
26751 if test "$wxHAVE_XEXT_LIB" = 1; then
26752 save_CFLAGS="$CFLAGS"
26753 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26754
26755 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26756 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26757 cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h. */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h. */
26763
26764 #include <X11/Xlib.h>
26765 #include <X11/extensions/shape.h>
26766
26767 int
26768 main ()
26769 {
26770
26771 int dummy1, dummy2;
26772 XShapeQueryExtension((Display*)NULL,
26773 (int*)NULL, (int*)NULL);
26774
26775 ;
26776 return 0;
26777 }
26778 _ACEOF
26779 rm -f conftest.$ac_objext
26780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26781 (eval $ac_compile) 2>conftest.er1
26782 ac_status=$?
26783 grep -v '^ *+' conftest.er1 >conftest.err
26784 rm -f conftest.er1
26785 cat conftest.err >&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); } &&
26788 { ac_try='test -z "$ac_c_werror_flag"
26789 || test ! -s conftest.err'
26790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791 (eval $ac_try) 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; } &&
26795 { ac_try='test -s conftest.$ac_objext'
26796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26797 (eval $ac_try) 2>&5
26798 ac_status=$?
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); }; }; then
26801
26802 cat >>confdefs.h <<\_ACEOF
26803 #define HAVE_XSHAPE 1
26804 _ACEOF
26805
26806 echo "$as_me:$LINENO: result: found" >&5
26807 echo "${ECHO_T}found" >&6
26808
26809 else
26810 echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813
26814 echo "$as_me:$LINENO: result: not found" >&5
26815 echo "${ECHO_T}not found" >&6
26816
26817 fi
26818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26819 CFLAGS="$save_CFLAGS"
26820
26821 fi
26822 fi
26823
26824 if test "$wxUSE_MAC" = 1; then
26825 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26826 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26827 if test "$GCC" = yes; then
26828 echo "$as_me:$LINENO: result: gcc" >&5
26829 echo "${ECHO_T}gcc" >&6
26830 CPPFLAGS_PASCAL="-fpascal-strings"
26831 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26832 echo "$as_me:$LINENO: result: xlc" >&5
26833 echo "${ECHO_T}xlc" >&6
26834 CPPFLAGS_PASCAL="-qmacpstr"
26835 else
26836 echo "$as_me:$LINENO: result: none" >&5
26837 echo "${ECHO_T}none" >&6
26838 fi
26839
26840 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26841
26842 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26843 TOOLKIT=MAC
26844 GUIDIST=MACX_DIST
26845 WXBASEPORT="_carbon"
26846 fi
26847
26848 if test "$wxUSE_COCOA" = 1; then
26849 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26850 TOOLKIT=COCOA
26851 GUIDIST=COCOA_DIST
26852 fi
26853
26854 if test "$wxUSE_PM" = 1; then
26855 TOOLKIT=PM
26856 GUIDIST=GTK_DIST
26857 fi
26858
26859 if test "$TOOLKIT" = "PM" ; then
26860 TOOLKIT_DIR="os2"
26861 else
26862 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26863 fi
26864
26865 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26866
26867 if test "$wxUSE_UNIVERSAL" = "yes"; then
26868 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26869
26870 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26871 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26872
26873 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26874 if test "$wxUSE_X11" = 1; then
26875 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26876 else
26877 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26878 fi
26879 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26880 WIDGET_SET=univ
26881 else
26882 ALL_OBJECTS="\$(GUIOBJS)"
26883 ALL_SOURCES="\$(ALL_SOURCES)"
26884 ALL_HEADERS="\$(ALL_HEADERS)"
26885 fi
26886
26887 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26888
26889 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26890 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26891 fi
26892
26893 if test "$wxUSE_HTML" = "yes"; then
26894 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26895 fi
26896
26897 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26898 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26899 fi
26900 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26901 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26902 fi
26903 if test "$wxUSE_LIBPNG" = "builtin" ; then
26904 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26905 fi
26906
26907 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26908 DISTDIR="wx\$(TOOLKIT)"
26909 else
26910 USE_GUI=0
26911
26912 TOOLKIT_DIR="base"
26913
26914 if test "$USE_WIN32" = 1 ; then
26915 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26916 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26917
26918 TOOLKIT="MSW"
26919 else
26920 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26921 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26922 fi
26923
26924 ALL_SOURCES="\$(ALL_SOURCES)"
26925 ALL_HEADERS="\$(ALL_HEADERS)"
26926
26927 PORT_FILES="\${top_srcdir}/src/files.lst"
26928
26929 GUIDIST="BASE_DIST"
26930 DISTDIR="wxBase"
26931 fi
26932
26933
26934
26935
26936 IODBC_C_SRC=""
26937
26938
26939 if test "$TOOLKIT" != "MSW" ; then
26940
26941 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26942
26943 if test "${ac_cv_header_sql_h+set}" = set; then
26944 echo "$as_me:$LINENO: checking for sql.h" >&5
26945 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26946 if test "${ac_cv_header_sql_h+set}" = set; then
26947 echo $ECHO_N "(cached) $ECHO_C" >&6
26948 fi
26949 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26950 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26951 else
26952 # Is the header compilable?
26953 echo "$as_me:$LINENO: checking sql.h usability" >&5
26954 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h. */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 $ac_includes_default
26962 #include <sql.h>
26963 _ACEOF
26964 rm -f conftest.$ac_objext
26965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26966 (eval $ac_compile) 2>conftest.er1
26967 ac_status=$?
26968 grep -v '^ *+' conftest.er1 >conftest.err
26969 rm -f conftest.er1
26970 cat conftest.err >&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } &&
26973 { ac_try='test -z "$ac_c_werror_flag"
26974 || test ! -s conftest.err'
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26977 ac_status=$?
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; } &&
26980 { ac_try='test -s conftest.$ac_objext'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; }; then
26986 ac_header_compiler=yes
26987 else
26988 echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26990
26991 ac_header_compiler=no
26992 fi
26993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26995 echo "${ECHO_T}$ac_header_compiler" >&6
26996
26997 # Is the header present?
26998 echo "$as_me:$LINENO: checking sql.h presence" >&5
26999 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27000 cat >conftest.$ac_ext <<_ACEOF
27001 /* confdefs.h. */
27002 _ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h. */
27006 #include <sql.h>
27007 _ACEOF
27008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27010 ac_status=$?
27011 grep -v '^ *+' conftest.er1 >conftest.err
27012 rm -f conftest.er1
27013 cat conftest.err >&5
27014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27015 (exit $ac_status); } >/dev/null; then
27016 if test -s conftest.err; then
27017 ac_cpp_err=$ac_c_preproc_warn_flag
27018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27019 else
27020 ac_cpp_err=
27021 fi
27022 else
27023 ac_cpp_err=yes
27024 fi
27025 if test -z "$ac_cpp_err"; then
27026 ac_header_preproc=yes
27027 else
27028 echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031 ac_header_preproc=no
27032 fi
27033 rm -f conftest.err conftest.$ac_ext
27034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27035 echo "${ECHO_T}$ac_header_preproc" >&6
27036
27037 # So? What about this header?
27038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27039 yes:no: )
27040 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27041 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27043 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27044 ac_header_preproc=yes
27045 ;;
27046 no:yes:* )
27047 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27048 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
27049 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27050 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27051 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27052 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27053 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27054 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
27055 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27056 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
27057 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27058 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
27059 (
27060 cat <<\_ASBOX
27061 ## ----------------------------------------- ##
27062 ## Report this to wx-dev@lists.wxwindows.org ##
27063 ## ----------------------------------------- ##
27064 _ASBOX
27065 ) |
27066 sed "s/^/$as_me: WARNING: /" >&2
27067 ;;
27068 esac
27069 echo "$as_me:$LINENO: checking for sql.h" >&5
27070 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27071 if test "${ac_cv_header_sql_h+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27073 else
27074 ac_cv_header_sql_h=$ac_header_preproc
27075 fi
27076 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27077 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27078
27079 fi
27080 if test $ac_cv_header_sql_h = yes; then
27081 found_sql_h=1
27082 fi
27083
27084
27085 if test "x$found_sql_h" = "x1" ; then
27086 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27087 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27088 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 else
27091 ac_check_lib_save_LIBS=$LIBS
27092 LIBS="-liodbc $LIBS"
27093 cat >conftest.$ac_ext <<_ACEOF
27094 /* confdefs.h. */
27095 _ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27099
27100 /* Override any gcc2 internal prototype to avoid an error. */
27101 #ifdef __cplusplus
27102 extern "C"
27103 #endif
27104 /* We use char because int might match the return type of a gcc2
27105 builtin and then its argument prototype would still apply. */
27106 char SQLAllocEnv ();
27107 int
27108 main ()
27109 {
27110 SQLAllocEnv ();
27111 ;
27112 return 0;
27113 }
27114 _ACEOF
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27117 (eval $ac_link) 2>conftest.er1
27118 ac_status=$?
27119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest$ac_exeext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_lib_iodbc_SQLAllocEnv=yes
27138 else
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27141
27142 ac_cv_lib_iodbc_SQLAllocEnv=no
27143 fi
27144 rm -f conftest.err conftest.$ac_objext \
27145 conftest$ac_exeext conftest.$ac_ext
27146 LIBS=$ac_check_lib_save_LIBS
27147 fi
27148 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27149 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27150 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27151 ODBC_LINK=" -liodbc"
27152 else
27153
27154 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27155 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27156 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27157 echo $ECHO_N "(cached) $ECHO_C" >&6
27158 else
27159 ac_check_lib_save_LIBS=$LIBS
27160 LIBS="-lunixodbc $LIBS"
27161 cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h. */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167
27168 /* Override any gcc2 internal prototype to avoid an error. */
27169 #ifdef __cplusplus
27170 extern "C"
27171 #endif
27172 /* We use char because int might match the return type of a gcc2
27173 builtin and then its argument prototype would still apply. */
27174 char SQLAllocEnv ();
27175 int
27176 main ()
27177 {
27178 SQLAllocEnv ();
27179 ;
27180 return 0;
27181 }
27182 _ACEOF
27183 rm -f conftest.$ac_objext conftest$ac_exeext
27184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27185 (eval $ac_link) 2>conftest.er1
27186 ac_status=$?
27187 grep -v '^ *+' conftest.er1 >conftest.err
27188 rm -f conftest.er1
27189 cat conftest.err >&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); } &&
27192 { ac_try='test -z "$ac_c_werror_flag"
27193 || test ! -s conftest.err'
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; } &&
27199 { ac_try='test -s conftest$ac_exeext'
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }; then
27205 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27206 else
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210 ac_cv_lib_unixodbc_SQLAllocEnv=no
27211 fi
27212 rm -f conftest.err conftest.$ac_objext \
27213 conftest$ac_exeext conftest.$ac_ext
27214 LIBS=$ac_check_lib_save_LIBS
27215 fi
27216 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27217 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27218 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27219 ODBC_LINK=" -lunixodbc"
27220 else
27221
27222 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27223 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27224 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27225 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 else
27227 ac_check_lib_save_LIBS=$LIBS
27228 LIBS="-lodbc $LIBS"
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h. */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27235
27236 /* Override any gcc2 internal prototype to avoid an error. */
27237 #ifdef __cplusplus
27238 extern "C"
27239 #endif
27240 /* We use char because int might match the return type of a gcc2
27241 builtin and then its argument prototype would still apply. */
27242 char SQLAllocEnv ();
27243 int
27244 main ()
27245 {
27246 SQLAllocEnv ();
27247 ;
27248 return 0;
27249 }
27250 _ACEOF
27251 rm -f conftest.$ac_objext conftest$ac_exeext
27252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27253 (eval $ac_link) 2>conftest.er1
27254 ac_status=$?
27255 grep -v '^ *+' conftest.er1 >conftest.err
27256 rm -f conftest.er1
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } &&
27260 { ac_try='test -z "$ac_c_werror_flag"
27261 || test ! -s conftest.err'
27262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263 (eval $ac_try) 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest$ac_exeext'
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; }; then
27273 ac_cv_lib_odbc_SQLAllocEnv=yes
27274 else
27275 echo "$as_me: failed program was:" >&5
27276 sed 's/^/| /' conftest.$ac_ext >&5
27277
27278 ac_cv_lib_odbc_SQLAllocEnv=no
27279 fi
27280 rm -f conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
27282 LIBS=$ac_check_lib_save_LIBS
27283 fi
27284 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27285 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27286 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27287 ODBC_LINK=" -lodbc"
27288 fi
27289
27290
27291 fi
27292
27293
27294 fi
27295
27296 fi
27297 if test "x$ODBC_LINK" = "x" ; then
27298 if test "$wxUSE_ODBC" = "sys" ; then
27299 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27300 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27301 { (exit 1); exit 1; }; }
27302 else
27303 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27304 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27305 wxUSE_ODBC=builtin
27306 fi
27307 else
27308 wxUSE_ODBC=sys
27309 fi
27310 fi
27311 if test "$wxUSE_ODBC" != "no" ; then
27312 cat >>confdefs.h <<\_ACEOF
27313 #define wxUSE_ODBC 1
27314 _ACEOF
27315
27316 if test "$wxUSE_ODBC" = "builtin" ; then
27317 cat >>confdefs.h <<\_ACEOF
27318 #define wxUSE_BUILTIN_IODBC 1
27319 _ACEOF
27320
27321 fi
27322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27323
27324 WXODBCFLAG="-D_IODBC_"
27325 fi
27326 fi
27327
27328 if test "$wxUSE_REGEX" = "builtin" ; then
27329 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27330 fi
27331 if test "$wxUSE_ZLIB" = "builtin" ; then
27332 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27333 fi
27334
27335 if test "$wxUSE_DISPLAY" = "yes"; then
27336 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27337 echo "$as_me:$LINENO: checking for Xinerama" >&5
27338 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27339
27340 ac_find_libraries=
27341 for ac_dir in $SEARCH_LIB /usr/lib;
27342 do
27343 for ac_extension in a so sl dylib; do
27344 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27345 ac_find_libraries=$ac_dir
27346 break 2
27347 fi
27348 done
27349 done
27350
27351 if test "$ac_find_libraries" != "" ; then
27352
27353 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27354 result=$?
27355 if test $result = 0; then
27356 ac_path_to_link=""
27357 else
27358 ac_path_to_link=" -L$ac_find_libraries"
27359 fi
27360
27361 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27362 LDFLAGS="$LDFLAGS $ac_path_to_link"
27363 fi
27364 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27365 echo "$as_me:$LINENO: result: yes" >&5
27366 echo "${ECHO_T}yes" >&6
27367
27368 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27369 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27370
27371 ac_find_libraries=
27372 for ac_dir in $SEARCH_LIB /usr/lib;
27373 do
27374 for ac_extension in a so sl dylib; do
27375 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27376 ac_find_libraries=$ac_dir
27377 break 2
27378 fi
27379 done
27380 done
27381
27382 if test "$ac_find_libraries" != "" ; then
27383 echo "$as_me:$LINENO: result: yes" >&5
27384 echo "${ECHO_T}yes" >&6
27385
27386 for ac_header in X11/extensions/xf86vmode.h
27387 do
27388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27389 echo "$as_me:$LINENO: checking for $ac_header" >&5
27390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394 cat >conftest.$ac_ext <<_ACEOF
27395 /* confdefs.h. */
27396 _ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h. */
27400
27401 #if HAVE_X11_XLIB_H
27402 #include <X11/Xlib.h>
27403 #endif
27404
27405
27406 #include <$ac_header>
27407 _ACEOF
27408 rm -f conftest.$ac_objext
27409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27410 (eval $ac_compile) 2>conftest.er1
27411 ac_status=$?
27412 grep -v '^ *+' conftest.er1 >conftest.err
27413 rm -f conftest.er1
27414 cat conftest.err >&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); } &&
27417 { ac_try='test -z "$ac_c_werror_flag"
27418 || test ! -s conftest.err'
27419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27420 (eval $ac_try) 2>&5
27421 ac_status=$?
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; } &&
27424 { ac_try='test -s conftest.$ac_objext'
27425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426 (eval $ac_try) 2>&5
27427 ac_status=$?
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; }; then
27430 eval "$as_ac_Header=yes"
27431 else
27432 echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435 eval "$as_ac_Header=no"
27436 fi
27437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27438 fi
27439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27442 cat >>confdefs.h <<_ACEOF
27443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27444 _ACEOF
27445
27446 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27447
27448 fi
27449
27450 done
27451
27452 else
27453 echo "$as_me:$LINENO: result: no" >&5
27454 echo "${ECHO_T}no" >&6
27455 fi
27456
27457 else
27458 echo "$as_me:$LINENO: result: no" >&5
27459 echo "${ECHO_T}no" >&6
27460 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27461 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27462 wxUSE_DISPLAY="no"
27463 fi
27464 fi
27465 fi
27466
27467
27468 USE_OPENGL=0
27469 if test "$wxUSE_OPENGL" = "yes"; then
27470 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27471 OPENGL_LIBS="-framework OpenGL -framework AGL"
27472 elif test "$wxUSE_MSW" = 1; then
27473 OPENGL_LIBS="-lopengl32 -lglu32"
27474 else
27475
27476
27477 ac_find_includes=
27478 for ac_dir in $SEARCH_INCLUDE /usr/include;
27479 do
27480 if test -f "$ac_dir/GL/gl.h"; then
27481 ac_find_includes=$ac_dir
27482 break
27483 fi
27484 done
27485
27486 if test "$ac_find_includes" != "" ; then
27487 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27488 echo "${ECHO_T}found in $ac_find_includes" >&6
27489
27490 if test "x$ac_find_includes" = "x/usr/include"; then
27491 ac_path_to_include=""
27492 else
27493 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27494 result=$?
27495 if test $result = 0; then
27496 ac_path_to_include=""
27497 else
27498 ac_path_to_include=" -I$ac_find_includes"
27499 fi
27500 fi
27501
27502 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27503 fi
27504
27505 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27506 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27507 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27508 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27509 echo $ECHO_N "(cached) $ECHO_C" >&6
27510 fi
27511 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27512 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27513 else
27514 # Is the header compilable?
27515 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27516 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27517 cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h. */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27523 $ac_includes_default
27524 #include <GL/gl.h>
27525 _ACEOF
27526 rm -f conftest.$ac_objext
27527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27528 (eval $ac_compile) 2>conftest.er1
27529 ac_status=$?
27530 grep -v '^ *+' conftest.er1 >conftest.err
27531 rm -f conftest.er1
27532 cat conftest.err >&5
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); } &&
27535 { ac_try='test -z "$ac_c_werror_flag"
27536 || test ! -s conftest.err'
27537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538 (eval $ac_try) 2>&5
27539 ac_status=$?
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; } &&
27542 { ac_try='test -s conftest.$ac_objext'
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; }; then
27548 ac_header_compiler=yes
27549 else
27550 echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27552
27553 ac_header_compiler=no
27554 fi
27555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27557 echo "${ECHO_T}$ac_header_compiler" >&6
27558
27559 # Is the header present?
27560 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27561 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27562 cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h. */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27568 #include <GL/gl.h>
27569 _ACEOF
27570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27572 ac_status=$?
27573 grep -v '^ *+' conftest.er1 >conftest.err
27574 rm -f conftest.er1
27575 cat conftest.err >&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); } >/dev/null; then
27578 if test -s conftest.err; then
27579 ac_cpp_err=$ac_c_preproc_warn_flag
27580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27581 else
27582 ac_cpp_err=
27583 fi
27584 else
27585 ac_cpp_err=yes
27586 fi
27587 if test -z "$ac_cpp_err"; then
27588 ac_header_preproc=yes
27589 else
27590 echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.$ac_ext >&5
27592
27593 ac_header_preproc=no
27594 fi
27595 rm -f conftest.err conftest.$ac_ext
27596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27597 echo "${ECHO_T}$ac_header_preproc" >&6
27598
27599 # So? What about this header?
27600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27601 yes:no: )
27602 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27603 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27604 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27605 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27606 ac_header_preproc=yes
27607 ;;
27608 no:yes:* )
27609 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27610 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27611 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27612 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27613 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27614 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27615 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27616 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27617 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27618 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27619 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27620 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27621 (
27622 cat <<\_ASBOX
27623 ## ----------------------------------------- ##
27624 ## Report this to wx-dev@lists.wxwindows.org ##
27625 ## ----------------------------------------- ##
27626 _ASBOX
27627 ) |
27628 sed "s/^/$as_me: WARNING: /" >&2
27629 ;;
27630 esac
27631 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27632 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27633 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27635 else
27636 ac_cv_header_GL_gl_h=$ac_header_preproc
27637 fi
27638 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27639 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27640
27641 fi
27642 if test $ac_cv_header_GL_gl_h = yes; then
27643
27644 found_gl=0
27645
27646 echo "$as_me:$LINENO: checking for -lGL" >&5
27647 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27648
27649 ac_find_libraries=
27650 for ac_dir in $SEARCH_LIB /usr/lib;
27651 do
27652 for ac_extension in a so sl dylib; do
27653 if test -f "$ac_dir/libGL.$ac_extension"; then
27654 ac_find_libraries=$ac_dir
27655 break 2
27656 fi
27657 done
27658 done
27659
27660 if test "$ac_find_libraries" != "" ; then
27661
27662 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27663 result=$?
27664 if test $result = 0; then
27665 ac_path_to_link=""
27666 else
27667 ac_path_to_link=" -L$ac_find_libraries"
27668 fi
27669
27670 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27671 LDFLAGS_GL="$ac_path_to_link"
27672 fi
27673
27674
27675 ac_find_libraries=
27676 for ac_dir in $SEARCH_LIB /usr/lib;
27677 do
27678 for ac_extension in a so sl dylib; do
27679 if test -f "$ac_dir/libGLU.$ac_extension"; then
27680 ac_find_libraries=$ac_dir
27681 break 2
27682 fi
27683 done
27684 done
27685
27686 if test "$ac_find_libraries" != "" ; then
27687
27688 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27689 result=$?
27690 if test $result = 0; then
27691 ac_path_to_link=""
27692 else
27693 ac_path_to_link=" -L$ac_find_libraries"
27694 fi
27695
27696 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27697 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27698 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27699 fi
27700
27701 found_gl=1
27702 OPENGL_LIBS="-lGL -lGLU"
27703 echo "$as_me:$LINENO: result: yes" >&5
27704 echo "${ECHO_T}yes" >&6
27705 fi
27706 fi
27707
27708 if test "$found_gl" != 1; then
27709 echo "$as_me:$LINENO: result: no" >&5
27710 echo "${ECHO_T}no" >&6
27711 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27712 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27713
27714 ac_find_libraries=
27715 for ac_dir in $SEARCH_LIB /usr/lib;
27716 do
27717 for ac_extension in a so sl dylib; do
27718 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27719 ac_find_libraries=$ac_dir
27720 break 2
27721 fi
27722 done
27723 done
27724
27725 if test "$ac_find_libraries" != "" ; then
27726
27727 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27728 result=$?
27729 if test $result = 0; then
27730 ac_path_to_link=""
27731 else
27732 ac_path_to_link=" -L$ac_find_libraries"
27733 fi
27734
27735 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27736 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27737 echo "$as_me:$LINENO: result: yes" >&5
27738 echo "${ECHO_T}yes" >&6
27739 else
27740 echo "$as_me:$LINENO: result: no" >&5
27741 echo "${ECHO_T}no" >&6
27742 fi
27743 fi
27744
27745 fi
27746
27747
27748
27749 if test "x$OPENGL_LIBS" = "x"; then
27750 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27751 echo "$as_me: error: OpenGL libraries not available" >&2;}
27752 { (exit 1); exit 1; }; }
27753 fi
27754 fi
27755
27756 if test "$wxUSE_OPENGL" = "yes"; then
27757 USE_OPENGL=1
27758 cat >>confdefs.h <<\_ACEOF
27759 #define wxUSE_OPENGL 1
27760 _ACEOF
27761
27762 cat >>confdefs.h <<\_ACEOF
27763 #define wxUSE_GLCANVAS 1
27764 _ACEOF
27765
27766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27767 fi
27768 fi
27769
27770 if test -z "$TOOLKIT_VPATH" ; then
27771 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27772 fi
27773
27774 if test -n "$TOOLKIT" ; then
27775 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27776 fi
27777
27778 UNICODE=0
27779 lib_unicode_suffix=
27780 if test "$wxUSE_UNICODE" = "yes"; then
27781 lib_unicode_suffix=u
27782 UNICODE=1
27783 fi
27784
27785 lib_debug_suffix=
27786 DEBUG_FLAG=0
27787 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27788 lib_debug_suffix=d
27789 DEBUG_FLAG=1
27790 fi
27791
27792 DEBUG_INFO=0
27793 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27794 DEBUG_INFO=1
27795 fi
27796
27797 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27798
27799 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27800 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27801
27802 if test "$cross_compiling" = "yes"; then
27803 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27804 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27805 HOST_SUFFIX="-${host_alias}"
27806 fi
27807
27808 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27809 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27810 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27811 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27812
27813 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27814 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27815
27816 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27817 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27818 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27819 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27820
27821 case "${host}" in
27822 *-*-cygwin* | *-*-mingw32* )
27823 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27824 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27825 ;;
27826
27827 *-*-darwin* )
27828
27829 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27830 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27831
27832 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27833 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27834 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27835 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27836
27837 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27838 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27839 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27840 fi
27841 ;;
27842 esac
27843
27844 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27845 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27846
27847 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27848 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27849
27850 if test "$wxUSE_OPENGL" = "yes"; then
27851 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27852 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27853 fi
27854
27855
27856
27857 if test "$wxUSE_SHARED" = "yes"; then
27858 case "${host}" in
27859 *-pc-msdosdjgpp )
27860 wxUSE_SHARED=no
27861 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27862 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27863 ;;
27864 esac
27865 fi
27866
27867 SHARED=0
27868 if test "$wxUSE_SHARED" = "yes"; then
27869 SHARED=1
27870
27871
27872 found_versioning=no
27873
27874
27875 if test $found_versioning = no ; then
27876 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27877 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27878 if test "${wx_cv_version_script+set}" = set; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881
27882 echo "VER_1 { *; };" >conftest.sym
27883 echo "int main() { return 0; }" >conftest.cpp
27884
27885 if { ac_try='
27886 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27887 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } ; then
27893 if test -s conftest.stderr ; then
27894 wx_cv_version_script=no
27895 else
27896 wx_cv_version_script=yes
27897 fi
27898 else
27899 wx_cv_version_script=no
27900 fi
27901 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27902
27903 fi
27904 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27905 echo "${ECHO_T}$wx_cv_version_script" >&6
27906 if test $wx_cv_version_script = yes ; then
27907 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27908 fi
27909 fi
27910
27911
27912 case "${host}" in
27913 *-*-linux* | *-*-gnu* )
27914 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27915 ;;
27916
27917 *-*-solaris2* )
27918 if test "$GCC" = yes ; then
27919 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27920
27921 saveLdflags="$LDFLAGS"
27922 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27923 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27924 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27925 cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h. */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27931
27932 int
27933 main ()
27934 {
27935
27936 ;
27937 return 0;
27938 }
27939 _ACEOF
27940 rm -f conftest.$ac_objext conftest$ac_exeext
27941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27942 (eval $ac_link) 2>conftest.er1
27943 ac_status=$?
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
27949 { ac_try='test -z "$ac_c_werror_flag"
27950 || test ! -s conftest.err'
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try='test -s conftest$ac_exeext'
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; }; then
27962
27963 echo "$as_me:$LINENO: result: yes" >&5
27964 echo "${ECHO_T}yes" >&6
27965 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27966
27967 else
27968 echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27970
27971
27972 echo "$as_me:$LINENO: result: no" >&5
27973 echo "${ECHO_T}no" >&6
27974 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27975 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27976 LDFLAGS="$saveLdflags -Wl,-R,/"
27977 cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h. */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983
27984 int
27985 main ()
27986 {
27987
27988 ;
27989 return 0;
27990 }
27991 _ACEOF
27992 rm -f conftest.$ac_objext conftest$ac_exeext
27993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27994 (eval $ac_link) 2>conftest.er1
27995 ac_status=$?
27996 grep -v '^ *+' conftest.er1 >conftest.err
27997 rm -f conftest.er1
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } &&
28001 { ac_try='test -z "$ac_c_werror_flag"
28002 || test ! -s conftest.err'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; } &&
28008 { ac_try='test -s conftest$ac_exeext'
28009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28010 (eval $ac_try) 2>&5
28011 ac_status=$?
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); }; }; then
28014
28015 echo "$as_me:$LINENO: result: yes" >&5
28016 echo "${ECHO_T}yes" >&6
28017 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28018 else
28019 echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28021
28022
28023 echo "$as_me:$LINENO: result: no" >&5
28024 echo "${ECHO_T}no" >&6
28025
28026 fi
28027 rm -f conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
28029
28030 fi
28031 rm -f conftest.err conftest.$ac_objext \
28032 conftest$ac_exeext conftest.$ac_ext
28033 LDFLAGS="$saveLdflags"
28034 else
28035 SHARED_LD="${CXX} -G -o"
28036 PIC_FLAG="-KPIC"
28037 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28038 fi
28039 ;;
28040
28041 powerpc-*-darwin* )
28042 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28043 cat <<EOF >change-install-names
28044 #!/bin/sh
28045 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28046 inst_cmd="install_name_tool "
28047 for i in \${libnames} ; do
28048 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28049 done
28050 \${inst_cmd} \${3}
28051 EOF
28052 chmod +x change-install-names
28053 ;;
28054
28055 *-*-cygwin* | *-*-mingw32* )
28056 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28057 ;;
28058
28059 esac
28060
28061 if test "x$WX_TARGET_LIBRARY" = "x"; then
28062 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28063 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28064 fi
28065
28066 WX_TARGET_LIBRARY_TYPE="so"
28067 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28068 fi
28069
28070 if test "$wxUSE_SHARED" = "no"; then
28071
28072 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28073 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28074 fi
28075
28076 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28077 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28078 fi
28079
28080 if test "$wxUSE_OPENGL" = "yes"; then
28081 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28082 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28083 else
28084 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28085 fi
28086
28087 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28088 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28089
28090 WX_TARGET_LIBRARY_TYPE="a"
28091 INSTALL_LIBRARY='$(INSTALL_DATA)'
28092
28093 STATIC_FLAG="yes"
28094 else
28095 STATIC_FLAG="no"
28096 fi
28097
28098 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28099 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28100 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28101 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28102
28103 # Extract the first word of "Rez", so it can be a program name with args.
28104 set dummy Rez; ac_word=$2
28105 echo "$as_me:$LINENO: checking for $ac_word" >&5
28106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28107 if test "${ac_cv_prog_RESCOMP+set}" = set; then
28108 echo $ECHO_N "(cached) $ECHO_C" >&6
28109 else
28110 if test -n "$RESCOMP"; then
28111 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28112 else
28113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28114 for as_dir in $PATH
28115 do
28116 IFS=$as_save_IFS
28117 test -z "$as_dir" && as_dir=.
28118 for ac_exec_ext in '' $ac_executable_extensions; do
28119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28120 ac_cv_prog_RESCOMP="Rez"
28121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28122 break 2
28123 fi
28124 done
28125 done
28126
28127 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28128 fi
28129 fi
28130 RESCOMP=$ac_cv_prog_RESCOMP
28131 if test -n "$RESCOMP"; then
28132 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28133 echo "${ECHO_T}$RESCOMP" >&6
28134 else
28135 echo "$as_me:$LINENO: result: no" >&5
28136 echo "${ECHO_T}no" >&6
28137 fi
28138
28139 # Extract the first word of "DeRez", so it can be a program name with args.
28140 set dummy DeRez; ac_word=$2
28141 echo "$as_me:$LINENO: checking for $ac_word" >&5
28142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28143 if test "${ac_cv_prog_DEREZ+set}" = set; then
28144 echo $ECHO_N "(cached) $ECHO_C" >&6
28145 else
28146 if test -n "$DEREZ"; then
28147 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28148 else
28149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28150 for as_dir in $PATH
28151 do
28152 IFS=$as_save_IFS
28153 test -z "$as_dir" && as_dir=.
28154 for ac_exec_ext in '' $ac_executable_extensions; do
28155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28156 ac_cv_prog_DEREZ="DeRez"
28157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28158 break 2
28159 fi
28160 done
28161 done
28162
28163 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28164 fi
28165 fi
28166 DEREZ=$ac_cv_prog_DEREZ
28167 if test -n "$DEREZ"; then
28168 echo "$as_me:$LINENO: result: $DEREZ" >&5
28169 echo "${ECHO_T}$DEREZ" >&6
28170 else
28171 echo "$as_me:$LINENO: result: no" >&5
28172 echo "${ECHO_T}no" >&6
28173 fi
28174
28175 # Extract the first word of "SetFile", so it can be a program name with args.
28176 set dummy SetFile; ac_word=$2
28177 echo "$as_me:$LINENO: checking for $ac_word" >&5
28178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28179 if test "${ac_cv_prog_SETFILE+set}" = set; then
28180 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 else
28182 if test -n "$SETFILE"; then
28183 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28184 else
28185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28186 for as_dir in $PATH
28187 do
28188 IFS=$as_save_IFS
28189 test -z "$as_dir" && as_dir=.
28190 for ac_exec_ext in '' $ac_executable_extensions; do
28191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28192 ac_cv_prog_SETFILE="SetFile"
28193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28194 break 2
28195 fi
28196 done
28197 done
28198
28199 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28200 fi
28201 fi
28202 SETFILE=$ac_cv_prog_SETFILE
28203 if test -n "$SETFILE"; then
28204 echo "$as_me:$LINENO: result: $SETFILE" >&5
28205 echo "${ECHO_T}$SETFILE" >&6
28206 else
28207 echo "$as_me:$LINENO: result: no" >&5
28208 echo "${ECHO_T}no" >&6
28209 fi
28210
28211
28212 MACSETFILE="\$(SETFILE)"
28213
28214 if test "$wxUSE_MAC" = 1; then
28215 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28216
28217 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28218 else
28219 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28220 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28221 fi
28222 else
28223 MACSETFILE="@#"
28224 MACRESWXCONFIG="#"
28225
28226 if test "$wxUSE_PM" = 1; then
28227 MACRESCOMP="emxbind -ep"
28228 else
28229 MACRESCOMP="@#"
28230 fi
28231 fi
28232
28233
28234
28235 echo "$as_me:$LINENO: checking for mode_t" >&5
28236 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28237 if test "${ac_cv_type_mode_t+set}" = set; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28239 else
28240 cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h. */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28246 $ac_includes_default
28247 int
28248 main ()
28249 {
28250 if ((mode_t *) 0)
28251 return 0;
28252 if (sizeof (mode_t))
28253 return 0;
28254 ;
28255 return 0;
28256 }
28257 _ACEOF
28258 rm -f conftest.$ac_objext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28260 (eval $ac_compile) 2>conftest.er1
28261 ac_status=$?
28262 grep -v '^ *+' conftest.er1 >conftest.err
28263 rm -f conftest.er1
28264 cat conftest.err >&5
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); } &&
28267 { ac_try='test -z "$ac_c_werror_flag"
28268 || test ! -s conftest.err'
28269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270 (eval $ac_try) 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; } &&
28274 { ac_try='test -s conftest.$ac_objext'
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
28280 ac_cv_type_mode_t=yes
28281 else
28282 echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285 ac_cv_type_mode_t=no
28286 fi
28287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28288 fi
28289 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28290 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28291 if test $ac_cv_type_mode_t = yes; then
28292 :
28293 else
28294
28295 cat >>confdefs.h <<_ACEOF
28296 #define mode_t int
28297 _ACEOF
28298
28299 fi
28300
28301 echo "$as_me:$LINENO: checking for off_t" >&5
28302 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28303 if test "${ac_cv_type_off_t+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306 cat >conftest.$ac_ext <<_ACEOF
28307 /* confdefs.h. */
28308 _ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h. */
28312 $ac_includes_default
28313 int
28314 main ()
28315 {
28316 if ((off_t *) 0)
28317 return 0;
28318 if (sizeof (off_t))
28319 return 0;
28320 ;
28321 return 0;
28322 }
28323 _ACEOF
28324 rm -f conftest.$ac_objext
28325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28326 (eval $ac_compile) 2>conftest.er1
28327 ac_status=$?
28328 grep -v '^ *+' conftest.er1 >conftest.err
28329 rm -f conftest.er1
28330 cat conftest.err >&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
28333 { ac_try='test -z "$ac_c_werror_flag"
28334 || test ! -s conftest.err'
28335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28336 (eval $ac_try) 2>&5
28337 ac_status=$?
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); }; } &&
28340 { ac_try='test -s conftest.$ac_objext'
28341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 (eval $ac_try) 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; }; then
28346 ac_cv_type_off_t=yes
28347 else
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28350
28351 ac_cv_type_off_t=no
28352 fi
28353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28354 fi
28355 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28356 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28357 if test $ac_cv_type_off_t = yes; then
28358 :
28359 else
28360
28361 cat >>confdefs.h <<_ACEOF
28362 #define off_t long
28363 _ACEOF
28364
28365 fi
28366
28367 echo "$as_me:$LINENO: checking for pid_t" >&5
28368 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28369 if test "${ac_cv_type_pid_t+set}" = set; then
28370 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 else
28372 cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h. */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 $ac_includes_default
28379 int
28380 main ()
28381 {
28382 if ((pid_t *) 0)
28383 return 0;
28384 if (sizeof (pid_t))
28385 return 0;
28386 ;
28387 return 0;
28388 }
28389 _ACEOF
28390 rm -f conftest.$ac_objext
28391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28392 (eval $ac_compile) 2>conftest.er1
28393 ac_status=$?
28394 grep -v '^ *+' conftest.er1 >conftest.err
28395 rm -f conftest.er1
28396 cat conftest.err >&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } &&
28399 { ac_try='test -z "$ac_c_werror_flag"
28400 || test ! -s conftest.err'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest.$ac_objext'
28407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408 (eval $ac_try) 2>&5
28409 ac_status=$?
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; }; then
28412 ac_cv_type_pid_t=yes
28413 else
28414 echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28416
28417 ac_cv_type_pid_t=no
28418 fi
28419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28420 fi
28421 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28422 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28423 if test $ac_cv_type_pid_t = yes; then
28424 :
28425 else
28426
28427 cat >>confdefs.h <<_ACEOF
28428 #define pid_t int
28429 _ACEOF
28430
28431 fi
28432
28433 echo "$as_me:$LINENO: checking for size_t" >&5
28434 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28435 if test "${ac_cv_type_size_t+set}" = set; then
28436 echo $ECHO_N "(cached) $ECHO_C" >&6
28437 else
28438 cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h. */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h. */
28444 $ac_includes_default
28445 int
28446 main ()
28447 {
28448 if ((size_t *) 0)
28449 return 0;
28450 if (sizeof (size_t))
28451 return 0;
28452 ;
28453 return 0;
28454 }
28455 _ACEOF
28456 rm -f conftest.$ac_objext
28457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28458 (eval $ac_compile) 2>conftest.er1
28459 ac_status=$?
28460 grep -v '^ *+' conftest.er1 >conftest.err
28461 rm -f conftest.er1
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } &&
28465 { ac_try='test -z "$ac_c_werror_flag"
28466 || test ! -s conftest.err'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; } &&
28472 { ac_try='test -s conftest.$ac_objext'
28473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474 (eval $ac_try) 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; }; then
28478 ac_cv_type_size_t=yes
28479 else
28480 echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483 ac_cv_type_size_t=no
28484 fi
28485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28486 fi
28487 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28488 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28489 if test $ac_cv_type_size_t = yes; then
28490 :
28491 else
28492
28493 cat >>confdefs.h <<_ACEOF
28494 #define size_t unsigned
28495 _ACEOF
28496
28497 fi
28498
28499 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28500 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28501 if test "${ac_cv_type_uid_t+set}" = set; then
28502 echo $ECHO_N "(cached) $ECHO_C" >&6
28503 else
28504 cat >conftest.$ac_ext <<_ACEOF
28505 /* confdefs.h. */
28506 _ACEOF
28507 cat confdefs.h >>conftest.$ac_ext
28508 cat >>conftest.$ac_ext <<_ACEOF
28509 /* end confdefs.h. */
28510 #include <sys/types.h>
28511
28512 _ACEOF
28513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28514 $EGREP "uid_t" >/dev/null 2>&1; then
28515 ac_cv_type_uid_t=yes
28516 else
28517 ac_cv_type_uid_t=no
28518 fi
28519 rm -f conftest*
28520
28521 fi
28522 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28523 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28524 if test $ac_cv_type_uid_t = no; then
28525
28526 cat >>confdefs.h <<\_ACEOF
28527 #define uid_t int
28528 _ACEOF
28529
28530
28531 cat >>confdefs.h <<\_ACEOF
28532 #define gid_t int
28533 _ACEOF
28534
28535 fi
28536
28537
28538
28539
28540 ac_ext=cc
28541 ac_cpp='$CXXCPP $CPPFLAGS'
28542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28545
28546 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28547 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28548 if test "${wx_cv_size_t_is_uint+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551
28552 cat >conftest.$ac_ext <<_ACEOF
28553 /* confdefs.h. */
28554 _ACEOF
28555 cat confdefs.h >>conftest.$ac_ext
28556 cat >>conftest.$ac_ext <<_ACEOF
28557 /* end confdefs.h. */
28558 #include <stddef.h>
28559 int
28560 main ()
28561 {
28562
28563 return 0; }
28564
28565 struct Foo { void foo(size_t); void foo(unsigned int); };
28566
28567 int bar() {
28568
28569 ;
28570 return 0;
28571 }
28572 _ACEOF
28573 rm -f conftest.$ac_objext
28574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28575 (eval $ac_compile) 2>conftest.er1
28576 ac_status=$?
28577 grep -v '^ *+' conftest.er1 >conftest.err
28578 rm -f conftest.er1
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } &&
28582 { ac_try='test -z "$ac_cxx_werror_flag"
28583 || test ! -s conftest.err'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; } &&
28589 { ac_try='test -s conftest.$ac_objext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28595 wx_cv_size_t_is_uint=no
28596 else
28597 echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28599
28600 wx_cv_size_t_is_uint=yes
28601
28602 fi
28603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28604
28605
28606 fi
28607 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28608 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28609
28610 if test "$wx_cv_size_t_is_uint" = "yes"; then
28611 cat >>confdefs.h <<\_ACEOF
28612 #define wxSIZE_T_IS_UINT 1
28613 _ACEOF
28614
28615 else
28616 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28617 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28618 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621 cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h. */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28627 #include <stddef.h>
28628 int
28629 main ()
28630 {
28631
28632 return 0; }
28633
28634 struct Foo { void foo(size_t); void foo(unsigned long); };
28635
28636 int bar() {
28637
28638 ;
28639 return 0;
28640 }
28641 _ACEOF
28642 rm -f conftest.$ac_objext
28643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28644 (eval $ac_compile) 2>conftest.er1
28645 ac_status=$?
28646 grep -v '^ *+' conftest.er1 >conftest.err
28647 rm -f conftest.er1
28648 cat conftest.err >&5
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } &&
28651 { ac_try='test -z "$ac_cxx_werror_flag"
28652 || test ! -s conftest.err'
28653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28654 (eval $ac_try) 2>&5
28655 ac_status=$?
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); }; } &&
28658 { ac_try='test -s conftest.$ac_objext'
28659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28660 (eval $ac_try) 2>&5
28661 ac_status=$?
28662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663 (exit $ac_status); }; }; then
28664 wx_cv_size_t_is_ulong=no
28665 else
28666 echo "$as_me: failed program was:" >&5
28667 sed 's/^/| /' conftest.$ac_ext >&5
28668
28669 wx_cv_size_t_is_ulong=yes
28670
28671 fi
28672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28673
28674 fi
28675 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28676 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28677
28678 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28679 cat >>confdefs.h <<\_ACEOF
28680 #define wxSIZE_T_IS_ULONG 1
28681 _ACEOF
28682
28683 fi
28684 fi
28685
28686 ac_ext=c
28687 ac_cpp='$CPP $CPPFLAGS'
28688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28691
28692
28693
28694 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28695 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28696 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28697 echo $ECHO_N "(cached) $ECHO_C" >&6
28698 else
28699
28700 cat >conftest.$ac_ext <<_ACEOF
28701 /* confdefs.h. */
28702 _ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h. */
28706 #include <pwd.h>
28707 int
28708 main ()
28709 {
28710
28711 char *p;
28712 struct passwd *pw;
28713 p = pw->pw_gecos;
28714
28715 ;
28716 return 0;
28717 }
28718 _ACEOF
28719 rm -f conftest.$ac_objext
28720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28721 (eval $ac_compile) 2>conftest.er1
28722 ac_status=$?
28723 grep -v '^ *+' conftest.er1 >conftest.err
28724 rm -f conftest.er1
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag"
28729 || test ! -s conftest.err'
28730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731 (eval $ac_try) 2>&5
28732 ac_status=$?
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); }; } &&
28735 { ac_try='test -s conftest.$ac_objext'
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741
28742 wx_cv_struct_pw_gecos=yes
28743
28744 else
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28747
28748
28749 wx_cv_struct_pw_gecos=no
28750
28751
28752 fi
28753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28754
28755
28756 fi
28757 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28758 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28759
28760 if test "$wx_cv_struct_pw_gecos" = "yes"; then
28761 cat >>confdefs.h <<\_ACEOF
28762 #define HAVE_PW_GECOS 1
28763 _ACEOF
28764
28765 fi
28766
28767
28768 if test "$wx_cv_sizeof_wchar_t" != "0"; then
28769 cat >>confdefs.h <<\_ACEOF
28770 #define wxUSE_WCHAR_T 1
28771 _ACEOF
28772
28773
28774 WCSLEN_FOUND=0
28775 WCHAR_LINK=
28776
28777 for ac_func in wcslen
28778 do
28779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28780 echo "$as_me:$LINENO: checking for $ac_func" >&5
28781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28782 if eval "test \"\${$as_ac_var+set}\" = set"; then
28783 echo $ECHO_N "(cached) $ECHO_C" >&6
28784 else
28785 cat >conftest.$ac_ext <<_ACEOF
28786 /* confdefs.h. */
28787 _ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h. */
28791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28793 #define $ac_func innocuous_$ac_func
28794
28795 /* System header to define __stub macros and hopefully few prototypes,
28796 which can conflict with char $ac_func (); below.
28797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28798 <limits.h> exists even on freestanding compilers. */
28799
28800 #ifdef __STDC__
28801 # include <limits.h>
28802 #else
28803 # include <assert.h>
28804 #endif
28805
28806 #undef $ac_func
28807
28808 /* Override any gcc2 internal prototype to avoid an error. */
28809 #ifdef __cplusplus
28810 extern "C"
28811 {
28812 #endif
28813 /* We use char because int might match the return type of a gcc2
28814 builtin and then its argument prototype would still apply. */
28815 char $ac_func ();
28816 /* The GNU C library defines this for functions which it implements
28817 to always fail with ENOSYS. Some functions are actually named
28818 something starting with __ and the normal name is an alias. */
28819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28820 choke me
28821 #else
28822 char (*f) () = $ac_func;
28823 #endif
28824 #ifdef __cplusplus
28825 }
28826 #endif
28827
28828 int
28829 main ()
28830 {
28831 return f != $ac_func;
28832 ;
28833 return 0;
28834 }
28835 _ACEOF
28836 rm -f conftest.$ac_objext conftest$ac_exeext
28837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28838 (eval $ac_link) 2>conftest.er1
28839 ac_status=$?
28840 grep -v '^ *+' conftest.er1 >conftest.err
28841 rm -f conftest.er1
28842 cat conftest.err >&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); } &&
28845 { ac_try='test -z "$ac_c_werror_flag"
28846 || test ! -s conftest.err'
28847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848 (eval $ac_try) 2>&5
28849 ac_status=$?
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); }; } &&
28852 { ac_try='test -s conftest$ac_exeext'
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28855 ac_status=$?
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; }; then
28858 eval "$as_ac_var=yes"
28859 else
28860 echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28862
28863 eval "$as_ac_var=no"
28864 fi
28865 rm -f conftest.err conftest.$ac_objext \
28866 conftest$ac_exeext conftest.$ac_ext
28867 fi
28868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28870 if test `eval echo '${'$as_ac_var'}'` = yes; then
28871 cat >>confdefs.h <<_ACEOF
28872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28873 _ACEOF
28874 WCSLEN_FOUND=1
28875 fi
28876 done
28877
28878
28879 if test "$WCSLEN_FOUND" = 0; then
28880 if test "$TOOLKIT" = "MSW"; then
28881 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28882 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28883 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886 ac_check_lib_save_LIBS=$LIBS
28887 LIBS="-lmsvcrt $LIBS"
28888 cat >conftest.$ac_ext <<_ACEOF
28889 /* confdefs.h. */
28890 _ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h. */
28894
28895 /* Override any gcc2 internal prototype to avoid an error. */
28896 #ifdef __cplusplus
28897 extern "C"
28898 #endif
28899 /* We use char because int might match the return type of a gcc2
28900 builtin and then its argument prototype would still apply. */
28901 char wcslen ();
28902 int
28903 main ()
28904 {
28905 wcslen ();
28906 ;
28907 return 0;
28908 }
28909 _ACEOF
28910 rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28912 (eval $ac_link) 2>conftest.er1
28913 ac_status=$?
28914 grep -v '^ *+' conftest.er1 >conftest.err
28915 rm -f conftest.er1
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } &&
28919 { ac_try='test -z "$ac_c_werror_flag"
28920 || test ! -s conftest.err'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28923 ac_status=$?
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; } &&
28926 { ac_try='test -s conftest$ac_exeext'
28927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928 (eval $ac_try) 2>&5
28929 ac_status=$?
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 ac_cv_lib_msvcrt_wcslen=yes
28933 else
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28936
28937 ac_cv_lib_msvcrt_wcslen=no
28938 fi
28939 rm -f conftest.err conftest.$ac_objext \
28940 conftest$ac_exeext conftest.$ac_ext
28941 LIBS=$ac_check_lib_save_LIBS
28942 fi
28943 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28944 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28945 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28946 WCHAR_OK=1
28947 fi
28948
28949 else
28950 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28951 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28952 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28953 echo $ECHO_N "(cached) $ECHO_C" >&6
28954 else
28955 ac_check_lib_save_LIBS=$LIBS
28956 LIBS="-lw $LIBS"
28957 cat >conftest.$ac_ext <<_ACEOF
28958 /* confdefs.h. */
28959 _ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h. */
28963
28964 /* Override any gcc2 internal prototype to avoid an error. */
28965 #ifdef __cplusplus
28966 extern "C"
28967 #endif
28968 /* We use char because int might match the return type of a gcc2
28969 builtin and then its argument prototype would still apply. */
28970 char wcslen ();
28971 int
28972 main ()
28973 {
28974 wcslen ();
28975 ;
28976 return 0;
28977 }
28978 _ACEOF
28979 rm -f conftest.$ac_objext conftest$ac_exeext
28980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28981 (eval $ac_link) 2>conftest.er1
28982 ac_status=$?
28983 grep -v '^ *+' conftest.er1 >conftest.err
28984 rm -f conftest.er1
28985 cat conftest.err >&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
28988 { ac_try='test -z "$ac_c_werror_flag"
28989 || test ! -s conftest.err'
28990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28991 (eval $ac_try) 2>&5
28992 ac_status=$?
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; } &&
28995 { ac_try='test -s conftest$ac_exeext'
28996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997 (eval $ac_try) 2>&5
28998 ac_status=$?
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29001 ac_cv_lib_w_wcslen=yes
29002 else
29003 echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29005
29006 ac_cv_lib_w_wcslen=no
29007 fi
29008 rm -f conftest.err conftest.$ac_objext \
29009 conftest$ac_exeext conftest.$ac_ext
29010 LIBS=$ac_check_lib_save_LIBS
29011 fi
29012 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29013 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29014 if test $ac_cv_lib_w_wcslen = yes; then
29015
29016 WCHAR_LINK=" -lw"
29017 WCSLEN_FOUND=1
29018
29019 fi
29020
29021 fi
29022 fi
29023
29024 if test "$WCSLEN_FOUND" = 1; then
29025 cat >>confdefs.h <<\_ACEOF
29026 #define HAVE_WCSLEN 1
29027 _ACEOF
29028
29029 fi
29030
29031
29032 for ac_func in wcsrtombs
29033 do
29034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29035 echo "$as_me:$LINENO: checking for $ac_func" >&5
29036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29037 if eval "test \"\${$as_ac_var+set}\" = set"; then
29038 echo $ECHO_N "(cached) $ECHO_C" >&6
29039 else
29040 cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h. */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h. */
29046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29048 #define $ac_func innocuous_$ac_func
29049
29050 /* System header to define __stub macros and hopefully few prototypes,
29051 which can conflict with char $ac_func (); below.
29052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29053 <limits.h> exists even on freestanding compilers. */
29054
29055 #ifdef __STDC__
29056 # include <limits.h>
29057 #else
29058 # include <assert.h>
29059 #endif
29060
29061 #undef $ac_func
29062
29063 /* Override any gcc2 internal prototype to avoid an error. */
29064 #ifdef __cplusplus
29065 extern "C"
29066 {
29067 #endif
29068 /* We use char because int might match the return type of a gcc2
29069 builtin and then its argument prototype would still apply. */
29070 char $ac_func ();
29071 /* The GNU C library defines this for functions which it implements
29072 to always fail with ENOSYS. Some functions are actually named
29073 something starting with __ and the normal name is an alias. */
29074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29075 choke me
29076 #else
29077 char (*f) () = $ac_func;
29078 #endif
29079 #ifdef __cplusplus
29080 }
29081 #endif
29082
29083 int
29084 main ()
29085 {
29086 return f != $ac_func;
29087 ;
29088 return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093 (eval $ac_link) 2>conftest.er1
29094 ac_status=$?
29095 grep -v '^ *+' conftest.er1 >conftest.err
29096 rm -f conftest.er1
29097 cat conftest.err >&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
29100 { ac_try='test -z "$ac_c_werror_flag"
29101 || test ! -s conftest.err'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; } &&
29107 { ac_try='test -s conftest$ac_exeext'
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29110 ac_status=$?
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; }; then
29113 eval "$as_ac_var=yes"
29114 else
29115 echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 eval "$as_ac_var=no"
29119 fi
29120 rm -f conftest.err conftest.$ac_objext \
29121 conftest$ac_exeext conftest.$ac_ext
29122 fi
29123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29125 if test `eval echo '${'$as_ac_var'}'` = yes; then
29126 cat >>confdefs.h <<_ACEOF
29127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29128 _ACEOF
29129
29130 fi
29131 done
29132
29133 else
29134 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29135 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29136 fi
29137
29138
29139
29140 ac_ext=cc
29141 ac_cpp='$CXXCPP $CPPFLAGS'
29142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29145
29146
29147
29148 for ac_func in vsnprintf
29149 do
29150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29151 echo "$as_me:$LINENO: checking for $ac_func" >&5
29152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29153 if eval "test \"\${$as_ac_var+set}\" = set"; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29155 else
29156 cat >conftest.$ac_ext <<_ACEOF
29157 /* confdefs.h. */
29158 _ACEOF
29159 cat confdefs.h >>conftest.$ac_ext
29160 cat >>conftest.$ac_ext <<_ACEOF
29161 /* end confdefs.h. */
29162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29164 #define $ac_func innocuous_$ac_func
29165
29166 /* System header to define __stub macros and hopefully few prototypes,
29167 which can conflict with char $ac_func (); below.
29168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29169 <limits.h> exists even on freestanding compilers. */
29170
29171 #ifdef __STDC__
29172 # include <limits.h>
29173 #else
29174 # include <assert.h>
29175 #endif
29176
29177 #undef $ac_func
29178
29179 /* Override any gcc2 internal prototype to avoid an error. */
29180 #ifdef __cplusplus
29181 extern "C"
29182 {
29183 #endif
29184 /* We use char because int might match the return type of a gcc2
29185 builtin and then its argument prototype would still apply. */
29186 char $ac_func ();
29187 /* The GNU C library defines this for functions which it implements
29188 to always fail with ENOSYS. Some functions are actually named
29189 something starting with __ and the normal name is an alias. */
29190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29191 choke me
29192 #else
29193 char (*f) () = $ac_func;
29194 #endif
29195 #ifdef __cplusplus
29196 }
29197 #endif
29198
29199 int
29200 main ()
29201 {
29202 return f != $ac_func;
29203 ;
29204 return 0;
29205 }
29206 _ACEOF
29207 rm -f conftest.$ac_objext conftest$ac_exeext
29208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29209 (eval $ac_link) 2>conftest.er1
29210 ac_status=$?
29211 grep -v '^ *+' conftest.er1 >conftest.err
29212 rm -f conftest.er1
29213 cat conftest.err >&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
29216 { ac_try='test -z "$ac_cxx_werror_flag"
29217 || test ! -s conftest.err'
29218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29219 (eval $ac_try) 2>&5
29220 ac_status=$?
29221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 (exit $ac_status); }; } &&
29223 { ac_try='test -s conftest$ac_exeext'
29224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225 (eval $ac_try) 2>&5
29226 ac_status=$?
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; }; then
29229 eval "$as_ac_var=yes"
29230 else
29231 echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29233
29234 eval "$as_ac_var=no"
29235 fi
29236 rm -f conftest.err conftest.$ac_objext \
29237 conftest$ac_exeext conftest.$ac_ext
29238 fi
29239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29241 if test `eval echo '${'$as_ac_var'}'` = yes; then
29242 cat >>confdefs.h <<_ACEOF
29243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29244 _ACEOF
29245
29246 fi
29247 done
29248
29249
29250 if test "$ac_cv_func_vsnprintf" = "yes"; then
29251 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29252 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29253 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29255 else
29256
29257 cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h. */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29263
29264 #include <stdio.h>
29265 #include <stdarg.h>
29266
29267 int
29268 main ()
29269 {
29270
29271 char *buf;
29272 va_list ap;
29273 vsnprintf(buf, 10u, "%s", ap);
29274
29275 ;
29276 return 0;
29277 }
29278 _ACEOF
29279 rm -f conftest.$ac_objext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29281 (eval $ac_compile) 2>conftest.er1
29282 ac_status=$?
29283 grep -v '^ *+' conftest.er1 >conftest.err
29284 rm -f conftest.er1
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_cxx_werror_flag"
29289 || test ! -s conftest.err'
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29292 ac_status=$?
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; } &&
29295 { ac_try='test -s conftest.$ac_objext'
29296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297 (eval $ac_try) 2>&5
29298 ac_status=$?
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); }; }; then
29301 wx_cv_func_vsnprintf_decl=yes
29302 else
29303 echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29305
29306 wx_cv_func_vsnprintf_decl=no
29307
29308 fi
29309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29310
29311
29312 fi
29313 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29314 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29315
29316 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29317 cat >>confdefs.h <<\_ACEOF
29318 #define HAVE_VSNPRINTF_DECL 1
29319 _ACEOF
29320
29321 fi
29322 fi
29323
29324 if test "$wxUSE_UNICODE" = yes; then
29325
29326
29327
29328 for ac_func in fputwc wprintf vswprintf
29329 do
29330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29331 echo "$as_me:$LINENO: checking for $ac_func" >&5
29332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29333 if eval "test \"\${$as_ac_var+set}\" = set"; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29335 else
29336 cat >conftest.$ac_ext <<_ACEOF
29337 /* confdefs.h. */
29338 _ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h. */
29342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29344 #define $ac_func innocuous_$ac_func
29345
29346 /* System header to define __stub macros and hopefully few prototypes,
29347 which can conflict with char $ac_func (); below.
29348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29349 <limits.h> exists even on freestanding compilers. */
29350
29351 #ifdef __STDC__
29352 # include <limits.h>
29353 #else
29354 # include <assert.h>
29355 #endif
29356
29357 #undef $ac_func
29358
29359 /* Override any gcc2 internal prototype to avoid an error. */
29360 #ifdef __cplusplus
29361 extern "C"
29362 {
29363 #endif
29364 /* We use char because int might match the return type of a gcc2
29365 builtin and then its argument prototype would still apply. */
29366 char $ac_func ();
29367 /* The GNU C library defines this for functions which it implements
29368 to always fail with ENOSYS. Some functions are actually named
29369 something starting with __ and the normal name is an alias. */
29370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29371 choke me
29372 #else
29373 char (*f) () = $ac_func;
29374 #endif
29375 #ifdef __cplusplus
29376 }
29377 #endif
29378
29379 int
29380 main ()
29381 {
29382 return f != $ac_func;
29383 ;
29384 return 0;
29385 }
29386 _ACEOF
29387 rm -f conftest.$ac_objext conftest$ac_exeext
29388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29389 (eval $ac_link) 2>conftest.er1
29390 ac_status=$?
29391 grep -v '^ *+' conftest.er1 >conftest.err
29392 rm -f conftest.er1
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } &&
29396 { ac_try='test -z "$ac_cxx_werror_flag"
29397 || test ! -s conftest.err'
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29400 ac_status=$?
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; } &&
29403 { ac_try='test -s conftest$ac_exeext'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
29409 eval "$as_ac_var=yes"
29410 else
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29413
29414 eval "$as_ac_var=no"
29415 fi
29416 rm -f conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
29418 fi
29419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29421 if test `eval echo '${'$as_ac_var'}'` = yes; then
29422 cat >>confdefs.h <<_ACEOF
29423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29424 _ACEOF
29425
29426 fi
29427 done
29428
29429
29430 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29431 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29432 cat >conftest.$ac_ext <<_ACEOF
29433 /* confdefs.h. */
29434 _ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 #include <wchar.h>
29439 int
29440 main ()
29441 {
29442 &_vsnwprintf;
29443 ;
29444 return 0;
29445 }
29446 _ACEOF
29447 rm -f conftest.$ac_objext
29448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29449 (eval $ac_compile) 2>conftest.er1
29450 ac_status=$?
29451 grep -v '^ *+' conftest.er1 >conftest.err
29452 rm -f conftest.er1
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_cxx_werror_flag"
29457 || test ! -s conftest.err'
29458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459 (eval $ac_try) 2>&5
29460 ac_status=$?
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); }; } &&
29463 { ac_try='test -s conftest.$ac_objext'
29464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465 (eval $ac_try) 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
29469 echo "$as_me:$LINENO: result: yes" >&5
29470 echo "${ECHO_T}yes" >&6
29471 cat >>confdefs.h <<\_ACEOF
29472 #define HAVE__VSNWPRINTF 1
29473 _ACEOF
29474
29475 else
29476 echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29478
29479 echo "$as_me:$LINENO: result: no" >&5
29480 echo "${ECHO_T}no" >&6
29481 fi
29482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29483 fi
29484
29485 ac_ext=c
29486 ac_cpp='$CPP $CPPFLAGS'
29487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29490
29491
29492
29493
29494 if test "$TOOLKIT" != "MSW"; then
29495
29496
29497
29498
29499 ac_ext=cc
29500 ac_cpp='$CXXCPP $CPPFLAGS'
29501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29504
29505
29506
29507
29508 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29509 if test "${with_libiconv_prefix+set}" = set; then
29510 withval="$with_libiconv_prefix"
29511
29512 for dir in `echo "$withval" | tr : ' '`; do
29513 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29514 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29515 done
29516
29517 fi;
29518
29519 echo "$as_me:$LINENO: checking for iconv" >&5
29520 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29521 if test "${am_cv_func_iconv+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524
29525 am_cv_func_iconv="no, consider installing GNU libiconv"
29526 am_cv_lib_iconv=no
29527 cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h. */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h. */
29533 #include <stdlib.h>
29534 #include <iconv.h>
29535 int
29536 main ()
29537 {
29538 iconv_t cd = iconv_open("","");
29539 iconv(cd,NULL,NULL,NULL,NULL);
29540 iconv_close(cd);
29541 ;
29542 return 0;
29543 }
29544 _ACEOF
29545 rm -f conftest.$ac_objext conftest$ac_exeext
29546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29547 (eval $ac_link) 2>conftest.er1
29548 ac_status=$?
29549 grep -v '^ *+' conftest.er1 >conftest.err
29550 rm -f conftest.er1
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
29554 { ac_try='test -z "$ac_cxx_werror_flag"
29555 || test ! -s conftest.err'
29556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29557 (eval $ac_try) 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest$ac_exeext'
29562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; }; then
29567 am_cv_func_iconv=yes
29568 else
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29571
29572 fi
29573 rm -f conftest.err conftest.$ac_objext \
29574 conftest$ac_exeext conftest.$ac_ext
29575 if test "$am_cv_func_iconv" != yes; then
29576 am_save_LIBS="$LIBS"
29577 LIBS="$LIBS -liconv"
29578 cat >conftest.$ac_ext <<_ACEOF
29579 /* confdefs.h. */
29580 _ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h. */
29584 #include <stdlib.h>
29585 #include <iconv.h>
29586 int
29587 main ()
29588 {
29589 iconv_t cd = iconv_open("","");
29590 iconv(cd,NULL,NULL,NULL,NULL);
29591 iconv_close(cd);
29592 ;
29593 return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext conftest$ac_exeext
29597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29598 (eval $ac_link) 2>conftest.er1
29599 ac_status=$?
29600 grep -v '^ *+' conftest.er1 >conftest.err
29601 rm -f conftest.er1
29602 cat conftest.err >&5
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); } &&
29605 { ac_try='test -z "$ac_cxx_werror_flag"
29606 || test ! -s conftest.err'
29607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29608 (eval $ac_try) 2>&5
29609 ac_status=$?
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); }; } &&
29612 { ac_try='test -s conftest$ac_exeext'
29613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614 (eval $ac_try) 2>&5
29615 ac_status=$?
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); }; }; then
29618 am_cv_lib_iconv=yes
29619 am_cv_func_iconv=yes
29620 else
29621 echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29623
29624 fi
29625 rm -f conftest.err conftest.$ac_objext \
29626 conftest$ac_exeext conftest.$ac_ext
29627 LIBS="$am_save_LIBS"
29628 fi
29629
29630 fi
29631 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29632 echo "${ECHO_T}$am_cv_func_iconv" >&6
29633 if test "$am_cv_func_iconv" = yes; then
29634
29635 cat >>confdefs.h <<\_ACEOF
29636 #define HAVE_ICONV 1
29637 _ACEOF
29638
29639 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29640 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29641 if test "${wx_cv_func_iconv_const+set}" = set; then
29642 echo $ECHO_N "(cached) $ECHO_C" >&6
29643 else
29644 cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h. */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29650
29651 #include <stdlib.h>
29652 #include <iconv.h>
29653 extern
29654 #ifdef __cplusplus
29655 "C"
29656 #endif
29657 #if defined(__STDC__) || defined(__cplusplus)
29658 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29659 #else
29660 size_t iconv();
29661 #endif
29662
29663 int
29664 main ()
29665 {
29666
29667 ;
29668 return 0;
29669 }
29670 _ACEOF
29671 rm -f conftest.$ac_objext
29672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29673 (eval $ac_compile) 2>conftest.er1
29674 ac_status=$?
29675 grep -v '^ *+' conftest.er1 >conftest.err
29676 rm -f conftest.er1
29677 cat conftest.err >&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } &&
29680 { ac_try='test -z "$ac_cxx_werror_flag"
29681 || test ! -s conftest.err'
29682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683 (eval $ac_try) 2>&5
29684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest.$ac_objext'
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693 wx_cv_func_iconv_const="no"
29694 else
29695 echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29697
29698 wx_cv_func_iconv_const="yes"
29699
29700 fi
29701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29702
29703 fi
29704 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29705 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29706
29707 iconv_const=
29708 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29709 iconv_const="const"
29710 fi
29711
29712
29713 cat >>confdefs.h <<_ACEOF
29714 #define ICONV_CONST $iconv_const
29715 _ACEOF
29716
29717 fi
29718 LIBICONV=
29719 if test "$am_cv_lib_iconv" = yes; then
29720 LIBICONV="-liconv"
29721 fi
29722
29723
29724 LIBS="$LIBICONV $LIBS"
29725 ac_ext=c
29726 ac_cpp='$CPP $CPPFLAGS'
29727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29730
29731
29732 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29733
29734 for ac_func in sigaction
29735 do
29736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29737 echo "$as_me:$LINENO: checking for $ac_func" >&5
29738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29739 if eval "test \"\${$as_ac_var+set}\" = set"; then
29740 echo $ECHO_N "(cached) $ECHO_C" >&6
29741 else
29742 cat >conftest.$ac_ext <<_ACEOF
29743 /* confdefs.h. */
29744 _ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h. */
29748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29750 #define $ac_func innocuous_$ac_func
29751
29752 /* System header to define __stub macros and hopefully few prototypes,
29753 which can conflict with char $ac_func (); below.
29754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29755 <limits.h> exists even on freestanding compilers. */
29756
29757 #ifdef __STDC__
29758 # include <limits.h>
29759 #else
29760 # include <assert.h>
29761 #endif
29762
29763 #undef $ac_func
29764
29765 /* Override any gcc2 internal prototype to avoid an error. */
29766 #ifdef __cplusplus
29767 extern "C"
29768 {
29769 #endif
29770 /* We use char because int might match the return type of a gcc2
29771 builtin and then its argument prototype would still apply. */
29772 char $ac_func ();
29773 /* The GNU C library defines this for functions which it implements
29774 to always fail with ENOSYS. Some functions are actually named
29775 something starting with __ and the normal name is an alias. */
29776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29777 choke me
29778 #else
29779 char (*f) () = $ac_func;
29780 #endif
29781 #ifdef __cplusplus
29782 }
29783 #endif
29784
29785 int
29786 main ()
29787 {
29788 return f != $ac_func;
29789 ;
29790 return 0;
29791 }
29792 _ACEOF
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29795 (eval $ac_link) 2>conftest.er1
29796 ac_status=$?
29797 grep -v '^ *+' conftest.er1 >conftest.err
29798 rm -f conftest.er1
29799 cat conftest.err >&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
29802 { ac_try='test -z "$ac_c_werror_flag"
29803 || test ! -s conftest.err'
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest$ac_exeext'
29810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811 (eval $ac_try) 2>&5
29812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29815 eval "$as_ac_var=yes"
29816 else
29817 echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29819
29820 eval "$as_ac_var=no"
29821 fi
29822 rm -f conftest.err conftest.$ac_objext \
29823 conftest$ac_exeext conftest.$ac_ext
29824 fi
29825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29827 if test `eval echo '${'$as_ac_var'}'` = yes; then
29828 cat >>confdefs.h <<_ACEOF
29829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29830 _ACEOF
29831
29832 fi
29833 done
29834
29835
29836 if test "$ac_cv_func_sigaction" = "no"; then
29837 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29838 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29839 wxUSE_ON_FATAL_EXCEPTION=no
29840 fi
29841
29842 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29843
29844
29845 ac_ext=cc
29846 ac_cpp='$CXXCPP $CPPFLAGS'
29847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29850
29851
29852 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29853 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29854 if test "${wx_cv_type_sa_handler+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857
29858 cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h. */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h. */
29864 #include <signal.h>
29865 int
29866 main ()
29867 {
29868
29869 extern void testSigHandler(int);
29870
29871 struct sigaction sa;
29872 sa.sa_handler = testSigHandler;
29873
29874 ;
29875 return 0;
29876 }
29877 _ACEOF
29878 rm -f conftest.$ac_objext
29879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29880 (eval $ac_compile) 2>conftest.er1
29881 ac_status=$?
29882 grep -v '^ *+' conftest.er1 >conftest.err
29883 rm -f conftest.er1
29884 cat conftest.err >&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
29887 { ac_try='test -z "$ac_cxx_werror_flag"
29888 || test ! -s conftest.err'
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29891 ac_status=$?
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; } &&
29894 { ac_try='test -s conftest.$ac_objext'
29895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896 (eval $ac_try) 2>&5
29897 ac_status=$?
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); }; }; then
29900
29901 wx_cv_type_sa_handler=int
29902
29903 else
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29906
29907
29908 wx_cv_type_sa_handler=void
29909
29910 fi
29911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29912
29913 fi
29914 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29915 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29916
29917 ac_ext=c
29918 ac_cpp='$CPP $CPPFLAGS'
29919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29922
29923
29924 cat >>confdefs.h <<_ACEOF
29925 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29926 _ACEOF
29927
29928 fi
29929 fi
29930
29931
29932
29933 for ac_func in mkstemp mktemp
29934 do
29935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29936 echo "$as_me:$LINENO: checking for $ac_func" >&5
29937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29938 if eval "test \"\${$as_ac_var+set}\" = set"; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941 cat >conftest.$ac_ext <<_ACEOF
29942 /* confdefs.h. */
29943 _ACEOF
29944 cat confdefs.h >>conftest.$ac_ext
29945 cat >>conftest.$ac_ext <<_ACEOF
29946 /* end confdefs.h. */
29947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29949 #define $ac_func innocuous_$ac_func
29950
29951 /* System header to define __stub macros and hopefully few prototypes,
29952 which can conflict with char $ac_func (); below.
29953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29954 <limits.h> exists even on freestanding compilers. */
29955
29956 #ifdef __STDC__
29957 # include <limits.h>
29958 #else
29959 # include <assert.h>
29960 #endif
29961
29962 #undef $ac_func
29963
29964 /* Override any gcc2 internal prototype to avoid an error. */
29965 #ifdef __cplusplus
29966 extern "C"
29967 {
29968 #endif
29969 /* We use char because int might match the return type of a gcc2
29970 builtin and then its argument prototype would still apply. */
29971 char $ac_func ();
29972 /* The GNU C library defines this for functions which it implements
29973 to always fail with ENOSYS. Some functions are actually named
29974 something starting with __ and the normal name is an alias. */
29975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29976 choke me
29977 #else
29978 char (*f) () = $ac_func;
29979 #endif
29980 #ifdef __cplusplus
29981 }
29982 #endif
29983
29984 int
29985 main ()
29986 {
29987 return f != $ac_func;
29988 ;
29989 return 0;
29990 }
29991 _ACEOF
29992 rm -f conftest.$ac_objext conftest$ac_exeext
29993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29994 (eval $ac_link) 2>conftest.er1
29995 ac_status=$?
29996 grep -v '^ *+' conftest.er1 >conftest.err
29997 rm -f conftest.er1
29998 cat conftest.err >&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } &&
30001 { ac_try='test -z "$ac_c_werror_flag"
30002 || test ! -s conftest.err'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 eval "$as_ac_var=yes"
30015 else
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30018
30019 eval "$as_ac_var=no"
30020 fi
30021 rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
30023 fi
30024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30026 if test `eval echo '${'$as_ac_var'}'` = yes; then
30027 cat >>confdefs.h <<_ACEOF
30028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30029 _ACEOF
30030 break
30031 fi
30032 done
30033
30034
30035 echo "$as_me:$LINENO: checking for statfs" >&5
30036 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30037 if test "${wx_cv_func_statfs+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30039 else
30040 cat >conftest.$ac_ext <<_ACEOF
30041 /* confdefs.h. */
30042 _ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h. */
30046
30047 #if defined(__BSD__)
30048 #include <sys/param.h>
30049 #include <sys/mount.h>
30050 #else
30051 #include <sys/vfs.h>
30052 #endif
30053
30054 int
30055 main ()
30056 {
30057
30058 long l;
30059 struct statfs fs;
30060 statfs("/", &fs);
30061 l = fs.f_bsize;
30062 l += fs.f_blocks;
30063 l += fs.f_bavail;
30064
30065 ;
30066 return 0;
30067 }
30068 _ACEOF
30069 rm -f conftest.$ac_objext
30070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30071 (eval $ac_compile) 2>conftest.er1
30072 ac_status=$?
30073 grep -v '^ *+' conftest.er1 >conftest.err
30074 rm -f conftest.er1
30075 cat conftest.err >&5
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); } &&
30078 { ac_try='test -z "$ac_c_werror_flag"
30079 || test ! -s conftest.err'
30080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30081 (eval $ac_try) 2>&5
30082 ac_status=$?
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); }; } &&
30085 { ac_try='test -s conftest.$ac_objext'
30086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087 (eval $ac_try) 2>&5
30088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; }; then
30091
30092 wx_cv_func_statfs=yes
30093
30094 else
30095 echo "$as_me: failed program was:" >&5
30096 sed 's/^/| /' conftest.$ac_ext >&5
30097
30098
30099 wx_cv_func_statfs=no
30100
30101
30102 fi
30103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30104
30105 fi
30106 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30107 echo "${ECHO_T}$wx_cv_func_statfs" >&6
30108
30109 if test "$wx_cv_func_statfs" = "yes"; then
30110 wx_cv_type_statvfs_t="struct statfs"
30111 cat >>confdefs.h <<\_ACEOF
30112 #define HAVE_STATFS 1
30113 _ACEOF
30114
30115 else
30116 echo "$as_me:$LINENO: checking for statvfs" >&5
30117 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30118 if test "${wx_cv_func_statvfs+set}" = set; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121 cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h. */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127
30128 #include <stddef.h>
30129 #include <sys/statvfs.h>
30130
30131 int
30132 main ()
30133 {
30134
30135 statvfs("/", NULL);
30136
30137 ;
30138 return 0;
30139 }
30140 _ACEOF
30141 rm -f conftest.$ac_objext
30142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30143 (eval $ac_compile) 2>conftest.er1
30144 ac_status=$?
30145 grep -v '^ *+' conftest.er1 >conftest.err
30146 rm -f conftest.er1
30147 cat conftest.err >&5
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); } &&
30150 { ac_try='test -z "$ac_c_werror_flag"
30151 || test ! -s conftest.err'
30152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30153 (eval $ac_try) 2>&5
30154 ac_status=$?
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; } &&
30157 { ac_try='test -s conftest.$ac_objext'
30158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159 (eval $ac_try) 2>&5
30160 ac_status=$?
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; }; then
30163 wx_cv_func_statvfs=yes
30164 else
30165 echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30167
30168 wx_cv_func_statvfs=no
30169
30170 fi
30171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30172
30173 fi
30174 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30175 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30176
30177 if test "$wx_cv_func_statvfs" = "yes"; then
30178
30179
30180 ac_ext=cc
30181 ac_cpp='$CXXCPP $CPPFLAGS'
30182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30185
30186
30187 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30188 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30189 if test "${wx_cv_type_statvfs_t+set}" = set; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30191 else
30192 cat >conftest.$ac_ext <<_ACEOF
30193 /* confdefs.h. */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h. */
30198
30199 #include <sys/statvfs.h>
30200
30201 int
30202 main ()
30203 {
30204
30205 long l;
30206 statvfs_t fs;
30207 statvfs("/", &fs);
30208 l = fs.f_bsize;
30209 l += fs.f_blocks;
30210 l += fs.f_bavail;
30211
30212 ;
30213 return 0;
30214 }
30215 _ACEOF
30216 rm -f conftest.$ac_objext
30217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30218 (eval $ac_compile) 2>conftest.er1
30219 ac_status=$?
30220 grep -v '^ *+' conftest.er1 >conftest.err
30221 rm -f conftest.er1
30222 cat conftest.err >&5
30223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); } &&
30225 { ac_try='test -z "$ac_cxx_werror_flag"
30226 || test ! -s conftest.err'
30227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228 (eval $ac_try) 2>&5
30229 ac_status=$?
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; } &&
30232 { ac_try='test -s conftest.$ac_objext'
30233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234 (eval $ac_try) 2>&5
30235 ac_status=$?
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; }; then
30238 wx_cv_type_statvfs_t=statvfs_t
30239 else
30240 echo "$as_me: failed program was:" >&5
30241 sed 's/^/| /' conftest.$ac_ext >&5
30242
30243
30244 cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h. */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30250
30251 #include <sys/statvfs.h>
30252
30253 int
30254 main ()
30255 {
30256
30257 long l;
30258 struct statvfs fs;
30259 statvfs("/", &fs);
30260 l = fs.f_bsize;
30261 l += fs.f_blocks;
30262 l += fs.f_bavail;
30263
30264 ;
30265 return 0;
30266 }
30267 _ACEOF
30268 rm -f conftest.$ac_objext
30269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30270 (eval $ac_compile) 2>conftest.er1
30271 ac_status=$?
30272 grep -v '^ *+' conftest.er1 >conftest.err
30273 rm -f conftest.er1
30274 cat conftest.err >&5
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); } &&
30277 { ac_try='test -z "$ac_cxx_werror_flag"
30278 || test ! -s conftest.err'
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; } &&
30284 { ac_try='test -s conftest.$ac_objext'
30285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286 (eval $ac_try) 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; }; then
30290 wx_cv_type_statvfs_t="struct statvfs"
30291 else
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30294
30295 wx_cv_type_statvfs_t="unknown"
30296
30297 fi
30298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30299
30300
30301 fi
30302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30303
30304 fi
30305 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30306 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30307
30308 ac_ext=c
30309 ac_cpp='$CPP $CPPFLAGS'
30310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30313
30314
30315 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30316 cat >>confdefs.h <<\_ACEOF
30317 #define HAVE_STATVFS 1
30318 _ACEOF
30319
30320 fi
30321 else
30322 wx_cv_type_statvfs_t="unknown"
30323 fi
30324 fi
30325
30326 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30327 cat >>confdefs.h <<_ACEOF
30328 #define WX_STATFS_T $wx_cv_type_statvfs_t
30329 _ACEOF
30330
30331 else
30332 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30333 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30334 fi
30335
30336 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30337
30338
30339 for ac_func in fcntl flock
30340 do
30341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30342 echo "$as_me:$LINENO: checking for $ac_func" >&5
30343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30344 if eval "test \"\${$as_ac_var+set}\" = set"; then
30345 echo $ECHO_N "(cached) $ECHO_C" >&6
30346 else
30347 cat >conftest.$ac_ext <<_ACEOF
30348 /* confdefs.h. */
30349 _ACEOF
30350 cat confdefs.h >>conftest.$ac_ext
30351 cat >>conftest.$ac_ext <<_ACEOF
30352 /* end confdefs.h. */
30353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30355 #define $ac_func innocuous_$ac_func
30356
30357 /* System header to define __stub macros and hopefully few prototypes,
30358 which can conflict with char $ac_func (); below.
30359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30360 <limits.h> exists even on freestanding compilers. */
30361
30362 #ifdef __STDC__
30363 # include <limits.h>
30364 #else
30365 # include <assert.h>
30366 #endif
30367
30368 #undef $ac_func
30369
30370 /* Override any gcc2 internal prototype to avoid an error. */
30371 #ifdef __cplusplus
30372 extern "C"
30373 {
30374 #endif
30375 /* We use char because int might match the return type of a gcc2
30376 builtin and then its argument prototype would still apply. */
30377 char $ac_func ();
30378 /* The GNU C library defines this for functions which it implements
30379 to always fail with ENOSYS. Some functions are actually named
30380 something starting with __ and the normal name is an alias. */
30381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30382 choke me
30383 #else
30384 char (*f) () = $ac_func;
30385 #endif
30386 #ifdef __cplusplus
30387 }
30388 #endif
30389
30390 int
30391 main ()
30392 {
30393 return f != $ac_func;
30394 ;
30395 return 0;
30396 }
30397 _ACEOF
30398 rm -f conftest.$ac_objext conftest$ac_exeext
30399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30400 (eval $ac_link) 2>conftest.er1
30401 ac_status=$?
30402 grep -v '^ *+' conftest.er1 >conftest.err
30403 rm -f conftest.er1
30404 cat conftest.err >&5
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); } &&
30407 { ac_try='test -z "$ac_c_werror_flag"
30408 || test ! -s conftest.err'
30409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30410 (eval $ac_try) 2>&5
30411 ac_status=$?
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); }; } &&
30414 { ac_try='test -s conftest$ac_exeext'
30415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30416 (eval $ac_try) 2>&5
30417 ac_status=$?
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); }; }; then
30420 eval "$as_ac_var=yes"
30421 else
30422 echo "$as_me: failed program was:" >&5
30423 sed 's/^/| /' conftest.$ac_ext >&5
30424
30425 eval "$as_ac_var=no"
30426 fi
30427 rm -f conftest.err conftest.$ac_objext \
30428 conftest$ac_exeext conftest.$ac_ext
30429 fi
30430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30432 if test `eval echo '${'$as_ac_var'}'` = yes; then
30433 cat >>confdefs.h <<_ACEOF
30434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30435 _ACEOF
30436 break
30437 fi
30438 done
30439
30440
30441 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30442 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30443 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30444 wxUSE_SNGLINST_CHECKER=no
30445 fi
30446 fi
30447
30448
30449 for ac_func in timegm
30450 do
30451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30452 echo "$as_me:$LINENO: checking for $ac_func" >&5
30453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30454 if eval "test \"\${$as_ac_var+set}\" = set"; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30456 else
30457 cat >conftest.$ac_ext <<_ACEOF
30458 /* confdefs.h. */
30459 _ACEOF
30460 cat confdefs.h >>conftest.$ac_ext
30461 cat >>conftest.$ac_ext <<_ACEOF
30462 /* end confdefs.h. */
30463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30465 #define $ac_func innocuous_$ac_func
30466
30467 /* System header to define __stub macros and hopefully few prototypes,
30468 which can conflict with char $ac_func (); below.
30469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30470 <limits.h> exists even on freestanding compilers. */
30471
30472 #ifdef __STDC__
30473 # include <limits.h>
30474 #else
30475 # include <assert.h>
30476 #endif
30477
30478 #undef $ac_func
30479
30480 /* Override any gcc2 internal prototype to avoid an error. */
30481 #ifdef __cplusplus
30482 extern "C"
30483 {
30484 #endif
30485 /* We use char because int might match the return type of a gcc2
30486 builtin and then its argument prototype would still apply. */
30487 char $ac_func ();
30488 /* The GNU C library defines this for functions which it implements
30489 to always fail with ENOSYS. Some functions are actually named
30490 something starting with __ and the normal name is an alias. */
30491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30492 choke me
30493 #else
30494 char (*f) () = $ac_func;
30495 #endif
30496 #ifdef __cplusplus
30497 }
30498 #endif
30499
30500 int
30501 main ()
30502 {
30503 return f != $ac_func;
30504 ;
30505 return 0;
30506 }
30507 _ACEOF
30508 rm -f conftest.$ac_objext conftest$ac_exeext
30509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30510 (eval $ac_link) 2>conftest.er1
30511 ac_status=$?
30512 grep -v '^ *+' conftest.er1 >conftest.err
30513 rm -f conftest.er1
30514 cat conftest.err >&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); } &&
30517 { ac_try='test -z "$ac_c_werror_flag"
30518 || test ! -s conftest.err'
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30521 ac_status=$?
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; } &&
30524 { ac_try='test -s conftest$ac_exeext'
30525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526 (eval $ac_try) 2>&5
30527 ac_status=$?
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; }; then
30530 eval "$as_ac_var=yes"
30531 else
30532 echo "$as_me: failed program was:" >&5
30533 sed 's/^/| /' conftest.$ac_ext >&5
30534
30535 eval "$as_ac_var=no"
30536 fi
30537 rm -f conftest.err conftest.$ac_objext \
30538 conftest$ac_exeext conftest.$ac_ext
30539 fi
30540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30542 if test `eval echo '${'$as_ac_var'}'` = yes; then
30543 cat >>confdefs.h <<_ACEOF
30544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30545 _ACEOF
30546
30547 fi
30548 done
30549
30550
30551
30552
30553 for ac_func in putenv setenv
30554 do
30555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30556 echo "$as_me:$LINENO: checking for $ac_func" >&5
30557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30558 if eval "test \"\${$as_ac_var+set}\" = set"; then
30559 echo $ECHO_N "(cached) $ECHO_C" >&6
30560 else
30561 cat >conftest.$ac_ext <<_ACEOF
30562 /* confdefs.h. */
30563 _ACEOF
30564 cat confdefs.h >>conftest.$ac_ext
30565 cat >>conftest.$ac_ext <<_ACEOF
30566 /* end confdefs.h. */
30567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30569 #define $ac_func innocuous_$ac_func
30570
30571 /* System header to define __stub macros and hopefully few prototypes,
30572 which can conflict with char $ac_func (); below.
30573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30574 <limits.h> exists even on freestanding compilers. */
30575
30576 #ifdef __STDC__
30577 # include <limits.h>
30578 #else
30579 # include <assert.h>
30580 #endif
30581
30582 #undef $ac_func
30583
30584 /* Override any gcc2 internal prototype to avoid an error. */
30585 #ifdef __cplusplus
30586 extern "C"
30587 {
30588 #endif
30589 /* We use char because int might match the return type of a gcc2
30590 builtin and then its argument prototype would still apply. */
30591 char $ac_func ();
30592 /* The GNU C library defines this for functions which it implements
30593 to always fail with ENOSYS. Some functions are actually named
30594 something starting with __ and the normal name is an alias. */
30595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30596 choke me
30597 #else
30598 char (*f) () = $ac_func;
30599 #endif
30600 #ifdef __cplusplus
30601 }
30602 #endif
30603
30604 int
30605 main ()
30606 {
30607 return f != $ac_func;
30608 ;
30609 return 0;
30610 }
30611 _ACEOF
30612 rm -f conftest.$ac_objext conftest$ac_exeext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30614 (eval $ac_link) 2>conftest.er1
30615 ac_status=$?
30616 grep -v '^ *+' conftest.er1 >conftest.err
30617 rm -f conftest.er1
30618 cat conftest.err >&5
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); } &&
30621 { ac_try='test -z "$ac_c_werror_flag"
30622 || test ! -s conftest.err'
30623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624 (eval $ac_try) 2>&5
30625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; } &&
30628 { ac_try='test -s conftest$ac_exeext'
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; }; then
30634 eval "$as_ac_var=yes"
30635 else
30636 echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30638
30639 eval "$as_ac_var=no"
30640 fi
30641 rm -f conftest.err conftest.$ac_objext \
30642 conftest$ac_exeext conftest.$ac_ext
30643 fi
30644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30646 if test `eval echo '${'$as_ac_var'}'` = yes; then
30647 cat >>confdefs.h <<_ACEOF
30648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30649 _ACEOF
30650 break
30651 fi
30652 done
30653
30654
30655 HAVE_SOME_SLEEP_FUNC=0
30656 if test "$USE_BEOS" = 1; then
30657 cat >>confdefs.h <<\_ACEOF
30658 #define HAVE_SLEEP 1
30659 _ACEOF
30660
30661 HAVE_SOME_SLEEP_FUNC=1
30662 fi
30663
30664 if test "$USE_DARWIN" = 1; then
30665 cat >>confdefs.h <<\_ACEOF
30666 #define HAVE_USLEEP 1
30667 _ACEOF
30668
30669 HAVE_SOME_SLEEP_FUNC=1
30670 fi
30671
30672 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30673 POSIX4_LINK=
30674
30675 for ac_func in nanosleep
30676 do
30677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30678 echo "$as_me:$LINENO: checking for $ac_func" >&5
30679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30680 if eval "test \"\${$as_ac_var+set}\" = set"; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
30682 else
30683 cat >conftest.$ac_ext <<_ACEOF
30684 /* confdefs.h. */
30685 _ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30691 #define $ac_func innocuous_$ac_func
30692
30693 /* System header to define __stub macros and hopefully few prototypes,
30694 which can conflict with char $ac_func (); below.
30695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30696 <limits.h> exists even on freestanding compilers. */
30697
30698 #ifdef __STDC__
30699 # include <limits.h>
30700 #else
30701 # include <assert.h>
30702 #endif
30703
30704 #undef $ac_func
30705
30706 /* Override any gcc2 internal prototype to avoid an error. */
30707 #ifdef __cplusplus
30708 extern "C"
30709 {
30710 #endif
30711 /* We use char because int might match the return type of a gcc2
30712 builtin and then its argument prototype would still apply. */
30713 char $ac_func ();
30714 /* The GNU C library defines this for functions which it implements
30715 to always fail with ENOSYS. Some functions are actually named
30716 something starting with __ and the normal name is an alias. */
30717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30718 choke me
30719 #else
30720 char (*f) () = $ac_func;
30721 #endif
30722 #ifdef __cplusplus
30723 }
30724 #endif
30725
30726 int
30727 main ()
30728 {
30729 return f != $ac_func;
30730 ;
30731 return 0;
30732 }
30733 _ACEOF
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30736 (eval $ac_link) 2>conftest.er1
30737 ac_status=$?
30738 grep -v '^ *+' conftest.er1 >conftest.err
30739 rm -f conftest.er1
30740 cat conftest.err >&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } &&
30743 { ac_try='test -z "$ac_c_werror_flag"
30744 || test ! -s conftest.err'
30745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30746 (eval $ac_try) 2>&5
30747 ac_status=$?
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); }; } &&
30750 { ac_try='test -s conftest$ac_exeext'
30751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752 (eval $ac_try) 2>&5
30753 ac_status=$?
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; }; then
30756 eval "$as_ac_var=yes"
30757 else
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30760
30761 eval "$as_ac_var=no"
30762 fi
30763 rm -f conftest.err conftest.$ac_objext \
30764 conftest$ac_exeext conftest.$ac_ext
30765 fi
30766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30768 if test `eval echo '${'$as_ac_var'}'` = yes; then
30769 cat >>confdefs.h <<_ACEOF
30770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30771 _ACEOF
30772 cat >>confdefs.h <<\_ACEOF
30773 #define HAVE_NANOSLEEP 1
30774 _ACEOF
30775
30776 else
30777
30778 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30779 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30780 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30781 echo $ECHO_N "(cached) $ECHO_C" >&6
30782 else
30783 ac_check_lib_save_LIBS=$LIBS
30784 LIBS="-lposix4 $LIBS"
30785 cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h. */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30791
30792 /* Override any gcc2 internal prototype to avoid an error. */
30793 #ifdef __cplusplus
30794 extern "C"
30795 #endif
30796 /* We use char because int might match the return type of a gcc2
30797 builtin and then its argument prototype would still apply. */
30798 char nanosleep ();
30799 int
30800 main ()
30801 {
30802 nanosleep ();
30803 ;
30804 return 0;
30805 }
30806 _ACEOF
30807 rm -f conftest.$ac_objext conftest$ac_exeext
30808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30809 (eval $ac_link) 2>conftest.er1
30810 ac_status=$?
30811 grep -v '^ *+' conftest.er1 >conftest.err
30812 rm -f conftest.er1
30813 cat conftest.err >&5
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); } &&
30816 { ac_try='test -z "$ac_c_werror_flag"
30817 || test ! -s conftest.err'
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; } &&
30823 { ac_try='test -s conftest$ac_exeext'
30824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30825 (eval $ac_try) 2>&5
30826 ac_status=$?
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; }; then
30829 ac_cv_lib_posix4_nanosleep=yes
30830 else
30831 echo "$as_me: failed program was:" >&5
30832 sed 's/^/| /' conftest.$ac_ext >&5
30833
30834 ac_cv_lib_posix4_nanosleep=no
30835 fi
30836 rm -f conftest.err conftest.$ac_objext \
30837 conftest$ac_exeext conftest.$ac_ext
30838 LIBS=$ac_check_lib_save_LIBS
30839 fi
30840 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30841 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30842 if test $ac_cv_lib_posix4_nanosleep = yes; then
30843
30844 cat >>confdefs.h <<\_ACEOF
30845 #define HAVE_NANOSLEEP 1
30846 _ACEOF
30847
30848 POSIX4_LINK=" -lposix4"
30849
30850 else
30851
30852
30853 for ac_func in usleep
30854 do
30855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30856 echo "$as_me:$LINENO: checking for $ac_func" >&5
30857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30858 if eval "test \"\${$as_ac_var+set}\" = set"; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30860 else
30861 cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h. */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h. */
30867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30869 #define $ac_func innocuous_$ac_func
30870
30871 /* System header to define __stub macros and hopefully few prototypes,
30872 which can conflict with char $ac_func (); below.
30873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30874 <limits.h> exists even on freestanding compilers. */
30875
30876 #ifdef __STDC__
30877 # include <limits.h>
30878 #else
30879 # include <assert.h>
30880 #endif
30881
30882 #undef $ac_func
30883
30884 /* Override any gcc2 internal prototype to avoid an error. */
30885 #ifdef __cplusplus
30886 extern "C"
30887 {
30888 #endif
30889 /* We use char because int might match the return type of a gcc2
30890 builtin and then its argument prototype would still apply. */
30891 char $ac_func ();
30892 /* The GNU C library defines this for functions which it implements
30893 to always fail with ENOSYS. Some functions are actually named
30894 something starting with __ and the normal name is an alias. */
30895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30896 choke me
30897 #else
30898 char (*f) () = $ac_func;
30899 #endif
30900 #ifdef __cplusplus
30901 }
30902 #endif
30903
30904 int
30905 main ()
30906 {
30907 return f != $ac_func;
30908 ;
30909 return 0;
30910 }
30911 _ACEOF
30912 rm -f conftest.$ac_objext conftest$ac_exeext
30913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30914 (eval $ac_link) 2>conftest.er1
30915 ac_status=$?
30916 grep -v '^ *+' conftest.er1 >conftest.err
30917 rm -f conftest.er1
30918 cat conftest.err >&5
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); } &&
30921 { ac_try='test -z "$ac_c_werror_flag"
30922 || test ! -s conftest.err'
30923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924 (eval $ac_try) 2>&5
30925 ac_status=$?
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; } &&
30928 { ac_try='test -s conftest$ac_exeext'
30929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930 (eval $ac_try) 2>&5
30931 ac_status=$?
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; }; then
30934 eval "$as_ac_var=yes"
30935 else
30936 echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30938
30939 eval "$as_ac_var=no"
30940 fi
30941 rm -f conftest.err conftest.$ac_objext \
30942 conftest$ac_exeext conftest.$ac_ext
30943 fi
30944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30946 if test `eval echo '${'$as_ac_var'}'` = yes; then
30947 cat >>confdefs.h <<_ACEOF
30948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30949 _ACEOF
30950 cat >>confdefs.h <<\_ACEOF
30951 #define HAVE_USLEEP 1
30952 _ACEOF
30953
30954 else
30955 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30956 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30957
30958 fi
30959 done
30960
30961
30962
30963 fi
30964
30965
30966
30967 fi
30968 done
30969
30970 fi
30971
30972
30973
30974 for ac_func in uname gethostname
30975 do
30976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30977 echo "$as_me:$LINENO: checking for $ac_func" >&5
30978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30979 if eval "test \"\${$as_ac_var+set}\" = set"; then
30980 echo $ECHO_N "(cached) $ECHO_C" >&6
30981 else
30982 cat >conftest.$ac_ext <<_ACEOF
30983 /* confdefs.h. */
30984 _ACEOF
30985 cat confdefs.h >>conftest.$ac_ext
30986 cat >>conftest.$ac_ext <<_ACEOF
30987 /* end confdefs.h. */
30988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30990 #define $ac_func innocuous_$ac_func
30991
30992 /* System header to define __stub macros and hopefully few prototypes,
30993 which can conflict with char $ac_func (); below.
30994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30995 <limits.h> exists even on freestanding compilers. */
30996
30997 #ifdef __STDC__
30998 # include <limits.h>
30999 #else
31000 # include <assert.h>
31001 #endif
31002
31003 #undef $ac_func
31004
31005 /* Override any gcc2 internal prototype to avoid an error. */
31006 #ifdef __cplusplus
31007 extern "C"
31008 {
31009 #endif
31010 /* We use char because int might match the return type of a gcc2
31011 builtin and then its argument prototype would still apply. */
31012 char $ac_func ();
31013 /* The GNU C library defines this for functions which it implements
31014 to always fail with ENOSYS. Some functions are actually named
31015 something starting with __ and the normal name is an alias. */
31016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31017 choke me
31018 #else
31019 char (*f) () = $ac_func;
31020 #endif
31021 #ifdef __cplusplus
31022 }
31023 #endif
31024
31025 int
31026 main ()
31027 {
31028 return f != $ac_func;
31029 ;
31030 return 0;
31031 }
31032 _ACEOF
31033 rm -f conftest.$ac_objext conftest$ac_exeext
31034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31035 (eval $ac_link) 2>conftest.er1
31036 ac_status=$?
31037 grep -v '^ *+' conftest.er1 >conftest.err
31038 rm -f conftest.er1
31039 cat conftest.err >&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } &&
31042 { ac_try='test -z "$ac_c_werror_flag"
31043 || test ! -s conftest.err'
31044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31045 (eval $ac_try) 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; } &&
31049 { ac_try='test -s conftest$ac_exeext'
31050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31051 (eval $ac_try) 2>&5
31052 ac_status=$?
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); }; }; then
31055 eval "$as_ac_var=yes"
31056 else
31057 echo "$as_me: failed program was:" >&5
31058 sed 's/^/| /' conftest.$ac_ext >&5
31059
31060 eval "$as_ac_var=no"
31061 fi
31062 rm -f conftest.err conftest.$ac_objext \
31063 conftest$ac_exeext conftest.$ac_ext
31064 fi
31065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31067 if test `eval echo '${'$as_ac_var'}'` = yes; then
31068 cat >>confdefs.h <<_ACEOF
31069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31070 _ACEOF
31071 break
31072 fi
31073 done
31074
31075
31076
31077
31078 ac_ext=cc
31079 ac_cpp='$CXXCPP $CPPFLAGS'
31080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31083
31084
31085
31086 for ac_func in strtok_r
31087 do
31088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31089 echo "$as_me:$LINENO: checking for $ac_func" >&5
31090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31091 if eval "test \"\${$as_ac_var+set}\" = set"; then
31092 echo $ECHO_N "(cached) $ECHO_C" >&6
31093 else
31094 cat >conftest.$ac_ext <<_ACEOF
31095 /* confdefs.h. */
31096 _ACEOF
31097 cat confdefs.h >>conftest.$ac_ext
31098 cat >>conftest.$ac_ext <<_ACEOF
31099 /* end confdefs.h. */
31100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31102 #define $ac_func innocuous_$ac_func
31103
31104 /* System header to define __stub macros and hopefully few prototypes,
31105 which can conflict with char $ac_func (); below.
31106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31107 <limits.h> exists even on freestanding compilers. */
31108
31109 #ifdef __STDC__
31110 # include <limits.h>
31111 #else
31112 # include <assert.h>
31113 #endif
31114
31115 #undef $ac_func
31116
31117 /* Override any gcc2 internal prototype to avoid an error. */
31118 #ifdef __cplusplus
31119 extern "C"
31120 {
31121 #endif
31122 /* We use char because int might match the return type of a gcc2
31123 builtin and then its argument prototype would still apply. */
31124 char $ac_func ();
31125 /* The GNU C library defines this for functions which it implements
31126 to always fail with ENOSYS. Some functions are actually named
31127 something starting with __ and the normal name is an alias. */
31128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31129 choke me
31130 #else
31131 char (*f) () = $ac_func;
31132 #endif
31133 #ifdef __cplusplus
31134 }
31135 #endif
31136
31137 int
31138 main ()
31139 {
31140 return f != $ac_func;
31141 ;
31142 return 0;
31143 }
31144 _ACEOF
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31147 (eval $ac_link) 2>conftest.er1
31148 ac_status=$?
31149 grep -v '^ *+' conftest.er1 >conftest.err
31150 rm -f conftest.er1
31151 cat conftest.err >&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
31154 { ac_try='test -z "$ac_cxx_werror_flag"
31155 || test ! -s conftest.err'
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
31167 eval "$as_ac_var=yes"
31168 else
31169 echo "$as_me: failed program was:" >&5
31170 sed 's/^/| /' conftest.$ac_ext >&5
31171
31172 eval "$as_ac_var=no"
31173 fi
31174 rm -f conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
31176 fi
31177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31179 if test `eval echo '${'$as_ac_var'}'` = yes; then
31180 cat >>confdefs.h <<_ACEOF
31181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31182 _ACEOF
31183
31184 fi
31185 done
31186
31187
31188 ac_ext=c
31189 ac_cpp='$CPP $CPPFLAGS'
31190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31193
31194
31195 INET_LINK=
31196
31197 for ac_func in inet_addr
31198 do
31199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31200 echo "$as_me:$LINENO: checking for $ac_func" >&5
31201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31202 if eval "test \"\${$as_ac_var+set}\" = set"; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31204 else
31205 cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h. */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h. */
31211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31213 #define $ac_func innocuous_$ac_func
31214
31215 /* System header to define __stub macros and hopefully few prototypes,
31216 which can conflict with char $ac_func (); below.
31217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31218 <limits.h> exists even on freestanding compilers. */
31219
31220 #ifdef __STDC__
31221 # include <limits.h>
31222 #else
31223 # include <assert.h>
31224 #endif
31225
31226 #undef $ac_func
31227
31228 /* Override any gcc2 internal prototype to avoid an error. */
31229 #ifdef __cplusplus
31230 extern "C"
31231 {
31232 #endif
31233 /* We use char because int might match the return type of a gcc2
31234 builtin and then its argument prototype would still apply. */
31235 char $ac_func ();
31236 /* The GNU C library defines this for functions which it implements
31237 to always fail with ENOSYS. Some functions are actually named
31238 something starting with __ and the normal name is an alias. */
31239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31240 choke me
31241 #else
31242 char (*f) () = $ac_func;
31243 #endif
31244 #ifdef __cplusplus
31245 }
31246 #endif
31247
31248 int
31249 main ()
31250 {
31251 return f != $ac_func;
31252 ;
31253 return 0;
31254 }
31255 _ACEOF
31256 rm -f conftest.$ac_objext conftest$ac_exeext
31257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31258 (eval $ac_link) 2>conftest.er1
31259 ac_status=$?
31260 grep -v '^ *+' conftest.er1 >conftest.err
31261 rm -f conftest.er1
31262 cat conftest.err >&5
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); } &&
31265 { ac_try='test -z "$ac_c_werror_flag"
31266 || test ! -s conftest.err'
31267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31268 (eval $ac_try) 2>&5
31269 ac_status=$?
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); }; } &&
31272 { ac_try='test -s conftest$ac_exeext'
31273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31274 (eval $ac_try) 2>&5
31275 ac_status=$?
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; }; then
31278 eval "$as_ac_var=yes"
31279 else
31280 echo "$as_me: failed program was:" >&5
31281 sed 's/^/| /' conftest.$ac_ext >&5
31282
31283 eval "$as_ac_var=no"
31284 fi
31285 rm -f conftest.err conftest.$ac_objext \
31286 conftest$ac_exeext conftest.$ac_ext
31287 fi
31288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31290 if test `eval echo '${'$as_ac_var'}'` = yes; then
31291 cat >>confdefs.h <<_ACEOF
31292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31293 _ACEOF
31294 cat >>confdefs.h <<\_ACEOF
31295 #define HAVE_INET_ADDR 1
31296 _ACEOF
31297
31298 else
31299
31300 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31301 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31302 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31303 echo $ECHO_N "(cached) $ECHO_C" >&6
31304 else
31305 ac_check_lib_save_LIBS=$LIBS
31306 LIBS="-lnsl $LIBS"
31307 cat >conftest.$ac_ext <<_ACEOF
31308 /* confdefs.h. */
31309 _ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h. */
31313
31314 /* Override any gcc2 internal prototype to avoid an error. */
31315 #ifdef __cplusplus
31316 extern "C"
31317 #endif
31318 /* We use char because int might match the return type of a gcc2
31319 builtin and then its argument prototype would still apply. */
31320 char inet_addr ();
31321 int
31322 main ()
31323 {
31324 inet_addr ();
31325 ;
31326 return 0;
31327 }
31328 _ACEOF
31329 rm -f conftest.$ac_objext conftest$ac_exeext
31330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31331 (eval $ac_link) 2>conftest.er1
31332 ac_status=$?
31333 grep -v '^ *+' conftest.er1 >conftest.err
31334 rm -f conftest.er1
31335 cat conftest.err >&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); } &&
31338 { ac_try='test -z "$ac_c_werror_flag"
31339 || test ! -s conftest.err'
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31342 ac_status=$?
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; } &&
31345 { ac_try='test -s conftest$ac_exeext'
31346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31347 (eval $ac_try) 2>&5
31348 ac_status=$?
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); }; }; then
31351 ac_cv_lib_nsl_inet_addr=yes
31352 else
31353 echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31355
31356 ac_cv_lib_nsl_inet_addr=no
31357 fi
31358 rm -f conftest.err conftest.$ac_objext \
31359 conftest$ac_exeext conftest.$ac_ext
31360 LIBS=$ac_check_lib_save_LIBS
31361 fi
31362 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31363 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31364 if test $ac_cv_lib_nsl_inet_addr = yes; then
31365 INET_LINK="nsl"
31366 else
31367
31368 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31369 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31370 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31371 echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373 ac_check_lib_save_LIBS=$LIBS
31374 LIBS="-lresolv $LIBS"
31375 cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h. */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31381
31382 /* Override any gcc2 internal prototype to avoid an error. */
31383 #ifdef __cplusplus
31384 extern "C"
31385 #endif
31386 /* We use char because int might match the return type of a gcc2
31387 builtin and then its argument prototype would still apply. */
31388 char inet_addr ();
31389 int
31390 main ()
31391 {
31392 inet_addr ();
31393 ;
31394 return 0;
31395 }
31396 _ACEOF
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31399 (eval $ac_link) 2>conftest.er1
31400 ac_status=$?
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
31406 { ac_try='test -z "$ac_c_werror_flag"
31407 || test ! -s conftest.err'
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415 (eval $ac_try) 2>&5
31416 ac_status=$?
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
31419 ac_cv_lib_resolv_inet_addr=yes
31420 else
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31423
31424 ac_cv_lib_resolv_inet_addr=no
31425 fi
31426 rm -f conftest.err conftest.$ac_objext \
31427 conftest$ac_exeext conftest.$ac_ext
31428 LIBS=$ac_check_lib_save_LIBS
31429 fi
31430 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31431 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31432 if test $ac_cv_lib_resolv_inet_addr = yes; then
31433 INET_LINK="resolv"
31434 else
31435
31436 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31437 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31438 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
31440 else
31441 ac_check_lib_save_LIBS=$LIBS
31442 LIBS="-lsocket $LIBS"
31443 cat >conftest.$ac_ext <<_ACEOF
31444 /* confdefs.h. */
31445 _ACEOF
31446 cat confdefs.h >>conftest.$ac_ext
31447 cat >>conftest.$ac_ext <<_ACEOF
31448 /* end confdefs.h. */
31449
31450 /* Override any gcc2 internal prototype to avoid an error. */
31451 #ifdef __cplusplus
31452 extern "C"
31453 #endif
31454 /* We use char because int might match the return type of a gcc2
31455 builtin and then its argument prototype would still apply. */
31456 char inet_addr ();
31457 int
31458 main ()
31459 {
31460 inet_addr ();
31461 ;
31462 return 0;
31463 }
31464 _ACEOF
31465 rm -f conftest.$ac_objext conftest$ac_exeext
31466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31467 (eval $ac_link) 2>conftest.er1
31468 ac_status=$?
31469 grep -v '^ *+' conftest.er1 >conftest.err
31470 rm -f conftest.er1
31471 cat conftest.err >&5
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); } &&
31474 { ac_try='test -z "$ac_c_werror_flag"
31475 || test ! -s conftest.err'
31476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31477 (eval $ac_try) 2>&5
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; } &&
31481 { ac_try='test -s conftest$ac_exeext'
31482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31483 (eval $ac_try) 2>&5
31484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
31487 ac_cv_lib_socket_inet_addr=yes
31488 else
31489 echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31491
31492 ac_cv_lib_socket_inet_addr=no
31493 fi
31494 rm -f conftest.err conftest.$ac_objext \
31495 conftest$ac_exeext conftest.$ac_ext
31496 LIBS=$ac_check_lib_save_LIBS
31497 fi
31498 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31499 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31500 if test $ac_cv_lib_socket_inet_addr = yes; then
31501 INET_LINK="socket"
31502
31503 fi
31504
31505
31506
31507 fi
31508
31509
31510
31511 fi
31512
31513
31514
31515 fi
31516 done
31517
31518
31519
31520 for ac_func in inet_aton
31521 do
31522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31523 echo "$as_me:$LINENO: checking for $ac_func" >&5
31524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31525 if eval "test \"\${$as_ac_var+set}\" = set"; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527 else
31528 cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h. */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h. */
31534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31536 #define $ac_func innocuous_$ac_func
31537
31538 /* System header to define __stub macros and hopefully few prototypes,
31539 which can conflict with char $ac_func (); below.
31540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31541 <limits.h> exists even on freestanding compilers. */
31542
31543 #ifdef __STDC__
31544 # include <limits.h>
31545 #else
31546 # include <assert.h>
31547 #endif
31548
31549 #undef $ac_func
31550
31551 /* Override any gcc2 internal prototype to avoid an error. */
31552 #ifdef __cplusplus
31553 extern "C"
31554 {
31555 #endif
31556 /* We use char because int might match the return type of a gcc2
31557 builtin and then its argument prototype would still apply. */
31558 char $ac_func ();
31559 /* The GNU C library defines this for functions which it implements
31560 to always fail with ENOSYS. Some functions are actually named
31561 something starting with __ and the normal name is an alias. */
31562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31563 choke me
31564 #else
31565 char (*f) () = $ac_func;
31566 #endif
31567 #ifdef __cplusplus
31568 }
31569 #endif
31570
31571 int
31572 main ()
31573 {
31574 return f != $ac_func;
31575 ;
31576 return 0;
31577 }
31578 _ACEOF
31579 rm -f conftest.$ac_objext conftest$ac_exeext
31580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31581 (eval $ac_link) 2>conftest.er1
31582 ac_status=$?
31583 grep -v '^ *+' conftest.er1 >conftest.err
31584 rm -f conftest.er1
31585 cat conftest.err >&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); } &&
31588 { ac_try='test -z "$ac_c_werror_flag"
31589 || test ! -s conftest.err'
31590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31591 (eval $ac_try) 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; }; then
31601 eval "$as_ac_var=yes"
31602 else
31603 echo "$as_me: failed program was:" >&5
31604 sed 's/^/| /' conftest.$ac_ext >&5
31605
31606 eval "$as_ac_var=no"
31607 fi
31608 rm -f conftest.err conftest.$ac_objext \
31609 conftest$ac_exeext conftest.$ac_ext
31610 fi
31611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31613 if test `eval echo '${'$as_ac_var'}'` = yes; then
31614 cat >>confdefs.h <<_ACEOF
31615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31616 _ACEOF
31617 cat >>confdefs.h <<\_ACEOF
31618 #define HAVE_INET_ATON 1
31619 _ACEOF
31620
31621 else
31622
31623 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31624 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31625 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31626 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 else
31629 ac_check_lib_save_LIBS=$LIBS
31630 LIBS="-l$INET_LINK $LIBS"
31631 cat >conftest.$ac_ext <<_ACEOF
31632 /* confdefs.h. */
31633 _ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h. */
31637
31638 /* Override any gcc2 internal prototype to avoid an error. */
31639 #ifdef __cplusplus
31640 extern "C"
31641 #endif
31642 /* We use char because int might match the return type of a gcc2
31643 builtin and then its argument prototype would still apply. */
31644 char inet_aton ();
31645 int
31646 main ()
31647 {
31648 inet_aton ();
31649 ;
31650 return 0;
31651 }
31652 _ACEOF
31653 rm -f conftest.$ac_objext conftest$ac_exeext
31654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31655 (eval $ac_link) 2>conftest.er1
31656 ac_status=$?
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } &&
31662 { ac_try='test -z "$ac_c_werror_flag"
31663 || test ! -s conftest.err'
31664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665 (eval $ac_try) 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest$ac_exeext'
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 eval "$as_ac_Lib=yes"
31676 else
31677 echo "$as_me: failed program was:" >&5
31678 sed 's/^/| /' conftest.$ac_ext >&5
31679
31680 eval "$as_ac_Lib=no"
31681 fi
31682 rm -f conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
31684 LIBS=$ac_check_lib_save_LIBS
31685 fi
31686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31687 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31688 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31689 cat >>confdefs.h <<\_ACEOF
31690 #define HAVE_INET_ATON 1
31691 _ACEOF
31692
31693 fi
31694
31695
31696 fi
31697 done
31698
31699
31700 if test "x$INET_LINK" != "x"; then
31701 cat >>confdefs.h <<\_ACEOF
31702 #define HAVE_INET_ADDR 1
31703 _ACEOF
31704
31705 INET_LINK=" -l$INET_LINK"
31706 fi
31707
31708 fi
31709
31710
31711
31712 EXTRALIBS_ESD=
31713 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31714 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31715 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31716 echo $ECHO_N "(cached) $ECHO_C" >&6
31717 else
31718 ac_check_lib_save_LIBS=$LIBS
31719 LIBS="-lesd $LIBS"
31720 cat >conftest.$ac_ext <<_ACEOF
31721 /* confdefs.h. */
31722 _ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h. */
31726
31727 /* Override any gcc2 internal prototype to avoid an error. */
31728 #ifdef __cplusplus
31729 extern "C"
31730 #endif
31731 /* We use char because int might match the return type of a gcc2
31732 builtin and then its argument prototype would still apply. */
31733 char esd_close ();
31734 int
31735 main ()
31736 {
31737 esd_close ();
31738 ;
31739 return 0;
31740 }
31741 _ACEOF
31742 rm -f conftest.$ac_objext conftest$ac_exeext
31743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31744 (eval $ac_link) 2>conftest.er1
31745 ac_status=$?
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } &&
31751 { ac_try='test -z "$ac_c_werror_flag"
31752 || test ! -s conftest.err'
31753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31754 (eval $ac_try) 2>&5
31755 ac_status=$?
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); }; } &&
31758 { ac_try='test -s conftest$ac_exeext'
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; }; then
31764 ac_cv_lib_esd_esd_close=yes
31765 else
31766 echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31768
31769 ac_cv_lib_esd_esd_close=no
31770 fi
31771 rm -f conftest.err conftest.$ac_objext \
31772 conftest$ac_exeext conftest.$ac_ext
31773 LIBS=$ac_check_lib_save_LIBS
31774 fi
31775 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31776 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31777 if test $ac_cv_lib_esd_esd_close = yes; then
31778
31779
31780 for ac_header in esd.h
31781 do
31782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31784 echo "$as_me:$LINENO: checking for $ac_header" >&5
31785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31787 echo $ECHO_N "(cached) $ECHO_C" >&6
31788 fi
31789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31791 else
31792 # Is the header compilable?
31793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31795 cat >conftest.$ac_ext <<_ACEOF
31796 /* confdefs.h. */
31797 _ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h. */
31801 $ac_includes_default
31802 #include <$ac_header>
31803 _ACEOF
31804 rm -f conftest.$ac_objext
31805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31806 (eval $ac_compile) 2>conftest.er1
31807 ac_status=$?
31808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } &&
31813 { ac_try='test -z "$ac_c_werror_flag"
31814 || test ! -s conftest.err'
31815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31816 (eval $ac_try) 2>&5
31817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; } &&
31820 { ac_try='test -s conftest.$ac_objext'
31821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822 (eval $ac_try) 2>&5
31823 ac_status=$?
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; }; then
31826 ac_header_compiler=yes
31827 else
31828 echo "$as_me: failed program was:" >&5
31829 sed 's/^/| /' conftest.$ac_ext >&5
31830
31831 ac_header_compiler=no
31832 fi
31833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31835 echo "${ECHO_T}$ac_header_compiler" >&6
31836
31837 # Is the header present?
31838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31840 cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h. */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h. */
31846 #include <$ac_header>
31847 _ACEOF
31848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31850 ac_status=$?
31851 grep -v '^ *+' conftest.er1 >conftest.err
31852 rm -f conftest.er1
31853 cat conftest.err >&5
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); } >/dev/null; then
31856 if test -s conftest.err; then
31857 ac_cpp_err=$ac_c_preproc_warn_flag
31858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31859 else
31860 ac_cpp_err=
31861 fi
31862 else
31863 ac_cpp_err=yes
31864 fi
31865 if test -z "$ac_cpp_err"; then
31866 ac_header_preproc=yes
31867 else
31868 echo "$as_me: failed program was:" >&5
31869 sed 's/^/| /' conftest.$ac_ext >&5
31870
31871 ac_header_preproc=no
31872 fi
31873 rm -f conftest.err conftest.$ac_ext
31874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31875 echo "${ECHO_T}$ac_header_preproc" >&6
31876
31877 # So? What about this header?
31878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31879 yes:no: )
31880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31884 ac_header_preproc=yes
31885 ;;
31886 no:yes:* )
31887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31899 (
31900 cat <<\_ASBOX
31901 ## ----------------------------------------- ##
31902 ## Report this to wx-dev@lists.wxwindows.org ##
31903 ## ----------------------------------------- ##
31904 _ASBOX
31905 ) |
31906 sed "s/^/$as_me: WARNING: /" >&2
31907 ;;
31908 esac
31909 echo "$as_me:$LINENO: checking for $ac_header" >&5
31910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31912 echo $ECHO_N "(cached) $ECHO_C" >&6
31913 else
31914 eval "$as_ac_Header=\$ac_header_preproc"
31915 fi
31916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31918
31919 fi
31920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31921 cat >>confdefs.h <<_ACEOF
31922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31923 _ACEOF
31924
31925 EXTRALIBS_ESD="-lesd"
31926
31927 fi
31928
31929 done
31930
31931
31932 fi
31933
31934
31935
31936 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31937 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31938 cat >conftest.$ac_ext <<_ACEOF
31939 /* confdefs.h. */
31940 _ACEOF
31941 cat confdefs.h >>conftest.$ac_ext
31942 cat >>conftest.$ac_ext <<_ACEOF
31943 /* end confdefs.h. */
31944 #ifdef __linux__
31945 #include <linux/cdrom.h>
31946 #else
31947 /* For Solaris */
31948 #include <sys/cdio.h>
31949 #endif
31950
31951 int
31952 main ()
31953 {
31954 struct cdrom_tocentry entry, old_entry;
31955 ;
31956 return 0;
31957 }
31958 _ACEOF
31959 rm -f conftest.$ac_objext
31960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31961 (eval $ac_compile) 2>conftest.er1
31962 ac_status=$?
31963 grep -v '^ *+' conftest.er1 >conftest.err
31964 rm -f conftest.er1
31965 cat conftest.err >&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967 (exit $ac_status); } &&
31968 { ac_try='test -z "$ac_c_werror_flag"
31969 || test ! -s conftest.err'
31970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31971 (eval $ac_try) 2>&5
31972 ac_status=$?
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; } &&
31975 { ac_try='test -s conftest.$ac_objext'
31976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31977 (eval $ac_try) 2>&5
31978 ac_status=$?
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); }; }; then
31981 echo "$as_me:$LINENO: result: yes" >&5
31982 echo "${ECHO_T}yes" >&6
31983 cat >>confdefs.h <<\_ACEOF
31984 #define HAVE_KNOWN_CDROM_INTERFACE 1
31985 _ACEOF
31986
31987 else
31988 echo "$as_me: failed program was:" >&5
31989 sed 's/^/| /' conftest.$ac_ext >&5
31990
31991 echo "$as_me:$LINENO: result: no" >&5
31992 echo "${ECHO_T}no" >&6
31993 fi
31994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31995
31996
31997 cat >confcache <<\_ACEOF
31998 # This file is a shell script that caches the results of configure
31999 # tests run on this system so they can be shared between configure
32000 # scripts and configure runs, see configure's option --config-cache.
32001 # It is not useful on other systems. If it contains results you don't
32002 # want to keep, you may remove or edit it.
32003 #
32004 # config.status only pays attention to the cache file if you give it
32005 # the --recheck option to rerun configure.
32006 #
32007 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32008 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32009 # following values.
32010
32011 _ACEOF
32012
32013 # The following way of writing the cache mishandles newlines in values,
32014 # but we know of no workaround that is simple, portable, and efficient.
32015 # So, don't put newlines in cache variables' values.
32016 # Ultrix sh set writes to stderr and can't be redirected directly,
32017 # and sets the high bit in the cache file unless we assign to the vars.
32018 {
32019 (set) 2>&1 |
32020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32021 *ac_space=\ *)
32022 # `set' does not quote correctly, so add quotes (double-quote
32023 # substitution turns \\\\ into \\, and sed turns \\ into \).
32024 sed -n \
32025 "s/'/'\\\\''/g;
32026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32027 ;;
32028 *)
32029 # `set' quotes correctly as required by POSIX, so do not add quotes.
32030 sed -n \
32031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32032 ;;
32033 esac;
32034 } |
32035 sed '
32036 t clear
32037 : clear
32038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32039 t end
32040 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32041 : end' >>confcache
32042 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32043 if test -w $cache_file; then
32044 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32045 cat confcache >$cache_file
32046 else
32047 echo "not updating unwritable cache $cache_file"
32048 fi
32049 fi
32050 rm -f confcache
32051
32052
32053 CPP_MT_FLAG=
32054 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32055
32056
32057 THREADS_LINK=
32058 THREADS_CFLAGS=
32059
32060 if test "$wxUSE_THREADS" = "yes" ; then
32061 if test "$USE_BEOS" = 1; then
32062 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32063 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32064 wxUSE_THREADS="no"
32065 fi
32066 fi
32067
32068 if test "$wxUSE_THREADS" = "yes" ; then
32069
32070
32071 THREAD_OPTS="-pthread"
32072 case "${host}" in
32073 *-*-solaris2* | *-*-sunos4* )
32074 if test "x$GCC" = "xyes"; then
32075 THREAD_OPTS="-pthreads $THREAD_OPTS"
32076 else
32077 THREAD_OPTS="-mt $THREAD_OPTS"
32078 fi
32079 ;;
32080 *-*-freebsd*)
32081 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32082 ;;
32083 *-*-darwin* | *-*-cygwin* )
32084 THREAD_OPTS=""
32085 ;;
32086 *-*-aix*)
32087 THREAD_OPTS="pthreads"
32088 ;;
32089 *-hp-hpux* )
32090 if test "x$GCC" != "xyes"; then
32091 THREAD_OPTS=""
32092 fi
32093 ;;
32094
32095 *-*-irix* )
32096 if test "x$GCC" = "xyes"; then
32097 THREAD_OPTS=""
32098 fi
32099 ;;
32100
32101 *-*-*UnixWare*)
32102 if test "x$GCC" != "xyes"; then
32103 THREAD_OPTS="-Ethread"
32104 fi
32105 ;;
32106 esac
32107
32108 THREAD_OPTS="$THREAD_OPTS pthread none"
32109
32110 THREADS_OK=no
32111 for flag in $THREAD_OPTS; do
32112 case $flag in
32113 none)
32114 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32115 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32116 ;;
32117
32118 -*)
32119 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32120 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32121 THREADS_CFLAGS="$flag"
32122 ;;
32123
32124 *)
32125 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32126 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32127 THREADS_LINK="-l$flag"
32128 ;;
32129 esac
32130
32131 save_LIBS="$LIBS"
32132 save_CFLAGS="$CFLAGS"
32133 LIBS="$THREADS_LINK $LIBS"
32134 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32135
32136 cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h. */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h. */
32142 #include <pthread.h>
32143 int
32144 main ()
32145 {
32146 pthread_create(0,0,0,0);
32147 ;
32148 return 0;
32149 }
32150 _ACEOF
32151 rm -f conftest.$ac_objext conftest$ac_exeext
32152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32153 (eval $ac_link) 2>conftest.er1
32154 ac_status=$?
32155 grep -v '^ *+' conftest.er1 >conftest.err
32156 rm -f conftest.er1
32157 cat conftest.err >&5
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); } &&
32160 { ac_try='test -z "$ac_c_werror_flag"
32161 || test ! -s conftest.err'
32162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32163 (eval $ac_try) 2>&5
32164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; } &&
32167 { ac_try='test -s conftest$ac_exeext'
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
32173 THREADS_OK=yes
32174 else
32175 echo "$as_me: failed program was:" >&5
32176 sed 's/^/| /' conftest.$ac_ext >&5
32177
32178 fi
32179 rm -f conftest.err conftest.$ac_objext \
32180 conftest$ac_exeext conftest.$ac_ext
32181
32182 LIBS="$save_LIBS"
32183 CFLAGS="$save_CFLAGS"
32184
32185 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32186 echo "${ECHO_T}$THREADS_OK" >&6
32187 if test "x$THREADS_OK" = "xyes"; then
32188 break;
32189 fi
32190
32191 THREADS_LINK=""
32192 THREADS_CFLAGS=""
32193 done
32194
32195 if test "x$THREADS_OK" != "xyes"; then
32196 wxUSE_THREADS=no
32197 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32198 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32199 else
32200 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32201 LIBS="$THREADS_LINK $LIBS"
32202
32203 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32204 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32205 flag=no
32206 case "${host}" in
32207 *-aix*)
32208 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32209 flag="-D_THREAD_SAFE"
32210 ;;
32211 *-freebsd*)
32212 flag="-D_THREAD_SAFE"
32213 ;;
32214 *-hp-hpux* )
32215 flag="-D_REENTRANT"
32216 if test "x$GCC" != "xyes"; then
32217 flag="$flag -D_RWSTD_MULTI_THREAD"
32218 fi
32219 ;;
32220 *solaris* | alpha*-osf*)
32221 flag="-D_REENTRANT"
32222 ;;
32223 esac
32224 echo "$as_me:$LINENO: result: ${flag}" >&5
32225 echo "${ECHO_T}${flag}" >&6
32226 if test "x$flag" != xno; then
32227 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32228 fi
32229
32230 if test "x$THREADS_CFLAGS" != "x"; then
32231 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32232 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32233 fi
32234 fi
32235 fi
32236
32237 if test "$wxUSE_THREADS" = "yes" ; then
32238
32239 for ac_func in thr_setconcurrency
32240 do
32241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32242 echo "$as_me:$LINENO: checking for $ac_func" >&5
32243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32244 if eval "test \"\${$as_ac_var+set}\" = set"; then
32245 echo $ECHO_N "(cached) $ECHO_C" >&6
32246 else
32247 cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h. */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32255 #define $ac_func innocuous_$ac_func
32256
32257 /* System header to define __stub macros and hopefully few prototypes,
32258 which can conflict with char $ac_func (); below.
32259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32260 <limits.h> exists even on freestanding compilers. */
32261
32262 #ifdef __STDC__
32263 # include <limits.h>
32264 #else
32265 # include <assert.h>
32266 #endif
32267
32268 #undef $ac_func
32269
32270 /* Override any gcc2 internal prototype to avoid an error. */
32271 #ifdef __cplusplus
32272 extern "C"
32273 {
32274 #endif
32275 /* We use char because int might match the return type of a gcc2
32276 builtin and then its argument prototype would still apply. */
32277 char $ac_func ();
32278 /* The GNU C library defines this for functions which it implements
32279 to always fail with ENOSYS. Some functions are actually named
32280 something starting with __ and the normal name is an alias. */
32281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32282 choke me
32283 #else
32284 char (*f) () = $ac_func;
32285 #endif
32286 #ifdef __cplusplus
32287 }
32288 #endif
32289
32290 int
32291 main ()
32292 {
32293 return f != $ac_func;
32294 ;
32295 return 0;
32296 }
32297 _ACEOF
32298 rm -f conftest.$ac_objext conftest$ac_exeext
32299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32300 (eval $ac_link) 2>conftest.er1
32301 ac_status=$?
32302 grep -v '^ *+' conftest.er1 >conftest.err
32303 rm -f conftest.er1
32304 cat conftest.err >&5
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } &&
32307 { ac_try='test -z "$ac_c_werror_flag"
32308 || test ! -s conftest.err'
32309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32310 (eval $ac_try) 2>&5
32311 ac_status=$?
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; } &&
32314 { ac_try='test -s conftest$ac_exeext'
32315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32316 (eval $ac_try) 2>&5
32317 ac_status=$?
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; }; then
32320 eval "$as_ac_var=yes"
32321 else
32322 echo "$as_me: failed program was:" >&5
32323 sed 's/^/| /' conftest.$ac_ext >&5
32324
32325 eval "$as_ac_var=no"
32326 fi
32327 rm -f conftest.err conftest.$ac_objext \
32328 conftest$ac_exeext conftest.$ac_ext
32329 fi
32330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32332 if test `eval echo '${'$as_ac_var'}'` = yes; then
32333 cat >>confdefs.h <<_ACEOF
32334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32335 _ACEOF
32336
32337 fi
32338 done
32339
32340
32341
32342 for ac_header in sched.h
32343 do
32344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32346 echo "$as_me:$LINENO: checking for $ac_header" >&5
32347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32350 fi
32351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32353 else
32354 # Is the header compilable?
32355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32357 cat >conftest.$ac_ext <<_ACEOF
32358 /* confdefs.h. */
32359 _ACEOF
32360 cat confdefs.h >>conftest.$ac_ext
32361 cat >>conftest.$ac_ext <<_ACEOF
32362 /* end confdefs.h. */
32363 $ac_includes_default
32364 #include <$ac_header>
32365 _ACEOF
32366 rm -f conftest.$ac_objext
32367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32368 (eval $ac_compile) 2>conftest.er1
32369 ac_status=$?
32370 grep -v '^ *+' conftest.er1 >conftest.err
32371 rm -f conftest.er1
32372 cat conftest.err >&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); } &&
32375 { ac_try='test -z "$ac_c_werror_flag"
32376 || test ! -s conftest.err'
32377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; } &&
32382 { ac_try='test -s conftest.$ac_objext'
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32388 ac_header_compiler=yes
32389 else
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32392
32393 ac_header_compiler=no
32394 fi
32395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32397 echo "${ECHO_T}$ac_header_compiler" >&6
32398
32399 # Is the header present?
32400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32402 cat >conftest.$ac_ext <<_ACEOF
32403 /* confdefs.h. */
32404 _ACEOF
32405 cat confdefs.h >>conftest.$ac_ext
32406 cat >>conftest.$ac_ext <<_ACEOF
32407 /* end confdefs.h. */
32408 #include <$ac_header>
32409 _ACEOF
32410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32412 ac_status=$?
32413 grep -v '^ *+' conftest.er1 >conftest.err
32414 rm -f conftest.er1
32415 cat conftest.err >&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); } >/dev/null; then
32418 if test -s conftest.err; then
32419 ac_cpp_err=$ac_c_preproc_warn_flag
32420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32421 else
32422 ac_cpp_err=
32423 fi
32424 else
32425 ac_cpp_err=yes
32426 fi
32427 if test -z "$ac_cpp_err"; then
32428 ac_header_preproc=yes
32429 else
32430 echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32432
32433 ac_header_preproc=no
32434 fi
32435 rm -f conftest.err conftest.$ac_ext
32436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32437 echo "${ECHO_T}$ac_header_preproc" >&6
32438
32439 # So? What about this header?
32440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32441 yes:no: )
32442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32446 ac_header_preproc=yes
32447 ;;
32448 no:yes:* )
32449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32461 (
32462 cat <<\_ASBOX
32463 ## ----------------------------------------- ##
32464 ## Report this to wx-dev@lists.wxwindows.org ##
32465 ## ----------------------------------------- ##
32466 _ASBOX
32467 ) |
32468 sed "s/^/$as_me: WARNING: /" >&2
32469 ;;
32470 esac
32471 echo "$as_me:$LINENO: checking for $ac_header" >&5
32472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32475 else
32476 eval "$as_ac_Header=\$ac_header_preproc"
32477 fi
32478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32480
32481 fi
32482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32483 cat >>confdefs.h <<_ACEOF
32484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32485 _ACEOF
32486
32487 fi
32488
32489 done
32490
32491 if test "$ac_cv_header_sched_h" = "yes"; then
32492 echo "$as_me:$LINENO: checking for sched_yield" >&5
32493 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32494 if test "${ac_cv_func_sched_yield+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496 else
32497 cat >conftest.$ac_ext <<_ACEOF
32498 /* confdefs.h. */
32499 _ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h. */
32503 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32505 #define sched_yield innocuous_sched_yield
32506
32507 /* System header to define __stub macros and hopefully few prototypes,
32508 which can conflict with char sched_yield (); below.
32509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32510 <limits.h> exists even on freestanding compilers. */
32511
32512 #ifdef __STDC__
32513 # include <limits.h>
32514 #else
32515 # include <assert.h>
32516 #endif
32517
32518 #undef sched_yield
32519
32520 /* Override any gcc2 internal prototype to avoid an error. */
32521 #ifdef __cplusplus
32522 extern "C"
32523 {
32524 #endif
32525 /* We use char because int might match the return type of a gcc2
32526 builtin and then its argument prototype would still apply. */
32527 char sched_yield ();
32528 /* The GNU C library defines this for functions which it implements
32529 to always fail with ENOSYS. Some functions are actually named
32530 something starting with __ and the normal name is an alias. */
32531 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32532 choke me
32533 #else
32534 char (*f) () = sched_yield;
32535 #endif
32536 #ifdef __cplusplus
32537 }
32538 #endif
32539
32540 int
32541 main ()
32542 {
32543 return f != sched_yield;
32544 ;
32545 return 0;
32546 }
32547 _ACEOF
32548 rm -f conftest.$ac_objext conftest$ac_exeext
32549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32550 (eval $ac_link) 2>conftest.er1
32551 ac_status=$?
32552 grep -v '^ *+' conftest.er1 >conftest.err
32553 rm -f conftest.er1
32554 cat conftest.err >&5
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); } &&
32557 { ac_try='test -z "$ac_c_werror_flag"
32558 || test ! -s conftest.err'
32559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32560 (eval $ac_try) 2>&5
32561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest$ac_exeext'
32565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32566 (eval $ac_try) 2>&5
32567 ac_status=$?
32568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569 (exit $ac_status); }; }; then
32570 ac_cv_func_sched_yield=yes
32571 else
32572 echo "$as_me: failed program was:" >&5
32573 sed 's/^/| /' conftest.$ac_ext >&5
32574
32575 ac_cv_func_sched_yield=no
32576 fi
32577 rm -f conftest.err conftest.$ac_objext \
32578 conftest$ac_exeext conftest.$ac_ext
32579 fi
32580 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32581 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32582 if test $ac_cv_func_sched_yield = yes; then
32583 cat >>confdefs.h <<\_ACEOF
32584 #define HAVE_SCHED_YIELD 1
32585 _ACEOF
32586
32587 else
32588
32589 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32590 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32591 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32592 echo $ECHO_N "(cached) $ECHO_C" >&6
32593 else
32594 ac_check_lib_save_LIBS=$LIBS
32595 LIBS="-lposix4 $LIBS"
32596 cat >conftest.$ac_ext <<_ACEOF
32597 /* confdefs.h. */
32598 _ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h. */
32602
32603 /* Override any gcc2 internal prototype to avoid an error. */
32604 #ifdef __cplusplus
32605 extern "C"
32606 #endif
32607 /* We use char because int might match the return type of a gcc2
32608 builtin and then its argument prototype would still apply. */
32609 char sched_yield ();
32610 int
32611 main ()
32612 {
32613 sched_yield ();
32614 ;
32615 return 0;
32616 }
32617 _ACEOF
32618 rm -f conftest.$ac_objext conftest$ac_exeext
32619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32620 (eval $ac_link) 2>conftest.er1
32621 ac_status=$?
32622 grep -v '^ *+' conftest.er1 >conftest.err
32623 rm -f conftest.er1
32624 cat conftest.err >&5
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); } &&
32627 { ac_try='test -z "$ac_c_werror_flag"
32628 || test ! -s conftest.err'
32629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32630 (eval $ac_try) 2>&5
32631 ac_status=$?
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; } &&
32634 { ac_try='test -s conftest$ac_exeext'
32635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636 (eval $ac_try) 2>&5
32637 ac_status=$?
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); }; }; then
32640 ac_cv_lib_posix4_sched_yield=yes
32641 else
32642 echo "$as_me: failed program was:" >&5
32643 sed 's/^/| /' conftest.$ac_ext >&5
32644
32645 ac_cv_lib_posix4_sched_yield=no
32646 fi
32647 rm -f conftest.err conftest.$ac_objext \
32648 conftest$ac_exeext conftest.$ac_ext
32649 LIBS=$ac_check_lib_save_LIBS
32650 fi
32651 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32652 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32653 if test $ac_cv_lib_posix4_sched_yield = yes; then
32654 cat >>confdefs.h <<\_ACEOF
32655 #define HAVE_SCHED_YIELD 1
32656 _ACEOF
32657 POSIX4_LINK=" -lposix4"
32658 else
32659 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32660 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32661
32662 fi
32663
32664
32665
32666 fi
32667
32668 fi
32669
32670 HAVE_PRIOR_FUNCS=0
32671 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32672 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32673 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32674 echo $ECHO_N "(cached) $ECHO_C" >&6
32675 else
32676 cat >conftest.$ac_ext <<_ACEOF
32677 /* confdefs.h. */
32678 _ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32682 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32684 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32685
32686 /* System header to define __stub macros and hopefully few prototypes,
32687 which can conflict with char pthread_attr_getschedpolicy (); below.
32688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32689 <limits.h> exists even on freestanding compilers. */
32690
32691 #ifdef __STDC__
32692 # include <limits.h>
32693 #else
32694 # include <assert.h>
32695 #endif
32696
32697 #undef pthread_attr_getschedpolicy
32698
32699 /* Override any gcc2 internal prototype to avoid an error. */
32700 #ifdef __cplusplus
32701 extern "C"
32702 {
32703 #endif
32704 /* We use char because int might match the return type of a gcc2
32705 builtin and then its argument prototype would still apply. */
32706 char pthread_attr_getschedpolicy ();
32707 /* The GNU C library defines this for functions which it implements
32708 to always fail with ENOSYS. Some functions are actually named
32709 something starting with __ and the normal name is an alias. */
32710 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32711 choke me
32712 #else
32713 char (*f) () = pthread_attr_getschedpolicy;
32714 #endif
32715 #ifdef __cplusplus
32716 }
32717 #endif
32718
32719 int
32720 main ()
32721 {
32722 return f != pthread_attr_getschedpolicy;
32723 ;
32724 return 0;
32725 }
32726 _ACEOF
32727 rm -f conftest.$ac_objext conftest$ac_exeext
32728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32729 (eval $ac_link) 2>conftest.er1
32730 ac_status=$?
32731 grep -v '^ *+' conftest.er1 >conftest.err
32732 rm -f conftest.er1
32733 cat conftest.err >&5
32734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735 (exit $ac_status); } &&
32736 { ac_try='test -z "$ac_c_werror_flag"
32737 || test ! -s conftest.err'
32738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 (eval $ac_try) 2>&5
32740 ac_status=$?
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; } &&
32743 { ac_try='test -s conftest$ac_exeext'
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
32749 ac_cv_func_pthread_attr_getschedpolicy=yes
32750 else
32751 echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32753
32754 ac_cv_func_pthread_attr_getschedpolicy=no
32755 fi
32756 rm -f conftest.err conftest.$ac_objext \
32757 conftest$ac_exeext conftest.$ac_ext
32758 fi
32759 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32760 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32761 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32762 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32763 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32764 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32765 echo $ECHO_N "(cached) $ECHO_C" >&6
32766 else
32767 cat >conftest.$ac_ext <<_ACEOF
32768 /* confdefs.h. */
32769 _ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h. */
32773 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32775 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32776
32777 /* System header to define __stub macros and hopefully few prototypes,
32778 which can conflict with char pthread_attr_setschedparam (); below.
32779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32780 <limits.h> exists even on freestanding compilers. */
32781
32782 #ifdef __STDC__
32783 # include <limits.h>
32784 #else
32785 # include <assert.h>
32786 #endif
32787
32788 #undef pthread_attr_setschedparam
32789
32790 /* Override any gcc2 internal prototype to avoid an error. */
32791 #ifdef __cplusplus
32792 extern "C"
32793 {
32794 #endif
32795 /* We use char because int might match the return type of a gcc2
32796 builtin and then its argument prototype would still apply. */
32797 char pthread_attr_setschedparam ();
32798 /* The GNU C library defines this for functions which it implements
32799 to always fail with ENOSYS. Some functions are actually named
32800 something starting with __ and the normal name is an alias. */
32801 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32802 choke me
32803 #else
32804 char (*f) () = pthread_attr_setschedparam;
32805 #endif
32806 #ifdef __cplusplus
32807 }
32808 #endif
32809
32810 int
32811 main ()
32812 {
32813 return f != pthread_attr_setschedparam;
32814 ;
32815 return 0;
32816 }
32817 _ACEOF
32818 rm -f conftest.$ac_objext conftest$ac_exeext
32819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32820 (eval $ac_link) 2>conftest.er1
32821 ac_status=$?
32822 grep -v '^ *+' conftest.er1 >conftest.err
32823 rm -f conftest.er1
32824 cat conftest.err >&5
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); } &&
32827 { ac_try='test -z "$ac_c_werror_flag"
32828 || test ! -s conftest.err'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; } &&
32834 { ac_try='test -s conftest$ac_exeext'
32835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32836 (eval $ac_try) 2>&5
32837 ac_status=$?
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); }; }; then
32840 ac_cv_func_pthread_attr_setschedparam=yes
32841 else
32842 echo "$as_me: failed program was:" >&5
32843 sed 's/^/| /' conftest.$ac_ext >&5
32844
32845 ac_cv_func_pthread_attr_setschedparam=no
32846 fi
32847 rm -f conftest.err conftest.$ac_objext \
32848 conftest$ac_exeext conftest.$ac_ext
32849 fi
32850 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32851 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32852 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32853 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32854 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32855 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32856 echo $ECHO_N "(cached) $ECHO_C" >&6
32857 else
32858 cat >conftest.$ac_ext <<_ACEOF
32859 /* confdefs.h. */
32860 _ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h. */
32864 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32866 #define sched_get_priority_max innocuous_sched_get_priority_max
32867
32868 /* System header to define __stub macros and hopefully few prototypes,
32869 which can conflict with char sched_get_priority_max (); below.
32870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32871 <limits.h> exists even on freestanding compilers. */
32872
32873 #ifdef __STDC__
32874 # include <limits.h>
32875 #else
32876 # include <assert.h>
32877 #endif
32878
32879 #undef sched_get_priority_max
32880
32881 /* Override any gcc2 internal prototype to avoid an error. */
32882 #ifdef __cplusplus
32883 extern "C"
32884 {
32885 #endif
32886 /* We use char because int might match the return type of a gcc2
32887 builtin and then its argument prototype would still apply. */
32888 char sched_get_priority_max ();
32889 /* The GNU C library defines this for functions which it implements
32890 to always fail with ENOSYS. Some functions are actually named
32891 something starting with __ and the normal name is an alias. */
32892 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32893 choke me
32894 #else
32895 char (*f) () = sched_get_priority_max;
32896 #endif
32897 #ifdef __cplusplus
32898 }
32899 #endif
32900
32901 int
32902 main ()
32903 {
32904 return f != sched_get_priority_max;
32905 ;
32906 return 0;
32907 }
32908 _ACEOF
32909 rm -f conftest.$ac_objext conftest$ac_exeext
32910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32911 (eval $ac_link) 2>conftest.er1
32912 ac_status=$?
32913 grep -v '^ *+' conftest.er1 >conftest.err
32914 rm -f conftest.er1
32915 cat conftest.err >&5
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } &&
32918 { ac_try='test -z "$ac_c_werror_flag"
32919 || test ! -s conftest.err'
32920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; } &&
32925 { ac_try='test -s conftest$ac_exeext'
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931 ac_cv_func_sched_get_priority_max=yes
32932 else
32933 echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.$ac_ext >&5
32935
32936 ac_cv_func_sched_get_priority_max=no
32937 fi
32938 rm -f conftest.err conftest.$ac_objext \
32939 conftest$ac_exeext conftest.$ac_ext
32940 fi
32941 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32942 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32943 if test $ac_cv_func_sched_get_priority_max = yes; then
32944 HAVE_PRIOR_FUNCS=1
32945 else
32946 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32947 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32948 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32949 echo $ECHO_N "(cached) $ECHO_C" >&6
32950 else
32951 ac_check_lib_save_LIBS=$LIBS
32952 LIBS="-lposix4 $LIBS"
32953 cat >conftest.$ac_ext <<_ACEOF
32954 /* confdefs.h. */
32955 _ACEOF
32956 cat confdefs.h >>conftest.$ac_ext
32957 cat >>conftest.$ac_ext <<_ACEOF
32958 /* end confdefs.h. */
32959
32960 /* Override any gcc2 internal prototype to avoid an error. */
32961 #ifdef __cplusplus
32962 extern "C"
32963 #endif
32964 /* We use char because int might match the return type of a gcc2
32965 builtin and then its argument prototype would still apply. */
32966 char sched_get_priority_max ();
32967 int
32968 main ()
32969 {
32970 sched_get_priority_max ();
32971 ;
32972 return 0;
32973 }
32974 _ACEOF
32975 rm -f conftest.$ac_objext conftest$ac_exeext
32976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32977 (eval $ac_link) 2>conftest.er1
32978 ac_status=$?
32979 grep -v '^ *+' conftest.er1 >conftest.err
32980 rm -f conftest.er1
32981 cat conftest.err >&5
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); } &&
32984 { ac_try='test -z "$ac_c_werror_flag"
32985 || test ! -s conftest.err'
32986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32987 (eval $ac_try) 2>&5
32988 ac_status=$?
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; } &&
32991 { ac_try='test -s conftest$ac_exeext'
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
32997 ac_cv_lib_posix4_sched_get_priority_max=yes
32998 else
32999 echo "$as_me: failed program was:" >&5
33000 sed 's/^/| /' conftest.$ac_ext >&5
33001
33002 ac_cv_lib_posix4_sched_get_priority_max=no
33003 fi
33004 rm -f conftest.err conftest.$ac_objext \
33005 conftest$ac_exeext conftest.$ac_ext
33006 LIBS=$ac_check_lib_save_LIBS
33007 fi
33008 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33009 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33010 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33011
33012 HAVE_PRIOR_FUNCS=1
33013 POSIX4_LINK=" -lposix4"
33014
33015 fi
33016
33017
33018 fi
33019
33020
33021 fi
33022
33023
33024 fi
33025
33026
33027 if test "$HAVE_PRIOR_FUNCS" = 1; then
33028 cat >>confdefs.h <<\_ACEOF
33029 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33030 _ACEOF
33031
33032 else
33033 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33034 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33035 fi
33036
33037 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33038 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33039 if test "${ac_cv_func_pthread_cancel+set}" = set; then
33040 echo $ECHO_N "(cached) $ECHO_C" >&6
33041 else
33042 cat >conftest.$ac_ext <<_ACEOF
33043 /* confdefs.h. */
33044 _ACEOF
33045 cat confdefs.h >>conftest.$ac_ext
33046 cat >>conftest.$ac_ext <<_ACEOF
33047 /* end confdefs.h. */
33048 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33050 #define pthread_cancel innocuous_pthread_cancel
33051
33052 /* System header to define __stub macros and hopefully few prototypes,
33053 which can conflict with char pthread_cancel (); below.
33054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33055 <limits.h> exists even on freestanding compilers. */
33056
33057 #ifdef __STDC__
33058 # include <limits.h>
33059 #else
33060 # include <assert.h>
33061 #endif
33062
33063 #undef pthread_cancel
33064
33065 /* Override any gcc2 internal prototype to avoid an error. */
33066 #ifdef __cplusplus
33067 extern "C"
33068 {
33069 #endif
33070 /* We use char because int might match the return type of a gcc2
33071 builtin and then its argument prototype would still apply. */
33072 char pthread_cancel ();
33073 /* The GNU C library defines this for functions which it implements
33074 to always fail with ENOSYS. Some functions are actually named
33075 something starting with __ and the normal name is an alias. */
33076 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33077 choke me
33078 #else
33079 char (*f) () = pthread_cancel;
33080 #endif
33081 #ifdef __cplusplus
33082 }
33083 #endif
33084
33085 int
33086 main ()
33087 {
33088 return f != pthread_cancel;
33089 ;
33090 return 0;
33091 }
33092 _ACEOF
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33095 (eval $ac_link) 2>conftest.er1
33096 ac_status=$?
33097 grep -v '^ *+' conftest.er1 >conftest.err
33098 rm -f conftest.er1
33099 cat conftest.err >&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); } &&
33102 { ac_try='test -z "$ac_c_werror_flag"
33103 || test ! -s conftest.err'
33104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 (eval $ac_try) 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; } &&
33109 { ac_try='test -s conftest$ac_exeext'
33110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111 (eval $ac_try) 2>&5
33112 ac_status=$?
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); }; }; then
33115 ac_cv_func_pthread_cancel=yes
33116 else
33117 echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33119
33120 ac_cv_func_pthread_cancel=no
33121 fi
33122 rm -f conftest.err conftest.$ac_objext \
33123 conftest$ac_exeext conftest.$ac_ext
33124 fi
33125 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33126 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33127 if test $ac_cv_func_pthread_cancel = yes; then
33128 cat >>confdefs.h <<\_ACEOF
33129 #define HAVE_PTHREAD_CANCEL 1
33130 _ACEOF
33131
33132 else
33133 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33134 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33135 fi
33136
33137
33138
33139
33140 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33141 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33142 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144 else
33145
33146 cat >conftest.$ac_ext <<_ACEOF
33147 /* confdefs.h. */
33148 _ACEOF
33149 cat confdefs.h >>conftest.$ac_ext
33150 cat >>conftest.$ac_ext <<_ACEOF
33151 /* end confdefs.h. */
33152 #include <pthread.h>
33153 int
33154 main ()
33155 {
33156
33157 pthread_mutexattr_t attr;
33158 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33159
33160 ;
33161 return 0;
33162 }
33163 _ACEOF
33164 rm -f conftest.$ac_objext
33165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33166 (eval $ac_compile) 2>conftest.er1
33167 ac_status=$?
33168 grep -v '^ *+' conftest.er1 >conftest.err
33169 rm -f conftest.er1
33170 cat conftest.err >&5
33171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33172 (exit $ac_status); } &&
33173 { ac_try='test -z "$ac_c_werror_flag"
33174 || test ! -s conftest.err'
33175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33176 (eval $ac_try) 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; } &&
33180 { ac_try='test -s conftest.$ac_objext'
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; }; then
33186
33187 wx_cv_type_pthread_mutexattr_t=yes
33188
33189 else
33190 echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33192
33193
33194 wx_cv_type_pthread_mutexattr_t=no
33195
33196
33197 fi
33198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33199
33200 fi
33201 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33202 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33203
33204 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33205 cat >>confdefs.h <<\_ACEOF
33206 #define HAVE_PTHREAD_MUTEXATTR_T 1
33207 _ACEOF
33208
33209 else
33210 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33211 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33212 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33213 echo $ECHO_N "(cached) $ECHO_C" >&6
33214 else
33215
33216 cat >conftest.$ac_ext <<_ACEOF
33217 /* confdefs.h. */
33218 _ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h. */
33222 #include <pthread.h>
33223 int
33224 main ()
33225 {
33226
33227 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33228
33229 ;
33230 return 0;
33231 }
33232 _ACEOF
33233 rm -f conftest.$ac_objext
33234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33235 (eval $ac_compile) 2>conftest.er1
33236 ac_status=$?
33237 grep -v '^ *+' conftest.er1 >conftest.err
33238 rm -f conftest.er1
33239 cat conftest.err >&5
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } &&
33242 { ac_try='test -z "$ac_c_werror_flag"
33243 || test ! -s conftest.err'
33244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33245 (eval $ac_try) 2>&5
33246 ac_status=$?
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); }; } &&
33249 { ac_try='test -s conftest.$ac_objext'
33250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33251 (eval $ac_try) 2>&5
33252 ac_status=$?
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); }; }; then
33255
33256 wx_cv_type_pthread_rec_mutex_init=yes
33257
33258 else
33259 echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33261
33262
33263 wx_cv_type_pthread_rec_mutex_init=no
33264
33265
33266 fi
33267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33268
33269 fi
33270 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33271 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33272 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33273 cat >>confdefs.h <<\_ACEOF
33274 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33275 _ACEOF
33276
33277 else
33278 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33279 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33280 fi
33281 fi
33282 fi
33283
33284 else
33285 if test "$wxUSE_THREADS" = "yes" ; then
33286 case "${host}" in
33287 *-*-mingw32* )
33288 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33289 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33290 if test "${wx_cv_cflags_mthread+set}" = set; then
33291 echo $ECHO_N "(cached) $ECHO_C" >&6
33292 else
33293
33294 CFLAGS_OLD="$CFLAGS"
33295 CFLAGS="$CFLAGS -mthreads"
33296 cat >conftest.$ac_ext <<_ACEOF
33297 /* confdefs.h. */
33298 _ACEOF
33299 cat confdefs.h >>conftest.$ac_ext
33300 cat >>conftest.$ac_ext <<_ACEOF
33301 /* end confdefs.h. */
33302
33303 int
33304 main ()
33305 {
33306
33307 ;
33308 return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33313 (eval $ac_compile) 2>conftest.er1
33314 ac_status=$?
33315 grep -v '^ *+' conftest.er1 >conftest.err
33316 rm -f conftest.er1
33317 cat conftest.err >&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
33320 { ac_try='test -z "$ac_c_werror_flag"
33321 || test ! -s conftest.err'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; } &&
33327 { ac_try='test -s conftest.$ac_objext'
33328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 (eval $ac_try) 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
33333 wx_cv_cflags_mthread=yes
33334 else
33335 echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338 wx_cv_cflags_mthread=no
33339
33340 fi
33341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33342
33343
33344 fi
33345 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33346 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33347
33348 if test "$wx_cv_cflags_mthread" = "yes"; then
33349 CXXFLAGS="$CXXFLAGS -mthreads"
33350 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33351 LDFLAGS="$LDFLAGS -mthreads"
33352 else
33353 CFLAGS="$CFLAGS_OLD"
33354 fi
33355 ;;
33356 *-pc-os2*emx )
33357 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33358 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33359 LDFLAGS="$LDFLAGS -Zmt"
33360 ;;
33361 esac
33362 fi
33363 fi
33364
33365 if test "$wxUSE_THREADS" = "yes"; then
33366 cat >>confdefs.h <<\_ACEOF
33367 #define wxUSE_THREADS 1
33368 _ACEOF
33369
33370
33371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33372 else
33373 if test "$ac_cv_func_strtok_r" = "yes"; then
33374 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33375 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33376 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33377 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33378 echo "$as_me:$LINENO: result: yes" >&5
33379 echo "${ECHO_T}yes" >&6
33380 else
33381 echo "$as_me:$LINENO: result: no" >&5
33382 echo "${ECHO_T}no" >&6
33383 fi
33384 fi
33385 fi
33386
33387 if test "$WXGTK20" = 1 ; then
33388 cat >>confdefs.h <<_ACEOF
33389 #define __WXGTK20__ $WXGTK20
33390 _ACEOF
33391
33392 WXGTK12=1
33393 fi
33394
33395 if test "$WXGTK12" = 1 ; then
33396 cat >>confdefs.h <<_ACEOF
33397 #define __WXGTK12__ $WXGTK12
33398 _ACEOF
33399
33400 fi
33401
33402 if test "$WXGTK127" = 1 ; then
33403 cat >>confdefs.h <<_ACEOF
33404 #define __WXGTK127__ $WXGTK127
33405 _ACEOF
33406
33407 fi
33408
33409 if test "$WXGPE" = 1 ; then
33410 cat >>confdefs.h <<_ACEOF
33411 #define __WXGPE__ $WXGPE
33412 _ACEOF
33413
33414 fi
33415
33416 WXDEBUG=
33417
33418 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33419 WXDEBUG="-g"
33420 wxUSE_OPTIMISE=no
33421 fi
33422
33423 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33424 wxUSE_DEBUG_INFO=yes
33425 WXDEBUG="-ggdb"
33426 fi
33427
33428 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33429 cat >>confdefs.h <<\_ACEOF
33430 #define WXDEBUG 1
33431 _ACEOF
33432
33433 WXDEBUG_DEFINE="-D__WXDEBUG__"
33434 else
33435 if test "$wxUSE_GTK" = 1 ; then
33436 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33437 fi
33438 fi
33439
33440 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33441 cat >>confdefs.h <<\_ACEOF
33442 #define wxUSE_MEMORY_TRACING 1
33443 _ACEOF
33444
33445 cat >>confdefs.h <<\_ACEOF
33446 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33447 _ACEOF
33448
33449 cat >>confdefs.h <<\_ACEOF
33450 #define wxUSE_DEBUG_NEW_ALWAYS 1
33451 _ACEOF
33452
33453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33454 fi
33455
33456 if test "$wxUSE_DMALLOC" = "yes" ; then
33457 DMALLOC_LIBS="-ldmalloc"
33458 fi
33459
33460 PROFILE=
33461 if test "$wxUSE_PROFILE" = "yes" ; then
33462 PROFILE=" -pg"
33463 fi
33464
33465 CODE_GEN_FLAGS=
33466 CODE_GEN_FLAGS_CXX=
33467 if test "$GCC" = "yes" ; then
33468 if test "$wxUSE_NO_RTTI" = "yes" ; then
33469 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33470 fi
33471 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33472 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33473 fi
33474 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33475 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33476 fi
33477
33478 case "${host}" in
33479 powerpc*-*-aix* )
33480 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33481 ;;
33482 *-hppa* )
33483 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33484 ;;
33485 esac
33486 fi
33487
33488 OPTIMISE=
33489 if test "$wxUSE_OPTIMISE" = "no" ; then
33490 if test "$GCC" = yes ; then
33491 OPTIMISE="-O0"
33492 fi
33493 else
33494 if test "$GCC" = yes ; then
33495 OPTIMISE="-O2"
33496
33497 case "${host}" in
33498 i586-*-*|i686-*-* )
33499 OPTIMISE="${OPTIMISE} "
33500 ;;
33501 esac
33502 else
33503 OPTIMISE="-O"
33504 fi
33505 fi
33506
33507
33508 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33509 cat >>confdefs.h <<\_ACEOF
33510 #define WXWIN_COMPATIBILITY_2_2 1
33511 _ACEOF
33512
33513
33514 WXWIN_COMPATIBILITY_2_4="yes"
33515 fi
33516
33517 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33518 cat >>confdefs.h <<\_ACEOF
33519 #define WXWIN_COMPATIBILITY_2_4 1
33520 _ACEOF
33521
33522 fi
33523
33524
33525 if test "$wxUSE_GUI" = "yes"; then
33526 cat >>confdefs.h <<\_ACEOF
33527 #define wxUSE_GUI 1
33528 _ACEOF
33529
33530
33531 else
33532 cat >>confdefs.h <<\_ACEOF
33533 #define wxUSE_NOGUI 1
33534 _ACEOF
33535
33536 fi
33537
33538
33539 if test "$wxUSE_UNIX" = "yes"; then
33540 cat >>confdefs.h <<\_ACEOF
33541 #define wxUSE_UNIX 1
33542 _ACEOF
33543
33544 fi
33545
33546
33547 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33548
33549 HAVE_DL_FUNCS=0
33550 HAVE_SHL_FUNCS=0
33551 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33552 if test "$USE_DARWIN" = 1; then
33553 HAVE_DL_FUNCS=1
33554 else
33555
33556 for ac_func in dlopen
33557 do
33558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33559 echo "$as_me:$LINENO: checking for $ac_func" >&5
33560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33561 if eval "test \"\${$as_ac_var+set}\" = set"; then
33562 echo $ECHO_N "(cached) $ECHO_C" >&6
33563 else
33564 cat >conftest.$ac_ext <<_ACEOF
33565 /* confdefs.h. */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h. */
33570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33572 #define $ac_func innocuous_$ac_func
33573
33574 /* System header to define __stub macros and hopefully few prototypes,
33575 which can conflict with char $ac_func (); below.
33576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33577 <limits.h> exists even on freestanding compilers. */
33578
33579 #ifdef __STDC__
33580 # include <limits.h>
33581 #else
33582 # include <assert.h>
33583 #endif
33584
33585 #undef $ac_func
33586
33587 /* Override any gcc2 internal prototype to avoid an error. */
33588 #ifdef __cplusplus
33589 extern "C"
33590 {
33591 #endif
33592 /* We use char because int might match the return type of a gcc2
33593 builtin and then its argument prototype would still apply. */
33594 char $ac_func ();
33595 /* The GNU C library defines this for functions which it implements
33596 to always fail with ENOSYS. Some functions are actually named
33597 something starting with __ and the normal name is an alias. */
33598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33599 choke me
33600 #else
33601 char (*f) () = $ac_func;
33602 #endif
33603 #ifdef __cplusplus
33604 }
33605 #endif
33606
33607 int
33608 main ()
33609 {
33610 return f != $ac_func;
33611 ;
33612 return 0;
33613 }
33614 _ACEOF
33615 rm -f conftest.$ac_objext conftest$ac_exeext
33616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33617 (eval $ac_link) 2>conftest.er1
33618 ac_status=$?
33619 grep -v '^ *+' conftest.er1 >conftest.err
33620 rm -f conftest.er1
33621 cat conftest.err >&5
33622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 (exit $ac_status); } &&
33624 { ac_try='test -z "$ac_c_werror_flag"
33625 || test ! -s conftest.err'
33626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33627 (eval $ac_try) 2>&5
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); }; } &&
33631 { ac_try='test -s conftest$ac_exeext'
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33634 ac_status=$?
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
33637 eval "$as_ac_var=yes"
33638 else
33639 echo "$as_me: failed program was:" >&5
33640 sed 's/^/| /' conftest.$ac_ext >&5
33641
33642 eval "$as_ac_var=no"
33643 fi
33644 rm -f conftest.err conftest.$ac_objext \
33645 conftest$ac_exeext conftest.$ac_ext
33646 fi
33647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33649 if test `eval echo '${'$as_ac_var'}'` = yes; then
33650 cat >>confdefs.h <<_ACEOF
33651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33652 _ACEOF
33653
33654 cat >>confdefs.h <<\_ACEOF
33655 #define HAVE_DLOPEN 1
33656 _ACEOF
33657
33658 HAVE_DL_FUNCS=1
33659
33660 else
33661
33662 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33665 echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667 ac_check_lib_save_LIBS=$LIBS
33668 LIBS="-ldl $LIBS"
33669 cat >conftest.$ac_ext <<_ACEOF
33670 /* confdefs.h. */
33671 _ACEOF
33672 cat confdefs.h >>conftest.$ac_ext
33673 cat >>conftest.$ac_ext <<_ACEOF
33674 /* end confdefs.h. */
33675
33676 /* Override any gcc2 internal prototype to avoid an error. */
33677 #ifdef __cplusplus
33678 extern "C"
33679 #endif
33680 /* We use char because int might match the return type of a gcc2
33681 builtin and then its argument prototype would still apply. */
33682 char dlopen ();
33683 int
33684 main ()
33685 {
33686 dlopen ();
33687 ;
33688 return 0;
33689 }
33690 _ACEOF
33691 rm -f conftest.$ac_objext conftest$ac_exeext
33692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33693 (eval $ac_link) 2>conftest.er1
33694 ac_status=$?
33695 grep -v '^ *+' conftest.er1 >conftest.err
33696 rm -f conftest.er1
33697 cat conftest.err >&5
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } &&
33700 { ac_try='test -z "$ac_c_werror_flag"
33701 || test ! -s conftest.err'
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33704 ac_status=$?
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; } &&
33707 { ac_try='test -s conftest$ac_exeext'
33708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709 (eval $ac_try) 2>&5
33710 ac_status=$?
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; }; then
33713 ac_cv_lib_dl_dlopen=yes
33714 else
33715 echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33717
33718 ac_cv_lib_dl_dlopen=no
33719 fi
33720 rm -f conftest.err conftest.$ac_objext \
33721 conftest$ac_exeext conftest.$ac_ext
33722 LIBS=$ac_check_lib_save_LIBS
33723 fi
33724 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33726 if test $ac_cv_lib_dl_dlopen = yes; then
33727
33728 cat >>confdefs.h <<\_ACEOF
33729 #define HAVE_DLOPEN 1
33730 _ACEOF
33731
33732 HAVE_DL_FUNCS=1
33733 DL_LINK=" -ldl$DL_LINK"
33734
33735 else
33736
33737
33738 for ac_func in shl_load
33739 do
33740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33741 echo "$as_me:$LINENO: checking for $ac_func" >&5
33742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33743 if eval "test \"\${$as_ac_var+set}\" = set"; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33745 else
33746 cat >conftest.$ac_ext <<_ACEOF
33747 /* confdefs.h. */
33748 _ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h. */
33752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33754 #define $ac_func innocuous_$ac_func
33755
33756 /* System header to define __stub macros and hopefully few prototypes,
33757 which can conflict with char $ac_func (); below.
33758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33759 <limits.h> exists even on freestanding compilers. */
33760
33761 #ifdef __STDC__
33762 # include <limits.h>
33763 #else
33764 # include <assert.h>
33765 #endif
33766
33767 #undef $ac_func
33768
33769 /* Override any gcc2 internal prototype to avoid an error. */
33770 #ifdef __cplusplus
33771 extern "C"
33772 {
33773 #endif
33774 /* We use char because int might match the return type of a gcc2
33775 builtin and then its argument prototype would still apply. */
33776 char $ac_func ();
33777 /* The GNU C library defines this for functions which it implements
33778 to always fail with ENOSYS. Some functions are actually named
33779 something starting with __ and the normal name is an alias. */
33780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33781 choke me
33782 #else
33783 char (*f) () = $ac_func;
33784 #endif
33785 #ifdef __cplusplus
33786 }
33787 #endif
33788
33789 int
33790 main ()
33791 {
33792 return f != $ac_func;
33793 ;
33794 return 0;
33795 }
33796 _ACEOF
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33799 (eval $ac_link) 2>conftest.er1
33800 ac_status=$?
33801 grep -v '^ *+' conftest.er1 >conftest.err
33802 rm -f conftest.er1
33803 cat conftest.err >&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
33806 { ac_try='test -z "$ac_c_werror_flag"
33807 || test ! -s conftest.err'
33808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809 (eval $ac_try) 2>&5
33810 ac_status=$?
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); }; } &&
33813 { ac_try='test -s conftest$ac_exeext'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 eval "$as_ac_var=yes"
33820 else
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824 eval "$as_ac_var=no"
33825 fi
33826 rm -f conftest.err conftest.$ac_objext \
33827 conftest$ac_exeext conftest.$ac_ext
33828 fi
33829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33831 if test `eval echo '${'$as_ac_var'}'` = yes; then
33832 cat >>confdefs.h <<_ACEOF
33833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33834 _ACEOF
33835
33836 cat >>confdefs.h <<\_ACEOF
33837 #define HAVE_SHL_LOAD 1
33838 _ACEOF
33839
33840 HAVE_SHL_FUNCS=1
33841
33842 else
33843
33844 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33845 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33846 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33847 echo $ECHO_N "(cached) $ECHO_C" >&6
33848 else
33849 ac_check_lib_save_LIBS=$LIBS
33850 LIBS="-lshl_load $LIBS"
33851 cat >conftest.$ac_ext <<_ACEOF
33852 /* confdefs.h. */
33853 _ACEOF
33854 cat confdefs.h >>conftest.$ac_ext
33855 cat >>conftest.$ac_ext <<_ACEOF
33856 /* end confdefs.h. */
33857
33858 /* Override any gcc2 internal prototype to avoid an error. */
33859 #ifdef __cplusplus
33860 extern "C"
33861 #endif
33862 /* We use char because int might match the return type of a gcc2
33863 builtin and then its argument prototype would still apply. */
33864 char dld ();
33865 int
33866 main ()
33867 {
33868 dld ();
33869 ;
33870 return 0;
33871 }
33872 _ACEOF
33873 rm -f conftest.$ac_objext conftest$ac_exeext
33874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33875 (eval $ac_link) 2>conftest.er1
33876 ac_status=$?
33877 grep -v '^ *+' conftest.er1 >conftest.err
33878 rm -f conftest.er1
33879 cat conftest.err >&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } &&
33882 { ac_try='test -z "$ac_c_werror_flag"
33883 || test ! -s conftest.err'
33884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885 (eval $ac_try) 2>&5
33886 ac_status=$?
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); }; } &&
33889 { ac_try='test -s conftest$ac_exeext'
33890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891 (eval $ac_try) 2>&5
33892 ac_status=$?
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_cv_lib_shl_load_dld=yes
33896 else
33897 echo "$as_me: failed program was:" >&5
33898 sed 's/^/| /' conftest.$ac_ext >&5
33899
33900 ac_cv_lib_shl_load_dld=no
33901 fi
33902 rm -f conftest.err conftest.$ac_objext \
33903 conftest$ac_exeext conftest.$ac_ext
33904 LIBS=$ac_check_lib_save_LIBS
33905 fi
33906 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33907 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33908 if test $ac_cv_lib_shl_load_dld = yes; then
33909
33910 HAVE_SHL_FUNCS=1
33911 DL_LINK=" -ldld$DL_LINK"
33912
33913 fi
33914
33915
33916 fi
33917 done
33918
33919
33920 fi
33921
33922
33923 fi
33924 done
33925
33926
33927 if test "$HAVE_DL_FUNCS" = 1; then
33928
33929 for ac_func in dlerror
33930 do
33931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33932 echo "$as_me:$LINENO: checking for $ac_func" >&5
33933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33934 if eval "test \"\${$as_ac_var+set}\" = set"; then
33935 echo $ECHO_N "(cached) $ECHO_C" >&6
33936 else
33937 cat >conftest.$ac_ext <<_ACEOF
33938 /* confdefs.h. */
33939 _ACEOF
33940 cat confdefs.h >>conftest.$ac_ext
33941 cat >>conftest.$ac_ext <<_ACEOF
33942 /* end confdefs.h. */
33943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33945 #define $ac_func innocuous_$ac_func
33946
33947 /* System header to define __stub macros and hopefully few prototypes,
33948 which can conflict with char $ac_func (); below.
33949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33950 <limits.h> exists even on freestanding compilers. */
33951
33952 #ifdef __STDC__
33953 # include <limits.h>
33954 #else
33955 # include <assert.h>
33956 #endif
33957
33958 #undef $ac_func
33959
33960 /* Override any gcc2 internal prototype to avoid an error. */
33961 #ifdef __cplusplus
33962 extern "C"
33963 {
33964 #endif
33965 /* We use char because int might match the return type of a gcc2
33966 builtin and then its argument prototype would still apply. */
33967 char $ac_func ();
33968 /* The GNU C library defines this for functions which it implements
33969 to always fail with ENOSYS. Some functions are actually named
33970 something starting with __ and the normal name is an alias. */
33971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33972 choke me
33973 #else
33974 char (*f) () = $ac_func;
33975 #endif
33976 #ifdef __cplusplus
33977 }
33978 #endif
33979
33980 int
33981 main ()
33982 {
33983 return f != $ac_func;
33984 ;
33985 return 0;
33986 }
33987 _ACEOF
33988 rm -f conftest.$ac_objext conftest$ac_exeext
33989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33990 (eval $ac_link) 2>conftest.er1
33991 ac_status=$?
33992 grep -v '^ *+' conftest.er1 >conftest.err
33993 rm -f conftest.er1
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } &&
33997 { ac_try='test -z "$ac_c_werror_flag"
33998 || test ! -s conftest.err'
33999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34000 (eval $ac_try) 2>&5
34001 ac_status=$?
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); }; } &&
34004 { ac_try='test -s conftest$ac_exeext'
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34007 ac_status=$?
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; }; then
34010 eval "$as_ac_var=yes"
34011 else
34012 echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34014
34015 eval "$as_ac_var=no"
34016 fi
34017 rm -f conftest.err conftest.$ac_objext \
34018 conftest$ac_exeext conftest.$ac_ext
34019 fi
34020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34022 if test `eval echo '${'$as_ac_var'}'` = yes; then
34023 cat >>confdefs.h <<_ACEOF
34024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34025 _ACEOF
34026 cat >>confdefs.h <<\_ACEOF
34027 #define HAVE_DLERROR 1
34028 _ACEOF
34029
34030 else
34031
34032 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34033 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34034 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34035 echo $ECHO_N "(cached) $ECHO_C" >&6
34036 else
34037 ac_check_lib_save_LIBS=$LIBS
34038 LIBS="-ldl $LIBS"
34039 cat >conftest.$ac_ext <<_ACEOF
34040 /* confdefs.h. */
34041 _ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h. */
34045
34046 /* Override any gcc2 internal prototype to avoid an error. */
34047 #ifdef __cplusplus
34048 extern "C"
34049 #endif
34050 /* We use char because int might match the return type of a gcc2
34051 builtin and then its argument prototype would still apply. */
34052 char dlerror ();
34053 int
34054 main ()
34055 {
34056 dlerror ();
34057 ;
34058 return 0;
34059 }
34060 _ACEOF
34061 rm -f conftest.$ac_objext conftest$ac_exeext
34062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34063 (eval $ac_link) 2>conftest.er1
34064 ac_status=$?
34065 grep -v '^ *+' conftest.er1 >conftest.err
34066 rm -f conftest.er1
34067 cat conftest.err >&5
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); } &&
34070 { ac_try='test -z "$ac_c_werror_flag"
34071 || test ! -s conftest.err'
34072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073 (eval $ac_try) 2>&5
34074 ac_status=$?
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest$ac_exeext'
34078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079 (eval $ac_try) 2>&5
34080 ac_status=$?
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); }; }; then
34083 ac_cv_lib_dl_dlerror=yes
34084 else
34085 echo "$as_me: failed program was:" >&5
34086 sed 's/^/| /' conftest.$ac_ext >&5
34087
34088 ac_cv_lib_dl_dlerror=no
34089 fi
34090 rm -f conftest.err conftest.$ac_objext \
34091 conftest$ac_exeext conftest.$ac_ext
34092 LIBS=$ac_check_lib_save_LIBS
34093 fi
34094 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34095 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34096 if test $ac_cv_lib_dl_dlerror = yes; then
34097 cat >>confdefs.h <<\_ACEOF
34098 #define HAVE_DLERROR 1
34099 _ACEOF
34100
34101 fi
34102
34103
34104
34105 fi
34106 done
34107
34108 fi
34109 fi
34110
34111 if test "$HAVE_DL_FUNCS" = 0; then
34112 if test "$HAVE_SHL_FUNCS" = 0; then
34113 if test "$USE_UNIX" = 1; then
34114 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34115 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34116 wxUSE_DYNAMIC_LOADER=no
34117 wxUSE_DYNLIB_CLASS=no
34118 else
34119 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34120 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34121 fi
34122 fi
34123 fi
34124 fi
34125 fi
34126
34127 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34128 cat >>confdefs.h <<\_ACEOF
34129 #define wxUSE_DYNAMIC_LOADER 1
34130 _ACEOF
34131
34132 fi
34133 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34134 cat >>confdefs.h <<\_ACEOF
34135 #define wxUSE_DYNLIB_CLASS 1
34136 _ACEOF
34137
34138 fi
34139
34140
34141
34142 if test "$wxUSE_PLUGINS" = "yes" ; then
34143 if test "$wxUSE_SHARED" = "no" ; then
34144 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34145 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34146 wxUSE_PLUGINS=no
34147 fi
34148 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34149 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34150 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34151 wxUSE_PLUGINS=no
34152 fi
34153 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34154 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34155 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34156 wxUSE_PLUGINS=no
34157 fi
34158 if test "$wxUSE_PLUGINS" = "yes" ; then
34159 cat >>confdefs.h <<\_ACEOF
34160 #define wxUSE_PLUGINS 1
34161 _ACEOF
34162
34163 fi
34164 fi
34165
34166
34167 if test "$wxUSE_STL" = "yes"; then
34168 cat >>confdefs.h <<\_ACEOF
34169 #define wxUSE_STL 1
34170 _ACEOF
34171
34172 fi
34173
34174 if test "$wxUSE_APPLE_IEEE" = "yes"; then
34175 cat >>confdefs.h <<\_ACEOF
34176 #define wxUSE_APPLE_IEEE 1
34177 _ACEOF
34178
34179 fi
34180
34181 if test "$wxUSE_TIMER" = "yes"; then
34182 cat >>confdefs.h <<\_ACEOF
34183 #define wxUSE_TIMER 1
34184 _ACEOF
34185
34186 fi
34187
34188 WITH_PLUGIN_SDL=0
34189 if test "$wxUSE_SOUND" = "yes"; then
34190 if test "$USE_UNIX" = "1" ; then
34191
34192 for ac_header in sys/soundcard.h
34193 do
34194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34196 echo "$as_me:$LINENO: checking for $ac_header" >&5
34197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34199 echo $ECHO_N "(cached) $ECHO_C" >&6
34200 fi
34201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34203 else
34204 # Is the header compilable?
34205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34207 cat >conftest.$ac_ext <<_ACEOF
34208 /* confdefs.h. */
34209 _ACEOF
34210 cat confdefs.h >>conftest.$ac_ext
34211 cat >>conftest.$ac_ext <<_ACEOF
34212 /* end confdefs.h. */
34213 $ac_includes_default
34214 #include <$ac_header>
34215 _ACEOF
34216 rm -f conftest.$ac_objext
34217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34218 (eval $ac_compile) 2>conftest.er1
34219 ac_status=$?
34220 grep -v '^ *+' conftest.er1 >conftest.err
34221 rm -f conftest.er1
34222 cat conftest.err >&5
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); } &&
34225 { ac_try='test -z "$ac_c_werror_flag"
34226 || test ! -s conftest.err'
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; } &&
34232 { ac_try='test -s conftest.$ac_objext'
34233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34234 (eval $ac_try) 2>&5
34235 ac_status=$?
34236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237 (exit $ac_status); }; }; then
34238 ac_header_compiler=yes
34239 else
34240 echo "$as_me: failed program was:" >&5
34241 sed 's/^/| /' conftest.$ac_ext >&5
34242
34243 ac_header_compiler=no
34244 fi
34245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34247 echo "${ECHO_T}$ac_header_compiler" >&6
34248
34249 # Is the header present?
34250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34252 cat >conftest.$ac_ext <<_ACEOF
34253 /* confdefs.h. */
34254 _ACEOF
34255 cat confdefs.h >>conftest.$ac_ext
34256 cat >>conftest.$ac_ext <<_ACEOF
34257 /* end confdefs.h. */
34258 #include <$ac_header>
34259 _ACEOF
34260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34262 ac_status=$?
34263 grep -v '^ *+' conftest.er1 >conftest.err
34264 rm -f conftest.er1
34265 cat conftest.err >&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } >/dev/null; then
34268 if test -s conftest.err; then
34269 ac_cpp_err=$ac_c_preproc_warn_flag
34270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34271 else
34272 ac_cpp_err=
34273 fi
34274 else
34275 ac_cpp_err=yes
34276 fi
34277 if test -z "$ac_cpp_err"; then
34278 ac_header_preproc=yes
34279 else
34280 echo "$as_me: failed program was:" >&5
34281 sed 's/^/| /' conftest.$ac_ext >&5
34282
34283 ac_header_preproc=no
34284 fi
34285 rm -f conftest.err conftest.$ac_ext
34286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34287 echo "${ECHO_T}$ac_header_preproc" >&6
34288
34289 # So? What about this header?
34290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34291 yes:no: )
34292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34296 ac_header_preproc=yes
34297 ;;
34298 no:yes:* )
34299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34311 (
34312 cat <<\_ASBOX
34313 ## ----------------------------------------- ##
34314 ## Report this to wx-dev@lists.wxwindows.org ##
34315 ## ----------------------------------------- ##
34316 _ASBOX
34317 ) |
34318 sed "s/^/$as_me: WARNING: /" >&2
34319 ;;
34320 esac
34321 echo "$as_me:$LINENO: checking for $ac_header" >&5
34322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34324 echo $ECHO_N "(cached) $ECHO_C" >&6
34325 else
34326 eval "$as_ac_Header=\$ac_header_preproc"
34327 fi
34328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34330
34331 fi
34332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34333 cat >>confdefs.h <<_ACEOF
34334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34335 _ACEOF
34336
34337 fi
34338
34339 done
34340
34341
34342 if test "$wxUSE_LIBSDL" != "no"; then
34343
34344 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34345 if test "${with_sdl_prefix+set}" = set; then
34346 withval="$with_sdl_prefix"
34347 sdl_prefix="$withval"
34348 else
34349 sdl_prefix=""
34350 fi;
34351
34352 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34353 if test "${with_sdl_exec_prefix+set}" = set; then
34354 withval="$with_sdl_exec_prefix"
34355 sdl_exec_prefix="$withval"
34356 else
34357 sdl_exec_prefix=""
34358 fi;
34359 # Check whether --enable-sdltest or --disable-sdltest was given.
34360 if test "${enable_sdltest+set}" = set; then
34361 enableval="$enable_sdltest"
34362
34363 else
34364 enable_sdltest=yes
34365 fi;
34366
34367 if test x$sdl_exec_prefix != x ; then
34368 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34369 if test x${SDL_CONFIG+set} != xset ; then
34370 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34371 fi
34372 fi
34373 if test x$sdl_prefix != x ; then
34374 sdl_args="$sdl_args --prefix=$sdl_prefix"
34375 if test x${SDL_CONFIG+set} != xset ; then
34376 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34377 fi
34378 fi
34379
34380
34381 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34382 # Extract the first word of "sdl-config", so it can be a program name with args.
34383 set dummy sdl-config; ac_word=$2
34384 echo "$as_me:$LINENO: checking for $ac_word" >&5
34385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34386 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34387 echo $ECHO_N "(cached) $ECHO_C" >&6
34388 else
34389 case $SDL_CONFIG in
34390 [\\/]* | ?:[\\/]*)
34391 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34392 ;;
34393 *)
34394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34395 for as_dir in $PATH
34396 do
34397 IFS=$as_save_IFS
34398 test -z "$as_dir" && as_dir=.
34399 for ac_exec_ext in '' $ac_executable_extensions; do
34400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34401 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34403 break 2
34404 fi
34405 done
34406 done
34407
34408 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34409 ;;
34410 esac
34411 fi
34412 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34413
34414 if test -n "$SDL_CONFIG"; then
34415 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34416 echo "${ECHO_T}$SDL_CONFIG" >&6
34417 else
34418 echo "$as_me:$LINENO: result: no" >&5
34419 echo "${ECHO_T}no" >&6
34420 fi
34421
34422 min_sdl_version=1.2.0
34423 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34424 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34425 no_sdl=""
34426 if test "$SDL_CONFIG" = "no" ; then
34427 no_sdl=yes
34428 else
34429 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34430 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34431
34432 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34434 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34436 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34438 if test "x$enable_sdltest" = "xyes" ; then
34439 ac_save_CFLAGS="$CFLAGS"
34440 ac_save_LIBS="$LIBS"
34441 CFLAGS="$CFLAGS $SDL_CFLAGS"
34442 LIBS="$LIBS $SDL_LIBS"
34443 rm -f conf.sdltest
34444 if test "$cross_compiling" = yes; then
34445 echo $ac_n "cross compiling; assumed OK... $ac_c"
34446 else
34447 cat >conftest.$ac_ext <<_ACEOF
34448 /* confdefs.h. */
34449 _ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h. */
34453
34454 #include <stdio.h>
34455 #include <stdlib.h>
34456 #include <string.h>
34457 #include "SDL.h"
34458
34459 char*
34460 my_strdup (char *str)
34461 {
34462 char *new_str;
34463
34464 if (str)
34465 {
34466 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34467 strcpy (new_str, str);
34468 }
34469 else
34470 new_str = NULL;
34471
34472 return new_str;
34473 }
34474
34475 int main (int argc, char *argv[])
34476 {
34477 int major, minor, micro;
34478 char *tmp_version;
34479
34480 /* This hangs on some systems (?)
34481 system ("touch conf.sdltest");
34482 */
34483 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34484
34485 /* HP/UX 9 (%@#!) writes to sscanf strings */
34486 tmp_version = my_strdup("$min_sdl_version");
34487 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34488 printf("%s, bad version string\n", "$min_sdl_version");
34489 exit(1);
34490 }
34491
34492 if (($sdl_major_version > major) ||
34493 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34494 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34495 {
34496 return 0;
34497 }
34498 else
34499 {
34500 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34501 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34502 printf("*** best to upgrade to the required version.\n");
34503 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34504 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34505 printf("*** config.cache before re-running configure\n");
34506 return 1;
34507 }
34508 }
34509
34510
34511 _ACEOF
34512 rm -f conftest$ac_exeext
34513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34514 (eval $ac_link) 2>&5
34515 ac_status=$?
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34520 ac_status=$?
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; }; then
34523 :
34524 else
34525 echo "$as_me: program exited with status $ac_status" >&5
34526 echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34528
34529 ( exit $ac_status )
34530 no_sdl=yes
34531 fi
34532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34533 fi
34534 CFLAGS="$ac_save_CFLAGS"
34535 LIBS="$ac_save_LIBS"
34536 fi
34537 fi
34538 if test "x$no_sdl" = x ; then
34539 echo "$as_me:$LINENO: result: yes" >&5
34540 echo "${ECHO_T}yes" >&6
34541
34542 EXTRALIBS_SDL="$SDL_LIBS"
34543 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34544 cat >>confdefs.h <<\_ACEOF
34545 #define wxUSE_LIBSDL 1
34546 _ACEOF
34547
34548
34549 else
34550 echo "$as_me:$LINENO: result: no" >&5
34551 echo "${ECHO_T}no" >&6
34552 if test "$SDL_CONFIG" = "no" ; then
34553 echo "*** The sdl-config script installed by SDL could not be found"
34554 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34555 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34556 echo "*** full path to sdl-config."
34557 else
34558 if test -f conf.sdltest ; then
34559 :
34560 else
34561 echo "*** Could not run SDL test program, checking why..."
34562 CFLAGS="$CFLAGS $SDL_CFLAGS"
34563 LIBS="$LIBS $SDL_LIBS"
34564 cat >conftest.$ac_ext <<_ACEOF
34565 /* confdefs.h. */
34566 _ACEOF
34567 cat confdefs.h >>conftest.$ac_ext
34568 cat >>conftest.$ac_ext <<_ACEOF
34569 /* end confdefs.h. */
34570
34571 #include <stdio.h>
34572 #include "SDL.h"
34573
34574 int main(int argc, char *argv[])
34575 { return 0; }
34576 #undef main
34577 #define main K_and_R_C_main
34578
34579 int
34580 main ()
34581 {
34582 return 0;
34583 ;
34584 return 0;
34585 }
34586 _ACEOF
34587 rm -f conftest.$ac_objext conftest$ac_exeext
34588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34589 (eval $ac_link) 2>conftest.er1
34590 ac_status=$?
34591 grep -v '^ *+' conftest.er1 >conftest.err
34592 rm -f conftest.er1
34593 cat conftest.err >&5
34594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); } &&
34596 { ac_try='test -z "$ac_c_werror_flag"
34597 || test ! -s conftest.err'
34598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34599 (eval $ac_try) 2>&5
34600 ac_status=$?
34601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); }; } &&
34603 { ac_try='test -s conftest$ac_exeext'
34604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34605 (eval $ac_try) 2>&5
34606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609 echo "*** The test program compiled, but did not run. This usually means"
34610 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34611 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34612 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34613 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34614 echo "*** is required on your system"
34615 echo "***"
34616 echo "*** If you have an old version installed, it is best to remove it, although"
34617 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34618 else
34619 echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34621
34622 echo "*** The test program failed to compile or link. See the file config.log for the"
34623 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34624 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34625 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34626 fi
34627 rm -f conftest.err conftest.$ac_objext \
34628 conftest$ac_exeext conftest.$ac_ext
34629 CFLAGS="$ac_save_CFLAGS"
34630 LIBS="$ac_save_LIBS"
34631 fi
34632 fi
34633 SDL_CFLAGS=""
34634 SDL_LIBS=""
34635 wxUSE_LIBSDL="no"
34636 fi
34637
34638
34639 rm -f conf.sdltest
34640
34641 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34642 WITH_PLUGIN_SDL=1
34643 fi
34644 fi
34645 fi
34646
34647 cat >>confdefs.h <<\_ACEOF
34648 #define wxUSE_SOUND 1
34649 _ACEOF
34650
34651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34652 fi
34653
34654 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34655 cat >>confdefs.h <<\_ACEOF
34656 #define wxUSE_CMDLINE_PARSER 1
34657 _ACEOF
34658
34659 fi
34660
34661 if test "$wxUSE_STOPWATCH" = "yes"; then
34662 cat >>confdefs.h <<\_ACEOF
34663 #define wxUSE_STOPWATCH 1
34664 _ACEOF
34665
34666 fi
34667
34668 if test "$wxUSE_DATETIME" = "yes"; then
34669 cat >>confdefs.h <<\_ACEOF
34670 #define wxUSE_DATETIME 1
34671 _ACEOF
34672
34673 fi
34674
34675 if test "$wxUSE_FILE" = "yes"; then
34676 cat >>confdefs.h <<\_ACEOF
34677 #define wxUSE_FILE 1
34678 _ACEOF
34679
34680 fi
34681
34682 if test "$wxUSE_FFILE" = "yes"; then
34683 cat >>confdefs.h <<\_ACEOF
34684 #define wxUSE_FFILE 1
34685 _ACEOF
34686
34687 fi
34688
34689 if test "$wxUSE_FILESYSTEM" = "yes"; then
34690 cat >>confdefs.h <<\_ACEOF
34691 #define wxUSE_FILESYSTEM 1
34692 _ACEOF
34693
34694 fi
34695
34696 if test "$wxUSE_FS_ZIP" = "yes"; then
34697 cat >>confdefs.h <<\_ACEOF
34698 #define wxUSE_FS_ZIP 1
34699 _ACEOF
34700
34701 fi
34702
34703 if test "$wxUSE_ZIPSTREAM" = "yes"; then
34704 cat >>confdefs.h <<\_ACEOF
34705 #define wxUSE_ZIPSTREAM 1
34706 _ACEOF
34707
34708 fi
34709
34710 if test "$wxUSE_GZSTREAM" = "yes"; then
34711 cat >>confdefs.h <<\_ACEOF
34712 #define wxUSE_GZSTREAM 1
34713 _ACEOF
34714
34715 fi
34716
34717 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34718 cat >>confdefs.h <<\_ACEOF
34719 #define wxUSE_ON_FATAL_EXCEPTION 1
34720 _ACEOF
34721
34722 fi
34723
34724 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34725 cat >>confdefs.h <<\_ACEOF
34726 #define wxUSE_SNGLINST_CHECKER 1
34727 _ACEOF
34728
34729 fi
34730
34731 if test "$wxUSE_BUSYINFO" = "yes"; then
34732 cat >>confdefs.h <<\_ACEOF
34733 #define wxUSE_BUSYINFO 1
34734 _ACEOF
34735
34736 fi
34737
34738 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34739 cat >>confdefs.h <<\_ACEOF
34740 #define wxUSE_STD_IOSTREAM 1
34741 _ACEOF
34742
34743 fi
34744
34745 if test "$wxUSE_TEXTBUFFER" = "yes"; then
34746 cat >>confdefs.h <<\_ACEOF
34747 #define wxUSE_TEXTBUFFER 1
34748 _ACEOF
34749
34750 fi
34751
34752 if test "$wxUSE_TEXTFILE" = "yes"; then
34753 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34754 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34755 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34756 else
34757 cat >>confdefs.h <<\_ACEOF
34758 #define wxUSE_TEXTFILE 1
34759 _ACEOF
34760
34761 fi
34762 fi
34763
34764 if test "$wxUSE_CONFIG" = "yes" ; then
34765 if test "$wxUSE_TEXTFILE" != "yes"; then
34766 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34767 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34768 else
34769 cat >>confdefs.h <<\_ACEOF
34770 #define wxUSE_CONFIG 1
34771 _ACEOF
34772
34773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34774 fi
34775 fi
34776
34777 if test "$wxUSE_INTL" = "yes" ; then
34778 if test "$wxUSE_FILE" != "yes"; then
34779 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34780 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34781 else
34782 cat >>confdefs.h <<\_ACEOF
34783 #define wxUSE_INTL 1
34784 _ACEOF
34785
34786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34787 GUIDIST="$GUIDIST INTL_DIST"
34788 fi
34789 fi
34790
34791 if test "$wxUSE_LOG" = "yes"; then
34792 cat >>confdefs.h <<\_ACEOF
34793 #define wxUSE_LOG 1
34794 _ACEOF
34795
34796
34797 if test "$wxUSE_LOGGUI" = "yes"; then
34798 cat >>confdefs.h <<\_ACEOF
34799 #define wxUSE_LOGGUI 1
34800 _ACEOF
34801
34802 fi
34803
34804 if test "$wxUSE_LOGWINDOW" = "yes"; then
34805 cat >>confdefs.h <<\_ACEOF
34806 #define wxUSE_LOGWINDOW 1
34807 _ACEOF
34808
34809 fi
34810
34811 if test "$wxUSE_LOGDIALOG" = "yes"; then
34812 cat >>confdefs.h <<\_ACEOF
34813 #define wxUSE_LOG_DIALOG 1
34814 _ACEOF
34815
34816 fi
34817 fi
34818
34819 if test "$wxUSE_LONGLONG" = "yes"; then
34820 cat >>confdefs.h <<\_ACEOF
34821 #define wxUSE_LONGLONG 1
34822 _ACEOF
34823
34824 fi
34825
34826 if test "$wxUSE_GEOMETRY" = "yes"; then
34827 cat >>confdefs.h <<\_ACEOF
34828 #define wxUSE_GEOMETRY 1
34829 _ACEOF
34830
34831 fi
34832
34833 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34834 cat >>confdefs.h <<\_ACEOF
34835 #define wxUSE_DIALUP_MANAGER 1
34836 _ACEOF
34837
34838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34839 fi
34840
34841 if test "$wxUSE_STREAMS" = "yes" ; then
34842 cat >>confdefs.h <<\_ACEOF
34843 #define wxUSE_STREAMS 1
34844 _ACEOF
34845
34846 fi
34847
34848
34849 if test "$wxUSE_DATETIME" = "yes"; then
34850
34851 for ac_func in strptime
34852 do
34853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34854 echo "$as_me:$LINENO: checking for $ac_func" >&5
34855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34856 if eval "test \"\${$as_ac_var+set}\" = set"; then
34857 echo $ECHO_N "(cached) $ECHO_C" >&6
34858 else
34859 cat >conftest.$ac_ext <<_ACEOF
34860 /* confdefs.h. */
34861 _ACEOF
34862 cat confdefs.h >>conftest.$ac_ext
34863 cat >>conftest.$ac_ext <<_ACEOF
34864 /* end confdefs.h. */
34865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34867 #define $ac_func innocuous_$ac_func
34868
34869 /* System header to define __stub macros and hopefully few prototypes,
34870 which can conflict with char $ac_func (); below.
34871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34872 <limits.h> exists even on freestanding compilers. */
34873
34874 #ifdef __STDC__
34875 # include <limits.h>
34876 #else
34877 # include <assert.h>
34878 #endif
34879
34880 #undef $ac_func
34881
34882 /* Override any gcc2 internal prototype to avoid an error. */
34883 #ifdef __cplusplus
34884 extern "C"
34885 {
34886 #endif
34887 /* We use char because int might match the return type of a gcc2
34888 builtin and then its argument prototype would still apply. */
34889 char $ac_func ();
34890 /* The GNU C library defines this for functions which it implements
34891 to always fail with ENOSYS. Some functions are actually named
34892 something starting with __ and the normal name is an alias. */
34893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34894 choke me
34895 #else
34896 char (*f) () = $ac_func;
34897 #endif
34898 #ifdef __cplusplus
34899 }
34900 #endif
34901
34902 int
34903 main ()
34904 {
34905 return f != $ac_func;
34906 ;
34907 return 0;
34908 }
34909 _ACEOF
34910 rm -f conftest.$ac_objext conftest$ac_exeext
34911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34912 (eval $ac_link) 2>conftest.er1
34913 ac_status=$?
34914 grep -v '^ *+' conftest.er1 >conftest.err
34915 rm -f conftest.er1
34916 cat conftest.err >&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
34919 { ac_try='test -z "$ac_c_werror_flag"
34920 || test ! -s conftest.err'
34921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34922 (eval $ac_try) 2>&5
34923 ac_status=$?
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); }; } &&
34926 { ac_try='test -s conftest$ac_exeext'
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34929 ac_status=$?
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; }; then
34932 eval "$as_ac_var=yes"
34933 else
34934 echo "$as_me: failed program was:" >&5
34935 sed 's/^/| /' conftest.$ac_ext >&5
34936
34937 eval "$as_ac_var=no"
34938 fi
34939 rm -f conftest.err conftest.$ac_objext \
34940 conftest$ac_exeext conftest.$ac_ext
34941 fi
34942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34944 if test `eval echo '${'$as_ac_var'}'` = yes; then
34945 cat >>confdefs.h <<_ACEOF
34946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34947 _ACEOF
34948
34949 fi
34950 done
34951
34952
34953 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34954 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34955 if test "${wx_cv_var_timezone+set}" = set; then
34956 echo $ECHO_N "(cached) $ECHO_C" >&6
34957 else
34958
34959 cat >conftest.$ac_ext <<_ACEOF
34960 /* confdefs.h. */
34961 _ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h. */
34965
34966 #include <time.h>
34967
34968 int
34969 main ()
34970 {
34971
34972 int tz;
34973 tz = timezone;
34974
34975 ;
34976 return 0;
34977 }
34978 _ACEOF
34979 rm -f conftest.$ac_objext
34980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34981 (eval $ac_compile) 2>conftest.er1
34982 ac_status=$?
34983 grep -v '^ *+' conftest.er1 >conftest.err
34984 rm -f conftest.er1
34985 cat conftest.err >&5
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); } &&
34988 { ac_try='test -z "$ac_c_werror_flag"
34989 || test ! -s conftest.err'
34990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991 (eval $ac_try) 2>&5
34992 ac_status=$?
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); }; } &&
34995 { ac_try='test -s conftest.$ac_objext'
34996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997 (eval $ac_try) 2>&5
34998 ac_status=$?
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; }; then
35001
35002 wx_cv_var_timezone=timezone
35003
35004 else
35005 echo "$as_me: failed program was:" >&5
35006 sed 's/^/| /' conftest.$ac_ext >&5
35007
35008
35009 cat >conftest.$ac_ext <<_ACEOF
35010 /* confdefs.h. */
35011 _ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h. */
35015
35016 #include <time.h>
35017
35018 int
35019 main ()
35020 {
35021
35022 int tz;
35023 tz = _timezone;
35024
35025 ;
35026 return 0;
35027 }
35028 _ACEOF
35029 rm -f conftest.$ac_objext
35030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35031 (eval $ac_compile) 2>conftest.er1
35032 ac_status=$?
35033 grep -v '^ *+' conftest.er1 >conftest.err
35034 rm -f conftest.er1
35035 cat conftest.err >&5
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); } &&
35038 { ac_try='test -z "$ac_c_werror_flag"
35039 || test ! -s conftest.err'
35040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041 (eval $ac_try) 2>&5
35042 ac_status=$?
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; } &&
35045 { ac_try='test -s conftest.$ac_objext'
35046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047 (eval $ac_try) 2>&5
35048 ac_status=$?
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); }; }; then
35051
35052 wx_cv_var_timezone=_timezone
35053
35054 else
35055 echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.$ac_ext >&5
35057
35058
35059 cat >conftest.$ac_ext <<_ACEOF
35060 /* confdefs.h. */
35061 _ACEOF
35062 cat confdefs.h >>conftest.$ac_ext
35063 cat >>conftest.$ac_ext <<_ACEOF
35064 /* end confdefs.h. */
35065
35066 #include <time.h>
35067
35068 int
35069 main ()
35070 {
35071
35072 int tz;
35073 tz = __timezone;
35074
35075 ;
35076 return 0;
35077 }
35078 _ACEOF
35079 rm -f conftest.$ac_objext
35080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35081 (eval $ac_compile) 2>conftest.er1
35082 ac_status=$?
35083 grep -v '^ *+' conftest.er1 >conftest.err
35084 rm -f conftest.er1
35085 cat conftest.err >&5
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); } &&
35088 { ac_try='test -z "$ac_c_werror_flag"
35089 || test ! -s conftest.err'
35090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091 (eval $ac_try) 2>&5
35092 ac_status=$?
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); }; } &&
35095 { ac_try='test -s conftest.$ac_objext'
35096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097 (eval $ac_try) 2>&5
35098 ac_status=$?
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); }; }; then
35101
35102 wx_cv_var_timezone=__timezone
35103
35104 else
35105 echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108
35109 if test "$USE_DOS" = 0 ; then
35110 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35111 echo "$as_me: WARNING: no timezone variable" >&2;}
35112 fi
35113
35114
35115 fi
35116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35117
35118
35119 fi
35120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35121
35122
35123 fi
35124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35125
35126
35127 fi
35128 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35129 echo "${ECHO_T}$wx_cv_var_timezone" >&6
35130
35131 if test "x$wx_cv_var_timezone" != x ; then
35132 cat >>confdefs.h <<_ACEOF
35133 #define WX_TIMEZONE $wx_cv_var_timezone
35134 _ACEOF
35135
35136 fi
35137
35138
35139 for ac_func in localtime
35140 do
35141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35142 echo "$as_me:$LINENO: checking for $ac_func" >&5
35143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35144 if eval "test \"\${$as_ac_var+set}\" = set"; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 else
35147 cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h. */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35155 #define $ac_func innocuous_$ac_func
35156
35157 /* System header to define __stub macros and hopefully few prototypes,
35158 which can conflict with char $ac_func (); below.
35159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35160 <limits.h> exists even on freestanding compilers. */
35161
35162 #ifdef __STDC__
35163 # include <limits.h>
35164 #else
35165 # include <assert.h>
35166 #endif
35167
35168 #undef $ac_func
35169
35170 /* Override any gcc2 internal prototype to avoid an error. */
35171 #ifdef __cplusplus
35172 extern "C"
35173 {
35174 #endif
35175 /* We use char because int might match the return type of a gcc2
35176 builtin and then its argument prototype would still apply. */
35177 char $ac_func ();
35178 /* The GNU C library defines this for functions which it implements
35179 to always fail with ENOSYS. Some functions are actually named
35180 something starting with __ and the normal name is an alias. */
35181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35182 choke me
35183 #else
35184 char (*f) () = $ac_func;
35185 #endif
35186 #ifdef __cplusplus
35187 }
35188 #endif
35189
35190 int
35191 main ()
35192 {
35193 return f != $ac_func;
35194 ;
35195 return 0;
35196 }
35197 _ACEOF
35198 rm -f conftest.$ac_objext conftest$ac_exeext
35199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35200 (eval $ac_link) 2>conftest.er1
35201 ac_status=$?
35202 grep -v '^ *+' conftest.er1 >conftest.err
35203 rm -f conftest.er1
35204 cat conftest.err >&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
35207 { ac_try='test -z "$ac_c_werror_flag"
35208 || test ! -s conftest.err'
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; } &&
35214 { ac_try='test -s conftest$ac_exeext'
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35217 ac_status=$?
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
35220 eval "$as_ac_var=yes"
35221 else
35222 echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35224
35225 eval "$as_ac_var=no"
35226 fi
35227 rm -f conftest.err conftest.$ac_objext \
35228 conftest$ac_exeext conftest.$ac_ext
35229 fi
35230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35232 if test `eval echo '${'$as_ac_var'}'` = yes; then
35233 cat >>confdefs.h <<_ACEOF
35234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35235 _ACEOF
35236
35237 fi
35238 done
35239
35240
35241 if test "$ac_cv_func_localtime" = "yes"; then
35242 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35243 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35244 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35245 echo $ECHO_N "(cached) $ECHO_C" >&6
35246 else
35247
35248 cat >conftest.$ac_ext <<_ACEOF
35249 /* confdefs.h. */
35250 _ACEOF
35251 cat confdefs.h >>conftest.$ac_ext
35252 cat >>conftest.$ac_ext <<_ACEOF
35253 /* end confdefs.h. */
35254
35255 #include <time.h>
35256
35257 int
35258 main ()
35259 {
35260
35261 struct tm tm;
35262 tm.tm_gmtoff++;
35263
35264 ;
35265 return 0;
35266 }
35267 _ACEOF
35268 rm -f conftest.$ac_objext
35269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35270 (eval $ac_compile) 2>conftest.er1
35271 ac_status=$?
35272 grep -v '^ *+' conftest.er1 >conftest.err
35273 rm -f conftest.er1
35274 cat conftest.err >&5
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); } &&
35277 { ac_try='test -z "$ac_c_werror_flag"
35278 || test ! -s conftest.err'
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35281 ac_status=$?
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; } &&
35284 { ac_try='test -s conftest.$ac_objext'
35285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286 (eval $ac_try) 2>&5
35287 ac_status=$?
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; }; then
35290
35291 wx_cv_struct_tm_has_gmtoff=yes
35292
35293 else
35294 echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35296
35297 wx_cv_struct_tm_has_gmtoff=no
35298
35299 fi
35300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35301
35302 fi
35303 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35304 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35305 fi
35306
35307 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35308 cat >>confdefs.h <<\_ACEOF
35309 #define WX_GMTOFF_IN_TM 1
35310 _ACEOF
35311
35312 fi
35313
35314
35315
35316 for ac_func in gettimeofday ftime
35317 do
35318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35319 echo "$as_me:$LINENO: checking for $ac_func" >&5
35320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35321 if eval "test \"\${$as_ac_var+set}\" = set"; then
35322 echo $ECHO_N "(cached) $ECHO_C" >&6
35323 else
35324 cat >conftest.$ac_ext <<_ACEOF
35325 /* confdefs.h. */
35326 _ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h. */
35330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35332 #define $ac_func innocuous_$ac_func
35333
35334 /* System header to define __stub macros and hopefully few prototypes,
35335 which can conflict with char $ac_func (); below.
35336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35337 <limits.h> exists even on freestanding compilers. */
35338
35339 #ifdef __STDC__
35340 # include <limits.h>
35341 #else
35342 # include <assert.h>
35343 #endif
35344
35345 #undef $ac_func
35346
35347 /* Override any gcc2 internal prototype to avoid an error. */
35348 #ifdef __cplusplus
35349 extern "C"
35350 {
35351 #endif
35352 /* We use char because int might match the return type of a gcc2
35353 builtin and then its argument prototype would still apply. */
35354 char $ac_func ();
35355 /* The GNU C library defines this for functions which it implements
35356 to always fail with ENOSYS. Some functions are actually named
35357 something starting with __ and the normal name is an alias. */
35358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35359 choke me
35360 #else
35361 char (*f) () = $ac_func;
35362 #endif
35363 #ifdef __cplusplus
35364 }
35365 #endif
35366
35367 int
35368 main ()
35369 {
35370 return f != $ac_func;
35371 ;
35372 return 0;
35373 }
35374 _ACEOF
35375 rm -f conftest.$ac_objext conftest$ac_exeext
35376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35377 (eval $ac_link) 2>conftest.er1
35378 ac_status=$?
35379 grep -v '^ *+' conftest.er1 >conftest.err
35380 rm -f conftest.er1
35381 cat conftest.err >&5
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); } &&
35384 { ac_try='test -z "$ac_c_werror_flag"
35385 || test ! -s conftest.err'
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35388 ac_status=$?
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; } &&
35391 { ac_try='test -s conftest$ac_exeext'
35392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35393 (eval $ac_try) 2>&5
35394 ac_status=$?
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); }; }; then
35397 eval "$as_ac_var=yes"
35398 else
35399 echo "$as_me: failed program was:" >&5
35400 sed 's/^/| /' conftest.$ac_ext >&5
35401
35402 eval "$as_ac_var=no"
35403 fi
35404 rm -f conftest.err conftest.$ac_objext \
35405 conftest$ac_exeext conftest.$ac_ext
35406 fi
35407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35409 if test `eval echo '${'$as_ac_var'}'` = yes; then
35410 cat >>confdefs.h <<_ACEOF
35411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35412 _ACEOF
35413 break
35414 fi
35415 done
35416
35417
35418 if test "$ac_cv_func_gettimeofday" = "yes"; then
35419 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35420 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35421 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35422 echo $ECHO_N "(cached) $ECHO_C" >&6
35423 else
35424
35425
35426
35427 ac_ext=cc
35428 ac_cpp='$CXXCPP $CPPFLAGS'
35429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35432
35433
35434 cat >conftest.$ac_ext <<_ACEOF
35435 /* confdefs.h. */
35436 _ACEOF
35437 cat confdefs.h >>conftest.$ac_ext
35438 cat >>conftest.$ac_ext <<_ACEOF
35439 /* end confdefs.h. */
35440
35441 #include <sys/time.h>
35442 #include <unistd.h>
35443
35444 int
35445 main ()
35446 {
35447
35448 struct timeval tv;
35449 gettimeofday(&tv, NULL);
35450
35451 ;
35452 return 0;
35453 }
35454 _ACEOF
35455 rm -f conftest.$ac_objext
35456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35457 (eval $ac_compile) 2>conftest.er1
35458 ac_status=$?
35459 grep -v '^ *+' conftest.er1 >conftest.err
35460 rm -f conftest.er1
35461 cat conftest.err >&5
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); } &&
35464 { ac_try='test -z "$ac_cxx_werror_flag"
35465 || test ! -s conftest.err'
35466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35467 (eval $ac_try) 2>&5
35468 ac_status=$?
35469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35470 (exit $ac_status); }; } &&
35471 { ac_try='test -s conftest.$ac_objext'
35472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35473 (eval $ac_try) 2>&5
35474 ac_status=$?
35475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35476 (exit $ac_status); }; }; then
35477 wx_cv_func_gettimeofday_has_2_args=yes
35478 else
35479 echo "$as_me: failed program was:" >&5
35480 sed 's/^/| /' conftest.$ac_ext >&5
35481
35482 cat >conftest.$ac_ext <<_ACEOF
35483 /* confdefs.h. */
35484 _ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h. */
35488
35489 #include <sys/time.h>
35490 #include <unistd.h>
35491
35492 int
35493 main ()
35494 {
35495
35496 struct timeval tv;
35497 gettimeofday(&tv);
35498
35499 ;
35500 return 0;
35501 }
35502 _ACEOF
35503 rm -f conftest.$ac_objext
35504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35505 (eval $ac_compile) 2>conftest.er1
35506 ac_status=$?
35507 grep -v '^ *+' conftest.er1 >conftest.err
35508 rm -f conftest.er1
35509 cat conftest.err >&5
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); } &&
35512 { ac_try='test -z "$ac_cxx_werror_flag"
35513 || test ! -s conftest.err'
35514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35515 (eval $ac_try) 2>&5
35516 ac_status=$?
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; } &&
35519 { ac_try='test -s conftest.$ac_objext'
35520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35521 (eval $ac_try) 2>&5
35522 ac_status=$?
35523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524 (exit $ac_status); }; }; then
35525 wx_cv_func_gettimeofday_has_2_args=no
35526 else
35527 echo "$as_me: failed program was:" >&5
35528 sed 's/^/| /' conftest.$ac_ext >&5
35529
35530
35531 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35532 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35533 wx_cv_func_gettimeofday_has_2_args=unknown
35534
35535
35536 fi
35537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35538
35539 fi
35540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35541 ac_ext=c
35542 ac_cpp='$CPP $CPPFLAGS'
35543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35546
35547
35548 fi
35549 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35550 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35551
35552 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35553 cat >>confdefs.h <<\_ACEOF
35554 #define WX_GETTIMEOFDAY_NO_TZ 1
35555 _ACEOF
35556
35557 fi
35558 fi
35559
35560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35561 fi
35562
35563
35564 if test "$wxUSE_SOCKETS" = "yes"; then
35565 if test "$wxUSE_MGL" = "1"; then
35566 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35567 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35568 wxUSE_SOCKETS="no"
35569 fi
35570 fi
35571
35572 if test "$wxUSE_SOCKETS" = "yes"; then
35573 if test "$TOOLKIT" != "MSW"; then
35574 echo "$as_me:$LINENO: checking for socket" >&5
35575 echo $ECHO_N "checking for socket... $ECHO_C" >&6
35576 if test "${ac_cv_func_socket+set}" = set; then
35577 echo $ECHO_N "(cached) $ECHO_C" >&6
35578 else
35579 cat >conftest.$ac_ext <<_ACEOF
35580 /* confdefs.h. */
35581 _ACEOF
35582 cat confdefs.h >>conftest.$ac_ext
35583 cat >>conftest.$ac_ext <<_ACEOF
35584 /* end confdefs.h. */
35585 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
35586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35587 #define socket innocuous_socket
35588
35589 /* System header to define __stub macros and hopefully few prototypes,
35590 which can conflict with char socket (); below.
35591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35592 <limits.h> exists even on freestanding compilers. */
35593
35594 #ifdef __STDC__
35595 # include <limits.h>
35596 #else
35597 # include <assert.h>
35598 #endif
35599
35600 #undef socket
35601
35602 /* Override any gcc2 internal prototype to avoid an error. */
35603 #ifdef __cplusplus
35604 extern "C"
35605 {
35606 #endif
35607 /* We use char because int might match the return type of a gcc2
35608 builtin and then its argument prototype would still apply. */
35609 char socket ();
35610 /* The GNU C library defines this for functions which it implements
35611 to always fail with ENOSYS. Some functions are actually named
35612 something starting with __ and the normal name is an alias. */
35613 #if defined (__stub_socket) || defined (__stub___socket)
35614 choke me
35615 #else
35616 char (*f) () = socket;
35617 #endif
35618 #ifdef __cplusplus
35619 }
35620 #endif
35621
35622 int
35623 main ()
35624 {
35625 return f != socket;
35626 ;
35627 return 0;
35628 }
35629 _ACEOF
35630 rm -f conftest.$ac_objext conftest$ac_exeext
35631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35632 (eval $ac_link) 2>conftest.er1
35633 ac_status=$?
35634 grep -v '^ *+' conftest.er1 >conftest.err
35635 rm -f conftest.er1
35636 cat conftest.err >&5
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); } &&
35639 { ac_try='test -z "$ac_c_werror_flag"
35640 || test ! -s conftest.err'
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; } &&
35646 { ac_try='test -s conftest$ac_exeext'
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; }; then
35652 ac_cv_func_socket=yes
35653 else
35654 echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35656
35657 ac_cv_func_socket=no
35658 fi
35659 rm -f conftest.err conftest.$ac_objext \
35660 conftest$ac_exeext conftest.$ac_ext
35661 fi
35662 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35663 echo "${ECHO_T}$ac_cv_func_socket" >&6
35664 if test $ac_cv_func_socket = yes; then
35665 :
35666 else
35667
35668 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35669 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35670 if test "${ac_cv_lib_socket_socket+set}" = set; then
35671 echo $ECHO_N "(cached) $ECHO_C" >&6
35672 else
35673 ac_check_lib_save_LIBS=$LIBS
35674 LIBS="-lsocket $LIBS"
35675 cat >conftest.$ac_ext <<_ACEOF
35676 /* confdefs.h. */
35677 _ACEOF
35678 cat confdefs.h >>conftest.$ac_ext
35679 cat >>conftest.$ac_ext <<_ACEOF
35680 /* end confdefs.h. */
35681
35682 /* Override any gcc2 internal prototype to avoid an error. */
35683 #ifdef __cplusplus
35684 extern "C"
35685 #endif
35686 /* We use char because int might match the return type of a gcc2
35687 builtin and then its argument prototype would still apply. */
35688 char socket ();
35689 int
35690 main ()
35691 {
35692 socket ();
35693 ;
35694 return 0;
35695 }
35696 _ACEOF
35697 rm -f conftest.$ac_objext conftest$ac_exeext
35698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35699 (eval $ac_link) 2>conftest.er1
35700 ac_status=$?
35701 grep -v '^ *+' conftest.er1 >conftest.err
35702 rm -f conftest.er1
35703 cat conftest.err >&5
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); } &&
35706 { ac_try='test -z "$ac_c_werror_flag"
35707 || test ! -s conftest.err'
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; } &&
35713 { ac_try='test -s conftest$ac_exeext'
35714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715 (eval $ac_try) 2>&5
35716 ac_status=$?
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); }; }; then
35719 ac_cv_lib_socket_socket=yes
35720 else
35721 echo "$as_me: failed program was:" >&5
35722 sed 's/^/| /' conftest.$ac_ext >&5
35723
35724 ac_cv_lib_socket_socket=no
35725 fi
35726 rm -f conftest.err conftest.$ac_objext \
35727 conftest$ac_exeext conftest.$ac_ext
35728 LIBS=$ac_check_lib_save_LIBS
35729 fi
35730 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35731 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35732 if test $ac_cv_lib_socket_socket = yes; then
35733 if test "$INET_LINK" != " -lsocket"; then
35734 INET_LINK="$INET_LINK -lsocket"
35735 fi
35736 else
35737
35738 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35739 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35740 wxUSE_SOCKETS=no
35741
35742
35743 fi
35744
35745
35746
35747 fi
35748
35749 fi
35750 fi
35751
35752 if test "$wxUSE_SOCKETS" = "yes" ; then
35753 if test "$TOOLKIT" != "MSW"; then
35754 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35755 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35756 if test "${wx_cv_type_getsockname3+set}" = set; then
35757 echo $ECHO_N "(cached) $ECHO_C" >&6
35758 else
35759
35760 cat >conftest.$ac_ext <<_ACEOF
35761 /* confdefs.h. */
35762 _ACEOF
35763 cat confdefs.h >>conftest.$ac_ext
35764 cat >>conftest.$ac_ext <<_ACEOF
35765 /* end confdefs.h. */
35766
35767 #include <sys/types.h>
35768 #include <sys/socket.h>
35769
35770 int
35771 main ()
35772 {
35773
35774 socklen_t len;
35775 getsockname(0, 0, &len);
35776
35777 ;
35778 return 0;
35779 }
35780 _ACEOF
35781 rm -f conftest.$ac_objext
35782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35783 (eval $ac_compile) 2>conftest.er1
35784 ac_status=$?
35785 grep -v '^ *+' conftest.er1 >conftest.err
35786 rm -f conftest.er1
35787 cat conftest.err >&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
35790 { ac_try='test -z "$ac_c_werror_flag"
35791 || test ! -s conftest.err'
35792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35793 (eval $ac_try) 2>&5
35794 ac_status=$?
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); }; } &&
35797 { ac_try='test -s conftest.$ac_objext'
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35803 wx_cv_type_getsockname3=socklen_t
35804 else
35805 echo "$as_me: failed program was:" >&5
35806 sed 's/^/| /' conftest.$ac_ext >&5
35807
35808
35809 CFLAGS_OLD="$CFLAGS"
35810 if test "$GCC" = yes ; then
35811 CFLAGS="$CFLAGS -Werror"
35812 fi
35813
35814 cat >conftest.$ac_ext <<_ACEOF
35815 /* confdefs.h. */
35816 _ACEOF
35817 cat confdefs.h >>conftest.$ac_ext
35818 cat >>conftest.$ac_ext <<_ACEOF
35819 /* end confdefs.h. */
35820
35821 #include <sys/types.h>
35822 #include <sys/socket.h>
35823
35824 int
35825 main ()
35826 {
35827
35828 size_t len;
35829 getsockname(0, 0, &len);
35830
35831 ;
35832 return 0;
35833 }
35834 _ACEOF
35835 rm -f conftest.$ac_objext
35836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35837 (eval $ac_compile) 2>conftest.er1
35838 ac_status=$?
35839 grep -v '^ *+' conftest.er1 >conftest.err
35840 rm -f conftest.er1
35841 cat conftest.err >&5
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); } &&
35844 { ac_try='test -z "$ac_c_werror_flag"
35845 || test ! -s conftest.err'
35846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847 (eval $ac_try) 2>&5
35848 ac_status=$?
35849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850 (exit $ac_status); }; } &&
35851 { ac_try='test -s conftest.$ac_objext'
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35854 ac_status=$?
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; }; then
35857 wx_cv_type_getsockname3=size_t
35858 else
35859 echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.$ac_ext >&5
35861
35862 cat >conftest.$ac_ext <<_ACEOF
35863 /* confdefs.h. */
35864 _ACEOF
35865 cat confdefs.h >>conftest.$ac_ext
35866 cat >>conftest.$ac_ext <<_ACEOF
35867 /* end confdefs.h. */
35868
35869 #include <sys/types.h>
35870 #include <sys/socket.h>
35871
35872 int
35873 main ()
35874 {
35875
35876 int len;
35877 getsockname(0, 0, &len);
35878
35879 ;
35880 return 0;
35881 }
35882 _ACEOF
35883 rm -f conftest.$ac_objext
35884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35885 (eval $ac_compile) 2>conftest.er1
35886 ac_status=$?
35887 grep -v '^ *+' conftest.er1 >conftest.err
35888 rm -f conftest.er1
35889 cat conftest.err >&5
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); } &&
35892 { ac_try='test -z "$ac_c_werror_flag"
35893 || test ! -s conftest.err'
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35896 ac_status=$?
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; } &&
35899 { ac_try='test -s conftest.$ac_objext'
35900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901 (eval $ac_try) 2>&5
35902 ac_status=$?
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); }; }; then
35905 wx_cv_type_getsockname3=int
35906 else
35907 echo "$as_me: failed program was:" >&5
35908 sed 's/^/| /' conftest.$ac_ext >&5
35909
35910 wx_cv_type_getsockname3=unknown
35911
35912 fi
35913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35914
35915 fi
35916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35917
35918 CFLAGS="$CFLAGS_OLD"
35919
35920
35921 fi
35922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35923
35924 fi
35925 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35926 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35927
35928 if test "$wx_cv_type_getsockname3" = "unknown"; then
35929 wxUSE_SOCKETS=no
35930 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35931 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35932 else
35933 cat >>confdefs.h <<_ACEOF
35934 #define SOCKLEN_T $wx_cv_type_getsockname3
35935 _ACEOF
35936
35937 fi
35938 fi
35939 fi
35940
35941 if test "$wxUSE_SOCKETS" = "yes" ; then
35942 cat >>confdefs.h <<\_ACEOF
35943 #define wxUSE_SOCKETS 1
35944 _ACEOF
35945
35946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35947 fi
35948
35949 if test "$wxUSE_PROTOCOL" = "yes"; then
35950 if test "$wxUSE_SOCKETS" != "yes"; then
35951 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35952 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35953 wxUSE_PROTOCOL=no
35954 fi
35955 fi
35956
35957 if test "$wxUSE_PROTOCOL" = "yes"; then
35958 cat >>confdefs.h <<\_ACEOF
35959 #define wxUSE_PROTOCOL 1
35960 _ACEOF
35961
35962
35963 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35964 cat >>confdefs.h <<\_ACEOF
35965 #define wxUSE_PROTOCOL_HTTP 1
35966 _ACEOF
35967
35968 fi
35969 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35970 cat >>confdefs.h <<\_ACEOF
35971 #define wxUSE_PROTOCOL_FTP 1
35972 _ACEOF
35973
35974 fi
35975 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35976 cat >>confdefs.h <<\_ACEOF
35977 #define wxUSE_PROTOCOL_FILE 1
35978 _ACEOF
35979
35980 fi
35981 else
35982 if test "$wxUSE_FS_INET" = "yes"; then
35983 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35984 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35985 wxUSE_FS_INET="no"
35986 fi
35987 fi
35988
35989 if test "$wxUSE_URL" = "yes"; then
35990 if test "$wxUSE_PROTOCOL" != "yes"; then
35991 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35992 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35993 wxUSE_URL=no
35994 fi
35995 if test "$wxUSE_URL" = "yes"; then
35996 cat >>confdefs.h <<\_ACEOF
35997 #define wxUSE_URL 1
35998 _ACEOF
35999
36000 fi
36001 fi
36002
36003 if test "$wxUSE_FS_INET" = "yes"; then
36004 cat >>confdefs.h <<\_ACEOF
36005 #define wxUSE_FS_INET 1
36006 _ACEOF
36007
36008 fi
36009
36010
36011 if test "$wxUSE_GUI" = "yes"; then
36012
36013 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36014 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36015 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36016 wxUSE_JOYSTICK=no
36017 fi
36018
36019 if test "$TOOLKIT" != "MSW"; then
36020 if test "$wxUSE_JOYSTICK" = "yes"; then
36021
36022 for ac_header in linux/joystick.h
36023 do
36024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36026 echo "$as_me:$LINENO: checking for $ac_header" >&5
36027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36029 echo $ECHO_N "(cached) $ECHO_C" >&6
36030 fi
36031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36033 else
36034 # Is the header compilable?
36035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36037 cat >conftest.$ac_ext <<_ACEOF
36038 /* confdefs.h. */
36039 _ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h. */
36043 $ac_includes_default
36044 #include <$ac_header>
36045 _ACEOF
36046 rm -f conftest.$ac_objext
36047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36048 (eval $ac_compile) 2>conftest.er1
36049 ac_status=$?
36050 grep -v '^ *+' conftest.er1 >conftest.err
36051 rm -f conftest.er1
36052 cat conftest.err >&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); } &&
36055 { ac_try='test -z "$ac_c_werror_flag"
36056 || test ! -s conftest.err'
36057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058 (eval $ac_try) 2>&5
36059 ac_status=$?
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); }; } &&
36062 { ac_try='test -s conftest.$ac_objext'
36063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36064 (eval $ac_try) 2>&5
36065 ac_status=$?
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); }; }; then
36068 ac_header_compiler=yes
36069 else
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073 ac_header_compiler=no
36074 fi
36075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36077 echo "${ECHO_T}$ac_header_compiler" >&6
36078
36079 # Is the header present?
36080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36082 cat >conftest.$ac_ext <<_ACEOF
36083 /* confdefs.h. */
36084 _ACEOF
36085 cat confdefs.h >>conftest.$ac_ext
36086 cat >>conftest.$ac_ext <<_ACEOF
36087 /* end confdefs.h. */
36088 #include <$ac_header>
36089 _ACEOF
36090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36092 ac_status=$?
36093 grep -v '^ *+' conftest.er1 >conftest.err
36094 rm -f conftest.er1
36095 cat conftest.err >&5
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); } >/dev/null; then
36098 if test -s conftest.err; then
36099 ac_cpp_err=$ac_c_preproc_warn_flag
36100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36101 else
36102 ac_cpp_err=
36103 fi
36104 else
36105 ac_cpp_err=yes
36106 fi
36107 if test -z "$ac_cpp_err"; then
36108 ac_header_preproc=yes
36109 else
36110 echo "$as_me: failed program was:" >&5
36111 sed 's/^/| /' conftest.$ac_ext >&5
36112
36113 ac_header_preproc=no
36114 fi
36115 rm -f conftest.err conftest.$ac_ext
36116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36117 echo "${ECHO_T}$ac_header_preproc" >&6
36118
36119 # So? What about this header?
36120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36121 yes:no: )
36122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36126 ac_header_preproc=yes
36127 ;;
36128 no:yes:* )
36129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36141 (
36142 cat <<\_ASBOX
36143 ## ----------------------------------------- ##
36144 ## Report this to wx-dev@lists.wxwindows.org ##
36145 ## ----------------------------------------- ##
36146 _ASBOX
36147 ) |
36148 sed "s/^/$as_me: WARNING: /" >&2
36149 ;;
36150 esac
36151 echo "$as_me:$LINENO: checking for $ac_header" >&5
36152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36154 echo $ECHO_N "(cached) $ECHO_C" >&6
36155 else
36156 eval "$as_ac_Header=\$ac_header_preproc"
36157 fi
36158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36160
36161 fi
36162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36163 cat >>confdefs.h <<_ACEOF
36164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36165 _ACEOF
36166
36167 fi
36168
36169 done
36170
36171 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36172 wxUSE_JOYSTICK=no
36173 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36174 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36175 fi
36176 fi
36177 fi
36178
36179 if test "$wxUSE_JOYSTICK" = "yes"; then
36180 cat >>confdefs.h <<\_ACEOF
36181 #define wxUSE_JOYSTICK 1
36182 _ACEOF
36183
36184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36185 fi
36186 fi
36187
36188
36189
36190 if test "$wxUSE_FONTMAP" = "yes" ; then
36191 cat >>confdefs.h <<\_ACEOF
36192 #define wxUSE_FONTMAP 1
36193 _ACEOF
36194
36195 fi
36196
36197 if test "$wxUSE_UNICODE" = "yes" ; then
36198 cat >>confdefs.h <<\_ACEOF
36199 #define wxUSE_UNICODE 1
36200 _ACEOF
36201
36202
36203 if test "$USE_WIN32" != 1; then
36204 wxUSE_UNICODE_MSLU=no
36205 fi
36206
36207 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36208 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36209 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36210 if test "${ac_cv_lib_unicows_main+set}" = set; then
36211 echo $ECHO_N "(cached) $ECHO_C" >&6
36212 else
36213 ac_check_lib_save_LIBS=$LIBS
36214 LIBS="-lunicows $LIBS"
36215 cat >conftest.$ac_ext <<_ACEOF
36216 /* confdefs.h. */
36217 _ACEOF
36218 cat confdefs.h >>conftest.$ac_ext
36219 cat >>conftest.$ac_ext <<_ACEOF
36220 /* end confdefs.h. */
36221
36222
36223 int
36224 main ()
36225 {
36226 main ();
36227 ;
36228 return 0;
36229 }
36230 _ACEOF
36231 rm -f conftest.$ac_objext conftest$ac_exeext
36232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36233 (eval $ac_link) 2>conftest.er1
36234 ac_status=$?
36235 grep -v '^ *+' conftest.er1 >conftest.err
36236 rm -f conftest.er1
36237 cat conftest.err >&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); } &&
36240 { ac_try='test -z "$ac_c_werror_flag"
36241 || test ! -s conftest.err'
36242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36243 (eval $ac_try) 2>&5
36244 ac_status=$?
36245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36246 (exit $ac_status); }; } &&
36247 { ac_try='test -s conftest$ac_exeext'
36248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36249 (eval $ac_try) 2>&5
36250 ac_status=$?
36251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252 (exit $ac_status); }; }; then
36253 ac_cv_lib_unicows_main=yes
36254 else
36255 echo "$as_me: failed program was:" >&5
36256 sed 's/^/| /' conftest.$ac_ext >&5
36257
36258 ac_cv_lib_unicows_main=no
36259 fi
36260 rm -f conftest.err conftest.$ac_objext \
36261 conftest$ac_exeext conftest.$ac_ext
36262 LIBS=$ac_check_lib_save_LIBS
36263 fi
36264 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36265 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36266 if test $ac_cv_lib_unicows_main = yes; then
36267
36268 cat >>confdefs.h <<\_ACEOF
36269 #define wxUSE_UNICODE_MSLU 1
36270 _ACEOF
36271
36272
36273 else
36274
36275 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36276 Applications will only run on Windows NT/2000/XP!" >&5
36277 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36278 Applications will only run on Windows NT/2000/XP!" >&2;}
36279 wxUSE_UNICODE_MSLU=no
36280
36281 fi
36282
36283 fi
36284 fi
36285
36286 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36287 cat >>confdefs.h <<\_ACEOF
36288 #define wxUSE_EXPERIMENTAL_PRINTF 1
36289 _ACEOF
36290
36291 fi
36292
36293
36294 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36295 cat >>confdefs.h <<\_ACEOF
36296 #define wxUSE_POSTSCRIPT 1
36297 _ACEOF
36298
36299 fi
36300
36301 cat >>confdefs.h <<\_ACEOF
36302 #define wxUSE_AFM_FOR_POSTSCRIPT 1
36303 _ACEOF
36304
36305
36306 cat >>confdefs.h <<\_ACEOF
36307 #define wxUSE_NORMALIZED_PS_FONTS 1
36308 _ACEOF
36309
36310
36311
36312 if test "$wxUSE_CONSTRAINTS" = "yes"; then
36313 cat >>confdefs.h <<\_ACEOF
36314 #define wxUSE_CONSTRAINTS 1
36315 _ACEOF
36316
36317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36318 fi
36319
36320 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36321 cat >>confdefs.h <<\_ACEOF
36322 #define wxUSE_MDI_ARCHITECTURE 1
36323 _ACEOF
36324
36325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36326 fi
36327
36328 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36329 cat >>confdefs.h <<\_ACEOF
36330 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
36331 _ACEOF
36332
36333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36334 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36336 fi
36337 fi
36338
36339 if test "$wxUSE_HELP" = "yes"; then
36340 cat >>confdefs.h <<\_ACEOF
36341 #define wxUSE_HELP 1
36342 _ACEOF
36343
36344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36345
36346 if test "$wxUSE_MSW" = 1; then
36347 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36348 cat >>confdefs.h <<\_ACEOF
36349 #define wxUSE_MS_HTML_HELP 1
36350 _ACEOF
36351
36352 fi
36353 fi
36354
36355 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36356 if test "$wxUSE_HTML" = "yes"; then
36357 cat >>confdefs.h <<\_ACEOF
36358 #define wxUSE_WXHTML_HELP 1
36359 _ACEOF
36360
36361 else
36362 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36363 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36364 wxUSE_WXHTML_HELP=no
36365 fi
36366 fi
36367 fi
36368
36369 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36370 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36371 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36372 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36373 else
36374 cat >>confdefs.h <<\_ACEOF
36375 #define wxUSE_PRINTING_ARCHITECTURE 1
36376 _ACEOF
36377
36378 fi
36379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36380 fi
36381
36382 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36383 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36384 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36385 { (exit 1); exit 1; }; }
36386 fi
36387
36388
36389 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36390 -o "$wxUSE_CLIPBOARD" = "yes" \
36391 -o "$wxUSE_OLE" = "yes" \
36392 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36393
36394 for ac_header in ole2.h
36395 do
36396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36398 echo "$as_me:$LINENO: checking for $ac_header" >&5
36399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36401 echo $ECHO_N "(cached) $ECHO_C" >&6
36402 fi
36403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36405 else
36406 # Is the header compilable?
36407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36409 cat >conftest.$ac_ext <<_ACEOF
36410 /* confdefs.h. */
36411 _ACEOF
36412 cat confdefs.h >>conftest.$ac_ext
36413 cat >>conftest.$ac_ext <<_ACEOF
36414 /* end confdefs.h. */
36415 $ac_includes_default
36416 #include <$ac_header>
36417 _ACEOF
36418 rm -f conftest.$ac_objext
36419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36420 (eval $ac_compile) 2>conftest.er1
36421 ac_status=$?
36422 grep -v '^ *+' conftest.er1 >conftest.err
36423 rm -f conftest.er1
36424 cat conftest.err >&5
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); } &&
36427 { ac_try='test -z "$ac_c_werror_flag"
36428 || test ! -s conftest.err'
36429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36430 (eval $ac_try) 2>&5
36431 ac_status=$?
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); }; } &&
36434 { ac_try='test -s conftest.$ac_objext'
36435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436 (eval $ac_try) 2>&5
36437 ac_status=$?
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); }; }; then
36440 ac_header_compiler=yes
36441 else
36442 echo "$as_me: failed program was:" >&5
36443 sed 's/^/| /' conftest.$ac_ext >&5
36444
36445 ac_header_compiler=no
36446 fi
36447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36449 echo "${ECHO_T}$ac_header_compiler" >&6
36450
36451 # Is the header present?
36452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36454 cat >conftest.$ac_ext <<_ACEOF
36455 /* confdefs.h. */
36456 _ACEOF
36457 cat confdefs.h >>conftest.$ac_ext
36458 cat >>conftest.$ac_ext <<_ACEOF
36459 /* end confdefs.h. */
36460 #include <$ac_header>
36461 _ACEOF
36462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36464 ac_status=$?
36465 grep -v '^ *+' conftest.er1 >conftest.err
36466 rm -f conftest.er1
36467 cat conftest.err >&5
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); } >/dev/null; then
36470 if test -s conftest.err; then
36471 ac_cpp_err=$ac_c_preproc_warn_flag
36472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36473 else
36474 ac_cpp_err=
36475 fi
36476 else
36477 ac_cpp_err=yes
36478 fi
36479 if test -z "$ac_cpp_err"; then
36480 ac_header_preproc=yes
36481 else
36482 echo "$as_me: failed program was:" >&5
36483 sed 's/^/| /' conftest.$ac_ext >&5
36484
36485 ac_header_preproc=no
36486 fi
36487 rm -f conftest.err conftest.$ac_ext
36488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36489 echo "${ECHO_T}$ac_header_preproc" >&6
36490
36491 # So? What about this header?
36492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36493 yes:no: )
36494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36498 ac_header_preproc=yes
36499 ;;
36500 no:yes:* )
36501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36513 (
36514 cat <<\_ASBOX
36515 ## ----------------------------------------- ##
36516 ## Report this to wx-dev@lists.wxwindows.org ##
36517 ## ----------------------------------------- ##
36518 _ASBOX
36519 ) |
36520 sed "s/^/$as_me: WARNING: /" >&2
36521 ;;
36522 esac
36523 echo "$as_me:$LINENO: checking for $ac_header" >&5
36524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36526 echo $ECHO_N "(cached) $ECHO_C" >&6
36527 else
36528 eval "$as_ac_Header=\$ac_header_preproc"
36529 fi
36530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36532
36533 fi
36534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36535 cat >>confdefs.h <<_ACEOF
36536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36537 _ACEOF
36538
36539 fi
36540
36541 done
36542
36543
36544 if test "$ac_cv_header_ole2_h" = "yes" ; then
36545 if test "$GCC" = yes ; then
36546
36547
36548 ac_ext=cc
36549 ac_cpp='$CXXCPP $CPPFLAGS'
36550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36553
36554
36555 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36556 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36557 cat >conftest.$ac_ext <<_ACEOF
36558 /* confdefs.h. */
36559 _ACEOF
36560 cat confdefs.h >>conftest.$ac_ext
36561 cat >>conftest.$ac_ext <<_ACEOF
36562 /* end confdefs.h. */
36563 #include <windows.h>
36564 #include <ole2.h>
36565 int
36566 main ()
36567 {
36568
36569 ;
36570 return 0;
36571 }
36572 _ACEOF
36573 rm -f conftest.$ac_objext
36574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36575 (eval $ac_compile) 2>conftest.er1
36576 ac_status=$?
36577 grep -v '^ *+' conftest.er1 >conftest.err
36578 rm -f conftest.er1
36579 cat conftest.err >&5
36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 (exit $ac_status); } &&
36582 { ac_try='test -z "$ac_cxx_werror_flag"
36583 || test ! -s conftest.err'
36584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585 (eval $ac_try) 2>&5
36586 ac_status=$?
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); }; } &&
36589 { ac_try='test -s conftest.$ac_objext'
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36592 ac_status=$?
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; }; then
36595 echo "$as_me:$LINENO: result: no" >&5
36596 echo "${ECHO_T}no" >&6
36597 else
36598 echo "$as_me: failed program was:" >&5
36599 sed 's/^/| /' conftest.$ac_ext >&5
36600
36601 echo "$as_me:$LINENO: result: yes" >&5
36602 echo "${ECHO_T}yes" >&6
36603 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36604 fi
36605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36606 ac_ext=c
36607 ac_cpp='$CPP $CPPFLAGS'
36608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36611
36612 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36613 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36614 if test "$wxUSE_OLE" = "yes" ; then
36615 cat >>confdefs.h <<\_ACEOF
36616 #define wxUSE_OLE 1
36617 _ACEOF
36618
36619 fi
36620 fi
36621
36622 if test "$wxUSE_DATAOBJ" = "yes" ; then
36623 cat >>confdefs.h <<\_ACEOF
36624 #define wxUSE_DATAOBJ 1
36625 _ACEOF
36626
36627 fi
36628 else
36629 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36630 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36631
36632 wxUSE_CLIPBOARD=no
36633 wxUSE_DRAG_AND_DROP=no
36634 wxUSE_DATAOBJ=no
36635 wxUSE_OLE=no
36636 fi
36637
36638 if test "$wxUSE_METAFILE" = "yes"; then
36639 cat >>confdefs.h <<\_ACEOF
36640 #define wxUSE_METAFILE 1
36641 _ACEOF
36642
36643
36644 cat >>confdefs.h <<\_ACEOF
36645 #define wxUSE_ENH_METAFILE 1
36646 _ACEOF
36647
36648 fi
36649 fi
36650
36651 if test "$wxUSE_IPC" = "yes"; then
36652 if test "$wxUSE_SOCKETS" != "yes"; then
36653 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36654 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36655 fi
36656
36657 cat >>confdefs.h <<\_ACEOF
36658 #define wxUSE_IPC 1
36659 _ACEOF
36660
36661 fi
36662
36663 if test "$wxUSE_CLIPBOARD" = "yes"; then
36664 if test "$wxUSE_MGL" = 1; then
36665 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36666 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36667 wxUSE_CLIPBOARD=no
36668 fi
36669
36670 if test "$wxUSE_CLIPBOARD" = "yes"; then
36671 cat >>confdefs.h <<\_ACEOF
36672 #define wxUSE_CLIPBOARD 1
36673 _ACEOF
36674
36675
36676 cat >>confdefs.h <<\_ACEOF
36677 #define wxUSE_DATAOBJ 1
36678 _ACEOF
36679
36680 fi
36681 fi
36682
36683 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36684 if test "$wxUSE_GTK" = 1; then
36685 if test "$WXGTK12" != 1; then
36686 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36687 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36688 wxUSE_DRAG_AND_DROP=no
36689 fi
36690 fi
36691
36692 if test "$wxUSE_MOTIF" = 1; then
36693 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36694 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36695 wxUSE_DRAG_AND_DROP=no
36696 fi
36697
36698 if test "$wxUSE_X11" = 1; then
36699 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36700 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36701 wxUSE_DRAG_AND_DROP=no
36702 fi
36703
36704 if test "$wxUSE_MGL" = 1; then
36705 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36706 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36707 wxUSE_DRAG_AND_DROP=no
36708 fi
36709
36710 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36711 cat >>confdefs.h <<\_ACEOF
36712 #define wxUSE_DRAG_AND_DROP 1
36713 _ACEOF
36714
36715 fi
36716
36717 fi
36718
36719 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36721 fi
36722
36723 if test "$wxUSE_SPLINES" = "yes" ; then
36724 cat >>confdefs.h <<\_ACEOF
36725 #define wxUSE_SPLINES 1
36726 _ACEOF
36727
36728 fi
36729
36730
36731 USES_CONTROLS=0
36732 if test "$wxUSE_CONTROLS" = "yes"; then
36733 USES_CONTROLS=1
36734 fi
36735
36736 if test "$wxUSE_ACCEL" = "yes"; then
36737 cat >>confdefs.h <<\_ACEOF
36738 #define wxUSE_ACCEL 1
36739 _ACEOF
36740
36741 USES_CONTROLS=1
36742 fi
36743
36744 if test "$wxUSE_BUTTON" = "yes"; then
36745 cat >>confdefs.h <<\_ACEOF
36746 #define wxUSE_BUTTON 1
36747 _ACEOF
36748
36749 USES_CONTROLS=1
36750 fi
36751
36752 if test "$wxUSE_BMPBUTTON" = "yes"; then
36753 cat >>confdefs.h <<\_ACEOF
36754 #define wxUSE_BMPBUTTON 1
36755 _ACEOF
36756
36757 USES_CONTROLS=1
36758 fi
36759
36760 if test "$wxUSE_CALCTRL" = "yes"; then
36761 cat >>confdefs.h <<\_ACEOF
36762 #define wxUSE_CALENDARCTRL 1
36763 _ACEOF
36764
36765 USES_CONTROLS=1
36766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36767 fi
36768
36769 if test "$wxUSE_CARET" = "yes"; then
36770 cat >>confdefs.h <<\_ACEOF
36771 #define wxUSE_CARET 1
36772 _ACEOF
36773
36774 USES_CONTROLS=1
36775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36776 fi
36777
36778 if test "$wxUSE_COMBOBOX" = "yes"; then
36779 cat >>confdefs.h <<\_ACEOF
36780 #define wxUSE_COMBOBOX 1
36781 _ACEOF
36782
36783 USES_CONTROLS=1
36784 fi
36785
36786 if test "$wxUSE_CHOICE" = "yes"; then
36787 cat >>confdefs.h <<\_ACEOF
36788 #define wxUSE_CHOICE 1
36789 _ACEOF
36790
36791 USES_CONTROLS=1
36792 fi
36793
36794 if test "$wxUSE_CHECKBOX" = "yes"; then
36795 cat >>confdefs.h <<\_ACEOF
36796 #define wxUSE_CHECKBOX 1
36797 _ACEOF
36798
36799 USES_CONTROLS=1
36800 fi
36801
36802 if test "$wxUSE_CHECKLST" = "yes"; then
36803 cat >>confdefs.h <<\_ACEOF
36804 #define wxUSE_CHECKLISTBOX 1
36805 _ACEOF
36806
36807 USES_CONTROLS=1
36808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36809 fi
36810
36811 if test "$wxUSE_DISPLAY" = "yes"; then
36812 cat >>confdefs.h <<\_ACEOF
36813 #define wxUSE_DISPLAY 1
36814 _ACEOF
36815
36816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36817 fi
36818
36819 if test "$wxUSE_GAUGE" = "yes"; then
36820 cat >>confdefs.h <<\_ACEOF
36821 #define wxUSE_GAUGE 1
36822 _ACEOF
36823
36824 USES_CONTROLS=1
36825 fi
36826
36827 if test "$wxUSE_GRID" = "yes"; then
36828 cat >>confdefs.h <<\_ACEOF
36829 #define wxUSE_GRID 1
36830 _ACEOF
36831
36832 USES_CONTROLS=1
36833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36834 fi
36835
36836 if test "$wxUSE_IMAGLIST" = "yes"; then
36837 cat >>confdefs.h <<\_ACEOF
36838 #define wxUSE_IMAGLIST 1
36839 _ACEOF
36840
36841 fi
36842
36843 if test "$wxUSE_LISTBOOK" = "yes"; then
36844 cat >>confdefs.h <<\_ACEOF
36845 #define wxUSE_LISTBOOK 1
36846 _ACEOF
36847
36848 USES_CONTROLS=1
36849 fi
36850
36851 if test "$wxUSE_LISTBOX" = "yes"; then
36852 cat >>confdefs.h <<\_ACEOF
36853 #define wxUSE_LISTBOX 1
36854 _ACEOF
36855
36856 USES_CONTROLS=1
36857 fi
36858
36859 if test "$wxUSE_LISTCTRL" = "yes"; then
36860 if test "$wxUSE_IMAGLIST" = "yes"; then
36861 cat >>confdefs.h <<\_ACEOF
36862 #define wxUSE_LISTCTRL 1
36863 _ACEOF
36864
36865 USES_CONTROLS=1
36866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36867 else
36868 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36869 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36870 fi
36871 fi
36872
36873 if test "$wxUSE_NOTEBOOK" = "yes"; then
36874 cat >>confdefs.h <<\_ACEOF
36875 #define wxUSE_NOTEBOOK 1
36876 _ACEOF
36877
36878 USES_CONTROLS=1
36879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36880 fi
36881
36882
36883 if test "$wxUSE_RADIOBOX" = "yes"; then
36884 cat >>confdefs.h <<\_ACEOF
36885 #define wxUSE_RADIOBOX 1
36886 _ACEOF
36887
36888 USES_CONTROLS=1
36889 fi
36890
36891 if test "$wxUSE_RADIOBTN" = "yes"; then
36892 cat >>confdefs.h <<\_ACEOF
36893 #define wxUSE_RADIOBTN 1
36894 _ACEOF
36895
36896 USES_CONTROLS=1
36897 fi
36898
36899 if test "$wxUSE_SASH" = "yes"; then
36900 cat >>confdefs.h <<\_ACEOF
36901 #define wxUSE_SASH 1
36902 _ACEOF
36903
36904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36905 fi
36906
36907 if test "$wxUSE_SCROLLBAR" = "yes"; then
36908 cat >>confdefs.h <<\_ACEOF
36909 #define wxUSE_SCROLLBAR 1
36910 _ACEOF
36911
36912 USES_CONTROLS=1
36913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36914 fi
36915
36916 if test "$wxUSE_SLIDER" = "yes"; then
36917 cat >>confdefs.h <<\_ACEOF
36918 #define wxUSE_SLIDER 1
36919 _ACEOF
36920
36921 USES_CONTROLS=1
36922 fi
36923
36924 if test "$wxUSE_SPINBTN" = "yes"; then
36925 cat >>confdefs.h <<\_ACEOF
36926 #define wxUSE_SPINBTN 1
36927 _ACEOF
36928
36929 USES_CONTROLS=1
36930 fi
36931
36932 if test "$wxUSE_SPINCTRL" = "yes"; then
36933 cat >>confdefs.h <<\_ACEOF
36934 #define wxUSE_SPINCTRL 1
36935 _ACEOF
36936
36937 USES_CONTROLS=1
36938 fi
36939
36940 if test "$wxUSE_SPLITTER" = "yes"; then
36941 cat >>confdefs.h <<\_ACEOF
36942 #define wxUSE_SPLITTER 1
36943 _ACEOF
36944
36945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36946 fi
36947
36948 if test "$wxUSE_STATBMP" = "yes"; then
36949 cat >>confdefs.h <<\_ACEOF
36950 #define wxUSE_STATBMP 1
36951 _ACEOF
36952
36953 USES_CONTROLS=1
36954 fi
36955
36956 if test "$wxUSE_STATBOX" = "yes"; then
36957 cat >>confdefs.h <<\_ACEOF
36958 #define wxUSE_STATBOX 1
36959 _ACEOF
36960
36961 USES_CONTROLS=1
36962 fi
36963
36964 if test "$wxUSE_STATTEXT" = "yes"; then
36965 cat >>confdefs.h <<\_ACEOF
36966 #define wxUSE_STATTEXT 1
36967 _ACEOF
36968
36969 USES_CONTROLS=1
36970 fi
36971
36972 if test "$wxUSE_STATLINE" = "yes"; then
36973 cat >>confdefs.h <<\_ACEOF
36974 #define wxUSE_STATLINE 1
36975 _ACEOF
36976
36977 USES_CONTROLS=1
36978 fi
36979
36980 if test "$wxUSE_STATUSBAR" = "yes"; then
36981 cat >>confdefs.h <<\_ACEOF
36982 #define wxUSE_STATUSBAR 1
36983 _ACEOF
36984
36985 USES_CONTROLS=1
36986
36987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36988 fi
36989
36990 if test "$wxUSE_TABDIALOG" = "yes"; then
36991 cat >>confdefs.h <<\_ACEOF
36992 #define wxUSE_TAB_DIALOG 1
36993 _ACEOF
36994
36995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36996 fi
36997
36998 if test "$wxUSE_TEXTCTRL" = "yes"; then
36999 cat >>confdefs.h <<\_ACEOF
37000 #define wxUSE_TEXTCTRL 1
37001 _ACEOF
37002
37003 USES_CONTROLS=1
37004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37005 fi
37006
37007 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37008 if test "$wxUSE_COCOA" = 1 ; then
37009 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37010 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37011 wxUSE_TOGGLEBTN=no
37012 fi
37013 if test "$wxUSE_UNIVERSAL" = "yes"; then
37014 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37015 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37016 wxUSE_TOGGLEBTN=no
37017 fi
37018
37019 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37020 cat >>confdefs.h <<\_ACEOF
37021 #define wxUSE_TOGGLEBTN 1
37022 _ACEOF
37023
37024 USES_CONTROLS=1
37025 fi
37026 fi
37027
37028 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37029 cat >>confdefs.h <<\_ACEOF
37030 #define wxUSE_TOOLBAR_SIMPLE 1
37031 _ACEOF
37032
37033 wxUSE_TOOLBAR="yes"
37034 USES_CONTROLS=1
37035 fi
37036
37037 if test "$wxUSE_TOOLBAR" = "yes"; then
37038 cat >>confdefs.h <<\_ACEOF
37039 #define wxUSE_TOOLBAR 1
37040 _ACEOF
37041
37042 USES_CONTROLS=1
37043
37044 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37045 wxUSE_TOOLBAR_NATIVE="yes"
37046 fi
37047
37048 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37049 cat >>confdefs.h <<\_ACEOF
37050 #define wxUSE_TOOLBAR_NATIVE 1
37051 _ACEOF
37052
37053 USES_CONTROLS=1
37054 fi
37055
37056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37057 fi
37058
37059 if test "$wxUSE_TOOLTIPS" = "yes"; then
37060 if test "$wxUSE_MOTIF" = 1; then
37061 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37062 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37063 else
37064 if test "$wxUSE_UNIVERSAL" = "yes"; then
37065 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37066 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37067 else
37068 cat >>confdefs.h <<\_ACEOF
37069 #define wxUSE_TOOLTIPS 1
37070 _ACEOF
37071
37072 fi
37073 fi
37074 fi
37075
37076 if test "$wxUSE_TREECTRL" = "yes"; then
37077 if test "$wxUSE_IMAGLIST" = "yes"; then
37078 cat >>confdefs.h <<\_ACEOF
37079 #define wxUSE_TREECTRL 1
37080 _ACEOF
37081
37082 USES_CONTROLS=1
37083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37084 else
37085 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37086 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37087 fi
37088 fi
37089
37090 if test "$wxUSE_POPUPWIN" = "yes"; then
37091 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37092 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37093 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37094 else
37095 if test "$wxUSE_PM" = 1; then
37096 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37097 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37098 else
37099 cat >>confdefs.h <<\_ACEOF
37100 #define wxUSE_POPUPWIN 1
37101 _ACEOF
37102
37103
37104 USES_CONTROLS=1
37105 fi
37106 fi
37107 fi
37108
37109 if test "$wxUSE_TIPWINDOW" = "yes"; then
37110 if test "$wxUSE_PM" = 1; then
37111 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37112 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37113 else
37114 cat >>confdefs.h <<\_ACEOF
37115 #define wxUSE_TIPWINDOW 1
37116 _ACEOF
37117
37118 fi
37119 fi
37120
37121 if test "$USES_CONTROLS" = 1; then
37122 cat >>confdefs.h <<\_ACEOF
37123 #define wxUSE_CONTROLS 1
37124 _ACEOF
37125
37126 fi
37127
37128
37129 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37130 cat >>confdefs.h <<\_ACEOF
37131 #define wxUSE_ACCESSIBILITY 1
37132 _ACEOF
37133
37134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37135 fi
37136
37137 if test "$wxUSE_DRAGIMAGE" = "yes"; then
37138 cat >>confdefs.h <<\_ACEOF
37139 #define wxUSE_DRAGIMAGE 1
37140 _ACEOF
37141
37142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37143 fi
37144
37145 if test "$wxUSE_EXCEPTIONS" = "yes"; then
37146 cat >>confdefs.h <<\_ACEOF
37147 #define wxUSE_EXCEPTIONS 1
37148 _ACEOF
37149
37150 fi
37151
37152 USE_HTML=0
37153 if test "$wxUSE_HTML" = "yes"; then
37154 cat >>confdefs.h <<\_ACEOF
37155 #define wxUSE_HTML 1
37156 _ACEOF
37157
37158 USE_HTML=1
37159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37160 fi
37161
37162 if test "$wxUSE_MENUS" = "yes"; then
37163 cat >>confdefs.h <<\_ACEOF
37164 #define wxUSE_MENUS 1
37165 _ACEOF
37166
37167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37168 fi
37169
37170 if test "$wxUSE_METAFILE" = "yes"; then
37171 cat >>confdefs.h <<\_ACEOF
37172 #define wxUSE_METAFILE 1
37173 _ACEOF
37174
37175 fi
37176
37177 if test "$wxUSE_MIMETYPE" = "yes"; then
37178 cat >>confdefs.h <<\_ACEOF
37179 #define wxUSE_MIMETYPE 1
37180 _ACEOF
37181
37182 fi
37183
37184 if test "$wxUSE_MINIFRAME" = "yes"; then
37185 cat >>confdefs.h <<\_ACEOF
37186 #define wxUSE_MINIFRAME 1
37187 _ACEOF
37188
37189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37190 fi
37191
37192 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37193 cat >>confdefs.h <<\_ACEOF
37194 #define wxUSE_SYSTEM_OPTIONS 1
37195 _ACEOF
37196
37197 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37198 "$TOOLKIT" = "MOTIF"; then
37199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37200 fi
37201 fi
37202
37203
37204 if test "$wxUSE_VALIDATORS" = "yes"; then
37205 cat >>confdefs.h <<\_ACEOF
37206 #define wxUSE_VALIDATORS 1
37207 _ACEOF
37208
37209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37210 fi
37211
37212 if test "$wxUSE_PALETTE" = "yes" ; then
37213 cat >>confdefs.h <<\_ACEOF
37214 #define wxUSE_PALETTE 1
37215 _ACEOF
37216
37217 fi
37218
37219 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37220 LIBS=" -lunicows $LIBS"
37221 fi
37222
37223
37224 if test "$wxUSE_IMAGE" = "yes" ; then
37225 cat >>confdefs.h <<\_ACEOF
37226 #define wxUSE_IMAGE 1
37227 _ACEOF
37228
37229
37230 if test "$wxUSE_GIF" = "yes" ; then
37231 cat >>confdefs.h <<\_ACEOF
37232 #define wxUSE_GIF 1
37233 _ACEOF
37234
37235 fi
37236
37237 if test "$wxUSE_PCX" = "yes" ; then
37238 cat >>confdefs.h <<\_ACEOF
37239 #define wxUSE_PCX 1
37240 _ACEOF
37241
37242 fi
37243
37244 if test "$wxUSE_IFF" = "yes" ; then
37245 cat >>confdefs.h <<\_ACEOF
37246 #define wxUSE_IFF 1
37247 _ACEOF
37248
37249 fi
37250
37251 if test "$wxUSE_PNM" = "yes" ; then
37252 cat >>confdefs.h <<\_ACEOF
37253 #define wxUSE_PNM 1
37254 _ACEOF
37255
37256 fi
37257
37258 if test "$wxUSE_XPM" = "yes" ; then
37259 cat >>confdefs.h <<\_ACEOF
37260 #define wxUSE_XPM 1
37261 _ACEOF
37262
37263 fi
37264
37265 if test "$wxUSE_ICO_CUR" = "yes" ; then
37266 cat >>confdefs.h <<\_ACEOF
37267 #define wxUSE_ICO_CUR 1
37268 _ACEOF
37269
37270 fi
37271 fi
37272
37273
37274 if test "$wxUSE_CHOICEDLG" = "yes"; then
37275 cat >>confdefs.h <<\_ACEOF
37276 #define wxUSE_CHOICEDLG 1
37277 _ACEOF
37278
37279 fi
37280
37281 if test "$wxUSE_COLOURDLG" = "yes"; then
37282 cat >>confdefs.h <<\_ACEOF
37283 #define wxUSE_COLOURDLG 1
37284 _ACEOF
37285
37286 fi
37287
37288 if test "$wxUSE_FILEDLG" = "yes"; then
37289 cat >>confdefs.h <<\_ACEOF
37290 #define wxUSE_FILEDLG 1
37291 _ACEOF
37292
37293 fi
37294
37295 if test "$wxUSE_FINDREPLDLG" = "yes"; then
37296 cat >>confdefs.h <<\_ACEOF
37297 #define wxUSE_FINDREPLDLG 1
37298 _ACEOF
37299
37300 fi
37301
37302 if test "$wxUSE_FONTDLG" = "yes"; then
37303 cat >>confdefs.h <<\_ACEOF
37304 #define wxUSE_FONTDLG 1
37305 _ACEOF
37306
37307 fi
37308
37309 if test "$wxUSE_DIRDLG" = "yes"; then
37310 if test "$wxUSE_TREECTRL" != "yes"; then
37311 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37312 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37313 else
37314 cat >>confdefs.h <<\_ACEOF
37315 #define wxUSE_DIRDLG 1
37316 _ACEOF
37317
37318 fi
37319 fi
37320
37321 if test "$wxUSE_MSGDLG" = "yes"; then
37322 cat >>confdefs.h <<\_ACEOF
37323 #define wxUSE_MSGDLG 1
37324 _ACEOF
37325
37326 fi
37327
37328 if test "$wxUSE_NUMBERDLG" = "yes"; then
37329 cat >>confdefs.h <<\_ACEOF
37330 #define wxUSE_NUMBERDLG 1
37331 _ACEOF
37332
37333 fi
37334
37335 if test "$wxUSE_PROGRESSDLG" = "yes"; then
37336 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37337 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37338 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37339 else
37340 cat >>confdefs.h <<\_ACEOF
37341 #define wxUSE_PROGRESSDLG 1
37342 _ACEOF
37343
37344 fi
37345 fi
37346
37347 if test "$wxUSE_SPLASH" = "yes"; then
37348 cat >>confdefs.h <<\_ACEOF
37349 #define wxUSE_SPLASH 1
37350 _ACEOF
37351
37352 fi
37353
37354 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37355 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37356 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37357 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37358 else
37359 cat >>confdefs.h <<\_ACEOF
37360 #define wxUSE_STARTUP_TIPS 1
37361 _ACEOF
37362
37363 fi
37364 fi
37365
37366 if test "$wxUSE_TEXTDLG" = "yes"; then
37367 cat >>confdefs.h <<\_ACEOF
37368 #define wxUSE_TEXTDLG 1
37369 _ACEOF
37370
37371 fi
37372
37373 if test "$wxUSE_WIZARDDLG" = "yes"; then
37374 cat >>confdefs.h <<\_ACEOF
37375 #define wxUSE_WIZARDDLG 1
37376 _ACEOF
37377
37378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37379 fi
37380
37381
37382 if test "$cross_compiling" = "yes"; then
37383 OSINFO="\"$host\""
37384 else
37385 OSINFO=`uname -s -r -m`
37386 OSINFO="\"$OSINFO\""
37387 fi
37388
37389 cat >>confdefs.h <<_ACEOF
37390 #define WXWIN_OS_DESCRIPTION $OSINFO
37391 _ACEOF
37392
37393
37394
37395 if test "x$prefix" != "xNONE"; then
37396 wxPREFIX=$prefix
37397 else
37398 wxPREFIX=$ac_default_prefix
37399 fi
37400
37401 cat >>confdefs.h <<_ACEOF
37402 #define wxINSTALL_PREFIX "$wxPREFIX"
37403 _ACEOF
37404
37405
37406 top_builddir_wxconfig=`pwd`
37407
37408
37409
37410 CORE_BASE_LIBS="net base"
37411 CORE_GUI_LIBS="adv core"
37412
37413 if test "$wxUSE_XML" = "yes" ; then
37414 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37415 fi
37416 if test "$wxUSE_ODBC" != "no" ; then
37417 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37418 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37419 fi
37420 if test "$wxUSE_HTML" = "yes" ; then
37421 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37422 fi
37423
37424 if test "$wxUSE_GUI" != "yes"; then
37425 CORE_GUI_LIBS=""
37426 fi
37427
37428
37429
37430
37431
37432
37433
37434
37435 if test "$wxUSE_MAC" = 1 ; then
37436 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37437 fi
37438 if test "$wxUSE_COCOA" = 1 ; then
37439 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37440 fi
37441
37442
37443 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37444
37445 have_cos=0
37446 have_floor=0
37447
37448 for ac_func in cos
37449 do
37450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37451 echo "$as_me:$LINENO: checking for $ac_func" >&5
37452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37453 if eval "test \"\${$as_ac_var+set}\" = set"; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455 else
37456 cat >conftest.$ac_ext <<_ACEOF
37457 /* confdefs.h. */
37458 _ACEOF
37459 cat confdefs.h >>conftest.$ac_ext
37460 cat >>conftest.$ac_ext <<_ACEOF
37461 /* end confdefs.h. */
37462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37464 #define $ac_func innocuous_$ac_func
37465
37466 /* System header to define __stub macros and hopefully few prototypes,
37467 which can conflict with char $ac_func (); below.
37468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37469 <limits.h> exists even on freestanding compilers. */
37470
37471 #ifdef __STDC__
37472 # include <limits.h>
37473 #else
37474 # include <assert.h>
37475 #endif
37476
37477 #undef $ac_func
37478
37479 /* Override any gcc2 internal prototype to avoid an error. */
37480 #ifdef __cplusplus
37481 extern "C"
37482 {
37483 #endif
37484 /* We use char because int might match the return type of a gcc2
37485 builtin and then its argument prototype would still apply. */
37486 char $ac_func ();
37487 /* The GNU C library defines this for functions which it implements
37488 to always fail with ENOSYS. Some functions are actually named
37489 something starting with __ and the normal name is an alias. */
37490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37491 choke me
37492 #else
37493 char (*f) () = $ac_func;
37494 #endif
37495 #ifdef __cplusplus
37496 }
37497 #endif
37498
37499 int
37500 main ()
37501 {
37502 return f != $ac_func;
37503 ;
37504 return 0;
37505 }
37506 _ACEOF
37507 rm -f conftest.$ac_objext conftest$ac_exeext
37508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37509 (eval $ac_link) 2>conftest.er1
37510 ac_status=$?
37511 grep -v '^ *+' conftest.er1 >conftest.err
37512 rm -f conftest.er1
37513 cat conftest.err >&5
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); } &&
37516 { ac_try='test -z "$ac_c_werror_flag"
37517 || test ! -s conftest.err'
37518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37519 (eval $ac_try) 2>&5
37520 ac_status=$?
37521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522 (exit $ac_status); }; } &&
37523 { ac_try='test -s conftest$ac_exeext'
37524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37525 (eval $ac_try) 2>&5
37526 ac_status=$?
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); }; }; then
37529 eval "$as_ac_var=yes"
37530 else
37531 echo "$as_me: failed program was:" >&5
37532 sed 's/^/| /' conftest.$ac_ext >&5
37533
37534 eval "$as_ac_var=no"
37535 fi
37536 rm -f conftest.err conftest.$ac_objext \
37537 conftest$ac_exeext conftest.$ac_ext
37538 fi
37539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37541 if test `eval echo '${'$as_ac_var'}'` = yes; then
37542 cat >>confdefs.h <<_ACEOF
37543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37544 _ACEOF
37545 have_cos=1
37546 fi
37547 done
37548
37549
37550 for ac_func in floor
37551 do
37552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37553 echo "$as_me:$LINENO: checking for $ac_func" >&5
37554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37555 if eval "test \"\${$as_ac_var+set}\" = set"; then
37556 echo $ECHO_N "(cached) $ECHO_C" >&6
37557 else
37558 cat >conftest.$ac_ext <<_ACEOF
37559 /* confdefs.h. */
37560 _ACEOF
37561 cat confdefs.h >>conftest.$ac_ext
37562 cat >>conftest.$ac_ext <<_ACEOF
37563 /* end confdefs.h. */
37564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37566 #define $ac_func innocuous_$ac_func
37567
37568 /* System header to define __stub macros and hopefully few prototypes,
37569 which can conflict with char $ac_func (); below.
37570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37571 <limits.h> exists even on freestanding compilers. */
37572
37573 #ifdef __STDC__
37574 # include <limits.h>
37575 #else
37576 # include <assert.h>
37577 #endif
37578
37579 #undef $ac_func
37580
37581 /* Override any gcc2 internal prototype to avoid an error. */
37582 #ifdef __cplusplus
37583 extern "C"
37584 {
37585 #endif
37586 /* We use char because int might match the return type of a gcc2
37587 builtin and then its argument prototype would still apply. */
37588 char $ac_func ();
37589 /* The GNU C library defines this for functions which it implements
37590 to always fail with ENOSYS. Some functions are actually named
37591 something starting with __ and the normal name is an alias. */
37592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37593 choke me
37594 #else
37595 char (*f) () = $ac_func;
37596 #endif
37597 #ifdef __cplusplus
37598 }
37599 #endif
37600
37601 int
37602 main ()
37603 {
37604 return f != $ac_func;
37605 ;
37606 return 0;
37607 }
37608 _ACEOF
37609 rm -f conftest.$ac_objext conftest$ac_exeext
37610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37611 (eval $ac_link) 2>conftest.er1
37612 ac_status=$?
37613 grep -v '^ *+' conftest.er1 >conftest.err
37614 rm -f conftest.er1
37615 cat conftest.err >&5
37616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617 (exit $ac_status); } &&
37618 { ac_try='test -z "$ac_c_werror_flag"
37619 || test ! -s conftest.err'
37620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621 (eval $ac_try) 2>&5
37622 ac_status=$?
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); }; } &&
37625 { ac_try='test -s conftest$ac_exeext'
37626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37627 (eval $ac_try) 2>&5
37628 ac_status=$?
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); }; }; then
37631 eval "$as_ac_var=yes"
37632 else
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37635
37636 eval "$as_ac_var=no"
37637 fi
37638 rm -f conftest.err conftest.$ac_objext \
37639 conftest$ac_exeext conftest.$ac_ext
37640 fi
37641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37643 if test `eval echo '${'$as_ac_var'}'` = yes; then
37644 cat >>confdefs.h <<_ACEOF
37645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37646 _ACEOF
37647 have_floor=1
37648 fi
37649 done
37650
37651 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37652 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37653 if test "$have_cos" = 1 -a "$have_floor" = 1; then
37654 echo "$as_me:$LINENO: result: yes" >&5
37655 echo "${ECHO_T}yes" >&6
37656 else
37657 echo "$as_me:$LINENO: result: no" >&5
37658 echo "${ECHO_T}no" >&6
37659 LIBS="$LIBS -lm"
37660 # use different functions to avoid configure caching
37661 have_sin=0
37662 have_ceil=0
37663
37664 for ac_func in sin
37665 do
37666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37667 echo "$as_me:$LINENO: checking for $ac_func" >&5
37668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37669 if eval "test \"\${$as_ac_var+set}\" = set"; then
37670 echo $ECHO_N "(cached) $ECHO_C" >&6
37671 else
37672 cat >conftest.$ac_ext <<_ACEOF
37673 /* confdefs.h. */
37674 _ACEOF
37675 cat confdefs.h >>conftest.$ac_ext
37676 cat >>conftest.$ac_ext <<_ACEOF
37677 /* end confdefs.h. */
37678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37680 #define $ac_func innocuous_$ac_func
37681
37682 /* System header to define __stub macros and hopefully few prototypes,
37683 which can conflict with char $ac_func (); below.
37684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37685 <limits.h> exists even on freestanding compilers. */
37686
37687 #ifdef __STDC__
37688 # include <limits.h>
37689 #else
37690 # include <assert.h>
37691 #endif
37692
37693 #undef $ac_func
37694
37695 /* Override any gcc2 internal prototype to avoid an error. */
37696 #ifdef __cplusplus
37697 extern "C"
37698 {
37699 #endif
37700 /* We use char because int might match the return type of a gcc2
37701 builtin and then its argument prototype would still apply. */
37702 char $ac_func ();
37703 /* The GNU C library defines this for functions which it implements
37704 to always fail with ENOSYS. Some functions are actually named
37705 something starting with __ and the normal name is an alias. */
37706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37707 choke me
37708 #else
37709 char (*f) () = $ac_func;
37710 #endif
37711 #ifdef __cplusplus
37712 }
37713 #endif
37714
37715 int
37716 main ()
37717 {
37718 return f != $ac_func;
37719 ;
37720 return 0;
37721 }
37722 _ACEOF
37723 rm -f conftest.$ac_objext conftest$ac_exeext
37724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37725 (eval $ac_link) 2>conftest.er1
37726 ac_status=$?
37727 grep -v '^ *+' conftest.er1 >conftest.err
37728 rm -f conftest.er1
37729 cat conftest.err >&5
37730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731 (exit $ac_status); } &&
37732 { ac_try='test -z "$ac_c_werror_flag"
37733 || test ! -s conftest.err'
37734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37735 (eval $ac_try) 2>&5
37736 ac_status=$?
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); }; } &&
37739 { ac_try='test -s conftest$ac_exeext'
37740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741 (eval $ac_try) 2>&5
37742 ac_status=$?
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); }; }; then
37745 eval "$as_ac_var=yes"
37746 else
37747 echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37749
37750 eval "$as_ac_var=no"
37751 fi
37752 rm -f conftest.err conftest.$ac_objext \
37753 conftest$ac_exeext conftest.$ac_ext
37754 fi
37755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37757 if test `eval echo '${'$as_ac_var'}'` = yes; then
37758 cat >>confdefs.h <<_ACEOF
37759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37760 _ACEOF
37761 have_sin=1
37762 fi
37763 done
37764
37765
37766 for ac_func in ceil
37767 do
37768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37769 echo "$as_me:$LINENO: checking for $ac_func" >&5
37770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37771 if eval "test \"\${$as_ac_var+set}\" = set"; then
37772 echo $ECHO_N "(cached) $ECHO_C" >&6
37773 else
37774 cat >conftest.$ac_ext <<_ACEOF
37775 /* confdefs.h. */
37776 _ACEOF
37777 cat confdefs.h >>conftest.$ac_ext
37778 cat >>conftest.$ac_ext <<_ACEOF
37779 /* end confdefs.h. */
37780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37782 #define $ac_func innocuous_$ac_func
37783
37784 /* System header to define __stub macros and hopefully few prototypes,
37785 which can conflict with char $ac_func (); below.
37786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37787 <limits.h> exists even on freestanding compilers. */
37788
37789 #ifdef __STDC__
37790 # include <limits.h>
37791 #else
37792 # include <assert.h>
37793 #endif
37794
37795 #undef $ac_func
37796
37797 /* Override any gcc2 internal prototype to avoid an error. */
37798 #ifdef __cplusplus
37799 extern "C"
37800 {
37801 #endif
37802 /* We use char because int might match the return type of a gcc2
37803 builtin and then its argument prototype would still apply. */
37804 char $ac_func ();
37805 /* The GNU C library defines this for functions which it implements
37806 to always fail with ENOSYS. Some functions are actually named
37807 something starting with __ and the normal name is an alias. */
37808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37809 choke me
37810 #else
37811 char (*f) () = $ac_func;
37812 #endif
37813 #ifdef __cplusplus
37814 }
37815 #endif
37816
37817 int
37818 main ()
37819 {
37820 return f != $ac_func;
37821 ;
37822 return 0;
37823 }
37824 _ACEOF
37825 rm -f conftest.$ac_objext conftest$ac_exeext
37826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37827 (eval $ac_link) 2>conftest.er1
37828 ac_status=$?
37829 grep -v '^ *+' conftest.er1 >conftest.err
37830 rm -f conftest.er1
37831 cat conftest.err >&5
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); } &&
37834 { ac_try='test -z "$ac_c_werror_flag"
37835 || test ! -s conftest.err'
37836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37837 (eval $ac_try) 2>&5
37838 ac_status=$?
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); }; } &&
37841 { ac_try='test -s conftest$ac_exeext'
37842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37843 (eval $ac_try) 2>&5
37844 ac_status=$?
37845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37846 (exit $ac_status); }; }; then
37847 eval "$as_ac_var=yes"
37848 else
37849 echo "$as_me: failed program was:" >&5
37850 sed 's/^/| /' conftest.$ac_ext >&5
37851
37852 eval "$as_ac_var=no"
37853 fi
37854 rm -f conftest.err conftest.$ac_objext \
37855 conftest$ac_exeext conftest.$ac_ext
37856 fi
37857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37859 if test `eval echo '${'$as_ac_var'}'` = yes; then
37860 cat >>confdefs.h <<_ACEOF
37861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37862 _ACEOF
37863 have_ceil=1
37864 fi
37865 done
37866
37867 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37868 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37869 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37870 echo "$as_me:$LINENO: result: yes" >&5
37871 echo "${ECHO_T}yes" >&6
37872 else
37873 echo "$as_me:$LINENO: result: no" >&5
37874 echo "${ECHO_T}no" >&6
37875 # not sure we should warn the user, crash, etc.
37876 fi
37877 fi
37878
37879 if test "$wxUSE_GUI" = "yes"; then
37880
37881
37882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37883 drawing dynamic erase event exec font image \
37884 minimal propsize rotate shaped widgets render"
37885
37886 if test "$wxUSE_MONOLITHIC" != "yes"; then
37887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37888 fi
37889 else
37890 SAMPLES_SUBDIRS="console"
37891 fi
37892
37893
37894 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37895 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37896
37897 if test "$GXX" = yes ; then
37898 CXXWARNINGS="-Wall"
37899 fi
37900
37901 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37902
37903 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37904 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37905 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37906
37907
37908 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37909 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37910 EXTRALIBS_XML="$EXPAT_LINK"
37911 EXTRALIBS_HTML="$MSPACK_LINK"
37912 EXTRALIBS_ODBC="$ODBC_LINK"
37913 if test "$wxUSE_GUI" = "yes"; then
37914 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37915 fi
37916 if test "$wxUSE_OPENGL" = "yes"; then
37917 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37918 fi
37919
37920 LDFLAGS="$LDFLAGS $PROFILE"
37921
37922 if test "$wxUSE_GTK" = 1; then
37923 WXCONFIG_INCLUDE=
37924 else
37925 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37926 fi
37927
37928 WXCONFIG_EXTRALIBS="$LIBS"
37929
37930 if test "$wxUSE_REGEX" = "builtin" ; then
37931 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37932 fi
37933 if test "$wxUSE_EXPAT" = "builtin" ; then
37934 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37935 fi
37936 if test "$wxUSE_ODBC" = "builtin" ; then
37937 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37938 fi
37939 if test "$wxUSE_LIBTIFF" = "builtin" ; then
37940 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37941 fi
37942 if test "$wxUSE_LIBJPEG" = "builtin" ; then
37943 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37944 fi
37945 if test "$wxUSE_LIBPNG" = "builtin" ; then
37946 wxconfig_3rdparty="$wxconfig_3rdparty png"
37947 fi
37948 if test "$wxUSE_ZLIB" = "builtin" ; then
37949 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37950 fi
37951 if test "$wxUSE_ODBC" = "builtin" ; then
37952 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37953 fi
37954
37955 for i in $wxconfig_3rdparty ; do
37956 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37957 done
37958
37959
37960 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37961 WXUNIV=1
37962 else
37963 WXUNIV=0
37964 fi
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974 if test $wxUSE_MONOLITHIC = "yes" ; then
37975 MONOLITHIC=1
37976 else
37977 MONOLITHIC=0
37978 fi
37979
37980 if test $wxUSE_PLUGINS = "yes" ; then
37981 USE_PLUGINS=1
37982 else
37983 USE_PLUGINS=0
37984 fi
37985
37986 if test $wxUSE_ODBC != "no" ; then
37987 USE_ODBC=1
37988 else
37989 USE_ODBC=0
37990 fi
37991
37992 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37993 OFFICIAL_BUILD=1
37994 else
37995 OFFICIAL_BUILD=0
37996 fi
37997
37998
37999
38000
38001
38002
38003
38004
38005
38006
38007
38008
38009
38010
38011
38012
38013
38014
38015
38016
38017
38018 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38019
38020
38021
38022
38023
38024
38025
38026
38027
38028 if test "x$BAKEFILE_HOST" = "x"; then
38029 BAKEFILE_HOST="${host}"
38030 fi
38031
38032 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38033
38034 if test -n "$ac_tool_prefix"; then
38035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38037 echo "$as_me:$LINENO: checking for $ac_word" >&5
38038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38039 if test "${ac_cv_prog_RANLIB+set}" = set; then
38040 echo $ECHO_N "(cached) $ECHO_C" >&6
38041 else
38042 if test -n "$RANLIB"; then
38043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38044 else
38045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38046 for as_dir in $PATH
38047 do
38048 IFS=$as_save_IFS
38049 test -z "$as_dir" && as_dir=.
38050 for ac_exec_ext in '' $ac_executable_extensions; do
38051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38054 break 2
38055 fi
38056 done
38057 done
38058
38059 fi
38060 fi
38061 RANLIB=$ac_cv_prog_RANLIB
38062 if test -n "$RANLIB"; then
38063 echo "$as_me:$LINENO: result: $RANLIB" >&5
38064 echo "${ECHO_T}$RANLIB" >&6
38065 else
38066 echo "$as_me:$LINENO: result: no" >&5
38067 echo "${ECHO_T}no" >&6
38068 fi
38069
38070 fi
38071 if test -z "$ac_cv_prog_RANLIB"; then
38072 ac_ct_RANLIB=$RANLIB
38073 # Extract the first word of "ranlib", so it can be a program name with args.
38074 set dummy ranlib; ac_word=$2
38075 echo "$as_me:$LINENO: checking for $ac_word" >&5
38076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38078 echo $ECHO_N "(cached) $ECHO_C" >&6
38079 else
38080 if test -n "$ac_ct_RANLIB"; then
38081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38082 else
38083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38084 for as_dir in $PATH
38085 do
38086 IFS=$as_save_IFS
38087 test -z "$as_dir" && as_dir=.
38088 for ac_exec_ext in '' $ac_executable_extensions; do
38089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38090 ac_cv_prog_ac_ct_RANLIB="ranlib"
38091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38092 break 2
38093 fi
38094 done
38095 done
38096
38097 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38098 fi
38099 fi
38100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38101 if test -n "$ac_ct_RANLIB"; then
38102 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38103 echo "${ECHO_T}$ac_ct_RANLIB" >&6
38104 else
38105 echo "$as_me:$LINENO: result: no" >&5
38106 echo "${ECHO_T}no" >&6
38107 fi
38108
38109 RANLIB=$ac_ct_RANLIB
38110 else
38111 RANLIB="$ac_cv_prog_RANLIB"
38112 fi
38113
38114 # Find a good install program. We prefer a C program (faster),
38115 # so one script is as good as another. But avoid the broken or
38116 # incompatible versions:
38117 # SysV /etc/install, /usr/sbin/install
38118 # SunOS /usr/etc/install
38119 # IRIX /sbin/install
38120 # AIX /bin/install
38121 # AmigaOS /C/install, which installs bootblocks on floppy discs
38122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
38124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
38125 # OS/2's system install, which has a completely different semantic
38126 # ./install, which can be erroneously created by make from ./install.sh.
38127 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38129 if test -z "$INSTALL"; then
38130 if test "${ac_cv_path_install+set}" = set; then
38131 echo $ECHO_N "(cached) $ECHO_C" >&6
38132 else
38133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38134 for as_dir in $PATH
38135 do
38136 IFS=$as_save_IFS
38137 test -z "$as_dir" && as_dir=.
38138 # Account for people who put trailing slashes in PATH elements.
38139 case $as_dir/ in
38140 ./ | .// | /cC/* | \
38141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
38142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
38143 /usr/ucb/* ) ;;
38144 *)
38145 # OSF1 and SCO ODT 3.0 have their own names for install.
38146 # Don't use installbsd from OSF since it installs stuff as root
38147 # by default.
38148 for ac_prog in ginstall scoinst install; do
38149 for ac_exec_ext in '' $ac_executable_extensions; do
38150 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38151 if test $ac_prog = install &&
38152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38153 # AIX install. It has an incompatible calling convention.
38154 :
38155 elif test $ac_prog = install &&
38156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38157 # program-specific install script used by HP pwplus--don't use.
38158 :
38159 else
38160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38161 break 3
38162 fi
38163 fi
38164 done
38165 done
38166 ;;
38167 esac
38168 done
38169
38170
38171 fi
38172 if test "${ac_cv_path_install+set}" = set; then
38173 INSTALL=$ac_cv_path_install
38174 else
38175 # As a last resort, use the slow shell script. We don't cache a
38176 # path for INSTALL within a source directory, because that will
38177 # break other packages using the cache if that directory is
38178 # removed, or if the path is relative.
38179 INSTALL=$ac_install_sh
38180 fi
38181 fi
38182 echo "$as_me:$LINENO: result: $INSTALL" >&5
38183 echo "${ECHO_T}$INSTALL" >&6
38184
38185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38186 # It thinks the first close brace ends the variable substitution.
38187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38188
38189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38190
38191 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38192
38193 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38194 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38195 LN_S=$as_ln_s
38196 if test "$LN_S" = "ln -s"; then
38197 echo "$as_me:$LINENO: result: yes" >&5
38198 echo "${ECHO_T}yes" >&6
38199 else
38200 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38201 echo "${ECHO_T}no, using $LN_S" >&6
38202 fi
38203
38204
38205 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38207 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38208 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38209 echo $ECHO_N "(cached) $ECHO_C" >&6
38210 else
38211 cat >conftest.make <<\_ACEOF
38212 all:
38213 @echo 'ac_maketemp="$(MAKE)"'
38214 _ACEOF
38215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38216 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38217 if test -n "$ac_maketemp"; then
38218 eval ac_cv_prog_make_${ac_make}_set=yes
38219 else
38220 eval ac_cv_prog_make_${ac_make}_set=no
38221 fi
38222 rm -f conftest.make
38223 fi
38224 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38225 echo "$as_me:$LINENO: result: yes" >&5
38226 echo "${ECHO_T}yes" >&6
38227 SET_MAKE=
38228 else
38229 echo "$as_me:$LINENO: result: no" >&5
38230 echo "${ECHO_T}no" >&6
38231 SET_MAKE="MAKE=${MAKE-make}"
38232 fi
38233
38234
38235
38236 if test -n "$ac_tool_prefix"; then
38237 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38238 set dummy ${ac_tool_prefix}ar; ac_word=$2
38239 echo "$as_me:$LINENO: checking for $ac_word" >&5
38240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38241 if test "${ac_cv_prog_AR+set}" = set; then
38242 echo $ECHO_N "(cached) $ECHO_C" >&6
38243 else
38244 if test -n "$AR"; then
38245 ac_cv_prog_AR="$AR" # Let the user override the test.
38246 else
38247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38248 for as_dir in $PATH
38249 do
38250 IFS=$as_save_IFS
38251 test -z "$as_dir" && as_dir=.
38252 for ac_exec_ext in '' $ac_executable_extensions; do
38253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38254 ac_cv_prog_AR="${ac_tool_prefix}ar"
38255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38256 break 2
38257 fi
38258 done
38259 done
38260
38261 fi
38262 fi
38263 AR=$ac_cv_prog_AR
38264 if test -n "$AR"; then
38265 echo "$as_me:$LINENO: result: $AR" >&5
38266 echo "${ECHO_T}$AR" >&6
38267 else
38268 echo "$as_me:$LINENO: result: no" >&5
38269 echo "${ECHO_T}no" >&6
38270 fi
38271
38272 fi
38273 if test -z "$ac_cv_prog_AR"; then
38274 ac_ct_AR=$AR
38275 # Extract the first word of "ar", so it can be a program name with args.
38276 set dummy ar; ac_word=$2
38277 echo "$as_me:$LINENO: checking for $ac_word" >&5
38278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38279 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38280 echo $ECHO_N "(cached) $ECHO_C" >&6
38281 else
38282 if test -n "$ac_ct_AR"; then
38283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38284 else
38285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38286 for as_dir in $PATH
38287 do
38288 IFS=$as_save_IFS
38289 test -z "$as_dir" && as_dir=.
38290 for ac_exec_ext in '' $ac_executable_extensions; do
38291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38292 ac_cv_prog_ac_ct_AR="ar"
38293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38294 break 2
38295 fi
38296 done
38297 done
38298
38299 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38300 fi
38301 fi
38302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
38303 if test -n "$ac_ct_AR"; then
38304 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38305 echo "${ECHO_T}$ac_ct_AR" >&6
38306 else
38307 echo "$as_me:$LINENO: result: no" >&5
38308 echo "${ECHO_T}no" >&6
38309 fi
38310
38311 AR=$ac_ct_AR
38312 else
38313 AR="$ac_cv_prog_AR"
38314 fi
38315
38316 if test -n "$ac_tool_prefix"; then
38317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38318 set dummy ${ac_tool_prefix}strip; ac_word=$2
38319 echo "$as_me:$LINENO: checking for $ac_word" >&5
38320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38321 if test "${ac_cv_prog_STRIP+set}" = set; then
38322 echo $ECHO_N "(cached) $ECHO_C" >&6
38323 else
38324 if test -n "$STRIP"; then
38325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38326 else
38327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38328 for as_dir in $PATH
38329 do
38330 IFS=$as_save_IFS
38331 test -z "$as_dir" && as_dir=.
38332 for ac_exec_ext in '' $ac_executable_extensions; do
38333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38336 break 2
38337 fi
38338 done
38339 done
38340
38341 fi
38342 fi
38343 STRIP=$ac_cv_prog_STRIP
38344 if test -n "$STRIP"; then
38345 echo "$as_me:$LINENO: result: $STRIP" >&5
38346 echo "${ECHO_T}$STRIP" >&6
38347 else
38348 echo "$as_me:$LINENO: result: no" >&5
38349 echo "${ECHO_T}no" >&6
38350 fi
38351
38352 fi
38353 if test -z "$ac_cv_prog_STRIP"; then
38354 ac_ct_STRIP=$STRIP
38355 # Extract the first word of "strip", so it can be a program name with args.
38356 set dummy strip; ac_word=$2
38357 echo "$as_me:$LINENO: checking for $ac_word" >&5
38358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38359 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38360 echo $ECHO_N "(cached) $ECHO_C" >&6
38361 else
38362 if test -n "$ac_ct_STRIP"; then
38363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38364 else
38365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38366 for as_dir in $PATH
38367 do
38368 IFS=$as_save_IFS
38369 test -z "$as_dir" && as_dir=.
38370 for ac_exec_ext in '' $ac_executable_extensions; do
38371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38372 ac_cv_prog_ac_ct_STRIP="strip"
38373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38374 break 2
38375 fi
38376 done
38377 done
38378
38379 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38380 fi
38381 fi
38382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38383 if test -n "$ac_ct_STRIP"; then
38384 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38385 echo "${ECHO_T}$ac_ct_STRIP" >&6
38386 else
38387 echo "$as_me:$LINENO: result: no" >&5
38388 echo "${ECHO_T}no" >&6
38389 fi
38390
38391 STRIP=$ac_ct_STRIP
38392 else
38393 STRIP="$ac_cv_prog_STRIP"
38394 fi
38395
38396 if test -n "$ac_tool_prefix"; then
38397 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38398 set dummy ${ac_tool_prefix}nm; ac_word=$2
38399 echo "$as_me:$LINENO: checking for $ac_word" >&5
38400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38401 if test "${ac_cv_prog_NM+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404 if test -n "$NM"; then
38405 ac_cv_prog_NM="$NM" # Let the user override the test.
38406 else
38407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38408 for as_dir in $PATH
38409 do
38410 IFS=$as_save_IFS
38411 test -z "$as_dir" && as_dir=.
38412 for ac_exec_ext in '' $ac_executable_extensions; do
38413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38414 ac_cv_prog_NM="${ac_tool_prefix}nm"
38415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38416 break 2
38417 fi
38418 done
38419 done
38420
38421 fi
38422 fi
38423 NM=$ac_cv_prog_NM
38424 if test -n "$NM"; then
38425 echo "$as_me:$LINENO: result: $NM" >&5
38426 echo "${ECHO_T}$NM" >&6
38427 else
38428 echo "$as_me:$LINENO: result: no" >&5
38429 echo "${ECHO_T}no" >&6
38430 fi
38431
38432 fi
38433 if test -z "$ac_cv_prog_NM"; then
38434 ac_ct_NM=$NM
38435 # Extract the first word of "nm", so it can be a program name with args.
38436 set dummy nm; ac_word=$2
38437 echo "$as_me:$LINENO: checking for $ac_word" >&5
38438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38439 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38440 echo $ECHO_N "(cached) $ECHO_C" >&6
38441 else
38442 if test -n "$ac_ct_NM"; then
38443 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38444 else
38445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38446 for as_dir in $PATH
38447 do
38448 IFS=$as_save_IFS
38449 test -z "$as_dir" && as_dir=.
38450 for ac_exec_ext in '' $ac_executable_extensions; do
38451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38452 ac_cv_prog_ac_ct_NM="nm"
38453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38454 break 2
38455 fi
38456 done
38457 done
38458
38459 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38460 fi
38461 fi
38462 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38463 if test -n "$ac_ct_NM"; then
38464 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38465 echo "${ECHO_T}$ac_ct_NM" >&6
38466 else
38467 echo "$as_me:$LINENO: result: no" >&5
38468 echo "${ECHO_T}no" >&6
38469 fi
38470
38471 NM=$ac_ct_NM
38472 else
38473 NM="$ac_cv_prog_NM"
38474 fi
38475
38476
38477 case ${BAKEFILE_HOST} in
38478 *-hp-hpux* )
38479 INSTALL_DIR="mkdir"
38480 ;;
38481 *) INSTALL_DIR="$INSTALL -d"
38482 ;;
38483 esac
38484
38485
38486 LDFLAGS_GUI=
38487 case ${BAKEFILE_HOST} in
38488 *-*-cygwin* | *-*-mingw32* )
38489 LDFLAGS_GUI="-mwindows"
38490 esac
38491
38492
38493 fi
38494
38495 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38496 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38497 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38498 echo $ECHO_N "(cached) $ECHO_C" >&6
38499 else
38500
38501 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38502 egrep -s GNU > /dev/null); then
38503 bakefile_cv_prog_makeisgnu="yes"
38504 else
38505 bakefile_cv_prog_makeisgnu="no"
38506 fi
38507
38508 fi
38509 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38510 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38511
38512 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38513 IF_GNU_MAKE=""
38514 else
38515 IF_GNU_MAKE="#"
38516 fi
38517
38518
38519
38520 PLATFORM_UNIX=0
38521 PLATFORM_WIN32=0
38522 PLATFORM_MSDOS=0
38523 PLATFORM_MAC=0
38524 PLATFORM_MACOSX=0
38525 PLATFORM_OS2=0
38526
38527 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38528 case "${BAKEFILE_HOST}" in
38529 *-*-cygwin* | *-*-mingw32* )
38530 PLATFORM_WIN32=1
38531 ;;
38532 *-pc-msdosdjgpp )
38533 PLATFORM_MSDOS=1
38534 ;;
38535 *-pc-os2_emx | *-pc-os2-emx )
38536 PLATFORM_OS2=1
38537 ;;
38538 powerpc-*-darwin* )
38539 PLATFORM_MAC=1
38540 PLATFORM_MACOSX=1
38541 ;;
38542 * )
38543 PLATFORM_UNIX=1
38544 ;;
38545 esac
38546 else
38547 case "$BAKEFILE_FORCE_PLATFORM" in
38548 win32 )
38549 PLATFORM_WIN32=1
38550 ;;
38551 msdos )
38552 PLATFORM_MSDOS=1
38553 ;;
38554 os2 )
38555 PLATFORM_OS2=1
38556 ;;
38557 darwin )
38558 PLATFORM_MAC=1
38559 PLATFORM_MACOSX=1
38560 ;;
38561 unix )
38562 PLATFORM_UNIX=1
38563 ;;
38564 * )
38565 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38566 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38567 { (exit 1); exit 1; }; }
38568 ;;
38569 esac
38570 fi
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580 # Check whether --enable-omf or --disable-omf was given.
38581 if test "${enable_omf+set}" = set; then
38582 enableval="$enable_omf"
38583 bk_os2_use_omf="$enableval"
38584 fi;
38585
38586 case "${BAKEFILE_HOST}" in
38587 *-*-darwin* )
38588 CFLAGS="$CFLAGS -fno-common"
38589 CXXFLAGS="$CXXFLAGS -fno-common"
38590 ;;
38591
38592 *-pc-os2_emx | *-pc-os2-emx )
38593 if test "x$bk_os2_use_omf" = "xyes" ; then
38594 AR=emxomfar
38595 RANLIB=:
38596 LDFLAGS="-Zomf $LDFLAGS"
38597 CFLAGS="-Zomf $CFLAGS"
38598 CXXFLAGS="-Zomf $CXXFLAGS"
38599 OS2_LIBEXT="lib"
38600 else
38601 OS2_LIBEXT="a"
38602 fi
38603 ;;
38604 esac
38605
38606
38607 SO_SUFFIX="so"
38608 SO_SUFFIX_MODULE="so"
38609 EXEEXT=""
38610 LIBPREFIX="lib"
38611 LIBEXT=".a"
38612 DLLPREFIX="lib"
38613 DLLPREFIX_MODULE=""
38614 DLLIMP_SUFFIX=""
38615
38616 case "${BAKEFILE_HOST}" in
38617 *-hp-hpux* )
38618 SO_SUFFIX="sl"
38619 SO_SUFFIX_MODULE="sl"
38620 ;;
38621 *-*-aix* )
38622 SO_SUFFIX="a"
38623 SO_SUFFIX_MODULE="a"
38624 ;;
38625 *-*-cygwin* | *-*-mingw32* )
38626 SO_SUFFIX="dll"
38627 SO_SUFFIX_MODULE="dll"
38628 DLLIMP_SUFFIX="dll.a"
38629 EXEEXT=".exe"
38630 DLLPREFIX=""
38631 ;;
38632 *-pc-msdosdjgpp )
38633 EXEEXT=".exe"
38634 DLLPREFIX=""
38635 ;;
38636 *-pc-os2_emx | *-pc-os2-emx )
38637 SO_SUFFIX="dll"
38638 SO_SUFFIX_MODULE="dll"
38639 DLLIMP_SUFFIX=$OS2_LIBEXT
38640 EXEEXT=".exe"
38641 DLLPREFIX=""
38642 LIBPREFIX=""
38643 LIBEXT=".$OS2_LIBEXT"
38644 ;;
38645 powerpc-*-darwin* )
38646 SO_SUFFIX="dylib"
38647 SO_SUFFIX_MODULE="bundle"
38648 ;;
38649 esac
38650
38651 if test "x$DLLIMP_SUFFIX" = "x" ; then
38652 DLLIMP_SUFFIX="$SO_SUFFIX"
38653 fi
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665 SHARED_LD_CC="\$(CC) -shared -o"
38666 SHARED_LD_CXX="\$(CXX) -shared -o"
38667
38668 if test "x$GCC" = "xyes"; then
38669 PIC_FLAG="-fPIC"
38670 fi
38671
38672 case "${BAKEFILE_HOST}" in
38673 *-hp-hpux* )
38674 if test "x$GCC" = "xyes"; then
38675 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38676 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38677 else
38678 LDFLAGS="$LDFLAGS -L/usr/lib"
38679
38680 SHARED_LD_CC="${CC} -b -o"
38681 SHARED_LD_CXX="${CXX} -b -o"
38682 PIC_FLAG="+Z"
38683 fi
38684 ;;
38685
38686 *-*-linux* )
38687 if test "x$GCC" != "xyes"; then
38688 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38689 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38690 if test "${bakefile_cv_prog_icc+set}" = set; then
38691 echo $ECHO_N "(cached) $ECHO_C" >&6
38692 else
38693
38694 cat >conftest.$ac_ext <<_ACEOF
38695 /* confdefs.h. */
38696 _ACEOF
38697 cat confdefs.h >>conftest.$ac_ext
38698 cat >>conftest.$ac_ext <<_ACEOF
38699 /* end confdefs.h. */
38700
38701 int
38702 main ()
38703 {
38704
38705 #ifndef __INTEL_COMPILER
38706 #error Not icc
38707 #endif
38708
38709 ;
38710 return 0;
38711 }
38712 _ACEOF
38713 rm -f conftest.$ac_objext
38714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38715 (eval $ac_compile) 2>conftest.er1
38716 ac_status=$?
38717 grep -v '^ *+' conftest.er1 >conftest.err
38718 rm -f conftest.er1
38719 cat conftest.err >&5
38720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721 (exit $ac_status); } &&
38722 { ac_try='test -z "$ac_c_werror_flag"
38723 || test ! -s conftest.err'
38724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38725 (eval $ac_try) 2>&5
38726 ac_status=$?
38727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38728 (exit $ac_status); }; } &&
38729 { ac_try='test -s conftest.$ac_objext'
38730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731 (eval $ac_try) 2>&5
38732 ac_status=$?
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); }; }; then
38735 bakefile_cv_prog_icc=yes
38736 else
38737 echo "$as_me: failed program was:" >&5
38738 sed 's/^/| /' conftest.$ac_ext >&5
38739
38740 bakefile_cv_prog_icc=no
38741
38742 fi
38743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38744
38745 fi
38746 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38747 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38748 if test "$bakefile_cv_prog_icc" = "yes"; then
38749 PIC_FLAG="-KPIC"
38750 fi
38751 fi
38752 ;;
38753
38754 *-*-solaris2* )
38755 if test "x$GCC" != xyes ; then
38756 SHARED_LD_CC="${CC} -G -o"
38757 SHARED_LD_CXX="${CXX} -G -o"
38758 PIC_FLAG="-KPIC"
38759 fi
38760 ;;
38761
38762 *-*-darwin* )
38763
38764 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38765 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38766 if test "${wx_cv_gcc31+set}" = set; then
38767 echo $ECHO_N "(cached) $ECHO_C" >&6
38768 else
38769
38770 cat >conftest.$ac_ext <<_ACEOF
38771 /* confdefs.h. */
38772 _ACEOF
38773 cat confdefs.h >>conftest.$ac_ext
38774 cat >>conftest.$ac_ext <<_ACEOF
38775 /* end confdefs.h. */
38776
38777 int
38778 main ()
38779 {
38780
38781 #if (__GNUC__ < 3) || \
38782 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38783 #error old gcc
38784 #endif
38785
38786 ;
38787 return 0;
38788 }
38789 _ACEOF
38790 rm -f conftest.$ac_objext
38791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38792 (eval $ac_compile) 2>conftest.er1
38793 ac_status=$?
38794 grep -v '^ *+' conftest.er1 >conftest.err
38795 rm -f conftest.er1
38796 cat conftest.err >&5
38797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); } &&
38799 { ac_try='test -z "$ac_c_werror_flag"
38800 || test ! -s conftest.err'
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38803 ac_status=$?
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; } &&
38806 { ac_try='test -s conftest.$ac_objext'
38807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808 (eval $ac_try) 2>&5
38809 ac_status=$?
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); }; }; then
38812
38813 wx_cv_gcc31=yes
38814
38815 else
38816 echo "$as_me: failed program was:" >&5
38817 sed 's/^/| /' conftest.$ac_ext >&5
38818
38819
38820 wx_cv_gcc31=no
38821
38822
38823 fi
38824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38825
38826 fi
38827 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38828 echo "${ECHO_T}$wx_cv_gcc31" >&6
38829 if test "$wx_cv_gcc31" = "no"; then
38830 cat <<EOF >shared-ld-sh
38831 #!/bin/sh
38832 #-----------------------------------------------------------------------------
38833 #-- Name: distrib/mac/shared-ld-sh
38834 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38835 #-- Author: Gilles Depeyrot
38836 #-- Copyright: (c) 2002 Gilles Depeyrot
38837 #-- Licence: any use permitted
38838 #-----------------------------------------------------------------------------
38839
38840 verbose=0
38841 args=""
38842 objects=""
38843 linking_flag="-dynamiclib"
38844
38845 while test \${#} -gt 0; do
38846 case \${1} in
38847
38848 -v)
38849 verbose=1
38850 ;;
38851
38852 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38853 # collect these options and values
38854 args="\${args} \${1} \${2}"
38855 shift
38856 ;;
38857
38858 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38859 # collect these options
38860 args="\${args} \${1}"
38861 ;;
38862
38863 -dynamiclib|-bundle)
38864 linking_flag="\${1}"
38865 ;;
38866
38867 -*)
38868 echo "shared-ld: unhandled option '\${1}'"
38869 exit 1
38870 ;;
38871
38872 *.o | *.a | *.dylib)
38873 # collect object files
38874 objects="\${objects} \${1}"
38875 ;;
38876
38877 *)
38878 echo "shared-ld: unhandled argument '\${1}'"
38879 exit 1
38880 ;;
38881
38882 esac
38883 shift
38884 done
38885
38886 #
38887 # Link one module containing all the others
38888 #
38889 if test \${verbose} = 1; then
38890 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38891 fi
38892 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38893 status=\$?
38894 if test \${status} != 0; then
38895 exit \${status}
38896 fi
38897
38898 #
38899 # Link the shared library from the single module created
38900 #
38901 if test \${verbose} = 1; then
38902 echo "cc \${linking_flag} master.\$\$.o \${args}"
38903 fi
38904 c++ \${linking_flag} master.\$\$.o \${args}
38905 status=\$?
38906 if test \${status} != 0; then
38907 exit \${status}
38908 fi
38909
38910 #
38911 # Remove intermediate module
38912 #
38913 rm -f master.\$\$.o
38914
38915 exit 0
38916 EOF
38917 chmod +x shared-ld-sh
38918
38919 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38920 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38921 SHARED_LD_CXX="$SHARED_LD_CC"
38922 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38923 else
38924 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38925 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38926 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38927 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38928 fi
38929
38930 PIC_FLAG="-dynamic -fPIC"
38931 ;;
38932
38933 *-*-aix* )
38934 if test "x$GCC" != "xyes"; then
38935 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38936 set dummy makeC++SharedLib; ac_word=$2
38937 echo "$as_me:$LINENO: checking for $ac_word" >&5
38938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38939 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38940 echo $ECHO_N "(cached) $ECHO_C" >&6
38941 else
38942 if test -n "$AIX_CXX_LD"; then
38943 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38944 else
38945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38946 for as_dir in $PATH
38947 do
38948 IFS=$as_save_IFS
38949 test -z "$as_dir" && as_dir=.
38950 for ac_exec_ext in '' $ac_executable_extensions; do
38951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38952 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38954 break 2
38955 fi
38956 done
38957 done
38958
38959 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38960 fi
38961 fi
38962 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38963 if test -n "$AIX_CXX_LD"; then
38964 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38965 echo "${ECHO_T}$AIX_CXX_LD" >&6
38966 else
38967 echo "$as_me:$LINENO: result: no" >&5
38968 echo "${ECHO_T}no" >&6
38969 fi
38970
38971 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38972 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38973 fi
38974 ;;
38975
38976 *-*-beos* )
38977 SHARED_LD_CC="${LD} -shared -o"
38978 SHARED_LD_CXX="${LD} -shared -o"
38979 ;;
38980
38981 *-*-irix* )
38982 if test "x$GCC" != "xyes"; then
38983 PIC_FLAG="-KPIC"
38984 fi
38985 ;;
38986
38987 *-*-cygwin* | *-*-mingw32* )
38988 PIC_FLAG=""
38989 ;;
38990
38991 *-pc-os2_emx | *-pc-os2-emx )
38992 SHARED_LD_CC="dllar.sh -o"
38993 SHARED_LD_CXX="dllar.sh -o"
38994 PIC_FLAG=""
38995 ;;
38996
38997 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38998 *-*-sunos4* | \
38999 *-*-osf* | \
39000 *-*-dgux5* | \
39001 *-*-sysv5* )
39002 ;;
39003
39004 *)
39005 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39006 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39007 { (exit 1); exit 1; }; }
39008 esac
39009
39010 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39011 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39012 fi
39013 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39014 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39015 fi
39016
39017
39018
39019
39020
39021
39022
39023
39024 USE_SOVERSION=0
39025 USE_SOVERLINUX=0
39026 USE_SOVERSOLARIS=0
39027 USE_SOSYMLINKS=0
39028 USE_MACVERSION=0
39029 SONAME_FLAG=
39030
39031 case "${BAKEFILE_HOST}" in
39032 *-*-linux* )
39033 SONAME_FLAG="-Wl,-soname,"
39034 USE_SOVERSION=1
39035 USE_SOVERLINUX=1
39036 USE_SOSYMLINKS=1
39037 ;;
39038
39039 *-*-solaris2* )
39040 SONAME_FLAG="-h "
39041 USE_SOVERSION=1
39042 USE_SOVERSOLARIS=1
39043 USE_SOSYMLINKS=1
39044 ;;
39045
39046 *-*-darwin* )
39047 USE_MACVERSION=1
39048 USE_SOVERSION=1
39049 USE_SOSYMLINKS=1
39050 ;;
39051 esac
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39062 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39063 DEPS_TRACKING=0
39064
39065 if test "x$GCC" = "xyes"; then
39066 DEPSMODE=gcc
39067 DEPS_TRACKING=1
39068 case "${BAKEFILE_HOST}" in
39069 powerpc-*-darwin* )
39070 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39071 ;;
39072 * )
39073 DEPSFLAG_GCC="-MMD"
39074 ;;
39075 esac
39076 echo "$as_me:$LINENO: result: gcc" >&5
39077 echo "${ECHO_T}gcc" >&6
39078 else
39079 echo "$as_me:$LINENO: result: none" >&5
39080 echo "${ECHO_T}none" >&6
39081 fi
39082
39083 if test $DEPS_TRACKING = 1 ; then
39084 cat <<EOF >bk-deps
39085 #!/bin/sh
39086
39087 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39088 # script. It is used to track C/C++ files dependencies in portable way.
39089 #
39090 # Permission is given to use this file in any way.
39091
39092 DEPSMODE=$DEPSMODE
39093 DEPSDIR=.deps
39094 DEPSFLAG_GCC="$DEPSFLAG_GCC"
39095
39096 mkdir -p \$DEPSDIR
39097
39098 if test \$DEPSMODE = gcc ; then
39099 \${*} \${DEPSFLAG_GCC}
39100 status=\${?}
39101 if test \${status} != 0 ; then
39102 exit \${status}
39103 fi
39104 # move created file to the location we want it in:
39105 while test \${#} -gt 0; do
39106 case "\${1}" in
39107 -o )
39108 shift
39109 objfile=\${1}
39110 ;;
39111 -* )
39112 ;;
39113 * )
39114 srcfile=\${1}
39115 ;;
39116 esac
39117 shift
39118 done
39119 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
39120 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
39121 if test -f \$depfile ; then
39122 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
39123 rm -f \$depfile
39124 else
39125 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
39126 if test -f \$depfile ; then
39127 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
39128 rm -f \$depfile
39129 fi
39130 fi
39131 exit 0
39132 else
39133 \${*}
39134 exit \${?}
39135 fi
39136 EOF
39137 chmod +x bk-deps
39138 fi
39139
39140
39141
39142
39143 RESCOMP=
39144 SETFILE=
39145
39146 case ${BAKEFILE_HOST} in
39147 *-*-cygwin* | *-*-mingw32* )
39148 if test "$build" != "$host" ; then
39149 RESCOMP=$host_alias-windres
39150 else
39151 # Extract the first word of "windres", so it can be a program name with args.
39152 set dummy windres; ac_word=$2
39153 echo "$as_me:$LINENO: checking for $ac_word" >&5
39154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39155 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39156 echo $ECHO_N "(cached) $ECHO_C" >&6
39157 else
39158 if test -n "$RESCOMP"; then
39159 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39160 else
39161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39162 for as_dir in $PATH
39163 do
39164 IFS=$as_save_IFS
39165 test -z "$as_dir" && as_dir=.
39166 for ac_exec_ext in '' $ac_executable_extensions; do
39167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39168 ac_cv_prog_RESCOMP="windres"
39169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39170 break 2
39171 fi
39172 done
39173 done
39174
39175 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39176 fi
39177 fi
39178 RESCOMP=$ac_cv_prog_RESCOMP
39179 if test -n "$RESCOMP"; then
39180 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39181 echo "${ECHO_T}$RESCOMP" >&6
39182 else
39183 echo "$as_me:$LINENO: result: no" >&5
39184 echo "${ECHO_T}no" >&6
39185 fi
39186
39187 fi
39188 ;;
39189
39190 *-*-darwin* )
39191 # Extract the first word of "Rez", so it can be a program name with args.
39192 set dummy Rez; ac_word=$2
39193 echo "$as_me:$LINENO: checking for $ac_word" >&5
39194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39195 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39196 echo $ECHO_N "(cached) $ECHO_C" >&6
39197 else
39198 if test -n "$RESCOMP"; then
39199 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39200 else
39201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39202 for as_dir in $PATH
39203 do
39204 IFS=$as_save_IFS
39205 test -z "$as_dir" && as_dir=.
39206 for ac_exec_ext in '' $ac_executable_extensions; do
39207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39208 ac_cv_prog_RESCOMP="Rez"
39209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39210 break 2
39211 fi
39212 done
39213 done
39214
39215 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39216 fi
39217 fi
39218 RESCOMP=$ac_cv_prog_RESCOMP
39219 if test -n "$RESCOMP"; then
39220 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39221 echo "${ECHO_T}$RESCOMP" >&6
39222 else
39223 echo "$as_me:$LINENO: result: no" >&5
39224 echo "${ECHO_T}no" >&6
39225 fi
39226
39227 # Extract the first word of "SetFile", so it can be a program name with args.
39228 set dummy SetFile; ac_word=$2
39229 echo "$as_me:$LINENO: checking for $ac_word" >&5
39230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39231 if test "${ac_cv_prog_SETFILE+set}" = set; then
39232 echo $ECHO_N "(cached) $ECHO_C" >&6
39233 else
39234 if test -n "$SETFILE"; then
39235 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39236 else
39237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39238 for as_dir in $PATH
39239 do
39240 IFS=$as_save_IFS
39241 test -z "$as_dir" && as_dir=.
39242 for ac_exec_ext in '' $ac_executable_extensions; do
39243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39244 ac_cv_prog_SETFILE="SetFile"
39245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39246 break 2
39247 fi
39248 done
39249 done
39250
39251 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39252 fi
39253 fi
39254 SETFILE=$ac_cv_prog_SETFILE
39255 if test -n "$SETFILE"; then
39256 echo "$as_me:$LINENO: result: $SETFILE" >&5
39257 echo "${ECHO_T}$SETFILE" >&6
39258 else
39259 echo "$as_me:$LINENO: result: no" >&5
39260 echo "${ECHO_T}no" >&6
39261 fi
39262
39263 ;;
39264 esac
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39276 if test "${enable_precomp_headers+set}" = set; then
39277 enableval="$enable_precomp_headers"
39278 bk_use_pch="$enableval"
39279 fi;
39280
39281 GCC_PCH=0
39282
39283 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39284 if test "x$GCC" = "xyes"; then
39285 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39286 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39287 cat >conftest.$ac_ext <<_ACEOF
39288 /* confdefs.h. */
39289 _ACEOF
39290 cat confdefs.h >>conftest.$ac_ext
39291 cat >>conftest.$ac_ext <<_ACEOF
39292 /* end confdefs.h. */
39293
39294 int
39295 main ()
39296 {
39297
39298 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39299 #error "no pch support"
39300 #endif
39301 #if (__GNUC__ < 3)
39302 #error "no pch support"
39303 #endif
39304 #if (__GNUC__ == 3) && \
39305 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39306 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39307 #error "no pch support"
39308 #endif
39309
39310 ;
39311 return 0;
39312 }
39313 _ACEOF
39314 rm -f conftest.$ac_objext
39315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39316 (eval $ac_compile) 2>conftest.er1
39317 ac_status=$?
39318 grep -v '^ *+' conftest.er1 >conftest.err
39319 rm -f conftest.er1
39320 cat conftest.err >&5
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); } &&
39323 { ac_try='test -z "$ac_c_werror_flag"
39324 || test ! -s conftest.err'
39325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326 (eval $ac_try) 2>&5
39327 ac_status=$?
39328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329 (exit $ac_status); }; } &&
39330 { ac_try='test -s conftest.$ac_objext'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39333 ac_status=$?
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; }; then
39336
39337 echo "$as_me:$LINENO: result: yes" >&5
39338 echo "${ECHO_T}yes" >&6
39339 CPPFLAGS="-fpch-deps $CPPFLAGS"
39340 GCC_PCH=1
39341
39342 else
39343 echo "$as_me: failed program was:" >&5
39344 sed 's/^/| /' conftest.$ac_ext >&5
39345
39346
39347 echo "$as_me:$LINENO: result: no" >&5
39348 echo "${ECHO_T}no" >&6
39349
39350 fi
39351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39352 if test $GCC_PCH = 1 ; then
39353 cat <<EOF >bk-make-pch
39354 #!/bin/sh
39355
39356 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39357 # script. It is used to generated precompiled headers.
39358 #
39359 # Permission is given to use this file in any way.
39360
39361 outfile="\${1}"
39362 header="\${2}"
39363 shift
39364 shift
39365
39366 compiler=
39367 headerfile=
39368 while test \${#} -gt 0; do
39369 case "\${1}" in
39370 -I* )
39371 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39372 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39373 headerfile="\${incdir}/\${header}"
39374 fi
39375 ;;
39376 esac
39377 compiler="\${compiler} \${1}"
39378 shift
39379 done
39380
39381 if test "x\${headerfile}" = "x" ; then
39382 echo "error: can't find header \${header} in include paths" >2
39383 else
39384 if test -f \${outfile} ; then
39385 rm -f \${outfile}
39386 else
39387 mkdir -p \`dirname \${outfile}\`
39388 fi
39389 depsfile=".deps/\`basename \${outfile}\`.d"
39390 mkdir -p .deps
39391 # can do this because gcc is >= 3.4:
39392 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39393 exit \${?}
39394 fi
39395 EOF
39396 chmod +x bk-make-pch
39397 fi
39398 fi
39399 fi
39400
39401
39402
39403
39404
39405 COND_BUILD_DEBUG="#"
39406 if test "x$BUILD" = "xdebug" ; then
39407 COND_BUILD_DEBUG=""
39408 fi
39409
39410 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39411 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39412 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39413 fi
39414
39415 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39416 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39417 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39418 fi
39419
39420 COND_BUILD_DEBUG_UNICODE_0="#"
39421 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39422 COND_BUILD_DEBUG_UNICODE_0=""
39423 fi
39424
39425 COND_BUILD_DEBUG_UNICODE_1="#"
39426 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39427 COND_BUILD_DEBUG_UNICODE_1=""
39428 fi
39429
39430 COND_BUILD_RELEASE="#"
39431 if test "x$BUILD" = "xrelease" ; then
39432 COND_BUILD_RELEASE=""
39433 fi
39434
39435 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39436 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39437 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39438 fi
39439
39440 COND_BUILD_RELEASE_UNICODE_0="#"
39441 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39442 COND_BUILD_RELEASE_UNICODE_0=""
39443 fi
39444
39445 COND_BUILD_RELEASE_UNICODE_1="#"
39446 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39447 COND_BUILD_RELEASE_UNICODE_1=""
39448 fi
39449
39450 COND_DEBUG_FLAG_1="#"
39451 if test "x$DEBUG_FLAG" = "x1" ; then
39452 COND_DEBUG_FLAG_1=""
39453 fi
39454
39455 COND_DEBUG_INFO_0="#"
39456 if test "x$DEBUG_INFO" = "x0" ; then
39457 COND_DEBUG_INFO_0=""
39458 fi
39459
39460 COND_DEBUG_INFO_1="#"
39461 if test "x$DEBUG_INFO" = "x1" ; then
39462 COND_DEBUG_INFO_1=""
39463 fi
39464
39465 COND_DEPS_TRACKING_0="#"
39466 if test "x$DEPS_TRACKING" = "x0" ; then
39467 COND_DEPS_TRACKING_0=""
39468 fi
39469
39470 COND_DEPS_TRACKING_1="#"
39471 if test "x$DEPS_TRACKING" = "x1" ; then
39472 COND_DEPS_TRACKING_1=""
39473 fi
39474
39475 COND_GCC_PCH_1="#"
39476 if test "x$GCC_PCH" = "x1" ; then
39477 COND_GCC_PCH_1=""
39478 fi
39479
39480 COND_MONOLITHIC_0="#"
39481 if test "x$MONOLITHIC" = "x0" ; then
39482 COND_MONOLITHIC_0=""
39483 fi
39484
39485 COND_MONOLITHIC_0_SHARED_0="#"
39486 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39487 COND_MONOLITHIC_0_SHARED_0=""
39488 fi
39489
39490 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39491 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39492 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39493 fi
39494
39495 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39496 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39497 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39498 fi
39499
39500 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39501 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39502 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39503 fi
39504
39505 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39506 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39507 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39508 fi
39509
39510 COND_MONOLITHIC_0_SHARED_1="#"
39511 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39512 COND_MONOLITHIC_0_SHARED_1=""
39513 fi
39514
39515 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39516 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39517 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39518 fi
39519
39520 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39521 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39522 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39523 fi
39524
39525 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39526 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39527 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39528 fi
39529
39530 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39531 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39532 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39533 fi
39534
39535 COND_MONOLITHIC_0_USE_ODBC_1="#"
39536 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39537 COND_MONOLITHIC_0_USE_ODBC_1=""
39538 fi
39539
39540 COND_MONOLITHIC_1="#"
39541 if test "x$MONOLITHIC" = "x1" ; then
39542 COND_MONOLITHIC_1=""
39543 fi
39544
39545 COND_MONOLITHIC_1_SHARED_0="#"
39546 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39547 COND_MONOLITHIC_1_SHARED_0=""
39548 fi
39549
39550 COND_MONOLITHIC_1_SHARED_1="#"
39551 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39552 COND_MONOLITHIC_1_SHARED_1=""
39553 fi
39554
39555 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39556 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39557 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39558 fi
39559
39560 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39561 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39562 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39563 fi
39564
39565 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39566 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39567 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39568 fi
39569
39570 COND_PLATFORM_MACOSX_1="#"
39571 if test "x$PLATFORM_MACOSX" = "x1" ; then
39572 COND_PLATFORM_MACOSX_1=""
39573 fi
39574
39575 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39576 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39577 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39578 fi
39579
39580 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39581 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39582 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39583 fi
39584
39585 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39586 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39587 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39588 fi
39589
39590 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39591 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39592 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39593 fi
39594
39595 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39596 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39597 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39598 fi
39599
39600 COND_PLATFORM_MAC_1="#"
39601 if test "x$PLATFORM_MAC" = "x1" ; then
39602 COND_PLATFORM_MAC_1=""
39603 fi
39604
39605 COND_PLATFORM_OS2_1="#"
39606 if test "x$PLATFORM_OS2" = "x1" ; then
39607 COND_PLATFORM_OS2_1=""
39608 fi
39609
39610 COND_PLATFORM_UNIX_0="#"
39611 if test "x$PLATFORM_UNIX" = "x0" ; then
39612 COND_PLATFORM_UNIX_0=""
39613 fi
39614
39615 COND_PLATFORM_UNIX_1="#"
39616 if test "x$PLATFORM_UNIX" = "x1" ; then
39617 COND_PLATFORM_UNIX_1=""
39618 fi
39619
39620 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39621 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39622 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39623 fi
39624
39625 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39626 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39627 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39628 fi
39629
39630 COND_PLATFORM_WIN32_0="#"
39631 if test "x$PLATFORM_WIN32" = "x0" ; then
39632 COND_PLATFORM_WIN32_0=""
39633 fi
39634
39635 COND_PLATFORM_WIN32_1="#"
39636 if test "x$PLATFORM_WIN32" = "x1" ; then
39637 COND_PLATFORM_WIN32_1=""
39638 fi
39639
39640 COND_SHARED_0="#"
39641 if test "x$SHARED" = "x0" ; then
39642 COND_SHARED_0=""
39643 fi
39644
39645 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39646 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39647 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39648 fi
39649
39650 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39651 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39652 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39653 fi
39654
39655 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39656 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39657 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39658 fi
39659
39660 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39661 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39662 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39663 fi
39664
39665 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39666 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39667 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39668 fi
39669
39670 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39671 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39672 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39673 fi
39674
39675 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39676 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39677 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39678 fi
39679
39680 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39681 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39682 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39683 fi
39684
39685 COND_SHARED_1="#"
39686 if test "x$SHARED" = "x1" ; then
39687 COND_SHARED_1=""
39688 fi
39689
39690 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39691 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39692 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39693 fi
39694
39695 COND_TOOLKIT_COCOA="#"
39696 if test "x$TOOLKIT" = "xCOCOA" ; then
39697 COND_TOOLKIT_COCOA=""
39698 fi
39699
39700 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39701 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39702 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39703 fi
39704
39705 COND_TOOLKIT_GTK="#"
39706 if test "x$TOOLKIT" = "xGTK" ; then
39707 COND_TOOLKIT_GTK=""
39708 fi
39709
39710 COND_TOOLKIT_GTK_USE_GUI_1="#"
39711 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39712 COND_TOOLKIT_GTK_USE_GUI_1=""
39713 fi
39714
39715 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39716 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39717 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39718 fi
39719
39720 COND_TOOLKIT_MAC="#"
39721 if test "x$TOOLKIT" = "xMAC" ; then
39722 COND_TOOLKIT_MAC=""
39723 fi
39724
39725 COND_TOOLKIT_MAC_USE_GUI_1="#"
39726 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39727 COND_TOOLKIT_MAC_USE_GUI_1=""
39728 fi
39729
39730 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39731 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39732 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39733 fi
39734
39735 COND_TOOLKIT_MGL="#"
39736 if test "x$TOOLKIT" = "xMGL" ; then
39737 COND_TOOLKIT_MGL=""
39738 fi
39739
39740 COND_TOOLKIT_MGL_USE_GUI_1="#"
39741 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39742 COND_TOOLKIT_MGL_USE_GUI_1=""
39743 fi
39744
39745 COND_TOOLKIT_MOTIF="#"
39746 if test "x$TOOLKIT" = "xMOTIF" ; then
39747 COND_TOOLKIT_MOTIF=""
39748 fi
39749
39750 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39751 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39752 COND_TOOLKIT_MOTIF_USE_GUI_1=""
39753 fi
39754
39755 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39756 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39757 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39758 fi
39759
39760 COND_TOOLKIT_MSW="#"
39761 if test "x$TOOLKIT" = "xMSW" ; then
39762 COND_TOOLKIT_MSW=""
39763 fi
39764
39765 COND_TOOLKIT_MSW_USE_GUI_1="#"
39766 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39767 COND_TOOLKIT_MSW_USE_GUI_1=""
39768 fi
39769
39770 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39771 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39772 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39773 fi
39774
39775 COND_TOOLKIT_PM="#"
39776 if test "x$TOOLKIT" = "xPM" ; then
39777 COND_TOOLKIT_PM=""
39778 fi
39779
39780 COND_TOOLKIT_PM_USE_GUI_1="#"
39781 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39782 COND_TOOLKIT_PM_USE_GUI_1=""
39783 fi
39784
39785 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39786 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39787 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39788 fi
39789
39790 COND_TOOLKIT_X11="#"
39791 if test "x$TOOLKIT" = "xX11" ; then
39792 COND_TOOLKIT_X11=""
39793 fi
39794
39795 COND_TOOLKIT_X11_USE_GUI_1="#"
39796 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39797 COND_TOOLKIT_X11_USE_GUI_1=""
39798 fi
39799
39800 COND_UNICODE_1="#"
39801 if test "x$UNICODE" = "x1" ; then
39802 COND_UNICODE_1=""
39803 fi
39804
39805 COND_USE_EXCEPTIONS_0="#"
39806 if test "x$USE_EXCEPTIONS" = "x0" ; then
39807 COND_USE_EXCEPTIONS_0=""
39808 fi
39809
39810 COND_USE_EXCEPTIONS_1="#"
39811 if test "x$USE_EXCEPTIONS" = "x1" ; then
39812 COND_USE_EXCEPTIONS_1=""
39813 fi
39814
39815 COND_USE_GUI_0="#"
39816 if test "x$USE_GUI" = "x0" ; then
39817 COND_USE_GUI_0=""
39818 fi
39819
39820 COND_USE_GUI_1="#"
39821 if test "x$USE_GUI" = "x1" ; then
39822 COND_USE_GUI_1=""
39823 fi
39824
39825 COND_USE_GUI_1_WXUNIV_0="#"
39826 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39827 COND_USE_GUI_1_WXUNIV_0=""
39828 fi
39829
39830 COND_USE_GUI_1_WXUNIV_1="#"
39831 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39832 COND_USE_GUI_1_WXUNIV_1=""
39833 fi
39834
39835 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39836 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39837 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39838 fi
39839
39840 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39841 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39842 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39843 fi
39844
39845 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39846 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39847 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39848 fi
39849
39850 COND_USE_ODBC_1="#"
39851 if test "x$USE_ODBC" = "x1" ; then
39852 COND_USE_ODBC_1=""
39853 fi
39854
39855 COND_USE_PLUGINS_0="#"
39856 if test "x$USE_PLUGINS" = "x0" ; then
39857 COND_USE_PLUGINS_0=""
39858 fi
39859
39860 COND_USE_SOSYMLINKS_1="#"
39861 if test "x$USE_SOSYMLINKS" = "x1" ; then
39862 COND_USE_SOSYMLINKS_1=""
39863 fi
39864
39865 COND_USE_SOVERLINUX_1="#"
39866 if test "x$USE_SOVERLINUX" = "x1" ; then
39867 COND_USE_SOVERLINUX_1=""
39868 fi
39869
39870 COND_USE_SOVERSION_0="#"
39871 if test "x$USE_SOVERSION" = "x0" ; then
39872 COND_USE_SOVERSION_0=""
39873 fi
39874
39875 COND_USE_SOVERSOLARIS_1="#"
39876 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39877 COND_USE_SOVERSOLARIS_1=""
39878 fi
39879
39880 COND_WITH_PLUGIN_SDL_1="#"
39881 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39882 COND_WITH_PLUGIN_SDL_1=""
39883 fi
39884
39885 COND_WITH_SDL_1="#"
39886 if test "x$WITH_SDL" = "x1" ; then
39887 COND_WITH_SDL_1=""
39888 fi
39889
39890 COND_WXUNIV_1="#"
39891 if test "x$WXUNIV" = "x1" ; then
39892 COND_WXUNIV_1=""
39893 fi
39894
39895 COND_WXUSE_EXPAT_BUILTIN="#"
39896 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39897 COND_WXUSE_EXPAT_BUILTIN=""
39898 fi
39899
39900 COND_WXUSE_LIBJPEG_BUILTIN="#"
39901 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39902 COND_WXUSE_LIBJPEG_BUILTIN=""
39903 fi
39904
39905 COND_WXUSE_LIBPNG_BUILTIN="#"
39906 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39907 COND_WXUSE_LIBPNG_BUILTIN=""
39908 fi
39909
39910 COND_WXUSE_LIBTIFF_BUILTIN="#"
39911 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39912 COND_WXUSE_LIBTIFF_BUILTIN=""
39913 fi
39914
39915 COND_WXUSE_ODBC_BUILTIN="#"
39916 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39917 COND_WXUSE_ODBC_BUILTIN=""
39918 fi
39919
39920 COND_WXUSE_REGEX_BUILTIN="#"
39921 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39922 COND_WXUSE_REGEX_BUILTIN=""
39923 fi
39924
39925 COND_WXUSE_ZLIB_BUILTIN="#"
39926 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39927 COND_WXUSE_ZLIB_BUILTIN=""
39928 fi
39929
39930
39931
39932
39933
39934 if test $GCC_PCH = 1 ; then
39935 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39936 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39937 else
39938 case "${host}" in
39939 powerpc-*-darwin* )
39940 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39941 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
39942 ;;
39943 esac
39944 fi
39945
39946
39947 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
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
40004
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40049 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
40050 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
40051 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40052 echo $ECHO_N "(cached) $ECHO_C" >&6
40053 else
40054 cat >conftest.make <<\_ACEOF
40055 all:
40056 @echo 'ac_maketemp="$(MAKE)"'
40057 _ACEOF
40058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40059 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40060 if test -n "$ac_maketemp"; then
40061 eval ac_cv_prog_make_${ac_make}_set=yes
40062 else
40063 eval ac_cv_prog_make_${ac_make}_set=no
40064 fi
40065 rm -f conftest.make
40066 fi
40067 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40068 echo "$as_me:$LINENO: result: yes" >&5
40069 echo "${ECHO_T}yes" >&6
40070 SET_MAKE=
40071 else
40072 echo "$as_me:$LINENO: result: no" >&5
40073 echo "${ECHO_T}no" >&6
40074 SET_MAKE="MAKE=${MAKE-make}"
40075 fi
40076
40077
40078 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
40079 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
40080 fi
40081
40082 ac_config_headers="$ac_config_headers setup.h"
40083
40084
40085 ac_config_files="$ac_config_files wx-config version-script Makefile"
40086
40087
40088 ac_config_commands="$ac_config_commands default"
40089
40090
40091
40092 if test "$wxUSE_GUI" = "yes"; then
40093 SUBDIRS="samples demos utils contrib"
40094 else SUBDIRS="samples utils"
40095 fi
40096
40097
40098
40099 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
40100 if test "${with_cppunit_prefix+set}" = set; then
40101 withval="$with_cppunit_prefix"
40102 cppunit_config_prefix="$withval"
40103 else
40104 cppunit_config_prefix=""
40105 fi;
40106
40107 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
40108 if test "${with_cppunit_exec_prefix+set}" = set; then
40109 withval="$with_cppunit_exec_prefix"
40110 cppunit_config_exec_prefix="$withval"
40111 else
40112 cppunit_config_exec_prefix=""
40113 fi;
40114
40115 if test x$cppunit_config_exec_prefix != x ; then
40116 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
40117 if test x${CPPUNIT_CONFIG+set} != xset ; then
40118 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
40119 fi
40120 fi
40121 if test x$cppunit_config_prefix != x ; then
40122 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
40123 if test x${CPPUNIT_CONFIG+set} != xset ; then
40124 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
40125 fi
40126 fi
40127
40128 # Extract the first word of "cppunit-config", so it can be a program name with args.
40129 set dummy cppunit-config; ac_word=$2
40130 echo "$as_me:$LINENO: checking for $ac_word" >&5
40131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40132 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
40133 echo $ECHO_N "(cached) $ECHO_C" >&6
40134 else
40135 case $CPPUNIT_CONFIG in
40136 [\\/]* | ?:[\\/]*)
40137 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
40138 ;;
40139 *)
40140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40141 for as_dir in $PATH
40142 do
40143 IFS=$as_save_IFS
40144 test -z "$as_dir" && as_dir=.
40145 for ac_exec_ext in '' $ac_executable_extensions; do
40146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40147 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40149 break 2
40150 fi
40151 done
40152 done
40153
40154 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
40155 ;;
40156 esac
40157 fi
40158 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
40159
40160 if test -n "$CPPUNIT_CONFIG"; then
40161 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
40162 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
40163 else
40164 echo "$as_me:$LINENO: result: no" >&5
40165 echo "${ECHO_T}no" >&6
40166 fi
40167
40168 cppunit_version_min=1.8.0
40169
40170 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
40171 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
40172 no_cppunit=""
40173 if test "$CPPUNIT_CONFIG" = "no" ; then
40174 no_cppunit=yes
40175 else
40176 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
40177 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
40178 cppunit_version=`$CPPUNIT_CONFIG --version`
40179
40180 cppunit_major_version=`echo $cppunit_version | \
40181 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40182 cppunit_minor_version=`echo $cppunit_version | \
40183 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40184 cppunit_micro_version=`echo $cppunit_version | \
40185 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40186
40187 cppunit_major_min=`echo $cppunit_version_min | \
40188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40189 cppunit_minor_min=`echo $cppunit_version_min | \
40190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40191 cppunit_micro_min=`echo $cppunit_version_min | \
40192 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40193
40194 cppunit_version_proper=`expr \
40195 $cppunit_major_version \> $cppunit_major_min \| \
40196 $cppunit_major_version \= $cppunit_major_min \& \
40197 $cppunit_minor_version \> $cppunit_minor_min \| \
40198 $cppunit_major_version \= $cppunit_major_min \& \
40199 $cppunit_minor_version \= $cppunit_minor_min \& \
40200 $cppunit_micro_version \>= $cppunit_micro_min `
40201
40202 if test "$cppunit_version_proper" = "1" ; then
40203 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
40204 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
40205 else
40206 echo "$as_me:$LINENO: result: no" >&5
40207 echo "${ECHO_T}no" >&6
40208 no_cppunit=yes
40209 fi
40210 fi
40211
40212 if test "x$no_cppunit" = x ; then
40213 SUBDIRS="$SUBDIRS tests"
40214 else
40215 CPPUNIT_CFLAGS=""
40216 CPPUNIT_LIBS=""
40217 :
40218 fi
40219
40220
40221
40222
40223
40224 for subdir in `echo $SUBDIRS`; do
40225 if test -d ${srcdir}/${subdir} ; then
40226 if test "$wxUSE_GUI" = "yes"; then
40227 if test ${subdir} = "samples"; then
40228 makefiles="samples/Makefile.in $makefiles"
40229 for sample in `echo $SAMPLES_SUBDIRS`; do
40230 if test -d $srcdir/samples/$sample; then
40231 makefiles="samples/$sample/Makefile.in $makefiles"
40232 fi
40233 done
40234 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40235 fi
40236 else if test ${subdir} = "samples"; then
40237 makefiles="samples/Makefile.in samples/console/Makefile.in"
40238 elif test ${subdir} = "utils"; then
40239 makefiles="utils/HelpGen/Makefile.in \
40240 utils/HelpGen/src/Makefile.in \
40241 utils/tex2rtf/Makefile.in \
40242 utils/tex2rtf/src/Makefile.in"
40243 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40244 fi
40245 fi
40246
40247 for mkin in $makefiles ; do
40248 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
40249 ac_config_files="$ac_config_files $mk"
40250
40251 done
40252 fi
40253 done
40254
40255
40256 cat >confcache <<\_ACEOF
40257 # This file is a shell script that caches the results of configure
40258 # tests run on this system so they can be shared between configure
40259 # scripts and configure runs, see configure's option --config-cache.
40260 # It is not useful on other systems. If it contains results you don't
40261 # want to keep, you may remove or edit it.
40262 #
40263 # config.status only pays attention to the cache file if you give it
40264 # the --recheck option to rerun configure.
40265 #
40266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40268 # following values.
40269
40270 _ACEOF
40271
40272 # The following way of writing the cache mishandles newlines in values,
40273 # but we know of no workaround that is simple, portable, and efficient.
40274 # So, don't put newlines in cache variables' values.
40275 # Ultrix sh set writes to stderr and can't be redirected directly,
40276 # and sets the high bit in the cache file unless we assign to the vars.
40277 {
40278 (set) 2>&1 |
40279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40280 *ac_space=\ *)
40281 # `set' does not quote correctly, so add quotes (double-quote
40282 # substitution turns \\\\ into \\, and sed turns \\ into \).
40283 sed -n \
40284 "s/'/'\\\\''/g;
40285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40286 ;;
40287 *)
40288 # `set' quotes correctly as required by POSIX, so do not add quotes.
40289 sed -n \
40290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40291 ;;
40292 esac;
40293 } |
40294 sed '
40295 t clear
40296 : clear
40297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40298 t end
40299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40300 : end' >>confcache
40301 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40302 if test -w $cache_file; then
40303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40304 cat confcache >$cache_file
40305 else
40306 echo "not updating unwritable cache $cache_file"
40307 fi
40308 fi
40309 rm -f confcache
40310
40311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40312 # Let make expand exec_prefix.
40313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40314
40315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40317 # trailing colons and then remove the whole line if VPATH becomes empty
40318 # (actually we leave an empty line to preserve line numbers).
40319 if test "x$srcdir" = x.; then
40320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40321 s/:*\$(srcdir):*/:/;
40322 s/:*\${srcdir}:*/:/;
40323 s/:*@srcdir@:*/:/;
40324 s/^\([^=]*=[ ]*\):*/\1/;
40325 s/:*$//;
40326 s/^[^=]*=[ ]*$//;
40327 }'
40328 fi
40329
40330 DEFS=-DHAVE_CONFIG_H
40331
40332 ac_libobjs=
40333 ac_ltlibobjs=
40334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40335 # 1. Remove the extension, and $U if already installed.
40336 ac_i=`echo "$ac_i" |
40337 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40338 # 2. Add them.
40339 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40340 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40341 done
40342 LIBOBJS=$ac_libobjs
40343
40344 LTLIBOBJS=$ac_ltlibobjs
40345
40346
40347
40348 : ${CONFIG_STATUS=./config.status}
40349 ac_clean_files_save=$ac_clean_files
40350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40351 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40352 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40353 cat >$CONFIG_STATUS <<_ACEOF
40354 #! $SHELL
40355 # Generated by $as_me.
40356 # Run this file to recreate the current configuration.
40357 # Compiler output produced by configure, useful for debugging
40358 # configure, is in config.log if it exists.
40359
40360 debug=false
40361 ac_cs_recheck=false
40362 ac_cs_silent=false
40363 SHELL=\${CONFIG_SHELL-$SHELL}
40364 _ACEOF
40365
40366 cat >>$CONFIG_STATUS <<\_ACEOF
40367 ## --------------------- ##
40368 ## M4sh Initialization. ##
40369 ## --------------------- ##
40370
40371 # Be Bourne compatible
40372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40373 emulate sh
40374 NULLCMD=:
40375 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40376 # is contrary to our usage. Disable this feature.
40377 alias -g '${1+"$@"}'='"$@"'
40378 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40379 set -o posix
40380 fi
40381 DUALCASE=1; export DUALCASE # for MKS sh
40382
40383 # Support unset when possible.
40384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40385 as_unset=unset
40386 else
40387 as_unset=false
40388 fi
40389
40390
40391 # Work around bugs in pre-3.0 UWIN ksh.
40392 $as_unset ENV MAIL MAILPATH
40393 PS1='$ '
40394 PS2='> '
40395 PS4='+ '
40396
40397 # NLS nuisances.
40398 for as_var in \
40399 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40400 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40401 LC_TELEPHONE LC_TIME
40402 do
40403 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40404 eval $as_var=C; export $as_var
40405 else
40406 $as_unset $as_var
40407 fi
40408 done
40409
40410 # Required to use basename.
40411 if expr a : '\(a\)' >/dev/null 2>&1; then
40412 as_expr=expr
40413 else
40414 as_expr=false
40415 fi
40416
40417 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40418 as_basename=basename
40419 else
40420 as_basename=false
40421 fi
40422
40423
40424 # Name of the executable.
40425 as_me=`$as_basename "$0" ||
40426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40427 X"$0" : 'X\(//\)$' \| \
40428 X"$0" : 'X\(/\)$' \| \
40429 . : '\(.\)' 2>/dev/null ||
40430 echo X/"$0" |
40431 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40432 /^X\/\(\/\/\)$/{ s//\1/; q; }
40433 /^X\/\(\/\).*/{ s//\1/; q; }
40434 s/.*/./; q'`
40435
40436
40437 # PATH needs CR, and LINENO needs CR and PATH.
40438 # Avoid depending upon Character Ranges.
40439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40442 as_cr_digits='0123456789'
40443 as_cr_alnum=$as_cr_Letters$as_cr_digits
40444
40445 # The user is always right.
40446 if test "${PATH_SEPARATOR+set}" != set; then
40447 echo "#! /bin/sh" >conf$$.sh
40448 echo "exit 0" >>conf$$.sh
40449 chmod +x conf$$.sh
40450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40451 PATH_SEPARATOR=';'
40452 else
40453 PATH_SEPARATOR=:
40454 fi
40455 rm -f conf$$.sh
40456 fi
40457
40458
40459 as_lineno_1=$LINENO
40460 as_lineno_2=$LINENO
40461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40462 test "x$as_lineno_1" != "x$as_lineno_2" &&
40463 test "x$as_lineno_3" = "x$as_lineno_2" || {
40464 # Find who we are. Look in the path if we contain no path at all
40465 # relative or not.
40466 case $0 in
40467 *[\\/]* ) as_myself=$0 ;;
40468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40469 for as_dir in $PATH
40470 do
40471 IFS=$as_save_IFS
40472 test -z "$as_dir" && as_dir=.
40473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40474 done
40475
40476 ;;
40477 esac
40478 # We did not find ourselves, most probably we were run as `sh COMMAND'
40479 # in which case we are not to be found in the path.
40480 if test "x$as_myself" = x; then
40481 as_myself=$0
40482 fi
40483 if test ! -f "$as_myself"; then
40484 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40485 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40486 { (exit 1); exit 1; }; }
40487 fi
40488 case $CONFIG_SHELL in
40489 '')
40490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40491 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40492 do
40493 IFS=$as_save_IFS
40494 test -z "$as_dir" && as_dir=.
40495 for as_base in sh bash ksh sh5; do
40496 case $as_dir in
40497 /*)
40498 if ("$as_dir/$as_base" -c '
40499 as_lineno_1=$LINENO
40500 as_lineno_2=$LINENO
40501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40502 test "x$as_lineno_1" != "x$as_lineno_2" &&
40503 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40504 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40505 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40506 CONFIG_SHELL=$as_dir/$as_base
40507 export CONFIG_SHELL
40508 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40509 fi;;
40510 esac
40511 done
40512 done
40513 ;;
40514 esac
40515
40516 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40517 # uniformly replaced by the line number. The first 'sed' inserts a
40518 # line-number line before each line; the second 'sed' does the real
40519 # work. The second script uses 'N' to pair each line-number line
40520 # with the numbered line, and appends trailing '-' during
40521 # substitution so that $LINENO is not a special case at line end.
40522 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40523 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40524 sed '=' <$as_myself |
40525 sed '
40526 N
40527 s,$,-,
40528 : loop
40529 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40530 t loop
40531 s,-$,,
40532 s,^['$as_cr_digits']*\n,,
40533 ' >$as_me.lineno &&
40534 chmod +x $as_me.lineno ||
40535 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40536 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40537 { (exit 1); exit 1; }; }
40538
40539 # Don't try to exec as it changes $[0], causing all sort of problems
40540 # (the dirname of $[0] is not the place where we might find the
40541 # original and so on. Autoconf is especially sensible to this).
40542 . ./$as_me.lineno
40543 # Exit status is that of the last command.
40544 exit
40545 }
40546
40547
40548 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40549 *c*,-n*) ECHO_N= ECHO_C='
40550 ' ECHO_T=' ' ;;
40551 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40552 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40553 esac
40554
40555 if expr a : '\(a\)' >/dev/null 2>&1; then
40556 as_expr=expr
40557 else
40558 as_expr=false
40559 fi
40560
40561 rm -f conf$$ conf$$.exe conf$$.file
40562 echo >conf$$.file
40563 if ln -s conf$$.file conf$$ 2>/dev/null; then
40564 # We could just check for DJGPP; but this test a) works b) is more generic
40565 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40566 if test -f conf$$.exe; then
40567 # Don't use ln at all; we don't have any links
40568 as_ln_s='cp -p'
40569 else
40570 as_ln_s='ln -s'
40571 fi
40572 elif ln conf$$.file conf$$ 2>/dev/null; then
40573 as_ln_s=ln
40574 else
40575 as_ln_s='cp -p'
40576 fi
40577 rm -f conf$$ conf$$.exe conf$$.file
40578
40579 if mkdir -p . 2>/dev/null; then
40580 as_mkdir_p=:
40581 else
40582 test -d ./-p && rmdir ./-p
40583 as_mkdir_p=false
40584 fi
40585
40586 as_executable_p="test -f"
40587
40588 # Sed expression to map a string onto a valid CPP name.
40589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40590
40591 # Sed expression to map a string onto a valid variable name.
40592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40593
40594
40595 # IFS
40596 # We need space, tab and new line, in precisely that order.
40597 as_nl='
40598 '
40599 IFS=" $as_nl"
40600
40601 # CDPATH.
40602 $as_unset CDPATH
40603
40604 exec 6>&1
40605
40606 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40607 # report actual input values of CONFIG_FILES etc. instead of their
40608 # values after options handling. Logging --version etc. is OK.
40609 exec 5>>config.log
40610 {
40611 echo
40612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40613 ## Running $as_me. ##
40614 _ASBOX
40615 } >&5
40616 cat >&5 <<_CSEOF
40617
40618 This file was extended by wxWindows $as_me 2.5.1, which was
40619 generated by GNU Autoconf 2.59. Invocation command line was
40620
40621 CONFIG_FILES = $CONFIG_FILES
40622 CONFIG_HEADERS = $CONFIG_HEADERS
40623 CONFIG_LINKS = $CONFIG_LINKS
40624 CONFIG_COMMANDS = $CONFIG_COMMANDS
40625 $ $0 $@
40626
40627 _CSEOF
40628 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40629 echo >&5
40630 _ACEOF
40631
40632 # Files that config.status was made for.
40633 if test -n "$ac_config_files"; then
40634 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40635 fi
40636
40637 if test -n "$ac_config_headers"; then
40638 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40639 fi
40640
40641 if test -n "$ac_config_links"; then
40642 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40643 fi
40644
40645 if test -n "$ac_config_commands"; then
40646 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40647 fi
40648
40649 cat >>$CONFIG_STATUS <<\_ACEOF
40650
40651 ac_cs_usage="\
40652 \`$as_me' instantiates files from templates according to the
40653 current configuration.
40654
40655 Usage: $0 [OPTIONS] [FILE]...
40656
40657 -h, --help print this help, then exit
40658 -V, --version print version number, then exit
40659 -q, --quiet do not print progress messages
40660 -d, --debug don't remove temporary files
40661 --recheck update $as_me by reconfiguring in the same conditions
40662 --file=FILE[:TEMPLATE]
40663 instantiate the configuration file FILE
40664 --header=FILE[:TEMPLATE]
40665 instantiate the configuration header FILE
40666
40667 Configuration files:
40668 $config_files
40669
40670 Configuration headers:
40671 $config_headers
40672
40673 Configuration commands:
40674 $config_commands
40675
40676 Report bugs to <bug-autoconf@gnu.org>."
40677 _ACEOF
40678
40679 cat >>$CONFIG_STATUS <<_ACEOF
40680 ac_cs_version="\\
40681 wxWindows config.status 2.5.1
40682 configured by $0, generated by GNU Autoconf 2.59,
40683 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40684
40685 Copyright (C) 2003 Free Software Foundation, Inc.
40686 This config.status script is free software; the Free Software Foundation
40687 gives unlimited permission to copy, distribute and modify it."
40688 srcdir=$srcdir
40689 INSTALL="$INSTALL"
40690 _ACEOF
40691
40692 cat >>$CONFIG_STATUS <<\_ACEOF
40693 # If no file are specified by the user, then we need to provide default
40694 # value. By we need to know if files were specified by the user.
40695 ac_need_defaults=:
40696 while test $# != 0
40697 do
40698 case $1 in
40699 --*=*)
40700 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40701 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40702 ac_shift=:
40703 ;;
40704 -*)
40705 ac_option=$1
40706 ac_optarg=$2
40707 ac_shift=shift
40708 ;;
40709 *) # This is not an option, so the user has probably given explicit
40710 # arguments.
40711 ac_option=$1
40712 ac_need_defaults=false;;
40713 esac
40714
40715 case $ac_option in
40716 # Handling of the options.
40717 _ACEOF
40718 cat >>$CONFIG_STATUS <<\_ACEOF
40719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40720 ac_cs_recheck=: ;;
40721 --version | --vers* | -V )
40722 echo "$ac_cs_version"; exit 0 ;;
40723 --he | --h)
40724 # Conflict between --help and --header
40725 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40726 Try \`$0 --help' for more information." >&5
40727 echo "$as_me: error: ambiguous option: $1
40728 Try \`$0 --help' for more information." >&2;}
40729 { (exit 1); exit 1; }; };;
40730 --help | --hel | -h )
40731 echo "$ac_cs_usage"; exit 0 ;;
40732 --debug | --d* | -d )
40733 debug=: ;;
40734 --file | --fil | --fi | --f )
40735 $ac_shift
40736 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40737 ac_need_defaults=false;;
40738 --header | --heade | --head | --hea )
40739 $ac_shift
40740 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40741 ac_need_defaults=false;;
40742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40743 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40744 ac_cs_silent=: ;;
40745
40746 # This is an error.
40747 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40748 Try \`$0 --help' for more information." >&5
40749 echo "$as_me: error: unrecognized option: $1
40750 Try \`$0 --help' for more information." >&2;}
40751 { (exit 1); exit 1; }; } ;;
40752
40753 *) ac_config_targets="$ac_config_targets $1" ;;
40754
40755 esac
40756 shift
40757 done
40758
40759 ac_configure_extra_args=
40760
40761 if $ac_cs_silent; then
40762 exec 6>/dev/null
40763 ac_configure_extra_args="$ac_configure_extra_args --silent"
40764 fi
40765
40766 _ACEOF
40767 cat >>$CONFIG_STATUS <<_ACEOF
40768 if \$ac_cs_recheck; then
40769 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40770 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40771 fi
40772
40773 _ACEOF
40774
40775 cat >>$CONFIG_STATUS <<_ACEOF
40776 #
40777 # INIT-COMMANDS section.
40778 #
40779
40780
40781 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40782 LN_S="${LN_S}"
40783
40784
40785
40786 _ACEOF
40787
40788
40789
40790 cat >>$CONFIG_STATUS <<\_ACEOF
40791 for ac_config_target in $ac_config_targets
40792 do
40793 case "$ac_config_target" in
40794 # Handling of arguments.
40795 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40796 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40797 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40798 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
40799 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40800 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40801 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40802 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40803 { (exit 1); exit 1; }; };;
40804 esac
40805 done
40806
40807 # If the user did not use the arguments to specify the items to instantiate,
40808 # then the envvar interface is used. Set only those that are not.
40809 # We use the long form for the default assignment because of an extremely
40810 # bizarre bug on SunOS 4.1.3.
40811 if $ac_need_defaults; then
40812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40815 fi
40816
40817 # Have a temporary directory for convenience. Make it in the build tree
40818 # simply because there is no reason to put it here, and in addition,
40819 # creating and moving files from /tmp can sometimes cause problems.
40820 # Create a temporary directory, and hook for its removal unless debugging.
40821 $debug ||
40822 {
40823 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40824 trap '{ (exit 1); exit 1; }' 1 2 13 15
40825 }
40826
40827 # Create a (secure) tmp directory for tmp files.
40828
40829 {
40830 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40831 test -n "$tmp" && test -d "$tmp"
40832 } ||
40833 {
40834 tmp=./confstat$$-$RANDOM
40835 (umask 077 && mkdir $tmp)
40836 } ||
40837 {
40838 echo "$me: cannot create a temporary directory in ." >&2
40839 { (exit 1); exit 1; }
40840 }
40841
40842 _ACEOF
40843
40844 cat >>$CONFIG_STATUS <<_ACEOF
40845
40846 #
40847 # CONFIG_FILES section.
40848 #
40849
40850 # No need to generate the scripts if there are no CONFIG_FILES.
40851 # This happens for instance when ./config.status config.h
40852 if test -n "\$CONFIG_FILES"; then
40853 # Protect against being on the right side of a sed subst in config.status.
40854 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40855 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40856 s,@SHELL@,$SHELL,;t t
40857 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40858 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40859 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40860 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40861 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40862 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40863 s,@exec_prefix@,$exec_prefix,;t t
40864 s,@prefix@,$prefix,;t t
40865 s,@program_transform_name@,$program_transform_name,;t t
40866 s,@bindir@,$bindir,;t t
40867 s,@sbindir@,$sbindir,;t t
40868 s,@libexecdir@,$libexecdir,;t t
40869 s,@datadir@,$datadir,;t t
40870 s,@sysconfdir@,$sysconfdir,;t t
40871 s,@sharedstatedir@,$sharedstatedir,;t t
40872 s,@localstatedir@,$localstatedir,;t t
40873 s,@libdir@,$libdir,;t t
40874 s,@includedir@,$includedir,;t t
40875 s,@oldincludedir@,$oldincludedir,;t t
40876 s,@infodir@,$infodir,;t t
40877 s,@mandir@,$mandir,;t t
40878 s,@build_alias@,$build_alias,;t t
40879 s,@host_alias@,$host_alias,;t t
40880 s,@target_alias@,$target_alias,;t t
40881 s,@DEFS@,$DEFS,;t t
40882 s,@ECHO_C@,$ECHO_C,;t t
40883 s,@ECHO_N@,$ECHO_N,;t t
40884 s,@ECHO_T@,$ECHO_T,;t t
40885 s,@LIBS@,$LIBS,;t t
40886 s,@build@,$build,;t t
40887 s,@build_cpu@,$build_cpu,;t t
40888 s,@build_vendor@,$build_vendor,;t t
40889 s,@build_os@,$build_os,;t t
40890 s,@host@,$host,;t t
40891 s,@host_cpu@,$host_cpu,;t t
40892 s,@host_vendor@,$host_vendor,;t t
40893 s,@host_os@,$host_os,;t t
40894 s,@target@,$target,;t t
40895 s,@target_cpu@,$target_cpu,;t t
40896 s,@target_vendor@,$target_vendor,;t t
40897 s,@target_os@,$target_os,;t t
40898 s,@CC@,$CC,;t t
40899 s,@CFLAGS@,$CFLAGS,;t t
40900 s,@LDFLAGS@,$LDFLAGS,;t t
40901 s,@CPPFLAGS@,$CPPFLAGS,;t t
40902 s,@ac_ct_CC@,$ac_ct_CC,;t t
40903 s,@EXEEXT@,$EXEEXT,;t t
40904 s,@OBJEXT@,$OBJEXT,;t t
40905 s,@CPP@,$CPP,;t t
40906 s,@EGREP@,$EGREP,;t t
40907 s,@CXX@,$CXX,;t t
40908 s,@CXXFLAGS@,$CXXFLAGS,;t t
40909 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40910 s,@RANLIB@,$RANLIB,;t t
40911 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40912 s,@AR@,$AR,;t t
40913 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40914 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40915 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40916 s,@STRIP@,$STRIP,;t t
40917 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
40918 s,@LN_S@,$LN_S,;t t
40919 s,@CXXCPP@,$CXXCPP,;t t
40920 s,@subdirs@,$subdirs,;t t
40921 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40922 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40923 s,@GTK_LIBS@,$GTK_LIBS,;t t
40924 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40925 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40926 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40927 s,@X_CFLAGS@,$X_CFLAGS,;t t
40928 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40929 s,@X_LIBS@,$X_LIBS,;t t
40930 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40931 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40932 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40933 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40934 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
40935 s,@RESCOMP@,$RESCOMP,;t t
40936 s,@DEREZ@,$DEREZ,;t t
40937 s,@SETFILE@,$SETFILE,;t t
40938 s,@LIBICONV@,$LIBICONV,;t t
40939 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
40940 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40941 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40942 s,@SDL_LIBS@,$SDL_LIBS,;t t
40943 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40944 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
40945 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40946 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
40947 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
40948 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40949 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40950 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40951 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
40952 s,@VENDOR@,$VENDOR,;t t
40953 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
40954 s,@WXUNIV@,$WXUNIV,;t t
40955 s,@MONOLITHIC@,$MONOLITHIC,;t t
40956 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
40957 s,@EXTRALIBS@,$EXTRALIBS,;t t
40958 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
40959 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
40960 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
40961 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
40962 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
40963 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40964 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
40965 s,@UNICODE@,$UNICODE,;t t
40966 s,@BUILD@,$BUILD,;t t
40967 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40968 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
40969 s,@SHARED@,$SHARED,;t t
40970 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40971 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40972 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
40973 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
40974 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
40975 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
40976 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
40977 s,@SET_MAKE@,$SET_MAKE,;t t
40978 s,@MAKE_SET@,$MAKE_SET,;t t
40979 s,@ac_ct_AR@,$ac_ct_AR,;t t
40980 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40981 s,@NM@,$NM,;t t
40982 s,@ac_ct_NM@,$ac_ct_NM,;t t
40983 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
40984 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
40985 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40986 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40987 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40988 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40989 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
40990 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
40991 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
40992 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
40993 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
40994 s,@LIBPREFIX@,$LIBPREFIX,;t t
40995 s,@LIBEXT@,$LIBEXT,;t t
40996 s,@DLLPREFIX@,$DLLPREFIX,;t t
40997 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
40998 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
40999 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
41000 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
41001 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
41002 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
41003 s,@PIC_FLAG@,$PIC_FLAG,;t t
41004 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
41005 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
41006 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
41007 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
41008 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
41009 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
41010 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
41011 s,@GCC_PCH@,$GCC_PCH,;t t
41012 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
41013 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
41014 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
41015 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
41016 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
41017 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
41018 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
41019 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
41020 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
41021 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
41022 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
41023 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
41024 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
41025 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
41026 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
41027 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
41028 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
41029 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
41030 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
41031 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
41032 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
41033 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
41034 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
41035 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
41036 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
41037 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
41038 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
41039 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
41040 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
41041 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
41042 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
41043 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
41044 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
41045 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
41046 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
41047 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
41048 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
41049 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
41050 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
41051 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
41052 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
41053 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
41054 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
41055 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
41056 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
41057 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
41058 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
41059 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
41060 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
41061 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41062 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41063 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41064 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
41065 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
41066 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
41067 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
41068 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
41069 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
41070 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
41071 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
41072 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
41073 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
41074 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
41075 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
41076 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
41077 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
41078 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
41079 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
41080 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
41081 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
41082 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
41083 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
41084 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
41085 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
41086 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
41087 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
41088 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
41089 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
41090 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
41091 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
41092 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
41093 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
41094 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
41095 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
41096 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
41097 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
41098 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
41099 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
41100 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
41101 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
41102 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
41103 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
41104 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
41105 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
41106 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
41107 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
41108 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
41109 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
41110 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
41111 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
41112 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
41113 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
41114 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
41115 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
41116 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
41117 s,@PATH_IFS@,$PATH_IFS,;t t
41118 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
41119 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
41120 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
41121 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
41122 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
41123 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
41124 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
41125 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
41126 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
41127 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
41128 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
41129 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
41130 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
41131 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
41132 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
41133 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
41134 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
41135 s,@WX_ALL@,$WX_ALL,;t t
41136 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
41137 s,@SHARED_LD@,$SHARED_LD,;t t
41138 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
41139 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
41140 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
41141 s,@USE_GUI@,$USE_GUI,;t t
41142 s,@AFMINSTALL@,$AFMINSTALL,;t t
41143 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
41144 s,@TOOLKIT@,$TOOLKIT,;t t
41145 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
41146 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
41147 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
41148 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
41149 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
41150 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
41151 s,@cross_compiling@,$cross_compiling,;t t
41152 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
41153 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
41154 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
41155 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
41156 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
41157 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
41158 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
41159 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
41160 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
41161 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
41162 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
41163 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
41164 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
41165 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
41166 s,@GUIDIST@,$GUIDIST,;t t
41167 s,@PORT_FILES@,$PORT_FILES,;t t
41168 s,@DISTDIR@,$DISTDIR,;t t
41169 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
41170 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
41171 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
41172 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
41173 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
41174 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
41175 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
41176 s,@RESFLAGS@,$RESFLAGS,;t t
41177 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
41178 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
41179 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
41180 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
41181 s,@MACRESCOMP@,$MACRESCOMP,;t t
41182 s,@MACSETFILE@,$MACSETFILE,;t t
41183 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
41184 s,@GCC@,$GCC,;t t
41185 s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
41186 s,@DLLTOOL@,$DLLTOOL,;t t
41187 s,@AS@,$AS,;t t
41188 s,@LD@,$LD,;t t
41189 s,@MAKEINFO@,$MAKEINFO,;t t
41190 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
41191 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
41192 s,@LIBOBJS@,$LIBOBJS,;t t
41193 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41194 CEOF
41195
41196 _ACEOF
41197
41198 cat >>$CONFIG_STATUS <<\_ACEOF
41199 # Split the substitutions into bite-sized pieces for seds with
41200 # small command number limits, like on Digital OSF/1 and HP-UX.
41201 ac_max_sed_lines=48
41202 ac_sed_frag=1 # Number of current file.
41203 ac_beg=1 # First line for current file.
41204 ac_end=$ac_max_sed_lines # Line after last line for current file.
41205 ac_more_lines=:
41206 ac_sed_cmds=
41207 while $ac_more_lines; do
41208 if test $ac_beg -gt 1; then
41209 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41210 else
41211 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41212 fi
41213 if test ! -s $tmp/subs.frag; then
41214 ac_more_lines=false
41215 else
41216 # The purpose of the label and of the branching condition is to
41217 # speed up the sed processing (if there are no `@' at all, there
41218 # is no need to browse any of the substitutions).
41219 # These are the two extra sed commands mentioned above.
41220 (echo ':t
41221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41222 if test -z "$ac_sed_cmds"; then
41223 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41224 else
41225 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41226 fi
41227 ac_sed_frag=`expr $ac_sed_frag + 1`
41228 ac_beg=$ac_end
41229 ac_end=`expr $ac_end + $ac_max_sed_lines`
41230 fi
41231 done
41232 if test -z "$ac_sed_cmds"; then
41233 ac_sed_cmds=cat
41234 fi
41235 fi # test -n "$CONFIG_FILES"
41236
41237 _ACEOF
41238 cat >>$CONFIG_STATUS <<\_ACEOF
41239 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41241 case $ac_file in
41242 - | *:- | *:-:* ) # input from stdin
41243 cat >$tmp/stdin
41244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41248 * ) ac_file_in=$ac_file.in ;;
41249 esac
41250
41251 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41252 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41254 X"$ac_file" : 'X\(//\)[^/]' \| \
41255 X"$ac_file" : 'X\(//\)$' \| \
41256 X"$ac_file" : 'X\(/\)' \| \
41257 . : '\(.\)' 2>/dev/null ||
41258 echo X"$ac_file" |
41259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41261 /^X\(\/\/\)$/{ s//\1/; q; }
41262 /^X\(\/\).*/{ s//\1/; q; }
41263 s/.*/./; q'`
41264 { if $as_mkdir_p; then
41265 mkdir -p "$ac_dir"
41266 else
41267 as_dir="$ac_dir"
41268 as_dirs=
41269 while test ! -d "$as_dir"; do
41270 as_dirs="$as_dir $as_dirs"
41271 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41273 X"$as_dir" : 'X\(//\)[^/]' \| \
41274 X"$as_dir" : 'X\(//\)$' \| \
41275 X"$as_dir" : 'X\(/\)' \| \
41276 . : '\(.\)' 2>/dev/null ||
41277 echo X"$as_dir" |
41278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41280 /^X\(\/\/\)$/{ s//\1/; q; }
41281 /^X\(\/\).*/{ s//\1/; q; }
41282 s/.*/./; q'`
41283 done
41284 test ! -n "$as_dirs" || mkdir $as_dirs
41285 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41287 { (exit 1); exit 1; }; }; }
41288
41289 ac_builddir=.
41290
41291 if test "$ac_dir" != .; then
41292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41293 # A "../" for each directory in $ac_dir_suffix.
41294 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41295 else
41296 ac_dir_suffix= ac_top_builddir=
41297 fi
41298
41299 case $srcdir in
41300 .) # No --srcdir option. We are building in place.
41301 ac_srcdir=.
41302 if test -z "$ac_top_builddir"; then
41303 ac_top_srcdir=.
41304 else
41305 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41306 fi ;;
41307 [\\/]* | ?:[\\/]* ) # Absolute path.
41308 ac_srcdir=$srcdir$ac_dir_suffix;
41309 ac_top_srcdir=$srcdir ;;
41310 *) # Relative path.
41311 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41312 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41313 esac
41314
41315 # Do not use `cd foo && pwd` to compute absolute paths, because
41316 # the directories may not exist.
41317 case `pwd` in
41318 .) ac_abs_builddir="$ac_dir";;
41319 *)
41320 case "$ac_dir" in
41321 .) ac_abs_builddir=`pwd`;;
41322 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41323 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41324 esac;;
41325 esac
41326 case $ac_abs_builddir in
41327 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41328 *)
41329 case ${ac_top_builddir}. in
41330 .) ac_abs_top_builddir=$ac_abs_builddir;;
41331 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41332 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41333 esac;;
41334 esac
41335 case $ac_abs_builddir in
41336 .) ac_abs_srcdir=$ac_srcdir;;
41337 *)
41338 case $ac_srcdir in
41339 .) ac_abs_srcdir=$ac_abs_builddir;;
41340 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41341 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41342 esac;;
41343 esac
41344 case $ac_abs_builddir in
41345 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41346 *)
41347 case $ac_top_srcdir in
41348 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41349 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41350 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41351 esac;;
41352 esac
41353
41354
41355 case $INSTALL in
41356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41357 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41358 esac
41359
41360 if test x"$ac_file" != x-; then
41361 { echo "$as_me:$LINENO: creating $ac_file" >&5
41362 echo "$as_me: creating $ac_file" >&6;}
41363 rm -f "$ac_file"
41364 fi
41365 # Let's still pretend it is `configure' which instantiates (i.e., don't
41366 # use $as_me), people would be surprised to read:
41367 # /* config.h. Generated by config.status. */
41368 if test x"$ac_file" = x-; then
41369 configure_input=
41370 else
41371 configure_input="$ac_file. "
41372 fi
41373 configure_input=$configure_input"Generated from `echo $ac_file_in |
41374 sed 's,.*/,,'` by configure."
41375
41376 # First look for the input files in the build tree, otherwise in the
41377 # src tree.
41378 ac_file_inputs=`IFS=:
41379 for f in $ac_file_in; do
41380 case $f in
41381 -) echo $tmp/stdin ;;
41382 [\\/$]*)
41383 # Absolute (can't be DOS-style, as IFS=:)
41384 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41385 echo "$as_me: error: cannot find input file: $f" >&2;}
41386 { (exit 1); exit 1; }; }
41387 echo "$f";;
41388 *) # Relative
41389 if test -f "$f"; then
41390 # Build tree
41391 echo "$f"
41392 elif test -f "$srcdir/$f"; then
41393 # Source tree
41394 echo "$srcdir/$f"
41395 else
41396 # /dev/null tree
41397 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41398 echo "$as_me: error: cannot find input file: $f" >&2;}
41399 { (exit 1); exit 1; }; }
41400 fi;;
41401 esac
41402 done` || { (exit 1); exit 1; }
41403 _ACEOF
41404 cat >>$CONFIG_STATUS <<_ACEOF
41405 sed "$ac_vpsub
41406 $extrasub
41407 _ACEOF
41408 cat >>$CONFIG_STATUS <<\_ACEOF
41409 :t
41410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41411 s,@configure_input@,$configure_input,;t t
41412 s,@srcdir@,$ac_srcdir,;t t
41413 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41414 s,@top_srcdir@,$ac_top_srcdir,;t t
41415 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41416 s,@builddir@,$ac_builddir,;t t
41417 s,@abs_builddir@,$ac_abs_builddir,;t t
41418 s,@top_builddir@,$ac_top_builddir,;t t
41419 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41420 s,@INSTALL@,$ac_INSTALL,;t t
41421 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41422 rm -f $tmp/stdin
41423 if test x"$ac_file" != x-; then
41424 mv $tmp/out $ac_file
41425 else
41426 cat $tmp/out
41427 rm -f $tmp/out
41428 fi
41429
41430 done
41431 _ACEOF
41432 cat >>$CONFIG_STATUS <<\_ACEOF
41433
41434 #
41435 # CONFIG_HEADER section.
41436 #
41437
41438 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41439 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41440 #
41441 # ac_d sets the value in "#define NAME VALUE" lines.
41442 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41443 ac_dB='[ ].*$,\1#\2'
41444 ac_dC=' '
41445 ac_dD=',;t'
41446 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41447 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41448 ac_uB='$,\1#\2define\3'
41449 ac_uC=' '
41450 ac_uD=',;t'
41451
41452 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41454 case $ac_file in
41455 - | *:- | *:-:* ) # input from stdin
41456 cat >$tmp/stdin
41457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41461 * ) ac_file_in=$ac_file.in ;;
41462 esac
41463
41464 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41465 echo "$as_me: creating $ac_file" >&6;}
41466
41467 # First look for the input files in the build tree, otherwise in the
41468 # src tree.
41469 ac_file_inputs=`IFS=:
41470 for f in $ac_file_in; do
41471 case $f in
41472 -) echo $tmp/stdin ;;
41473 [\\/$]*)
41474 # Absolute (can't be DOS-style, as IFS=:)
41475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41476 echo "$as_me: error: cannot find input file: $f" >&2;}
41477 { (exit 1); exit 1; }; }
41478 # Do quote $f, to prevent DOS paths from being IFS'd.
41479 echo "$f";;
41480 *) # Relative
41481 if test -f "$f"; then
41482 # Build tree
41483 echo "$f"
41484 elif test -f "$srcdir/$f"; then
41485 # Source tree
41486 echo "$srcdir/$f"
41487 else
41488 # /dev/null tree
41489 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41490 echo "$as_me: error: cannot find input file: $f" >&2;}
41491 { (exit 1); exit 1; }; }
41492 fi;;
41493 esac
41494 done` || { (exit 1); exit 1; }
41495 # Remove the trailing spaces.
41496 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41497
41498 _ACEOF
41499
41500 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41501 # `conftest.undefs', that substitutes the proper values into
41502 # config.h.in to produce config.h. The first handles `#define'
41503 # templates, and the second `#undef' templates.
41504 # And first: Protect against being on the right side of a sed subst in
41505 # config.status. Protect against being in an unquoted here document
41506 # in config.status.
41507 rm -f conftest.defines conftest.undefs
41508 # Using a here document instead of a string reduces the quoting nightmare.
41509 # Putting comments in sed scripts is not portable.
41510 #
41511 # `end' is used to avoid that the second main sed command (meant for
41512 # 0-ary CPP macros) applies to n-ary macro definitions.
41513 # See the Autoconf documentation for `clear'.
41514 cat >confdef2sed.sed <<\_ACEOF
41515 s/[\\&,]/\\&/g
41516 s,[\\$`],\\&,g
41517 t clear
41518 : clear
41519 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41520 t end
41521 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41522 : end
41523 _ACEOF
41524 # If some macros were called several times there might be several times
41525 # the same #defines, which is useless. Nevertheless, we may not want to
41526 # sort them, since we want the *last* AC-DEFINE to be honored.
41527 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41528 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41529 rm -f confdef2sed.sed
41530
41531 # This sed command replaces #undef with comments. This is necessary, for
41532 # example, in the case of _POSIX_SOURCE, which is predefined and required
41533 # on some systems where configure will not decide to define it.
41534 cat >>conftest.undefs <<\_ACEOF
41535 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41536 _ACEOF
41537
41538 # Break up conftest.defines because some shells have a limit on the size
41539 # of here documents, and old seds have small limits too (100 cmds).
41540 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41541 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41542 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41543 echo ' :' >>$CONFIG_STATUS
41544 rm -f conftest.tail
41545 while grep . conftest.defines >/dev/null
41546 do
41547 # Write a limited-size here document to $tmp/defines.sed.
41548 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41549 # Speed up: don't consider the non `#define' lines.
41550 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41551 # Work around the forget-to-reset-the-flag bug.
41552 echo 't clr' >>$CONFIG_STATUS
41553 echo ': clr' >>$CONFIG_STATUS
41554 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41555 echo 'CEOF
41556 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41557 rm -f $tmp/in
41558 mv $tmp/out $tmp/in
41559 ' >>$CONFIG_STATUS
41560 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41561 rm -f conftest.defines
41562 mv conftest.tail conftest.defines
41563 done
41564 rm -f conftest.defines
41565 echo ' fi # grep' >>$CONFIG_STATUS
41566 echo >>$CONFIG_STATUS
41567
41568 # Break up conftest.undefs because some shells have a limit on the size
41569 # of here documents, and old seds have small limits too (100 cmds).
41570 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41571 rm -f conftest.tail
41572 while grep . conftest.undefs >/dev/null
41573 do
41574 # Write a limited-size here document to $tmp/undefs.sed.
41575 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41576 # Speed up: don't consider the non `#undef'
41577 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41578 # Work around the forget-to-reset-the-flag bug.
41579 echo 't clr' >>$CONFIG_STATUS
41580 echo ': clr' >>$CONFIG_STATUS
41581 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41582 echo 'CEOF
41583 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41584 rm -f $tmp/in
41585 mv $tmp/out $tmp/in
41586 ' >>$CONFIG_STATUS
41587 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41588 rm -f conftest.undefs
41589 mv conftest.tail conftest.undefs
41590 done
41591 rm -f conftest.undefs
41592
41593 cat >>$CONFIG_STATUS <<\_ACEOF
41594 # Let's still pretend it is `configure' which instantiates (i.e., don't
41595 # use $as_me), people would be surprised to read:
41596 # /* config.h. Generated by config.status. */
41597 if test x"$ac_file" = x-; then
41598 echo "/* Generated by configure. */" >$tmp/config.h
41599 else
41600 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41601 fi
41602 cat $tmp/in >>$tmp/config.h
41603 rm -f $tmp/in
41604 if test x"$ac_file" != x-; then
41605 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41607 echo "$as_me: $ac_file is unchanged" >&6;}
41608 else
41609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41611 X"$ac_file" : 'X\(//\)[^/]' \| \
41612 X"$ac_file" : 'X\(//\)$' \| \
41613 X"$ac_file" : 'X\(/\)' \| \
41614 . : '\(.\)' 2>/dev/null ||
41615 echo X"$ac_file" |
41616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41618 /^X\(\/\/\)$/{ s//\1/; q; }
41619 /^X\(\/\).*/{ s//\1/; q; }
41620 s/.*/./; q'`
41621 { if $as_mkdir_p; then
41622 mkdir -p "$ac_dir"
41623 else
41624 as_dir="$ac_dir"
41625 as_dirs=
41626 while test ! -d "$as_dir"; do
41627 as_dirs="$as_dir $as_dirs"
41628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41630 X"$as_dir" : 'X\(//\)[^/]' \| \
41631 X"$as_dir" : 'X\(//\)$' \| \
41632 X"$as_dir" : 'X\(/\)' \| \
41633 . : '\(.\)' 2>/dev/null ||
41634 echo X"$as_dir" |
41635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41637 /^X\(\/\/\)$/{ s//\1/; q; }
41638 /^X\(\/\).*/{ s//\1/; q; }
41639 s/.*/./; q'`
41640 done
41641 test ! -n "$as_dirs" || mkdir $as_dirs
41642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41644 { (exit 1); exit 1; }; }; }
41645
41646 rm -f $ac_file
41647 mv $tmp/config.h $ac_file
41648 fi
41649 else
41650 cat $tmp/config.h
41651 rm -f $tmp/config.h
41652 fi
41653 done
41654 _ACEOF
41655 cat >>$CONFIG_STATUS <<\_ACEOF
41656
41657 #
41658 # CONFIG_COMMANDS section.
41659 #
41660 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41661 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41662 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41663 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41664 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41665 X"$ac_dest" : 'X\(//\)[^/]' \| \
41666 X"$ac_dest" : 'X\(//\)$' \| \
41667 X"$ac_dest" : 'X\(/\)' \| \
41668 . : '\(.\)' 2>/dev/null ||
41669 echo X"$ac_dest" |
41670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41672 /^X\(\/\/\)$/{ s//\1/; q; }
41673 /^X\(\/\).*/{ s//\1/; q; }
41674 s/.*/./; q'`
41675 { if $as_mkdir_p; then
41676 mkdir -p "$ac_dir"
41677 else
41678 as_dir="$ac_dir"
41679 as_dirs=
41680 while test ! -d "$as_dir"; do
41681 as_dirs="$as_dir $as_dirs"
41682 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41684 X"$as_dir" : 'X\(//\)[^/]' \| \
41685 X"$as_dir" : 'X\(//\)$' \| \
41686 X"$as_dir" : 'X\(/\)' \| \
41687 . : '\(.\)' 2>/dev/null ||
41688 echo X"$as_dir" |
41689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41691 /^X\(\/\/\)$/{ s//\1/; q; }
41692 /^X\(\/\).*/{ s//\1/; q; }
41693 s/.*/./; q'`
41694 done
41695 test ! -n "$as_dirs" || mkdir $as_dirs
41696 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41697 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41698 { (exit 1); exit 1; }; }; }
41699
41700 ac_builddir=.
41701
41702 if test "$ac_dir" != .; then
41703 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41704 # A "../" for each directory in $ac_dir_suffix.
41705 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41706 else
41707 ac_dir_suffix= ac_top_builddir=
41708 fi
41709
41710 case $srcdir in
41711 .) # No --srcdir option. We are building in place.
41712 ac_srcdir=.
41713 if test -z "$ac_top_builddir"; then
41714 ac_top_srcdir=.
41715 else
41716 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41717 fi ;;
41718 [\\/]* | ?:[\\/]* ) # Absolute path.
41719 ac_srcdir=$srcdir$ac_dir_suffix;
41720 ac_top_srcdir=$srcdir ;;
41721 *) # Relative path.
41722 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41723 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41724 esac
41725
41726 # Do not use `cd foo && pwd` to compute absolute paths, because
41727 # the directories may not exist.
41728 case `pwd` in
41729 .) ac_abs_builddir="$ac_dir";;
41730 *)
41731 case "$ac_dir" in
41732 .) ac_abs_builddir=`pwd`;;
41733 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41734 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41735 esac;;
41736 esac
41737 case $ac_abs_builddir in
41738 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41739 *)
41740 case ${ac_top_builddir}. in
41741 .) ac_abs_top_builddir=$ac_abs_builddir;;
41742 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41743 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41744 esac;;
41745 esac
41746 case $ac_abs_builddir in
41747 .) ac_abs_srcdir=$ac_srcdir;;
41748 *)
41749 case $ac_srcdir in
41750 .) ac_abs_srcdir=$ac_abs_builddir;;
41751 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41752 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41753 esac;;
41754 esac
41755 case $ac_abs_builddir in
41756 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41757 *)
41758 case $ac_top_srcdir in
41759 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41760 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41761 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41762 esac;;
41763 esac
41764
41765
41766 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41767 echo "$as_me: executing $ac_dest commands" >&6;}
41768 case $ac_dest in
41769 default )
41770 if test ! -h wx-config; then
41771 chmod +x wx-config
41772 mv wx-config wx${TOOLCHAIN_NAME}-config
41773 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
41774 fi
41775
41776 if test ! -d lib; then
41777 mkdir lib
41778 fi
41779 if test ! -d lib/wx; then
41780 mkdir lib/wx
41781 fi
41782 if test ! -d lib/wx/include; then
41783 mkdir lib/wx/include
41784 fi
41785 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41786 mkdir lib/wx/include/${TOOLCHAIN_NAME}
41787 fi
41788 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41789 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
41790 fi
41791 if test -f setup.h; then
41792 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
41793 fi
41794 ;;
41795 esac
41796 done
41797 _ACEOF
41798
41799 cat >>$CONFIG_STATUS <<\_ACEOF
41800
41801 { (exit 0); exit 0; }
41802 _ACEOF
41803 chmod +x $CONFIG_STATUS
41804 ac_clean_files=$ac_clean_files_save
41805
41806
41807 # configure is writing to config.log, and then calls config.status.
41808 # config.status does its own redirection, appending to config.log.
41809 # Unfortunately, on DOS this fails, as config.log is still kept open
41810 # by configure, so config.status won't be able to write to it; its
41811 # output is simply discarded. So we exec the FD to /dev/null,
41812 # effectively closing config.log, so it can be properly (re)opened and
41813 # appended to by config.status. When coming back to configure, we
41814 # need to make the FD available again.
41815 if test "$no_create" != yes; then
41816 ac_cs_success=:
41817 ac_config_status_args=
41818 test "$silent" = yes &&
41819 ac_config_status_args="$ac_config_status_args --quiet"
41820 exec 5>/dev/null
41821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41822 exec 5>>config.log
41823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41824 # would make configure fail if this is the last instruction.
41825 $ac_cs_success || { (exit 1); exit 1; }
41826 fi
41827
41828 #
41829 # CONFIG_SUBDIRS section.
41830 #
41831 if test "$no_recursion" != yes; then
41832
41833 # Remove --cache-file and --srcdir arguments so they do not pile up.
41834 ac_sub_configure_args=
41835 ac_prev=
41836 for ac_arg in $ac_configure_args; do
41837 if test -n "$ac_prev"; then
41838 ac_prev=
41839 continue
41840 fi
41841 case $ac_arg in
41842 -cache-file | --cache-file | --cache-fil | --cache-fi \
41843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41844 ac_prev=cache_file ;;
41845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41847 | --c=*)
41848 ;;
41849 --config-cache | -C)
41850 ;;
41851 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41852 ac_prev=srcdir ;;
41853 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41854 ;;
41855 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41856 ac_prev=prefix ;;
41857 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41858 ;;
41859 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41860 esac
41861 done
41862
41863 # Always prepend --prefix to ensure using the same prefix
41864 # in subdir configurations.
41865 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41866
41867 ac_popdir=`pwd`
41868 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41869
41870 # Do not complain, so a configure script can configure whichever
41871 # parts of a large source tree are present.
41872 test -d $srcdir/$ac_dir || continue
41873
41874 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41875 echo "$as_me: configuring in $ac_dir" >&6;}
41876 { if $as_mkdir_p; then
41877 mkdir -p "$ac_dir"
41878 else
41879 as_dir="$ac_dir"
41880 as_dirs=
41881 while test ! -d "$as_dir"; do
41882 as_dirs="$as_dir $as_dirs"
41883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41885 X"$as_dir" : 'X\(//\)[^/]' \| \
41886 X"$as_dir" : 'X\(//\)$' \| \
41887 X"$as_dir" : 'X\(/\)' \| \
41888 . : '\(.\)' 2>/dev/null ||
41889 echo X"$as_dir" |
41890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41892 /^X\(\/\/\)$/{ s//\1/; q; }
41893 /^X\(\/\).*/{ s//\1/; q; }
41894 s/.*/./; q'`
41895 done
41896 test ! -n "$as_dirs" || mkdir $as_dirs
41897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41898 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41899 { (exit 1); exit 1; }; }; }
41900
41901 ac_builddir=.
41902
41903 if test "$ac_dir" != .; then
41904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41905 # A "../" for each directory in $ac_dir_suffix.
41906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41907 else
41908 ac_dir_suffix= ac_top_builddir=
41909 fi
41910
41911 case $srcdir in
41912 .) # No --srcdir option. We are building in place.
41913 ac_srcdir=.
41914 if test -z "$ac_top_builddir"; then
41915 ac_top_srcdir=.
41916 else
41917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41918 fi ;;
41919 [\\/]* | ?:[\\/]* ) # Absolute path.
41920 ac_srcdir=$srcdir$ac_dir_suffix;
41921 ac_top_srcdir=$srcdir ;;
41922 *) # Relative path.
41923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41925 esac
41926
41927 # Do not use `cd foo && pwd` to compute absolute paths, because
41928 # the directories may not exist.
41929 case `pwd` in
41930 .) ac_abs_builddir="$ac_dir";;
41931 *)
41932 case "$ac_dir" in
41933 .) ac_abs_builddir=`pwd`;;
41934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41936 esac;;
41937 esac
41938 case $ac_abs_builddir in
41939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41940 *)
41941 case ${ac_top_builddir}. in
41942 .) ac_abs_top_builddir=$ac_abs_builddir;;
41943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41945 esac;;
41946 esac
41947 case $ac_abs_builddir in
41948 .) ac_abs_srcdir=$ac_srcdir;;
41949 *)
41950 case $ac_srcdir in
41951 .) ac_abs_srcdir=$ac_abs_builddir;;
41952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41954 esac;;
41955 esac
41956 case $ac_abs_builddir in
41957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41958 *)
41959 case $ac_top_srcdir in
41960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41963 esac;;
41964 esac
41965
41966
41967 cd $ac_dir
41968
41969 # Check for guested configure; otherwise get Cygnus style configure.
41970 if test -f $ac_srcdir/configure.gnu; then
41971 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41972 elif test -f $ac_srcdir/configure; then
41973 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41974 elif test -f $ac_srcdir/configure.in; then
41975 ac_sub_configure=$ac_configure
41976 else
41977 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41979 ac_sub_configure=
41980 fi
41981
41982 # The recursion is here.
41983 if test -n "$ac_sub_configure"; then
41984 # Make the cache file name correct relative to the subdirectory.
41985 case $cache_file in
41986 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41987 *) # Relative path.
41988 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
41989 esac
41990
41991 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41992 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41993 # The eval makes quoting arguments work.
41994 eval $ac_sub_configure $ac_sub_configure_args \
41995 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41996 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
41997 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41998 { (exit 1); exit 1; }; }
41999 fi
42000
42001 cd $ac_popdir
42002 done
42003 fi
42004
42005
42006 echo
42007 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
42008 echo ""
42009 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
42010 echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
42011
42012 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
42013 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
42014 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
42015
42016 echo " What level of wxWindows compatibility should be enabled?"
42017 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
42018 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
42019
42020 echo " Which libraries should wxWindows use?"
42021 echo " jpeg ${wxUSE_LIBJPEG-none}"
42022 echo " png ${wxUSE_LIBPNG-none}"
42023 echo " regex ${wxUSE_REGEX}"
42024 echo " tiff ${wxUSE_LIBTIFF-none}"
42025 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
42026 echo " xpm ${wxUSE_LIBXPM-none}"
42027 fi
42028 echo " zlib ${wxUSE_ZLIB}"
42029 echo " odbc ${wxUSE_ODBC}"
42030 echo " expat ${wxUSE_EXPAT}"
42031 echo " libmspack ${wxUSE_LIBMSPACK}"
42032 echo " sdl ${wxUSE_LIBSDL}"
42033
42034 echo ""
42035